UNPKG

devextreme-dist

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

19 lines 5.22 MB
/*! * DevExtreme (dx.all.js) * Version: 25.1.5 * Build date: Wed Sep 03 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";!function(){var e={70037:function(e,t,n){n.r(t),n.d(t,{Signal:function(){return p},batch:function(){return a},computed:function(){return C},effect:function(){return w},signal:function(){return g},untracked:function(){return s}});var i=Symbol.for("preact-signals");function o(){if(d>1)d--;else{for(var e,t=!1;void 0!==l;){var n=l;for(l=void 0,u++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&_(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(u=0,d--,t)throw e}}function a(e){if(d>0)return e();d++;try{return e()}finally{o()}}var r=void 0;function s(e){var t=r;r=void 0;try{return e()}finally{r=t}}var l=void 0,d=0,u=0,c=0;function h(e){if(void 0!==r){var t=e.n;if(void 0===t||t.t!==r)return t={i:0,S:e,p:r.s,n:void 0,t:r,e:void 0,x:void 0,r:t},void 0!==r.s&&(r.s.n=t),r.s=t,e.n=t,32&r.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=r.s,t.n=void 0,r.s.n=t,r.s=t),t}}function p(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function g(e){return new p(e)}function _(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function f(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function m(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function v(e){p.call(this,void 0),this.x=e,this.s=void 0,this.g=c-1,this.f=4}function C(e){return new v(e)}function y(e){var t=e.u;if(e.u=void 0,"function"==typeof t){d++;var n=r;r=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,b(e),t}finally{r=n,o()}}}function b(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,y(e)}function x(e){if(r!==this)throw new Error("Out-of-order effect");m(this),r=e,this.f&=-2,8&this.f&&b(this),o()}function S(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function w(e){var t=new S(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}p.prototype.brand=i,p.prototype.h=function(){return!0},p.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},p.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},p.prototype.subscribe=function(e){var t=this;return w((function(){var n=t.value,i=r;r=void 0;try{e(n)}finally{r=i}}))},p.prototype.valueOf=function(){return this.value},p.prototype.toString=function(){return this.value+""},p.prototype.toJSON=function(){return this.value},p.prototype.peek=function(){var e=r;r=void 0;try{return this.value}finally{r=e}},Object.defineProperty(p.prototype,"value",{get:function(){var e=h(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(u>100)throw new Error("Cycle detected");this.v=e,this.i++,c++,d++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{o()}}}}),(v.prototype=new p).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===c)return!0;if(this.g=c,this.f|=1,this.i>0&&!_(this))return this.f&=-2,!0;var e=r;try{f(this),r=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return r=e,m(this),this.f&=-2,!0},v.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}p.prototype.S.call(this,e)},v.prototype.U=function(e){if(void 0!==this.t&&(p.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},v.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(v.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=h(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),S.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},S.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,y(this),f(this),d++;var e=r;return r=this,x.bind(this,e)},S.prototype.N=function(){2&this.f||(this.f|=2,this.o=l,l=this)},S.prototype.d=function(){this.f|=8,1&this.f||b(this)}},12887:function(e,t,n){n.r(t),n.d(t,{createElement:function(){return s}});var i=n(76231);function o(e){return null==e}function a(e){return void 0===e}var r={onComponentDidAppear:1,onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillDisappear:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function s(e,t,n){var s,l,d,u=null,c=null,h=null,p=arguments.length-2;if(1===p)s=n;else if(p>1)for(s=[];p-- >0;)s[p]=arguments[p+2];if("string"!=typeof e){if(l=2,a(s)||(t||(t={}),t.children=s),!o(t))for(var g in d={},t)"key"===g?c=t.key:"ref"===g?u=t.ref:1===r[g]?(u||(u={}),u[g]=t[g]):d[g]=t[g];return(0,i.createComponentVNode)(l,e,d,c,u)}if(l=(0,i.getFlagsForElementVnode)(e),!o(t))for(var _ in d={},t)"className"===_||"class"===_?h=t[_]:"key"===_?c=t.key:"children"===_&&a(s)?s=t.children:"ref"===_?u=t.ref:("contenteditable"===_&&(l|=4096),d[_]=t[_]);return 8192&l?(0,i.createFragment)(1===p?[s]:s,0,c):(0,i.createVNode)(l,e,h,s,0,d,c,u)}},76231:function(e,t,n){n.r(t),n.d(t,{AnimationQueues:function(){return _},Component:function(){return ct},EMPTY_OBJ:function(){return p},Fragment:function(){return g},_CI:function(){return We},_HI:function(){return Z},_M:function(){return Ge},_MCCC:function(){return qe},_ME:function(){return Ue},_MFCC:function(){return Ye},_MP:function(){return Ne},_MR:function(){return Pe},_RFC:function(){return $e},__render:function(){return tt},createComponentVNode:function(){return F},createFragment:function(){return N},createPortal:function(){return G},createRef:function(){return Te},createRenderer:function(){return it},createTextVNode:function(){return H},createVNode:function(){return B},directClone:function(){return W},findDOMFromVNode:function(){return x},forwardRef:function(){return Oe},getFlagsForElementVnode:function(){return U},linkEvent:function(){return c},normalizeProps:function(){return z},options:function(){return A},render:function(){return nt},rerender:function(){return dt},version:function(){return ht}});var i=Array.isArray;function o(e){var t=typeof e;return"string"===t||"number"===t}function a(e){return null==e}function r(e){return null===e||!1===e||!0===e||void 0===e}function s(e){return"function"==typeof e}function l(e){return"string"==typeof e}function d(e){return null===e}function u(e,t){var n={};if(e)for(var i in e)n[i]=e[i];if(t)for(var o in t)n[o]=t[o];return n}function c(e,t){return s(t)?{data:e,event:t}:null}function h(e){return!d(e)&&"object"==typeof e}var p={},g="$F",_=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function f(e){return e.substring(2).toLowerCase()}function m(e,t){e.appendChild(t)}function v(e,t,n){d(n)?m(e,t):e.insertBefore(t,n)}function C(e,t){e.removeChild(t)}function y(e){for(var t=0;t<e.length;t++)e[t]()}function b(e,t,n){var i=e.children;return 4&n?i.$LI:8192&n?2===e.childFlags?i:i[t?0:i.length-1]:i}function x(e,t){for(var n;e;){if(1521&(n=e.flags))return e.dom;e=b(e,t,n)}return null}function S(e,t){for(var n,i=e.length;void 0!==(n=e.pop());)n((function(){--i<=0&&s(t)&&t()}))}function w(e,t,n){do{var i=e.flags;if(1521&i)return void(n&&e.dom.parentNode!==t||C(t,e.dom));var o=e.children;if(4&i&&(e=o.$LI),8&i&&(e=o),8192&i){if(2!==e.childFlags){for(var a=0,r=o.length;a<r;++a)w(o[a],t,!1);return}e=o}}while(e)}function D(e,t,n){n.componentWillDisappear.length>0?S(n.componentWillDisappear,function(e,t){return function(){w(e,t,!0)}}(e,t)):w(e,t,!1)}function E(e,t,n,i,o,a,r,s){e.componentWillMove.push({dom:i,fn:function(){4&r?n.componentWillMove(t,o,i):8&r&&n.onComponentWillMove(t,o,i,s)},next:a,parent:o})}function I(e,t,n,i,o){var r,l,d=t.flags;do{var u=t.flags;if(1521&u)return void(a(r)||!s(r.componentWillMove)&&!s(r.onComponentWillMove)?v(n,t.dom,i):E(o,e,r,t.dom,n,i,d,l));var c=t.children;if(4&u)r=t.children,l=t.props,t=c.$LI;else if(8&u)r=t.ref,l=t.props,t=c;else if(8192&u){if(2!==t.childFlags){for(var h=0,p=c.length;h<p;++h)I(e,c[h],n,i,o);return}t=c}}while(t)}function T(e,t,n){return e.constructor.getDerivedStateFromProps?u(n,e.constructor.getDerivedStateFromProps(t,n)):n}var O={v:!1},A={componentComparator:null,createVNode:null,renderComplete:null};function P(e,t){e.textContent=t}function M(e,t){return h(e)&&e.event===t.event&&e.data===t.data}function k(e,t){for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}function R(e,t){return!!s(e)&&(e(t),!0)}var L="$";function V(e,t,n,i,o,a,r,s){this.childFlags=e,this.children=t,this.className=n,this.dom=null,this.flags=i,this.key=void 0===o?null:o,this.props=void 0===a?null:a,this.ref=void 0===r?null:r,this.type=s}function B(e,t,n,i,o,a,r,s){var l=void 0===o?1:o,d=new V(l,i,n,e,r,a,s,t);return A.createVNode&&A.createVNode(d),0===l&&K(d,d.children),d}function F(e,t,n,i,o){e=function(e,t){return 12&e?e:t.prototype&&t.prototype.render?4:t.render?32776:8}(e,t);var r=new V(1,null,null,e,i,function(e,t,n){var i=(32768&e?t.render:t).defaultProps;return a(i)?n:a(n)?u(i,null):k(n,i)}(e,t,n),function(e,t,n){if(4&e)return n;var i=(32768&e?t.render:t).defaultHooks;return a(i)?n:a(n)?i:k(n,i)}(e,t,o),t);return A.createVNode&&A.createVNode(r),r}function H(e,t){return new V(1,a(e)||!0===e||!1===e?"":e,null,16,t,null,null,null)}function N(e,t,n){var i=B(8192,8192,null,e,t,null,n,null);switch(i.childFlags){case 1:i.children=$(),i.childFlags=2;break;case 16:i.children=[H(e)],i.childFlags=4}return i}function z(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&a(e.children)&&K(e,t.children),void 0!==t.className&&(a(e.className)&&(e.className=t.className||null),t.className=void 0)),void 0!==t.key&&(e.key=t.key,t.key=void 0),void 0!==t.ref&&(e.ref=8&n?u(e.ref,t.ref):t.ref,t.ref=void 0)}return e}function W(e){var t=-16385&e.flags,n=e.props;if(14&t&&!d(n)){var i=n;for(var o in n={},i)n[o]=i[o]}return 8192&t?function(e){var t=e.children,n=e.childFlags;return N(2===n?W(t):t.map(W),n,e.key)}(e):new V(e.childFlags,e.children,e.className,t,e.key,n,e.ref,e.type)}function $(){return H("",null)}function G(e,t){var n=Z(e);return B(1024,1024,null,n,0,null,n.key,t)}function j(e,t,n,a){for(var s=e.length;n<s;n++){var u=e[n];if(!r(u)){var c=a+L+n;if(i(u))j(u,t,0,c);else{if(o(u))u=H(u,c);else{var h=u.key,p=l(h)&&h[0]===L;(81920&u.flags||p)&&(u=W(u)),u.flags|=65536,p?h.substring(0,a.length)!==a&&(u.key=a+h):d(h)?u.key=c:u.key=a+h}t.push(u)}}}}function U(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case g:return 8192;default:return 1}}function K(e,t){var n,a=1;if(r(t))n=t;else if(o(t))a=16,n=t;else if(i(t)){for(var s=t.length,u=0;u<s;++u){var c=t[u];if(r(c)||i(c)){n=n||t.slice(0,u),j(t,n,u,"");break}if(o(c))(n=n||t.slice(0,u)).push(H(c,L+u));else{var h=c.key,p=(81920&c.flags)>0,g=d(h),_=l(h)&&h[0]===L;p||g||_?(n=n||t.slice(0,u),(p||_)&&(c=W(c)),(g||_)&&(c.key=L+u),n.push(c)):n&&n.push(c),c.flags|=65536}}a=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=W(t)),a=2;return e.children=n,e.childFlags=a,e}function Z(e){return r(e)||o(e)?H(e,null):i(e)?N(e,0,null):16384&e.flags?W(e):e}var q="http://www.w3.org/1999/xlink",Y="http://www.w3.org/XML/1998/namespace",X={"xlink:actuate":q,"xlink:arcrole":q,"xlink:href":q,"xlink:role":q,"xlink:show":q,"xlink:title":q,"xlink:type":q,"xml:base":Y,"xml:lang":Y,"xml:space":Y};function Q(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var J=Q(0),ee=Q(null),te=Q(!0);function ne(e,t){var n=t.$EV;return n||(n=t.$EV=Q(null)),n[e]||1==++J[e]&&(ee[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?oe(t,!0,e,le(t)):t.stopPropagation()}}(e):function(e){return function(t){oe(t,!1,e,le(t))}}(e);return document.addEventListener(f(e),t),t}(e)),n}function ie(e,t){var n=t.$EV;n&&n[e]&&(0==--J[e]&&(document.removeEventListener(f(e),ee[e]),ee[e]=null),n[e]=null)}function oe(e,t,n,i){var o=function(e){return s(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&o.disabled)return;var a=o.$EV;if(a){var r=a[n];if(r&&(i.dom=o,r.event?r.event(r.data,e):r(e),e.cancelBubble))return}o=o.parentNode}while(!d(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function re(){return this.defaultPrevented}function se(){return this.cancelBubble}function le(e){var t={dom:document};return e.isDefaultPrevented=re,e.isPropagationStopped=se,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function de(e,t,n){if(e[t]){var i=e[t];i.event?i.event(i.data,n):i(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function ue(e,t){var n=function(n){var i=this.$V;if(i){var o=i.props||p,a=i.dom;if(l(e))de(o,e,n);else for(var r=0;r<e.length;++r)de(o,e[r],n);if(s(t)){var d=this.$V,u=d.props||p;t(u,a,!1,d)}}};return Object.defineProperty(n,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),n}function ce(e,t,n){var i="$"+t,o=e[i];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[i]=null}s(n)&&(e.addEventListener(t,n),e[i]=[t,n])}function he(e){return"checkbox"===e||"radio"===e}var pe=ue("onInput",fe),ge=ue(["onClick","onChange"],fe);function _e(e){e.stopPropagation()}function fe(e,t){var n=e.type,i=e.value,o=e.checked,r=e.multiple,s=e.defaultValue,l=!a(i);n&&n!==t.type&&t.setAttribute("type",n),a(r)||r===t.multiple||(t.multiple=r),a(s)||l||(t.defaultValue=s+""),he(n)?(l&&(t.value=i),a(o)||(t.checked=o)):l&&t.value!==i?(t.defaultValue=i,t.value=i):a(o)||(t.checked=o)}function me(e,t){if("option"===e.type)!function(e,t){var n=e.props||p,o=e.dom;o.value=n.value,n.value===t||i(t)&&-1!==t.indexOf(n.value)?o.selected=!0:a(t)&&a(n.selected)||(o.selected=n.selected||!1)}(e,t);else{var n=e.children,o=e.flags;if(4&o)me(n.$LI,t);else if(8&o)me(n,t);else if(2===e.childFlags)me(n,t);else if(12&e.childFlags)for(var r=0,s=n.length;r<s;++r)me(n[r],t)}}_e.wrapped=!0;var ve=ue("onChange",Ce);function Ce(e,t,n,i){var o=Boolean(e.multiple);a(e.multiple)||o===t.multiple||(t.multiple=o);var r=e.selectedIndex;if(-1===r&&(t.selectedIndex=-1),1!==i.childFlags){var s=e.value;"number"==typeof r&&r>-1&&t.options[r]&&(s=t.options[r].value),n&&a(s)&&(s=e.defaultValue),me(i,s)}}var ye,be,xe=ue("onInput",we),Se=ue("onChange");function we(e,t,n){var i=e.value,o=t.value;if(a(i)){if(n){var r=e.defaultValue;a(r)||r===o||(t.defaultValue=r,t.value=r)}}else o!==i&&(t.defaultValue=i,t.value=i)}function De(e,t,n,i,o,a){64&e?fe(i,n):256&e?Ce(i,n,o,t):128&e&&we(i,n,o),a&&(n.$V=t)}function Ee(e,t,n){64&e?function(e,t){he(t.type)?(ce(e,"change",ge),ce(e,"click",_e)):ce(e,"input",pe)}(t,n):256&e?function(e){ce(e,"change",ve)}(t):128&e&&function(e,t){ce(e,"input",xe),t.onChange&&ce(e,"change",Se)}(t,n)}function Ie(e){return e.type&&he(e.type)?!a(e.checked):!a(e.value)}function Te(){return{current:null}}function Oe(e){return{render:e}}function Ae(e){e&&!R(e,null)&&e.current&&(e.current=null)}function Pe(e,t,n){e&&(s(e)||void 0!==e.current)&&n.push((function(){R(e,t)||void 0===e.current||(e.current=t)}))}function Me(e,t,n){ke(e,n),D(e,t,n)}function ke(e,t){var n,i=e.flags,o=e.children;if(481&i){n=e.ref;var r=e.props;Ae(n);var l=e.childFlags;if(!d(r))for(var u=Object.keys(r),c=0,h=u.length;c<h;c++){var g=u[c];te[g]&&ie(g,e.dom)}12&l?Re(o,t):2===l&&ke(o,t)}else if(o)if(4&i){s(o.componentWillUnmount)&&o.componentWillUnmount();var f=t;s(o.componentWillDisappear)&&(f=new _,Be(t,o,o.$LI.dom,i,void 0)),Ae(e.ref),o.$UN=!0,ke(o.$LI,f)}else if(8&i){var m=t;if(!a(n=e.ref)){var v=null;s(n.onComponentWillUnmount)&&(v=x(e,!0),n.onComponentWillUnmount(v,e.props||p)),s(n.onComponentWillDisappear)&&(m=new _,Be(t,n,v=v||x(e,!0),i,e.props))}ke(o,m)}else 1024&i?Me(o,e.ref,t):8192&i&&12&e.childFlags&&Re(o,t)}function Re(e,t){for(var n=0,i=e.length;n<i;++n)ke(e[n],t)}function Le(e,t,n){n.componentWillDisappear.length>0?S(n.componentWillDisappear,function(e,t){return function(){if(t)for(var n=0;n<e.length;n++)w(e[n],t,!1)}}(t,e)):e.textContent=""}function Ve(e,t,n,i){Re(n,i),8192&t.flags?D(t,e,i):Le(e,n,i)}function Be(e,t,n,i,o){e.componentWillDisappear.push((function(e){4&i?t.componentWillDisappear(n,e):8&i&&t.onComponentWillDisappear(n,o,e)}))}function Fe(e,t,n,i,o){var r=e&&e.__html||"",s=t&&t.__html||"";r!==s&&(a(s)||function(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}(i,s)||(d(n)||(12&n.childFlags?Re(n.children,o):2===n.childFlags&&ke(n.children,o),n.children=null,n.childFlags=1),i.innerHTML=s))}function He(e,t,n,i,o,r,d,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":i.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":i[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(r&&"value"===e)break;var c=a(n)?"":n;i[e]!==c&&(i[e]=c);break;case"style":!function(e,t,n){if(a(t))n.removeAttribute("style");else{var i,o,r=n.style;if(l(t))r.cssText=t;else if(a(e)||l(e))for(i in t)o=t[i],r.setProperty(i,o);else{for(i in t)(o=t[i])!==e[i]&&r.setProperty(i,o);for(i in e)a(t[i])&&r.removeProperty(i)}}}(t,n,i);break;case"dangerouslySetInnerHTML":Fe(t,n,d,i,u);break;default:te[e]?function(e,t,n,i){if(s(n))ne(e,i)[e]=n;else if(h(n)){if(M(t,n))return;ne(e,i)[e]=n}else ie(e,i)}(e,t,n,i):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?function(e,t,n,i){if(h(n)){if(M(t,n))return;n=function(e){var t=e.event;return function(n){t(e.data,n)}}(n)}ce(i,f(e),n)}(e,t,n,i):a(n)?i.removeAttribute(e):o&&X[e]?i.setAttributeNS(X[e],e,n):i.setAttribute(e,n)}}function Ne(e,t,n,i,o,a){var r=!1,s=(448&t)>0;for(var l in s&&(r=Ie(n))&&Ee(t,i,n),n)He(l,null,n[l],i,o,r,null,a);s&&De(t,e,i,n,!0,r)}function ze(e,t,n){var i=Z(e.render(t,e.state,n)),o=n;return s(e.getChildContext)&&(o=u(n,e.getChildContext())),e.$CX=o,i}function We(e,t,n,i,o,a){var r=new t(n,i),l=r.$N=Boolean(t.getDerivedStateFromProps||r.getSnapshotBeforeUpdate);if(r.$SVG=o,r.$L=a,e.children=r,r.$BS=!1,r.context=i,r.props===p&&(r.props=n),l)r.state=T(r,n,r.state);else if(s(r.componentWillMount)){r.$BR=!0,r.componentWillMount();var u=r.$PS;if(!d(u)){var c=r.state;if(d(c))r.state=u;else for(var h in u)c[h]=u[h];r.$PS=null}r.$BR=!1}return r.$LI=ze(r,n,i),r}function $e(e,t){var n=e.props||p;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function Ge(e,t,n,i,o,r,l){var d=e.flags|=16384;481&d?Ue(e,t,n,i,o,r,l):4&d?function(e,t,n,i,o,a,r){var l=We(e,e.type,e.props||p,n,i,a),d=r;s(l.componentDidAppear)&&(d=new _);Ge(l.$LI,t,l.$CX,i,o,a,d),qe(e.ref,l,a,r)}(e,t,n,i,o,r,l):8&d?function(e,t,n,i,o,r,l){var d=e.ref,u=l;!a(d)&&s(d.onComponentDidAppear)&&(u=new _);Ge(e.children=Z($e(e,n)),t,n,i,o,r,u),Ye(e,r,l)}(e,t,n,i,o,r,l):16&d?je(e,t,o):8192&d?function(e,t,n,i,o,a,r){var s=e.children,l=e.childFlags;12&l&&0===s.length&&(l=e.childFlags=2,s=e.children=$());2===l?Ge(s,n,t,i,o,a,r):Ke(s,n,t,i,o,a,r)}(e,n,t,i,o,r,l):1024&d&&function(e,t,n,i,o,a){Ge(e.children,e.ref,t,!1,null,o,a);var r=$();je(r,n,i),e.dom=r.dom}(e,n,t,o,r,l)}function je(e,t,n){var i=e.dom=document.createTextNode(e.children);d(t)||v(t,i,n)}function Ue(e,t,n,i,o,r,s){var l=e.flags,u=e.props,c=e.className,h=e.childFlags,p=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,i=i||(32&l)>0),g=e.children;if(a(c)||""===c||(i?p.setAttribute("class",c):p.className=c),16===h)P(p,g);else if(1!==h){var _=i&&"foreignObject"!==e.type;2===h?(16384&g.flags&&(e.children=g=W(g)),Ge(g,p,n,_,null,r,s)):8!==h&&4!==h||Ke(g,p,n,_,null,r,s)}d(t)||v(t,p,o),d(u)||Ne(e,l,u,p,i,s),Pe(e.ref,p,r)}function Ke(e,t,n,i,o,a,r){for(var s=0;s<e.length;++s){var l=e[s];16384&l.flags&&(e[s]=l=W(l)),Ge(l,t,n,i,o,a,r)}}function Ze(e,t,n,i,o){e.componentDidAppear.push((function(){4&i?t.componentDidAppear(n):8&i&&t.onComponentDidAppear(n,o)}))}function qe(e,t,n,i){Pe(e,t,n),s(t.componentDidMount)&&n.push(function(e){return function(){e.componentDidMount()}}(t)),s(t.componentDidAppear)&&Ze(i,t,t.$LI.dom,4,void 0)}function Ye(e,t,n){var i=e.ref;a(i)||(R(i.onComponentWillMount,e.props||p),s(i.onComponentDidMount)&&t.push(function(e,t){return function(){e.onComponentDidMount(x(t,!0),t.props||p)}}(i,e)),s(i.onComponentDidAppear)&&Ze(n,i,x(e,!0),8,e.props))}function Xe(e,t,n,i,o,l,c,h){var g=t.flags|=16384;e.flags!==g||e.type!==t.type||e.key!==t.key||2048&g?16384&e.flags?function(e,t,n,i,o,a,r){ke(e,r),t.flags&e.flags&1521?(Ge(t,null,i,o,null,a,r),function(e,t,n){e.replaceChild(t,n)}(n,t.dom,e.dom)):(Ge(t,n,i,o,x(e,!0),a,r),D(e,n,r))}(e,t,n,i,o,c,h):Ge(t,n,i,o,l,c,h):481&g?function(e,t,n,i,o,r,s){var l,d=t.dom=e.dom,u=e.props,c=t.props,h=!1,g=!1;if(i=i||(32&o)>0,u!==c){var _=u||p;if((l=c||p)!==p)for(var f in(h=(448&o)>0)&&(g=Ie(l)),l){var m=_[f],v=l[f];m!==v&&He(f,m,v,d,i,g,e,s)}if(_!==p)for(var C in _)a(l[C])&&!a(_[C])&&He(C,_[C],null,d,i,g,e,s)}var y=t.children,b=t.className;e.className!==b&&(a(b)?d.removeAttribute("class"):i?d.setAttribute("class",b):d.className=b);4096&o?function(e,t){e.textContent!==t&&(e.textContent=t)}(d,y):Qe(e.childFlags,t.childFlags,e.children,y,d,n,i&&"foreignObject"!==t.type,null,e,r,s);h&&De(o,t,d,l,!1,g);var x=t.ref,S=e.ref;S!==x&&(Ae(S),Pe(x,d,r))}(e,t,i,o,g,c,h):4&g?function(e,t,n,i,o,a,r,l){var c=t.children=e.children;if(d(c))return;c.$L=r;var h=t.props||p,g=t.ref,_=e.ref,f=c.state;if(!c.$N){if(s(c.componentWillReceiveProps)){if(c.$BR=!0,c.componentWillReceiveProps(h,i),c.$UN)return;c.$BR=!1}d(c.$PS)||(f=u(f,c.$PS),c.$PS=null)}Je(c,f,h,n,i,o,!1,a,r,l),_!==g&&(Ae(_),Pe(g,c,r))}(e,t,n,i,o,l,c,h):8&g?function(e,t,n,i,o,r,l,d){var u=!0,c=t.props||p,h=t.ref,g=e.props,_=!a(h),f=e.children;_&&s(h.onComponentShouldUpdate)&&(u=h.onComponentShouldUpdate(g,c));if(!1!==u){_&&s(h.onComponentWillUpdate)&&h.onComponentWillUpdate(g,c);var m=Z($e(t,i));Xe(f,m,n,i,o,r,l,d),t.children=m,_&&s(h.onComponentDidUpdate)&&h.onComponentDidUpdate(g,c)}else t.children=f}(e,t,n,i,o,l,c,h):16&g?function(e,t){var n=t.children,i=t.dom=e.dom;n!==e.children&&(i.nodeValue=n)}(e,t):8192&g?function(e,t,n,i,o,a,r){var s=e.children,l=t.children,d=e.childFlags,u=t.childFlags,c=null;12&u&&0===l.length&&(u=t.childFlags=2,l=t.children=$());var h=!!(2&u);if(12&d){var p=s.length;(8&d&&8&u||h||!h&&l.length>p)&&(c=x(s[p-1],!1).nextSibling)}Qe(d,u,s,l,n,i,o,c,e,a,r)}(e,t,n,i,o,c,h):function(e,t,n,i,o){var a=e.ref,s=t.ref,l=t.children;if(Qe(e.childFlags,t.childFlags,e.children,l,a,n,!1,null,e,i,o),t.dom=e.dom,a!==s&&!r(l)){var d=l.dom;C(a,d),m(s,d)}}(e,t,i,c,h)}function Qe(e,t,n,i,o,a,r,s,l,d,u){switch(e){case 2:switch(t){case 2:Xe(n,i,o,a,r,s,d,u);break;case 1:Me(n,o,u);break;case 16:ke(n,u),P(o,i);break;default:!function(e,t,n,i,o,a,r){ke(e,r),Ke(t,n,i,o,x(e,!0),a,r),D(e,n,r)}(n,i,o,a,r,d,u)}break;case 1:switch(t){case 2:Ge(i,o,a,r,s,d,u);break;case 1:break;case 16:P(o,i);break;default:Ke(i,o,a,r,s,d,u)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:P(n,t))}(n,i,o);break;case 2:Le(o,n,u),Ge(i,o,a,r,s,d,u);break;case 1:Le(o,n,u);break;default:Le(o,n,u),Ke(i,o,a,r,s,d,u)}break;default:switch(t){case 16:Re(n,u),P(o,i);break;case 2:Ve(o,l,n,u),Ge(i,o,a,r,s,d,u);break;case 1:Ve(o,l,n,u);break;default:var c=0|n.length,h=0|i.length;0===c?h>0&&Ke(i,o,a,r,s,d,u):0===h?Ve(o,l,n,u):8===t&&8===e?function(e,t,n,i,o,a,r,s,l,d,u){var c,h,p=a-1,g=r-1,_=0,f=e[_],m=t[_];e:{for(;f.key===m.key;){if(16384&m.flags&&(t[_]=m=W(m)),Xe(f,m,n,i,o,s,d,u),e[_]=m,++_>p||_>g)break e;f=e[_],m=t[_]}for(f=e[p],m=t[g];f.key===m.key;){if(16384&m.flags&&(t[g]=m=W(m)),Xe(f,m,n,i,o,s,d,u),e[p]=m,g--,_>--p||_>g)break e;f=e[p],m=t[g]}}if(_>p){if(_<=g)for(h=(c=g+1)<r?x(t[c],!0):s;_<=g;)16384&(m=t[_]).flags&&(t[_]=m=W(m)),++_,Ge(m,n,i,o,h,d,u)}else if(_>g)for(;_<=p;)Me(e[_++],n,u);else!function(e,t,n,i,o,a,r,s,l,d,u,c,h,p){var g,_,f=0,m=0,C=s,y=s,b=a-s+1,S=r-s+1,w=new Int32Array(S+1),D=b===i,E=!1,T=0,O=0;if(o<4||(b|S)<32)for(m=C;m<=a;++m)if(g=e[m],O<S){for(s=y;s<=r;s++)if(_=t[s],g.key===_.key){if(w[s-y]=m+1,D)for(D=!1;C<m;)Me(e[C++],l,p);T>s?E=!0:T=s,16384&_.flags&&(t[s]=_=W(_)),Xe(g,_,l,n,d,u,h,p),++O;break}!D&&s>r&&Me(g,l,p)}else D||Me(g,l,p);else{var A={};for(m=y;m<=r;++m)A[t[m].key]=m;for(m=C;m<=a;++m)if(g=e[m],O<S)if(void 0!==(s=A[g.key])){if(D)for(D=!1;m>C;)Me(e[C++],l,p);w[s-y]=m+1,T>s?E=!0:T=s,16384&(_=t[s]).flags&&(t[s]=_=W(_)),Xe(g,_,l,n,d,u,h,p),++O}else D||Me(g,l,p);else D||Me(g,l,p)}if(D)Ve(l,c,e,p),Ke(t,l,n,d,u,h,p);else if(E){var P=function(e){var t=0,n=0,i=0,o=0,a=0,r=0,s=0,l=e.length;l>et&&(et=l,ye=new Int32Array(l),be=new Int32Array(l));for(;n<l;++n)if(0!==(t=e[n])){if(e[i=ye[o]]<t){be[n]=i,ye[++o]=n;continue}for(a=0,r=o;a<r;)e[ye[s=a+r>>1]]<t?a=s+1:r=s;t<e[ye[a]]&&(a>0&&(be[n]=ye[a-1]),ye[a]=n)}a=o+1;var d=new Int32Array(a);r=ye[a-1];for(;a-- >0;)d[a]=r,r=be[r],ye[a]=0;return d}(w);for(s=P.length-1,m=S-1;m>=0;m--)0===w[m]?(16384&(_=t[T=m+y]).flags&&(t[T]=_=W(_)),Ge(_,l,n,d,(f=T+1)<o?x(t[f],!0):u,h,p)):s<0||m!==P[s]?I(c,_=t[T=m+y],l,(f=T+1)<o?x(t[f],!0):u,p):s--;p.componentWillMove.length>0&&function(e){for(var t=0;t<e.length;t++)e[t].fn();for(var n=0;n<e.length;n++){var i=e[n];v(i.parent,i.dom,i.next)}e.splice(0,e.length)}(p.componentWillMove)}else if(O!==S)for(m=S-1;m>=0;m--)0===w[m]&&(16384&(_=t[T=m+y]).flags&&(t[T]=_=W(_)),Ge(_,l,n,d,(f=T+1)<o?x(t[f],!0):u,h,p))}(e,t,i,a,r,p,g,_,n,o,s,l,d,u)}(n,i,o,a,r,c,h,s,l,d,u):function(e,t,n,i,o,a,r,s,l,d){for(var u,c,h=a>r?r:a,p=0;p<h;++p)u=t[p],c=e[p],16384&u.flags&&(u=t[p]=W(u)),Xe(c,u,n,i,o,s,l,d),e[p]=u;if(a<r)for(p=h;p<r;++p)16384&(u=t[p]).flags&&(u=t[p]=W(u)),Ge(u,n,i,o,s,l,d);else if(a>r)for(p=h;p<a;++p)Me(e[p],n,d)}(n,i,o,a,r,c,h,s,d,u)}}}function Je(e,t,n,i,o,a,r,l,d,c){var h=e.state,p=e.props,g=Boolean(e.$N),_=s(e.shouldComponentUpdate);if(g&&(t=T(e,n,t!==h?u(h,t):t)),r||!_||_&&e.shouldComponentUpdate(n,t,o)){!g&&s(e.componentWillUpdate)&&e.componentWillUpdate(n,t,o),e.props=n,e.state=t,e.context=o;var f=null,m=ze(e,n,o);g&&s(e.getSnapshotBeforeUpdate)&&(f=e.getSnapshotBeforeUpdate(p,h)),Xe(e.$LI,m,i,e.$CX,a,l,d,c),e.$LI=m,s(e.componentDidUpdate)&&function(e,t,n,i,o){o.push((function(){e.componentDidUpdate(t,n,i)}))}(e,p,h,f,d)}else e.props=n,e.state=t,e.context=o}var et=0;function tt(e,t,n,i){var o=[],r=new _,l=t.$V;O.v=!0,a(l)?a(e)||(16384&e.flags&&(e=W(e)),Ge(e,t,i,!1,null,o,r),t.$V=e,l=e):a(e)?(Me(l,t,r),t.$V=null):(16384&e.flags&&(e=W(e)),Xe(l,e,t,i,!1,null,o,r),l=t.$V=e),y(o),S(r.componentDidAppear),O.v=!1,s(n)&&n(),s(A.renderComplete)&&A.renderComplete(l,t)}function nt(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i=p),tt(e,t,n,i)}function it(e){return function(t,n,i,o){e||(e=t),nt(n,e,i,o)}}"undefined"!=typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var ot=[],at="undefined"!=typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},rt=!1;function st(e,t,n,i){var o=e.$PS;if(s(t)&&(t=t(o?u(e.state,o):e.state,e.props,e.context)),a(o))e.$PS=t;else for(var r in t)o[r]=t[r];if(e.$BR)s(n)&&e.$L.push(n.bind(e));else{if(!O.v&&0===ot.length)return ut(e,i),void(s(n)&&n.call(e));if(-1===ot.indexOf(e)&&ot.push(e),i&&(e.$F=!0),rt||(rt=!0,at(dt)),s(n)){var l=e.$QU;l||(l=e.$QU=[]),l.push(n)}}}function lt(e){for(var t=e.$QU,n=0;n<t.length;++n)t[n].call(e);e.$QU=null}function dt(){var e;for(rt=!1;e=ot.shift();)if(!e.$UN){var t=e.$F;e.$F=!1,ut(e,t),e.$QU&&lt(e)}}function ut(e,t){if(t||!e.$BR){var n=e.$PS;e.$PS=null;var i=[],o=new _;O.v=!0,Je(e,u(e.state,n),e.props,x(e.$LI,!0).parentNode,e.context,e.$SVG,t,null,i,o),y(i),S(o.componentDidAppear),O.v=!1}else e.state=e.$PS,e.$PS=null}var ct=function(){function e(e,t){this.state=null,this.props=void 0,this.context=void 0,this.displayName=void 0,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$SSR=void 0,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||p,this.context=t||p}var t=e.prototype;return t.forceUpdate=function(e){this.$UN||st(this,{},e,!0)},t.setState=function(e,t){this.$UN||this.$BS||st(this,e,t,!1)},t.render=function(e,t,n){return null},e}();ct.defaultProps=null;var ht="8.2.3"},4755:function(e,t,n){n.r(t),n.d(t,{ALL_WEEKDAYS:function(){return i},Frequency:function(){return $},RRule:function(){return Ge},RRuleSet:function(){return Xe},Weekday:function(){return o},datetime:function(){return v},rrulestr:function(){return Ke}});var i=["MO","TU","WE","TH","FR","SA","SU"],o=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(i.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=i[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),a=function(e){return null!=e},r=function(e){return"number"==typeof e},s=function(e){return"string"==typeof e&&i.includes(e)},l=Array.isArray,d=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],i=e;i<t;i++)n.push(i);return n},u=function(e,t){var n=0,i=[];if(l(e))for(;n<t;n++)i[n]=[].concat(e);else for(;n<t;n++)i[n]=e;return i};function c(e,t,n){void 0===n&&(n=" ");var i=String(e);return t|=0,i.length>t?String(i):((t-=i.length)>n.length&&(n+=u(n,t/n.length)),n.slice(0,t)+String(i))}var h=function(e,t,n){var i=e.split(t);return n?i.slice(0,n).concat([i.slice(n).join(t)]):i},p=function(e,t){var n=e%t;return n*t<0?n+t:n},g=function(e,t){return{div:Math.floor(e/t),mod:p(e,t)}},_=function(e){return!a(e)||0===e.length},f=function(e){return!_(e)},m=function(e,t){return f(e)&&-1!==e.indexOf(t)},v=function(e,t,n,i,o,a){return void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0),new Date(Date.UTC(e,t-1,n,i,o,a))},C=[31,28,31,30,31,30,31,31,30,31,30,31],y=864e5,b=v(1970,1,1),x=[6,0,1,2,3,4,5],S=function(e){return e%4==0&&e%100!=0||e%400==0},w=function(e){return e instanceof Date},D=function(e){return w(e)&&!isNaN(e.getTime())},E=function(e){return t=b,n=e.getTime()-t.getTime(),Math.round(n/y);var t,n},I=function(e){return new Date(b.getTime()+e*y)},T=function(e){var t=e.getUTCMonth();return 1===t&&S(e.getUTCFullYear())?29:C[t]},O=function(e){return x[e.getUTCDay()]},A=function(e,t){var n=v(e,t+1,1);return[O(n),T(n)]},P=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},M=function(e){return new Date(e.getTime())},k=function(e){for(var t=[],n=0;n<e.length;n++)t.push(M(e[n]));return t},R=function(e){e.sort((function(e,t){return e.getTime()-t.getTime()}))},L=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[c(n.getUTCFullYear().toString(),4,"0"),c(n.getUTCMonth()+1,2,"0"),c(n.getUTCDate(),2,"0"),"T",c(n.getUTCHours(),2,"0"),c(n.getUTCMinutes(),2,"0"),c(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},V=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},B=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},F=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),H=function(e,t){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},H(e,t)};function N(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)};Object.create;function W(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var $,G=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.iterator=i,o}return N(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(F),j={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},U=function(e,t){return-1!==e.indexOf(t)},K=function(e){return e.toString()},Z=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},q=function(){function e(e,t,n,i){if(void 0===t&&(t=K),void 0===n&&(n=j),void 0===i&&(i=Z),this.text=[],this.language=n||j,this.gettext=t,this.dateFormatter=i,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var o=[].concat(this.options.bymonthday),r=[].concat(this.options.bynmonthday);o.sort((function(e,t){return e-t})),r.sort((function(e,t){return t-e})),this.bymonthday=o.concat(r),this.bymonthday.length||(this.bymonthday=null)}if(a(this.origOptions.byweekday)){var s=l(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],d=String(s);this.byweekday={allWeeks:s.filter((function(e){return!e.n})),someWeeks:s.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==d.indexOf("MO")&&-1!==d.indexOf("TU")&&-1!==d.indexOf("WE")&&-1!==d.indexOf("TH")&&-1!==d.indexOf("FR")&&-1===d.indexOf("SA")&&-1===d.indexOf("SU"),isEveryDay:-1!==d.indexOf("MO")&&-1!==d.indexOf("TU")&&-1!==d.indexOf("WE")&&-1!==d.indexOf("TH")&&-1!==d.indexOf("FR")&&-1!==d.indexOf("SA")&&-1!==d.indexOf("SU")};var u=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(U(["dtstart","tzid","wkst","freq"],n))return!0;if(!U(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Ge.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){var t;e=parseInt(e.toString(),10);var n=this.gettext;if(-1===e)return n("last");var i=Math.abs(e);switch(i){case 1:case 21:case 31:t=i+n("st");break;case 2:case 22:t=i+n("nd");break;case 3:case 23:t=i+n("rd");break;default:t=i+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=r(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,i){var o=this;void 0===i&&(i=","),l(e)||(e=[e]);t=t||function(e){return e.toString()};var a=function(e){return t&&t.call(o,e)};return n?function(e,t,n){for(var i="",o=0;o<e.length;o++)0!==o&&(o===e.length-1?i+=" "+n+" ":i+=t+" "),i+=e[o];return i}(e.map(a),i,n):e.map(a).join(i+" ")},e}(),Y=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in e=null,this.rules){var i=this.rules[n].exec(this.text);i&&(null===e||i[0].length>e[0].length)&&(e=i,t=n)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}();function X(e,t){void 0===t&&(t=j);var n={},i=new Y(t.tokens);return i.start(e)?(function(){i.expect("every");var e=i.acceptNumber();e&&(n.interval=parseInt(e[0],10));if(i.isDone())throw new Error("Unexpected end");switch(i.symbol){case"day(s)":n.freq=Ge.DAILY,i.nextSymbol()&&(a(),d());break;case"weekday(s)":n.freq=Ge.WEEKLY,n.byweekday=[Ge.MO,Ge.TU,Ge.WE,Ge.TH,Ge.FR],i.nextSymbol(),a(),d();break;case"week(s)":n.freq=Ge.WEEKLY,i.nextSymbol()&&(o(),a(),d());break;case"hour(s)":n.freq=Ge.HOURLY,i.nextSymbol()&&(o(),d());break;case"minute(s)":n.freq=Ge.MINUTELY,i.nextSymbol()&&(o(),d());break;case"month(s)":n.freq=Ge.MONTHLY,i.nextSymbol()&&(o(),d());break;case"year(s)":n.freq=Ge.YEARLY,i.nextSymbol()&&(o(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=Ge.WEEKLY;var t=i.symbol.substr(0,2).toUpperCase();if(n.byweekday=[Ge[t]],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var u=s();if(!u)throw new Error("Unexpected symbol "+i.symbol+", expected weekday");n.byweekday.push(Ge[u]),i.nextSymbol()}a(),function(){i.accept("on"),i.accept("the");var e=l();if(!e)return;n.bymonthday=[e],i.nextSymbol();for(;i.accept("comma");){if(!(e=l()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");n.bymonthday.push(e),i.nextSymbol()}}(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=Ge.YEARLY,n.bymonth=[r()],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var c=r();if(!c)throw new Error("Unexpected symbol "+i.symbol+", expected month");n.bymonth.push(c),i.nextSymbol()}o(),d();break;default:throw new Error("Unknown symbol")}}(),n):null;function o(){var e=i.accept("on"),t=i.accept("the");if(e||t)do{var o=l(),a=s(),d=r();if(o)a?(i.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Ge[a].nth(o))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(o),i.accept("day(s)"));else if(a)i.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Ge[a]);else if("weekday(s)"===i.symbol)i.nextSymbol(),n.byweekday||(n.byweekday=[Ge.MO,Ge.TU,Ge.WE,Ge.TH,Ge.FR]);else if("week(s)"===i.symbol){i.nextSymbol();var u=i.acceptNumber();if(!u)throw new Error("Unexpected symbol "+i.symbol+", expected week number");for(n.byweekno=[parseInt(u[0],10)];i.accept("comma");){if(!(u=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");n.byweekno.push(parseInt(u[0],10))}}else{if(!d)return;i.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(d)}}while(i.accept("comma")||i.accept("the")||i.accept("on"))}function a(){if(i.accept("at"))do{var e=i.acceptNumber();if(!e)throw new Error("Unexpected symbol "+i.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];i.accept("comma");){if(!(e=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(i.accept("comma")||i.accept("at"))}function r(){switch(i.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(i.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return i.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(i.symbol){case"last":return i.nextSymbol(),-1;case"first":return i.nextSymbol(),1;case"second":return i.nextSymbol(),i.accept("last")?-2:2;case"third":return i.nextSymbol(),i.accept("last")?-3:3;case"nth":var e=parseInt(i.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return i.nextSymbol(),i.accept("last")?-e:e;default:return!1}}function d(){if("until"===i.symbol){var e=Date.parse(i.text);if(!e)throw new Error("Cannot parse until date:"+i.text);n.until=new Date(e)}else i.accept("for")&&(n.count=parseInt(i.value[0],10),i.expect("number"))}}function Q(e){return e<$.HOURLY}!function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}($||($={})); /* ! * rrule.js - Library for working with recurrence rules for calendar dates. * https://github.com/jakubroztocil/rrule * * Copyright 2010, Jakub Roztocil and Lars Schoning * Licenced under the BSD licence. * https://github.com/jakubroztocil/rrule/blob/master/LICENCE * */ var J=function(e,t){return void 0===t&&(t=j),new Ge(X(e,t)||void 0)},ee=["count","until","interval","byweekday","bymonthday","bymonth"];q.IMPLEMENTED=[],q.IMPLEMENTED[$.HOURLY]=ee,q.IMPLEMENTED[$.MINUTELY]=ee,q.IMPLEMENTED[$.DAILY]=["byhour"].concat(ee),q.IMPLEMENTED[$.WEEKLY]=ee,q.IMPLEMENTED[$.MONTHLY]=ee,q.IMPLEMENTED[$.YEARLY]=["byweekno","byyearday"].concat(ee);var te=q.isFullyConvertible,ne=function(){function e(e,t,n,i){this.hour=e,this.minute=t,this.second=n,this.millisecond=i||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),ie=function(e){function t(t,n,i,o,a,r,s){var l=e.call(this,o,a,r,s)||this;return l.year=t,l.month=n,l.day=i,l}return N(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return O(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=p(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,th