diff --git a/app/Dockerfile b/app/Dockerfile index 7f8e39d..4c75e1a 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-app:5.140 +FROM metasfresh/metasfresh-app:5.141 COPY sources/configs/* /opt/metasfresh/ COPY sources/start_app.sh /opt/metasfresh/ diff --git a/db/Dockerfile b/db/Dockerfile index 4963384..498acc5 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-db:5.140 +FROM metasfresh/metasfresh-db:5.141 RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8 RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 diff --git a/docker-src/app/Dockerfile b/docker-src/app/Dockerfile index 5d8ef0b..c6c3448 100644 --- a/docker-src/app/Dockerfile +++ b/docker-src/app/Dockerfile @@ -12,7 +12,7 @@ RUN apt -y install netcat \ && apt -y autoclean RUN mkdir -p /opt/metasfresh -RUN curl https://repo.metasfresh.com/repository/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.140.2-1184+release/metasfresh-dist-dist-5.140.2-1184+release-dist.tar.gz \ +RUN curl https://repo.metasfresh.com/repository/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.141.2-1188+release/metasfresh-dist-dist-5.141.2-1188+release-dist.tar.gz \ | tar -xzC /opt/metasfresh/ RUN mkdir -p /opt/metasfresh/heapdump diff --git a/docker-src/webapi/Dockerfile b/docker-src/webapi/Dockerfile index 6b4add7..621f735 100644 --- a/docker-src/webapi/Dockerfile +++ b/docker-src/webapi/Dockerfile @@ -15,7 +15,7 @@ COPY sources/configs/local_settings.properties /root/ RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \ && mkdir -p /opt/metasfresh-webui-api/log \ && mkdir -p /opt/metasfresh-webui-api/heapdump -RUN curl https://repo.metasfresh.com/repository/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.140.2-878+release/metasfresh-webui-api-5.140.2-878+release.jar \ +RUN curl https://repo.metasfresh.com/repository/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.141.2-880+release/metasfresh-webui-api-5.141.2-880+release.jar \ --output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \ && chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar diff --git a/docker-src/webui/sources/dist/bundle-69aebb8d5d92d3feee39-git-d56e6eb.js b/docker-src/webui/sources/dist/bundle-efd411ce1a706ff04603-git-bcca7b6.js similarity index 84% rename from docker-src/webui/sources/dist/bundle-69aebb8d5d92d3feee39-git-d56e6eb.js rename to docker-src/webui/sources/dist/bundle-efd411ce1a706ff04603-git-bcca7b6.js index e41326d..bd3ea97 100644 --- a/docker-src/webui/sources/dist/bundle-69aebb8d5d92d3feee39-git-d56e6eb.js +++ b/docker-src/webui/sources/dist/bundle-efd411ce1a706ff04603-git-bcca7b6.js @@ -1,10 +1,10 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1313)}([function(e,t,n){"use strict";n.d(t,"a",function(){return Pr}),n.d(t,"b",function(){return In}),n.d(t,"c",function(){return ur}),n.d(t,"d",function(){return Xr}),n.d(t,"e",function(){return Vr}),n.d(t,"f",function(){return Kr}),n.d(t,"g",function(){return Br}),n.d(t,"h",function(){return En}),n.d(t,"i",function(){return kn}),n.d(t,"j",function(){return Pt}),n.d(t,"k",function(){return qr}),n.d(t,"l",function(){return Hr}),n.d(t,"m",function(){return xr}),n.d(t,"n",function(){return xn}),n.d(t,"o",function(){return Cn}),n.d(t,"p",function(){return Sn}),n.d(t,"q",function(){return Qr}),n.d(t,"r",function(){return yn}),n.d(t,"s",function(){return zr}),n.d(t,"t",function(){return An}),n.d(t,"u",function(){return Y}),n.d(t,"v",function(){return ce}),n.d(t,"w",function(){return F}),n.d(t,"x",function(){return xe}),n.d(t,"y",function(){return Te}),n.d(t,"z",function(){return c}),n.d(t,"A",function(){return Wt}),n.d(t,"B",function(){return w}),n.d(t,"C",function(){return fe}),n.d(t,"D",function(){return vn}),n.d(t,"E",function(){return Wr}),n.d(t,"F",function(){return Se}),n.d(t,"G",function(){return Le}),n.d(t,"H",function(){return _e}),n.d(t,"I",function(){return N}),n.d(t,"J",function(){return P}),n.d(t,"K",function(){return D}),n.d(t,"L",function(){return Hn}),n.d(t,"M",function(){return O}),n.d(t,"N",function(){return ie}),n.d(t,"O",function(){return i}),n.d(t,"P",function(){return rt}),n.d(t,"Q",function(){return pn}),n.d(t,"R",function(){return xt}),n.d(t,"S",function(){return Rn}),n.d(t,"T",function(){return $t}),n.d(t,"U",function(){return We}),n.d(t,"V",function(){return X}),n.d(t,"W",function(){return S}),n.d(t,"X",function(){return U}),n.d(t,"Y",function(){return be}),n.d(t,"Z",function(){return ge}),n.d(t,"Aa",function(){return m}),n.d(t,"Ba",function(){return b}),n.d(t,"Ca",function(){return ye}),n.d(t,"Da",function(){return $e}),n.d(t,"Ea",function(){return g}),n.d(t,"Fa",function(){return y}),n.d(t,"Ga",function(){return St}),n.d(t,"Ha",function(){return wn}),n.d(t,"Ia",function(){return R}),n.d(t,"Ja",function(){return Mn}),n.d(t,"Ka",function(){return Nt}),n.d(t,"La",function(){return x}),n.d(t,"Ma",function(){return tt}),n.d(t,"Na",function(){return Bn}),n.d(t,"Oa",function(){return It}),n.d(t,"Pa",function(){return Zt}),n.d(t,"Qa",function(){return a}),n.d(t,"Ra",function(){return d}),n.d(t,"Sa",function(){return Er}),n.d(t,"Ta",function(){return Sr}),n.d(t,"Ua",function(){return lt}),n.d(t,"Va",function(){return T}),n.d(t,"Wa",function(){return _r}),n.d(t,"Xa",function(){return Ut}),n.d(t,"Ya",function(){return qe}),n.d(t,"Za",function(){return q}),n.d(t,"ab",function(){return Ve}),n.d(t,"bb",function(){return we}),n.d(t,"cb",function(){return ht}),n.d(t,"db",function(){return mn}),n.d(t,"eb",function(){return ue}),n.d(t,"fb",function(){return Gr}),n.d(t,"gb",function(){return fn}),n.d(t,"hb",function(){return k}),n.d(t,"ib",function(){return u}),n.d(t,"jb",function(){return Oe}),n.d(t,"kb",function(){return ke}),n.d(t,"lb",function(){return ft}),n.d(t,"mb",function(){return dt}),n.d(t,"nb",function(){return p}),n.d(t,"ob",function(){return K}),n.d(t,"pb",function(){return Me}),n.d(t,"qb",function(){return me}),n.d(t,"rb",function(){return ve}),n.d(t,"sb",function(){return H}),n.d(t,"tb",function(){return pe}); +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1313)}([function(e,t,n){"use strict";n.d(t,"a",function(){return Pr}),n.d(t,"b",function(){return In}),n.d(t,"c",function(){return ur}),n.d(t,"d",function(){return Xr}),n.d(t,"e",function(){return Vr}),n.d(t,"f",function(){return Kr}),n.d(t,"g",function(){return Br}),n.d(t,"h",function(){return En}),n.d(t,"i",function(){return kn}),n.d(t,"j",function(){return Pt}),n.d(t,"k",function(){return qr}),n.d(t,"l",function(){return Hr}),n.d(t,"m",function(){return Sr}),n.d(t,"n",function(){return Sn}),n.d(t,"o",function(){return Cn}),n.d(t,"p",function(){return xn}),n.d(t,"q",function(){return Qr}),n.d(t,"r",function(){return yn}),n.d(t,"s",function(){return zr}),n.d(t,"t",function(){return An}),n.d(t,"u",function(){return Y}),n.d(t,"v",function(){return ce}),n.d(t,"w",function(){return F}),n.d(t,"x",function(){return Se}),n.d(t,"y",function(){return Te}),n.d(t,"z",function(){return c}),n.d(t,"A",function(){return Wt}),n.d(t,"B",function(){return w}),n.d(t,"C",function(){return fe}),n.d(t,"D",function(){return vn}),n.d(t,"E",function(){return Wr}),n.d(t,"F",function(){return xe}),n.d(t,"G",function(){return Le}),n.d(t,"H",function(){return _e}),n.d(t,"I",function(){return N}),n.d(t,"J",function(){return P}),n.d(t,"K",function(){return D}),n.d(t,"L",function(){return Hn}),n.d(t,"M",function(){return O}),n.d(t,"N",function(){return ie}),n.d(t,"O",function(){return i}),n.d(t,"P",function(){return rt}),n.d(t,"Q",function(){return pn}),n.d(t,"R",function(){return St}),n.d(t,"S",function(){return Rn}),n.d(t,"T",function(){return $t}),n.d(t,"U",function(){return We}),n.d(t,"V",function(){return X}),n.d(t,"W",function(){return x}),n.d(t,"X",function(){return U}),n.d(t,"Y",function(){return be}),n.d(t,"Z",function(){return ge}),n.d(t,"Aa",function(){return m}),n.d(t,"Ba",function(){return b}),n.d(t,"Ca",function(){return ye}),n.d(t,"Da",function(){return $e}),n.d(t,"Ea",function(){return g}),n.d(t,"Fa",function(){return y}),n.d(t,"Ga",function(){return xt}),n.d(t,"Ha",function(){return wn}),n.d(t,"Ia",function(){return R}),n.d(t,"Ja",function(){return Mn}),n.d(t,"Ka",function(){return Nt}),n.d(t,"La",function(){return S}),n.d(t,"Ma",function(){return tt}),n.d(t,"Na",function(){return Bn}),n.d(t,"Oa",function(){return It}),n.d(t,"Pa",function(){return Zt}),n.d(t,"Qa",function(){return a}),n.d(t,"Ra",function(){return d}),n.d(t,"Sa",function(){return Er}),n.d(t,"Ta",function(){return xr}),n.d(t,"Ua",function(){return lt}),n.d(t,"Va",function(){return T}),n.d(t,"Wa",function(){return _r}),n.d(t,"Xa",function(){return Ut}),n.d(t,"Ya",function(){return qe}),n.d(t,"Za",function(){return q}),n.d(t,"ab",function(){return Ve}),n.d(t,"bb",function(){return we}),n.d(t,"cb",function(){return ht}),n.d(t,"db",function(){return mn}),n.d(t,"eb",function(){return ue}),n.d(t,"fb",function(){return Gr}),n.d(t,"gb",function(){return fn}),n.d(t,"hb",function(){return k}),n.d(t,"ib",function(){return u}),n.d(t,"jb",function(){return Oe}),n.d(t,"kb",function(){return ke}),n.d(t,"lb",function(){return ft}),n.d(t,"mb",function(){return dt}),n.d(t,"nb",function(){return p}),n.d(t,"ob",function(){return K}),n.d(t,"pb",function(){return Me}),n.d(t,"qb",function(){return me}),n.d(t,"rb",function(){return ve}),n.d(t,"sb",function(){return H}),n.d(t,"tb",function(){return pe}); /*! FullCalendar Core Package v4.3.1 Docs & License: https://fullcalendar.io/ (c) 2019 Adam Shaw */ -var r={className:!0,colSpan:!0,rowSpan:!0},o={"=t.left&&e.left=t.top&&e.top");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return p(e),t}()),E}function C(e){return e=Math.max(0,e),e=Math.round(e)}function L(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=C(e.offsetWidth-e.clientWidth-r-o),l={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:C(e.offsetHeight-e.clientHeight-i-a),scrollbarLeft:0,scrollbarRight:0};return A()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function P(e,t){void 0===t&&(t=!1);var n=D(e),r=L(e,t),o={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}function D(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function I(e){return e.getBoundingClientRect().height+j(e)}function j(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function R(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function N(e){return R(e).map(function(e){return P(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){return T(e,t)||t})}function z(e){e.preventDefault()}function q(e,t,n,r){function o(e){var t=m(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var W=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function H(e,t){var n=function(r){t(r),W.forEach(function(t){e.removeEventListener(t,n)})};W.forEach(function(t){e.addEventListener(t,n)})}var B=["sun","mon","tue","wed","thu","fri","sat"];function F(e,t){var n=$(e);return n[2]+=7*t,ee(n)}function Y(e,t){var n=$(e);return n[2]+=t,ee(n)}function G(e,t){var n=$(e);return n[6]+=t,ee(n)}function U(e,t){return X(e,t)/7}function X(e,t){return(t.valueOf()-e.valueOf())/864e5}function V(e,t){return ne(e)===ne(t)?Math.round(X(e,t)):null}function K(e){return ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Q(e,t,n,r){var o=ee([t,0,1+function(e,t,n){var r=7+t-n;return-(7+ee([e,0,r]).getUTCDay()-t)%7+r-1}(t,n,r)]),i=K(e),a=Math.round(X(o,i));return Math.floor(a/7)+1}function J(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Z(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function $(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ee(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function te(e){return!isNaN(e.valueOf())}function ne(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var re=["years","months","days","milliseconds"],oe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ie(e,t){var n;return"string"==typeof e?function(e){var t=oe.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?ae(e):"number"==typeof e?ae(((n={})[t||"milliseconds"]=e,n)):null}function ae(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*se(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function se(e){return e.weeks||e.week||0}function le(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function ce(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ue(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function de(e){return fe(e)/864e5}function fe(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function pe(e,t){for(var n=null,r=0;rt&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function Me(e,t){var n={position:"relative",left:-1};w(e,n),w(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,o={position:"",left:""};return w(e,o),w(t,o),r}function ke(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",z)}function Te(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",z)}function Oe(e){e.addEventListener("contextmenu",z)}function xe(e){e.removeEventListener("contextmenu",z)}function Se(e,t,n){var r,o;for(r=0;r=fe(t)&&(r=Y(r,1))}return e.start&&(n=K(e.start),r&&r<=n&&(r=Y(n,1))),{start:n,end:r}}function qe(e){var t=ze(e);return X(t.start,t.end)>1}function We(e,t,n,r){return"year"===r?ie(n.diffWholeYears(e,t),"year"):"month"===r?ie(n.diffWholeMonths(e,t),"month"):function(e,t){var n=K(e),r=K(t);return{years:0,months:0,days:Math.round(X(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)} +var r={className:!0,colSpan:!0,rowSpan:!0},o={"=t.left&&e.left=t.top&&e.top");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return p(e),t}()),E}function C(e){return e=Math.max(0,e),e=Math.round(e)}function L(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=C(e.offsetWidth-e.clientWidth-r-o),l={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:C(e.offsetHeight-e.clientHeight-i-a),scrollbarLeft:0,scrollbarRight:0};return A()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function P(e,t){void 0===t&&(t=!1);var n=D(e),r=L(e,t),o={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}function D(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function I(e){return e.getBoundingClientRect().height+j(e)}function j(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function R(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function N(e){return R(e).map(function(e){return P(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){return T(e,t)||t})}function z(e){e.preventDefault()}function q(e,t,n,r){function o(e){var t=m(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var W=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function H(e,t){var n=function(r){t(r),W.forEach(function(t){e.removeEventListener(t,n)})};W.forEach(function(t){e.addEventListener(t,n)})}var B=["sun","mon","tue","wed","thu","fri","sat"];function F(e,t){var n=$(e);return n[2]+=7*t,ee(n)}function Y(e,t){var n=$(e);return n[2]+=t,ee(n)}function G(e,t){var n=$(e);return n[6]+=t,ee(n)}function U(e,t){return X(e,t)/7}function X(e,t){return(t.valueOf()-e.valueOf())/864e5}function V(e,t){return ne(e)===ne(t)?Math.round(X(e,t)):null}function K(e){return ee([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Q(e,t,n,r){var o=ee([t,0,1+function(e,t,n){var r=7+t-n;return-(7+ee([e,0,r]).getUTCDay()-t)%7+r-1}(t,n,r)]),i=K(e),a=Math.round(X(o,i));return Math.floor(a/7)+1}function J(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Z(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function $(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ee(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function te(e){return!isNaN(e.valueOf())}function ne(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var re=["years","months","days","milliseconds"],oe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ie(e,t){var n;return"string"==typeof e?function(e){var t=oe.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?ae(e):"number"==typeof e?ae(((n={})[t||"milliseconds"]=e,n)):null}function ae(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*se(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function se(e){return e.weeks||e.week||0}function le(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function ce(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ue(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function de(e){return fe(e)/864e5}function fe(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function pe(e,t){for(var n=null,r=0;rt&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function Me(e,t){var n={position:"relative",left:-1};w(e,n),w(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,o={position:"",left:""};return w(e,o),w(t,o),r}function ke(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",z)}function Te(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",z)}function Oe(e){e.addEventListener("contextmenu",z)}function Se(e){e.removeEventListener("contextmenu",z)}function xe(e,t,n){var r,o;for(r=0;r=fe(t)&&(r=Y(r,1))}return e.start&&(n=K(e.start),r&&r<=n&&(r=Y(n,1))),{start:n,end:r}}function qe(e){var t=ze(e);return X(t.start,t.end)>1}function We(e,t,n,r){return"year"===r?ie(n.diffWholeYears(e,t),"year"):"month"===r?ie(n.diffWholeMonths(e,t),"month"):function(e,t){var n=K(e),r=K(t);return{years:0,months:0,days:Math.round(X(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -18,7 +18,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var He=function(e,t){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Be(e,t){function n(){this.constructor=e}He(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fe=function(){return(Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;i--)if("object"==typeof(a=e[i][r])&&a)o.unshift(a);else if(void 0!==a){l[r]=a;break}o.length&&(l[r]=Ue(o))}for(n=e.length-1;n>=0;n--)for(r in s=e[n])r in l||(l[r]=s[r]);return l}function Xe(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ve(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Ke(e){for(var t={},n=0,r=e;ni&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function ft(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(a=1);var s=this.format(e,n),l=this.format(t,n);if(s===l)return s;var c=kt(function(e,t){var n={};for(var r in e)r in mt&&!(mt[r]<=t)||(n[r]=e[r]);return n}(r,a),o,n),u=c(e),d=c(t),f=function(e,t,n,r){var o=0;for(;o/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function $t(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function en(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var tn={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:en,classNames:en,color:String,backgroundColor:String,borderColor:String,textColor:String};function nn(e,t,n){var r=Re(e,tn,{},n),o=function(e,t){return Array.isArray(e)?Ze(e,"",t,!0):"object"==typeof e&&e?Ze([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=o?[o]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function rn(e,t,n,r){var o={},i={};for(var a in tn){var s=e+Ae(a);o[a]=t[s],i[s]=!0}if("event"===e&&(o.editable=t.editable),r)for(var a in t)i[a]||(r[a]=t[a]);return nn(o,n)}var on={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function an(e){return e.reduce(sn,on)}function sn(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var ln={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},cn={start:null,date:null,end:null,allDay:null},un=0;function dn(e,t,n,r){var o=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),i={},a=function(e,t,n,r,o){for(var i=0;i'+r+"":""+r+""}function wn(e){return e.opt("allDayHtml")||Zt(e.opt("allDayText"))}function Mn(e,t,n,r){var o,i,a=n.calendar,s=n.view,l=n.theme,c=n.dateEnv,u=[];return ft(t.activeRange,e)?(u.push("fc-"+B[e.getUTCDay()]),s.opt("monthMode")&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&u.push("fc-other-month"),i=Y(o=K(a.getNow()),1),e=i?u.push("fc-future"):(u.push("fc-today"),!0!==r&&u.push(l.getClass("today")))):u.push("fc-disabled-day"),u}var kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t.prototype.on=function(e,t){return Tn(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return Tn(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&On(this._handlers,e,t),this._oneHandlers&&On(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=200&&a.status<400)try{var e=JSON.parse(a.responseText);r(e,a)}catch(e){o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function qn(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function Wn(e,t,n){for(var r=Qe(t.state.eventSources),o=[],i=0,a=e;i0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},o=n.concat(Qe(r),e),i={en:Un},a=0,s=o;a0;o--){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||Un;return Kn(e,n,r)}(e,t):Kn(e.code,[e.code],e)}function Kn(e,t,n){var r=Ue([Un,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Qn=function(){function e(e){this.overrides=Fe({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,n){var r=n?this.dynamicOverrides:this.overrides;Fe(r,e);for(var o=0,i=t;o=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=G(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Et(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ee(J(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ee(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-Z($(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray($(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?Z($(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray($(e))*60):new Date(e.valueOf()-(t||0))},e}(),er={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},tr=0;function nr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function rr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var o=n[r].parseMeta(e);if(o){var i=or("object"==typeof e?e:{},o,r,t);return i._raw=e,i}}return null}function or(e,t,n,r){var o={},i=Re(e,er,{},o),a={},s=nn(o,r,a);return i.isFetching=!1,i.latestFetchId="",i.fetchRange=null,i.publicId=String(e.id||""),i.sourceId=String(tr++),i.sourceDefId=n,i.meta=t,i.ui=s,i.extendedProps=a,i}function ir(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var o={},i=0,a=t;ie.fetchRange.end:!e.latestFetchId}(e,t,n)}),t,n)}function lr(e,t,n,r){var o={};for(var i in e){var a=e[i];t[i]?o[i]=cr(a,n,r):o[i]=a}return o}function cr(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],o=String(ar++);return r.fetch({eventSource:e,calendar:n,range:t},function(r){var i,a,s=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(a=e.success(s,r.xhr)),l&&(i=l(s,r.xhr)),s=a||i||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:s})},function(r){var i=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),i&&i(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:r})}),Fe({},e,{isFetching:!0,latestFetchId:o})}var ur=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){var r;void 0===n&&(n=!1);var o,i,a,s,l,c,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e=t.end?new Date(t.end.valueOf()-1):e}(e,r)),a=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),c=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(c=lt(c,a.range)),o=ie(this.options.minTime),i=ie(this.options.maxTime),c=lt(c=this.adjustActiveRange(c,o,i),r),u=ut(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,minTime:o,maxTime:i,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,o=this.dateEnv,i=null,a=null,s=null;return r.duration?(i=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,i,a)):(n=this.options.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=o.greatestWholeUnit(s.start,s.end).unit:(a=he(i=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,i,a)),{duration:i,unit:a,range:s}},e.prototype.getFallbackDuration=function(){return ie({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,o=e.start,i=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(de(t)<0&&(o=K(o),o=r.add(o,t)),de(n)>1&&(i=Y(i=K(i),-1),i=r.add(i,n))),{start:o,end:i}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s,l,c=this.dateEnv,u=this.options.dateAlignment;function d(){a=c.startOf(e,u),s=c.add(a,n),l={start:a,end:s}}return u||((o=this.options.dateIncrement)?(i=ie(o),u=fe(i) ")),h=!1):((i=d[e])?(u=function(e){i.click&&i.click.call(g,e)},(_=r.getCustomButtonIconClass(i))||(_=r.getIconClass(e))||(m=i.text)):(c=l[e])?(n.viewsWithButtons.push(e),u=function(){o.changeView(e)},(m=c.buttonTextOverride)||(_=r.getIconClass(e))||(m=c.buttonTextDefault)):o[e]&&(u=function(){o[e]()},(m=f[e])||(_=r.getIconClass(e))||(m=p[e])),u&&(y=["fc-"+e+"-button",r.getClass("button")],m?(b=Zt(m),v=""):_&&(b="",v=' aria-label="'+e+'"'),(g=a('")).addEventListener("click",u),s.push(g)))}),s.length>1){i=document.createElement("div");var _=r.getClass("buttonGroup");h&&_&&i.classList.add(_),c(i,s),u.appendChild(i)}else c(u,s)}),u},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){y(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.updateActiveButton=function(e){var t=this.theme.getClass("buttonActive");y(this.el,"button").forEach(function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(e,t){y(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},t}(Dn),kr=function(e){function t(t,n){var r=e.call(this,t)||this;r._renderToolbars=mn(r.renderToolbars),r.buildViewPropTransformers=ht(Or),r.el=n,u(n,r.contentEl=i("div",{className:"fc-view-container"}));for(var o=r.calendar,a=0,s=o.pluginSystem.hooks.viewContainerModifiers;a1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function Or(e){return e.map(function(e){return new e})}var xr=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function Sr(e){var t;return(t={})[e.component.uid]=e,t}var Er={},Ar=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,o=Nt(t);if(o&&r.isValidSegDownEl(e.target)){var i=m(e.target,".fc-has-url"),a=i?i.querySelector("a[href]").href:"";r.publiclyTrigger("eventClick",[{el:t,event:new Pt(r.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.view}]),a&&!e.defaultPrevented&&(window.location.href=a)}};var r=t.component;return n.destroy=q(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return Be(t,e),t}(xr),Cr=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Nt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r=t.component;return n.removeHoverListeners=function(e,t,n,r){var o;return q(e,"mouseover",t,function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}(r.el,r.fgSegSelector+","+r.bgSegSelector,n.handleSegEnter,n.handleSegLeave),r.calendar.on("eventElRemove",n.handleEventElRemove),n}return Be(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=Nt(n);t&&!r.isValidSegDownEl(t.target)||r.publiclyTrigger(e,[{el:n,event:new Pt(this.component.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:r.view}])},t}(xr),Lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t}(Ln);Lr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Lr.prototype.baseIconClass="fc-icon",Lr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Lr.prototype.iconOverrideOption="buttonIcons",Lr.prototype.iconOverrideCustomButtonOption="icon",Lr.prototype.iconOverridePrefix="fc-icon-";var Pr=function(){function e(e,t){var n=this;this.parseRawLocales=ht(Xn),this.buildLocale=ht(Vn),this.buildDateEnv=ht(Dr),this.buildTheme=ht(Ir),this.buildEventUiSingleBase=ht(this._buildEventUiSingleBase),this.buildSelectionConfig=ht(this._buildSelectionConfig),this.buildEventUiBySource=function(e,t){var n=null;return function(){var r=e.apply(this,arguments);return(null===n||n!==r&&!t(n,r))&&(n=r),n}}(Rr,Je),this.buildEventUiBases=ht(Nr),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=ht(jr),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new Qn(t||{}),this.pluginSystem=new Nn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],n=0,r=e;n"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(p),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),Br=(function(){}(),function(){function e(e){this.emitter=new kn}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}());var Fr={startTime:ie,duration:ie,create:Boolean,sourceId:String},Yr={create:!0};function Gr(e){var t={},n=Re(e,Fr,Yr,t);return n.leftoverProps=t,n}function Ur(e,t,n,r,o,i,a,s){var l,c=i.view,u=i.dateEnv,d=i.theme,f=i.options,p=ft(t.activeRange,e),h=["fc-day-header",d.getClass("widgetHeader")];return l="function"==typeof f.columnHeaderHtml?f.columnHeaderHtml(u.toDate(e)):"function"==typeof f.columnHeaderText?Zt(f.columnHeaderText(u.toDate(e))):Zt(u.format(e,o)),n?h=h.concat(Mn(e,t,i,!0)):h.push("fc-"+B[e.getUTCDay()]),'1?' colspan="'+a+'"':"")+(s?" "+s:"")+">"+(p?vn(c,{date:e,forceOff:!n||1===r},l):l)+""}var Xr=function(e){function t(t,n){var r=e.call(this,t)||this;return n.innerHTML="",n.appendChild(r.el=a('
')),r.thead=r.el.querySelector("thead"),r}return Be(t,e),t.prototype.destroy=function(){p(this.el)},t.prototype.render=function(e){var t=e.dates,n=e.datesRepDistinctDays,r=[];e.renderIntroHtml&&r.push(e.renderIntroHtml());for(var o=xt(this.opt("columnHeaderFormat")||function(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(n,t.length)),i=0,a=t;i"+r.join("")+""},t}(Dn),Vr=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),Kr=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function Y(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return q(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e,t){return e.isValid()?(t=X(t,e.localeData()),B[t]=B[t]||function(e){var t,n,r=e.match(W);for(t=0,n=r.length;t=0&&H.test(e);)e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var V=/\d/,K=/\d\d/,Q=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function de(e,t,n){ue[e]=C(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var Ae,Ce=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(De(this,e,n),o.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function De(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}Ae=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ye(e,t,n){var r=7+t-n,o=(7+Fe(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Ge(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ye(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Se(i=e-1)+c:c>Se(e)?(i=e+1,a=c-Se(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ue(e,t,n){var r,o,i=Ye(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Xe(o,t,n)):a>Xe(e.year(),t,n)?(r=a-Xe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Xe(e,t,n){var r=Ye(e,t,n),o=Ye(e+1,t,n);return(Se(e)-r+o)/7}function Ve(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),z("week",5),z("isoWeek",5),de("w",$),de("ww",$,K),de("W",$),de("WW",$,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),de("d",$),de("e",$),de("E",$),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,$e=ce,et=ce;function tt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),l[t]=pe(l[t]),c[t]=pe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,nt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+nt.apply(this)+q(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+nt.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),rt("a",!0),rt("A",!1),I("hour","h"),z("hour",13),de("a",ot),de("A",ot),de("H",$),de("h",$),de("k",$),de("HH",$,K),de("hh",$,K),de("kk",$,K),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=k(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=k(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r,2)),t[ke]=k(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r,2)),t[ke]=k(e.substr(o))});var it,at=Le("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Je,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},lt={},ct={};function ut(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!lt[t]&&void 0!==e&&e&&e.exports)try{r=it._abbr,n(1066)("./"+t),ft(r)}catch(e){}return lt[t]}function ft(e,t){var n;return e&&((n=s(t)?ht(e):pt(e,t))?it=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function pt(e,t){if(null!==t){var n,r=st;if(t.abbr=e,null!=lt[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=lt[e]._config;else if(null!=t.parentLocale)if(null!=lt[t.parentLocale])r=lt[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return lt[e]=new P(L(r,t)),ct[e]&&ct[e].forEach(function(e){pt(e.name,e.config)}),ft(e),lt[e]}return delete lt[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!i(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=dt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return it}(e)}function _t(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>Ie(n[ye],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[Me]||0!==n[ke]||0!==n[Te])?we:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>999?Te:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Oe),h(e)._overflowWeekday&&-1===t&&(t=xe),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function bt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=mt(t.GG,e._a[ye],Ue(Pt(),1,4).year),r=mt(t.W,1),((o=mt(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=Ue(Pt(),i,a);n=mt(t.gg,e._a[ye],c.year),r=mt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Xe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ge(n,r,o,i,a),e._a[ye]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=mt(e._a[ye],r[ye]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Fe(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[Me]&&0===e._a[ke]&&0===e._a[Te]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Fe:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,o,i,a,s=e._i,l=yt.exec(s)||gt.exec(s);if(l){for(h(e).iso=!0,t=0,n=wt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),F[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),bt(e),_t(e)}else Et(e);else Tt(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(_t(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function jt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-cn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cn:Date.UTC(e,t,n)}function pn(e,t){Y(0,[e,e.length],0,t)}function hn(e,t,n,r,o){var i;return null==e?Ue(this,r,o).year:(i=Xe(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=Ge(e,t,n,r,o),a=Fe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",$,K),de("gg",$,K),de("GGGG",re,J),de("gggg",re,J),de("GGGGG",oe,Z),de("ggggg",oe,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),I("quarter","Q"),z("quarter",7),de("Q",V),_e("Q",function(e,t){t[ge]=3*(k(e)-1)}),Y("D",["DD",2],"Do","date"),I("date","D"),z("date",9),de("D",$),de("DD",$,K),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=k(e.match($)[0])});var _n=Le("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),z("dayOfYear",4),de("DDD",ne),de("DDDD",Q),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),Y("m",["mm",2],0,"minute"),I("minute","m"),z("minute",14),de("m",$),de("mm",$,K),_e(["m","mm"],Me);var mn=Le("Minutes",!1);Y("s",["ss",2],0,"second"),I("second","s"),z("second",15),de("s",$),de("ss",$,K),_e(["s","ss"],ke);var bn,yn=Le("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),z("millisecond",16),de("S",ne,V),de("SS",ne,K),de("SSS",ne,Q),bn="SSSS";bn.length<=9;bn+="S")de(bn,ie);function gn(e,t){t[Te]=k(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")_e(bn,gn);var vn=Le("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var wn=v.prototype;function Mn(e){return e}wn.add=$t,wn.calendar=function(e,t){var n=e||Pt(),r=Ft(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(C(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Pt(n)))},wn.clone=function(){return new v(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":i=tn(this,r)/12;break;case"month":i=tn(this,r);break;case"quarter":i=tn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:M(i)},wn.endOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ln-un(t+(this._isUTC?0:this.utcOffset()*sn),ln)-1;break;case"minute":t=this._d.valueOf(),t+=sn-un(t,sn)-1;break;case"second":t=this._d.valueOf(),t+=an-un(t,an)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Pt(),e)},wn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Pt(),e)},wn.get=function(e){return C(this[e=j(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=w(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Ce,wn.isLeapYear=function(){return Ee(this.year())},wn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=qe,wn.daysInMonth=function(){return Ie(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},wn.date=_n,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=at,wn.minute=wn.minutes=mn,wn.second=wn.seconds=yn,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Bt(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Yt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Bt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Gt,wn.isUTC=Gt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=x("dates accessor is deprecated. Use date instead.",_n),wn.months=x("months accessor is deprecated. Use month instead",qe),wn.years=x("years accessor is deprecated. Use year instead",Ce),wn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),wn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ct(e))._a){var t=e._isUTC?p(e._a):Pt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var kn=P.prototype;function Tn(e,t,n,r){var o=ht(),i=p().set(r,t);return o[n](i,e)}function On(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Tn(e,r,n,"month");return o}function xn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ht(),a=e?i._week.dow:0;if(null!=n)return Tn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=Tn(t,(o+a)%7,r,"day");return s}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=Mn,kn.postformat=Mn,kn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return C(o)?o(e,t,n,r):o.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)C(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ae.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ae.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ae.call(this._shortMonthsParse,a))?o:-1!==(o=Ae.call(this._longMonthsParse,a))?o:null:-1!==(o=Ae.call(this._longMonthsParse,a))?o:-1!==(o=Ae.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ve(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?Ve(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?Ve(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ae.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=x("moment.lang is deprecated. Use moment.locale instead.",ft),o.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ht);var Sn=Math.abs;function En(e,t,n,r){var o=Vt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function An(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function Ln(e){return 146097*e/4800}function Pn(e){return function(){return this.as(e)}}var Dn=Pn("ms"),In=Pn("s"),jn=Pn("m"),Rn=Pn("h"),Nn=Pn("d"),zn=Pn("w"),qn=Pn("M"),Wn=Pn("Q"),Hn=Pn("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Bn("milliseconds"),Yn=Bn("seconds"),Gn=Bn("minutes"),Un=Bn("hours"),Xn=Bn("days"),Vn=Bn("months"),Kn=Bn("years"),Qn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,M:11},Zn=Math.abs;function $n(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,r=Zn(this._days),o=Zn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var i=M(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=$n(this._months)!==$n(d)?"-":"",h=$n(this._days)!==$n(d)?"-":"",_=$n(this._milliseconds)!==$n(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?_+l+"H":"")+(c?_+c+"M":"")+(u?_+u+"S":"")}var tr=Nt.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=Sn(this._milliseconds),this._days=Sn(this._days),this._months=Sn(this._months),e.milliseconds=Sn(e.milliseconds),e.seconds=Sn(e.seconds),e.minutes=Sn(e.minutes),e.hours=Sn(e.hours),e.months=Sn(e.months),e.years=Sn(e.years),this},tr.add=function(e,t){return En(this,e,t,1)},tr.subtract=function(e,t){return En(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ln(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},tr.asMilliseconds=Dn,tr.asSeconds=In,tr.asMinutes=jn,tr.asHours=Rn,tr.asDays=Nn,tr.asWeeks=zn,tr.asMonths=qn,tr.asQuarters=Wn,tr.asYears=Hn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*An(Ln(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=M(i/1e3),l.seconds=e%60,t=M(e/60),l.minutes=t%60,n=M(t/60),l.hours=n%24,a+=M(n/24),o=M(Cn(a)),s+=o,a-=An(Ln(o)),r=M(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},tr.clone=function(){return Vt(this)},tr.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Fn,tr.seconds=Yn,tr.minutes=Gn,tr.hours=Un,tr.days=Xn,tr.weeks=function(){return M(this.days()/7)},tr.months=Vn,tr.years=Kn,tr.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Vt(e).abs(),o=Qn(r.as("s")),i=Qn(r.as("m")),a=Qn(r.as("h")),s=Qn(r.as("d")),l=Qn(r.as("M")),c=Qn(r.as("y")),u=o<=Jn.ss&&["s",o]||o0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=nn,tr.localeData=on,tr.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=rn,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(k(e))}),o.version="2.24.0",function(e){t=e}(Pt),o.fn=wn,o.min=function(){return jt("isBefore",[].slice.call(arguments,0))},o.max=function(){return jt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Pt(1e3*e)},o.months=function(e,t){return On(e,t,"months")},o.isDate=c,o.locale=ft,o.invalid=m,o.duration=Vt,o.isMoment=w,o.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},o.parseZone=function(){return Pt.apply(null,arguments).parseZone()},o.localeData=ht,o.isDuration=zt,o.monthsShort=function(e,t){return On(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},o.defineLocale=pt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=st;null!=(r=dt(e))&&(o=r._config),t=L(o,t),(n=new P(t)).parentLocale=lt[e],lt[e]=n,ft(e)}else null!=lt[e]&&(null!=lt[e].parentLocale?lt[e]=lt[e].parentLocale:null!=lt[e]&&delete lt[e]);return lt[e]},o.locales=function(){return S(lt)},o.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},o.normalizeUnits=j,o.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=wn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(3)(e))},function(e,t,n){var r=n(15),o=n(25),i=n(51),a=n(46),s=n(64),l=function(e,t,n){var c,u,d,f,p=e&l.F,h=e&l.G,_=e&l.S,m=e&l.P,b=e&l.B,y=h?r:_?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?o:o[t]||(o[t]={}),v=g.prototype||(g.prototype={});for(c in h&&(n=t),n)d=((u=!p&&y&&void 0!==y[c])?y:n)[c],f=b&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),g[c]!=d&&i(g,c,f),m&&v[c]!=d&&(v[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var o=n(2),i=n.n(o),a=n(1),s=n.n(a),l=i.a.createContext(null),c=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){var n=t.getState();e._isMounted&&e.setState(function(e){return e.storeState===n?null:{storeState:n}})});var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||l;return i.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(o.Component);c.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var u=c;function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var p=n(298),h=n.n(p),_=n(7),m=n.n(_),b=n(295);function y(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,u=void 0===c?"connectAdvanced":c,p=n.renderCountProp,_=void 0===p?void 0:p,y=n.shouldHandleStateChanges,g=void 0===y||y,v=n.storeKey,w=void 0===v?"store":v,M=n.withRef,k=void 0!==M&&M,T=n.forwardRef,O=void 0!==T&&T,x=n.context,S=void 0===x?l:x,E=f(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);m()(void 0===_,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),m()(!k,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var A="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect";m()("store"===w,"storeKey has been removed and does not do anything. "+A);var C=S;return function(t){var n=t.displayName||t.name||"Component",a=s(n),l=d({},E,{getDisplayName:s,methodName:u,renderCountProp:_,shouldHandleStateChanges:g,storeKey:w,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=E.pure,f=o.Component;c&&(f=o.PureComponent);var p=function(n){function o(t){var r;return r=n.call(this,t)||this,m()(O?!t.wrapperProps[w]:!t[w],"Passing redux store in props has been removed and does not do anything. "+A),r.selectDerivedProps=function(){var t,n,r,o,i,a;return function(s,l,u,d){if(c&&t===l&&n===s)return r;u===o&&i===d||(o=u,i=d,a=e(u.dispatch,d)),t=l,n=s;var f=a(s,l);return r=f}}(),r.selectChildElement=function(){var e,t,n,r;return function(o,a,s){return a===e&&s===t&&r===o||(e=a,t=s,r=o,n=i.a.createElement(o,d({},a,{ref:s}))),n}}(),r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}r(o,n);var s=o.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){m()(e,'Could not find "store" in the context of "'+a+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+a+" in connect options.");var n,r=e.storeState,o=e.store,i=this.props;O&&(i=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,i,o,l);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(b.isContextConsumer)(i.a.createElement(this.props.context.Consumer,null))?this.props.context:C;return i.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(f);if(p.WrappedComponent=t,p.displayName=a,O){var y=i.a.forwardRef(function(e,t){return i.a.createElement(p,{wrapperProps:e,forwardedRef:t})});return y.displayName=a,y.WrappedComponent=t,h()(y,t)}return h()(p,t)}}var g=Object.prototype.hasOwnProperty;function v(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function w(e,t){if(v(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function I(e,t){return e===t}var j=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?y:n,o=t.mapStateToPropsFactories,i=void 0===o?S:o,a=t.mapDispatchToPropsFactories,s=void 0===a?x:a,l=t.mergePropsFactories,c=void 0===l?A:l,u=t.selectorFactory,p=void 0===u?P:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,h=a.areStatesEqual,_=void 0===h?I:h,m=a.areOwnPropsEqual,b=void 0===m?w:m,y=a.areStatePropsEqual,g=void 0===y?w:y,v=a.areMergedPropsEqual,M=void 0===v?w:v,k=f(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),T=D(e,i,"mapStateToProps"),O=D(t,s,"mapDispatchToProps"),x=D(n,c,"mergeProps");return r(p,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:T,initMapDispatchToProps:O,initMergeProps:x,pure:u,areStatesEqual:_,areOwnPropsEqual:b,areStatePropsEqual:g,areMergedPropsEqual:M},k))}}();n.d(t,"Provider",function(){return u}),n.d(t,"connectAdvanced",function(){return y}),n.d(t,"ReactReduxContext",function(){return l}),n.d(t,"connect",function(){return j})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(1114),o=n(184).isArray,i=n(184).isDate,a=n(1111).sprintf,s=n(266),l=n(1110),c=n(1108);function u(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function d(e){return u(e)&&":"===e[0]}function f(e,t){return t.reduce(function(e,t){return function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}(e)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null},e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(1106)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,r(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return r(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!o(e)&&!u(e)||!e.length)throw new Error("invalid argument: key");d(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=r(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var l=this._normalizeKeys(n,i,e,a),c=f(this._registry.translations,l);if(null===c&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(c=this._fallback(n,i,e,t.fallback,t))),null===c&&s.length>0&&-1===s.indexOf(n))for(var p=0,h=s.length;p=0;i--)""===r[i]&&(r.splice(i,1),!0===this._registry.keepTrailingDot&&i==r.length&&(r[r.length-1]+=""+t));return r}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,r({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if(function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}(o)){var s;i.object?(s=i.object,delete i.object):s=n,a=this._resolve(e,t,n,o(s,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=l(i,"fallback"),o(r)){for(var a=0,s=r.length;a=0;i--)if("object"==typeof(a=e[i][r])&&a)o.unshift(a);else if(void 0!==a){l[r]=a;break}o.length&&(l[r]=Ue(o))}for(n=e.length-1;n>=0;n--)for(r in s=e[n])r in l||(l[r]=s[r]);return l}function Xe(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ve(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Ke(e){for(var t={},n=0,r=e;ni&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function ft(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(a=1);var s=this.format(e,n),l=this.format(t,n);if(s===l)return s;var c=kt(function(e,t){var n={};for(var r in e)r in mt&&!(mt[r]<=t)||(n[r]=e[r]);return n}(r,a),o,n),u=c(e),d=c(t),f=function(e,t,n,r){var o=0;for(;o/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function $t(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function en(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var tn={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:en,classNames:en,color:String,backgroundColor:String,borderColor:String,textColor:String};function nn(e,t,n){var r=Re(e,tn,{},n),o=function(e,t){return Array.isArray(e)?Ze(e,"",t,!0):"object"==typeof e&&e?Ze([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=o?[o]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function rn(e,t,n,r){var o={},i={};for(var a in tn){var s=e+Ae(a);o[a]=t[s],i[s]=!0}if("event"===e&&(o.editable=t.editable),r)for(var a in t)i[a]||(r[a]=t[a]);return nn(o,n)}var on={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function an(e){return e.reduce(sn,on)}function sn(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var ln={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},cn={start:null,date:null,end:null,allDay:null},un=0;function dn(e,t,n,r){var o=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),i={},a=function(e,t,n,r,o){for(var i=0;i'+r+"":""+r+""}function wn(e){return e.opt("allDayHtml")||Zt(e.opt("allDayText"))}function Mn(e,t,n,r){var o,i,a=n.calendar,s=n.view,l=n.theme,c=n.dateEnv,u=[];return ft(t.activeRange,e)?(u.push("fc-"+B[e.getUTCDay()]),s.opt("monthMode")&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&u.push("fc-other-month"),i=Y(o=K(a.getNow()),1),e=i?u.push("fc-future"):(u.push("fc-today"),!0!==r&&u.push(l.getClass("today")))):u.push("fc-disabled-day"),u}var kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t.prototype.on=function(e,t){return Tn(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return Tn(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&On(this._handlers,e,t),this._oneHandlers&&On(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=200&&a.status<400)try{var e=JSON.parse(a.responseText);r(e,a)}catch(e){o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function qn(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function Wn(e,t,n){for(var r=Qe(t.state.eventSources),o=[],i=0,a=e;i0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},o=n.concat(Qe(r),e),i={en:Un},a=0,s=o;a0;o--){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||Un;return Kn(e,n,r)}(e,t):Kn(e.code,[e.code],e)}function Kn(e,t,n){var r=Ue([Un,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Qn=function(){function e(e){this.overrides=Fe({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,n){var r=n?this.dynamicOverrides:this.overrides;Fe(r,e);for(var o=0,i=t;o=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=G(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Et(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ee(J(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ee(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-Z($(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray($(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?Z($(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray($(e))*60):new Date(e.valueOf()-(t||0))},e}(),er={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},tr=0;function nr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function rr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var o=n[r].parseMeta(e);if(o){var i=or("object"==typeof e?e:{},o,r,t);return i._raw=e,i}}return null}function or(e,t,n,r){var o={},i=Re(e,er,{},o),a={},s=nn(o,r,a);return i.isFetching=!1,i.latestFetchId="",i.fetchRange=null,i.publicId=String(e.id||""),i.sourceId=String(tr++),i.sourceDefId=n,i.meta=t,i.ui=s,i.extendedProps=a,i}function ir(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var o={},i=0,a=t;ie.fetchRange.end:!e.latestFetchId}(e,t,n)}),t,n)}function lr(e,t,n,r){var o={};for(var i in e){var a=e[i];t[i]?o[i]=cr(a,n,r):o[i]=a}return o}function cr(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],o=String(ar++);return r.fetch({eventSource:e,calendar:n,range:t},function(r){var i,a,s=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(a=e.success(s,r.xhr)),l&&(i=l(s,r.xhr)),s=a||i||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:s})},function(r){var i=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),i&&i(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:r})}),Fe({},e,{isFetching:!0,latestFetchId:o})}var ur=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){var r;void 0===n&&(n=!1);var o,i,a,s,l,c,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e=t.end?new Date(t.end.valueOf()-1):e}(e,r)),a=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),c=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(c=lt(c,a.range)),o=ie(this.options.minTime),i=ie(this.options.maxTime),c=lt(c=this.adjustActiveRange(c,o,i),r),u=ut(a.range,r),{validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,minTime:o,maxTime:i,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,o=this.dateEnv,i=null,a=null,s=null;return r.duration?(i=r.duration,a=r.durationUnit,s=this.buildRangeFromDuration(e,t,i,a)):(n=this.options.dayCount)?(a="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?a=o.greatestWholeUnit(s.start,s.end).unit:(a=he(i=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,i,a)),{duration:i,unit:a,range:s}},e.prototype.getFallbackDuration=function(){return ie({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,o=e.start,i=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(de(t)<0&&(o=K(o),o=r.add(o,t)),de(n)>1&&(i=Y(i=K(i),-1),i=r.add(i,n))),{start:o,end:i}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s,l,c=this.dateEnv,u=this.options.dateAlignment;function d(){a=c.startOf(e,u),s=c.add(a,n),l={start:a,end:s}}return u||((o=this.options.dateIncrement)?(i=ie(o),u=fe(i) ")),h=!1):((i=d[e])?(u=function(e){i.click&&i.click.call(g,e)},(_=r.getCustomButtonIconClass(i))||(_=r.getIconClass(e))||(m=i.text)):(c=l[e])?(n.viewsWithButtons.push(e),u=function(){o.changeView(e)},(m=c.buttonTextOverride)||(_=r.getIconClass(e))||(m=c.buttonTextDefault)):o[e]&&(u=function(){o[e]()},(m=f[e])||(_=r.getIconClass(e))||(m=p[e])),u&&(y=["fc-"+e+"-button",r.getClass("button")],m?(b=Zt(m),v=""):_&&(b="",v=' aria-label="'+e+'"'),(g=a('")).addEventListener("click",u),s.push(g)))}),s.length>1){i=document.createElement("div");var _=r.getClass("buttonGroup");h&&_&&i.classList.add(_),c(i,s),u.appendChild(i)}else c(u,s)}),u},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){y(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.updateActiveButton=function(e){var t=this.theme.getClass("buttonActive");y(this.el,"button").forEach(function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)})},t.prototype.toggleButtonEnabled=function(e,t){y(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},t}(Dn),kr=function(e){function t(t,n){var r=e.call(this,t)||this;r._renderToolbars=mn(r.renderToolbars),r.buildViewPropTransformers=ht(Or),r.el=n,u(n,r.contentEl=i("div",{className:"fc-view-container"}));for(var o=r.calendar,a=0,s=o.pluginSystem.hooks.viewContainerModifiers;a1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function Or(e){return e.map(function(e){return new e})}var Sr=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function xr(e){var t;return(t={})[e.component.uid]=e,t}var Er={},Ar=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,o=Nt(t);if(o&&r.isValidSegDownEl(e.target)){var i=m(e.target,".fc-has-url"),a=i?i.querySelector("a[href]").href:"";r.publiclyTrigger("eventClick",[{el:t,event:new Pt(r.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.view}]),a&&!e.defaultPrevented&&(window.location.href=a)}};var r=t.component;return n.destroy=q(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return Be(t,e),t}(Sr),Cr=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Nt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r=t.component;return n.removeHoverListeners=function(e,t,n,r){var o;return q(e,"mouseover",t,function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}(r.el,r.fgSegSelector+","+r.bgSegSelector,n.handleSegEnter,n.handleSegLeave),r.calendar.on("eventElRemove",n.handleEventElRemove),n}return Be(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=Nt(n);t&&!r.isValidSegDownEl(t.target)||r.publiclyTrigger(e,[{el:n,event:new Pt(this.component.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:r.view}])},t}(Sr),Lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t}(Ln);Lr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Lr.prototype.baseIconClass="fc-icon",Lr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Lr.prototype.iconOverrideOption="buttonIcons",Lr.prototype.iconOverrideCustomButtonOption="icon",Lr.prototype.iconOverridePrefix="fc-icon-";var Pr=function(){function e(e,t){var n=this;this.parseRawLocales=ht(Xn),this.buildLocale=ht(Vn),this.buildDateEnv=ht(Dr),this.buildTheme=ht(Ir),this.buildEventUiSingleBase=ht(this._buildEventUiSingleBase),this.buildSelectionConfig=ht(this._buildSelectionConfig),this.buildEventUiBySource=function(e,t){var n=null;return function(){var r=e.apply(this,arguments);return(null===n||n!==r&&!t(n,r))&&(n=r),n}}(Rr,Je),this.buildEventUiBases=ht(Nr),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=ht(jr),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new Qn(t||{}),this.pluginSystem=new Nn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],n=0,r=e;n"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(p),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),Br=(function(){}(),function(){function e(e){this.emitter=new kn}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}());var Fr={startTime:ie,duration:ie,create:Boolean,sourceId:String},Yr={create:!0};function Gr(e){var t={},n=Re(e,Fr,Yr,t);return n.leftoverProps=t,n}function Ur(e,t,n,r,o,i,a,s){var l,c=i.view,u=i.dateEnv,d=i.theme,f=i.options,p=ft(t.activeRange,e),h=["fc-day-header",d.getClass("widgetHeader")];return l="function"==typeof f.columnHeaderHtml?f.columnHeaderHtml(u.toDate(e)):"function"==typeof f.columnHeaderText?Zt(f.columnHeaderText(u.toDate(e))):Zt(u.format(e,o)),n?h=h.concat(Mn(e,t,i,!0)):h.push("fc-"+B[e.getUTCDay()]),'1?' colspan="'+a+'"':"")+(s?" "+s:"")+">"+(p?vn(c,{date:e,forceOff:!n||1===r},l):l)+""}var Xr=function(e){function t(t,n){var r=e.call(this,t)||this;return n.innerHTML="",n.appendChild(r.el=a('
')),r.thead=r.el.querySelector("thead"),r}return Be(t,e),t.prototype.destroy=function(){p(this.el)},t.prototype.render=function(e){var t=e.dates,n=e.datesRepDistinctDays,r=[];e.renderIntroHtml&&r.push(e.renderIntroHtml());for(var o=St(this.opt("columnHeaderFormat")||function(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(n,t.length)),i=0,a=t;i"+r.join("")+""},t}(Dn),Vr=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),Kr=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function Y(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return q(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e,t){return e.isValid()?(t=X(t,e.localeData()),B[t]=B[t]||function(e){var t,n,r=e.match(W);for(t=0,n=r.length;t=0&&H.test(e);)e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var V=/\d/,K=/\d\d/,Q=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function de(e,t,n){ue[e]=C(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var Ae,Ce=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(De(this,e,n),o.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function De(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}Ae=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ye(e,t,n){var r=7+t-n,o=(7+Fe(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Ge(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ye(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=xe(i=e-1)+c:c>xe(e)?(i=e+1,a=c-xe(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ue(e,t,n){var r,o,i=Ye(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Xe(o,t,n)):a>Xe(e.year(),t,n)?(r=a-Xe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Xe(e,t,n){var r=Ye(e,t,n),o=Ye(e+1,t,n);return(xe(e)-r+o)/7}function Ve(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),z("week",5),z("isoWeek",5),de("w",$),de("ww",$,K),de("W",$),de("WW",$,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),de("d",$),de("e",$),de("E",$),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ce,$e=ce,et=ce;function tt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),l[t]=pe(l[t]),c[t]=pe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,nt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+nt.apply(this)+q(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+nt.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),rt("a",!0),rt("A",!1),I("hour","h"),z("hour",13),de("a",ot),de("A",ot),de("H",$),de("h",$),de("k",$),de("HH",$,K),de("hh",$,K),de("kk",$,K),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=k(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=k(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r,2)),t[ke]=k(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=k(e.substr(0,r)),t[Me]=k(e.substr(r,2)),t[ke]=k(e.substr(o))});var it,at=Le("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Je,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},lt={},ct={};function ut(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!lt[t]&&void 0!==e&&e&&e.exports)try{r=it._abbr,n(1066)("./"+t),ft(r)}catch(e){}return lt[t]}function ft(e,t){var n;return e&&((n=s(t)?ht(e):pt(e,t))?it=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function pt(e,t){if(null!==t){var n,r=st;if(t.abbr=e,null!=lt[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=lt[e]._config;else if(null!=t.parentLocale)if(null!=lt[t.parentLocale])r=lt[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return lt[e]=new P(L(r,t)),ct[e]&&ct[e].forEach(function(e){pt(e.name,e.config)}),ft(e),lt[e]}return delete lt[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!i(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=dt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return it}(e)}function _t(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>Ie(n[ye],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[Me]||0!==n[ke]||0!==n[Te])?we:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>999?Te:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Oe),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function bt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=mt(t.GG,e._a[ye],Ue(Pt(),1,4).year),r=mt(t.W,1),((o=mt(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=Ue(Pt(),i,a);n=mt(t.gg,e._a[ye],c.year),r=mt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Xe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ge(n,r,o,i,a),e._a[ye]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=mt(e._a[ye],r[ye]),(e._dayOfYear>xe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Fe(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[Me]&&0===e._a[ke]&&0===e._a[Te]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Fe:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,o,i,a,s=e._i,l=yt.exec(s)||gt.exec(s);if(l){for(h(e).iso=!0,t=0,n=wt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),F[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),bt(e),_t(e)}else Et(e);else Tt(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(_t(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function jt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-cn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cn:Date.UTC(e,t,n)}function pn(e,t){Y(0,[e,e.length],0,t)}function hn(e,t,n,r,o){var i;return null==e?Ue(this,r,o).year:(i=Xe(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=Ge(e,t,n,r,o),a=Fe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",$,K),de("gg",$,K),de("GGGG",re,J),de("gggg",re,J),de("GGGGG",oe,Z),de("ggggg",oe,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),I("quarter","Q"),z("quarter",7),de("Q",V),_e("Q",function(e,t){t[ge]=3*(k(e)-1)}),Y("D",["DD",2],"Do","date"),I("date","D"),z("date",9),de("D",$),de("DD",$,K),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=k(e.match($)[0])});var _n=Le("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),z("dayOfYear",4),de("DDD",ne),de("DDDD",Q),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),Y("m",["mm",2],0,"minute"),I("minute","m"),z("minute",14),de("m",$),de("mm",$,K),_e(["m","mm"],Me);var mn=Le("Minutes",!1);Y("s",["ss",2],0,"second"),I("second","s"),z("second",15),de("s",$),de("ss",$,K),_e(["s","ss"],ke);var bn,yn=Le("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),z("millisecond",16),de("S",ne,V),de("SS",ne,K),de("SSS",ne,Q),bn="SSSS";bn.length<=9;bn+="S")de(bn,ie);function gn(e,t){t[Te]=k(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")_e(bn,gn);var vn=Le("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var wn=v.prototype;function Mn(e){return e}wn.add=$t,wn.calendar=function(e,t){var n=e||Pt(),r=Ft(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(C(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Pt(n)))},wn.clone=function(){return new v(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":i=tn(this,r)/12;break;case"month":i=tn(this,r);break;case"quarter":i=tn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:M(i)},wn.endOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ln-un(t+(this._isUTC?0:this.utcOffset()*sn),ln)-1;break;case"minute":t=this._d.valueOf(),t+=sn-un(t,sn)-1;break;case"second":t=this._d.valueOf(),t+=an-un(t,an)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Pt(),e)},wn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Pt(),e)},wn.get=function(e){return C(this[e=j(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=w(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Ce,wn.isLeapYear=function(){return Ee(this.year())},wn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=qe,wn.daysInMonth=function(){return Ie(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},wn.date=_n,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=at,wn.minute=wn.minutes=mn,wn.second=wn.seconds=yn,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Bt(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Yt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Bt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Gt,wn.isUTC=Gt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=S("dates accessor is deprecated. Use date instead.",_n),wn.months=S("months accessor is deprecated. Use month instead",qe),wn.years=S("years accessor is deprecated. Use year instead",Ce),wn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),wn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ct(e))._a){var t=e._isUTC?p(e._a):Pt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var kn=P.prototype;function Tn(e,t,n,r){var o=ht(),i=p().set(r,t);return o[n](i,e)}function On(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Tn(e,r,n,"month");return o}function Sn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ht(),a=e?i._week.dow:0;if(null!=n)return Tn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=Tn(t,(o+a)%7,r,"day");return s}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=Mn,kn.postformat=Mn,kn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return C(o)?o(e,t,n,r):o.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)C(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ae.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ae.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ae.call(this._shortMonthsParse,a))?o:-1!==(o=Ae.call(this._longMonthsParse,a))?o:null:-1!==(o=Ae.call(this._longMonthsParse,a))?o:-1!==(o=Ae.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ve(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?Ve(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?Ve(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ae.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ae.call(this._minWeekdaysParse,a))?o:-1!==(o=Ae.call(this._weekdaysParse,a))?o:-1!==(o=Ae.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=S("moment.lang is deprecated. Use moment.locale instead.",ft),o.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ht);var xn=Math.abs;function En(e,t,n,r){var o=Vt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function An(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function Ln(e){return 146097*e/4800}function Pn(e){return function(){return this.as(e)}}var Dn=Pn("ms"),In=Pn("s"),jn=Pn("m"),Rn=Pn("h"),Nn=Pn("d"),zn=Pn("w"),qn=Pn("M"),Wn=Pn("Q"),Hn=Pn("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Bn("milliseconds"),Yn=Bn("seconds"),Gn=Bn("minutes"),Un=Bn("hours"),Xn=Bn("days"),Vn=Bn("months"),Kn=Bn("years"),Qn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,M:11},Zn=Math.abs;function $n(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,r=Zn(this._days),o=Zn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var i=M(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=$n(this._months)!==$n(d)?"-":"",h=$n(this._days)!==$n(d)?"-":"",_=$n(this._milliseconds)!==$n(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?_+l+"H":"")+(c?_+c+"M":"")+(u?_+u+"S":"")}var tr=Nt.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},tr.add=function(e,t){return En(this,e,t,1)},tr.subtract=function(e,t){return En(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ln(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},tr.asMilliseconds=Dn,tr.asSeconds=In,tr.asMinutes=jn,tr.asHours=Rn,tr.asDays=Nn,tr.asWeeks=zn,tr.asMonths=qn,tr.asQuarters=Wn,tr.asYears=Hn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*An(Ln(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=M(i/1e3),l.seconds=e%60,t=M(e/60),l.minutes=t%60,n=M(t/60),l.hours=n%24,a+=M(n/24),o=M(Cn(a)),s+=o,a-=An(Ln(o)),r=M(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},tr.clone=function(){return Vt(this)},tr.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Fn,tr.seconds=Yn,tr.minutes=Gn,tr.hours=Un,tr.days=Xn,tr.weeks=function(){return M(this.days()/7)},tr.months=Vn,tr.years=Kn,tr.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Vt(e).abs(),o=Qn(r.as("s")),i=Qn(r.as("m")),a=Qn(r.as("h")),s=Qn(r.as("d")),l=Qn(r.as("M")),c=Qn(r.as("y")),u=o<=Jn.ss&&["s",o]||o0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=nn,tr.localeData=on,tr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=rn,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(k(e))}),o.version="2.24.0",function(e){t=e}(Pt),o.fn=wn,o.min=function(){return jt("isBefore",[].slice.call(arguments,0))},o.max=function(){return jt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Pt(1e3*e)},o.months=function(e,t){return On(e,t,"months")},o.isDate=c,o.locale=ft,o.invalid=m,o.duration=Vt,o.isMoment=w,o.weekdays=function(e,t,n){return Sn(e,t,n,"weekdays")},o.parseZone=function(){return Pt.apply(null,arguments).parseZone()},o.localeData=ht,o.isDuration=zt,o.monthsShort=function(e,t){return On(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Sn(e,t,n,"weekdaysMin")},o.defineLocale=pt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=st;null!=(r=dt(e))&&(o=r._config),t=L(o,t),(n=new P(t)).parentLocale=lt[e],lt[e]=n,ft(e)}else null!=lt[e]&&(null!=lt[e].parentLocale?lt[e]=lt[e].parentLocale:null!=lt[e]&&delete lt[e]);return lt[e]},o.locales=function(){return x(lt)},o.weekdaysShort=function(e,t,n){return Sn(e,t,n,"weekdaysShort")},o.normalizeUnits=j,o.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=wn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(3)(e))},function(e,t,n){var r=n(15),o=n(25),i=n(51),a=n(46),s=n(64),l=function(e,t,n){var c,u,d,f,p=e&l.F,h=e&l.G,_=e&l.S,m=e&l.P,b=e&l.B,y=h?r:_?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?o:o[t]||(o[t]={}),v=g.prototype||(g.prototype={});for(c in h&&(n=t),n)d=((u=!p&&y&&void 0!==y[c])?y:n)[c],f=b&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),g[c]!=d&&i(g,c,f),m&&v[c]!=d&&(v[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var o=n(2),i=n.n(o),a=n(1),s=n.n(a),l=i.a.createContext(null),c=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){var n=t.getState();e._isMounted&&e.setState(function(e){return e.storeState===n?null:{storeState:n}})});var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||l;return i.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(o.Component);c.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var u=c;function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var p=n(299),h=n.n(p),_=n(7),m=n.n(_),b=n(296);function y(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,u=void 0===c?"connectAdvanced":c,p=n.renderCountProp,_=void 0===p?void 0:p,y=n.shouldHandleStateChanges,g=void 0===y||y,v=n.storeKey,w=void 0===v?"store":v,M=n.withRef,k=void 0!==M&&M,T=n.forwardRef,O=void 0!==T&&T,S=n.context,x=void 0===S?l:S,E=f(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);m()(void 0===_,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),m()(!k,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var A="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect";m()("store"===w,"storeKey has been removed and does not do anything. "+A);var C=x;return function(t){var n=t.displayName||t.name||"Component",a=s(n),l=d({},E,{getDisplayName:s,methodName:u,renderCountProp:_,shouldHandleStateChanges:g,storeKey:w,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=E.pure,f=o.Component;c&&(f=o.PureComponent);var p=function(n){function o(t){var r;return r=n.call(this,t)||this,m()(O?!t.wrapperProps[w]:!t[w],"Passing redux store in props has been removed and does not do anything. "+A),r.selectDerivedProps=function(){var t,n,r,o,i,a;return function(s,l,u,d){if(c&&t===l&&n===s)return r;u===o&&i===d||(o=u,i=d,a=e(u.dispatch,d)),t=l,n=s;var f=a(s,l);return r=f}}(),r.selectChildElement=function(){var e,t,n,r;return function(o,a,s){return a===e&&s===t&&r===o||(e=a,t=s,r=o,n=i.a.createElement(o,d({},a,{ref:s}))),n}}(),r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}r(o,n);var s=o.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){m()(e,'Could not find "store" in the context of "'+a+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+a+" in connect options.");var n,r=e.storeState,o=e.store,i=this.props;O&&(i=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,i,o,l);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(b.isContextConsumer)(i.a.createElement(this.props.context.Consumer,null))?this.props.context:C;return i.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(f);if(p.WrappedComponent=t,p.displayName=a,O){var y=i.a.forwardRef(function(e,t){return i.a.createElement(p,{wrapperProps:e,forwardedRef:t})});return y.displayName=a,y.WrappedComponent=t,h()(y,t)}return h()(p,t)}}var g=Object.prototype.hasOwnProperty;function v(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function w(e,t){if(v(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function I(e,t){return e===t}var j=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?y:n,o=t.mapStateToPropsFactories,i=void 0===o?x:o,a=t.mapDispatchToPropsFactories,s=void 0===a?S:a,l=t.mergePropsFactories,c=void 0===l?A:l,u=t.selectorFactory,p=void 0===u?P:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,h=a.areStatesEqual,_=void 0===h?I:h,m=a.areOwnPropsEqual,b=void 0===m?w:m,y=a.areStatePropsEqual,g=void 0===y?w:y,v=a.areMergedPropsEqual,M=void 0===v?w:v,k=f(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),T=D(e,i,"mapStateToProps"),O=D(t,s,"mapDispatchToProps"),S=D(n,c,"mergeProps");return r(p,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:T,initMapDispatchToProps:O,initMergeProps:S,pure:u,areStatesEqual:_,areOwnPropsEqual:b,areStatePropsEqual:g,areMergedPropsEqual:M},k))}}();n.d(t,"Provider",function(){return u}),n.d(t,"connectAdvanced",function(){return y}),n.d(t,"ReactReduxContext",function(){return l}),n.d(t,"connect",function(){return j})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(1114),o=n(184).isArray,i=n(184).isDate,a=n(1111).sprintf,s=n(267),l=n(1110),c=n(1108);function u(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function d(e){return u(e)&&":"===e[0]}function f(e,t){return t.reduce(function(e,t){return function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}(e)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null},e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(1106)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,r(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return r(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!o(e)&&!u(e)||!e.length)throw new Error("invalid argument: key");d(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=r(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var l=this._normalizeKeys(n,i,e,a),c=f(this._registry.translations,l);if(null===c&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(c=this._fallback(n,i,e,t.fallback,t))),null===c&&s.length>0&&-1===s.indexOf(n))for(var p=0,h=s.length;p=0;i--)""===r[i]&&(r.splice(i,1),!0===this._registry.keepTrailingDot&&i==r.length&&(r[r.length-1]+=""+t));return r}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,r({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if(function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}(o)){var s;i.object?(s=i.object,delete i.object):s=n,a=this._resolve(e,t,n,o(s,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=l(i,"fallback"),o(r)){for(var a=0,s=r.length;a3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;return function(i){return i({type:c.INIT_WINDOW}),"NEW"===t?(0,u.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,u.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,u.getData)("window",e,t,n,r,null,null,o).catch(function(e){return e}):(0,u.getData)("window",e,t,null,null,null,null,o).catch(function(t){return i((0,h.getWindowBreadcrumb)(e)),i(H({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,s.Set)(),validStatus:{}})),{status:t.status,message:t.statusText}})}}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return function(s){return"new"==t&&(t="NEW"),s(pe(e,t,n,r,a)).then(function(l){if(!l||!l.data)return Promise.resolve(null);if("NEW"==t&&!o)return s(O(l.data[0].id)),s((0,i.replace)("/window/".concat(e,"/").concat(l.data[0].id)));var c=0;return l.data.forEach(function(e,t){e.rowId===r&&(c=t)}),"NEW"===t&&s(se(null,l.data[0].id)),t=l.data[c].id,s(H({data:(0,m.parseToDisplay)(l.data[c].fieldsByName),docId:t,saveStatus:l.data[0].saveStatus,scope:(0,m.getScope)(o),standardActions:l.data[0].standardActions,validStatus:l.data[0].validStatus,includedTabsInfo:l.data[0].includedTabsInfo,websocket:l.data[0].websocketEndpoint})),o?"NEW"===r&&(s(Me(l.data,!1,"NEW",t,e)),s(ke(l.data)),s(se(l.data[0].rowId))):s((0,h.getWindowBreadcrumb)(e)),(0,u.initLayout)("window",e,n,null,null,a).then(function(e){return s(W(e.data,(0,m.getScope)(o)))}).then(function(n){return o?Promise.resolve(null):s(fe(n.layout.tabs,e,t,o))}).catch(function(e){return Promise.reject(e)})})}}var _e=function(e,t,n,r){var o=t;return!t&&r&&(o=r[0]),"".concat(config.API_URL,"/window/").concat(e).concat(o?"/".concat(o):"").concat(r&&n?"/".concat(n,"/").concat(r):"","/changeLog")};function me(e,t,n,o){return function(i){var a=_e(e,t,null,o);return r.default.get(a).then(function(){var a=g(regeneratorRuntime.mark(function a(s){var l,c,u;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(l=s.data,c=null,!t||!o){a.next=8;break}if(1!==o.length){a.next=8;break}return u=_e(e,t,n,o),a.next=7,r.default.get(u).then(function(e){return e.data});case 7:c=a.sent;case 8:c&&(l.rowsData=c),i(H({data:l,docId:t,scope:"modal"}));case 10:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}())}}function be(e,t,n){return function(r){r({type:c.FETCH_TOP_ACTIONS}),(0,u.topActionsRequest)(e,t,n).then(function(e){r({type:c.FETCH_TOP_ACTIONS_SUCCESS,payload:e.data.actions})}).catch(function(){r({type:c.FETCH_TOP_ACTIONS_FAILURE})})}}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;return function(){var h=g(regeneratorRuntime.mark(function h(_){var m,b,y,g,v,w,M;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return m=Symbol(),b={entity:e,docType:t,docId:n,tabId:r,rowId:o,property:i,value:a,isAdvanced:l,viewId:f,isEdit:p},h.next=4,_(le("pending"));case 4:return h.next=6,_({type:c.PATCH_REQUEST,symbol:m,options:b});case 6:return h.prev=6,h.next=9,(0,u.patchRequest)(b);case 9:return y=h.sent,g=y.data instanceof Array?y.data:[y.data],v=g[0],h.next=14,_(Me(g,s,o,n,t,l));case 14:if(!v||!v.validStatus||v.validStatus.valid||i!==v.validStatus.fieldName&&void 0!==v.validStatus.fieldName){h.next=23;break}return h.next=17,_(le("error"));case 17:return h.next=19,_({type:c.PATCH_FAILURE,symbol:m});case 19:w=v.validStatus.reason,_((0,d.addNotification)("Error: "+w.split(" ",4).join(" ")+"...",w,5e3,"error","")),h.next=28;break;case 23:return h.next=25,_(le("saved"));case 25:return h.next=27,_({type:c.PATCH_SUCCESS,symbol:m});case 27:return h.abrupt("return",g);case 28:h.next=41;break;case 30:return h.prev=30,h.t0=h.catch(6),h.next=34,_(le("error"));case 34:return h.next=36,_({type:c.PATCH_FAILURE,symbol:m});case 36:return h.next=38,(0,u.getData)(e,t,n,r,o,null,null,l,null,f);case 38:return M=h.sent,h.next=41,_(Me(M.data,s,o,n,t,l));case 41:case"end":return h.stop()}},h,null,[[6,30]])}));return function(e){return h.apply(this,arguments)}}()}function ge(e,t,n,r,o,i,a){return function(s){(0,u.getData)(e,t,n,r,o,null,null,a).then(function(e){s(Me(e.data,i,o,n,t,a))})}}function ve(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(te(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?Z("master",e[r]):V(r,e[r],t))})}}function we(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(ne(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(J(r,e[r],e.tabId,e.rowId,t))})}}function Me(e,t,n,r,o,i){return function(r){("function"==typeof e.splice?e:[e]).map(function(e,o){var a=e.fieldsByName?v({},e,{fieldsByName:(0,m.parseToDisplay)(e.fieldsByName)}):e;0===o&&"NEW"===n?r($(a,a.tabid,a.rowId,"master")):e.rowId&&!t?r(we(a,"master")):(e.rowId&&r(we(a,"master")),i&&r(ve(a,"master")),r(ve(a,(0,m.getScope)(t&&0===o))))})}}function ke(e){return function(t){var n=function(e){e.rowId?t(X("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(Q("master",e.validStatus)),e.saveStatus&&t(K("master",e.saveStatus)),e.includedTabsInfo&&t(Z("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function Te(e,t,n,r,o,i){return function(a){n&&r?(a(ne(e,{value:t},n,r,"master")),o&&"process"!==i&&a(te(e,{value:t},"modal"))):(a(te(e,{value:t},(0,m.getScope)(o))),o&&"process"!==i&&a(te(e,{value:t},"master")))}}function Oe(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,d.setNotificationProgress)(t,r))}function xe(e,t,n){var i=this;return function(a){var s=o.default.translate("window.attachment.title.pending"),l=o.default.translate("window.attachment.title.done"),c=o.default.translate("window.attachment.title.error"),u=r.default.CancelToken.source();a((0,d.addNotification)(s,o.default.translate("window.attachment.uploading"),0,"primary",null,u));var f={onUploadProgress:Oe.bind(i,a,s),cancelToken:u.token};r.default.post("".concat(config.API_URL,"/window/").concat(e,"/").concat(t,"/attachments"),n,f).then(function(){return a((0,d.addNotification)(l,o.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,d.deleteNotification)(s))}).catch(function(e){r.default.isCancel(e)?a((0,d.addNotification)(c,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,d.addNotification)(c,o.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function Se(e){var t=e.ids,n=e.processType,r=e.rowId,o=e.tabId,i=e.type,a=e.viewId,s=e.selectedTab,l=e.childViewId,c=e.childViewSelectedIds,f=e.parentViewId,p=e.parentViewSelectedIds,h=null;return function(){var e=g(regeneratorRuntime.mark(function e(_){var b,y,g,w,M;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_((0,d.setProcessPending)());case 2:return e.prev=2,e.next=5,(0,u.getProcessData)({ids:t,processId:n,rowId:r,tabId:o,type:i,viewId:a,selectedTab:s,childViewId:l,childViewSelectedIds:c,parentViewId:f,parentViewSelectedIds:p});case 5:b=e.sent,e.next=15;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,_(ae());case 12:return e.next=14,_((0,d.setProcessSaved)());case 14:throw e.t0;case 15:if(!b.data){e.next=54;break}if(y=(0,m.parseToDisplay)(b.data.fieldsByName),h=b.data.pinstanceId,!b.data.startProcessDirectly){e.next=36;break}return e.prev=19,e.next=22,(0,u.startProcess)(n,h);case 22:return g=e.sent,e.next=25,_(Ee(g,n,h));case 25:e.next=34;break;case 27:return e.prev=27,e.t1=e.catch(19),e.next=31,_(ae());case 31:return e.next=33,_((0,d.setProcessSaved)());case 33:throw e.t1;case 34:e.next=54;break;case 36:return e.next=38,_(H({data:y,scope:"modal"}));case 38:return e.prev=38,e.next=41,(0,u.initLayout)("process",n);case 41:return w=e.sent,e.next=44,_((0,d.setProcessSaved)());case 44:return M=v({},w.data,{pinstanceId:h}),e.next=47,_(W(M,"modal"));case 47:e.next=54;break;case 49:return e.prev=49,e.t2=e.catch(38),e.next=53,_((0,d.setProcessSaved)());case 53:throw e.t2;case 54:case"end":return e.stop()}},e,null,[[2,8],[19,27],[38,49]])}));return function(t){return e.apply(this,arguments)}}()}function Ee(e,t,n){return function(){var r=g(regeneratorRuntime.mark(function r(o){var a,s,l,c,u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.data,s=a.error,l=a.summary,c=a.action,!s){r.next=10;break}return r.next=4,o((0,d.addNotification)("Process error",l,5e3,"error"));case 4:return r.next=6,o((0,d.setProcessSaved)());case 6:return r.next=8,o(ae());case 8:r.next=55;break;case 10:if(u=!1,!c){r.next=47;break}r.t0=c.type,r.next="displayQRCode"===r.t0?15:"openView"===r.t0?17:"openReport"===r.t0?25:"openDocument"===r.t0?27:"openIncludedView"===r.t0?38:"closeIncludedView"===r.t0?41:"selectViewRows"===r.t0?44:47;break;case 15:return o(E({type:"qr",data:c.code})),r.abrupt("break",47);case 17:return r.next=19,o(ae());case 19:if(c.modalOverlay){r.next=22;break}return window.open("/window/".concat(c.windowId,"/?viewId=").concat(c.viewId)),r.abrupt("return");case 22:return r.next=24,o(A(c.windowId,c.viewId,c.profileId));case 24:return r.abrupt("break",47);case 25:return(0,f.openFile)("process",t,n,"print",c.filename),r.abrupt("break",47);case 27:return r.next=29,o(ae());case 29:if(!c.modal){r.next=35;break}return u=!0,r.next=33,o(oe("",c.windowId,"window",null,null,!!c.advanced&&c.advanced,"","",c.documentId));case 33:r.next=37;break;case 35:return r.next=37,o((0,i.push)("/window/"+c.windowId+"/"+c.documentId));case 37:return r.abrupt("break",47);case 38:return r.next=40,o((0,p.setListIncludedView)({windowType:c.windowId,viewId:c.viewId,viewProfileId:c.profileId}));case 40:return r.abrupt("break",47);case 41:return r.next=43,o((0,p.setListIncludedView)({windowType:c.windowId,viewId:c.viewId}));case 43:return r.abrupt("break",47);case 44:return r.next=46,o(ue(c.rowIds,c.windowId));case 46:return r.abrupt("break",47);case 47:if(!l){r.next=50;break}return r.next=50,o((0,d.addNotification)("Process",l,5e3,"primary"));case 50:return r.next=52,o((0,d.setProcessSaved)());case 52:if(u){r.next=55;break}return r.next=55,o(ie());case 55:case"end":return r.stop()}},r)}));return function(e){return r.apply(this,arguments)}}()}function Ae(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;o(ee(e,u,n))}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}o(ke(r.data))}}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(M,"fetchedQuickActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(k,"deleteQuickActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(T,"deleteTopActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(O,"setLatestNewDocument","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(x,"showSpinner","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(S,"hideSpinner","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(E,"toggleOverlay","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(A,"openRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(C,"updateRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(L,"closeRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(P,"openFilterBox","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(D,"closeFilterBox","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(I,"allowOutsideClick","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(j,"disableOutsideClick","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(R,"allowShortcut","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(N,"disableShortcut","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(z,"activateTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(q,"unselectTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(W,"initLayoutSuccess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(H,"initDataSuccess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(B,"updateMasterData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(F,"clearMasterData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Y,"addRowData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(G,"updateTabRowsData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(U,"sortTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(X,"updateRowStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(V,"updateDataProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(K,"updateDataSaveStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Q,"updateDataValidStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(J,"updateRowProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Z,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register($,"addNewRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ee,"deleteRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(te,"updateDataFieldProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ne,"updateRowFieldProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(re,"noConnection","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(oe,"openModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ie,"closeProcessModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ae,"closeModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(se,"updateModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(le,"indicatorState","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ce,"removeSelectedTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ue,"selectTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(de,"deselectTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(fe,"initTabs","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(pe,"initWindow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(he,"createWindow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(_e,"getChangelogUrl","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(me,"fetchChangeLog","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(be,"fetchTopActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ye,"patch","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ge,"fireUpdateData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ve,"updateData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(we,"updateRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Me,"mapDataToState","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ke,"updateStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Te,"updatePropertyValue","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Oe,"handleUploadProgress","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(xe,"attachFileAction","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Se,"createProcess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Ee,"handleProcessResponse","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Ae,"deleteLocal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getData",{enumerable:!0,get:function(){return r.getData}}),Object.defineProperty(t,"patchRequest",{enumerable:!0,get:function(){return r.patchRequest}}),Object.defineProperty(t,"initLayout",{enumerable:!0,get:function(){return o.initLayout}}),Object.defineProperty(t,"getAttributesInstance",{enumerable:!0,get:function(){return o.getAttributesInstance}}),Object.defineProperty(t,"topActionsRequest",{enumerable:!0,get:function(){return o.topActionsRequest}}),Object.defineProperty(t,"getZoomIntoWindow",{enumerable:!0,get:function(){return o.getZoomIntoWindow}}),Object.defineProperty(t,"discardNewRow",{enumerable:!0,get:function(){return o.discardNewRow}}),Object.defineProperty(t,"discardNewDocument",{enumerable:!0,get:function(){return o.discardNewDocument}}),Object.defineProperty(t,"getTab",{enumerable:!0,get:function(){return o.getTab}}),Object.defineProperty(t,"startProcess",{enumerable:!0,get:function(){return o.startProcess}}),Object.defineProperty(t,"getProcessData",{enumerable:!0,get:function(){return o.getProcessData}}),Object.defineProperty(t,"getViewLayout",{enumerable:!0,get:function(){return i.getViewLayout}}),Object.defineProperty(t,"getViewRowsByIds",{enumerable:!0,get:function(){return i.getViewRowsByIds}}),Object.defineProperty(t,"browseViewRequest",{enumerable:!0,get:function(){return i.browseViewRequest}}),Object.defineProperty(t,"locationSearchRequest",{enumerable:!0,get:function(){return i.locationSearchRequest}}),Object.defineProperty(t,"locationConfigRequest",{enumerable:!0,get:function(){return i.locationConfigRequest}}),Object.defineProperty(t,"deleteView",{enumerable:!0,get:function(){return i.deleteView}}),Object.defineProperty(t,"createViewRequest",{enumerable:!0,get:function(){return i.createViewRequest}}),Object.defineProperty(t,"filterViewRequest",{enumerable:!0,get:function(){return i.filterViewRequest}}),Object.defineProperty(t,"deleteStaticFilter",{enumerable:!0,get:function(){return i.deleteStaticFilter}}),Object.defineProperty(t,"quickActionsRequest",{enumerable:!0,get:function(){return i.quickActionsRequest}}),Object.defineProperty(t,"loginRequest",{enumerable:!0,get:function(){return a.loginRequest}}),Object.defineProperty(t,"localLoginRequest",{enumerable:!0,get:function(){return a.localLoginRequest}}),Object.defineProperty(t,"loginCompletionRequest",{enumerable:!0,get:function(){return a.loginCompletionRequest}}),Object.defineProperty(t,"logoutRequest",{enumerable:!0,get:function(){return a.logoutRequest}}),Object.defineProperty(t,"resetPasswordRequest",{enumerable:!0,get:function(){return a.resetPasswordRequest}}),Object.defineProperty(t,"getResetPasswordInfo",{enumerable:!0,get:function(){return a.getResetPasswordInfo}}),Object.defineProperty(t,"resetPasswordComplete",{enumerable:!0,get:function(){return a.resetPasswordComplete}}),Object.defineProperty(t,"resetPasswordGetAvatar",{enumerable:!0,get:function(){return a.resetPasswordGetAvatar}}),Object.defineProperty(t,"getAvatar",{enumerable:!0,get:function(){return a.getAvatar}}),Object.defineProperty(t,"getUserSession",{enumerable:!0,get:function(){return a.getUserSession}}),Object.defineProperty(t,"getUserLang",{enumerable:!0,get:function(){return a.getUserLang}}),Object.defineProperty(t,"setUserLang",{enumerable:!0,get:function(){return a.setUserLang}}),Object.defineProperty(t,"getAvailableLang",{enumerable:!0,get:function(){return a.getAvailableLang}});var r=n(419),o=n(1059),i=n(1055),a=n(1054);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(e,t,n){var r=n(62),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";(function(e){function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=_,t.getNotificationsEndpoint=m,t.markAllAsRead=b,t.markAsRead=y,t.deleteUserNotification=g,t.getImageAction=v,t.postImageAction=w,t.getKPIsDashboard=M,t.getTargetIndicatorsDashboard=k,t.getKPIData=T,t.changeKPIItem=O,t.changeTargetIndicatorsItem=x,t.getTargetIndicatorsData=S,t.setUserDashboardWidgets=E,t.getMessages=A,t.createUrlAttachment=C,t.languageSuccess=P,t.logoutSuccess=D,t.loginSuccess=I,t.enableTutorial=j,t.addNotification=R,t.setNotificationProgress=N,t.deleteNotification=z,t.clearNotifications=q,t.updateUri=W,t.getNotificationsSuccess=H,t.readNotification=B,t.newNotification=F,t.removeNotification=Y,t.readAllNotifications=G,t.deleteAllNotifications=U,t.setProcessPending=X,t.setProcessSaved=V,t.userSessionInit=K,t.userSessionUpdate=Q,t.initKeymap=J,t.updateKeymap=Z,t.initHotkeys=$,t.updateHotkeys=ee;var o=p(n(39)),i=p(n(4)),a=p(n(92)),s=p(n(420)),l=n(27),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(150)),u=n(43),d=n(20);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function _(){return o.default.get("".concat(config.API_URL,"/notifications/all?limit=20"))}function m(){return o.default.get("".concat(config.API_URL,"/notifications/websocketEndpoint"))}function b(){return o.default.put("".concat(config.API_URL,"/notifications/all/read"))}function y(e){return o.default.put("".concat(config.API_URL,"/notifications/").concat(e,"/read"))}function g(e){return o.default.delete("".concat(config.API_URL,"/notifications?ids=").concat(e))}function v(e){return(0,o.default)({url:"".concat(config.API_URL,"/image/").concat(e,"?maxWidth=200&maxHeight=200"),responseType:"blob"}).then(function(e){return e.data})}function w(e){return o.default.post("".concat(config.API_URL,"/image"),e).then(function(e){return e.data})}function M(){return o.default.get("".concat(config.API_URL,"/dashboard/kpis?silentError=true"))}function k(){return o.default.get("".concat(config.API_URL,"/dashboard/targetIndicators?silentError=true"))}function T(e){return o.default.get("".concat(config.API_URL,"/dashboard/kpis/").concat(e,"/data?silentError=true"))}function O(e,t,n){return o.default.patch("".concat(config.API_URL,"/dashboard/kpis/").concat(e),[{op:"replace",path:t,value:n}])}function x(e,t,n){return o.default.patch("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e),[{op:"replace",path:t,value:n}])}function S(e){return o.default.get("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e,"/data?silentError=true"))}function E(e){return o.default.patch("".concat(config.API_URL,"/dashboard/kpis"),e)}function A(e){return o.default.get("".concat(config.API_URL,"/i18n/messages").concat(e?"?="+e:""))}function C(e){var t=e.windowId,n=e.documentId,r=e.name,i=e.url;return o.default.post("".concat(config.API_URL,"/window/").concat(t,"/").concat(n,"/attachments/addUrl"),{name:r,url:i})}function L(e,t){var n=e.toLowerCase(),r={defaultFormat:"0,0.00[000]",delimiters:{thousands:t.numberGroupingSeparator||",",decimal:t.numberDecimalSeparator||"."}};void 0===s.default.locales[n]&&s.default.register("locale",n,r),void 0!==s.default.locales[n]&&(s.default.locale(n),r.defaultFormat&&s.default.defaultFormat(r.defaultFormat))}function P(e){localStorage.setItem(u.LOCAL_LANG,e),i.default.locale(e),o.default.defaults.headers.common["Accept-Language"]=e}function D(e){e.close(),localStorage.removeItem("isLogged")}function I(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)})}}(regeneratorRuntime.mark(function t(n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return localStorage.setItem("isLogged",!0),(r=[]).push((0,d.getUserSession)().then(function(t){var r=t.data;n(K(r)),P(r.language.key),L(r.language.key,r.locale),a.default.tz.setDefault(r.timeZone),e.initSessionClient(r.websocketEndpoint,function(e){var t=JSON.parse(e.body);n(Q(t)),t.language&&P(t.language.key),t.locale&&L(t.language.key,t.locale),_().then(function(e){n(H(e.data.notifications,e.data.unreadCount))})})}).catch(function(e){return e})),r.push(m().then(function(t){e.initNotificationClient(t,function(e){var t=JSON.parse(e.body);if("Read"===t.eventType)n(B(t.notificationId,t.unreadCount));else if("ReadAll"===t.eventType)n(G());else if("Delete"===t.eventType)n(Y(t.notificationId,t.unreadCount));else if("DeleteAll"===t.eventType)n(U());else if("New"===t.eventType){n(F(t.notification,t.unreadCount));var r=t.notification;r.important&&n(R("Important notification",r.message,5e3,"primary"))}})}).catch(function(e){return e})),r.push(_().then(function(e){n(H(e.data.notifications,e.data.unreadCount))}).catch(function(e){return e})),t.next=7,Promise.all(r);case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()}function j(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:c.ENABLE_TUTORIAL,flag:e}}function R(e,t,n,r,o,i){return{type:c.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:i}}function N(e,t){return{type:c.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function z(e){return{type:c.DELETE_NOTIFICATION,key:e}}function q(){return{type:c.CLEAR_NOTIFICATIONS}}function W(e,t,n,r){return function(o){var i=e+"?";t[n]=r;for(var a=Object.keys(t),s=0;s=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},d}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},d}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AZTEC=0]="AZTEC",e[e.CODABAR=1]="CODABAR",e[e.CODE_39=2]="CODE_39",e[e.CODE_93=3]="CODE_93",e[e.CODE_128=4]="CODE_128",e[e.DATA_MATRIX=5]="DATA_MATRIX",e[e.EAN_8=6]="EAN_8",e[e.EAN_13=7]="EAN_13",e[e.ITF=8]="ITF",e[e.MAXICODE=9]="MAXICODE",e[e.PDF_417=10]="PDF_417",e[e.QR_CODE=11]="QR_CODE",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={})),t.default=r},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createInstance=i,t.completeRequest=a,t.autocompleteRequest=s,t.autocompleteModalRequest=l,t.dropdownRequest=c,t.dropdownModalRequest=u,t.deleteRequest=d,t.duplicateRequest=f,t.actionsRequest=p,t.rowActionsRequest=h,t.referencesRequest=_,t.attachmentsRequest=m,t.processNewRecord=b,t.openFile=y,t.getRequest=g;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(39)),o=n(49);!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function i(e,t,n,o,i){return r.default.post(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:""))}function a(e,t,n,o,i,a,s){return r.default.post("".concat(config.API_URL,"/").concat(e).concat(t?"/".concat(t):"").concat(n?"/".concat(n):"").concat(o?"/".concat(o):"").concat(i?"/".concat(i):"").concat(a?"/".concat(a):"").concat(s?"/".concat(s):"","/complete"))}function s(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.query,l=e.rowId,c=e.subentity,u=e.subentityId,d=e.tabId,f=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(f?"/".concat(f):"").concat(n?"/".concat(n):"").concat(d?"/".concat(d):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(u?"/".concat(u):"").concat(t?"/attribute/":"/field/").concat(a,"/typeahead?query=").concat(encodeURIComponent(s),"\n "))}function l(e){var t=e.docId,n=e.docType,o=e.entity,i=e.propertyName,a=e.query,s=e.rowId,l=e.tabId,c=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(o).concat(n?"/".concat(n):"").concat(c?"/".concat(c):"").concat(t?"/".concat(t):"").concat(l?"/".concat(l):"").concat(s?"/".concat(s):"","/edit/").concat(i,"/typeahead?query=").concat(encodeURIComponent(a),"\n "))}function c(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.rowId,l=e.subentity,c=e.subentityId,u=e.tabId,d=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(d?"/".concat(d):"").concat(n?"/".concat(n):"").concat(u?"/".concat(u):"").concat(s?"/".concat(s):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(t?"/attribute/":"/field/").concat(a,"/dropdown"))}function u(e){var t=e.windowId,n=e.entity,o=e.fieldName,i=e.rowId,a=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(n,"/").concat(t,"/").concat(a,"/").concat(i,"/edit/").concat(o,"/dropdown"))}function d(e,t,n,o,i,a,s){return r.default.delete(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+(o?"/"+o:"")+(a?"/"+a:"")+(s?"/"+s:"")+(i?"?ids="+i:""))}function f(e,t,n){return r.default.post(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+"/duplicate")}function p(e){var t=e.entity,n=e.type,i=e.id,a=e.selectedIds,s=e.selectedTabId,l=e.selectedRowIds,c=e.childViewId,u=e.childViewSelectedIds,d=(0,o.getQueryString)({disabled:!0,selectedIds:a,selectedTabId:s,selectedRowIds:l,childViewId:c,childViewSelectedIds:u});return t?r.default.get(config.API_URL+"/"+t+"/"+n+"/"+i+"/actions"+(d?"?"+d:"")):Promise.resolve({data:{actions:[]}})}function h(e){var t=e.windowId,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.get(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/actions")}function _(e,t,n,o,i){return r.default.get(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:"")+"/references")}function m(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/attachments"))}function b(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/processNewRecord"))}function y(e,t,n,r,o){var i="".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/").concat(r,"/").concat(o);window.open(i,"_blank")}function g(){var e=config.API_URL+"/"+Array.from(arguments).join("/");return r.default.get(e)}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(i,"createInstance","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(a,"completeRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(s,"autocompleteRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(l,"autocompleteModalRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(c,"dropdownRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(u,"dropdownModalRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(d,"deleteRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(f,"duplicateRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(p,"actionsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(h,"rowActionsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(_,"referencesRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(m,"attachmentsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(b,"processNewRecord","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(y,"openFile","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(g,"getRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86),o=n(864),i=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*o.default.floatToIntBits(this.x)+o.default.floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,o=this.distance(e[0],e[1]),i=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(i>=o&&i>=a?(n=e[0],t=e[1],r=e[2]):a>=i&&a>=o?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r.default.distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,o=t.y;return(n.x-r)*(e.y-o)-(n.y-o)*(e.x-r)},e}();t.default=i},function(e,t,n){"use strict";var r=n(10),o=n(390);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))})},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),o=1;o3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;return function(i){return i({type:c.INIT_WINDOW}),"NEW"===t?(0,u.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,u.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,u.getData)("window",e,t,n,r,null,null,o).catch(function(e){return e}):(0,u.getData)("window",e,t,null,null,null,null,o).catch(function(t){return i((0,h.getWindowBreadcrumb)(e)),i(H({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,s.Set)(),validStatus:{}})),{status:t.status,message:t.statusText}})}}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return function(s){return"new"==t&&(t="NEW"),s(pe(e,t,n,r,a)).then(function(l){if(!l||!l.data)return Promise.resolve(null);if("NEW"==t&&!o)return s(O(l.data[0].id)),s((0,i.replace)("/window/".concat(e,"/").concat(l.data[0].id)));var c=0;return l.data.forEach(function(e,t){e.rowId===r&&(c=t)}),"NEW"===t&&s(se(null,l.data[0].id)),t=l.data[c].id,s(H({data:(0,m.parseToDisplay)(l.data[c].fieldsByName),docId:t,saveStatus:l.data[0].saveStatus,scope:(0,m.getScope)(o),standardActions:l.data[0].standardActions,validStatus:l.data[0].validStatus,includedTabsInfo:l.data[0].includedTabsInfo,websocket:l.data[0].websocketEndpoint})),o?"NEW"===r&&(s(Me(l.data,!1,"NEW",t,e)),s(ke(l.data)),s(se(l.data[0].rowId))):s((0,h.getWindowBreadcrumb)(e)),(0,u.initLayout)("window",e,n,null,null,a).then(function(e){return s(W(e.data,(0,m.getScope)(o)))}).then(function(n){return o?Promise.resolve(null):s(fe(n.layout.tabs,e,t,o))}).catch(function(e){return Promise.reject(e)})})}}var _e=function(e,t,n,r){var o=t;return!t&&r&&(o=r[0]),"".concat(config.API_URL,"/window/").concat(e).concat(o?"/".concat(o):"").concat(r&&n?"/".concat(n,"/").concat(r):"","/changeLog")};function me(e,t,n,o){return function(i){var a=_e(e,t,null,o);return r.default.get(a).then(function(){var a=g(regeneratorRuntime.mark(function a(s){var l,c,u;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(l=s.data,c=null,!t||!o){a.next=8;break}if(1!==o.length){a.next=8;break}return u=_e(e,t,n,o),a.next=7,r.default.get(u).then(function(e){return e.data});case 7:c=a.sent;case 8:c&&(l.rowsData=c),i(H({data:l,docId:t,scope:"modal"}));case 10:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}())}}function be(e,t,n){return function(r){r({type:c.FETCH_TOP_ACTIONS}),(0,u.topActionsRequest)(e,t,n).then(function(e){r({type:c.FETCH_TOP_ACTIONS_SUCCESS,payload:e.data.actions})}).catch(function(){r({type:c.FETCH_TOP_ACTIONS_FAILURE})})}}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;return function(){var h=g(regeneratorRuntime.mark(function h(_){var m,b,y,g,v,w,M;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return m=Symbol(),b={entity:e,docType:t,docId:n,tabId:r,rowId:o,property:i,value:a,isAdvanced:l,viewId:f,isEdit:p},h.next=4,_(le("pending"));case 4:return h.next=6,_({type:c.PATCH_REQUEST,symbol:m,options:b});case 6:return h.prev=6,h.next=9,(0,u.patchRequest)(b);case 9:return y=h.sent,g=y.data instanceof Array?y.data:[y.data],v=g[0],h.next=14,_(Me(g,s,o,n,t,l));case 14:if(!v||!v.validStatus||v.validStatus.valid||i!==v.validStatus.fieldName&&void 0!==v.validStatus.fieldName){h.next=23;break}return h.next=17,_(le("error"));case 17:return h.next=19,_({type:c.PATCH_FAILURE,symbol:m});case 19:w=v.validStatus.reason,_((0,d.addNotification)("Error: "+w.split(" ",4).join(" ")+"...",w,5e3,"error","")),h.next=28;break;case 23:return h.next=25,_(le("saved"));case 25:return h.next=27,_({type:c.PATCH_SUCCESS,symbol:m});case 27:return h.abrupt("return",g);case 28:h.next=41;break;case 30:return h.prev=30,h.t0=h.catch(6),h.next=34,_(le("error"));case 34:return h.next=36,_({type:c.PATCH_FAILURE,symbol:m});case 36:return h.next=38,(0,u.getData)(e,t,n,r,o,null,null,l,null,f);case 38:return M=h.sent,h.next=41,_(Me(M.data,s,o,n,t,l));case 41:case"end":return h.stop()}},h,null,[[6,30]])}));return function(e){return h.apply(this,arguments)}}()}function ge(e,t,n,r,o,i,a){return function(s){(0,u.getData)(e,t,n,r,o,null,null,a).then(function(e){s(Me(e.data,i,o,n,t,a))})}}function ve(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(te(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?Z("master",e[r]):V(r,e[r],t))})}}function we(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(ne(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(J(r,e[r],e.tabId,e.rowId,t))})}}function Me(e,t,n,r,o,i){return function(r){("function"==typeof e.splice?e:[e]).map(function(e,o){var a=e.fieldsByName?v({},e,{fieldsByName:(0,m.parseToDisplay)(e.fieldsByName)}):e;0===o&&"NEW"===n?r($(a,a.tabid,a.rowId,"master")):e.rowId&&!t?r(we(a,"master")):(e.rowId&&r(we(a,"master")),i&&r(ve(a,"master")),r(ve(a,(0,m.getScope)(t&&0===o))))})}}function ke(e){return function(t){var n=function(e){e.rowId?t(X("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(Q("master",e.validStatus)),e.saveStatus&&t(K("master",e.saveStatus)),e.includedTabsInfo&&t(Z("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function Te(e,t,n,r,o,i){return function(a){n&&r?(a(ne(e,{value:t},n,r,"master")),o&&"process"!==i&&a(te(e,{value:t},"modal"))):(a(te(e,{value:t},(0,m.getScope)(o))),o&&"process"!==i&&a(te(e,{value:t},"master")))}}function Oe(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,d.setNotificationProgress)(t,r))}function Se(e,t,n){var i=this;return function(a){var s=o.default.translate("window.attachment.title.pending"),l=o.default.translate("window.attachment.title.done"),c=o.default.translate("window.attachment.title.error"),u=r.default.CancelToken.source();a((0,d.addNotification)(s,o.default.translate("window.attachment.uploading"),0,"primary",null,u));var f={onUploadProgress:Oe.bind(i,a,s),cancelToken:u.token};r.default.post("".concat(config.API_URL,"/window/").concat(e,"/").concat(t,"/attachments"),n,f).then(function(){return a((0,d.addNotification)(l,o.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,d.deleteNotification)(s))}).catch(function(e){r.default.isCancel(e)?a((0,d.addNotification)(c,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,d.addNotification)(c,o.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function xe(e){var t=e.ids,n=e.processType,r=e.rowId,o=e.tabId,i=e.type,a=e.viewId,s=e.selectedTab,l=e.childViewId,c=e.childViewSelectedIds,f=e.parentViewId,p=e.parentViewSelectedIds,h=null;return function(){var e=g(regeneratorRuntime.mark(function e(_){var b,y,g,w,M;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_((0,d.setProcessPending)());case 2:return e.prev=2,e.next=5,(0,u.getProcessData)({ids:t,processId:n,rowId:r,tabId:o,type:i,viewId:a,selectedTab:s,childViewId:l,childViewSelectedIds:c,parentViewId:f,parentViewSelectedIds:p});case 5:b=e.sent,e.next=15;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,_(ae());case 12:return e.next=14,_((0,d.setProcessSaved)());case 14:throw e.t0;case 15:if(!b.data){e.next=54;break}if(y=(0,m.parseToDisplay)(b.data.fieldsByName),h=b.data.pinstanceId,!b.data.startProcessDirectly){e.next=36;break}return e.prev=19,e.next=22,(0,u.startProcess)(n,h);case 22:return g=e.sent,e.next=25,_(Ee(g,n,h));case 25:e.next=34;break;case 27:return e.prev=27,e.t1=e.catch(19),e.next=31,_(ae());case 31:return e.next=33,_((0,d.setProcessSaved)());case 33:throw e.t1;case 34:e.next=54;break;case 36:return e.next=38,_(H({data:y,scope:"modal"}));case 38:return e.prev=38,e.next=41,(0,u.initLayout)("process",n);case 41:return w=e.sent,e.next=44,_((0,d.setProcessSaved)());case 44:return M=v({},w.data,{pinstanceId:h}),e.next=47,_(W(M,"modal"));case 47:e.next=54;break;case 49:return e.prev=49,e.t2=e.catch(38),e.next=53,_((0,d.setProcessSaved)());case 53:throw e.t2;case 54:case"end":return e.stop()}},e,null,[[2,8],[19,27],[38,49]])}));return function(t){return e.apply(this,arguments)}}()}function Ee(e,t,n){return function(){var r=g(regeneratorRuntime.mark(function r(o){var a,s,l,c,u;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.data,s=a.error,l=a.summary,c=a.action,!s){r.next=10;break}return r.next=4,o((0,d.addNotification)("Process error",l,5e3,"error"));case 4:return r.next=6,o((0,d.setProcessSaved)());case 6:return r.next=8,o(ae());case 8:r.next=55;break;case 10:if(u=!1,!c){r.next=47;break}r.t0=c.type,r.next="displayQRCode"===r.t0?15:"openView"===r.t0?17:"openReport"===r.t0?25:"openDocument"===r.t0?27:"openIncludedView"===r.t0?38:"closeIncludedView"===r.t0?41:"selectViewRows"===r.t0?44:47;break;case 15:return o(E({type:"qr",data:c.code})),r.abrupt("break",47);case 17:return r.next=19,o(ae());case 19:if(c.modalOverlay){r.next=22;break}return window.open("/window/".concat(c.windowId,"/?viewId=").concat(c.viewId)),r.abrupt("return");case 22:return r.next=24,o(A(c.windowId,c.viewId,c.profileId));case 24:return r.abrupt("break",47);case 25:return(0,f.openFile)("process",t,n,"print",c.filename),r.abrupt("break",47);case 27:return r.next=29,o(ae());case 29:if(!c.modal){r.next=35;break}return u=!0,r.next=33,o(oe("",c.windowId,"window",null,null,!!c.advanced&&c.advanced,"","",c.documentId));case 33:r.next=37;break;case 35:return r.next=37,o((0,i.push)("/window/"+c.windowId+"/"+c.documentId));case 37:return r.abrupt("break",47);case 38:return r.next=40,o((0,p.setListIncludedView)({windowType:c.windowId,viewId:c.viewId,viewProfileId:c.profileId}));case 40:return r.abrupt("break",47);case 41:return r.next=43,o((0,p.setListIncludedView)({windowType:c.windowId,viewId:c.viewId}));case 43:return r.abrupt("break",47);case 44:return r.next=46,o(ue(c.rowIds,c.windowId));case 46:return r.abrupt("break",47);case 47:if(!l){r.next=50;break}return r.next=50,o((0,d.addNotification)("Process",l,5e3,"primary"));case 50:return r.next=52,o((0,d.setProcessSaved)());case 52:if(u){r.next=55;break}return r.next=55,o(ie());case 55:case"end":return r.stop()}},r)}));return function(e){return r.apply(this,arguments)}}()}function Ae(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;o(ee(e,u,n))}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}o(ke(r.data))}}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(M,"fetchedQuickActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(k,"deleteQuickActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(T,"deleteTopActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(O,"setLatestNewDocument","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(S,"showSpinner","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(x,"hideSpinner","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(E,"toggleOverlay","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(A,"openRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(C,"updateRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(L,"closeRawModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(P,"openFilterBox","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(D,"closeFilterBox","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(I,"allowOutsideClick","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(j,"disableOutsideClick","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(R,"allowShortcut","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(N,"disableShortcut","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(z,"activateTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(q,"unselectTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(W,"initLayoutSuccess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(H,"initDataSuccess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(B,"updateMasterData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(F,"clearMasterData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Y,"addRowData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(G,"updateTabRowsData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(U,"sortTab","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(X,"updateRowStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(V,"updateDataProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(K,"updateDataSaveStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Q,"updateDataValidStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(J,"updateRowProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Z,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register($,"addNewRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ee,"deleteRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(te,"updateDataFieldProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ne,"updateRowFieldProperty","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(re,"noConnection","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(oe,"openModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ie,"closeProcessModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ae,"closeModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(se,"updateModal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(le,"indicatorState","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ce,"removeSelectedTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ue,"selectTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(de,"deselectTableItems","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(fe,"initTabs","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(pe,"initWindow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(he,"createWindow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(_e,"getChangelogUrl","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(me,"fetchChangeLog","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(be,"fetchTopActions","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ye,"patch","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ge,"fireUpdateData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ve,"updateData","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(we,"updateRow","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Me,"mapDataToState","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(ke,"updateStatus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Te,"updatePropertyValue","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Oe,"handleUploadProgress","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Se,"attachFileAction","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(xe,"createProcess","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Ee,"handleProcessResponse","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"),e.register(Ae,"deleteLocal","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/WindowActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getData",{enumerable:!0,get:function(){return r.getData}}),Object.defineProperty(t,"patchRequest",{enumerable:!0,get:function(){return r.patchRequest}}),Object.defineProperty(t,"initLayout",{enumerable:!0,get:function(){return o.initLayout}}),Object.defineProperty(t,"getAttributesInstance",{enumerable:!0,get:function(){return o.getAttributesInstance}}),Object.defineProperty(t,"topActionsRequest",{enumerable:!0,get:function(){return o.topActionsRequest}}),Object.defineProperty(t,"getZoomIntoWindow",{enumerable:!0,get:function(){return o.getZoomIntoWindow}}),Object.defineProperty(t,"discardNewRow",{enumerable:!0,get:function(){return o.discardNewRow}}),Object.defineProperty(t,"discardNewDocument",{enumerable:!0,get:function(){return o.discardNewDocument}}),Object.defineProperty(t,"getTab",{enumerable:!0,get:function(){return o.getTab}}),Object.defineProperty(t,"startProcess",{enumerable:!0,get:function(){return o.startProcess}}),Object.defineProperty(t,"getProcessData",{enumerable:!0,get:function(){return o.getProcessData}}),Object.defineProperty(t,"getViewLayout",{enumerable:!0,get:function(){return i.getViewLayout}}),Object.defineProperty(t,"getViewRowsByIds",{enumerable:!0,get:function(){return i.getViewRowsByIds}}),Object.defineProperty(t,"browseViewRequest",{enumerable:!0,get:function(){return i.browseViewRequest}}),Object.defineProperty(t,"locationSearchRequest",{enumerable:!0,get:function(){return i.locationSearchRequest}}),Object.defineProperty(t,"locationConfigRequest",{enumerable:!0,get:function(){return i.locationConfigRequest}}),Object.defineProperty(t,"deleteView",{enumerable:!0,get:function(){return i.deleteView}}),Object.defineProperty(t,"createViewRequest",{enumerable:!0,get:function(){return i.createViewRequest}}),Object.defineProperty(t,"filterViewRequest",{enumerable:!0,get:function(){return i.filterViewRequest}}),Object.defineProperty(t,"deleteStaticFilter",{enumerable:!0,get:function(){return i.deleteStaticFilter}}),Object.defineProperty(t,"quickActionsRequest",{enumerable:!0,get:function(){return i.quickActionsRequest}}),Object.defineProperty(t,"loginRequest",{enumerable:!0,get:function(){return a.loginRequest}}),Object.defineProperty(t,"localLoginRequest",{enumerable:!0,get:function(){return a.localLoginRequest}}),Object.defineProperty(t,"loginCompletionRequest",{enumerable:!0,get:function(){return a.loginCompletionRequest}}),Object.defineProperty(t,"logoutRequest",{enumerable:!0,get:function(){return a.logoutRequest}}),Object.defineProperty(t,"resetPasswordRequest",{enumerable:!0,get:function(){return a.resetPasswordRequest}}),Object.defineProperty(t,"getResetPasswordInfo",{enumerable:!0,get:function(){return a.getResetPasswordInfo}}),Object.defineProperty(t,"resetPasswordComplete",{enumerable:!0,get:function(){return a.resetPasswordComplete}}),Object.defineProperty(t,"resetPasswordGetAvatar",{enumerable:!0,get:function(){return a.resetPasswordGetAvatar}}),Object.defineProperty(t,"getAvatar",{enumerable:!0,get:function(){return a.getAvatar}}),Object.defineProperty(t,"getUserSession",{enumerable:!0,get:function(){return a.getUserSession}}),Object.defineProperty(t,"getUserLang",{enumerable:!0,get:function(){return a.getUserLang}}),Object.defineProperty(t,"setUserLang",{enumerable:!0,get:function(){return a.setUserLang}}),Object.defineProperty(t,"getAvailableLang",{enumerable:!0,get:function(){return a.getAvailableLang}});var r=n(419),o=n(1059),i=n(1055),a=n(1054);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(e,t,n){var r=n(62),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";(function(e){function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=_,t.getNotificationsEndpoint=m,t.markAllAsRead=b,t.markAsRead=y,t.deleteUserNotification=g,t.getImageAction=v,t.postImageAction=w,t.getKPIsDashboard=M,t.getTargetIndicatorsDashboard=k,t.getKPIData=T,t.changeKPIItem=O,t.changeTargetIndicatorsItem=S,t.getTargetIndicatorsData=x,t.setUserDashboardWidgets=E,t.getMessages=A,t.createUrlAttachment=C,t.languageSuccess=P,t.logoutSuccess=D,t.loginSuccess=I,t.enableTutorial=j,t.addNotification=R,t.setNotificationProgress=N,t.deleteNotification=z,t.clearNotifications=q,t.updateUri=W,t.getNotificationsSuccess=H,t.readNotification=B,t.newNotification=F,t.removeNotification=Y,t.readAllNotifications=G,t.deleteAllNotifications=U,t.setProcessPending=X,t.setProcessSaved=V,t.userSessionInit=K,t.userSessionUpdate=Q,t.initKeymap=J,t.updateKeymap=Z,t.initHotkeys=$,t.updateHotkeys=ee;var o=p(n(39)),i=p(n(4)),a=p(n(92)),s=p(n(420)),l=n(27),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(150)),u=n(43),d=n(20);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function _(){return o.default.get("".concat(config.API_URL,"/notifications/all?limit=20"))}function m(){return o.default.get("".concat(config.API_URL,"/notifications/websocketEndpoint"))}function b(){return o.default.put("".concat(config.API_URL,"/notifications/all/read"))}function y(e){return o.default.put("".concat(config.API_URL,"/notifications/").concat(e,"/read"))}function g(e){return o.default.delete("".concat(config.API_URL,"/notifications?ids=").concat(e))}function v(e){return(0,o.default)({url:"".concat(config.API_URL,"/image/").concat(e,"?maxWidth=200&maxHeight=200"),responseType:"blob"}).then(function(e){return e.data})}function w(e){return o.default.post("".concat(config.API_URL,"/image"),e).then(function(e){return e.data})}function M(){return o.default.get("".concat(config.API_URL,"/dashboard/kpis?silentError=true"))}function k(){return o.default.get("".concat(config.API_URL,"/dashboard/targetIndicators?silentError=true"))}function T(e){return o.default.get("".concat(config.API_URL,"/dashboard/kpis/").concat(e,"/data?silentError=true"))}function O(e,t,n){return o.default.patch("".concat(config.API_URL,"/dashboard/kpis/").concat(e),[{op:"replace",path:t,value:n}])}function S(e,t,n){return o.default.patch("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e),[{op:"replace",path:t,value:n}])}function x(e){return o.default.get("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e,"/data?silentError=true"))}function E(e){return o.default.patch("".concat(config.API_URL,"/dashboard/kpis"),e)}function A(e){return o.default.get("".concat(config.API_URL,"/i18n/messages").concat(e?"?="+e:""))}function C(e){var t=e.windowId,n=e.documentId,r=e.name,i=e.url;return o.default.post("".concat(config.API_URL,"/window/").concat(t,"/").concat(n,"/attachments/addUrl"),{name:r,url:i})}function L(e,t){var n=e.toLowerCase(),r={defaultFormat:"0,0.00[000]",delimiters:{thousands:t.numberGroupingSeparator||",",decimal:t.numberDecimalSeparator||"."}};void 0===s.default.locales[n]&&s.default.register("locale",n,r),void 0!==s.default.locales[n]&&(s.default.locale(n),r.defaultFormat&&s.default.defaultFormat(r.defaultFormat))}function P(e){localStorage.setItem(u.LOCAL_LANG,e),i.default.locale(e),o.default.defaults.headers.common["Accept-Language"]=e}function D(e){e.close(),localStorage.removeItem("isLogged")}function I(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)})}}(regeneratorRuntime.mark(function t(n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return localStorage.setItem("isLogged",!0),(r=[]).push((0,d.getUserSession)().then(function(t){var r=t.data;n(K(r)),P(r.language.key),L(r.language.key,r.locale),a.default.tz.setDefault(r.timeZone),e.initSessionClient(r.websocketEndpoint,function(e){var t=JSON.parse(e.body);n(Q(t)),t.language&&P(t.language.key),t.locale&&L(t.language.key,t.locale),_().then(function(e){n(H(e.data.notifications,e.data.unreadCount))})})}).catch(function(e){return e})),r.push(m().then(function(t){e.initNotificationClient(t,function(e){var t=JSON.parse(e.body);if("Read"===t.eventType)n(B(t.notificationId,t.unreadCount));else if("ReadAll"===t.eventType)n(G());else if("Delete"===t.eventType)n(Y(t.notificationId,t.unreadCount));else if("DeleteAll"===t.eventType)n(U());else if("New"===t.eventType){n(F(t.notification,t.unreadCount));var r=t.notification;r.important&&n(R("Important notification",r.message,5e3,"primary"))}})}).catch(function(e){return e})),r.push(_().then(function(e){n(H(e.data.notifications,e.data.unreadCount))}).catch(function(e){return e})),t.next=7,Promise.all(r);case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()}function j(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:c.ENABLE_TUTORIAL,flag:e}}function R(e,t,n,r,o,i){return{type:c.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:i}}function N(e,t){return{type:c.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function z(e){return{type:c.DELETE_NOTIFICATION,key:e}}function q(){return{type:c.CLEAR_NOTIFICATIONS}}function W(e,t,n,r){return function(o){var i=e+"?";t[n]=r;for(var a=Object.keys(t),s=0;s=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},d}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},d}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AZTEC=0]="AZTEC",e[e.CODABAR=1]="CODABAR",e[e.CODE_39=2]="CODE_39",e[e.CODE_93=3]="CODE_93",e[e.CODE_128=4]="CODE_128",e[e.DATA_MATRIX=5]="DATA_MATRIX",e[e.EAN_8=6]="EAN_8",e[e.EAN_13=7]="EAN_13",e[e.ITF=8]="ITF",e[e.MAXICODE=9]="MAXICODE",e[e.PDF_417=10]="PDF_417",e[e.QR_CODE=11]="QR_CODE",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={})),t.default=r},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createInstance=i,t.completeRequest=a,t.autocompleteRequest=s,t.autocompleteModalRequest=l,t.dropdownRequest=c,t.dropdownModalRequest=u,t.deleteRequest=d,t.duplicateRequest=f,t.actionsRequest=p,t.rowActionsRequest=h,t.referencesRequest=_,t.attachmentsRequest=m,t.processNewRecord=b,t.openFile=y,t.getRequest=g;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(39)),o=n(49);!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function i(e,t,n,o,i){return r.default.post(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:""))}function a(e,t,n,o,i,a,s){return r.default.post("".concat(config.API_URL,"/").concat(e).concat(t?"/".concat(t):"").concat(n?"/".concat(n):"").concat(o?"/".concat(o):"").concat(i?"/".concat(i):"").concat(a?"/".concat(a):"").concat(s?"/".concat(s):"","/complete"))}function s(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.query,l=e.rowId,c=e.subentity,u=e.subentityId,d=e.tabId,f=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(f?"/".concat(f):"").concat(n?"/".concat(n):"").concat(d?"/".concat(d):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(u?"/".concat(u):"").concat(t?"/attribute/":"/field/").concat(a,"/typeahead?query=").concat(encodeURIComponent(s),"\n "))}function l(e){var t=e.docId,n=e.docType,o=e.entity,i=e.propertyName,a=e.query,s=e.rowId,l=e.tabId,c=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(o).concat(n?"/".concat(n):"").concat(c?"/".concat(c):"").concat(t?"/".concat(t):"").concat(l?"/".concat(l):"").concat(s?"/".concat(s):"","/edit/").concat(i,"/typeahead?query=").concat(encodeURIComponent(a),"\n "))}function c(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.rowId,l=e.subentity,c=e.subentityId,u=e.tabId,d=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(d?"/".concat(d):"").concat(n?"/".concat(n):"").concat(u?"/".concat(u):"").concat(s?"/".concat(s):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(t?"/attribute/":"/field/").concat(a,"/dropdown"))}function u(e){var t=e.windowId,n=e.entity,o=e.fieldName,i=e.rowId,a=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(n,"/").concat(t,"/").concat(a,"/").concat(i,"/edit/").concat(o,"/dropdown"))}function d(e,t,n,o,i,a,s){return r.default.delete(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+(o?"/"+o:"")+(a?"/"+a:"")+(s?"/"+s:"")+(i?"?ids="+i:""))}function f(e,t,n){return r.default.post(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+"/duplicate")}function p(e){var t=e.entity,n=e.type,i=e.id,a=e.selectedIds,s=e.selectedTabId,l=e.selectedRowIds,c=e.childViewId,u=e.childViewSelectedIds,d=(0,o.getQueryString)({disabled:!0,selectedIds:a,selectedTabId:s,selectedRowIds:l,childViewId:c,childViewSelectedIds:u});return t?r.default.get(config.API_URL+"/"+t+"/"+n+"/"+i+"/actions"+(d?"?"+d:"")):Promise.resolve({data:{actions:[]}})}function h(e){var t=e.windowId,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.get(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/actions")}function _(e,t,n,o,i){return r.default.get(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:"")+"/references")}function m(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/attachments"))}function b(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/processNewRecord"))}function y(e,t,n,r,o){var i="".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/").concat(r,"/").concat(o);window.open(i,"_blank")}function g(){var e=config.API_URL+"/"+Array.from(arguments).join("/");return r.default.get(e)}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(i,"createInstance","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(a,"completeRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(s,"autocompleteRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(l,"autocompleteModalRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(c,"dropdownRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(u,"dropdownModalRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(d,"deleteRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(f,"duplicateRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(p,"actionsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(h,"rowActionsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(_,"referencesRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(m,"attachmentsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(b,"processNewRecord","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(y,"openFile","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"),e.register(g,"getRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/GenericActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86),o=n(864),i=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*o.default.floatToIntBits(this.x)+o.default.floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,o=this.distance(e[0],e[1]),i=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(i>=o&&i>=a?(n=e[0],t=e[1],r=e[2]):a>=i&&a>=o?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r.default.distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,o=t.y;return(n.x-r)*(e.y-o)-(n.y-o)*(e.x-r)},e}();t.default=i},function(e,t,n){"use strict";var r=n(10),o=n(390);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))})},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),o=1;o @@ -37,12 +37,12 @@ and limitations under the License. * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,h=4,_=1,m=2,b=1,y=2,g=4,v=8,w=16,M=32,k=64,T=128,O=256,x=512,S=30,E="...",A=800,C=16,L=1,P=2,D=1/0,I=9007199254740991,j=1.7976931348623157e308,R=NaN,N=4294967295,z=N-1,q=N>>>1,W=[["ary",T],["bind",b],["bindKey",y],["curry",v],["curryRight",w],["flip",x],["partial",M],["partialRight",k],["rearg",O]],H="[object Arguments]",B="[object Array]",F="[object AsyncFunction]",Y="[object Boolean]",G="[object Date]",U="[object DOMException]",X="[object Error]",V="[object Function]",K="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",$="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ce="[object DataView]",ue="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",me="[object Uint8ClampedArray]",be="[object Uint16Array]",ye="[object Uint32Array]",ge=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Me=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Te=RegExp(Me.source),Oe=RegExp(ke.source),xe=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Pe.source),Ie=/^\s+|\s+$/g,je=/^\s+/,Re=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ve=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+$e+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+$e+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+it+"|"+at+")",pt="(?:"+dt+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",_t="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ct,ut].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,ct,ut].join("|")+")"+_t,bt="(?:"+[lt+nt+"?",nt,ct,ut,et].join("|")+")",yt=RegExp("['’]","g"),gt=RegExp(nt,"g"),vt=RegExp(st+"(?="+st+")|"+bt+_t,"g"),wt=RegExp([dt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ft,"$"].join("|")+")",dt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),Mt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ot=-1,xt={};xt[ue]=xt[de]=xt[fe]=xt[pe]=xt[he]=xt[_e]=xt[me]=xt[be]=xt[ye]=!0,xt[H]=xt[B]=xt[le]=xt[Y]=xt[ce]=xt[G]=xt[X]=xt[V]=xt[Q]=xt[J]=xt[$]=xt[te]=xt[ne]=xt[re]=xt[ae]=!1;var St={};St[H]=St[B]=St[le]=St[ce]=St[Y]=St[G]=St[ue]=St[de]=St[fe]=St[pe]=St[he]=St[Q]=St[J]=St[$]=St[te]=St[ne]=St[re]=St[oe]=St[_e]=St[me]=St[be]=St[ye]=!0,St[X]=St[V]=St[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Ct=parseInt,Lt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Dt=Lt||Pt||Function("return this")(),It="object"==typeof t&&t&&!t.nodeType&&t,jt=It&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=jt&&jt.exports===It,Nt=Rt&&Lt.process,zt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Nt&&Nt.binding&&Nt.binding("util")}catch(e){}}(),qt=zt&&zt.isArrayBuffer,Wt=zt&&zt.isDate,Ht=zt&&zt.isMap,Bt=zt&&zt.isRegExp,Ft=zt&&zt.isSet,Yt=zt&&zt.isTypedArray;function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ut(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var Mn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Tn(e){return"\\"+Et[e]}function On(e){return Mt.test(e)}function xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var In=function e(t){var n=(t=null==t?Dt:In.defaults(Dt.Object(),t,In.pick(Dt,Tt))).Array,r=t.Date,o=t.Error,Ze=t.Function,$e=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Ze.prototype,at=et.prototype,st=t["__core-js_shared__"],lt=it.toString,ct=at.hasOwnProperty,ut=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=at.toString,pt=lt.call(et),ht=Dt._,_t=tt("^"+lt.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Rt?t.Buffer:i,bt=t.Symbol,vt=t.Uint8Array,Mt=mt?mt.allocUnsafe:i,Et=Sn(et.getPrototypeOf,et),Lt=et.create,Pt=at.propertyIsEnumerable,It=ot.splice,jt=bt?bt.isConcatSpreadable:i,Nt=bt?bt.iterator:i,zt=bt?bt.toStringTag:i,on=function(){try{var e=zi(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=t.clearTimeout!==Dt.clearTimeout&&t.clearTimeout,jn=r&&r.now!==Dt.Date.now&&r.now,Rn=t.setTimeout!==Dt.setTimeout&&t.setTimeout,Nn=$e.ceil,zn=$e.floor,qn=et.getOwnPropertySymbols,Wn=mt?mt.isBuffer:i,Hn=t.isFinite,Bn=ot.join,Fn=Sn(et.keys,et),Yn=$e.max,Gn=$e.min,Un=r.now,Xn=t.parseInt,Vn=$e.random,Kn=ot.reverse,Qn=zi(t,"DataView"),Jn=zi(t,"Map"),Zn=zi(t,"Promise"),$n=zi(t,"Set"),er=zi(t,"WeakMap"),tr=zi(et,"create"),nr=er&&new er,rr={},or=ua(Qn),ir=ua(Jn),ar=ua(Zn),sr=ua($n),lr=ua(er),cr=bt?bt.prototype:i,ur=cr?cr.valueOf:i,dr=cr?cr.toString:i;function fr(e){if(Ss(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof _r)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new _r(e)}var pr=function(){function e(){}return function(t){if(!xs(t))return{};if(Lt)return Lt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ir(e,t,n,r,o,a){var s,l=t&f,c=t&p,u=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!xs(e))return e;var d=ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ni(e,s)}else{var _=Hi(e),m=_==V||_==K;if(vs(e))return Qo(e,l);if(_==$||_==H||m&&!o){if(s=c||m?{}:Fi(e),!l)return c?function(e,t){return ri(e,Wi(e),t)}(e,function(e,t){return e&&ri(t,ol(t),e)}(s,e)):function(e,t){return ri(e,qi(e),t)}(e,Cr(s,e))}else{if(!St[_])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case le:return Jo(e);case Y:case G:return new r(+e);case ce:return function(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ue:case de:case fe:case pe:case he:case _e:case me:case be:case ye:return Zo(e,n);case Q:return new r;case J:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return ur?et(ur.call(e)):{}}(e)}}(e,_,l)}}a||(a=new wr);var b=a.get(e);if(b)return b;a.set(e,s),Ps(e)?e.forEach(function(r){s.add(Ir(r,t,n,r,e,a))}):Es(e)&&e.forEach(function(r,o){s.set(o,Ir(r,t,n,o,e,a))});var y=d?i:(u?c?Li:Ci:c?ol:rl)(e);return Xt(y||e,function(r,o){y&&(r=e[o=r]),Sr(s,o,Ir(r,t,n,o,e,a))}),s}function jr(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(l);return ra(function(){e.apply(i,n)},t)}function Nr(e,t,n,r){var o=-1,i=Jt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=$t(t,bn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=gn,s=!1,t=new vr(t));e:for(;++o-1},yr.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},gr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(Jn||yr),string:new br}},gr.prototype.delete=function(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t},gr.prototype.get=function(e){return Ri(this,e).get(e)},gr.prototype.has=function(e){return Ri(this,e).has(e)},gr.prototype.set=function(e,t){var n=Ri(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},vr.prototype.add=vr.prototype.push=function(e){return this.__data__.set(e,c),this},vr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new yr,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!Jn||r.length0&&n(s)?t>1?Fr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=si(),Gr=si(!0);function Ur(e,t){return e&&Yr(e,t,rl)}function Xr(e,t){return e&&Gr(e,t,rl)}function Vr(e,t){return Qt(t,function(t){return ks(e[t])})}function Kr(e,t){for(var n=0,r=(t=Uo(t,e)).length;null!=e&&nt}function $r(e,t){return null!=e&&ct.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?Zt:Jt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=$t(f,bn(t))),u=Gn(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new vr(l&&f):i}f=e[0];var p=-1,h=c[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function yo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&It.call(s,l,1),It.call(e,l,1);return e}function vo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Gi(o)?It.call(e,o,1):zo(e,o)}}return e}function wo(e,t){return e+zn(Vn()*(t-e+1))}function Mo(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=zn(t/2))&&(e+=e)}while(t);return n}function ko(e,t){return oa($i(e,t,Al),e+"")}function To(e){return kr(fl(e))}function Oo(e,t){var n=fl(e);return sa(n,Dr(t,0,n.length))}function xo(e,t,n,r){if(!xs(e))return e;for(var o=-1,a=(t=Uo(t,e)).length,s=a-1,l=e;null!=l&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Is(a)&&(n?a<=t:a=a){var u=t?null:Mi(e);if(u)return An(u);s=!1,o=gn,c=new vr}else c=t?[]:l;e:for(;++r=r?e:Co(e,t,n)}var Ko=pn||function(e){return Dt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Mt?Mt(n):new e.constructor(n);return e.copy(r),r}function Jo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function Zo(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Is(e),s=t!==i,l=null===t,c=t==t,u=Is(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Ui(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function fi(e){return Ai(function(t){var n=t.length,r=n,o=_r.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(l);if(o&&!s&&"wrapper"==Di(a))var s=new _r([],!0)}for(r=s?r:n;++r1&&v.reverse(),f&&ul))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,f=!0,p=n&m?new vr:i;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(W,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(qe):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=Un(),o=C-(r-n);if(n=r,o>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return La(e,n="function"==typeof n?(e.pop(),n):i)});function za(e){var t=fr(e);return t.__chain__=!0,t}function qa(e,t){return t(e)}var Wa=Ai(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&Gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:qa,args:[o],thisArg:i}),new _r(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ha=oi(function(e,t,n){ct.call(e,n)?++e[n]:Lr(e,n,1)});var Ba=di(_a),Fa=di(ma);function Ya(e,t){return(ms(e)?Xt:zr)(e,ji(t,3))}function Ga(e,t){return(ms(e)?Vt:qr)(e,ji(t,3))}var Ua=oi(function(e,t,n){ct.call(e,n)?e[n].push(t):Lr(e,n,[t])});var Xa=ko(function(e,t,r){var o=-1,i="function"==typeof t,a=ys(e)?n(e.length):[];return zr(e,function(e){a[++o]=i?Gt(t,e,r):no(e,t,r)}),a}),Va=oi(function(e,t,n){Lr(e,n,t)});function Ka(e,t){return(ms(e)?$t:fo)(e,ji(t,3))}var Qa=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ja=ko(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ui(e,t[0],t[1])?t=[]:n>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),bo(e,Fr(t,1),[])}),Za=jn||function(){return Dt.Date.now()};function $a(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ti(e,T,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=ko(function(e,t,n){var r=b;if(n.length){var o=En(n,Ii(ts));r|=M}return Ti(e,r,t,n,o)}),ns=ko(function(e,t,n){var r=b|y;if(n.length){var o=En(n,Ii(ns));r|=M}return Ti(t,r,e,n,o)});function rs(e,t,n){var r,o,a,s,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new rt(l);function _(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=a}function b(){var e=Za();if(m(e))return y(e);c=ra(b,function(e){var n=t-(e-u);return p?Gn(n,a-(e-d)):n}(e))}function y(e){return c=i,h&&r?_(e):(r=o=i,s)}function g(){var e=Za(),n=m(e);if(r=arguments,o=this,u=e,n){if(c===i)return function(e){return d=e,c=ra(b,t),f?_(e):s}(u);if(p)return Ko(c),c=ra(b,t),_(u)}return c===i&&(c=ra(b,t)),s}return t=Bs(t)||0,xs(n)&&(f=!!n.leading,a=(p="maxWait"in n)?Yn(Bs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){c!==i&&Ko(c),d=0,r=u=o=c=i},g.flush=function(){return c===i?s:y(Za())},g}var os=ko(function(e,t){return Rr(e,1,t)}),is=ko(function(e,t,n){return Rr(e,Bs(t)||0,n)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(as.Cache||gr),n}function ss(e){if("function"!=typeof e)throw new rt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=gr;var ls=Xo(function(e,t){var n=(t=1==t.length&&ms(t[0])?$t(t[0],bn(ji())):$t(Fr(t,1),bn(ji()))).length;return ko(function(r){for(var o=-1,i=Gn(r.length,n);++o=t}),_s=ro(function(){return arguments}())?ro:function(e){return Ss(e)&&ct.call(e,"callee")&&!Pt.call(e,"callee")},ms=n.isArray,bs=qt?bn(qt):function(e){return Ss(e)&&Jr(e)==le};function ys(e){return null!=e&&Os(e.length)&&!ks(e)}function gs(e){return Ss(e)&&ys(e)}var vs=Wn||Bl,ws=Wt?bn(Wt):function(e){return Ss(e)&&Jr(e)==G};function Ms(e){if(!Ss(e))return!1;var t=Jr(e);return t==X||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!Cs(e)}function ks(e){if(!xs(e))return!1;var t=Jr(e);return t==V||t==K||t==F||t==ee}function Ts(e){return"number"==typeof e&&e==Ws(e)}function Os(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function xs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ss(e){return null!=e&&"object"==typeof e}var Es=Ht?bn(Ht):function(e){return Ss(e)&&Hi(e)==Q};function As(e){return"number"==typeof e||Ss(e)&&Jr(e)==J}function Cs(e){if(!Ss(e)||Jr(e)!=$)return!1;var t=Et(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==pt}var Ls=Bt?bn(Bt):function(e){return Ss(e)&&Jr(e)==te};var Ps=Ft?bn(Ft):function(e){return Ss(e)&&Hi(e)==ne};function Ds(e){return"string"==typeof e||!ms(e)&&Ss(e)&&Jr(e)==re}function Is(e){return"symbol"==typeof e||Ss(e)&&Jr(e)==oe}var js=Yt?bn(Yt):function(e){return Ss(e)&&Os(e.length)&&!!xt[Jr(e)]};var Rs=gi(uo),Ns=gi(function(e,t){return e<=t});function zs(e){if(!e)return[];if(ys(e))return Ds(e)?Pn(e):ni(e);if(Nt&&e[Nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nt]());var t=Hi(e);return(t==Q?xn:t==ne?An:fl)(e)}function qs(e){return e?(e=Bs(e))===D||e===-D?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Ws(e){var t=qs(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Dr(Ws(e),0,N):0}function Bs(e){if("number"==typeof e)return e;if(Is(e))return R;if(xs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var n=Ge.test(e);return n||Xe.test(e)?Ct(e.slice(2),n?2:8):Ye.test(e)?R:+e}function Fs(e){return ri(e,ol(e))}function Ys(e){return null==e?"":Ro(e)}var Gs=ii(function(e,t){if(Qi(t)||ys(t))ri(t,rl(t),e);else for(var n in t)ct.call(t,n)&&Sr(e,n,t[n])}),Us=ii(function(e,t){ri(t,ol(t),e)}),Xs=ii(function(e,t,n,r){ri(t,ol(t),e,r)}),Vs=ii(function(e,t,n,r){ri(t,rl(t),e,r)}),Ks=Ai(Pr);var Qs=ko(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ui(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Li(e),n),r&&(n=Ir(n,f|p|h,Si));for(var o=t.length;o--;)zo(n,t[o]);return n});var ll=Ai(function(e,t){return null==e?{}:function(e,t){return yo(e,t,function(t,n){return $s(e,n)})}(e,t)});function cl(e,t){if(null==e)return{};var n=$t(Li(e),function(e){return[e]});return t=ji(t),yo(e,n,function(e,n){return t(e,n[0])})}var ul=ki(rl),dl=ki(ol);function fl(e){return null==e?[]:yn(e,rl(e))}var pl=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?hl(t):t)});function hl(e){return Ml(Ys(e).toLowerCase())}function _l(e){return(e=Ys(e))&&e.replace(Ke,Mn).replace(gt,"")}var ml=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bl=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),yl=li("toLowerCase");var gl=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var vl=ci(function(e,t,n){return e+(n?" ":"")+Ml(t)});var wl=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ml=li("toUpperCase");function kl(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(We)||[]}(e):e.match(t)||[]}var Tl=ko(function(e,t){try{return Gt(e,i,t)}catch(e){return Ms(e)?e:new o(e)}}),Ol=Ai(function(e,t){return Xt(t,function(t){t=ca(t),Lr(e,t,ts(e[t],e))}),e});function xl(e){return function(){return e}}var Sl=fi(),El=fi(!0);function Al(e){return e}function Cl(e){return so("function"==typeof e?e:Ir(e,f))}var Ll=ko(function(e,t){return function(n){return no(n,e,t)}}),Pl=ko(function(e,t){return function(n){return no(e,n,t)}});function Dl(e,t,n){var r=rl(t),o=Vr(t,r);null!=n||xs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Vr(t,rl(t)));var i=!(xs(n)&&"chain"in n&&!n.chain),a=ks(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Il(){}var jl=mi($t),Rl=mi(Kt),Nl=mi(rn);function zl(e){return Xi(e)?fn(ca(e)):function(e){return function(t){return Kr(t,e)}}(e)}var ql=yi(),Wl=yi(!0);function Hl(){return[]}function Bl(){return!1}var Fl=_i(function(e,t){return e+t},0),Yl=wi("ceil"),Gl=_i(function(e,t){return e/t},1),Ul=wi("floor");var Xl=_i(function(e,t){return e*t},1),Vl=wi("round"),Kl=_i(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=$a,fr.assign=Gs,fr.assignIn=Us,fr.assignInWith=Xs,fr.assignWith=Vs,fr.at=Ks,fr.before=es,fr.bind=ts,fr.bindAll=Ol,fr.bindKey=ns,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},fr.chain=za,fr.chunk=function(e,t,r){t=(r?Ui(e,t,r):t===i)?1:Yn(Ws(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(Nn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ws(r))<0&&(r+=o),r=n>r?0:Hs(r);n>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Ls(t))&&!(t=Ro(t))&&On(e)?Vo(Pn(e),0,n):e.split(t,n):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Yn(Ws(t),0),ko(function(n){var r=n[t],o=Vo(n,0,t);return r&&en(o,r),Gt(e,this,o)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Co(e,1,t):[]},fr.take=function(e,t,n){return e&&e.length?Co(e,0,(t=n||t===i?1:Ws(t))<0?0:t):[]},fr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Co(e,(t=r-(t=n||t===i?1:Ws(t)))<0?0:t,r):[]},fr.takeRightWhile=function(e,t){return e&&e.length?Wo(e,ji(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?Wo(e,ji(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(l);return xs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rs(e,t,{leading:r,maxWait:t,trailing:o})},fr.thru=qa,fr.toArray=zs,fr.toPairs=ul,fr.toPairsIn=dl,fr.toPath=function(e){return ms(e)?$t(e,ca):Is(e)?[e]:ni(la(Ys(e)))},fr.toPlainObject=Fs,fr.transform=function(e,t,n){var r=ms(e),o=r||vs(e)||js(e);if(t=ji(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:xs(e)&&ks(i)?pr(Et(e)):{}}return(o?Xt:Ur)(e,function(e,r,o){return t(n,e,r,o)}),n},fr.unary=function(e){return $a(e,1)},fr.union=Sa,fr.unionBy=Ea,fr.unionWith=Aa,fr.uniq=function(e){return e&&e.length?No(e):[]},fr.uniqBy=function(e,t){return e&&e.length?No(e,ji(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?No(e,i,t):[]},fr.unset=function(e,t){return null==e||zo(e,t)},fr.unzip=Ca,fr.unzipWith=La,fr.update=function(e,t,n){return null==e?e:qo(e,t,Go(n))},fr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:qo(e,t,Go(n),r)},fr.values=fl,fr.valuesIn=function(e){return null==e?[]:yn(e,ol(e))},fr.without=Pa,fr.words=kl,fr.wrap=function(e,t){return cs(Go(t),e)},fr.xor=Da,fr.xorBy=Ia,fr.xorWith=ja,fr.zip=Ra,fr.zipObject=function(e,t){return Fo(e||[],t||[],Sr)},fr.zipObjectDeep=function(e,t){return Fo(e||[],t||[],xo)},fr.zipWith=Na,fr.entries=ul,fr.entriesIn=dl,fr.extend=Us,fr.extendWith=Xs,Dl(fr,fr),fr.add=Fl,fr.attempt=Tl,fr.camelCase=pl,fr.capitalize=hl,fr.ceil=Yl,fr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Bs(n))==n?n:0),t!==i&&(t=(t=Bs(t))==t?t:0),Dr(Bs(e),t,n)},fr.clone=function(e){return Ir(e,h)},fr.cloneDeep=function(e){return Ir(e,f|h)},fr.cloneDeepWith=function(e,t){return Ir(e,f|h,t="function"==typeof t?t:i)},fr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:i)},fr.conformsTo=function(e,t){return null==t||jr(e,t,rl(t))},fr.deburr=_l,fr.defaultTo=function(e,t){return null==e||e!=e?t:e},fr.divide=Gl,fr.endsWith=function(e,t,n){e=Ys(e),t=Ro(t);var r=e.length,o=n=n===i?r:Dr(Ws(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},fr.eq=fs,fr.escape=function(e){return(e=Ys(e))&&Oe.test(e)?e.replace(ke,kn):e},fr.escapeRegExp=function(e){return(e=Ys(e))&&De.test(e)?e.replace(Pe,"\\$&"):e},fr.every=function(e,t,n){var r=ms(e)?Kt:Wr;return n&&Ui(e,t,n)&&(t=i),r(e,ji(t,3))},fr.find=Ba,fr.findIndex=_a,fr.findKey=function(e,t){return an(e,ji(t,3),Ur)},fr.findLast=Fa,fr.findLastIndex=ma,fr.findLastKey=function(e,t){return an(e,ji(t,3),Xr)},fr.floor=Ul,fr.forEach=Ya,fr.forEachRight=Ga,fr.forIn=function(e,t){return null==e?e:Yr(e,ji(t,3),ol)},fr.forInRight=function(e,t){return null==e?e:Gr(e,ji(t,3),ol)},fr.forOwn=function(e,t){return e&&Ur(e,ji(t,3))},fr.forOwnRight=function(e,t){return e&&Xr(e,ji(t,3))},fr.get=Zs,fr.gt=ps,fr.gte=hs,fr.has=function(e,t){return null!=e&&Bi(e,t,$r)},fr.hasIn=$s,fr.head=ya,fr.identity=Al,fr.includes=function(e,t,n,r){e=ys(e)?e:fl(e),n=n&&!r?Ws(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),Ds(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ws(n);return o<0&&(o=Yn(r+o,0)),ln(e,t,o)},fr.inRange=function(e,t,n){return t=qs(t),n===i?(n=t,t=0):n=qs(n),function(e,t,n){return e>=Gn(t,n)&&e=-I&&e<=I},fr.isSet=Ps,fr.isString=Ds,fr.isSymbol=Is,fr.isTypedArray=js,fr.isUndefined=function(e){return e===i},fr.isWeakMap=function(e){return Ss(e)&&Hi(e)==ae},fr.isWeakSet=function(e){return Ss(e)&&Jr(e)==se},fr.join=function(e,t){return null==e?"":Bn.call(e,t)},fr.kebabCase=ml,fr.last=Ma,fr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ws(n))<0?Yn(r+o,0):Gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,un,o,!0)},fr.lowerCase=bl,fr.lowerFirst=yl,fr.lt=Rs,fr.lte=Ns,fr.max=function(e){return e&&e.length?Hr(e,Al,Zr):i},fr.maxBy=function(e,t){return e&&e.length?Hr(e,ji(t,2),Zr):i},fr.mean=function(e){return dn(e,Al)},fr.meanBy=function(e,t){return dn(e,ji(t,2))},fr.min=function(e){return e&&e.length?Hr(e,Al,uo):i},fr.minBy=function(e,t){return e&&e.length?Hr(e,ji(t,2),uo):i},fr.stubArray=Hl,fr.stubFalse=Bl,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Xl,fr.nth=function(e,t){return e&&e.length?mo(e,Ws(t)):i},fr.noConflict=function(){return Dt._===this&&(Dt._=ht),this},fr.noop=Il,fr.now=Za,fr.pad=function(e,t,n){e=Ys(e);var r=(t=Ws(t))?Ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return bi(zn(o),n)+e+bi(Nn(o),n)},fr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Ws(t))?Ln(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Vn();return Gn(e+o*(t-e+At("1e-"+((o+"").length-1))),t)}return wo(e,t)},fr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,ji(t,4),n,o,zr)},fr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,ji(t,4),n,o,qr)},fr.repeat=function(e,t,n){return t=(n?Ui(e,t,n):t===i)?1:Ws(t),Mo(Ys(e),t)},fr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,n){var r=-1,o=(t=Uo(t,e)).length;for(o||(o=1,e=i);++rI)return[];var n=N,r=Gn(e,N);t=ji(t),e-=N;for(var o=mn(r,t);++n=a)return e;var l=n-Ln(r);if(l<1)return r;var c=s?Vo(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),Ls(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=tt(o.source,Ys(Fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(Ro(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},fr.unescape=function(e){return(e=Ys(e))&&Te.test(e)?e.replace(Me,Dn):e},fr.uniqueId=function(e){var t=++ut;return Ys(e)+t},fr.upperCase=wl,fr.upperFirst=Ml,fr.each=Ya,fr.eachRight=Ga,fr.first=ya,Dl(fr,function(){var e={};return Ur(fr,function(t,n){ct.call(fr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),fr.VERSION="4.17.15",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Xt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Yn(Ws(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,N),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==L||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ji(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Al)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=ko(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return no(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(ss(ji(e)))},mr.prototype.slice=function(e,t){e=Ws(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ws(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(N)},Ur(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=fr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof mr,c=s[0],u=l||ms(t),d=function(e){var t=o.apply(fr,en([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,_=l&&!p;if(!a&&u){t=_?t:new mr(this);var m=e.apply(t,s);return m.__actions__.push({func:qa,args:[d],thisArg:i}),new _r(m,f)}return h&&_?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Ur(mr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";ct.call(rr,r)||(rr[r]=[]),rr[r].push({name:t,func:n})}}),rr[pi(i,y).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:qa,args:[xa],thisArg:i}),new _r(t,this.__chain__)}return this.thru(xa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Ho(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Nt&&(fr.prototype[Nt]=function(){return this}),fr}();Dt._=In,(o=function(){return In}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(11),n(3)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return yr}),n.d(t,"Collection",function(){return T}),n.d(t,"Iterable",function(){return vr}),n.d(t,"Seq",function(){return Q}),n.d(t,"Map",function(){return Pt}),n.d(t,"OrderedMap",function(){return bn}),n.d(t,"List",function(){return nn}),n.d(t,"Stack",function(){return kn}),n.d(t,"Set",function(){return In}),n.d(t,"OrderedSet",function(){return rr}),n.d(t,"Record",function(){return lr}),n.d(t,"Range",function(){return Hn}),n.d(t,"Repeat",function(){return _r}),n.d(t,"is",function(){return fe}),n.d(t,"fromJS",function(){return mr}),n.d(t,"hash",function(){return me}),n.d(t,"isImmutable",function(){return P}),n.d(t,"isCollection",function(){return y}),n.d(t,"isKeyed",function(){return v}),n.d(t,"isIndexed",function(){return M}),n.d(t,"isAssociative",function(){return k}),n.d(t,"isOrdered",function(){return I}),n.d(t,"isValueObject",function(){return de}),n.d(t,"get",function(){return rt}),n.d(t,"getIn",function(){return Bn}),n.d(t,"has",function(){return nt}),n.d(t,"hasIn",function(){return Yn}),n.d(t,"merge",function(){return yt}),n.d(t,"mergeDeep",function(){return vt}),n.d(t,"mergeWith",function(){return gt}),n.d(t,"mergeDeepWith",function(){return wt}),n.d(t,"remove",function(){return it}),n.d(t,"removeIn",function(){return ut}),n.d(t,"set",function(){return at}),n.d(t,"setIn",function(){return lt}),n.d(t,"update",function(){return ft}),n.d(t,"updateIn",function(){return st});var r=5,o=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function f(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return _(e,t,0)}function h(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var b="@@__IMMUTABLE_ITERABLE__@@";function y(e){return Boolean(e&&e[b])}var g="@@__IMMUTABLE_KEYED__@@";function v(e){return Boolean(e&&e[g])}var w="@@__IMMUTABLE_INDEXED__@@";function M(e){return Boolean(e&&e[w])}function k(e){return v(e)||M(e)}var T=function(e){return y(e)?e:Q(e)},O=function(e){function t(e){return v(e)?e:J(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),x=function(e){function t(e){return M(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),S=function(e){function t(e){return y(e)&&!k(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T);T.Keyed=O,T.Indexed=x,T.Set=S;var E="@@__IMMUTABLE_SEQ__@@";function A(e){return Boolean(e&&e[E])}var C="@@__IMMUTABLE_RECORD__@@";function L(e){return Boolean(e&&e[C])}function P(e){return y(e)||L(e)}var D="@@__IMMUTABLE_ORDERED__@@";function I(e){return Boolean(e&&e[D])}var j=0,R=1,N=2,z="function"==typeof Symbol&&Symbol.iterator,q="@@iterator",W=z||q,H=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function Y(e){return!!X(e)}function G(e){return e&&"function"==typeof e.next}function U(e){var t=X(e);return t&&t.call(e)}function X(e){var t=e&&(z&&e[z]||e[q]);if("function"==typeof t)return t}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=j,H.VALUES=R,H.ENTRIES=N,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[W]=function(){return this};var V=Object.prototype.hasOwnProperty;function K(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Q=function(e){function t(e){return null===e||void 0===e?oe():P(e)?e.toSeq():function(e){var t=se(e);if(t)return t;if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new H(function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return B(e,i[0],i[1])})}return this.__iteratorUncached(e,t)},t}(T),J=function(e){function t(e){return null===e||void 0===e?oe().toKeyedSeq():y(e)?v(e)?e.toSeq():e.fromEntrySeq():L(e)?e.toSeq():ie(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Q),Z=function(e){function t(e){return null===e||void 0===e?oe():y(e)?v(e)?e.entrySeq():e.toIndexedSeq():L(e)?e.toSeq().entrySeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Q),$=function(e){function t(e){return(y(e)&&!k(e)?e:Z(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Q);Q.isSeq=A,Q.Keyed=J,Q.Set=$,Q.Indexed=Z,Q.prototype[E]=!0;var ee=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new H(function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return B(e,i,n[i])})},t}(Z),te=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return V.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new H(function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return B(e,a,n[a])})},t}(J);te.prototype[D]=!0;var ne,re=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._collection),r=0;if(G(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._collection);if(!G(n))return new H(F);var r=0;return new H(function(){var t=n.next();return t.done?t:B(e,r++,t.value)})},t}(Z);function oe(){return ne||(ne=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e):Y(e)?new re(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ae(e){var t=se(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function se(e){return K(e)?new ee(e):Y(e)?new re(e):void 0}var le="@@__IMMUTABLE_MAP__@@";function ce(e){return Boolean(e&&e[le])}function ue(e){return ce(e)&&I(e)}function de(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function fe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(de(e)&&de(t)&&e.equals(t))}var pe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function he(e){return e>>>1&1073741824|3221225471&e}var _e=Object.prototype.valueOf;function me(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return he(t)}(e);case"string":return e.length>Te?function(e){var t=Se[e];void 0===t&&(t=be(e),xe===Oe&&(xe=0,Se={}),xe++,Se[e]=t);return t}(e):be(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?he(e.hashCode(e)):(e.valueOf!==_e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(we&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[ke]))return t;if(!ge){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ke]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++Me,1073741824&Me&&(Me=0);if(we)ve.set(e,t);else{if(void 0!==ye&&!1===ye(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ge)Object.defineProperty(e,ke,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ke]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ke]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function be(e){for(var t=0,n=0;n=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===R||e.done?e:B(t,l-1,t===j?void 0:e.value[1],e)})},c}function Ne(e,t,n,r){var o=Ue(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(N,i),l=!0,c=0;return new H(function(){var e,i,u;do{if((e=s.next()).done)return r||o===R?e:B(o,c++,o===j?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return o===N?e:B(o,i,u,e)})},o}function ze(e,t,n){var r=Ue(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,c){l.__iterate(function(i,l){return(!t||c0}function Be(e,t,n,r){var o=Ue(e),i=new ee(n).map(function(e){return e.size});return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=T(e),U(o?e.reverse():e)}),a=0,s=!1;return new H(function(){var n;return s||(n=i.map(function(e){return e.next()}),s=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Fe(e,t){return e===t?e:A(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ge(e){return v(e)?O:M(e)?x:S}function Ue(e){return Object.create((v(e)?J:M(e)?Z:$).prototype)}function Xe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Ve(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return kt(e,t)}function gt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Mt(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Mt(t,n,e)}function Mt(e,t,n){return kt(e,t,function(e){return function t(n,r,o){return et(n)&&et(r)?kt(n,[r],t):e?e(n,r,o):r}}(n))}function kt(e,t,n){if(!et(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(P(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?x:O,a=r?function(t){o===e&&(o=ot(o)),o.push(t)}:function(t,r){var i=V.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=ot(o)),o[r]=a)},s=0;s0;)t[n]=arguments[n+1];return Mt(this,t,e)}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Yt(),function(e){return kt(e,t)})}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Yt(),function(e){return Mt(e,t)})}function Et(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function At(){return this.__ownerID?this:this.__ensureOwner(new l)}function Ct(){return this.__ensureOwner()}function Lt(){return this.__altered}Ae.prototype.cacheResult=Ee.prototype.cacheResult=Ce.prototype.cacheResult=Le.prototype.cacheResult=Xe;var Pt=function(e){function t(t){return null===t||void 0===t?Yt():ce(t)&&!I(t)?t:Yt().withMutations(function(n){var r=e(t);Je(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Yt().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Gt(this,e,t)},t.prototype.remove=function(e){return Gt(this,e,a)},t.prototype.deleteAll=function(e){var t=T(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Yt()},t.prototype.sort=function(e){return bn(qe(this,e))},t.prototype.sortBy=function(e,t){return bn(qe(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,o){n.set(o,e.call(t,r,o,n))})})},t.prototype.__iterator=function(e,t){return new Wt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ft(this.size,this._root,e,this.__hash):0===this.size?Yt():(this.__ownerID=e,this.__altered=!1,this)},t}(O);Pt.isMap=ce;var Dt=Pt.prototype;Dt[le]=!0,Dt.delete=Dt.remove,Dt.removeAll=Dt.deleteAll,Dt.setIn=ct,Dt.removeIn=Dt.deleteIn=dt,Dt.update=pt,Dt.updateIn=ht,Dt.merge=Dt.concat=_t,Dt.mergeWith=mt,Dt.mergeDeep=Tt,Dt.mergeDeepWith=Ot,Dt.mergeIn=xt,Dt.mergeDeepIn=St,Dt.withMutations=Et,Dt.wasAltered=Lt,Dt.asImmutable=Ct,Dt["@@transducer/init"]=Dt.asMutable=At,Dt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Dt["@@transducer/result"]=function(e){return e.asImmutable()};var It=function(e,t){this.ownerID=e,this.entries=t};It.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Jt)return function(e,t,n,r){e||(e=new l);for(var o=new zt(e,me(n),[n,r]),i=0;i>>e)&i),s=this.bitmap;return 0==(s&a)?o:this.nodes[Kt(s&a-1)].get(e+r,t,n,o)},jt.prototype.update=function(e,t,n,s,l,c,u){void 0===n&&(n=me(s));var d=(0===t?n:n>>>t)&i,f=1<=Zt)return function(e,t,n,r,i){for(var a=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,p,d,y);if(h&&!y&&2===m.length&&Xt(m[1^_]))return m[1^_];if(h&&y&&1===m.length&&Xt(y))return y;var g=e&&e===this.ownerID,v=h?y?p:p^f:p|f,w=h?y?Qt(m,_,y,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&i,s=this.nodes[a];return s?s.get(e+r,t,n,o):o},Rt.prototype.update=function(e,t,n,o,s,l,c){void 0===n&&(n=me(o));var u=(0===t?n:n>>>t)&i,d=s===a,f=this.nodes,p=f[u];if(d&&!p)return this;var h=Ut(p,e,t+r,n,o,s,l,c);if(h===p)return this;var _=this.count;if(p){if(!h&&--_<$t)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s>>n)&i,c=(0===n?o:o>>>n)&i,u=l===c?[Vt(e,t,n+r,o,a)]:(s=new zt(t,o,a),l>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Qt(e,t,n,r){var o=r?e:Ke(e);return o[t]=n,o}var Jt=o/4,Zt=o/2,$t=o/4,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=un();if(null===t||void 0===t)return n;if(tn(t))return t;var i=e(t),a=i.size;return 0===a?n:(Je(a),a>0&&a=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?hn(e,t).set(0,n):hn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=_n(e._capacity)?r=dn(r,e.__ownerID,0,t,n,i):o=dn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return cn(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):un()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hn(n,0,t+e.length);for(var r=0;r>>t&i;if(o>=this.array.length)return new on([],e);var a,s=0===o;if(t>0){var l=this.array[o];if((a=l&&l.removeBefore(e,t-r,n))===l&&s)return this}if(s&&!a)return this;var c=fn(this,e);if(!s)for(var u=0;u>>t&i;if(a>=this.array.length)return this;if(t>0){var s=this.array[a];if((o=s&&s.removeAfter(e,t-r,n))===s&&a===this.array.length-1)return this}var l=fn(this,e);return l.array.splice(a+1),o&&(l.array[a]=o),l};var an,sn={};function ln(e,t){var n=e._origin,i=e._capacity,a=_n(i),s=e._tail;return l(e._root,e._level,0);function l(e,c,u){return 0===c?function(e,r){var l=r===a?s&&s.array:e&&e.array,c=r>n?0:n-r,u=i-r;u>o&&(u=o);return function(){if(c===u)return sn;var e=t?--u:c++;return l&&l[e]}}(e,u):function(e,a,s){var c,u=e&&e.array,d=s>n?0:n-s>>a,f=1+(i-s>>a);f>o&&(f=o);return function(){for(;;){if(c){var e=c();if(e!==sn)return e;c=null}if(d===f)return sn;var n=t?--f:d++;c=l(u&&u[n],a-r,s+(n<>>n&i,d=e&&u0){var f=e&&e.array[u],p=dn(f,t,n-r,o,a,l);return p===f?e:((c=fn(e,t)).array[u]=p,c)}return d&&e.array[u]===a?e:(l&&s(l),c=fn(e,t),void 0===a&&u===c.array.length-1?c.array.pop():c.array[u]=a,c)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function pn(e,t){if(t>=_n(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&i],o-=r;return n}}function hn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new l,a=e._origin,s=e._capacity,c=a+t,u=void 0===n?s:n<0?s+n:a+n;if(c===a&&u===s)return e;if(c>=u)return e.clear();for(var d=e._level,f=e._root,p=0;c+p<0;)f=new on(f&&f.array.length?[void 0,f]:[],o),p+=1<<(d+=r);p&&(c+=p,a+=p,u+=p,s+=p);for(var h=_n(s),_=_n(u);_>=1<h?new on([],o):m;if(m&&_>h&&cr;g-=r){var v=h>>>g&i;y=y.array[v]=fn(y.array[v],o)}y.array[h>>>r&i]=m}if(u=_)c-=_,u-=_,d=r,f=null,b=b&&b.removeBefore(o,0,c);else if(c>a||_>>d&i;if(w!==_>>>d&i)break;w&&(p+=(1<a&&(f=f.removeBefore(o,d,c-p)),f&&_>>r<=o&&l.size>=2*s.size?(r=(i=l.filter(function(e,t){return void 0!==e&&c!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,i=l.set(c,[t,n])}else r=s.set(t,l.size),i=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):yn(r,i)}bn.isOrderedMap=ue,bn.prototype[D]=!0,bn.prototype.delete=bn.prototype.remove;var wn="@@__IMMUTABLE_STACK__@@";function Mn(e){return Boolean(e&&e[wn])}var kn=function(e){function t(e){return null===e||void 0===e?Sn():Mn(e)?e:Sn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):xn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Mn(t))return t;Je(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):xn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sn()},t.prototype.slice=function(t,n){if(f(t,n,this.size))return this;var r=p(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):xn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xn(this.size,this._head,e,this.__hash):0===this.size?Sn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ee(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ee(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new H(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}})},t}(x);kn.isStack=Mn;var Tn,On=kn.prototype;function xn(e,t,n,r){var o=Object.create(On);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Sn(){return Tn||(Tn=xn(0))}On[wn]=!0,On.shift=On.pop,On.unshift=On.push,On.unshiftAll=On.pushAll,On.withMutations=Et,On.wasAltered=Lt,On.asImmutable=Ct,On["@@transducer/init"]=On.asMutable=At,On["@@transducer/step"]=function(e,t){return e.unshift(t)},On["@@transducer/result"]=function(e){return e.asImmutable()};var En="@@__IMMUTABLE_SET__@@";function An(e){return Boolean(e&&e[En])}function Cn(e){return An(e)&&I(e)}function Ln(e,t){if(e===t)return!0;if(!y(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||v(e)!==v(t)||M(e)!==M(t)||I(e)!==I(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!k(e);if(I(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,a)):!fe(e.get(r,a),t))return s=!1,!1});return s&&e.size===l}function Pn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Dn(e){if(!e||"object"!=typeof e)return e;if(!y(e)){if(!et(e))return e;e=Q(e)}if(v(e)){var t={};return e.__iterate(function(e,n){t[n]=Dn(e)}),t}var n=[];return e.__iterate(function(e){n.push(Dn(e))}),n}var In=function(e){function t(t){return null===t||void 0===t?qn():An(t)&&!I(t)?t:qn().withMutations(function(n){var r=e(t);Je(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.intersect=function(e){return(e=T(e).toArray()).length?Rn.intersect.apply(t(e.pop()),e):qn()},t.union=function(e){return(e=T(e).toArray()).length?Rn.union.apply(t(e.pop()),e):qn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Nn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Nn(this,this._map.remove(e))},t.prototype.clear=function(){return Nn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach(function(i){var a=e.call(t,i,i,n);a!==i&&(r.push(i),o.push(a))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),o.forEach(function(t){return e.add(t)})})},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=he((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+nr(me(e),me(t))|0}:function(e,t){r=r+nr(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var Un=T.prototype;Un[b]=!0,Un[W]=Un.values,Un.toJSON=Un.toArray,Un.__toStringMapper=tt,Un.inspect=Un.toSource=function(){return this.toString()},Un.chain=Un.flatMap,Un.contains=Un.includes,Pn(O,{flip:function(){return Fe(this,Pe(this))},mapEntries:function(e,t){var n=this,r=0;return Fe(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Fe(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Xn=O.prototype;Xn[g]=!0,Xn[W]=Un.entries,Xn.toJSON=Gn,Xn.__toStringMapper=function(e,t){return tt(t)+": "+tt(e)},Pn(x,{toKeyedSeq:function(){return new Ee(this,!1)},filter:function(e,t){return Fe(this,je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Fe(this,Ie(this,!1))},slice:function(e,t){return Fe(this,Re(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return Fe(this,1===n?r:r.concat(Ke(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Fe(this,ze(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function nr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Vn[w]=!0,Vn[D]=!0,Pn(S,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),S.prototype.has=Un.includes,S.prototype.contains=S.prototype.includes,Pn(J,O.prototype),Pn(Z,x.prototype),Pn($,S.prototype);var rr=function(e){function t(e){return null===e||void 0===e?sr():Cn(e)?e:sr().withMutations(function(t){var n=S(e);Je(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(In);rr.isOrderedSet=Cn;var or,ir=rr.prototype;function ar(e,t){var n=Object.create(ir);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function sr(){return or||(or=ar(gn()))}ir[D]=!0,ir.zip=Vn.zip,ir.zipWith=Vn.zipWith,ir.__empty=sr,ir.__make=ar;var lr=function(e,t){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c2?[]:void 0,{"":e})}function br(e,t){return v(t)?t.toMap():t.toList()}var yr="4.0.0-rc.11",gr={version:yr,Collection:T,Iterable:T,Seq:Q,Map:Pt,OrderedMap:bn,List:nn,Stack:kn,Set:In,OrderedSet:rr,Record:lr,Range:Hn,Repeat:_r,is:fe,fromJS:mr,hash:me,isImmutable:P,isCollection:y,isKeyed:v,isIndexed:M,isAssociative:k,isOrdered:I,isValueObject:de,isSeq:A,isList:tn,isMap:ce,isOrderedMap:ue,isStack:Mn,isSet:An,isOrderedSet:Cn,isRecord:L,get:rt,getIn:Bn,has:nt,hasIn:Yn,merge:yt,mergeDeep:vt,mergeWith:gt,mergeDeepWith:wt,remove:it,removeIn:ut,set:at,setIn:lt,update:ft,updateIn:st},vr=T;t.default=gr},function(e,t,n){e.exports=n(1130)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1134)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.disabledWithFocus=void 0,function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n="Alt",r={OPEN_ACTIONS_MENU:"".concat(n,"+1"),OPEN_NAVIGATION_MENU:"".concat(n,"+2"),OPEN_INBOX_MENU:"".concat(n,"+3"),OPEN_AVATAR_MENU:"".concat(n,"+4"),OPEN_SIDEBAR_MENU_0:"".concat(n,"+5"),OPEN_SIDEBAR_MENU_1:"".concat(n,"+6"),OPEN_SIDEBAR_MENU_2:"".concat(n,"+7"),DOC_STATUS:"".concat(n,"+I"),TEXT_START:"Home",TEXT_END:"End",OPEN_ADVANCED_EDIT:"".concat(n,"+E"),CLONE_DOCUMENT:"".concat(n,"+W"),OPEN_PRINT_RAPORT:"".concat(n,"+P"),OPEN_EMAIL:"".concat(n,"+K"),OPEN_LETTER:"".concat(n,"+R"),DELETE_DOCUMENT:"".concat(n,"+D"),NEW_DOCUMENT:"".concat(n,"+N"),TOGGLE_EDIT_MODE:"".concat(n,"+O"),OPEN_SELECTED:"".concat(n,"+B"),REMOVE_SELECTED:"".concat(n,"+Y"),ADVANCED_EDIT:"".concat(n,"+E"),SELECT_ALL_LEAFS:"".concat(n,"+S"),EXPAND_INDENT:"+",COLLAPSE_INDENT:"-",TOGGLE_QUICK_INPUT:"".concat(n,"+Q"),TOGGLE_EXPAND:"".concat(n,"++"),NEXT_PAGE:"PageDown",PREV_PAGE:"PageUp",FIRST_PAGE:"Home",LAST_PAGE:"End",SELECT_ALL_ROWS:"".concat(n,"+A"),QUICK_ACTION_POS:"".concat(n,"+U"),QUICK_ACTION_TOGGLE:"".concat(n,"+L"),COMPLETE_STATUS:"".concat(n,"+U"),DONE:"".concat(n,"+Enter"),CANCEL:"Escape"},o=[r.EXPAND_INDENT,r.COLLAPSE_INDENT];t.disabledWithFocus=o;var i=r,a=i;t.default=a,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(n,"mod","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(r,"keymaps","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(o,"disabledWithFocus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(i,"default","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_REGEX_TEST=t.TIME_FIELD_TYPES=t.DATE_FIELD_FORMATS=t.DATE_FIELD_TYPES=t.DATE_FIELDS=t.DATE_TIMEZONE_FORMAT=t.TIME_FORMAT=t.DATE_FORMAT=t.SPECIAL_FIELD_TYPES=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=t.AMOUNT_FIELD_TYPES=t.INITIALLY_OPEN=t.INITIALLY_CLOSED=t.VIEW_EDITOR_RENDER_MODES_ALWAYS=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND=t.VIEW_EDITOR_RENDER_MODES_NEVER=t.LOCAL_LANG=void 0,function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;t.LOCAL_LANG="metasfreshLanguage";t.VIEW_EDITOR_RENDER_MODES_NEVER="never";t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand";t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always";t.INITIALLY_CLOSED="INITIALLY_CLOSED";t.INITIALLY_OPEN="INITIALLY_OPEN";var n=["Amount","CostPrice","Quantity"];t.AMOUNT_FIELD_TYPES=n;var r=["0,0.[00000]","0,0.0[0000]","0,0.00[000]","0,0.000[00]","0,0.0000[0]","0,0.00000"];t.AMOUNT_FIELD_FORMATS_BY_PRECISION=r;var o=["Color"];t.SPECIAL_FIELD_TYPES=o;t.DATE_FORMAT="YYYY-MM-DD";t.TIME_FORMAT="HH:mm";t.DATE_TIMEZONE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ";var i=["Date","DateTime"];t.DATE_FIELDS=i;var a=["Date","DateTime","ZonedDateTime","Timestamp"];t.DATE_FIELD_TYPES=a;var s={Date:"L",ZonedDateTime:"L LTS",DateTime:"L LTS",Time:"LT",Timestamp:"L HH:mm:ss"};t.DATE_FIELD_FORMATS=s;var l=["Time"];t.TIME_FIELD_TYPES=l;var c=/^\d\d:\d\d$/;t.TIME_REGEX_TEST=c,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register("metasfreshLanguage","LOCAL_LANG","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("never","VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("on-demand","VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("always","VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("INITIALLY_CLOSED","INITIALLY_CLOSED","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("INITIALLY_OPEN","INITIALLY_OPEN","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(n,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(r,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(o,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("YYYY-MM-DD","DATE_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("HH:mm","TIME_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("YYYY-MM-DDTHH:mm:ss.SSSZ","DATE_TIMEZONE_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(i,"DATE_FIELDS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(a,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(s,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(l,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(c,"TIME_REGEX_TEST","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(565),o=n(1129),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n"+o+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(15),o=n(51),i=n(52),a=n(105)("src"),s=n(1308),l=(""+s).split("toString");n(25).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return r(t,e),t}(n(865).CustomError);t.default=o},function(e,t,n){"use strict";var r=n(391);e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){var n=this.getOrigin(e)===this.getOrigin(t);return n},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createPatchRequestPayload=u,t.toggleFullScreen=f,t.nullToEmptyStrings=p,t.findRowByPropName=h,t.getItemsByProperty=_,t.cleanupFilter=b,t.arePropTypesIdentical=t.getQueryString=void 0;var r=a(n(4)),o=n(43),i=a(n(1063));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c=function(e){return i.default.stringify(Object.keys(e).reduce(function(t,n){var r=e[n];return Array.isArray(r)&&r.length>0?t[n]=r.join(","):r&&(t[n]=r),t},{}))};function u(e,t){return Array.isArray(e)&&Array.isArray(t)?e.map(function(e,n){return{op:"replace",path:e,value:t[n]}}):Array.isArray(e)&&void 0!==t?e.map(function(e){return{op:"replace",path:e.field,value:t}}):e&&void 0!==t?[{op:"replace",path:e,value:t}]:[]}t.getQueryString=c;var d=function(e,t){for(var n=0,r=Object.keys(e);n0){var n=new r.default[t.length+e.length];o.default.arraycopy(t,0,n,0,t.length),o.default.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(112),o=n(53),i=n(234),a=n(74),s=n(21),l=function(){function e(e,t,n,r){if(this.width=e,this.height=t,this.rowSize=n,this.bits=r,void 0!==t&&null!==t||(t=e),this.height=t,e<1||t<1)throw new s.default("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((e+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,o=new e(r,n),i=0;ia){if(-1===l)l=i-a;else if(i-a!==l)throw new s.default("row lengths do not match");a=i,c++}u++}else if(t.substring(u,u+n.length)===n)u+=n.length,o[i]=!0,i++;else{if(t.substring(u,u+r.length)!==r)throw new s.default("illegal character encountered: "+t.substring(u));u+=r.length,o[i]=!1,i++}if(i>a){if(-1===l)l=i-a;else if(i-a!==l)throw new s.default("row lengths do not match");c++}for(var d=new e(l,c),f=0;f>>(31&e)&1)},e.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(31&e)&4294967295},e.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(31&e)&4294967295)},e.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(31&e)&4294967295},e.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new s.default("input matrix dimensions do not match");for(var t=new r.default(Math.floor(this.width/32)+1),n=this.rowSize,o=this.bits,i=0,a=this.height;ithis.height||o>this.width)throw new s.default("The region must fit inside the matrix");for(var a=this.rowSize,l=this.bits,c=t;cs&&(s=l),32*ca){for(d=31;u>>>d==0;)d--;32*c+d>a&&(a=32*c+d)}}}return a=0&&0===t[n];)n--;if(n<0)return null;for(var r=Math.floor(n/e),o=32*Math.floor(n%e),i=t[n],a=31;i>>>a==0;)a--;return o+=a,Int32Array.from([o,r])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){var e=this.width;return e=31*(e=31*(e=31*(e=31*e+this.width)+this.height)+this.rowSize)+i.default.hashCode(this.bits)},e.prototype.toString=function(e,t,n){return void 0===e&&(e="x"),void 0===t&&(t=" "),void 0===n&&(n="\n"),this.buildToString(e,t,n)},e.prototype.buildToString=function(e,t,n){var r=new a.default;r.append(n);for(var o=0,i=this.height;ow;w++)if((f||w in y)&&(m=g(_=y[w],w,b),e))if(n)M[w]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:M.push(_)}else if(u)return!1;return d?-1:c||u?u:M}}},function(e,t,n){var r=n(5),o=n(25),i=n(14);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(156),o=n(106),i=n(50),a=n(81),s=n(52),l=n(599),c=Object.getOwnPropertyDescriptor;t.f=n(29)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(112),o=n(36),i=n(85),a=n(33),s=n(16),l=function(){function e(){}return e.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch(p){if(t&&!0===t.get(o.default.TRY_HARDER)&&e.isRotateSupported()){var n=e.rotateCounterClockwise(),r=this.doDecode(n,t),l=r.getResultMetadata(),c=270;null!==l&&!0===l.get(i.default.ORIENTATION)&&(c+=l.get(i.default.ORIENTATION)%360),r.putMetadata(i.default.ORIENTATION,c);var u=r.getResultPoints();if(null!==u)for(var d=n.getHeight(),f=0;f>(d?8:5));n=d?c:15;for(var p=Math.trunc(c/2),h=0;h=c)break;try{u=e.getBlackRow(m,u)}catch(e){continue}for(var b=function(e){if(1===e&&(u.reverse(),t&&!0===t.get(o.default.NEED_RESULT_POINT_CALLBACK))){var n=new Map;t.forEach(function(e,t){return n.set(t,e)}),n.delete(o.default.NEED_RESULT_POINT_CALLBACK),t=n}try{var r=y.decodeRow(m,u,t);if(1===e){r.putMetadata(i.default.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new a.default(l-s[0].getX()-1,s[0].getY()),s[1]=new a.default(l-s[1].getX()-1,s[1].getY()))}return{value:r}}catch(e){}},y=this,g=0;g<2;g++){var v=b(g);if("object"==typeof v)return v.value}}throw new s.default},e.recordPattern=function(e,t,n){for(var r=n.length,o=0;o=i)throw new s.default;for(var a=!e.get(t),l=0,c=t;c0&&o>=0;)t.get(--n)!==i&&(o--,i=!i);if(o>=0)throw new s.default;e.recordPattern(t,n+1,r)},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;ad?u-d:d-u;if(f>n)return Number.POSITIVE_INFINITY;l+=f}return l/o},e}();t.default=l},function(e,t,n){(function(e,r){var o;/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var i=n(927),a={function:!0,object:!0},s=a[typeof t]&&t&&!t.nodeType&&t,l=a[typeof window]&&window||this,c=s&&a[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;function u(e,t){e||(e=l.Object()),t||(t=l.Object());var n=e.Number||l.Number,r=e.String||l.String,o=e.Object||l.Object,i=e.Date||l.Date,s=e.SyntaxError||l.SyntaxError,c=e.TypeError||l.TypeError,d=e.Math||l.Math,f=e.JSON||l.JSON;"object"==typeof f&&f&&(t.stringify=f.stringify,t.parse=f.parse);var p,h=o.prototype,_=h.toString,m=h.hasOwnProperty;function b(e,t){try{e()}catch(e){t&&t()}}var y=new i(-0xc782b5b800cec);function g(e){if(null!=g[e])return g[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=g("json-stringify")&&g("date-serialization")&&g("json-parse");else if("date-serialization"==e){if(o=g("json-stringify")&&y){var a=t.stringify;b(function(){o='"-271821-04-20T00:00:00.000Z"'==a(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==a(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==a(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==a(new i(-1))})}}else{var s,l='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c="function"==typeof(a=t.stringify);c&&((s=function(){return 1}).toJSON=s,b(function(){c="0"===a(0)&&"0"===a(new n)&&'""'==a(new r)&&a(_)===p&&a(p)===p&&a()===p&&"1"===a(s)&&"[1]"==a([s])&&"[null]"==a([p])&&"null"==a(null)&&"[null,null,null]"==a([p,_,null])&&a({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==l&&"1"===a(null,s)&&"[\n 1,\n 2\n]"==a([1,2],null,1)},function(){c=!1})),o=c}if("json-parse"==e){var u,d=t.parse;"function"==typeof d&&b(function(){0!==d("0")||d(!1)||(s=d(l),(u=5==s.a.length&&1===s.a[0])&&(b(function(){u=!d('"\t"')}),u&&b(function(){u=1!==d("01")}),u&&b(function(){u=1!==d("1.")})))},function(){u=!1}),o=u}}return g[e]=!!o}if(b(function(){y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}),g["bug-string-char-index"]=g["date-serialization"]=g.json=g["json-stringify"]=g["json-parse"]=null,!g("json")){var v=g("bug-string-char-index"),w=function(e,t){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)m.call(r,o)&&i++;return n=r=null,i?w=function(e,t){var n,r,o="[object Function]"==_.call(e);for(n in e)o&&"prototype"==n||!m.call(e,n)||(r="constructor"===n)||t(n);(r||m.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(e,t){var n,o,i="[object Function]"==_.call(e),s=!i&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||m;for(n in e)i&&"prototype"==n||!s.call(e,n)||t(n);for(o=r.length;n=r[--o];)s.call(e,n)&&t(n)}),w(e,t)};if(!g("json-stringify")&&!g("date-serialization")){var M={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},k=function(e,t){return("000000"+(t||0)).slice(-e)},T=function(e){var t,n,r,o,i,a,s,l,c;if(y)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),l=e.getUTCSeconds(),c=e.getUTCMilliseconds()};else{var u=d.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(e,t){return f[t]+365*(e-1970)+u((e-1969+(t=+(t>1)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(o=u(e/864e5),n=u(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=u((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),a=u((i=(e%864e5+864e5)%864e5)/36e5)%24,s=u(i/6e4)%60,l=u(i/1e3)%60,c=i%1e3}}return(T=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+k(6,n<0?-n:n):k(4,n))+"-"+k(2,r+1)+"-"+k(2,o)+"T"+k(2,a)+":"+k(2,s)+":"+k(2,l)+"."+k(3,c)+"Z",n=r=o=a=s=l=c=null):e=null,e})(e)};if(g("json-stringify")&&!g("date-serialization")){function O(e){return T(this)}var x=t.stringify;t.stringify=function(e,t,n){var r=i.prototype.toJSON;i.prototype.toJSON=O;var o=x(e,t,n);return i.prototype.toJSON=r,o}}else{var S=function(e){var t=e.charCodeAt(0),n=M[t];return n||"\\u00"+k(2,t.toString(16))},E=/[\x00-\x1f\x22\x5c]/g,A=function(e){return E.lastIndex=0,'"'+(E.test(e)?e.replace(E,S):e)+'"'},C=function(e,t,n,r,o,a,s){var l,u,d,f,h,m,y,g,v;if(b(function(){l=t[e]}),"object"==typeof l&&l&&(l.getUTCFullYear&&"[object Date]"==_.call(l)&&l.toJSON===i.prototype.toJSON?l=T(l):"function"==typeof l.toJSON&&(l=l.toJSON(e))),n&&(l=n.call(t,e,l)),l==p)return l===p?l:"null";switch("object"==(u=typeof l)&&(d=_.call(l)),d||u){case"boolean":case"[object Boolean]":return""+l;case"number":case"[object Number]":return l>-1/0&&l<1/0?""+l:"null";case"string":case"[object String]":return A(""+l)}if("object"==typeof l){for(y=s.length;y--;)if(s[y]===l)throw c();if(s.push(l),f=[],g=a,a+=o,"[object Array]"==d){for(m=0,y=l.length;m0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||j();e+=D("0x"+i.slice(t,L));break;default:j()}else{if(34==o)break;for(o=i.charCodeAt(L),t=L;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++L);e+=i.slice(t,L)}if(34==i.charCodeAt(L))return L++,e;j();default:if(t=L,45==o&&(r=!0,o=i.charCodeAt(++L)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(L+1))>=48&&o<=57)&&j(),r=!1;L=48&&o<=57);L++);if(46==i.charCodeAt(L)){for(n=++L;n57);n++);n==L&&j(),L=n}if(101==(o=i.charCodeAt(L))||69==o){for(43!=(o=i.charCodeAt(++L))&&45!=o||L++,n=L;n57);n++);n==L&&j(),L=n}return+i.slice(t,L)}r&&j();var s=i.slice(L,L+4);if("true"==s)return L+=4,!0;if("fals"==s&&101==i.charCodeAt(L+4))return L+=5,!1;if("null"==s)return L+=4,null;j()}return"$"},N=function(e){var t,n;if("$"==e&&j(),"string"==typeof e){if("@"==(v?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=R());)n?","==e?"]"==(e=R())&&j():j():n=!0,","==e&&j(),t.push(N(e));return t}if("{"==e){for(t={};"}"!=(e=R());)n?","==e?"}"==(e=R())&&j():j():n=!0,","!=e&&"string"==typeof e&&"@"==(v?e.charAt(0):e[0])&&":"==R()||j(),t[e.slice(1)]=N(R());return t}j()}return e},z=function(e,t,n){var r=q(e,t,n);r===p?delete e[t]:e[t]=r},q=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if("[object Array]"==_.call(o))for(r=o.length;r--;)z(_,w,o);else w(o,function(e){z(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return L=0,P=""+e,n=N(R()),"$"!=R()&&j(),L=P=null,t&&"[object Function]"==_.call(t)?q(((r={})[""]=n,r),"",t):n}}}return t.runInContext=u,t}if(!c||c.global!==c&&c.window!==c&&c.self!==c||(l=c),s&&!i)u(l,s);else{var d=l.JSON,f=l.JSON3,p=!1,h=u(l,l.JSON3={noConflict:function(){return p||(p=!0,l.JSON=d,l.JSON3=f,d=f=null),h}});l.JSON={parse:h.parse,stringify:h.stringify}}i&&(void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o))}).call(this)}).call(this,n(3)(e),n(11))},function(e,t,n){"use strict";n.r(t);var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=window.device,i={},a=[];window.device=i;var s=window.document.documentElement,l=window.navigator.userAgent.toLowerCase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function u(e,t){return-1!==e.indexOf(t)}function d(e){return u(l,e)}function f(e){return s.className.match(new RegExp(e,"i"))}function p(e){var t=null;f(e)||(t=s.className.replace(/^\s+|\s+$/g,""),s.className=t+" "+e)}function h(e){f(e)&&(s.className=s.className.replace(" "+e,""))}function _(){i.landscape()?(h("portrait"),p("landscape"),m("landscape")):(h("landscape"),p("portrait"),m("portrait")),g()}function m(e){for(var t in a)a[t](e)}i.macos=function(){return d("mac")},i.ios=function(){return i.iphone()||i.ipod()||i.ipad()},i.iphone=function(){return!i.windows()&&d("iphone")},i.ipod=function(){return d("ipod")},i.ipad=function(){var e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return d("ipad")||e},i.android=function(){return!i.windows()&&d("android")},i.androidPhone=function(){return i.android()&&d("mobile")},i.androidTablet=function(){return i.android()&&!d("mobile")},i.blackberry=function(){return d("blackberry")||d("bb10")||d("rim")},i.blackberryPhone=function(){return i.blackberry()&&!d("tablet")},i.blackberryTablet=function(){return i.blackberry()&&d("tablet")},i.windows=function(){return d("windows")},i.windowsPhone=function(){return i.windows()&&d("phone")},i.windowsTablet=function(){return i.windows()&&d("touch")&&!i.windowsPhone()},i.fxos=function(){return(d("(mobile")||d("(tablet"))&&d(" rv:")},i.fxosPhone=function(){return i.fxos()&&d("mobile")},i.fxosTablet=function(){return i.fxos()&&d("tablet")},i.meego=function(){return d("meego")},i.cordova=function(){return window.cordova&&"file:"===location.protocol},i.nodeWebkit=function(){return"object"===r(window.process)},i.mobile=function(){return i.androidPhone()||i.iphone()||i.ipod()||i.windowsPhone()||i.blackberryPhone()||i.fxosPhone()||i.meego()},i.tablet=function(){return i.ipad()||i.androidTablet()||i.blackberryTablet()||i.windowsTablet()||i.fxosTablet()},i.desktop=function(){return!i.tablet()&&!i.mobile()},i.television=function(){for(var e=0;e1},i.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?u(screen.orientation.type,"landscape"):i.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},i.noConflict=function(){return window.device=o,this},i.ios()?i.ipad()?p("ios ipad tablet"):i.iphone()?p("ios iphone mobile"):i.ipod()&&p("ios ipod mobile"):i.macos()?p("macos desktop"):i.android()?i.androidTablet()?p("android tablet"):p("android mobile"):i.blackberry()?i.blackberryTablet()?p("blackberry tablet"):p("blackberry mobile"):i.windows()?i.windowsTablet()?p("windows tablet"):i.windowsPhone()?p("windows mobile"):p("windows desktop"):i.fxos()?i.fxosTablet()?p("fxos tablet"):p("fxos mobile"):i.meego()?p("meego mobile"):i.nodeWebkit()?p("node-webkit"):i.television()?p("television"):i.desktop()&&p("desktop"),i.cordova()&&p("cordova"),i.onChangeOrientation=function(e){"function"==typeof e&&a.push(e)};var b="resize";function y(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.selected,r=e.hasIncluded;if(void 0!==r&&r)return!0;if(n&&"all"===n[0])return!0;var o=[];return t&&t.result&&t.result.map(function(e){o=o.concat(N(e))}),t&&t.size&&t.result&&n&&n[0]&&(0,l.getItemsByProperty)(o,"id",n[0]).length};t.doesSelectionExist=w;var M=function(e,t){e((0,o.push)("/window/".concat(t,"/new")))};t.redirectToNewDocument=M;var k=function(e,t){return(e?"+":"-")+t};function T(e,t){return e?t.map(function(t){return O(e,t)}):t}function O(e,t){var n=Object.values(t.fieldsByName).map(function(t){return x(e[t.field],t)}).reduce(function(e,t){return e[t.field]=t,e},{});return Object.assign({},t,{fieldsByName:n})}function x(e,t){return e?(e.widgetType&&(t.widgetType=e.widgetType),t):t}function S(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=s.id,c=s.includedDocuments;t[l]=s,c&&S(c,t)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}function E(e,t,n){return e.map(function(e){var r=e.id,o=e.includedDocuments;o&&(e.includedDocuments=E(o,t,n));var i=t[r];return i?O(n,i):e})}function A(e,t){var n=[];return t.forEach(function(t){var r=e.findIndex(function(e){return e.id===t});-1!==r&&(e=e.delete(r),n.push(t))}),{rows:e,removedRows:n}}function C(e){var t=e.toRows,n=e.fromRows,r=e.columnInfosByFieldName,o=void 0===r?{}:r,i=e.changedIds;return n||i?n.length?{rows:E(t,S(n,{}),o),removedRows:[]}:A(t,i):{rows:t,removedRows:[]}}function L(e){return e?"modal":"master"}function P(e){return j((0,l.nullToEmptyStrings)(e))}function D(e){return e.match(u.TIME_REGEX_TEST)?(0,a.default)(e,"hh:mm"):e}function I(e){return e?a.default.isMoment(e)?e:(e=D(e),(0,a.default)(e)):""}function j(e){var t=["Date","ZonedDateTime","Time","Timestamp"];return Object.keys(e).reduce(function(n,r){var o=e[r],i=t.indexOf(o.widgetType)>-1;return n[r]=i&&o.value?f({},o,{value:I(o.value)}):o,n},{})}function R(e){var t=[];return e&&e.map(function(e){t=t.concat(N(e))}),t}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||[],o=[],i=f({},e,{indent:r});if(o=o.concat([i]),n&&(r[r.length-2]=!1),e.includedDocuments)for(var a=0;an;)o[n]=t[n++];return o},Ae=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Ce=function(e){var t,n,r,o,i,a,s=M(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=S(s);if(void 0!=f&&!k(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=_(s.length),o=xe(this,n);n>t;t++)o[t]=d?u(s[t],t):s[t];return o},Le=function(){for(var e=0,t=arguments.length,n=xe(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!G&&i(function(){pe.call(new G(1))}),De=function(){return pe.apply(Pe?de.call(Oe(this)):Oe(this),arguments)},Ie={copyWithin:function(e,t){return z.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Oe(this),arguments)},filter:function(e){return Se(this,Q(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Oe(this),arguments)},lastIndexOf:function(e){return ae.apply(Oe(this),arguments)},map:function(e){return we(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return le.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=b(e,r);return new(P(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,_((void 0===t?r:b(t,r))-o))}},je=function(e,t){return Se(this,de.call(Oe(this),e,t))},Re=function(e){Oe(this);var t=Te(arguments[1],1),n=this.length,r=M(e),o=_(r.length),i=0;if(o+t>n)throw F("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,Me)}(this,n,e)},enumerable:!0})};g?(h=n(function(e,n,r,o){u(e,h,c,"_d");var i,a,s,l,d=0,p=0;if(w(n)){if(!(n instanceof X||"ArrayBuffer"==(l=v(n))||"SharedArrayBuffer"==l))return ge in n?Ee(h,n):Ce.call(h,n);i=n,p=Te(r,t);var b=n.byteLength;if(void 0===o){if(b%t)throw F("Wrong length!");if((a=b-p)<0)throw F("Wrong length!")}else if((a=_(o)*t)+p>b)throw F("Wrong length!");s=a/t}else s=m(n),i=new X(a=s*t);for(f(e,"_d",{b:i,o:p,l:a,e:s,v:new V(i)});dt?1:e>=t?0:NaN},n=function(e){return 1===e.length&&(e=function(e){return function(n,r){return t(e(n),r)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}},r=n(t),o=r.right,i=r.left;function a(e,t){return[e,t]}var s=function(e){return null===e?NaN:+e},l=function(e,t){var n,r,o=e.length,i=0,a=-1,l=0,c=0;if(null==t)for(;++a1)return c/(i-1)},c=function(e,t){var n=l(e,t);return n?Math.sqrt(n):n},u=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)for(e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(r=Math.ceil(t-e+1));++s=0?(i>=b?10:i>=y?5:i>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=b?10:i>=y?5:i>=g?2:1)}function M(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=b?o*=10:i>=y?o*=5:i>=g&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return a+(l-a)*(o-i)}},O=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n},x=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},S=function(e){if(!(o=e.length))return[];for(var t=-1,n=x(e,E),r=new Array(n);++t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),U.hasOwnProperty(t)?{space:U[t],local:e}:e},V=function(e){var t=X(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===G&&t.documentElement.namespaceURI===G?t.createElement(e):t.createElementNS(n,e)}})(t)},K=0;function Q(){return new J}function J(){this._="@"+(++K).toString(36)}J.prototype=Q.prototype={constructor:J,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Z=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var $=document.documentElement;if(!$.matches){var ee=$.webkitMatchesSelector||$.msMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector;Z=function(e){return function(){return ee.call(this,e)}}}}var te=Z,ne={};if(e.event=null,"undefined"!=typeof document){var re=document.documentElement;"onmouseenter"in re||(ne={mouseenter:"mouseover",mouseleave:"mouseout"})}function oe(e,t,n){return e=ie(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ie(t,n,r){return function(o){var i=e.event;e.event=o;try{t.call(this,this.__data__,n,r)}finally{e.event=i}}}function ae(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;rt?1:e>=t?0:NaN}var Me=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function ke(e,t){return e.style.getPropertyValue(t)||Me(e).getComputedStyle(e,null).getPropertyValue(t)}function Te(e){return e.trim().split(/^|\s+/)}function Oe(e){return e.classList||new xe(e)}function xe(e){this._node=e,this._names=Te(e.getAttribute("class")||"")}function Se(e,t){for(var n=Oe(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Re=[null];function Ne(e,t){this._groups=e,this._parents=t}function ze(){return new Ne([[document.documentElement]],Re)}Ne.prototype=ze.prototype={constructor:Ne,select:function(e){"function"!=typeof e&&(e=pe(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=w&&(w=v+1);!(g=m[w])&&++w=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=we);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):ke(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Te(e+"");if(arguments.length<2){for(var r=Oe(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?se:ae,null==n&&(n=!1),r=0;r>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=it.exec(e))?ht(parseInt(t[1],16)):(t=at.exec(e))?new yt(t[1],t[2],t[3],1):(t=st.exec(e))?new yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lt.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=ct.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ut.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?ht(ft[e]):"transparent"===e?new yt(NaN,NaN,NaN,0):null}function ht(e){return new yt(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new yt(e,t,n,r)}function mt(e){return e instanceof $e||(e=pt(e)),e?new yt((e=e.rgb()).r,e.g,e.b,e.opacity):new yt}function bt(e,t,n,r){return 1===arguments.length?mt(e):new yt(e,t,n,null==r?1:r)}function yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wt(e,t,n,r)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wt)return new wt(e.h,e.s,e.l,e.opacity);if(e instanceof $e||(e=pt(e)),!e)return new wt;if(e instanceof wt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new wt(a,s,l,e.opacity)}(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Je($e,pt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Je(yt,bt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Je(wt,vt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new wt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new wt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yt(Mt(e>=240?e-240:e+120,o,r),Mt(e,o,r),Mt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var kt=Math.PI/180,Tt=180/Math.PI,Ot=.95047,xt=1,St=1.08883,Et=4/29,At=6/29,Ct=3*At*At,Lt=At*At*At;function Pt(e){if(e instanceof It)return new It(e.l,e.a,e.b,e.opacity);if(e instanceof Wt){var t=e.h*kt;return new It(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof yt||(e=mt(e));var n=zt(e.r),r=zt(e.g),o=zt(e.b),i=jt((.4124564*n+.3575761*r+.1804375*o)/Ot),a=jt((.2126729*n+.7151522*r+.072175*o)/xt),s=jt((.0193339*n+.119192*r+.9503041*o)/St);return new It(116*a-16,500*(i-a),200*(a-s),e.opacity)}function Dt(e,t,n,r){return 1===arguments.length?Pt(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jt(e){return e>Lt?Math.pow(e,1/3):e/Ct+Et}function Rt(e){return e>At?e*e*e:Ct*(e-Et)}function Nt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);e instanceof It||(e=Pt(e));var t=Math.atan2(e.b,e.a)*Tt;return new Wt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wt(e,t,n,null==r?1:r)}function Wt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Je(It,Dt,Ze($e,{brighter:function(e){return new It(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new It(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=xt*Rt(e),t=Ot*Rt(t),n=St*Rt(n),new yt(Nt(3.2404542*t-1.5371385*e-.4985314*n),Nt(-.969266*t+1.8760108*e+.041556*n),Nt(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Je(Wt,qt,Ze($e,{brighter:function(e){return new Wt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Wt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Pt(this).rgb()}}));var Ht=-.14861,Bt=1.78277,Ft=-.29227,Yt=-.90649,Gt=1.97294,Ut=Gt*Yt,Xt=Gt*Bt,Vt=Bt*Ft-Yt*Ht;function Kt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Qt)return new Qt(e.h,e.s,e.l,e.opacity);e instanceof yt||(e=mt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Vt*r+Ut*t-Xt*n)/(Vt+Ut-Xt),i=r-o,a=(Gt*(n-o)-Ft*i)/Yt,s=Math.sqrt(a*a+i*i)/(Gt*o*(1-o)),l=s?Math.atan2(a,i)*Tt-120:NaN;return new Qt(l<0?l+360:l,s,o,e.opacity)}(e):new Qt(e,t,n,null==r?1:r)}function Qt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jt(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Je(Qt,Kt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new Qt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Qt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*kt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new yt(255*(t+n*(Ht*r+Bt*o)),255*(t+n*(Ft*r+Yt*o)),255*(t+n*(Gt*r)),this.opacity)}}));var Zt=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r180||n<-180?n-360*Math.round(n/360):n):en(isNaN(e)?t:e)}function rn(e){return 1==(e=+e)?on:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):en(isNaN(t)?n:t)}}function on(e,t){var n=t-e;return n?tn(e,n):en(isNaN(e)?t:e)}var an=function e(t){var n=rn(t);function r(e,t){var r=n((e=bt(e)).r,(t=bt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=on(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function sn(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;ni&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:mn(n,r)})),i=gn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:mn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:mn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:mn(e,n)},{i:s-2,x:mn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--Fn}function rr(){Vn=(Xn=Qn.now())+Kn,Fn=Yn=0;try{nr()}finally{Fn=0,function(){for(var e,t,n=qn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:qn=t);Wn=e,ir(r)}(),Vn=0}}function or(){var e=Qn.now(),t=e-Xn;t>Un&&(Kn-=t,Xn=e)}function ir(e){if(!Fn){Yn&&(Yn=clearTimeout(Yn));var t=e-Vn;t>24?(e<1/0&&(Yn=setTimeout(rr,t)),Gn&&(Gn=clearInterval(Gn))):(Gn||(Xn=Vn,Gn=setInterval(or,Un)),Fn=1,Jn(rr))}}er.prototype=tr.prototype={constructor:er,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Zn():+n)+(null==t?0:+t),this._next||Wn===this||(Wn?Wn._next=this:qn=this,Wn=this),this._call=e,this._time=n,ir()},stop:function(){this._call&&(this._call=null,this._time=1/0,ir())}};var ar=function(e,t,n){var r=new er;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},sr=H("start","end","interrupt"),lr=[],cr=0,ur=1,dr=2,fr=3,pr=4,hr=5,_r=6,mr=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(l){var c,u,d,f;if(n.state!==ur)return s();for(c in o)if((f=o[c]).name===n.name){if(f.state===fr)return ar(i);f.state===pr?(f.state=_r,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+ccr)throw new Error("too late");return n}function yr(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>dr)throw new Error("too late");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("too late");return n}var vr=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>dr&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?br:yr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=X(e),r="transform"===n?En:Mr;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttribute(e)}})(n,r,wr(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o;return function(){var i=this.getAttributeNS(e.space,e.local);return i===n?null:i===r?o:o=t(r=i,n)}}:function(e,t,n){var r,o;return function(){var i=this.getAttribute(e);return i===n?null:i===r?o:o=t(r=i,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=X(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Sn:Mr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=ke(this,e),a=(this.style.removeProperty(e),ke(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,o,i;return function(){var a=ke(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=ke(this,e)),a===s?null:a===r&&s===o?i:i=t(r=a,o=s)}}(e,r,wr(this,"style."+e,t)):function(e,t,n){var r,o;return function(){var i=ke(this,e);return i===n?null:i===r?o:o=t(r=i,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,o=t.apply(r,arguments);return o&&function(t){r.style.setProperty(e,o(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=gr(this.node(),n).tween,i=0,a=o.length;i0&&(r=i-h),k<0?f=p-_:k>0&&(a=s-_),w=fo,R.attr("cursor",yo.selection),q());break;default:return}co()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:L&&(b=y=L=!1,q());break;case 18:w===ho&&(M<0?u=d:M>0&&(r=i),k<0?f=p:k>0&&(a=s),w=po,q());break;case 32:w===fo&&(e.event.altKey?(M&&(u=d-h*M,r=i+h*M),k&&(f=p-_*k,a=s+_*k),w=ho):(M<0?u=d:M>0&&(r=i),k<0?f=p:k>0&&(a=s),w=po),R.attr("cursor",yo[v]),q());break;default:return}co()},!0).on("mousemove.brush",z,!0).on("mouseup.brush",W,!0);Fe(e.event.view)}lo(),vr(g),l.call(g),I.start()}function z(){var e=de(g);!L||b||y||(Math.abs(e[0]-D[0])>Math.abs(e[1]-D[1])?y=!0:b=!0),D=e,m=!0,co(),q()}function q(){var e;switch(h=D[0]-P[0],_=D[1]-P[1],w){case fo:case uo:M&&(h=Math.max(S-r,Math.min(A-u,h)),i=r+h,d=u+h),k&&(_=Math.max(E-a,Math.min(C-f,_)),s=a+_,p=f+_);break;case po:M<0?(h=Math.max(S-r,Math.min(A-r,h)),i=r+h,d=u):M>0&&(h=Math.max(S-u,Math.min(A-u,h)),i=r,d=u+h),k<0?(_=Math.max(E-a,Math.min(C-a,_)),s=a+_,p=f):k>0&&(_=Math.max(E-f,Math.min(C-f,_)),s=a,p=f+_);break;case ho:M&&(i=Math.max(S,Math.min(A,r-h*M)),d=Math.max(S,Math.min(A,u+h*M))),k&&(s=Math.max(E,Math.min(C,a-_*k)),p=Math.max(E,Math.min(C,f+_*k)))}d1e-6)if(Math.abs(u*s-l*c)>1e-6&&o){var f=n-i,p=r-a,h=s*s+l*l,_=f*f+p*p,m=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((No-Math.acos((h+d-_)/(2*m*b)))/2),g=y/b,v=y/m;Math.abs(g-1)>1e-6&&(this._+="L"+(e+g*c)+","+(t+g*u)),this._+="A"+o+","+o+",0,0,"+ +(u*f>c*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%zo+zo),d>qo?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=No)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},Xo.prototype=Vo.prototype={constructor:Xo,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var ei=Vo.prototype;function ti(e,t){var n=new $o;if(e instanceof $o)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r=l)return a;if(o)return o=!1,i;var t,r=c;if(34===e.charCodeAt(r)){for(var s=r;s++=(i=(_+b)/2))?_=i:b=i,(u=n>=(a=(m+y)/2))?m=a:y=a,o=p,!(p=p[d=u<<1|c]))return o[d]=h,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(c=t>=(i=(_+b)/2))?_=i:b=i,(u=n>=(a=(m+y)/2))?m=a:y=a}while((d=u<<1|c)==(f=(l>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var bi=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function yi(e){return e[0]}function gi(e){return e[1]}function vi(e,t,n){var r=new wi(null==t?yi:t,null==n?gi:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function wi(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function Mi(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ki=vi.prototype=wi.prototype;function Ti(e){return e.x+e.vx}function Oi(e){return e.y+e.vy}function xi(e){return e.index}function Si(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ei(e){return e.x}function Ai(e){return e.y}ki.copy=function(){var e,t,n=new wi(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Mi(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=Mi(t));return n},ki.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return mi(this.cover(t,n),t,n,e)},ki.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;nu&&(u=r),od&&(d=o));for(ue||e>o||r>t||t>i))return this;var a,s,l=o-n,c=this._root;switch(s=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[s]=c,c=a}while(i=r+(l*=2),e>(o=n+l)||t>i);break;case 1:do{(a=new Array(4))[s]=c,c=a}while(i=r+(l*=2),(n=o-l)>e||t>i);break;case 2:do{(a=new Array(4))[s]=c,c=a}while(r=i-(l*=2),e>(o=n+l)||r>t);break;case 3:do{(a=new Array(4))[s]=c,c=a}while(r=i-(l*=2),(n=o-l)>e||r>t)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},ki.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},ki.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ki.find=function(e,t,n){var r,o,i,a,s,l,c,u=this._x0,d=this._y0,f=this._x1,p=this._y1,h=[],_=this._root;for(_&&h.push(new bi(_,u,d,f,p)),null==n?n=1/0:(u=e-n,d=t-n,f=e+n,p=t+n,n*=n);l=h.pop();)if(!(!(_=l.node)||(o=l.x0)>f||(i=l.y0)>p||(a=l.x1)=b)<<1|e>=m)&&(l=h[h.length-1],h[h.length-1]=h[h.length-1-c],h[h.length-1-c]=l)}else{var y=e-+this._x.call(null,_.data),g=t-+this._y.call(null,_.data),v=y*y+g*g;if(v=(s=(h+m)/2))?h=s:m=s,(u=a>=(l=(_+b)/2))?_=l:b=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},ki.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},Ii=function(e){return(e=Di(Math.abs(e)))?e[1]:NaN},ji=function(e,t){var n=Di(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Ri={"":function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ji(100*e,t)},r:ji,s:function(e,t){var n=Di(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Ci=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Di(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ni=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function zi(e){return new qi(e)}function qi(e){if(!(t=Ni.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],l=!!t[7],c=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(l=!0,u="g"):Ri[u]||(u=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=l,this.precision=c,this.type=u}zi.prototype=qi.prototype,qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Wi,Hi=function(e){return e},Bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Fi=function(e){var t=e.grouping&&e.thousands?function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}(e.grouping,e.thousands):Hi,n=e.currency,r=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Hi,i=e.percent||"%";function a(e){var a=(e=zi(e)).fill,s=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.type,_="$"===c?n[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",m="$"===c?n[1]:/[%p]/.test(h)?i:"",b=Ri[h],y=!h||/[defgprs%]/.test(h);function g(e){var n,i,c,g=_,v=m;if("c"===h)v=b(e)+v,e="";else{var w=(e=+e)<0;if(e=b(Math.abs(e),p),w&&0==+e&&(w=!1),g=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+g,v=v+("s"===h?Bi[8+Ci/3]:"")+(w&&"("===l?")":""),y)for(n=-1,i=e.length;++n(c=e.charCodeAt(n))||c>57){v=(46===c?r+e.slice(n+1):e.slice(n))+v,e=e.slice(0,n);break}}f&&!u&&(e=t(e,1/0));var M=g.length+e.length+v.length,k=M>1)+g+e+v+k.slice(M);break;default:e=k+g+e+v}return o(e)}return p=null==p?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),g.toString=function(){return e+""},g}return{format:a,formatPrefix:function(e,t){var n=a(((e=zi(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ii(t)/3))),o=Math.pow(10,-r),i=Bi[8+r/3];return function(e){return n(o*e)+i}}}};function Yi(t){return Wi=Fi(t),e.format=Wi.format,e.formatPrefix=Wi.formatPrefix,Wi}Yi({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Gi=function(e){return Math.max(0,-Ii(Math.abs(e)))},Ui=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ii(t)/3)))-Ii(Math.abs(e)))},Xi=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ii(t)-Ii(e))+1},Vi=function(){return new Ki};function Ki(){this.reset()}Ki.prototype={constructor:Ki,reset:function(){this.s=this.t=0},add:function(e){Ji(Qi,e,this.t),Ji(this,Qi.s,this.s),this.s?this.t+=Qi.t:this.s=Qi.t},valueOf:function(){return this.s}};var Qi=new Ki;function Ji(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var Zi=1e-6,$i=Math.PI,ea=$i/2,ta=$i/4,na=2*$i,ra=180/$i,oa=$i/180,ia=Math.abs,aa=Math.atan,sa=Math.atan2,la=Math.cos,ca=Math.ceil,ua=Math.exp,da=Math.log,fa=Math.pow,pa=Math.sin,ha=Math.sign||function(e){return e>0?1:e<0?-1:0},_a=Math.sqrt,ma=Math.tan;function ba(e){return e>1?0:e<-1?$i:Math.acos(e)}function ya(e){return e>1?ea:e<-1?-ea:Math.asin(e)}function ga(e){return(e=pa(e/2))*e}function va(){}function wa(e,t){e&&ka.hasOwnProperty(e.type)&&ka[e.type](e,t)}var Ma={Feature:function(e,t){wa(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=la(t),a=pa(t),s=Ca*a,l=Aa*i+s*la(o),c=s*r*pa(o);Wa.add(sa(c,l)),Ea=e,Aa=i,Ca=a}function Xa(e){return[sa(e[1],e[0]),ya(e[2])]}function Va(e){var t=e[0],n=e[1],r=la(n);return[r*la(t),r*pa(t),pa(n)]}function Ka(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Qa(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ja(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Za(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function $a(e){var t=_a(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var es,ts,ns=Vi(),rs={point:os,lineStart:as,lineEnd:ss,polygonStart:function(){rs.point=ls,rs.lineStart=cs,rs.lineEnd=us,ns.reset(),Ba.polygonStart()},polygonEnd:function(){Ba.polygonEnd(),rs.point=os,rs.lineStart=as,rs.lineEnd=ss,Wa<0?(La=-(Da=180),Pa=-(Ia=90)):ns>Zi?Ia=90:ns<-Zi&&(Pa=-90),ts[0]=La,ts[1]=Da}};function os(e,t){es.push(ts=[La=e,Da=e]),tIa&&(Ia=t)}function is(e,t){var n=Va([e*oa,t*oa]);if(za){var r=Qa(za,n),o=[r[1],-r[0],0],i=Qa(o,r);$a(i),i=Xa(i);var a,s=e-ja,l=s>0?1:-1,c=i[0]*ra*l,u=ia(s)>180;u^(l*jaIa&&(Ia=a):u^(l*ja<(c=(c+360)%360-180)&&cIa&&(Ia=t)),u?eds(La,Da)&&(Da=e):ds(e,Da)>ds(La,Da)&&(La=e):Da>=La?(eDa&&(Da=e)):e>ja?ds(La,e)>ds(La,Da)&&(Da=e):ds(e,Da)>ds(La,Da)&&(La=e)}else es.push(ts=[La=e,Da=e]);tIa&&(Ia=t),za=n,ja=e}function as(){rs.point=is}function ss(){ts[0]=La,ts[1]=Da,rs.point=os,za=null}function ls(e,t){if(za){var n=e-ja;ns.add(ia(n)>180?n+(n>0?360:-360):n)}else Ra=e,Na=t;Ba.point(e,t),is(e,t)}function cs(){Ba.lineStart()}function us(){ls(Ra,Na),Ba.lineEnd(),ia(ns)>Zi&&(La=-(Da=180)),ts[0]=La,ts[1]=Da,za=null}function ds(e,t){return(t-=e)<0?t+360:t}function fs(e,t){return e[0]-t[0]}function ps(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t$i?e-na:e<-$i?e+na:e,t]}function Ys(e,t,n){return(e%=na)?t||n?Bs(Us(e),Xs(t,n)):Us(e):t||n?Xs(t,n):Fs}function Gs(e){return function(t,n){return[(t+=e)>$i?t-na:t<-$i?t+na:t,n]}}function Us(e){var t=Gs(e);return t.invert=Gs(-e),t}function Xs(e,t){var n=la(e),r=pa(e),o=la(t),i=pa(t);function a(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,c=pa(t),u=c*n+s*r;return[sa(l*o-u*i,s*n-c*r),ya(u*o+l*i)]}return a.invert=function(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,c=pa(t),u=c*o-l*i;return[sa(l*o+c*i,s*n+u*r),ya(u*n-s*r)]},a}Fs.invert=Fs;var Vs=function(e){function t(t){return(t=e(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t}return e=Ys(e[0]*oa,e[1]*oa,e.length>2?e[2]*oa:0),t.invert=function(t){return(t=e.invert(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t},t};function Ks(e,t,n,r,o,i){if(n){var a=la(t),s=pa(t),l=r*n;null==o?(o=t+r*na,i=t-l/2):(o=Qs(a,o),i=Qs(a,i),(r>0?oi)&&(o+=r*na));for(var c,u=o;r>0?u>i:u1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Zs=function(e,t,n,r,o,i){var a,s=e[0],l=e[1],c=t[0],u=t[1],d=0,f=1,p=c-s,h=u-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>d&&(d=a)}else if(p>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=i-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a0&&(e[0]=s+d*p,e[1]=l+d*h),f<1&&(t[0]=s+f*p,t[1]=l+f*h),!0}}}}},$s=function(e,t){return ia(e[0]-t[0])=0;--i)o.point((u=c[i])[0],u[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,c=f.z,p=!p}while(!f.v);o.lineEnd()}}};function nl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(i[0],i[1])}function a(r,o){return ia(r[0]-e)0?0:3:ia(r[0]-n)0?2:1:ia(r[1]-t)0?1:0:o>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,d,f,p,h,_,m,b,y,g=a,v=Js(),w={point:M,lineStart:function(){w.point=k,c&&c.push(u=[]),b=!0,m=!1,h=_=NaN},lineEnd:function(){l&&(k(d,f),p&&m&&v.rejoin(),l.push(v.result())),w.point=M,m&&g.lineEnd()},polygonStart:function(){g=v,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=c.length;nr&&(f-i)*(r-a)>(p-a)*(e-i)&&++t:p<=r&&(f-i)*(r-a)<(p-a)*(e-i)&&--t;return t}(),n=y&&t,o=(l=O(l)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&tl(l,s,t,i,a),a.polygonEnd()),g=a,l=c=u=null}};function M(e,t){o(e,t)&&g.point(e,t)}function k(i,a){var s=o(i,a);if(c&&u.push([i,a]),b)d=i,f=a,p=s,b=!1,s&&(g.lineStart(),g.point(i,a));else if(s&&m)g.point(i,a);else{var l=[h=Math.max(ol,Math.min(rl,h)),_=Math.max(ol,Math.min(rl,_))],v=[i=Math.max(ol,Math.min(rl,i)),a=Math.max(ol,Math.min(rl,a))];Zs(l,v,e,t,n,r)?(m||(g.lineStart(),g.point(l[0],l[1])),g.point(v[0],v[1]),s||g.lineEnd(),y=!1):s&&(g.lineStart(),g.point(i,a),y=!1)}h=i,_=a,m=s}return w}}var al,sl,ll,cl=Vi(),ul=function(e,t){var n=t[0],r=t[1],o=[pa(n),-la(n),0],i=0,a=0;cl.reset();for(var s=0,l=e.length;s=0?1:-1,T=k*M,O=T>$i,x=h*v;if(cl.add(sa(x*k*pa(T),_*w+x*la(T))),i+=O?M+k*na:M,O^f>=n^y>=n){var S=Qa(Va(d),Va(b));$a(S);var E=Qa(o,S);$a(E);var A=(O^M>=0?-1:1)*ya(E[2]);(r>A||r===A&&(S[0]||S[1]))&&(a+=O^M>=0?1:-1)}}return(i<-Zi||iZi}).map(l)).concat(m(ca(i/p)*p,o,p).filter(function(e){return ia(e%_)>Zi}).map(c))}return y.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(d(a).slice(1),u(n).reverse().slice(1),d(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(b)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),y.precision(b)):[[t,i],[e,o]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(h=+e[0],_=+e[1],y):[h,_]},y.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],y):[f,p]},y.precision=function(f){return arguments.length?(b=+f,l=El(i,o,90),c=Al(t,e,b),u=El(s,a,90),d=Al(r,n,b),y):b},y.extentMajor([[-180,-90+Zi],[180,90-Zi]]).extentMinor([[-180,-80-Zi],[180,80+Zi]])}var Ll,Pl,Dl,Il,jl=function(e){return e},Rl=Vi(),Nl=Vi(),zl={point:va,lineStart:va,lineEnd:va,polygonStart:function(){zl.lineStart=ql,zl.lineEnd=Bl},polygonEnd:function(){zl.lineStart=zl.lineEnd=zl.point=va,Rl.add(ia(Nl)),Nl.reset()},result:function(){var e=Rl/2;return Rl.reset(),e}};function ql(){zl.point=Wl}function Wl(e,t){zl.point=Hl,Ll=Dl=e,Pl=Il=t}function Hl(e,t){Nl.add(Il*e-Dl*t),Dl=e,Il=t}function Bl(){Hl(Ll,Pl)}var Fl,Yl,Gl,Ul,Xl=1/0,Vl=Xl,Kl=-Xl,Ql=Kl,Jl={point:function(e,t){eKl&&(Kl=e),tQl&&(Ql=t)},lineStart:va,lineEnd:va,polygonStart:va,polygonEnd:va,result:function(){var e=[[Xl,Vl],[Kl,Ql]];return Kl=Ql=-(Vl=Xl=1/0),e}},Zl=0,$l=0,ec=0,tc=0,nc=0,rc=0,oc=0,ic=0,ac=0,sc={point:lc,lineStart:cc,lineEnd:fc,polygonStart:function(){sc.lineStart=pc,sc.lineEnd=hc},polygonEnd:function(){sc.point=lc,sc.lineStart=cc,sc.lineEnd=fc},result:function(){var e=ac?[oc/ac,ic/ac]:rc?[tc/rc,nc/rc]:ec?[Zl/ec,$l/ec]:[NaN,NaN];return Zl=$l=ec=tc=nc=rc=oc=ic=ac=0,e}};function lc(e,t){Zl+=e,$l+=t,++ec}function cc(){sc.point=uc}function uc(e,t){sc.point=dc,lc(Gl=e,Ul=t)}function dc(e,t){var n=e-Gl,r=t-Ul,o=_a(n*n+r*r);tc+=o*(Gl+e)/2,nc+=o*(Ul+t)/2,rc+=o,lc(Gl=e,Ul=t)}function fc(){sc.point=lc}function pc(){sc.point=_c}function hc(){mc(Fl,Yl)}function _c(e,t){sc.point=mc,lc(Fl=Gl=e,Yl=Ul=t)}function mc(e,t){var n=e-Gl,r=t-Ul,o=_a(n*n+r*r);tc+=o*(Gl+e)/2,nc+=o*(Ul+t)/2,rc+=o,oc+=(o=Ul*e-Gl*t)*(Gl+e),ic+=o*(Ul+t),ac+=3*o,lc(Gl=e,Ul=t)}function bc(e){this._context=e}bc.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,na)}},result:va};var yc,gc,vc,wc,Mc,kc=Vi(),Tc={point:va,lineStart:function(){Tc.point=Oc},lineEnd:function(){yc&&xc(gc,vc),Tc.point=va},polygonStart:function(){yc=!0},polygonEnd:function(){yc=null},result:function(){var e=+kc;return kc.reset(),e}};function Oc(e,t){Tc.point=xc,gc=wc=e,vc=Mc=t}function xc(e,t){wc-=e,Mc-=t,kc.add(_a(wc*wc+Mc*Mc)),wc=e,Mc=t}function Sc(){this._string=[]}function Ec(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Sc.prototype={_radius:4.5,_circle:Ec(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Ec(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Ac=function(e,t,n,r){return function(o,i){var a,s,l,c=t(i),u=o.invert(r[0],r[1]),d=Js(),f=t(d),p=!1,h={point:_,lineStart:b,lineEnd:y,polygonStart:function(){h.point=g,h.lineStart=v,h.lineEnd=w,s=[],a=[]},polygonEnd:function(){h.point=_,h.lineStart=b,h.lineEnd=y,s=O(s);var e=ul(a,u);s.length?(p||(i.polygonStart(),p=!0),tl(s,Lc,e,n,i)):e&&(p||(i.polygonStart(),p=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),p&&(i.polygonEnd(),p=!1),s=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function _(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);c.point(n[0],n[1])}function b(){h.point=m,c.lineStart()}function y(){h.point=_,c.lineEnd()}function g(e,t){l.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),l=[]}function w(){g(l[0][0],l[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),c=d.result(),u=c.length;if(l.pop(),a.push(l),l=null,u)if(1&o){if(n=c[0],(t=n.length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e1&&2&o&&c.push(c.pop().concat(c.shift())),s.push(c.filter(Cc))}return h}};function Cc(e){return e.length>1}function Lc(e,t){return((e=e.x)[0]<0?e[1]-ea-Zi:ea-e[1])-((t=t.x)[0]<0?t[1]-ea-Zi:ea-t[1])}var Pc=Ac(function(){return!0},function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?$i:-$i,l=ia(i-n);ia(l-$i)0?ea:-ea),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&l>=$i&&(ia(n-o)Zi?aa((pa(t)*(i=la(r))*pa(n)-pa(r)*(o=la(t))*pa(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var o;if(null==e)o=n*ea,r.point(-$i,o),r.point(0,o),r.point($i,o),r.point($i,0),r.point($i,-o),r.point(0,-o),r.point(-$i,-o),r.point(-$i,0),r.point(-$i,o);else if(ia(e[0]-t[0])>Zi){var i=e[0]0,o=ia(n)>Zi;function i(e,t){return la(e)*la(t)>n}function a(e,t,r){var o=Va(e),i=Va(t),a=[1,0,0],s=Qa(o,i),l=Ka(s,s),c=s[0],u=l-c*c;if(!u)return!r&&e;var d=n*l/u,f=-n*c/u,p=Qa(a,s),h=Za(a,d),_=Za(s,f);Ja(h,_);var m=p,b=Ka(h,m),y=Ka(m,m),g=b*b-y*(Ka(h,h)-1);if(!(g<0)){var v=_a(g),w=Za(m,(-b-v)/y);if(Ja(w,h),w=Xa(w),!r)return w;var M,k=e[0],T=t[0],O=e[1],x=t[1];T0^w[1]<(ia(w[0]-k)$i^(k<=w[0]&&w[0]<=T)){var C=Za(m,(-b+v)/y);return Ja(C,h),[w,Xa(C)]}}}function s(t,n){var o=r?e:$i-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Ac(i,function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,f){var p,h=[d,f],_=i(d,f),m=r?_?0:s(d,f):_?s(d+(d<0?$i:-$i),f):0;if(!t&&(c=l=_)&&e.lineStart(),_!==l&&(!(p=a(t,h))||$s(t,p)||$s(h,p))&&(h[0]+=Zi,h[1]+=Zi,_=i(h[0],h[1])),_!==l)u=0,_?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^_){var b;m&n||!(b=a(h,t,!0))||(u=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!_||t&&$s(t,h)||e.point(h[0],h[1]),t=h,l=_,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},function(n,r,o,i){Ks(i,e,t,o,n,r)},r?[0,-e]:[-$i,e-$i])};function Ic(e){return function(t){var n=new jc;for(var r in e)n[r]=e[r];return n.stream=t,n}}function jc(){}function Rc(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),qa(n,e.stream(Jl));var a=Jl.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),l=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,c=+t[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*s).translate([l,c])}function Nc(e,t,n){return Rc(e,[[0,0],t],n)}jc.prototype={constructor:jc,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var zc=16,qc=la(30*oa),Wc=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,l,c,u,d,f,p,h,_,m){var b=c-r,y=u-o,g=b*b+y*y;if(g>4*t&&_--){var v=a+f,w=s+p,M=l+h,k=_a(v*v+w*w+M*M),T=ya(M/=k),O=ia(ia(M)-1)t||ia((b*A+y*C)/g-.5)>.3||a*f+s*p+l*h2?e[2]%360*oa:0,E()):[m*ra,b*ra,y*ra]},O.precision=function(e){return arguments.length?(T=Wc(S,k=e*e),A()):_a(k)},O.fitExtent=function(e,t){return Rc(O,e,t)},O.fitSize=function(e,t){return Nc(O,e,t)},function(){return t=e.apply(this,arguments),O.invert=t.invert&&x,E()}}function Yc(e){var t=0,n=$i/3,r=Fc(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*oa,n=e[1]*oa):[t*ra,n*ra]},o}function Gc(e,t){var n=pa(e),r=(n+pa(t))/2;if(ia(r)0?t<-ea+Zi&&(t=-ea+Zi):t>ea-Zi&&(t=ea-Zi);var n=o/fa(eu(t),r);return[n*pa(r*e),o-n*la(r*e)]}return i.invert=function(e,t){var n=o-t,i=ha(r)*_a(e*e+n*n);return[sa(e,ia(n))/r*ha(n),2*aa(fa(o/i,1/r))-ea]},i}function nu(e,t){return[e,t]}function ru(e,t){var n=la(e),r=e===t?pa(e):(n-la(t))/(t-e),o=n/r+e;if(ia(r)=0;)t+=n[r].value;else t=1;e.value=t}function pu(e,t){var n,r,o,i,a,s=new bu(e),l=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=hu);n=c.pop();)if(l&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)c.push(r=n.children[i]=new bu(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(mu)}function hu(e){return e.children}function _u(e){e.data=e.data.data}function mu(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bu(e){this.data=e,this.depth=this.height=0,this.parent=null}Jc.invert=Kc(function(e){return e}),Zc.invert=function(e,t){return[e,2*aa(ua(t))-ea]},nu.invert=nu,ou.invert=Kc(aa),au.invert=Kc(ya),su.invert=Kc(function(e){return 2*aa(e)}),lu.invert=function(e,t){return[-t,2*aa(ua(e))-ea]},bu.prototype=pu.prototype={constructor:bu,count:function(){return this.eachAfter(fu)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return pu(this).eachBefore(_u)}};var yu=Array.prototype.slice,gu=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(yu.call(e))).length,i=[];r0&&n*n>r*r+o*o}function ku(e,t){for(var n=0;nn*n+r*r}function Au(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function Cu(e){this._=e,this.next=null,this.previous=null}function Lu(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,l,c,u,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Su(n,t,r=e[2]),t=new Cu(t),n=new Cu(n),r=new Cu(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),m=u*u*_,(p=Math.max(f/m,m/d))>h){u-=s;break}h=p}b.push(a={value:u,dice:l1?t:1)},n}($u),nd=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,d=-1,f=a.length,p=e.value;++d1?t:1)},n}($u),rd=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function od(e,t){return e[0]-t[0]||e[1]-t[1]}function id(e){for(var t=e.length,n=[0,1],r=2,o=2;o1&&rd(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var ad=[].slice,sd={};function ld(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function cd(e){if(!e._start)try{!function(e){for(;e._start=e._waiting&&e._active=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,fd(e)}function fd(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function pd(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new ld(e)}ld.prototype=pd.prototype={constructor:ld,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=ad.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),cd(this),this},abort:function(){return null==this._error&&dd(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},fd(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,fd(this),this}};var hd=function(){return Math.random()},_d=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(hd),md=function e(t){function n(e,n){var r,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var i;if(null!=r)i=r,r=null;else do{r=2*t()-1,i=2*t()-1,o=r*r+i*i}while(!o||o>1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(hd),bd=function e(t){function n(){var e=md.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(hd),yd=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(o)try{t=o.call(n,l)}catch(e){return void a.call("error",n,e)}else t=l;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=f:l.onreadystatechange=function(e){l.readyState>3&&f(e)},l.onprogress=function(e){a.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s.get(e):(null==t?s.remove(e):s.set(e,t+""),n)},mimeType:function(e){return arguments.length?(r=null==e?null:e+"",n):r},responseType:function(e){return arguments.length?(i=e,n):i},timeout:function(e){return arguments.length?(d=+e,n):d},user:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},password:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},response:function(e){return o=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,o,f){return l.open(t,e,!0,c,u),null==r||s.has("accept")||s.set("accept",r+",*/*"),l.setRequestHeader&&s.each(function(e,t){l.setRequestHeader(t,e)}),null!=r&&l.overrideMimeType&&l.overrideMimeType(r),null!=i&&(l.responseType=i),d>0&&(l.timeout=d),null==f&&"function"==typeof o&&(f=o,o=null),null!=f&&1===f.length&&(f=function(e){return function(t,n){e(null==t?n:null)}}(f)),null!=f&&n.on("error",f).on("load",function(e){f(null,e)}),a.call("beforesend",n,l),l.send(null==o?null:o),n},abort:function(){return l.abort(),n},on:function(){var e=a.on.apply(a,arguments);return e===a?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n},Md=function(e,t){return function(n,r){var o=wd(n).mimeType(e).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return o.get(r)}return o}},kd=Md("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),Td=Md("application/json",function(e){return JSON.parse(e.responseText)}),Od=Md("text/plain",function(e){return e.responseText}),xd=Md("application/xml",function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}),Sd=function(e,t){return function(n,r,o){arguments.length<3&&(o=r,r=null);var i=wd(n).mimeType(e);return i.row=function(e){return arguments.length?i.response(function(e,t){return function(n){return e(n.responseText,t)}}(t,r=e)):r},i.row(r),o?i.get(o):i}},Ed=Sd("text/csv",ii),Ad=Sd("text/tab-separated-values",ui),Cd=Array.prototype,Ld=Cd.map,Pd=Cd.slice,Dd={name:"implicit"};function Id(e){var t=Vo(),n=[],r=Dd;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Dd)return r;t.set(i,a=n.push(o))}return e[(a-1)%e.length]}return e=null==e?[]:Pd.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Vo();for(var r,i,a=-1,s=e.length;++a2?Hd:Wd,r=o=null,u}function u(t){return(r||(r=n(i,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(o||(o=n(a,i,qd,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(i=Ld.call(e,Nd),c()):i.slice()},u.range=function(e){return arguments.length?(a=Pd.call(e),c()):a.slice()},u.rangeRound=function(e){return a=Pd.call(e),s=Mn,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var Yd=function(t,n,r){var o,i=t[0],a=t[t.length-1],s=M(i,a,null==n?10:n);switch((r=zi(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(a));return null!=r.precision||isNaN(o=Ui(s,l))||(r.precision=o),e.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Xi(s,Math.max(Math.abs(i),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Gi(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)};function Gd(e){var t=e.domain;return e.ticks=function(e){var n=t();return v(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Yd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l0?(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,r=w(s,l,n)):r<0&&(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,r=w(s,l,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}var Ud=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0))return a;do{a.push(new Date(+n))}while(t(n,i),e(n),n=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return tf.setTime(+t),nf.setTime(+r),e(tf),e(nf),Math.floor(n(tf,nf))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var of=rf(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});of.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rf(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):of:null};var af=of.range,sf=6e4,lf=6048e5,cf=rf(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),uf=cf.range,df=rf(function(e){e.setTime(Math.floor(e/sf)*sf)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getMinutes()}),ff=df.range,pf=rf(function(e){var t=e.getTimezoneOffset()*sf%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),hf=pf.range,_f=rf(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/864e5},function(e){return e.getDate()-1}),mf=_f.range;function bf(e){return rf(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/lf})}var yf=bf(0),gf=bf(1),vf=bf(2),wf=bf(3),Mf=bf(4),kf=bf(5),Tf=bf(6),Of=yf.range,xf=gf.range,Sf=vf.range,Ef=wf.range,Af=Mf.range,Cf=kf.range,Lf=Tf.range,Pf=rf(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Df=Pf.range,If=rf(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});If.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var jf=If.range,Rf=rf(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getUTCMinutes()}),Nf=Rf.range,zf=rf(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),qf=zf.range,Wf=rf(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Hf=Wf.range;function Bf(e){return rf(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/lf})}var Ff=Bf(0),Yf=Bf(1),Gf=Bf(2),Uf=Bf(3),Xf=Bf(4),Vf=Bf(5),Kf=Bf(6),Qf=Ff.range,Jf=Yf.range,Zf=Gf.range,$f=Uf.range,ep=Xf.range,tp=Vf.range,np=Kf.range,rp=rf(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),op=rp.range,ip=rf(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ip.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var ap=ip.range;function sp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function lp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cp(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function up(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=yp(o),u=gp(o),d=yp(i),f=gp(i),p=yp(a),h=gp(a),_=yp(s),m=gp(s),b=yp(l),y=gp(l),g={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ip,e:Ip,H:jp,I:Rp,j:Np,L:zp,m:qp,M:Wp,p:function(e){return o[+(e.getHours()>=12)]},S:Hp,U:Bp,w:Fp,W:Yp,x:null,X:null,y:Gp,Y:Up,Z:Xp,"%":lh},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Vp,e:Vp,H:Kp,I:Qp,j:Jp,L:Zp,m:$p,M:eh,p:function(e){return o[+(e.getUTCHours()>=12)]},S:th,U:nh,w:rh,W:oh,x:null,X:null,y:ih,Y:ah,Z:sh,"%":lh},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:Sp,e:Sp,H:Ap,I:Ap,j:Ep,L:Pp,m:xp,M:Cp,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},S:Lp,U:wp,w:vp,W:Mp,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:Tp,Y:kp,Z:Op,"%":Dp};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in fp?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return g.x=M(n,g),g.X=M(r,g),g.c=M(t,g),v.x=M(n,v),v.X=M(r,v),v.c=M(t,v),{format:function(e){var t=M(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",sp);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e,lp);return t.toString=function(){return e},t}}}var dp,fp={"-":"",_:" ",0:"0"},pp=/^\s*\d+/,hp=/^%/,_p=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function mp(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Op(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function xp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Sp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ep(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ap(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Cp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pp(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dp(e,t,n){var r=hp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ip(e,t){return mp(e.getDate(),t,2)}function jp(e,t){return mp(e.getHours(),t,2)}function Rp(e,t){return mp(e.getHours()%12||12,t,2)}function Np(e,t){return mp(1+_f.count(If(e),e),t,3)}function zp(e,t){return mp(e.getMilliseconds(),t,3)}function qp(e,t){return mp(e.getMonth()+1,t,2)}function Wp(e,t){return mp(e.getMinutes(),t,2)}function Hp(e,t){return mp(e.getSeconds(),t,2)}function Bp(e,t){return mp(yf.count(If(e),e),t,2)}function Fp(e){return e.getDay()}function Yp(e,t){return mp(gf.count(If(e),e),t,2)}function Gp(e,t){return mp(e.getFullYear()%100,t,2)}function Up(e,t){return mp(e.getFullYear()%1e4,t,4)}function Xp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mp(t/60|0,"0",2)+mp(t%60,"0",2)}function Vp(e,t){return mp(e.getUTCDate(),t,2)}function Kp(e,t){return mp(e.getUTCHours(),t,2)}function Qp(e,t){return mp(e.getUTCHours()%12||12,t,2)}function Jp(e,t){return mp(1+Wf.count(ip(e),e),t,3)}function Zp(e,t){return mp(e.getUTCMilliseconds(),t,3)}function $p(e,t){return mp(e.getUTCMonth()+1,t,2)}function eh(e,t){return mp(e.getUTCMinutes(),t,2)}function th(e,t){return mp(e.getUTCSeconds(),t,2)}function nh(e,t){return mp(Ff.count(ip(e),e),t,2)}function rh(e){return e.getUTCDay()}function oh(e,t){return mp(Yf.count(ip(e),e),t,2)}function ih(e,t){return mp(e.getUTCFullYear()%100,t,2)}function ah(e,t){return mp(e.getUTCFullYear()%1e4,t,4)}function sh(){return"+0000"}function lh(){return"%"}function ch(t){return dp=up(t),e.timeFormat=dp.format,e.timeParse=dp.parse,e.utcFormat=dp.utcFormat,e.utcParse=dp.utcParse,dp}ch({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var uh=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),dh=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),fh=1e3,ph=60*fh,hh=60*ph,_h=24*hh,mh=7*_h,bh=30*_h,yh=365*_h;function gh(e){return new Date(e)}function vh(e){return e instanceof Date?+e:+new Date(+e)}function wh(e,t,r,o,i,a,s,l,c){var u=Fd(qd,mn),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),_=c("%I:%M"),m=c("%I %p"),b=c("%a %d"),y=c("%b %d"),g=c("%B"),v=c("%Y"),w=[[s,1,fh],[s,5,5*fh],[s,15,15*fh],[s,30,30*fh],[a,1,ph],[a,5,5*ph],[a,15,15*ph],[a,30,30*ph],[i,1,hh],[i,3,3*hh],[i,6,6*hh],[i,12,12*hh],[o,1,_h],[o,2,2*_h],[r,1,mh],[t,1,bh],[t,3,3*bh],[e,1,yh]];function k(n){return(s(n)=1?Uh:e<=-1?-Uh:Math.asin(e)}function Kh(e){return e.innerRadius}function Qh(e){return e.outerRadius}function Jh(e){return e.startAngle}function Zh(e){return e.endAngle}function $h(e){return e&&e.padAngle}function e_(e,t,n,r,o,i,a){var s=e-n,l=t-r,c=(a?i:-i)/Fh(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,h=n+u,_=r+d,m=(f+h)/2,b=(p+_)/2,y=h-f,g=_-p,v=y*y+g*g,w=o-i,M=f*_-h*p,k=(g<0?-1:1)*Fh(Wh(0,w*w*v-M*M)),T=(M*g-y*k)/v,O=(-M*y-g*k)/v,x=(M*g+y*k)/v,S=(-M*y+g*k)/v,E=T-m,A=O-b,C=x-m,L=S-b;return E*E+A*A>C*C+L*L&&(T=x,O=S),{cx:T,cy:O,x01:-u,y01:-d,x11:T*(o/w-1),y11:O*(o/w-1)}}function t_(e){this._context=e}t_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var n_=function(e){return new t_(e)};function r_(e){return e[0]}function o_(e){return e[1]}var i_=function(){var e=r_,t=o_,n=Rh(!0),r=null,o=n_,i=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(i=o(c=Ho())),s=0;s<=u;++s)!(s=u;--d)s.point(m[d],b[d]);s.lineEnd(),s.areaEnd()}_&&(m[c]=+e(f,c,l),b[c]=+n(f,c,l),s.point(t?+t(f,c,l):m[c],r?+r(f,c,l):b[c]))}if(p)return s=null,p+""||null}function c(){return i_().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Rh(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Rh(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Rh(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Rh(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l},s_=function(e,t){return te?1:t>=e?0:NaN},l_=function(e){return e},c_=d_(n_);function u_(e){this._curve=e}function d_(e){function t(t){return new u_(e(t))}return t._curve=e,t}function f_(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e}u_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var p_=function(){return f_(i_().curve(c_))},h_=function(){var e=a_().curve(c_),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return f_(n())},delete e.lineX0,e.lineEndAngle=function(){return f_(r())},delete e.lineX1,e.lineInnerRadius=function(){return f_(o())},delete e.lineY0,e.lineOuterRadius=function(){return f_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e},__=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},m_=Array.prototype.slice;function b_(e){return e.source}function y_(e){return e.target}function g_(e){var t=b_,n=y_,r=r_,o=o_,i=null;function a(){var a,s=m_.call(arguments),l=t.apply(this,s),c=n.apply(this,s);if(i||(i=a=Ho()),e(i,+r.apply(this,(s[0]=l,s)),+o.apply(this,s),+r.apply(this,(s[0]=c,s)),+o.apply(this,s)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function v_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function w_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function M_(e,t,n,r,o){var i=__(t,n),a=__(t,n=(n+o)/2),s=__(r,n),l=__(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}var k_={draw:function(e,t){var n=Math.sqrt(t/Gh);e.moveTo(n,0),e.arc(0,0,n,0,Xh)}},T_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},O_=Math.sqrt(1/3),x_=2*O_,S_={draw:function(e,t){var n=Math.sqrt(t/x_),r=n*O_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},E_=Math.sin(Gh/10)/Math.sin(7*Gh/10),A_=Math.sin(Xh/10)*E_,C_=-Math.cos(Xh/10)*E_,L_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=A_*n,o=C_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Xh*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},P_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},D_=Math.sqrt(3),I_={draw:function(e,t){var n=-Math.sqrt(t/(3*D_));e.moveTo(0,2*n),e.lineTo(-D_*n,-n),e.lineTo(D_*n,-n),e.closePath()}},j_=-.5,R_=Math.sqrt(3)/2,N_=1/Math.sqrt(12),z_=3*(N_/2+1),q_={draw:function(e,t){var n=Math.sqrt(t/z_),r=n/2,o=n*N_,i=r,a=n*N_+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(j_*r-R_*o,R_*r+j_*o),e.lineTo(j_*i-R_*a,R_*i+j_*a),e.lineTo(j_*s-R_*l,R_*s+j_*l),e.lineTo(j_*r+R_*o,j_*o-R_*r),e.lineTo(j_*i+R_*a,j_*a-R_*i),e.lineTo(j_*s+R_*l,j_*l-R_*s),e.closePath()}},W_=[k_,T_,S_,P_,L_,I_,q_],H_=function(){};function B_(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function F_(e){this._context=e}function Y_(e){this._context=e}function G_(e){this._context=e}function U_(e,t){this._basis=new F_(e),this._beta=t}F_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:B_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Y_.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},G_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},U_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var X_=function e(t){function n(e){return 1===t?new F_(e):new U_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function V_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function K_(e,t){this._context=e,this._k=(1-t)/6}K_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:V_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Q_=function e(t){function n(e){return new K_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function J_(e,t){this._context=e,this._k=(1-t)/6}J_.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z_=function e(t){function n(e){return new J_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function $_(e,t){this._context=e,this._k=(1-t)/6}$_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var em=function e(t){function n(e){return new $_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function tm(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Yh){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Yh){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function nm(e,t){this._context=e,this._alpha=t}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rm=function e(t){function n(e){return t?new nm(e,t):new K_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function om(e,t){this._context=e,this._alpha=t}om.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var im=function e(t){function n(e){return t?new om(e,t):new J_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function am(e,t){this._context=e,this._alpha=t}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sm=function e(t){function n(e){return t?new am(e,t):new $_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function lm(e){this._context=e}function cm(e){return e<0?-1:1}function um(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(cm(i)+cm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function dm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function pm(e){this._context=e}function hm(e){this._context=new _m(e)}function _m(e){this._context=e}function mm(e){this._context=e}function bm(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var gm=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function wm(e,t){return e[t]}var Mm=function(e){var t=e.map(km);return vm(e).sort(function(e,n){return t[e]-t[n]})};function km(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(i/=h,h<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=r-l,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>f&&(f=i)}else if(h>0){if(i0)){if(i/=_,_<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=o-c,_||!(i<0)){if(i/=_,_<0){if(i>p)return;i>f&&(f=i)}else if(_>0){if(i0||p<1)||(f>0&&(e[0]=[l+f*h,c+f*_]),p<1&&(e[1]=[l+p*h,c+p*_]),!0)}}}}}function Rm(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],p=u[0],h=u[1],_=(d+p)/2,m=(f+h)/2;if(h===f){if(_=r)return;if(d>p){if(l){if(l[1]>=o)return}else l=[_,n];i=[_,o]}else{if(l){if(l[1]1)if(d>p){if(l){if(l[1]>=o)return}else l=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(l){if(l[1]=r)return}else l=[t,a*t+s];i=[r,a*r+s]}else{if(l){if(l[0]=-nb)){var p=l*l+c*c,h=u*u+d*d,_=(d*p-c*h)/f,m=(l*h-u*p)/f,b=Hm.pop()||new function(){Em(this),this.x=this.y=this.arc=this.site=this.cy=null};b.arc=e,b.site=o,b.x=_+a,b.y=(b.cy=m+s)+Math.sqrt(_*_+m*m),e.circle=b;for(var y=null,g=$m._;g;)if(b.ytb)s=s.L;else{if(!((o=i-Qm(s,a))>tb)){r>-tb?(t=s.P,n=s):o>-tb?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Zm[e.index]={site:e,halfedges:[]}}(e);var l=Gm(e);if(Jm.insert(t,l),t||n){if(t===n)return Fm(t),n=Gm(t.site),Jm.insert(l,n),l.edge=n.edge=Pm(t.site,l.site),Bm(t),void Bm(n);if(n){Fm(t),Fm(n);var c=t.site,u=c[0],d=c[1],f=e[0]-u,p=e[1]-d,h=n.site,_=h[0]-u,m=h[1]-d,b=2*(f*m-p*_),y=f*f+p*p,g=_*_+m*m,v=[(m*y-p*g)/b+u,(f*g-_*y)/b+d];Im(n.edge,c,h,v),l.edge=Pm(c,e,null,v),n.edge=Pm(e,h,null,v),Bm(t),Bm(n)}else l.edge=Pm(t.site,l.site)}}function Km(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+o-i/2)))/d+r:(r+s)/2}function Qm(e,t){var n=e.N;if(n)return Km(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Jm,Zm,$m,eb,tb=1e-6,nb=1e-12;function rb(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function ob(e,t){return t[1]-e[1]||t[0]-e[0]}function ib(e,t){var n,r,o,i=e.sort(ob).pop();for(eb=[],Zm=new Array(e.length),Jm=new Sm,$m=new Sm;;)if(o=Wm,i&&(!o||i[1]tb||Math.abs(o[0][1]-o[1][1])>tb)||delete eb[i]}(a,s,l,c),function(e,t,n,r){var o,i,a,s,l,c,u,d,f,p,h,_,m=Zm.length,b=!0;for(o=0;otb||Math.abs(_-f)>tb)&&(l.splice(s,0,eb.push(Dm(a,p,Math.abs(h-e)tb?[e,Math.abs(d-e)tb?[Math.abs(f-r)tb?[n,Math.abs(d-n)tb?[Math.abs(f-t)=s)return null;var l=e-o.site[0],c=t-o.site[1],u=l*l+c*c;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;de?1:t>=e?0:NaN},e.deviation=c,e.extent=u,e.histogram=function(){var e=_,t=u,n=k;function r(r){var i,a,s=r.length,l=new Array(s);for(i=0;id;)f.pop(),--p;var h,_=new Array(p+1);for(i=0;i<=p;++i)(h=_[i]=[]).x0=i>0?f[i-1]:u,h.x1=i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,u,d=-1,f=n.length,p=r[o++],h=Vo(),_=a();++dr.length)return n;var a,s=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,i)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(i(e,0,Jo,Zo),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}},e.set=ti,e.map=Vo,e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.color=pt,e.rgb=bt,e.hsl=vt,e.lab=Dt,e.hcl=qt,e.cubehelix=Kt,e.dispatch=H,e.drag=function(){var t,n,r,o,i=Xe,a=Ve,s=Ke,l={},c=H("start","drag","end"),u=0,d=0;function f(e){e.on("mousedown.drag",p).filter(Qe).on("touchstart.drag",m).on("touchmove.drag",b).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!o&&i.apply(this,arguments)){var s=g("mouse",a.apply(this,arguments),de,this,arguments);s&&(qe(e.event.view).on("mousemove.drag",h,!0).on("mouseup.drag",_,!0),Fe(e.event.view),He(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function h(){if(Be(),!r){var o=e.event.clientX-t,i=e.event.clientY-n;r=o*o+i*i>d}l.mouse("drag")}function _(){qe(e.event.view).on("mousemove.drag mouseup.drag",null),Ye(e.event.view,r),Be(),l.mouse("end")}function m(){if(i.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=a.apply(this,arguments),s=r.length;for(t=0;tl+p||oc+p||is.index){var h=l-a.x-a.vx,_=c-a.y-a.vy,m=h*h+_*_;me.r&&(e.r=e[t].r)}function s(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r=a)){(e.data!==t||e.next)&&(0===u&&(u=_i(),p+=u*u),0===d&&(d=_i(),p+=d*d),p1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(e,n),t):c.on(e)}}},e.forceX=function(e){var t,n,r,o=hi(.1);function i(e){for(var o,i=0,a=t.length;ids(r[0],r[1])&&(r[1]=o[1]),ds(o[0],r[1])>ds(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,t=0,r=i[n];t<=n;r=o,++t)o=i[t],(s=ds(r[1],o[0]))>a&&(a=s,La=o[0],Da=r[1])}return es=ts=null,La===1/0||Pa===1/0?[[NaN,NaN],[NaN,NaN]]:[[La,Pa],[Da,Ia]]},e.geoCentroid=function(e){hs=_s=ms=bs=ys=gs=vs=ws=Ms=ks=Ts=0,qa(e,Cs);var t=Ms,n=ks,r=Ts,o=t*t+n*n+r*r;return o<1e-12&&(t=gs,n=vs,r=ws,_s=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:a).invert(e)},u.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=lu,e.geoRotation=Vs,e.geoStream=qa,e.geoTransform=function(e){return{stream:Ic(e)}},e.cluster=function(){var e=cu,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(uu,0)/e.length}(n),t.y=function(e){return 1+e.reduce(du,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.hierarchy=pu,e.pack=function(){var e=null,t=1,n=1,r=Du;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ru(e)).eachAfter(Nu(r,.5)).eachBefore(zu(1)):o.eachBefore(Ru(ju)).eachAfter(Nu(Du,1)).eachAfter(Nu(r,o.r/Math.min(t,n))).eachBefore(zu(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=function(e){return null==e?null:Pu(e)}(t),o):e},o.size=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.padding=function(e){return arguments.length?(r="function"==typeof e?e:Iu(+e),o):r},o},e.packSiblings=function(e){return Lu(e),e},e.packEnclose=gu,e.partition=function(){var e=1,t=1,n=0,r=!1;function o(o){var i=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/i,o.eachBefore(function(e,t){return function(r){r.children&&Wu(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,i=r.y0,a=r.x1-n,s=r.y1-n;a0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=Pu(t),n):e},n.parentId=function(e){return arguments.length?(t=Pu(e),n):t},n},e.tree=function(){var e=Uu,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Ju(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Ju(r[o],o)),n.parent=t;return(a.parent=new Ju(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var f=c===u?1:e(c,u)/2,p=f-c.x,h=t/(u.x+f+p),_=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*_})}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,f=l.m;s=Vu(s),i=Xu(i),s&&i;)l=Xu(l),(a=Vu(a)).a=t,(o=s.z+d-i.z-c+e(s._,i._))>0&&(Ku(Qu(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=i.m,f+=l.m,u+=a.m;s&&!Vu(a)&&(a.t=s,a.m+=d-u),i&&!Xu(l)&&(l.t=i,l.m+=c-f,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.treemap=function(){var e=td,t=!1,n=1,r=1,o=[0],i=Du,a=Du,s=Du,l=Du,c=Du;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(qu),e}function d(t){var n=o[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var u=s[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=l)}for(var d=c[t],f=r/2+d,p=t+1,h=n-1;p>>1;c[_]l-i){var y=(o*b+a*m)/r;e(t,p,m,o,i,y,l),e(p,n,b,y,i,a,l)}else{var g=(i*b+l*m)/r;e(t,p,m,o,i,a,g),e(p,n,b,o,g,a,l)}}(0,l,e.value,t,n,r,o)},e.treemapDice=Wu,e.treemapSlice=Zu,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?Zu:Wu)(e,t,n,r,o)},e.treemapSquarify=td,e.treemapResquarify=nd,e.interpolate=wn,e.interpolateArray=hn,e.interpolateBasis=Zt,e.interpolateBasisClosed=$t,e.interpolateDate=_n,e.interpolateNumber=mn,e.interpolateObject=bn,e.interpolateRound=Mn,e.interpolateString=vn,e.interpolateTransformCss=Sn,e.interpolateTransformSvg=En,e.interpolateZoom=Ln,e.interpolateRgb=an,e.interpolateRgbBasis=fn,e.interpolateRgbBasisClosed=pn,e.interpolateHsl=Dn,e.interpolateHslLong=In,e.interpolateLab=function(e,t){var n=on((e=Dt(e)).l,(t=Dt(t)).l),r=on(e.a,t.a),o=on(e.b,t.b),i=on(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=i(t),e+""}},e.interpolateHcl=Rn,e.interpolateHclLong=Nn,e.interpolateCubehelix=Hn,e.interpolateCubehelixLong=Bn,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)c.push(e[r[i[t]][2]]);for(t=+s;ts!=c>s&&a<(l-n)*(s-r)/(c-r)+n&&(u=!u),l=n,c=r;return u},e.polygonLength=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],s=i[1],l=0;++r0){for(;fl)break;_.push(d)}}else for(;f=1;--u)if(!((d=c*u)l)break;_.push(d)}}else _=v(f,p,Math.min(p-f,h)).map(a);return t?_.reverse():_},n.tickFormat=function(t,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=e.format(r)),t===1/0)return r;null==t&&(t=10);var s=Math.max(1,o*t/n.ticks().length);return function(e){var t=e/a(Math.round(i(e)));return t*o0?i[t-1]:n[0],t=r?[i[r-1],n]:[i[o-1],i[o]]},s.copy=function(){return e().domain([t,n]).range(a)},Gd(s)},e.scaleThreshold=function e(){var t=[.5],n=[0,1],r=1;function i(e){if(e<=e)return n[o(t,e,0,r)]}return i.domain=function(e){return arguments.length?(t=Pd.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Pd.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.copy=function(){return e().domain(t).range(n)},i},e.scaleTime=function(){return wh(If,Pf,yf,_f,pf,df,cf,of,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return wh(ip,rp,Ff,Wf,zf,Rf,cf,of,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=kh,e.schemeCategory20b=Th,e.schemeCategory20c=Oh,e.schemeCategory20=xh,e.interpolateCubehelixDefault=Sh,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ch.h=360*e-100,Ch.s=1.5-1.5*t,Ch.l=.8-.9*t,Ch+""},e.interpolateWarm=Eh,e.interpolateCool=Ah,e.interpolateViridis=Ph,e.interpolateMagma=Dh,e.interpolateInferno=Ih,e.interpolatePlasma=jh,e.scaleSequential=function e(t){var n=0,r=1,o=!1;function i(e){var i=(e-n)/(r-n);return t(o?Math.max(0,Math.min(1,i)):i)}return i.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],i):[n,r]},i.clamp=function(e){return arguments.length?(o=!!e,i):o},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(t).domain([n,r]).clamp(o)},Gd(i)},e.creator=V,e.local=Q,e.matcher=te,e.mouse=de,e.namespace=X,e.namespaces=U,e.select=qe,e.selectAll=function(e){return"string"==typeof e?new Ne([document.querySelectorAll(e)],[document.documentElement]):new Ne([null==e?[]:e],Re)},e.selection=ze,e.selector=pe,e.selectorAll=_e,e.style=ke,e.touch=We,e.touches=function(e,t){null==t&&(t=ce().touches);for(var n=0,r=t?t.length:0,o=new Array(r);nf;if(s||(s=l=Ho()),dYh)if(h>Xh-Yh)s.moveTo(d*qh(f),d*Bh(f)),s.arc(0,0,d,f,p,!_),u>Yh&&(s.moveTo(u*qh(p),u*Bh(p)),s.arc(0,0,u,p,f,_));else{var m,b,y=f,g=p,v=f,w=p,M=h,k=h,T=a.apply(this,arguments)/2,O=T>Yh&&(r?+r.apply(this,arguments):Fh(u*u+d*d)),x=Hh(Nh(d-u)/2,+n.apply(this,arguments)),S=x,E=x;if(O>Yh){var A=Vh(O/u*Bh(T)),C=Vh(O/d*Bh(T));(M-=2*A)>Yh?(v+=A*=_?1:-1,w-=A):(M=0,v=w=(f+p)/2),(k-=2*C)>Yh?(y+=C*=_?1:-1,g-=C):(k=0,y=g=(f+p)/2)}var L=d*qh(y),P=d*Bh(y),D=u*qh(w),I=u*Bh(w);if(x>Yh){var j=d*qh(g),R=d*Bh(g),N=u*qh(v),z=u*Bh(v);if(hYh?function(e,t,n,r,o,i,a,s){var l=n-e,c=r-t,u=a-o,d=s-i,f=(u*(t-i)-d*(e-o))/(d*l-u*c);return[e+f*l,t+f*c]}(L,P,N,z,j,R,D,I):[D,I],W=L-q[0],H=P-q[1],B=j-q[0],F=R-q[1],Y=1/Bh(function(e){return e>1?0:e<-1?Gh:Math.acos(e)}((W*B+H*F)/(Fh(W*W+H*H)*Fh(B*B+F*F)))/2),G=Fh(q[0]*q[0]+q[1]*q[1]);S=Hh(x,(u-G)/(Y-1)),E=Hh(x,(d-G)/(Y+1))}}k>Yh?E>Yh?(m=e_(N,z,L,P,d,E,_),b=e_(j,R,D,I,d,E,_),s.moveTo(m.cx+m.x01,m.cy+m.y01),EYh&&M>Yh?S>Yh?(m=e_(D,I,j,R,u,-S,_),b=e_(L,P,N,z,u,-S,_),s.lineTo(m.cx+m.x01,m.cy+m.y01),S0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(_[e],_[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,c=p?(b-f*g)/p:0;s0?d*c:0)+g,_[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:y};return _}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Rh(+e),a):i},a},e.areaRadial=h_,e.radialArea=h_,e.lineRadial=p_,e.radialLine=p_,e.pointRadial=__,e.linkHorizontal=function(){return g_(v_)},e.linkVertical=function(){return g_(w_)},e.linkRadial=function(){var e=g_(M_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=Rh(k_),t=Rh(64),n=null;function r(){var r;if(n||(n=r=Ho()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Rh(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Rh(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},e.symbols=W_,e.symbolCircle=k_,e.symbolCross=T_,e.symbolDiamond=S_,e.symbolSquare=P_,e.symbolStar=L_,e.symbolTriangle=I_,e.symbolWye=q_,e.curveBasisClosed=function(e){return new Y_(e)},e.curveBasisOpen=function(e){return new G_(e)},e.curveBasis=function(e){return new F_(e)},e.curveBundle=X_,e.curveCardinalClosed=Z_,e.curveCardinalOpen=em,e.curveCardinal=Q_,e.curveCatmullRomClosed=im,e.curveCatmullRomOpen=sm,e.curveCatmullRom=rm,e.curveLinearClosed=function(e){return new lm(e)},e.curveLinear=n_,e.curveMonotoneX=function(e){return new pm(e)},e.curveMonotoneY=function(e){return new hm(e)},e.curveNatural=function(e){return new mm(e)},e.curveStep=function(e){return new ym(e,.5)},e.curveStepAfter=function(e){return new ym(e,1)},e.curveStepBefore=function(e){return new ym(e,0)},e.stack=function(){var e=Rh([]),t=vm,n=gm,r=wm;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,c=s.length,u=new Array(c);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,s,l=0,c=e[t[0]].length;l=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},e.stackOffsetNone=gm,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;aur&&n.name===t)return new Or([[e]],io,t,+r);return null},e.interrupt=vr,e.voronoi=function(){var e=Om,t=xm,n=null;function r(r){return new ib(r.map(function(n,o){var i=[Math.round(e(n,o,r)/tb)*tb,Math.round(t(n,o,r)/tb)*tb];return i.index=o,i.data=n,i}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:Tm(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:Tm(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},e.zoom=function(){var t,n,r=fb,o=pb,i=_b,a=0,s=1/0,l=-s,c=s,u=l,d=c,f=250,p=Ln,h=[],_=H("start","zoom","end"),m=500,b=150,y=0;function g(e){e.property("__zoom",hb).on("wheel.zoom",S).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(mb).on("touchstart.zoom",C).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(e,t){return(t=Math.max(a,Math.min(s,t)))===e.k?e:new sb(t,e.x,e.y)}function w(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new sb(e.k,r,o)}function M(e,t){var n=e.invertX(t[0][0])-l,r=e.invertX(t[1][0])-c,o=e.invertY(t[0][1])-u,i=e.invertY(t[1][1])-d;return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}function k(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function T(e,t,n){e.on("start.zoom",function(){O(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).end()}).tween("zoom",function(){var e=arguments,r=O(this,e),i=o.apply(this,e),a=n||k(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,u=p(l.invert(a).concat(s/l.k),c.invert(a).concat(s/c.k));return function(e){if(1===e)e=c;else{var t=u(e),n=s/t[2];e=new sb(n,a[0]-t[0]*n,a[1]-t[1]*n)}r.zoom(null,e)}})}function O(e,t){for(var n,r=0,o=h.length;ry}t.zoom("mouse",M(w(t.that.__zoom,t.mouse[0]=de(t.that),t.mouse[1]),t.extent))},!0).on("mouseup.zoom",function(){o.on("mousemove.zoom mouseup.zoom",null),Ye(e.event.view,t.moved),db(),t.end()},!0),i=de(this),a=e.event.clientX,s=e.event.clientY;Fe(e.event.view),ub(),t.mouse=[i,this.__zoom.invert(i)],vr(this),t.start()}}function A(){if(r.apply(this,arguments)){var t=this.__zoom,n=de(this),i=t.invert(n),a=t.k*(e.event.shiftKey?.5:2),s=M(w(v(t,a),n,i),o.apply(this,arguments));db(),f>0?qe(this).transition().duration(f).call(T,s,n):qe(this).call(g.transform,s)}}function C(){if(r.apply(this,arguments)){var n,o,i,a,s=O(this,arguments),l=e.event.changedTouches,c=l.length;for(ub(),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function h(e){return r.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function _(e){return{type:o.SET_BREADCRUMB,breadcrumb:e}}function m(e){return{type:o.UPDATE_BREADCRUMB,node:e}}function b(){return p(6,10,!0).then(function(e){return{nodeId:"0",children:e.data.children}})}function y(e){return function(t){s||l===e||(s=!0,d("window",e).then(function(e){return w(e.data)}).then(function(n){t(_(n.reverse())),l=e,s=!1}).catch(function(){t(_([])),l=null,s=!1}))}}function g(e,t){return function(n){s||l===t||(s=!0,d(e,t).then(function(e){return w(e.data)}).then(function(e){n(_(e.reverse())),l=t,s=!1}).catch(function(){n(_([])),l=null,s=!1}))}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map(function(e){var t=v(e);"object"===a(t)?n=n.concat(t):n.push(v(e))}),n):[e]}function w(e){var t=[];return e.children&&w(e.children[0]).map(function(e){t.push(e)}),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(s,"breadcrumbsRequested","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(l,"breadcrumbsId","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(c,"pathRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(u,"nodePathsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(d,"elementPathRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(f,"queryPathsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(p,"rootRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(h,"breadcrumbRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(_,"setBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(m,"updateBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(b,"getRootBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(y,"getWindowBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(g,"getElementBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(v,"flattenLastElem","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(w,"flattenOneLine","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(n(93));t.addQueryStringValueToPath=function(e,t,n){var i=r(e),a=i.pathname,s=i.search,l=i.hash;return o({pathname:a,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:l})},t.stripQueryStringValueFromPath=function(e,t){var n=r(e),i=n.pathname,a=n.search,s=n.hash;return o({pathname:i,search:a.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,n){return"?"===t?t:n}),hash:s})},t.getQueryStringValueFromPath=function(e,t){var n=r(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var r=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substring(o),t=t.substring(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substring(i),t=t.substring(0,i)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},o=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=(t||"")+n;return r&&"?"!==r&&(i+=r),o&&(i+=o),i}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(105)("meta"),o=n(12),i=n(52),a=n(28).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(14)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(83),o=n(615),i=Object(o.a)(Object.getPrototypeOf,Object),a=n(108),s="[object Object]",l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=u.call(Object);t.a=function(e){if(!Object(a.a)(e)||Object(r.a)(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){"use strict";var r=n(131),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.a?r.a.toStringTag:void 0;var l=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o},c=Object.prototype.toString;var u=function(e){return c.call(e)},d="[object Null]",f="[object Undefined]",p=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?l(e):u(e)}},function(e,t,n){"use strict";var r=n(616),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OTHER=0]="OTHER",e[e.ORIENTATION=1]="ORIENTATION",e[e.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",e[e.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",e[e.ISSUE_NUMBER=4]="ISSUE_NUMBER",e[e.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",e[e.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",e[e.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",e[e.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",e[e.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",e[e.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.MathUtils=function(){},e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){t+=e[n]}return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.RawWidget=void 0;var _moment=_interopRequireDefault(__webpack_require__(4)),_react=_interopRequireWildcard(__webpack_require__(2)),_reactAddonsCssTransitionGroup=_interopRequireDefault(__webpack_require__(238)),_reactRedux=__webpack_require__(6),_classnames2=_interopRequireDefault(__webpack_require__(9)),_immutable=__webpack_require__(38),_PropTypes=__webpack_require__(895),_RawWidgetHelpers=__webpack_require__(377),_WindowActions=__webpack_require__(19),_Constants=__webpack_require__(43),_ActionButton=_interopRequireDefault(__webpack_require__(894)),_Attributes=_interopRequireDefault(__webpack_require__(892)),_Checkbox=_interopRequireDefault(__webpack_require__(890)),_DatePicker=_interopRequireDefault(__webpack_require__(889)),_DatetimeRange=_interopRequireDefault(__webpack_require__(880)),_DevicesWidget=_interopRequireDefault(__webpack_require__(876)),_Image=_interopRequireDefault(__webpack_require__(874)),_Tooltips=_interopRequireDefault(__webpack_require__(54)),_Labels=_interopRequireDefault(__webpack_require__(873)),_Link=_interopRequireDefault(__webpack_require__(870)),_List=_interopRequireDefault(__webpack_require__(369)),_Lookup=_interopRequireDefault(__webpack_require__(868));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _objectSpread(e){for(var t=1;t-1;if(!T)return console.warn("The %c"+f,"font-weight:bold;","is unsupported type of widget."),!1;if(!l[0].displayed||!0!==l[0].displayed)return!1;var C,L,P=l[0].value&&l[0].value.description?l[0].value.description:null,D=i.map(function(e){return"form-field-"+e.field}).join(" "),I="";E?(C=b,L=y,I=m):((C=h?"col-sm-5":"")||(C="primary"!==a||A?"primaryLongLabels"===a?"col-sm-6":"col-sm-3":"col-sm-12 panel-title"),(L=h?"col-sm-7":"")||(L=("primary"!==a&&!s||A?"primaryLongLabels"===a?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(i[0].devices?"form-group-flex":"")));var j={};return!s&&n&&i[0].supportZoomInto&&(j.onClick=function(){return p(i[0].field)}),_react.default.createElement("div",{className:(0,_classnames2.default)("form-group",I,{"form-group-table":c&&!u},D)},_react.default.createElement("div",{className:"row"},o||null,!s&&n&&_react.default.createElement("label",_extends({className:(0,_classnames2.default)("form-control-label",C,{"input-zoom":E&&i[0].supportZoomInto,"zoom-into":i[0].supportZoomInto}),title:r||n},j),n),_react.default.createElement("div",{className:L,onMouseEnter:function(){return e.handleErrorPopup(!0)},onMouseLeave:function(){return e.handleErrorPopup(!1)}},!w&&S&&_react.default.createElement("div",{className:(0,_classnames2.default)("field-warning",{"field-warning-message":S,"field-error-message":S&&S.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},_react.default.createElement("span",null,S.caption),_react.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(S)}}),S.message&&M&&_react.default.createElement(_Tooltips.default,{action:S.message,type:""})),_react.default.createElement("div",{className:(0,_classnames2.default)("input-body-container",{focused:k}),title:P},_react.default.createElement(_reactAddonsCssTransitionGroup.default,{transitionName:"fade",transitionEnterTimeout:200,transitionLeaveTimeout:200},v&&x&&!x.valid&&!x.initialValue&&this.renderErrorPopup(x.reason)),T),i[0].devices&&!l[0].readonly&&_react.default.createElement(_DevicesWidget.default,{devices:i[0].devices,tabIndex:1,handleChange:function(e){return d&&d(i[0].field,e)}}))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawWidget}(_react.Component);exports.RawWidget=RawWidget,RawWidget.propTypes=_PropTypes.RawWidgetPropTypes,RawWidget.defaultProps=_PropTypes.RawWidgetDefaultProps;var _default=(0,_reactRedux.connect)(function(e){return{modalVisible:e.windowHandler.modal.visible,timeZone:e.appHandler.me.timeZone}})(RawWidget),_default2=_default;exports.default=_default2,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(RawWidget,"RawWidget","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/RawWidget.js"),e.register(_default,"default","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/RawWidget.js"))}(),function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(2)),i=n(6),a=d(n(240)),s=d(n(731)),l=d(n(730)),c=d(n(722)),u=d(n(721));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;tdocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(62),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(597),o=n(290);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=t&&(i^=e,i&=t-1);this.expTable=o;var s=new Int32Array(t);for(a=0;a32*this.bits.length){var n=e.makeArray(t);r.default.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(e){return 0!=(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=~n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=~n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(tthis.size)throw new a.default;if(t!==e){t--;for(var n=Math.floor(e/32),r=Math.floor(t/32),o=this.bits,i=n;i<=r;i++){var s=(2<<(in?0:31&e));o[i]|=s}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;nthis.size)throw new a.default;if(t===e)return!0;t--;for(var r=Math.floor(e/32),o=Math.floor(t/32),i=this.bits,s=r;s<=o;s++){var l=(2<<(sr?0:31&e))&4294967295;if((i[s]&l)!==(n?l:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new a.default("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);this.appendBit;for(var n=t;n>0;n--)this.appendBit(1==(e>>n-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);this.appendBit;for(var n=0;n>1&1431655765|(1431655765&i)<<1)>>2&858993459|(858993459&i)<<2)>>4&252645135|(252645135&i)<<4)>>8&16711935|(16711935&i)<<8)>>16&65535|(65535&i)<<16,e[t-o]=i}if(this.size!==32*n){var a=32*n-this.size,s=e[0]>>>a;for(o=1;o>>a}e[n-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+i.default.hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t0&&void 0!==arguments[0]?arguments[0]:p,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case l.NO_CONNECTION:return d({},t,{connectionError:n.status});case l.OPEN_MODAL:return d({},t,{modal:d({},t.modal,{visible:!0,type:n.windowType,staticModalType:n.staticModalType,dataId:n.dataId,tabId:n.tabId,rowId:n.rowId,viewId:n.viewId,title:n.title,modalType:n.modalType,isAdvanced:n.isAdvanced,viewDocumentIds:n.viewDocumentIds,triggerField:n.triggerField,parentViewId:n.parentViewId,parentViewSelectedIds:n.parentViewSelectedIds,childViewId:n.childViewId,childViewSelectedIds:n.childViewSelectedIds})});case l.OPEN_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!0,type:n.payload.type,id:n.payload.id}});case l.OPEN_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!0,windowId:n.windowId,viewId:n.viewId,profileId:n.profileId})});case l.UPDATE_MODAL:return d({},t,{modal:d({},t.modal,{rowId:n.rowId,dataId:n.dataId})});case l.UPDATE_RAW_MODAL:var a=n.windowId,c=n.data;return t.rawModal.windowId===a?d({},t,{rawModal:d({},t.rawModal,c)}):t;case l.CLOSE_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!1,windowId:null,viewId:null,profileId:null})});case l.CLOSE_PROCESS_MODAL:return"process"===t.modal.modalType?d({},t,{modal:d({},t.modal,p.modal)}):t;case l.CLOSE_MODAL:return d({},t,{modal:d({},t.modal,p.modal)});case l.CLOSE_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!1,type:"",id:null}});case l.TOGGLE_OVERLAY:return d({},t,{overlay:{visible:!1!==n.data&&!t.overlay.visible,data:n.data?d({},n.data):null}});case l.INIT_LAYOUT_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{layout:n.layout})));case l.INIT_DATA_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{data:n.data,docId:n.docId,layout:{},rowData:(0,o.Map)(),saveStatus:n.saveStatus,standardActions:(0,o.Set)(n.standardActions),validStatus:n.validStatus,includedTabsInfo:n.includedTabsInfo,websocket:n.websocket})));case l.UPDATE_MASTER_DATA:return d({},t,{master:d({},t.master,{data:d({},t.master.data,n.payload)})});case l.CLEAR_MASTER_DATA:return d({},t,{master:d({},t.master,{data:{},rowData:(0,o.Map)(),docId:void 0})});case l.SORT_TAB:return Object.assign({},t,f({},n.scope,Object.assign({},t[n.scope],{layout:Object.assign({},t[n.scope].layout,{tabs:t[n.scope].layout.tabs.map(function(e){return e.tabId===n.tabId?Object.assign({},e,{orderBy:[{fieldName:n.field,ascending:n.asc}]}):e})})})));case l.ACTIVATE_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:n.tabId}}}));case l.UNSELECT_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:null}}}));case l.ADD_ROW_DATA:for(var h=(0,o.Map)(),_=0,m=Object.entries(n.data);_0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,a.parsePath)(e):e;return{pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state,action:t,key:n}};var c=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,n){if(t===n)return!0;var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("function"===o&&(0,i.default)(!1),"object"===o){if(c(t)&&c(n)&&(0,i.default)(!1),!Array.isArray(t)){var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t,n){"use strict"; + */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,h=4,_=1,m=2,b=1,y=2,g=4,v=8,w=16,M=32,k=64,T=128,O=256,S=512,x=30,E="...",A=800,C=16,L=1,P=2,D=1/0,I=9007199254740991,j=1.7976931348623157e308,R=NaN,N=4294967295,z=N-1,q=N>>>1,W=[["ary",T],["bind",b],["bindKey",y],["curry",v],["curryRight",w],["flip",S],["partial",M],["partialRight",k],["rearg",O]],H="[object Arguments]",B="[object Array]",F="[object AsyncFunction]",Y="[object Boolean]",G="[object Date]",U="[object DOMException]",X="[object Error]",V="[object Function]",K="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",$="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ce="[object DataView]",ue="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",me="[object Uint8ClampedArray]",be="[object Uint16Array]",ye="[object Uint32Array]",ge=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Me=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Te=RegExp(Me.source),Oe=RegExp(ke.source),Se=/<%-([\s\S]+?)%>/g,xe=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Pe.source),Ie=/^\s+|\s+$/g,je=/^\s+/,Re=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ve=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+$e+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+$e+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+it+"|"+at+")",pt="(?:"+dt+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",_t="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[lt,ct,ut].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,ct,ut].join("|")+")"+_t,bt="(?:"+[lt+nt+"?",nt,ct,ut,et].join("|")+")",yt=RegExp("['’]","g"),gt=RegExp(nt,"g"),vt=RegExp(st+"(?="+st+")|"+bt+_t,"g"),wt=RegExp([dt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ft,"$"].join("|")+")",dt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),Mt=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ot=-1,St={};St[ue]=St[de]=St[fe]=St[pe]=St[he]=St[_e]=St[me]=St[be]=St[ye]=!0,St[H]=St[B]=St[le]=St[Y]=St[ce]=St[G]=St[X]=St[V]=St[Q]=St[J]=St[$]=St[te]=St[ne]=St[re]=St[ae]=!1;var xt={};xt[H]=xt[B]=xt[le]=xt[ce]=xt[Y]=xt[G]=xt[ue]=xt[de]=xt[fe]=xt[pe]=xt[he]=xt[Q]=xt[J]=xt[$]=xt[te]=xt[ne]=xt[re]=xt[oe]=xt[_e]=xt[me]=xt[be]=xt[ye]=!0,xt[X]=xt[V]=xt[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Ct=parseInt,Lt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Dt=Lt||Pt||Function("return this")(),It="object"==typeof t&&t&&!t.nodeType&&t,jt=It&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=jt&&jt.exports===It,Nt=Rt&&Lt.process,zt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Nt&&Nt.binding&&Nt.binding("util")}catch(e){}}(),qt=zt&&zt.isArrayBuffer,Wt=zt&&zt.isDate,Ht=zt&&zt.isMap,Bt=zt&&zt.isRegExp,Ft=zt&&zt.isSet,Yt=zt&&zt.isTypedArray;function Gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ut(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var Mn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Tn(e){return"\\"+Et[e]}function On(e){return Mt.test(e)}function Sn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function xn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var In=function e(t){var n=(t=null==t?Dt:In.defaults(Dt.Object(),t,In.pick(Dt,Tt))).Array,r=t.Date,o=t.Error,Ze=t.Function,$e=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Ze.prototype,at=et.prototype,st=t["__core-js_shared__"],lt=it.toString,ct=at.hasOwnProperty,ut=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=at.toString,pt=lt.call(et),ht=Dt._,_t=tt("^"+lt.call(ct).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Rt?t.Buffer:i,bt=t.Symbol,vt=t.Uint8Array,Mt=mt?mt.allocUnsafe:i,Et=xn(et.getPrototypeOf,et),Lt=et.create,Pt=at.propertyIsEnumerable,It=ot.splice,jt=bt?bt.isConcatSpreadable:i,Nt=bt?bt.iterator:i,zt=bt?bt.toStringTag:i,on=function(){try{var e=zi(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=t.clearTimeout!==Dt.clearTimeout&&t.clearTimeout,jn=r&&r.now!==Dt.Date.now&&r.now,Rn=t.setTimeout!==Dt.setTimeout&&t.setTimeout,Nn=$e.ceil,zn=$e.floor,qn=et.getOwnPropertySymbols,Wn=mt?mt.isBuffer:i,Hn=t.isFinite,Bn=ot.join,Fn=xn(et.keys,et),Yn=$e.max,Gn=$e.min,Un=r.now,Xn=t.parseInt,Vn=$e.random,Kn=ot.reverse,Qn=zi(t,"DataView"),Jn=zi(t,"Map"),Zn=zi(t,"Promise"),$n=zi(t,"Set"),er=zi(t,"WeakMap"),tr=zi(et,"create"),nr=er&&new er,rr={},or=ua(Qn),ir=ua(Jn),ar=ua(Zn),sr=ua($n),lr=ua(er),cr=bt?bt.prototype:i,ur=cr?cr.valueOf:i,dr=cr?cr.toString:i;function fr(e){if(xs(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof _r)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new _r(e)}var pr=function(){function e(){}return function(t){if(!Ss(t))return{};if(Lt)return Lt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ir(e,t,n,r,o,a){var s,l=t&f,c=t&p,u=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ss(e))return e;var d=ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ni(e,s)}else{var _=Hi(e),m=_==V||_==K;if(vs(e))return Qo(e,l);if(_==$||_==H||m&&!o){if(s=c||m?{}:Fi(e),!l)return c?function(e,t){return ri(e,Wi(e),t)}(e,function(e,t){return e&&ri(t,ol(t),e)}(s,e)):function(e,t){return ri(e,qi(e),t)}(e,Cr(s,e))}else{if(!xt[_])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case le:return Jo(e);case Y:case G:return new r(+e);case ce:return function(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ue:case de:case fe:case pe:case he:case _e:case me:case be:case ye:return Zo(e,n);case Q:return new r;case J:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return ur?et(ur.call(e)):{}}(e)}}(e,_,l)}}a||(a=new wr);var b=a.get(e);if(b)return b;a.set(e,s),Ps(e)?e.forEach(function(r){s.add(Ir(r,t,n,r,e,a))}):Es(e)&&e.forEach(function(r,o){s.set(o,Ir(r,t,n,o,e,a))});var y=d?i:(u?c?Li:Ci:c?ol:rl)(e);return Xt(y||e,function(r,o){y&&(r=e[o=r]),xr(s,o,Ir(r,t,n,o,e,a))}),s}function jr(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(l);return ra(function(){e.apply(i,n)},t)}function Nr(e,t,n,r){var o=-1,i=Jt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=$t(t,bn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=gn,s=!1,t=new vr(t));e:for(;++o-1},yr.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},gr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(Jn||yr),string:new br}},gr.prototype.delete=function(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t},gr.prototype.get=function(e){return Ri(this,e).get(e)},gr.prototype.has=function(e){return Ri(this,e).has(e)},gr.prototype.set=function(e,t){var n=Ri(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},vr.prototype.add=vr.prototype.push=function(e){return this.__data__.set(e,c),this},vr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new yr,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!Jn||r.length0&&n(s)?t>1?Fr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=si(),Gr=si(!0);function Ur(e,t){return e&&Yr(e,t,rl)}function Xr(e,t){return e&&Gr(e,t,rl)}function Vr(e,t){return Qt(t,function(t){return ks(e[t])})}function Kr(e,t){for(var n=0,r=(t=Uo(t,e)).length;null!=e&&nt}function $r(e,t){return null!=e&&ct.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?Zt:Jt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=$t(f,bn(t))),u=Gn(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new vr(l&&f):i}f=e[0];var p=-1,h=c[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function yo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&It.call(s,l,1),It.call(e,l,1);return e}function vo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Gi(o)?It.call(e,o,1):zo(e,o)}}return e}function wo(e,t){return e+zn(Vn()*(t-e+1))}function Mo(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=zn(t/2))&&(e+=e)}while(t);return n}function ko(e,t){return oa($i(e,t,Al),e+"")}function To(e){return kr(fl(e))}function Oo(e,t){var n=fl(e);return sa(n,Dr(t,0,n.length))}function So(e,t,n,r){if(!Ss(e))return e;for(var o=-1,a=(t=Uo(t,e)).length,s=a-1,l=e;null!=l&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Is(a)&&(n?a<=t:a=a){var u=t?null:Mi(e);if(u)return An(u);s=!1,o=gn,c=new vr}else c=t?[]:l;e:for(;++r=r?e:Co(e,t,n)}var Ko=pn||function(e){return Dt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Mt?Mt(n):new e.constructor(n);return e.copy(r),r}function Jo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function Zo(e,t){var n=t?Jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $o(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Is(e),s=t!==i,l=null===t,c=t==t,u=Is(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Ui(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function fi(e){return Ai(function(t){var n=t.length,r=n,o=_r.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(l);if(o&&!s&&"wrapper"==Di(a))var s=new _r([],!0)}for(r=s?r:n;++r1&&v.reverse(),f&&ul))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,f=!0,p=n&m?new vr:i;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(W,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(qe):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=Un(),o=C-(r-n);if(n=r,o>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return La(e,n="function"==typeof n?(e.pop(),n):i)});function za(e){var t=fr(e);return t.__chain__=!0,t}function qa(e,t){return t(e)}var Wa=Ai(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&Gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:qa,args:[o],thisArg:i}),new _r(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ha=oi(function(e,t,n){ct.call(e,n)?++e[n]:Lr(e,n,1)});var Ba=di(_a),Fa=di(ma);function Ya(e,t){return(ms(e)?Xt:zr)(e,ji(t,3))}function Ga(e,t){return(ms(e)?Vt:qr)(e,ji(t,3))}var Ua=oi(function(e,t,n){ct.call(e,n)?e[n].push(t):Lr(e,n,[t])});var Xa=ko(function(e,t,r){var o=-1,i="function"==typeof t,a=ys(e)?n(e.length):[];return zr(e,function(e){a[++o]=i?Gt(t,e,r):no(e,t,r)}),a}),Va=oi(function(e,t,n){Lr(e,n,t)});function Ka(e,t){return(ms(e)?$t:fo)(e,ji(t,3))}var Qa=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ja=ko(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ui(e,t[0],t[1])?t=[]:n>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),bo(e,Fr(t,1),[])}),Za=jn||function(){return Dt.Date.now()};function $a(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ti(e,T,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=ko(function(e,t,n){var r=b;if(n.length){var o=En(n,Ii(ts));r|=M}return Ti(e,r,t,n,o)}),ns=ko(function(e,t,n){var r=b|y;if(n.length){var o=En(n,Ii(ns));r|=M}return Ti(t,r,e,n,o)});function rs(e,t,n){var r,o,a,s,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new rt(l);function _(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=a}function b(){var e=Za();if(m(e))return y(e);c=ra(b,function(e){var n=t-(e-u);return p?Gn(n,a-(e-d)):n}(e))}function y(e){return c=i,h&&r?_(e):(r=o=i,s)}function g(){var e=Za(),n=m(e);if(r=arguments,o=this,u=e,n){if(c===i)return function(e){return d=e,c=ra(b,t),f?_(e):s}(u);if(p)return Ko(c),c=ra(b,t),_(u)}return c===i&&(c=ra(b,t)),s}return t=Bs(t)||0,Ss(n)&&(f=!!n.leading,a=(p="maxWait"in n)?Yn(Bs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){c!==i&&Ko(c),d=0,r=u=o=c=i},g.flush=function(){return c===i?s:y(Za())},g}var os=ko(function(e,t){return Rr(e,1,t)}),is=ko(function(e,t,n){return Rr(e,Bs(t)||0,n)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(as.Cache||gr),n}function ss(e){if("function"!=typeof e)throw new rt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=gr;var ls=Xo(function(e,t){var n=(t=1==t.length&&ms(t[0])?$t(t[0],bn(ji())):$t(Fr(t,1),bn(ji()))).length;return ko(function(r){for(var o=-1,i=Gn(r.length,n);++o=t}),_s=ro(function(){return arguments}())?ro:function(e){return xs(e)&&ct.call(e,"callee")&&!Pt.call(e,"callee")},ms=n.isArray,bs=qt?bn(qt):function(e){return xs(e)&&Jr(e)==le};function ys(e){return null!=e&&Os(e.length)&&!ks(e)}function gs(e){return xs(e)&&ys(e)}var vs=Wn||Bl,ws=Wt?bn(Wt):function(e){return xs(e)&&Jr(e)==G};function Ms(e){if(!xs(e))return!1;var t=Jr(e);return t==X||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!Cs(e)}function ks(e){if(!Ss(e))return!1;var t=Jr(e);return t==V||t==K||t==F||t==ee}function Ts(e){return"number"==typeof e&&e==Ws(e)}function Os(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xs(e){return null!=e&&"object"==typeof e}var Es=Ht?bn(Ht):function(e){return xs(e)&&Hi(e)==Q};function As(e){return"number"==typeof e||xs(e)&&Jr(e)==J}function Cs(e){if(!xs(e)||Jr(e)!=$)return!1;var t=Et(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==pt}var Ls=Bt?bn(Bt):function(e){return xs(e)&&Jr(e)==te};var Ps=Ft?bn(Ft):function(e){return xs(e)&&Hi(e)==ne};function Ds(e){return"string"==typeof e||!ms(e)&&xs(e)&&Jr(e)==re}function Is(e){return"symbol"==typeof e||xs(e)&&Jr(e)==oe}var js=Yt?bn(Yt):function(e){return xs(e)&&Os(e.length)&&!!St[Jr(e)]};var Rs=gi(uo),Ns=gi(function(e,t){return e<=t});function zs(e){if(!e)return[];if(ys(e))return Ds(e)?Pn(e):ni(e);if(Nt&&e[Nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nt]());var t=Hi(e);return(t==Q?Sn:t==ne?An:fl)(e)}function qs(e){return e?(e=Bs(e))===D||e===-D?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Ws(e){var t=qs(e),n=t%1;return t==t?n?t-n:t:0}function Hs(e){return e?Dr(Ws(e),0,N):0}function Bs(e){if("number"==typeof e)return e;if(Is(e))return R;if(Ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var n=Ge.test(e);return n||Xe.test(e)?Ct(e.slice(2),n?2:8):Ye.test(e)?R:+e}function Fs(e){return ri(e,ol(e))}function Ys(e){return null==e?"":Ro(e)}var Gs=ii(function(e,t){if(Qi(t)||ys(t))ri(t,rl(t),e);else for(var n in t)ct.call(t,n)&&xr(e,n,t[n])}),Us=ii(function(e,t){ri(t,ol(t),e)}),Xs=ii(function(e,t,n,r){ri(t,ol(t),e,r)}),Vs=ii(function(e,t,n,r){ri(t,rl(t),e,r)}),Ks=Ai(Pr);var Qs=ko(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ui(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Li(e),n),r&&(n=Ir(n,f|p|h,xi));for(var o=t.length;o--;)zo(n,t[o]);return n});var ll=Ai(function(e,t){return null==e?{}:function(e,t){return yo(e,t,function(t,n){return $s(e,n)})}(e,t)});function cl(e,t){if(null==e)return{};var n=$t(Li(e),function(e){return[e]});return t=ji(t),yo(e,n,function(e,n){return t(e,n[0])})}var ul=ki(rl),dl=ki(ol);function fl(e){return null==e?[]:yn(e,rl(e))}var pl=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?hl(t):t)});function hl(e){return Ml(Ys(e).toLowerCase())}function _l(e){return(e=Ys(e))&&e.replace(Ke,Mn).replace(gt,"")}var ml=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bl=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),yl=li("toLowerCase");var gl=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var vl=ci(function(e,t,n){return e+(n?" ":"")+Ml(t)});var wl=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ml=li("toUpperCase");function kl(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(We)||[]}(e):e.match(t)||[]}var Tl=ko(function(e,t){try{return Gt(e,i,t)}catch(e){return Ms(e)?e:new o(e)}}),Ol=Ai(function(e,t){return Xt(t,function(t){t=ca(t),Lr(e,t,ts(e[t],e))}),e});function Sl(e){return function(){return e}}var xl=fi(),El=fi(!0);function Al(e){return e}function Cl(e){return so("function"==typeof e?e:Ir(e,f))}var Ll=ko(function(e,t){return function(n){return no(n,e,t)}}),Pl=ko(function(e,t){return function(n){return no(e,n,t)}});function Dl(e,t,n){var r=rl(t),o=Vr(t,r);null!=n||Ss(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Vr(t,rl(t)));var i=!(Ss(n)&&"chain"in n&&!n.chain),a=ks(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Il(){}var jl=mi($t),Rl=mi(Kt),Nl=mi(rn);function zl(e){return Xi(e)?fn(ca(e)):function(e){return function(t){return Kr(t,e)}}(e)}var ql=yi(),Wl=yi(!0);function Hl(){return[]}function Bl(){return!1}var Fl=_i(function(e,t){return e+t},0),Yl=wi("ceil"),Gl=_i(function(e,t){return e/t},1),Ul=wi("floor");var Xl=_i(function(e,t){return e*t},1),Vl=wi("round"),Kl=_i(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=$a,fr.assign=Gs,fr.assignIn=Us,fr.assignInWith=Xs,fr.assignWith=Vs,fr.at=Ks,fr.before=es,fr.bind=ts,fr.bindAll=Ol,fr.bindKey=ns,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},fr.chain=za,fr.chunk=function(e,t,r){t=(r?Ui(e,t,r):t===i)?1:Yn(Ws(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(Nn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ws(r))<0&&(r+=o),r=n>r?0:Hs(r);n>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Ls(t))&&!(t=Ro(t))&&On(e)?Vo(Pn(e),0,n):e.split(t,n):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Yn(Ws(t),0),ko(function(n){var r=n[t],o=Vo(n,0,t);return r&&en(o,r),Gt(e,this,o)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Co(e,1,t):[]},fr.take=function(e,t,n){return e&&e.length?Co(e,0,(t=n||t===i?1:Ws(t))<0?0:t):[]},fr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Co(e,(t=r-(t=n||t===i?1:Ws(t)))<0?0:t,r):[]},fr.takeRightWhile=function(e,t){return e&&e.length?Wo(e,ji(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?Wo(e,ji(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(l);return Ss(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rs(e,t,{leading:r,maxWait:t,trailing:o})},fr.thru=qa,fr.toArray=zs,fr.toPairs=ul,fr.toPairsIn=dl,fr.toPath=function(e){return ms(e)?$t(e,ca):Is(e)?[e]:ni(la(Ys(e)))},fr.toPlainObject=Fs,fr.transform=function(e,t,n){var r=ms(e),o=r||vs(e)||js(e);if(t=ji(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ss(e)&&ks(i)?pr(Et(e)):{}}return(o?Xt:Ur)(e,function(e,r,o){return t(n,e,r,o)}),n},fr.unary=function(e){return $a(e,1)},fr.union=xa,fr.unionBy=Ea,fr.unionWith=Aa,fr.uniq=function(e){return e&&e.length?No(e):[]},fr.uniqBy=function(e,t){return e&&e.length?No(e,ji(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?No(e,i,t):[]},fr.unset=function(e,t){return null==e||zo(e,t)},fr.unzip=Ca,fr.unzipWith=La,fr.update=function(e,t,n){return null==e?e:qo(e,t,Go(n))},fr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:qo(e,t,Go(n),r)},fr.values=fl,fr.valuesIn=function(e){return null==e?[]:yn(e,ol(e))},fr.without=Pa,fr.words=kl,fr.wrap=function(e,t){return cs(Go(t),e)},fr.xor=Da,fr.xorBy=Ia,fr.xorWith=ja,fr.zip=Ra,fr.zipObject=function(e,t){return Fo(e||[],t||[],xr)},fr.zipObjectDeep=function(e,t){return Fo(e||[],t||[],So)},fr.zipWith=Na,fr.entries=ul,fr.entriesIn=dl,fr.extend=Us,fr.extendWith=Xs,Dl(fr,fr),fr.add=Fl,fr.attempt=Tl,fr.camelCase=pl,fr.capitalize=hl,fr.ceil=Yl,fr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Bs(n))==n?n:0),t!==i&&(t=(t=Bs(t))==t?t:0),Dr(Bs(e),t,n)},fr.clone=function(e){return Ir(e,h)},fr.cloneDeep=function(e){return Ir(e,f|h)},fr.cloneDeepWith=function(e,t){return Ir(e,f|h,t="function"==typeof t?t:i)},fr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:i)},fr.conformsTo=function(e,t){return null==t||jr(e,t,rl(t))},fr.deburr=_l,fr.defaultTo=function(e,t){return null==e||e!=e?t:e},fr.divide=Gl,fr.endsWith=function(e,t,n){e=Ys(e),t=Ro(t);var r=e.length,o=n=n===i?r:Dr(Ws(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},fr.eq=fs,fr.escape=function(e){return(e=Ys(e))&&Oe.test(e)?e.replace(ke,kn):e},fr.escapeRegExp=function(e){return(e=Ys(e))&&De.test(e)?e.replace(Pe,"\\$&"):e},fr.every=function(e,t,n){var r=ms(e)?Kt:Wr;return n&&Ui(e,t,n)&&(t=i),r(e,ji(t,3))},fr.find=Ba,fr.findIndex=_a,fr.findKey=function(e,t){return an(e,ji(t,3),Ur)},fr.findLast=Fa,fr.findLastIndex=ma,fr.findLastKey=function(e,t){return an(e,ji(t,3),Xr)},fr.floor=Ul,fr.forEach=Ya,fr.forEachRight=Ga,fr.forIn=function(e,t){return null==e?e:Yr(e,ji(t,3),ol)},fr.forInRight=function(e,t){return null==e?e:Gr(e,ji(t,3),ol)},fr.forOwn=function(e,t){return e&&Ur(e,ji(t,3))},fr.forOwnRight=function(e,t){return e&&Xr(e,ji(t,3))},fr.get=Zs,fr.gt=ps,fr.gte=hs,fr.has=function(e,t){return null!=e&&Bi(e,t,$r)},fr.hasIn=$s,fr.head=ya,fr.identity=Al,fr.includes=function(e,t,n,r){e=ys(e)?e:fl(e),n=n&&!r?Ws(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),Ds(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&ln(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ws(n);return o<0&&(o=Yn(r+o,0)),ln(e,t,o)},fr.inRange=function(e,t,n){return t=qs(t),n===i?(n=t,t=0):n=qs(n),function(e,t,n){return e>=Gn(t,n)&&e=-I&&e<=I},fr.isSet=Ps,fr.isString=Ds,fr.isSymbol=Is,fr.isTypedArray=js,fr.isUndefined=function(e){return e===i},fr.isWeakMap=function(e){return xs(e)&&Hi(e)==ae},fr.isWeakSet=function(e){return xs(e)&&Jr(e)==se},fr.join=function(e,t){return null==e?"":Bn.call(e,t)},fr.kebabCase=ml,fr.last=Ma,fr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ws(n))<0?Yn(r+o,0):Gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,un,o,!0)},fr.lowerCase=bl,fr.lowerFirst=yl,fr.lt=Rs,fr.lte=Ns,fr.max=function(e){return e&&e.length?Hr(e,Al,Zr):i},fr.maxBy=function(e,t){return e&&e.length?Hr(e,ji(t,2),Zr):i},fr.mean=function(e){return dn(e,Al)},fr.meanBy=function(e,t){return dn(e,ji(t,2))},fr.min=function(e){return e&&e.length?Hr(e,Al,uo):i},fr.minBy=function(e,t){return e&&e.length?Hr(e,ji(t,2),uo):i},fr.stubArray=Hl,fr.stubFalse=Bl,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Xl,fr.nth=function(e,t){return e&&e.length?mo(e,Ws(t)):i},fr.noConflict=function(){return Dt._===this&&(Dt._=ht),this},fr.noop=Il,fr.now=Za,fr.pad=function(e,t,n){e=Ys(e);var r=(t=Ws(t))?Ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return bi(zn(o),n)+e+bi(Nn(o),n)},fr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Ws(t))?Ln(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Vn();return Gn(e+o*(t-e+At("1e-"+((o+"").length-1))),t)}return wo(e,t)},fr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,ji(t,4),n,o,zr)},fr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,ji(t,4),n,o,qr)},fr.repeat=function(e,t,n){return t=(n?Ui(e,t,n):t===i)?1:Ws(t),Mo(Ys(e),t)},fr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,n){var r=-1,o=(t=Uo(t,e)).length;for(o||(o=1,e=i);++rI)return[];var n=N,r=Gn(e,N);t=ji(t),e-=N;for(var o=mn(r,t);++n=a)return e;var l=n-Ln(r);if(l<1)return r;var c=s?Vo(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),Ls(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=tt(o.source,Ys(Fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(Ro(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},fr.unescape=function(e){return(e=Ys(e))&&Te.test(e)?e.replace(Me,Dn):e},fr.uniqueId=function(e){var t=++ut;return Ys(e)+t},fr.upperCase=wl,fr.upperFirst=Ml,fr.each=Ya,fr.eachRight=Ga,fr.first=ya,Dl(fr,function(){var e={};return Ur(fr,function(t,n){ct.call(fr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),fr.VERSION="4.17.15",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Xt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Yn(Ws(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,N),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==L||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ji(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Al)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=ko(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return no(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(ss(ji(e)))},mr.prototype.slice=function(e,t){e=Ws(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ws(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(N)},Ur(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=fr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof mr,c=s[0],u=l||ms(t),d=function(e){var t=o.apply(fr,en([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,_=l&&!p;if(!a&&u){t=_?t:new mr(this);var m=e.apply(t,s);return m.__actions__.push({func:qa,args:[d],thisArg:i}),new _r(m,f)}return h&&_?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Ur(mr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";ct.call(rr,r)||(rr[r]=[]),rr[r].push({name:t,func:n})}}),rr[pi(i,y).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:qa,args:[Sa],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Sa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Ho(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Nt&&(fr.prototype[Nt]=function(){return this}),fr}();Dt._=In,(o=function(){return In}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(11),n(3)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return yr}),n.d(t,"Collection",function(){return T}),n.d(t,"Iterable",function(){return vr}),n.d(t,"Seq",function(){return Q}),n.d(t,"Map",function(){return Pt}),n.d(t,"OrderedMap",function(){return bn}),n.d(t,"List",function(){return nn}),n.d(t,"Stack",function(){return kn}),n.d(t,"Set",function(){return In}),n.d(t,"OrderedSet",function(){return rr}),n.d(t,"Record",function(){return lr}),n.d(t,"Range",function(){return Hn}),n.d(t,"Repeat",function(){return _r}),n.d(t,"is",function(){return fe}),n.d(t,"fromJS",function(){return mr}),n.d(t,"hash",function(){return me}),n.d(t,"isImmutable",function(){return P}),n.d(t,"isCollection",function(){return y}),n.d(t,"isKeyed",function(){return v}),n.d(t,"isIndexed",function(){return M}),n.d(t,"isAssociative",function(){return k}),n.d(t,"isOrdered",function(){return I}),n.d(t,"isValueObject",function(){return de}),n.d(t,"get",function(){return rt}),n.d(t,"getIn",function(){return Bn}),n.d(t,"has",function(){return nt}),n.d(t,"hasIn",function(){return Yn}),n.d(t,"merge",function(){return yt}),n.d(t,"mergeDeep",function(){return vt}),n.d(t,"mergeWith",function(){return gt}),n.d(t,"mergeDeepWith",function(){return wt}),n.d(t,"remove",function(){return it}),n.d(t,"removeIn",function(){return ut}),n.d(t,"set",function(){return at}),n.d(t,"setIn",function(){return lt}),n.d(t,"update",function(){return ft}),n.d(t,"updateIn",function(){return st});var r=5,o=1<>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function f(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return _(e,t,0)}function h(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var b="@@__IMMUTABLE_ITERABLE__@@";function y(e){return Boolean(e&&e[b])}var g="@@__IMMUTABLE_KEYED__@@";function v(e){return Boolean(e&&e[g])}var w="@@__IMMUTABLE_INDEXED__@@";function M(e){return Boolean(e&&e[w])}function k(e){return v(e)||M(e)}var T=function(e){return y(e)?e:Q(e)},O=function(e){function t(e){return v(e)?e:J(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),S=function(e){function t(e){return M(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),x=function(e){function t(e){return y(e)&&!k(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T);T.Keyed=O,T.Indexed=S,T.Set=x;var E="@@__IMMUTABLE_SEQ__@@";function A(e){return Boolean(e&&e[E])}var C="@@__IMMUTABLE_RECORD__@@";function L(e){return Boolean(e&&e[C])}function P(e){return y(e)||L(e)}var D="@@__IMMUTABLE_ORDERED__@@";function I(e){return Boolean(e&&e[D])}var j=0,R=1,N=2,z="function"==typeof Symbol&&Symbol.iterator,q="@@iterator",W=z||q,H=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function Y(e){return!!X(e)}function G(e){return e&&"function"==typeof e.next}function U(e){var t=X(e);return t&&t.call(e)}function X(e){var t=e&&(z&&e[z]||e[q]);if("function"==typeof t)return t}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=j,H.VALUES=R,H.ENTRIES=N,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[W]=function(){return this};var V=Object.prototype.hasOwnProperty;function K(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Q=function(e){function t(e){return null===e||void 0===e?oe():P(e)?e.toSeq():function(e){var t=se(e);if(t)return t;if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new H(function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return B(e,i[0],i[1])})}return this.__iteratorUncached(e,t)},t}(T),J=function(e){function t(e){return null===e||void 0===e?oe().toKeyedSeq():y(e)?v(e)?e.toSeq():e.fromEntrySeq():L(e)?e.toSeq():ie(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Q),Z=function(e){function t(e){return null===e||void 0===e?oe():y(e)?v(e)?e.entrySeq():e.toIndexedSeq():L(e)?e.toSeq().entrySeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Q),$=function(e){function t(e){return(y(e)&&!k(e)?e:Z(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Q);Q.isSeq=A,Q.Keyed=J,Q.Set=$,Q.Indexed=Z,Q.prototype[E]=!0;var ee=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new H(function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return B(e,i,n[i])})},t}(Z),te=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return V.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new H(function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return B(e,a,n[a])})},t}(J);te.prototype[D]=!0;var ne,re=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._collection),r=0;if(G(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._collection);if(!G(n))return new H(F);var r=0;return new H(function(){var t=n.next();return t.done?t:B(e,r++,t.value)})},t}(Z);function oe(){return ne||(ne=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e):Y(e)?new re(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ae(e){var t=se(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function se(e){return K(e)?new ee(e):Y(e)?new re(e):void 0}var le="@@__IMMUTABLE_MAP__@@";function ce(e){return Boolean(e&&e[le])}function ue(e){return ce(e)&&I(e)}function de(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function fe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(de(e)&&de(t)&&e.equals(t))}var pe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function he(e){return e>>>1&1073741824|3221225471&e}var _e=Object.prototype.valueOf;function me(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return he(t)}(e);case"string":return e.length>Te?function(e){var t=xe[e];void 0===t&&(t=be(e),Se===Oe&&(Se=0,xe={}),Se++,xe[e]=t);return t}(e):be(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?he(e.hashCode(e)):(e.valueOf!==_e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(we&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[ke]))return t;if(!ge){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ke]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++Me,1073741824&Me&&(Me=0);if(we)ve.set(e,t);else{if(void 0!==ye&&!1===ye(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ge)Object.defineProperty(e,ke,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ke]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ke]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function be(e){for(var t=0,n=0;n=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===R||e.done?e:B(t,l-1,t===j?void 0:e.value[1],e)})},c}function Ne(e,t,n,r){var o=Ue(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(N,i),l=!0,c=0;return new H(function(){var e,i,u;do{if((e=s.next()).done)return r||o===R?e:B(o,c++,o===j?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return o===N?e:B(o,i,u,e)})},o}function ze(e,t,n){var r=Ue(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,c){l.__iterate(function(i,l){return(!t||c0}function Be(e,t,n,r){var o=Ue(e),i=new ee(n).map(function(e){return e.size});return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=T(e),U(o?e.reverse():e)}),a=0,s=!1;return new H(function(){var n;return s||(n=i.map(function(e){return e.next()}),s=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Fe(e,t){return e===t?e:A(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ge(e){return v(e)?O:M(e)?S:x}function Ue(e){return Object.create((v(e)?J:M(e)?Z:$).prototype)}function Xe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Ve(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return kt(e,t)}function gt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Mt(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Mt(t,n,e)}function Mt(e,t,n){return kt(e,t,function(e){return function t(n,r,o){return et(n)&&et(r)?kt(n,[r],t):e?e(n,r,o):r}}(n))}function kt(e,t,n){if(!et(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(P(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?S:O,a=r?function(t){o===e&&(o=ot(o)),o.push(t)}:function(t,r){var i=V.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=ot(o)),o[r]=a)},s=0;s0;)t[n]=arguments[n+1];return Mt(this,t,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Yt(),function(e){return kt(e,t)})}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Yt(),function(e){return Mt(e,t)})}function Et(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function At(){return this.__ownerID?this:this.__ensureOwner(new l)}function Ct(){return this.__ensureOwner()}function Lt(){return this.__altered}Ae.prototype.cacheResult=Ee.prototype.cacheResult=Ce.prototype.cacheResult=Le.prototype.cacheResult=Xe;var Pt=function(e){function t(t){return null===t||void 0===t?Yt():ce(t)&&!I(t)?t:Yt().withMutations(function(n){var r=e(t);Je(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Yt().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Gt(this,e,t)},t.prototype.remove=function(e){return Gt(this,e,a)},t.prototype.deleteAll=function(e){var t=T(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Yt()},t.prototype.sort=function(e){return bn(qe(this,e))},t.prototype.sortBy=function(e,t){return bn(qe(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,o){n.set(o,e.call(t,r,o,n))})})},t.prototype.__iterator=function(e,t){return new Wt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ft(this.size,this._root,e,this.__hash):0===this.size?Yt():(this.__ownerID=e,this.__altered=!1,this)},t}(O);Pt.isMap=ce;var Dt=Pt.prototype;Dt[le]=!0,Dt.delete=Dt.remove,Dt.removeAll=Dt.deleteAll,Dt.setIn=ct,Dt.removeIn=Dt.deleteIn=dt,Dt.update=pt,Dt.updateIn=ht,Dt.merge=Dt.concat=_t,Dt.mergeWith=mt,Dt.mergeDeep=Tt,Dt.mergeDeepWith=Ot,Dt.mergeIn=St,Dt.mergeDeepIn=xt,Dt.withMutations=Et,Dt.wasAltered=Lt,Dt.asImmutable=Ct,Dt["@@transducer/init"]=Dt.asMutable=At,Dt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Dt["@@transducer/result"]=function(e){return e.asImmutable()};var It=function(e,t){this.ownerID=e,this.entries=t};It.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Jt)return function(e,t,n,r){e||(e=new l);for(var o=new zt(e,me(n),[n,r]),i=0;i>>e)&i),s=this.bitmap;return 0==(s&a)?o:this.nodes[Kt(s&a-1)].get(e+r,t,n,o)},jt.prototype.update=function(e,t,n,s,l,c,u){void 0===n&&(n=me(s));var d=(0===t?n:n>>>t)&i,f=1<=Zt)return function(e,t,n,r,i){for(var a=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,p,d,y);if(h&&!y&&2===m.length&&Xt(m[1^_]))return m[1^_];if(h&&y&&1===m.length&&Xt(y))return y;var g=e&&e===this.ownerID,v=h?y?p:p^f:p|f,w=h?y?Qt(m,_,y,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&i,s=this.nodes[a];return s?s.get(e+r,t,n,o):o},Rt.prototype.update=function(e,t,n,o,s,l,c){void 0===n&&(n=me(o));var u=(0===t?n:n>>>t)&i,d=s===a,f=this.nodes,p=f[u];if(d&&!p)return this;var h=Ut(p,e,t+r,n,o,s,l,c);if(h===p)return this;var _=this.count;if(p){if(!h&&--_<$t)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s>>n)&i,c=(0===n?o:o>>>n)&i,u=l===c?[Vt(e,t,n+r,o,a)]:(s=new zt(t,o,a),l>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Qt(e,t,n,r){var o=r?e:Ke(e);return o[t]=n,o}var Jt=o/4,Zt=o/2,$t=o/4,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=un();if(null===t||void 0===t)return n;if(tn(t))return t;var i=e(t),a=i.size;return 0===a?n:(Je(a),a>0&&a=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?hn(e,t).set(0,n):hn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=_n(e._capacity)?r=dn(r,e.__ownerID,0,t,n,i):o=dn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return cn(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):un()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hn(n,0,t+e.length);for(var r=0;r>>t&i;if(o>=this.array.length)return new on([],e);var a,s=0===o;if(t>0){var l=this.array[o];if((a=l&&l.removeBefore(e,t-r,n))===l&&s)return this}if(s&&!a)return this;var c=fn(this,e);if(!s)for(var u=0;u>>t&i;if(a>=this.array.length)return this;if(t>0){var s=this.array[a];if((o=s&&s.removeAfter(e,t-r,n))===s&&a===this.array.length-1)return this}var l=fn(this,e);return l.array.splice(a+1),o&&(l.array[a]=o),l};var an,sn={};function ln(e,t){var n=e._origin,i=e._capacity,a=_n(i),s=e._tail;return l(e._root,e._level,0);function l(e,c,u){return 0===c?function(e,r){var l=r===a?s&&s.array:e&&e.array,c=r>n?0:n-r,u=i-r;u>o&&(u=o);return function(){if(c===u)return sn;var e=t?--u:c++;return l&&l[e]}}(e,u):function(e,a,s){var c,u=e&&e.array,d=s>n?0:n-s>>a,f=1+(i-s>>a);f>o&&(f=o);return function(){for(;;){if(c){var e=c();if(e!==sn)return e;c=null}if(d===f)return sn;var n=t?--f:d++;c=l(u&&u[n],a-r,s+(n<>>n&i,d=e&&u0){var f=e&&e.array[u],p=dn(f,t,n-r,o,a,l);return p===f?e:((c=fn(e,t)).array[u]=p,c)}return d&&e.array[u]===a?e:(l&&s(l),c=fn(e,t),void 0===a&&u===c.array.length-1?c.array.pop():c.array[u]=a,c)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function pn(e,t){if(t>=_n(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&i],o-=r;return n}}function hn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new l,a=e._origin,s=e._capacity,c=a+t,u=void 0===n?s:n<0?s+n:a+n;if(c===a&&u===s)return e;if(c>=u)return e.clear();for(var d=e._level,f=e._root,p=0;c+p<0;)f=new on(f&&f.array.length?[void 0,f]:[],o),p+=1<<(d+=r);p&&(c+=p,a+=p,u+=p,s+=p);for(var h=_n(s),_=_n(u);_>=1<h?new on([],o):m;if(m&&_>h&&cr;g-=r){var v=h>>>g&i;y=y.array[v]=fn(y.array[v],o)}y.array[h>>>r&i]=m}if(u=_)c-=_,u-=_,d=r,f=null,b=b&&b.removeBefore(o,0,c);else if(c>a||_>>d&i;if(w!==_>>>d&i)break;w&&(p+=(1<a&&(f=f.removeBefore(o,d,c-p)),f&&_>>r<=o&&l.size>=2*s.size?(r=(i=l.filter(function(e,t){return void 0!==e&&c!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,i=l.set(c,[t,n])}else r=s.set(t,l.size),i=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):yn(r,i)}bn.isOrderedMap=ue,bn.prototype[D]=!0,bn.prototype.delete=bn.prototype.remove;var wn="@@__IMMUTABLE_STACK__@@";function Mn(e){return Boolean(e&&e[wn])}var kn=function(e){function t(e){return null===e||void 0===e?xn():Mn(e)?e:xn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Sn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Mn(t))return t;Je(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Sn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},t.prototype.slice=function(t,n){if(f(t,n,this.size))return this;var r=p(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Sn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Sn(this.size,this._head,e,this.__hash):0===this.size?xn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ee(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ee(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new H(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}})},t}(S);kn.isStack=Mn;var Tn,On=kn.prototype;function Sn(e,t,n,r){var o=Object.create(On);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xn(){return Tn||(Tn=Sn(0))}On[wn]=!0,On.shift=On.pop,On.unshift=On.push,On.unshiftAll=On.pushAll,On.withMutations=Et,On.wasAltered=Lt,On.asImmutable=Ct,On["@@transducer/init"]=On.asMutable=At,On["@@transducer/step"]=function(e,t){return e.unshift(t)},On["@@transducer/result"]=function(e){return e.asImmutable()};var En="@@__IMMUTABLE_SET__@@";function An(e){return Boolean(e&&e[En])}function Cn(e){return An(e)&&I(e)}function Ln(e,t){if(e===t)return!0;if(!y(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||v(e)!==v(t)||M(e)!==M(t)||I(e)!==I(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!k(e);if(I(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,a)):!fe(e.get(r,a),t))return s=!1,!1});return s&&e.size===l}function Pn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Dn(e){if(!e||"object"!=typeof e)return e;if(!y(e)){if(!et(e))return e;e=Q(e)}if(v(e)){var t={};return e.__iterate(function(e,n){t[n]=Dn(e)}),t}var n=[];return e.__iterate(function(e){n.push(Dn(e))}),n}var In=function(e){function t(t){return null===t||void 0===t?qn():An(t)&&!I(t)?t:qn().withMutations(function(n){var r=e(t);Je(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.intersect=function(e){return(e=T(e).toArray()).length?Rn.intersect.apply(t(e.pop()),e):qn()},t.union=function(e){return(e=T(e).toArray()).length?Rn.union.apply(t(e.pop()),e):qn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Nn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Nn(this,this._map.remove(e))},t.prototype.clear=function(){return Nn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach(function(i){var a=e.call(t,i,i,n);a!==i&&(r.push(i),o.push(a))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),o.forEach(function(t){return e.add(t)})})},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=he((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+nr(me(e),me(t))|0}:function(e,t){r=r+nr(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var Un=T.prototype;Un[b]=!0,Un[W]=Un.values,Un.toJSON=Un.toArray,Un.__toStringMapper=tt,Un.inspect=Un.toSource=function(){return this.toString()},Un.chain=Un.flatMap,Un.contains=Un.includes,Pn(O,{flip:function(){return Fe(this,Pe(this))},mapEntries:function(e,t){var n=this,r=0;return Fe(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Fe(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Xn=O.prototype;Xn[g]=!0,Xn[W]=Un.entries,Xn.toJSON=Gn,Xn.__toStringMapper=function(e,t){return tt(t)+": "+tt(e)},Pn(S,{toKeyedSeq:function(){return new Ee(this,!1)},filter:function(e,t){return Fe(this,je(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Fe(this,Ie(this,!1))},slice:function(e,t){return Fe(this,Re(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return Fe(this,1===n?r:r.concat(Ke(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Fe(this,ze(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function nr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Vn[w]=!0,Vn[D]=!0,Pn(x,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),x.prototype.has=Un.includes,x.prototype.contains=x.prototype.includes,Pn(J,O.prototype),Pn(Z,S.prototype),Pn($,x.prototype);var rr=function(e){function t(e){return null===e||void 0===e?sr():Cn(e)?e:sr().withMutations(function(t){var n=x(e);Je(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(O(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(In);rr.isOrderedSet=Cn;var or,ir=rr.prototype;function ar(e,t){var n=Object.create(ir);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function sr(){return or||(or=ar(gn()))}ir[D]=!0,ir.zip=Vn.zip,ir.zipWith=Vn.zipWith,ir.__empty=sr,ir.__make=ar;var lr=function(e,t){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c2?[]:void 0,{"":e})}function br(e,t){return v(t)?t.toMap():t.toList()}var yr="4.0.0-rc.11",gr={version:yr,Collection:T,Iterable:T,Seq:Q,Map:Pt,OrderedMap:bn,List:nn,Stack:kn,Set:In,OrderedSet:rr,Record:lr,Range:Hn,Repeat:_r,is:fe,fromJS:mr,hash:me,isImmutable:P,isCollection:y,isKeyed:v,isIndexed:M,isAssociative:k,isOrdered:I,isValueObject:de,isSeq:A,isList:tn,isMap:ce,isOrderedMap:ue,isStack:Mn,isSet:An,isOrderedSet:Cn,isRecord:L,get:rt,getIn:Bn,has:nt,hasIn:Yn,merge:yt,mergeDeep:vt,mergeWith:gt,mergeDeepWith:wt,remove:it,removeIn:ut,set:at,setIn:lt,update:ft,updateIn:st},vr=T;t.default=gr},function(e,t,n){e.exports=n(1130)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1134)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.disabledWithFocus=void 0,function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n="Alt",r={OPEN_ACTIONS_MENU:"".concat(n,"+1"),OPEN_NAVIGATION_MENU:"".concat(n,"+2"),OPEN_INBOX_MENU:"".concat(n,"+3"),OPEN_AVATAR_MENU:"".concat(n,"+4"),OPEN_SIDEBAR_MENU_0:"".concat(n,"+5"),OPEN_SIDEBAR_MENU_1:"".concat(n,"+6"),OPEN_SIDEBAR_MENU_2:"".concat(n,"+7"),DOC_STATUS:"".concat(n,"+I"),TEXT_START:"Home",TEXT_END:"End",OPEN_ADVANCED_EDIT:"".concat(n,"+E"),CLONE_DOCUMENT:"".concat(n,"+W"),OPEN_PRINT_RAPORT:"".concat(n,"+P"),OPEN_EMAIL:"".concat(n,"+K"),OPEN_LETTER:"".concat(n,"+R"),DELETE_DOCUMENT:"".concat(n,"+D"),NEW_DOCUMENT:"".concat(n,"+N"),TOGGLE_EDIT_MODE:"".concat(n,"+O"),OPEN_SELECTED:"".concat(n,"+B"),REMOVE_SELECTED:"".concat(n,"+Y"),ADVANCED_EDIT:"".concat(n,"+E"),SELECT_ALL_LEAFS:"".concat(n,"+S"),EXPAND_INDENT:"+",COLLAPSE_INDENT:"-",TOGGLE_QUICK_INPUT:"".concat(n,"+Q"),TOGGLE_EXPAND:"".concat(n,"++"),NEXT_PAGE:"PageDown",PREV_PAGE:"PageUp",FIRST_PAGE:"Home",LAST_PAGE:"End",SELECT_ALL_ROWS:"".concat(n,"+A"),QUICK_ACTION_POS:"".concat(n,"+U"),QUICK_ACTION_TOGGLE:"".concat(n,"+L"),COMPLETE_STATUS:"".concat(n,"+U"),DONE:"".concat(n,"+Enter"),CANCEL:"Escape"},o=[r.EXPAND_INDENT,r.COLLAPSE_INDENT];t.disabledWithFocus=o;var i=r,a=i;t.default=a,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(n,"mod","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(r,"keymaps","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(o,"disabledWithFocus","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"),e.register(i,"default","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/shortcuts/keymap.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_REGEX_TEST=t.TIME_FIELD_TYPES=t.DATE_FIELD_FORMATS=t.DATE_FIELD_TYPES=t.DATE_FIELDS=t.DATE_TIMEZONE_FORMAT=t.TIME_FORMAT=t.DATE_FORMAT=t.SPECIAL_FIELD_TYPES=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=t.AMOUNT_FIELD_TYPES=t.INITIALLY_OPEN=t.INITIALLY_CLOSED=t.VIEW_EDITOR_RENDER_MODES_ALWAYS=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND=t.VIEW_EDITOR_RENDER_MODES_NEVER=t.LOCAL_LANG=void 0,function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;t.LOCAL_LANG="metasfreshLanguage";t.VIEW_EDITOR_RENDER_MODES_NEVER="never";t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand";t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always";t.INITIALLY_CLOSED="INITIALLY_CLOSED";t.INITIALLY_OPEN="INITIALLY_OPEN";var n=["Amount","CostPrice","Quantity"];t.AMOUNT_FIELD_TYPES=n;var r=["0,0.[00000]","0,0.0[0000]","0,0.00[000]","0,0.000[00]","0,0.0000[0]","0,0.00000"];t.AMOUNT_FIELD_FORMATS_BY_PRECISION=r;var o=["Color"];t.SPECIAL_FIELD_TYPES=o;t.DATE_FORMAT="YYYY-MM-DD";t.TIME_FORMAT="HH:mm";t.DATE_TIMEZONE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ";var i=["Date","DateTime"];t.DATE_FIELDS=i;var a=["Date","DateTime","ZonedDateTime","Timestamp"];t.DATE_FIELD_TYPES=a;var s={Date:"L",ZonedDateTime:"L LTS",DateTime:"L LTS",Time:"LT",Timestamp:"L HH:mm:ss"};t.DATE_FIELD_FORMATS=s;var l=["Time"];t.TIME_FIELD_TYPES=l;var c=/^\d\d:\d\d$/;t.TIME_REGEX_TEST=c,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register("metasfreshLanguage","LOCAL_LANG","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("never","VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("on-demand","VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("always","VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("INITIALLY_CLOSED","INITIALLY_CLOSED","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("INITIALLY_OPEN","INITIALLY_OPEN","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(n,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(r,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(o,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("YYYY-MM-DD","DATE_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("HH:mm","TIME_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register("YYYY-MM-DDTHH:mm:ss.SSSZ","DATE_TIMEZONE_FORMAT","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(i,"DATE_FIELDS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(a,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(s,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(l,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"),e.register(c,"TIME_REGEX_TEST","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/constants/Constants.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(565),o=n(1129),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n"+o+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(15),o=n(51),i=n(52),a=n(105)("src"),s=n(1308),l=(""+s).split("toString");n(25).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return r(t,e),t}(n(865).CustomError);t.default=o},function(e,t,n){"use strict";var r=n(391);e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){var n=this.getOrigin(e)===this.getOrigin(t);return n},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createPatchRequestPayload=u,t.toggleFullScreen=f,t.nullToEmptyStrings=p,t.findRowByPropName=h,t.getItemsByProperty=_,t.cleanupFilter=b,t.arePropTypesIdentical=t.getQueryString=void 0;var r=a(n(4)),o=n(43),i=a(n(1063));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c=function(e){return i.default.stringify(Object.keys(e).reduce(function(t,n){var r=e[n];return Array.isArray(r)&&r.length>0?t[n]=r.join(","):r&&(t[n]=r),t},{}))};function u(e,t){return Array.isArray(e)&&Array.isArray(t)?e.map(function(e,n){return{op:"replace",path:e,value:t[n]}}):Array.isArray(e)&&void 0!==t?e.map(function(e){return{op:"replace",path:e.field,value:t}}):e&&void 0!==t?[{op:"replace",path:e,value:t}]:[]}t.getQueryString=c;var d=function(e,t){for(var n=0,r=Object.keys(e);n0){var n=new r.default[t.length+e.length];o.default.arraycopy(t,0,n,0,t.length),o.default.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(112),o=n(53),i=n(234),a=n(74),s=n(21),l=function(){function e(e,t,n,r){if(this.width=e,this.height=t,this.rowSize=n,this.bits=r,void 0!==t&&null!==t||(t=e),this.height=t,e<1||t<1)throw new s.default("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((e+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,o=new e(r,n),i=0;ia){if(-1===l)l=i-a;else if(i-a!==l)throw new s.default("row lengths do not match");a=i,c++}u++}else if(t.substring(u,u+n.length)===n)u+=n.length,o[i]=!0,i++;else{if(t.substring(u,u+r.length)!==r)throw new s.default("illegal character encountered: "+t.substring(u));u+=r.length,o[i]=!1,i++}if(i>a){if(-1===l)l=i-a;else if(i-a!==l)throw new s.default("row lengths do not match");c++}for(var d=new e(l,c),f=0;f>>(31&e)&1)},e.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(31&e)&4294967295},e.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(31&e)&4294967295)},e.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(31&e)&4294967295},e.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new s.default("input matrix dimensions do not match");for(var t=new r.default(Math.floor(this.width/32)+1),n=this.rowSize,o=this.bits,i=0,a=this.height;ithis.height||o>this.width)throw new s.default("The region must fit inside the matrix");for(var a=this.rowSize,l=this.bits,c=t;cs&&(s=l),32*ca){for(d=31;u>>>d==0;)d--;32*c+d>a&&(a=32*c+d)}}}return a=0&&0===t[n];)n--;if(n<0)return null;for(var r=Math.floor(n/e),o=32*Math.floor(n%e),i=t[n],a=31;i>>>a==0;)a--;return o+=a,Int32Array.from([o,r])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){var e=this.width;return e=31*(e=31*(e=31*(e=31*e+this.width)+this.height)+this.rowSize)+i.default.hashCode(this.bits)},e.prototype.toString=function(e,t,n){return void 0===e&&(e="x"),void 0===t&&(t=" "),void 0===n&&(n="\n"),this.buildToString(e,t,n)},e.prototype.buildToString=function(e,t,n){var r=new a.default;r.append(n);for(var o=0,i=this.height;ow;w++)if((f||w in y)&&(m=g(_=y[w],w,b),e))if(n)M[w]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:M.push(_)}else if(u)return!1;return d?-1:c||u?u:M}}},function(e,t,n){var r=n(5),o=n(25),i=n(14);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(156),o=n(106),i=n(50),a=n(81),s=n(52),l=n(599),c=Object.getOwnPropertyDescriptor;t.f=n(29)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(112),o=n(36),i=n(85),a=n(33),s=n(16),l=function(){function e(){}return e.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch(p){if(t&&!0===t.get(o.default.TRY_HARDER)&&e.isRotateSupported()){var n=e.rotateCounterClockwise(),r=this.doDecode(n,t),l=r.getResultMetadata(),c=270;null!==l&&!0===l.get(i.default.ORIENTATION)&&(c+=l.get(i.default.ORIENTATION)%360),r.putMetadata(i.default.ORIENTATION,c);var u=r.getResultPoints();if(null!==u)for(var d=n.getHeight(),f=0;f>(d?8:5));n=d?c:15;for(var p=Math.trunc(c/2),h=0;h=c)break;try{u=e.getBlackRow(m,u)}catch(e){continue}for(var b=function(e){if(1===e&&(u.reverse(),t&&!0===t.get(o.default.NEED_RESULT_POINT_CALLBACK))){var n=new Map;t.forEach(function(e,t){return n.set(t,e)}),n.delete(o.default.NEED_RESULT_POINT_CALLBACK),t=n}try{var r=y.decodeRow(m,u,t);if(1===e){r.putMetadata(i.default.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new a.default(l-s[0].getX()-1,s[0].getY()),s[1]=new a.default(l-s[1].getX()-1,s[1].getY()))}return{value:r}}catch(e){}},y=this,g=0;g<2;g++){var v=b(g);if("object"==typeof v)return v.value}}throw new s.default},e.recordPattern=function(e,t,n){for(var r=n.length,o=0;o=i)throw new s.default;for(var a=!e.get(t),l=0,c=t;c0&&o>=0;)t.get(--n)!==i&&(o--,i=!i);if(o>=0)throw new s.default;e.recordPattern(t,n+1,r)},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;ad?u-d:d-u;if(f>n)return Number.POSITIVE_INFINITY;l+=f}return l/o},e}();t.default=l},function(e,t,n){(function(e,r){var o;/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var i=n(927),a={function:!0,object:!0},s=a[typeof t]&&t&&!t.nodeType&&t,l=a[typeof window]&&window||this,c=s&&a[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;function u(e,t){e||(e=l.Object()),t||(t=l.Object());var n=e.Number||l.Number,r=e.String||l.String,o=e.Object||l.Object,i=e.Date||l.Date,s=e.SyntaxError||l.SyntaxError,c=e.TypeError||l.TypeError,d=e.Math||l.Math,f=e.JSON||l.JSON;"object"==typeof f&&f&&(t.stringify=f.stringify,t.parse=f.parse);var p,h=o.prototype,_=h.toString,m=h.hasOwnProperty;function b(e,t){try{e()}catch(e){t&&t()}}var y=new i(-0xc782b5b800cec);function g(e){if(null!=g[e])return g[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=g("json-stringify")&&g("date-serialization")&&g("json-parse");else if("date-serialization"==e){if(o=g("json-stringify")&&y){var a=t.stringify;b(function(){o='"-271821-04-20T00:00:00.000Z"'==a(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==a(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==a(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==a(new i(-1))})}}else{var s,l='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c="function"==typeof(a=t.stringify);c&&((s=function(){return 1}).toJSON=s,b(function(){c="0"===a(0)&&"0"===a(new n)&&'""'==a(new r)&&a(_)===p&&a(p)===p&&a()===p&&"1"===a(s)&&"[1]"==a([s])&&"[null]"==a([p])&&"null"==a(null)&&"[null,null,null]"==a([p,_,null])&&a({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==l&&"1"===a(null,s)&&"[\n 1,\n 2\n]"==a([1,2],null,1)},function(){c=!1})),o=c}if("json-parse"==e){var u,d=t.parse;"function"==typeof d&&b(function(){0!==d("0")||d(!1)||(s=d(l),(u=5==s.a.length&&1===s.a[0])&&(b(function(){u=!d('"\t"')}),u&&b(function(){u=1!==d("01")}),u&&b(function(){u=1!==d("1.")})))},function(){u=!1}),o=u}}return g[e]=!!o}if(b(function(){y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}),g["bug-string-char-index"]=g["date-serialization"]=g.json=g["json-stringify"]=g["json-parse"]=null,!g("json")){var v=g("bug-string-char-index"),w=function(e,t){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)m.call(r,o)&&i++;return n=r=null,i?w=function(e,t){var n,r,o="[object Function]"==_.call(e);for(n in e)o&&"prototype"==n||!m.call(e,n)||(r="constructor"===n)||t(n);(r||m.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(e,t){var n,o,i="[object Function]"==_.call(e),s=!i&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||m;for(n in e)i&&"prototype"==n||!s.call(e,n)||t(n);for(o=r.length;n=r[--o];)s.call(e,n)&&t(n)}),w(e,t)};if(!g("json-stringify")&&!g("date-serialization")){var M={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},k=function(e,t){return("000000"+(t||0)).slice(-e)},T=function(e){var t,n,r,o,i,a,s,l,c;if(y)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),l=e.getUTCSeconds(),c=e.getUTCMilliseconds()};else{var u=d.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(e,t){return f[t]+365*(e-1970)+u((e-1969+(t=+(t>1)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(o=u(e/864e5),n=u(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=u((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),a=u((i=(e%864e5+864e5)%864e5)/36e5)%24,s=u(i/6e4)%60,l=u(i/1e3)%60,c=i%1e3}}return(T=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+k(6,n<0?-n:n):k(4,n))+"-"+k(2,r+1)+"-"+k(2,o)+"T"+k(2,a)+":"+k(2,s)+":"+k(2,l)+"."+k(3,c)+"Z",n=r=o=a=s=l=c=null):e=null,e})(e)};if(g("json-stringify")&&!g("date-serialization")){function O(e){return T(this)}var S=t.stringify;t.stringify=function(e,t,n){var r=i.prototype.toJSON;i.prototype.toJSON=O;var o=S(e,t,n);return i.prototype.toJSON=r,o}}else{var x=function(e){var t=e.charCodeAt(0),n=M[t];return n||"\\u00"+k(2,t.toString(16))},E=/[\x00-\x1f\x22\x5c]/g,A=function(e){return E.lastIndex=0,'"'+(E.test(e)?e.replace(E,x):e)+'"'},C=function(e,t,n,r,o,a,s){var l,u,d,f,h,m,y,g,v;if(b(function(){l=t[e]}),"object"==typeof l&&l&&(l.getUTCFullYear&&"[object Date]"==_.call(l)&&l.toJSON===i.prototype.toJSON?l=T(l):"function"==typeof l.toJSON&&(l=l.toJSON(e))),n&&(l=n.call(t,e,l)),l==p)return l===p?l:"null";switch("object"==(u=typeof l)&&(d=_.call(l)),d||u){case"boolean":case"[object Boolean]":return""+l;case"number":case"[object Number]":return l>-1/0&&l<1/0?""+l:"null";case"string":case"[object String]":return A(""+l)}if("object"==typeof l){for(y=s.length;y--;)if(s[y]===l)throw c();if(s.push(l),f=[],g=a,a+=o,"[object Array]"==d){for(m=0,y=l.length;m0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||j();e+=D("0x"+i.slice(t,L));break;default:j()}else{if(34==o)break;for(o=i.charCodeAt(L),t=L;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++L);e+=i.slice(t,L)}if(34==i.charCodeAt(L))return L++,e;j();default:if(t=L,45==o&&(r=!0,o=i.charCodeAt(++L)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(L+1))>=48&&o<=57)&&j(),r=!1;L=48&&o<=57);L++);if(46==i.charCodeAt(L)){for(n=++L;n57);n++);n==L&&j(),L=n}if(101==(o=i.charCodeAt(L))||69==o){for(43!=(o=i.charCodeAt(++L))&&45!=o||L++,n=L;n57);n++);n==L&&j(),L=n}return+i.slice(t,L)}r&&j();var s=i.slice(L,L+4);if("true"==s)return L+=4,!0;if("fals"==s&&101==i.charCodeAt(L+4))return L+=5,!1;if("null"==s)return L+=4,null;j()}return"$"},N=function(e){var t,n;if("$"==e&&j(),"string"==typeof e){if("@"==(v?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=R());)n?","==e?"]"==(e=R())&&j():j():n=!0,","==e&&j(),t.push(N(e));return t}if("{"==e){for(t={};"}"!=(e=R());)n?","==e?"}"==(e=R())&&j():j():n=!0,","!=e&&"string"==typeof e&&"@"==(v?e.charAt(0):e[0])&&":"==R()||j(),t[e.slice(1)]=N(R());return t}j()}return e},z=function(e,t,n){var r=q(e,t,n);r===p?delete e[t]:e[t]=r},q=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if("[object Array]"==_.call(o))for(r=o.length;r--;)z(_,w,o);else w(o,function(e){z(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return L=0,P=""+e,n=N(R()),"$"!=R()&&j(),L=P=null,t&&"[object Function]"==_.call(t)?q(((r={})[""]=n,r),"",t):n}}}return t.runInContext=u,t}if(!c||c.global!==c&&c.window!==c&&c.self!==c||(l=c),s&&!i)u(l,s);else{var d=l.JSON,f=l.JSON3,p=!1,h=u(l,l.JSON3={noConflict:function(){return p||(p=!0,l.JSON=d,l.JSON3=f,d=f=null),h}});l.JSON={parse:h.parse,stringify:h.stringify}}i&&(void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o))}).call(this)}).call(this,n(3)(e),n(11))},function(e,t,n){"use strict";n.r(t);var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=window.device,i={},a=[];window.device=i;var s=window.document.documentElement,l=window.navigator.userAgent.toLowerCase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function u(e,t){return-1!==e.indexOf(t)}function d(e){return u(l,e)}function f(e){return s.className.match(new RegExp(e,"i"))}function p(e){var t=null;f(e)||(t=s.className.replace(/^\s+|\s+$/g,""),s.className=t+" "+e)}function h(e){f(e)&&(s.className=s.className.replace(" "+e,""))}function _(){i.landscape()?(h("portrait"),p("landscape"),m("landscape")):(h("landscape"),p("portrait"),m("portrait")),g()}function m(e){for(var t in a)a[t](e)}i.macos=function(){return d("mac")},i.ios=function(){return i.iphone()||i.ipod()||i.ipad()},i.iphone=function(){return!i.windows()&&d("iphone")},i.ipod=function(){return d("ipod")},i.ipad=function(){var e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return d("ipad")||e},i.android=function(){return!i.windows()&&d("android")},i.androidPhone=function(){return i.android()&&d("mobile")},i.androidTablet=function(){return i.android()&&!d("mobile")},i.blackberry=function(){return d("blackberry")||d("bb10")||d("rim")},i.blackberryPhone=function(){return i.blackberry()&&!d("tablet")},i.blackberryTablet=function(){return i.blackberry()&&d("tablet")},i.windows=function(){return d("windows")},i.windowsPhone=function(){return i.windows()&&d("phone")},i.windowsTablet=function(){return i.windows()&&d("touch")&&!i.windowsPhone()},i.fxos=function(){return(d("(mobile")||d("(tablet"))&&d(" rv:")},i.fxosPhone=function(){return i.fxos()&&d("mobile")},i.fxosTablet=function(){return i.fxos()&&d("tablet")},i.meego=function(){return d("meego")},i.cordova=function(){return window.cordova&&"file:"===location.protocol},i.nodeWebkit=function(){return"object"===r(window.process)},i.mobile=function(){return i.androidPhone()||i.iphone()||i.ipod()||i.windowsPhone()||i.blackberryPhone()||i.fxosPhone()||i.meego()},i.tablet=function(){return i.ipad()||i.androidTablet()||i.blackberryTablet()||i.windowsTablet()||i.fxosTablet()},i.desktop=function(){return!i.tablet()&&!i.mobile()},i.television=function(){for(var e=0;e1},i.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?u(screen.orientation.type,"landscape"):i.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},i.noConflict=function(){return window.device=o,this},i.ios()?i.ipad()?p("ios ipad tablet"):i.iphone()?p("ios iphone mobile"):i.ipod()&&p("ios ipod mobile"):i.macos()?p("macos desktop"):i.android()?i.androidTablet()?p("android tablet"):p("android mobile"):i.blackberry()?i.blackberryTablet()?p("blackberry tablet"):p("blackberry mobile"):i.windows()?i.windowsTablet()?p("windows tablet"):i.windowsPhone()?p("windows mobile"):p("windows desktop"):i.fxos()?i.fxosTablet()?p("fxos tablet"):p("fxos mobile"):i.meego()?p("meego mobile"):i.nodeWebkit()?p("node-webkit"):i.television()?p("television"):i.desktop()&&p("desktop"),i.cordova()&&p("cordova"),i.onChangeOrientation=function(e){"function"==typeof e&&a.push(e)};var b="resize";function y(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.selected,r=e.hasIncluded;if(void 0!==r&&r)return!0;if(n&&"all"===n[0])return!0;var o=[];return t&&t.result&&t.result.map(function(e){o=o.concat(N(e))}),t&&t.size&&t.result&&n&&n[0]&&(0,l.getItemsByProperty)(o,"id",n[0]).length};t.doesSelectionExist=w;var M=function(e,t){e((0,o.push)("/window/".concat(t,"/new")))};t.redirectToNewDocument=M;var k=function(e,t){return(e?"+":"-")+t};function T(e,t){return e?t.map(function(t){return O(e,t)}):t}function O(e,t){var n=Object.values(t.fieldsByName).map(function(t){return S(e[t.field],t)}).reduce(function(e,t){return e[t.field]=t,e},{});return Object.assign({},t,{fieldsByName:n})}function S(e,t){return e?(e.widgetType&&(t.widgetType=e.widgetType),t):t}function x(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=s.id,c=s.includedDocuments;t[l]=s,c&&x(c,t)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}function E(e,t,n){return e.map(function(e){var r=e.id,o=e.includedDocuments;o&&(e.includedDocuments=E(o,t,n));var i=t[r];return i?O(n,i):e})}function A(e,t){var n=[];return t.forEach(function(t){var r=e.findIndex(function(e){return e.id===t});-1!==r&&(e=e.delete(r),n.push(t))}),{rows:e,removedRows:n}}function C(e){var t=e.toRows,n=e.fromRows,r=e.columnInfosByFieldName,o=void 0===r?{}:r,i=e.changedIds;return n||i?n.length?{rows:E(t,x(n,{}),o),removedRows:[]}:A(t,i):{rows:t,removedRows:[]}}function L(e){return e?"modal":"master"}function P(e){return j((0,l.nullToEmptyStrings)(e))}function D(e){return e.match(u.TIME_REGEX_TEST)?(0,a.default)(e,"hh:mm"):e}function I(e){return e?a.default.isMoment(e)?e:(e=D(e),(0,a.default)(e)):""}function j(e){var t=["Date","ZonedDateTime","Time","Timestamp"];return Object.keys(e).reduce(function(n,r){var o=e[r],i=t.indexOf(o.widgetType)>-1;return n[r]=i&&o.value?f({},o,{value:I(o.value)}):o,n},{})}function R(e){var t=[];return e&&e.map(function(e){t=t.concat(N(e))}),t}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||[],o=[],i=f({},e,{indent:r});if(o=o.concat([i]),n&&(r[r.length-2]=!1),e.includedDocuments)for(var a=0;an;)o[n]=t[n++];return o},Ae=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Ce=function(e){var t,n,r,o,i,a,s=M(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=x(s);if(void 0!=f&&!k(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=_(s.length),o=Se(this,n);n>t;t++)o[t]=d?u(s[t],t):s[t];return o},Le=function(){for(var e=0,t=arguments.length,n=Se(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!G&&i(function(){pe.call(new G(1))}),De=function(){return pe.apply(Pe?de.call(Oe(this)):Oe(this),arguments)},Ie={copyWithin:function(e,t){return z.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Oe(this),arguments)},filter:function(e){return xe(this,Q(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Oe(this),arguments)},lastIndexOf:function(e){return ae.apply(Oe(this),arguments)},map:function(e){return we(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return le.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=b(e,r);return new(P(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,_((void 0===t?r:b(t,r))-o))}},je=function(e,t){return xe(this,de.call(Oe(this),e,t))},Re=function(e){Oe(this);var t=Te(arguments[1],1),n=this.length,r=M(e),o=_(r.length),i=0;if(o+t>n)throw F("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,Me)}(this,n,e)},enumerable:!0})};g?(h=n(function(e,n,r,o){u(e,h,c,"_d");var i,a,s,l,d=0,p=0;if(w(n)){if(!(n instanceof X||"ArrayBuffer"==(l=v(n))||"SharedArrayBuffer"==l))return ge in n?Ee(h,n):Ce.call(h,n);i=n,p=Te(r,t);var b=n.byteLength;if(void 0===o){if(b%t)throw F("Wrong length!");if((a=b-p)<0)throw F("Wrong length!")}else if((a=_(o)*t)+p>b)throw F("Wrong length!");s=a/t}else s=m(n),i=new X(a=s*t);for(f(e,"_d",{b:i,o:p,l:a,e:s,v:new V(i)});dt?1:e>=t?0:NaN},n=function(e){return 1===e.length&&(e=function(e){return function(n,r){return t(e(n),r)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}},r=n(t),o=r.right,i=r.left;function a(e,t){return[e,t]}var s=function(e){return null===e?NaN:+e},l=function(e,t){var n,r,o=e.length,i=0,a=-1,l=0,c=0;if(null==t)for(;++a1)return c/(i-1)},c=function(e,t){var n=l(e,t);return n?Math.sqrt(n):n},u=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)for(e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(r=Math.ceil(t-e+1));++s=0?(i>=b?10:i>=y?5:i>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=b?10:i>=y?5:i>=g?2:1)}function M(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=b?o*=10:i>=y?o*=5:i>=g&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return a+(l-a)*(o-i)}},O=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n},S=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},x=function(e){if(!(o=e.length))return[];for(var t=-1,n=S(e,E),r=new Array(n);++t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),U.hasOwnProperty(t)?{space:U[t],local:e}:e},V=function(e){var t=X(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===G&&t.documentElement.namespaceURI===G?t.createElement(e):t.createElementNS(n,e)}})(t)},K=0;function Q(){return new J}function J(){this._="@"+(++K).toString(36)}J.prototype=Q.prototype={constructor:J,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Z=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var $=document.documentElement;if(!$.matches){var ee=$.webkitMatchesSelector||$.msMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector;Z=function(e){return function(){return ee.call(this,e)}}}}var te=Z,ne={};if(e.event=null,"undefined"!=typeof document){var re=document.documentElement;"onmouseenter"in re||(ne={mouseenter:"mouseover",mouseleave:"mouseout"})}function oe(e,t,n){return e=ie(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ie(t,n,r){return function(o){var i=e.event;e.event=o;try{t.call(this,this.__data__,n,r)}finally{e.event=i}}}function ae(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;rt?1:e>=t?0:NaN}var Me=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function ke(e,t){return e.style.getPropertyValue(t)||Me(e).getComputedStyle(e,null).getPropertyValue(t)}function Te(e){return e.trim().split(/^|\s+/)}function Oe(e){return e.classList||new Se(e)}function Se(e){this._node=e,this._names=Te(e.getAttribute("class")||"")}function xe(e,t){for(var n=Oe(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Re=[null];function Ne(e,t){this._groups=e,this._parents=t}function ze(){return new Ne([[document.documentElement]],Re)}Ne.prototype=ze.prototype={constructor:Ne,select:function(e){"function"!=typeof e&&(e=pe(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=w&&(w=v+1);!(g=m[w])&&++w=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=we);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):ke(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Te(e+"");if(arguments.length<2){for(var r=Oe(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?se:ae,null==n&&(n=!1),r=0;r>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=it.exec(e))?ht(parseInt(t[1],16)):(t=at.exec(e))?new yt(t[1],t[2],t[3],1):(t=st.exec(e))?new yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lt.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=ct.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ut.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?ht(ft[e]):"transparent"===e?new yt(NaN,NaN,NaN,0):null}function ht(e){return new yt(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new yt(e,t,n,r)}function mt(e){return e instanceof $e||(e=pt(e)),e?new yt((e=e.rgb()).r,e.g,e.b,e.opacity):new yt}function bt(e,t,n,r){return 1===arguments.length?mt(e):new yt(e,t,n,null==r?1:r)}function yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wt(e,t,n,r)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wt)return new wt(e.h,e.s,e.l,e.opacity);if(e instanceof $e||(e=pt(e)),!e)return new wt;if(e instanceof wt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new wt(a,s,l,e.opacity)}(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Je($e,pt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Je(yt,bt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Je(wt,vt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new wt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new wt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yt(Mt(e>=240?e-240:e+120,o,r),Mt(e,o,r),Mt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var kt=Math.PI/180,Tt=180/Math.PI,Ot=.95047,St=1,xt=1.08883,Et=4/29,At=6/29,Ct=3*At*At,Lt=At*At*At;function Pt(e){if(e instanceof It)return new It(e.l,e.a,e.b,e.opacity);if(e instanceof Wt){var t=e.h*kt;return new It(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof yt||(e=mt(e));var n=zt(e.r),r=zt(e.g),o=zt(e.b),i=jt((.4124564*n+.3575761*r+.1804375*o)/Ot),a=jt((.2126729*n+.7151522*r+.072175*o)/St),s=jt((.0193339*n+.119192*r+.9503041*o)/xt);return new It(116*a-16,500*(i-a),200*(a-s),e.opacity)}function Dt(e,t,n,r){return 1===arguments.length?Pt(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jt(e){return e>Lt?Math.pow(e,1/3):e/Ct+Et}function Rt(e){return e>At?e*e*e:Ct*(e-Et)}function Nt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);e instanceof It||(e=Pt(e));var t=Math.atan2(e.b,e.a)*Tt;return new Wt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wt(e,t,n,null==r?1:r)}function Wt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Je(It,Dt,Ze($e,{brighter:function(e){return new It(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new It(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=St*Rt(e),t=Ot*Rt(t),n=xt*Rt(n),new yt(Nt(3.2404542*t-1.5371385*e-.4985314*n),Nt(-.969266*t+1.8760108*e+.041556*n),Nt(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Je(Wt,qt,Ze($e,{brighter:function(e){return new Wt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Wt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Pt(this).rgb()}}));var Ht=-.14861,Bt=1.78277,Ft=-.29227,Yt=-.90649,Gt=1.97294,Ut=Gt*Yt,Xt=Gt*Bt,Vt=Bt*Ft-Yt*Ht;function Kt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Qt)return new Qt(e.h,e.s,e.l,e.opacity);e instanceof yt||(e=mt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Vt*r+Ut*t-Xt*n)/(Vt+Ut-Xt),i=r-o,a=(Gt*(n-o)-Ft*i)/Yt,s=Math.sqrt(a*a+i*i)/(Gt*o*(1-o)),l=s?Math.atan2(a,i)*Tt-120:NaN;return new Qt(l<0?l+360:l,s,o,e.opacity)}(e):new Qt(e,t,n,null==r?1:r)}function Qt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jt(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Je(Qt,Kt,Ze($e,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new Qt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Qt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*kt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new yt(255*(t+n*(Ht*r+Bt*o)),255*(t+n*(Ft*r+Yt*o)),255*(t+n*(Gt*r)),this.opacity)}}));var Zt=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r180||n<-180?n-360*Math.round(n/360):n):en(isNaN(e)?t:e)}function rn(e){return 1==(e=+e)?on:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):en(isNaN(t)?n:t)}}function on(e,t){var n=t-e;return n?tn(e,n):en(isNaN(e)?t:e)}var an=function e(t){var n=rn(t);function r(e,t){var r=n((e=bt(e)).r,(t=bt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=on(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function sn(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;ni&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:mn(n,r)})),i=gn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:mn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:mn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:mn(e,n)},{i:s-2,x:mn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--Fn}function rr(){Vn=(Xn=Qn.now())+Kn,Fn=Yn=0;try{nr()}finally{Fn=0,function(){for(var e,t,n=qn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:qn=t);Wn=e,ir(r)}(),Vn=0}}function or(){var e=Qn.now(),t=e-Xn;t>Un&&(Kn-=t,Xn=e)}function ir(e){if(!Fn){Yn&&(Yn=clearTimeout(Yn));var t=e-Vn;t>24?(e<1/0&&(Yn=setTimeout(rr,t)),Gn&&(Gn=clearInterval(Gn))):(Gn||(Xn=Vn,Gn=setInterval(or,Un)),Fn=1,Jn(rr))}}er.prototype=tr.prototype={constructor:er,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Zn():+n)+(null==t?0:+t),this._next||Wn===this||(Wn?Wn._next=this:qn=this,Wn=this),this._call=e,this._time=n,ir()},stop:function(){this._call&&(this._call=null,this._time=1/0,ir())}};var ar=function(e,t,n){var r=new er;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},sr=H("start","end","interrupt"),lr=[],cr=0,ur=1,dr=2,fr=3,pr=4,hr=5,_r=6,mr=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(l){var c,u,d,f;if(n.state!==ur)return s();for(c in o)if((f=o[c]).name===n.name){if(f.state===fr)return ar(i);f.state===pr?(f.state=_r,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+ccr)throw new Error("too late");return n}function yr(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>dr)throw new Error("too late");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("too late");return n}var vr=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>dr&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?br:yr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=X(e),r="transform"===n?En:Mr;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttribute(e)}})(n,r,wr(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o;return function(){var i=this.getAttributeNS(e.space,e.local);return i===n?null:i===r?o:o=t(r=i,n)}}:function(e,t,n){var r,o;return function(){var i=this.getAttribute(e);return i===n?null:i===r?o:o=t(r=i,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=X(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?xn:Mr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=ke(this,e),a=(this.style.removeProperty(e),ke(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,o,i;return function(){var a=ke(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=ke(this,e)),a===s?null:a===r&&s===o?i:i=t(r=a,o=s)}}(e,r,wr(this,"style."+e,t)):function(e,t,n){var r,o;return function(){var i=ke(this,e);return i===n?null:i===r?o:o=t(r=i,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,o=t.apply(r,arguments);return o&&function(t){r.style.setProperty(e,o(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=gr(this.node(),n).tween,i=0,a=o.length;i0&&(r=i-h),k<0?f=p-_:k>0&&(a=s-_),w=fo,R.attr("cursor",yo.selection),q());break;default:return}co()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:L&&(b=y=L=!1,q());break;case 18:w===ho&&(M<0?u=d:M>0&&(r=i),k<0?f=p:k>0&&(a=s),w=po,q());break;case 32:w===fo&&(e.event.altKey?(M&&(u=d-h*M,r=i+h*M),k&&(f=p-_*k,a=s+_*k),w=ho):(M<0?u=d:M>0&&(r=i),k<0?f=p:k>0&&(a=s),w=po),R.attr("cursor",yo[v]),q());break;default:return}co()},!0).on("mousemove.brush",z,!0).on("mouseup.brush",W,!0);Fe(e.event.view)}lo(),vr(g),l.call(g),I.start()}function z(){var e=de(g);!L||b||y||(Math.abs(e[0]-D[0])>Math.abs(e[1]-D[1])?y=!0:b=!0),D=e,m=!0,co(),q()}function q(){var e;switch(h=D[0]-P[0],_=D[1]-P[1],w){case fo:case uo:M&&(h=Math.max(x-r,Math.min(A-u,h)),i=r+h,d=u+h),k&&(_=Math.max(E-a,Math.min(C-f,_)),s=a+_,p=f+_);break;case po:M<0?(h=Math.max(x-r,Math.min(A-r,h)),i=r+h,d=u):M>0&&(h=Math.max(x-u,Math.min(A-u,h)),i=r,d=u+h),k<0?(_=Math.max(E-a,Math.min(C-a,_)),s=a+_,p=f):k>0&&(_=Math.max(E-f,Math.min(C-f,_)),s=a,p=f+_);break;case ho:M&&(i=Math.max(x,Math.min(A,r-h*M)),d=Math.max(x,Math.min(A,u+h*M))),k&&(s=Math.max(E,Math.min(C,a-_*k)),p=Math.max(E,Math.min(C,f+_*k)))}d1e-6)if(Math.abs(u*s-l*c)>1e-6&&o){var f=n-i,p=r-a,h=s*s+l*l,_=f*f+p*p,m=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((No-Math.acos((h+d-_)/(2*m*b)))/2),g=y/b,v=y/m;Math.abs(g-1)>1e-6&&(this._+="L"+(e+g*c)+","+(t+g*u)),this._+="A"+o+","+o+",0,0,"+ +(u*f>c*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%zo+zo),d>qo?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=No)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},Xo.prototype=Vo.prototype={constructor:Xo,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var ei=Vo.prototype;function ti(e,t){var n=new $o;if(e instanceof $o)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r=l)return a;if(o)return o=!1,i;var t,r=c;if(34===e.charCodeAt(r)){for(var s=r;s++=(i=(_+b)/2))?_=i:b=i,(u=n>=(a=(m+y)/2))?m=a:y=a,o=p,!(p=p[d=u<<1|c]))return o[d]=h,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(c=t>=(i=(_+b)/2))?_=i:b=i,(u=n>=(a=(m+y)/2))?m=a:y=a}while((d=u<<1|c)==(f=(l>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var bi=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function yi(e){return e[0]}function gi(e){return e[1]}function vi(e,t,n){var r=new wi(null==t?yi:t,null==n?gi:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function wi(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function Mi(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ki=vi.prototype=wi.prototype;function Ti(e){return e.x+e.vx}function Oi(e){return e.y+e.vy}function Si(e){return e.index}function xi(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ei(e){return e.x}function Ai(e){return e.y}ki.copy=function(){var e,t,n=new wi(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Mi(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=Mi(t));return n},ki.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return mi(this.cover(t,n),t,n,e)},ki.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;nu&&(u=r),od&&(d=o));for(ue||e>o||r>t||t>i))return this;var a,s,l=o-n,c=this._root;switch(s=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[s]=c,c=a}while(i=r+(l*=2),e>(o=n+l)||t>i);break;case 1:do{(a=new Array(4))[s]=c,c=a}while(i=r+(l*=2),(n=o-l)>e||t>i);break;case 2:do{(a=new Array(4))[s]=c,c=a}while(r=i-(l*=2),e>(o=n+l)||r>t);break;case 3:do{(a=new Array(4))[s]=c,c=a}while(r=i-(l*=2),(n=o-l)>e||r>t)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},ki.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},ki.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ki.find=function(e,t,n){var r,o,i,a,s,l,c,u=this._x0,d=this._y0,f=this._x1,p=this._y1,h=[],_=this._root;for(_&&h.push(new bi(_,u,d,f,p)),null==n?n=1/0:(u=e-n,d=t-n,f=e+n,p=t+n,n*=n);l=h.pop();)if(!(!(_=l.node)||(o=l.x0)>f||(i=l.y0)>p||(a=l.x1)=b)<<1|e>=m)&&(l=h[h.length-1],h[h.length-1]=h[h.length-1-c],h[h.length-1-c]=l)}else{var y=e-+this._x.call(null,_.data),g=t-+this._y.call(null,_.data),v=y*y+g*g;if(v=(s=(h+m)/2))?h=s:m=s,(u=a>=(l=(_+b)/2))?_=l:b=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},ki.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},Ii=function(e){return(e=Di(Math.abs(e)))?e[1]:NaN},ji=function(e,t){var n=Di(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Ri={"":function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ji(100*e,t)},r:ji,s:function(e,t){var n=Di(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Ci=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Di(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ni=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function zi(e){return new qi(e)}function qi(e){if(!(t=Ni.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],l=!!t[7],c=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(l=!0,u="g"):Ri[u]||(u=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=l,this.precision=c,this.type=u}zi.prototype=qi.prototype,qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Wi,Hi=function(e){return e},Bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Fi=function(e){var t=e.grouping&&e.thousands?function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}(e.grouping,e.thousands):Hi,n=e.currency,r=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Hi,i=e.percent||"%";function a(e){var a=(e=zi(e)).fill,s=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.type,_="$"===c?n[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",m="$"===c?n[1]:/[%p]/.test(h)?i:"",b=Ri[h],y=!h||/[defgprs%]/.test(h);function g(e){var n,i,c,g=_,v=m;if("c"===h)v=b(e)+v,e="";else{var w=(e=+e)<0;if(e=b(Math.abs(e),p),w&&0==+e&&(w=!1),g=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+g,v=v+("s"===h?Bi[8+Ci/3]:"")+(w&&"("===l?")":""),y)for(n=-1,i=e.length;++n(c=e.charCodeAt(n))||c>57){v=(46===c?r+e.slice(n+1):e.slice(n))+v,e=e.slice(0,n);break}}f&&!u&&(e=t(e,1/0));var M=g.length+e.length+v.length,k=M>1)+g+e+v+k.slice(M);break;default:e=k+g+e+v}return o(e)}return p=null==p?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),g.toString=function(){return e+""},g}return{format:a,formatPrefix:function(e,t){var n=a(((e=zi(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ii(t)/3))),o=Math.pow(10,-r),i=Bi[8+r/3];return function(e){return n(o*e)+i}}}};function Yi(t){return Wi=Fi(t),e.format=Wi.format,e.formatPrefix=Wi.formatPrefix,Wi}Yi({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Gi=function(e){return Math.max(0,-Ii(Math.abs(e)))},Ui=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ii(t)/3)))-Ii(Math.abs(e)))},Xi=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ii(t)-Ii(e))+1},Vi=function(){return new Ki};function Ki(){this.reset()}Ki.prototype={constructor:Ki,reset:function(){this.s=this.t=0},add:function(e){Ji(Qi,e,this.t),Ji(this,Qi.s,this.s),this.s?this.t+=Qi.t:this.s=Qi.t},valueOf:function(){return this.s}};var Qi=new Ki;function Ji(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var Zi=1e-6,$i=Math.PI,ea=$i/2,ta=$i/4,na=2*$i,ra=180/$i,oa=$i/180,ia=Math.abs,aa=Math.atan,sa=Math.atan2,la=Math.cos,ca=Math.ceil,ua=Math.exp,da=Math.log,fa=Math.pow,pa=Math.sin,ha=Math.sign||function(e){return e>0?1:e<0?-1:0},_a=Math.sqrt,ma=Math.tan;function ba(e){return e>1?0:e<-1?$i:Math.acos(e)}function ya(e){return e>1?ea:e<-1?-ea:Math.asin(e)}function ga(e){return(e=pa(e/2))*e}function va(){}function wa(e,t){e&&ka.hasOwnProperty(e.type)&&ka[e.type](e,t)}var Ma={Feature:function(e,t){wa(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=la(t),a=pa(t),s=Ca*a,l=Aa*i+s*la(o),c=s*r*pa(o);Wa.add(sa(c,l)),Ea=e,Aa=i,Ca=a}function Xa(e){return[sa(e[1],e[0]),ya(e[2])]}function Va(e){var t=e[0],n=e[1],r=la(n);return[r*la(t),r*pa(t),pa(n)]}function Ka(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Qa(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ja(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Za(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function $a(e){var t=_a(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var es,ts,ns=Vi(),rs={point:os,lineStart:as,lineEnd:ss,polygonStart:function(){rs.point=ls,rs.lineStart=cs,rs.lineEnd=us,ns.reset(),Ba.polygonStart()},polygonEnd:function(){Ba.polygonEnd(),rs.point=os,rs.lineStart=as,rs.lineEnd=ss,Wa<0?(La=-(Da=180),Pa=-(Ia=90)):ns>Zi?Ia=90:ns<-Zi&&(Pa=-90),ts[0]=La,ts[1]=Da}};function os(e,t){es.push(ts=[La=e,Da=e]),tIa&&(Ia=t)}function is(e,t){var n=Va([e*oa,t*oa]);if(za){var r=Qa(za,n),o=[r[1],-r[0],0],i=Qa(o,r);$a(i),i=Xa(i);var a,s=e-ja,l=s>0?1:-1,c=i[0]*ra*l,u=ia(s)>180;u^(l*jaIa&&(Ia=a):u^(l*ja<(c=(c+360)%360-180)&&cIa&&(Ia=t)),u?eds(La,Da)&&(Da=e):ds(e,Da)>ds(La,Da)&&(La=e):Da>=La?(eDa&&(Da=e)):e>ja?ds(La,e)>ds(La,Da)&&(Da=e):ds(e,Da)>ds(La,Da)&&(La=e)}else es.push(ts=[La=e,Da=e]);tIa&&(Ia=t),za=n,ja=e}function as(){rs.point=is}function ss(){ts[0]=La,ts[1]=Da,rs.point=os,za=null}function ls(e,t){if(za){var n=e-ja;ns.add(ia(n)>180?n+(n>0?360:-360):n)}else Ra=e,Na=t;Ba.point(e,t),is(e,t)}function cs(){Ba.lineStart()}function us(){ls(Ra,Na),Ba.lineEnd(),ia(ns)>Zi&&(La=-(Da=180)),ts[0]=La,ts[1]=Da,za=null}function ds(e,t){return(t-=e)<0?t+360:t}function fs(e,t){return e[0]-t[0]}function ps(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t$i?e-na:e<-$i?e+na:e,t]}function Ys(e,t,n){return(e%=na)?t||n?Bs(Us(e),Xs(t,n)):Us(e):t||n?Xs(t,n):Fs}function Gs(e){return function(t,n){return[(t+=e)>$i?t-na:t<-$i?t+na:t,n]}}function Us(e){var t=Gs(e);return t.invert=Gs(-e),t}function Xs(e,t){var n=la(e),r=pa(e),o=la(t),i=pa(t);function a(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,c=pa(t),u=c*n+s*r;return[sa(l*o-u*i,s*n-c*r),ya(u*o+l*i)]}return a.invert=function(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,c=pa(t),u=c*o-l*i;return[sa(l*o+c*i,s*n+u*r),ya(u*n-s*r)]},a}Fs.invert=Fs;var Vs=function(e){function t(t){return(t=e(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t}return e=Ys(e[0]*oa,e[1]*oa,e.length>2?e[2]*oa:0),t.invert=function(t){return(t=e.invert(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t},t};function Ks(e,t,n,r,o,i){if(n){var a=la(t),s=pa(t),l=r*n;null==o?(o=t+r*na,i=t-l/2):(o=Qs(a,o),i=Qs(a,i),(r>0?oi)&&(o+=r*na));for(var c,u=o;r>0?u>i:u1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Zs=function(e,t,n,r,o,i){var a,s=e[0],l=e[1],c=t[0],u=t[1],d=0,f=1,p=c-s,h=u-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>d&&(d=a)}else if(p>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=i-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a0&&(e[0]=s+d*p,e[1]=l+d*h),f<1&&(t[0]=s+f*p,t[1]=l+f*h),!0}}}}},$s=function(e,t){return ia(e[0]-t[0])=0;--i)o.point((u=c[i])[0],u[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,c=f.z,p=!p}while(!f.v);o.lineEnd()}}};function nl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(i[0],i[1])}function a(r,o){return ia(r[0]-e)0?0:3:ia(r[0]-n)0?2:1:ia(r[1]-t)0?1:0:o>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,d,f,p,h,_,m,b,y,g=a,v=Js(),w={point:M,lineStart:function(){w.point=k,c&&c.push(u=[]),b=!0,m=!1,h=_=NaN},lineEnd:function(){l&&(k(d,f),p&&m&&v.rejoin(),l.push(v.result())),w.point=M,m&&g.lineEnd()},polygonStart:function(){g=v,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=c.length;nr&&(f-i)*(r-a)>(p-a)*(e-i)&&++t:p<=r&&(f-i)*(r-a)<(p-a)*(e-i)&&--t;return t}(),n=y&&t,o=(l=O(l)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&tl(l,s,t,i,a),a.polygonEnd()),g=a,l=c=u=null}};function M(e,t){o(e,t)&&g.point(e,t)}function k(i,a){var s=o(i,a);if(c&&u.push([i,a]),b)d=i,f=a,p=s,b=!1,s&&(g.lineStart(),g.point(i,a));else if(s&&m)g.point(i,a);else{var l=[h=Math.max(ol,Math.min(rl,h)),_=Math.max(ol,Math.min(rl,_))],v=[i=Math.max(ol,Math.min(rl,i)),a=Math.max(ol,Math.min(rl,a))];Zs(l,v,e,t,n,r)?(m||(g.lineStart(),g.point(l[0],l[1])),g.point(v[0],v[1]),s||g.lineEnd(),y=!1):s&&(g.lineStart(),g.point(i,a),y=!1)}h=i,_=a,m=s}return w}}var al,sl,ll,cl=Vi(),ul=function(e,t){var n=t[0],r=t[1],o=[pa(n),-la(n),0],i=0,a=0;cl.reset();for(var s=0,l=e.length;s=0?1:-1,T=k*M,O=T>$i,S=h*v;if(cl.add(sa(S*k*pa(T),_*w+S*la(T))),i+=O?M+k*na:M,O^f>=n^y>=n){var x=Qa(Va(d),Va(b));$a(x);var E=Qa(o,x);$a(E);var A=(O^M>=0?-1:1)*ya(E[2]);(r>A||r===A&&(x[0]||x[1]))&&(a+=O^M>=0?1:-1)}}return(i<-Zi||iZi}).map(l)).concat(m(ca(i/p)*p,o,p).filter(function(e){return ia(e%_)>Zi}).map(c))}return y.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(d(a).slice(1),u(n).reverse().slice(1),d(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(b)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),y.precision(b)):[[t,i],[e,o]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(h=+e[0],_=+e[1],y):[h,_]},y.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],y):[f,p]},y.precision=function(f){return arguments.length?(b=+f,l=El(i,o,90),c=Al(t,e,b),u=El(s,a,90),d=Al(r,n,b),y):b},y.extentMajor([[-180,-90+Zi],[180,90-Zi]]).extentMinor([[-180,-80-Zi],[180,80+Zi]])}var Ll,Pl,Dl,Il,jl=function(e){return e},Rl=Vi(),Nl=Vi(),zl={point:va,lineStart:va,lineEnd:va,polygonStart:function(){zl.lineStart=ql,zl.lineEnd=Bl},polygonEnd:function(){zl.lineStart=zl.lineEnd=zl.point=va,Rl.add(ia(Nl)),Nl.reset()},result:function(){var e=Rl/2;return Rl.reset(),e}};function ql(){zl.point=Wl}function Wl(e,t){zl.point=Hl,Ll=Dl=e,Pl=Il=t}function Hl(e,t){Nl.add(Il*e-Dl*t),Dl=e,Il=t}function Bl(){Hl(Ll,Pl)}var Fl,Yl,Gl,Ul,Xl=1/0,Vl=Xl,Kl=-Xl,Ql=Kl,Jl={point:function(e,t){eKl&&(Kl=e),tQl&&(Ql=t)},lineStart:va,lineEnd:va,polygonStart:va,polygonEnd:va,result:function(){var e=[[Xl,Vl],[Kl,Ql]];return Kl=Ql=-(Vl=Xl=1/0),e}},Zl=0,$l=0,ec=0,tc=0,nc=0,rc=0,oc=0,ic=0,ac=0,sc={point:lc,lineStart:cc,lineEnd:fc,polygonStart:function(){sc.lineStart=pc,sc.lineEnd=hc},polygonEnd:function(){sc.point=lc,sc.lineStart=cc,sc.lineEnd=fc},result:function(){var e=ac?[oc/ac,ic/ac]:rc?[tc/rc,nc/rc]:ec?[Zl/ec,$l/ec]:[NaN,NaN];return Zl=$l=ec=tc=nc=rc=oc=ic=ac=0,e}};function lc(e,t){Zl+=e,$l+=t,++ec}function cc(){sc.point=uc}function uc(e,t){sc.point=dc,lc(Gl=e,Ul=t)}function dc(e,t){var n=e-Gl,r=t-Ul,o=_a(n*n+r*r);tc+=o*(Gl+e)/2,nc+=o*(Ul+t)/2,rc+=o,lc(Gl=e,Ul=t)}function fc(){sc.point=lc}function pc(){sc.point=_c}function hc(){mc(Fl,Yl)}function _c(e,t){sc.point=mc,lc(Fl=Gl=e,Yl=Ul=t)}function mc(e,t){var n=e-Gl,r=t-Ul,o=_a(n*n+r*r);tc+=o*(Gl+e)/2,nc+=o*(Ul+t)/2,rc+=o,oc+=(o=Ul*e-Gl*t)*(Gl+e),ic+=o*(Ul+t),ac+=3*o,lc(Gl=e,Ul=t)}function bc(e){this._context=e}bc.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,na)}},result:va};var yc,gc,vc,wc,Mc,kc=Vi(),Tc={point:va,lineStart:function(){Tc.point=Oc},lineEnd:function(){yc&&Sc(gc,vc),Tc.point=va},polygonStart:function(){yc=!0},polygonEnd:function(){yc=null},result:function(){var e=+kc;return kc.reset(),e}};function Oc(e,t){Tc.point=Sc,gc=wc=e,vc=Mc=t}function Sc(e,t){wc-=e,Mc-=t,kc.add(_a(wc*wc+Mc*Mc)),wc=e,Mc=t}function xc(){this._string=[]}function Ec(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}xc.prototype={_radius:4.5,_circle:Ec(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Ec(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Ac=function(e,t,n,r){return function(o,i){var a,s,l,c=t(i),u=o.invert(r[0],r[1]),d=Js(),f=t(d),p=!1,h={point:_,lineStart:b,lineEnd:y,polygonStart:function(){h.point=g,h.lineStart=v,h.lineEnd=w,s=[],a=[]},polygonEnd:function(){h.point=_,h.lineStart=b,h.lineEnd=y,s=O(s);var e=ul(a,u);s.length?(p||(i.polygonStart(),p=!0),tl(s,Lc,e,n,i)):e&&(p||(i.polygonStart(),p=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),p&&(i.polygonEnd(),p=!1),s=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function _(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);c.point(n[0],n[1])}function b(){h.point=m,c.lineStart()}function y(){h.point=_,c.lineEnd()}function g(e,t){l.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),l=[]}function w(){g(l[0][0],l[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),c=d.result(),u=c.length;if(l.pop(),a.push(l),l=null,u)if(1&o){if(n=c[0],(t=n.length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e1&&2&o&&c.push(c.pop().concat(c.shift())),s.push(c.filter(Cc))}return h}};function Cc(e){return e.length>1}function Lc(e,t){return((e=e.x)[0]<0?e[1]-ea-Zi:ea-e[1])-((t=t.x)[0]<0?t[1]-ea-Zi:ea-t[1])}var Pc=Ac(function(){return!0},function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?$i:-$i,l=ia(i-n);ia(l-$i)0?ea:-ea),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&l>=$i&&(ia(n-o)Zi?aa((pa(t)*(i=la(r))*pa(n)-pa(r)*(o=la(t))*pa(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var o;if(null==e)o=n*ea,r.point(-$i,o),r.point(0,o),r.point($i,o),r.point($i,0),r.point($i,-o),r.point(0,-o),r.point(-$i,-o),r.point(-$i,0),r.point(-$i,o);else if(ia(e[0]-t[0])>Zi){var i=e[0]0,o=ia(n)>Zi;function i(e,t){return la(e)*la(t)>n}function a(e,t,r){var o=Va(e),i=Va(t),a=[1,0,0],s=Qa(o,i),l=Ka(s,s),c=s[0],u=l-c*c;if(!u)return!r&&e;var d=n*l/u,f=-n*c/u,p=Qa(a,s),h=Za(a,d),_=Za(s,f);Ja(h,_);var m=p,b=Ka(h,m),y=Ka(m,m),g=b*b-y*(Ka(h,h)-1);if(!(g<0)){var v=_a(g),w=Za(m,(-b-v)/y);if(Ja(w,h),w=Xa(w),!r)return w;var M,k=e[0],T=t[0],O=e[1],S=t[1];T0^w[1]<(ia(w[0]-k)$i^(k<=w[0]&&w[0]<=T)){var C=Za(m,(-b+v)/y);return Ja(C,h),[w,Xa(C)]}}}function s(t,n){var o=r?e:$i-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Ac(i,function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,f){var p,h=[d,f],_=i(d,f),m=r?_?0:s(d,f):_?s(d+(d<0?$i:-$i),f):0;if(!t&&(c=l=_)&&e.lineStart(),_!==l&&(!(p=a(t,h))||$s(t,p)||$s(h,p))&&(h[0]+=Zi,h[1]+=Zi,_=i(h[0],h[1])),_!==l)u=0,_?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^_){var b;m&n||!(b=a(h,t,!0))||(u=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!_||t&&$s(t,h)||e.point(h[0],h[1]),t=h,l=_,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},function(n,r,o,i){Ks(i,e,t,o,n,r)},r?[0,-e]:[-$i,e-$i])};function Ic(e){return function(t){var n=new jc;for(var r in e)n[r]=e[r];return n.stream=t,n}}function jc(){}function Rc(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),qa(n,e.stream(Jl));var a=Jl.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),l=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,c=+t[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*s).translate([l,c])}function Nc(e,t,n){return Rc(e,[[0,0],t],n)}jc.prototype={constructor:jc,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var zc=16,qc=la(30*oa),Wc=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,l,c,u,d,f,p,h,_,m){var b=c-r,y=u-o,g=b*b+y*y;if(g>4*t&&_--){var v=a+f,w=s+p,M=l+h,k=_a(v*v+w*w+M*M),T=ya(M/=k),O=ia(ia(M)-1)t||ia((b*A+y*C)/g-.5)>.3||a*f+s*p+l*h2?e[2]%360*oa:0,E()):[m*ra,b*ra,y*ra]},O.precision=function(e){return arguments.length?(T=Wc(x,k=e*e),A()):_a(k)},O.fitExtent=function(e,t){return Rc(O,e,t)},O.fitSize=function(e,t){return Nc(O,e,t)},function(){return t=e.apply(this,arguments),O.invert=t.invert&&S,E()}}function Yc(e){var t=0,n=$i/3,r=Fc(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*oa,n=e[1]*oa):[t*ra,n*ra]},o}function Gc(e,t){var n=pa(e),r=(n+pa(t))/2;if(ia(r)0?t<-ea+Zi&&(t=-ea+Zi):t>ea-Zi&&(t=ea-Zi);var n=o/fa(eu(t),r);return[n*pa(r*e),o-n*la(r*e)]}return i.invert=function(e,t){var n=o-t,i=ha(r)*_a(e*e+n*n);return[sa(e,ia(n))/r*ha(n),2*aa(fa(o/i,1/r))-ea]},i}function nu(e,t){return[e,t]}function ru(e,t){var n=la(e),r=e===t?pa(e):(n-la(t))/(t-e),o=n/r+e;if(ia(r)=0;)t+=n[r].value;else t=1;e.value=t}function pu(e,t){var n,r,o,i,a,s=new bu(e),l=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=hu);n=c.pop();)if(l&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)c.push(r=n.children[i]=new bu(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(mu)}function hu(e){return e.children}function _u(e){e.data=e.data.data}function mu(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bu(e){this.data=e,this.depth=this.height=0,this.parent=null}Jc.invert=Kc(function(e){return e}),Zc.invert=function(e,t){return[e,2*aa(ua(t))-ea]},nu.invert=nu,ou.invert=Kc(aa),au.invert=Kc(ya),su.invert=Kc(function(e){return 2*aa(e)}),lu.invert=function(e,t){return[-t,2*aa(ua(e))-ea]},bu.prototype=pu.prototype={constructor:bu,count:function(){return this.eachAfter(fu)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return pu(this).eachBefore(_u)}};var yu=Array.prototype.slice,gu=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(yu.call(e))).length,i=[];r0&&n*n>r*r+o*o}function ku(e,t){for(var n=0;nn*n+r*r}function Au(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function Cu(e){this._=e,this.next=null,this.previous=null}function Lu(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,l,c,u,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;xu(n,t,r=e[2]),t=new Cu(t),n=new Cu(n),r=new Cu(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),m=u*u*_,(p=Math.max(f/m,m/d))>h){u-=s;break}h=p}b.push(a={value:u,dice:l1?t:1)},n}($u),nd=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,c,u,d=-1,f=a.length,p=e.value;++d1?t:1)},n}($u),rd=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function od(e,t){return e[0]-t[0]||e[1]-t[1]}function id(e){for(var t=e.length,n=[0,1],r=2,o=2;o1&&rd(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var ad=[].slice,sd={};function ld(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function cd(e){if(!e._start)try{!function(e){for(;e._start=e._waiting&&e._active=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,fd(e)}function fd(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function pd(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new ld(e)}ld.prototype=pd.prototype={constructor:ld,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=ad.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),cd(this),this},abort:function(){return null==this._error&&dd(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},fd(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,fd(this),this}};var hd=function(){return Math.random()},_d=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(hd),md=function e(t){function n(e,n){var r,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var i;if(null!=r)i=r,r=null;else do{r=2*t()-1,i=2*t()-1,o=r*r+i*i}while(!o||o>1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(hd),bd=function e(t){function n(){var e=md.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(hd),yd=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(o)try{t=o.call(n,l)}catch(e){return void a.call("error",n,e)}else t=l;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=f:l.onreadystatechange=function(e){l.readyState>3&&f(e)},l.onprogress=function(e){a.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s.get(e):(null==t?s.remove(e):s.set(e,t+""),n)},mimeType:function(e){return arguments.length?(r=null==e?null:e+"",n):r},responseType:function(e){return arguments.length?(i=e,n):i},timeout:function(e){return arguments.length?(d=+e,n):d},user:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},password:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},response:function(e){return o=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,o,f){return l.open(t,e,!0,c,u),null==r||s.has("accept")||s.set("accept",r+",*/*"),l.setRequestHeader&&s.each(function(e,t){l.setRequestHeader(t,e)}),null!=r&&l.overrideMimeType&&l.overrideMimeType(r),null!=i&&(l.responseType=i),d>0&&(l.timeout=d),null==f&&"function"==typeof o&&(f=o,o=null),null!=f&&1===f.length&&(f=function(e){return function(t,n){e(null==t?n:null)}}(f)),null!=f&&n.on("error",f).on("load",function(e){f(null,e)}),a.call("beforesend",n,l),l.send(null==o?null:o),n},abort:function(){return l.abort(),n},on:function(){var e=a.on.apply(a,arguments);return e===a?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n},Md=function(e,t){return function(n,r){var o=wd(n).mimeType(e).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return o.get(r)}return o}},kd=Md("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),Td=Md("application/json",function(e){return JSON.parse(e.responseText)}),Od=Md("text/plain",function(e){return e.responseText}),Sd=Md("application/xml",function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}),xd=function(e,t){return function(n,r,o){arguments.length<3&&(o=r,r=null);var i=wd(n).mimeType(e);return i.row=function(e){return arguments.length?i.response(function(e,t){return function(n){return e(n.responseText,t)}}(t,r=e)):r},i.row(r),o?i.get(o):i}},Ed=xd("text/csv",ii),Ad=xd("text/tab-separated-values",ui),Cd=Array.prototype,Ld=Cd.map,Pd=Cd.slice,Dd={name:"implicit"};function Id(e){var t=Vo(),n=[],r=Dd;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Dd)return r;t.set(i,a=n.push(o))}return e[(a-1)%e.length]}return e=null==e?[]:Pd.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Vo();for(var r,i,a=-1,s=e.length;++a2?Hd:Wd,r=o=null,u}function u(t){return(r||(r=n(i,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(o||(o=n(a,i,qd,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(i=Ld.call(e,Nd),c()):i.slice()},u.range=function(e){return arguments.length?(a=Pd.call(e),c()):a.slice()},u.rangeRound=function(e){return a=Pd.call(e),s=Mn,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var Yd=function(t,n,r){var o,i=t[0],a=t[t.length-1],s=M(i,a,null==n?10:n);switch((r=zi(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(a));return null!=r.precision||isNaN(o=Ui(s,l))||(r.precision=o),e.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Xi(s,Math.max(Math.abs(i),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Gi(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)};function Gd(e){var t=e.domain;return e.ticks=function(e){var n=t();return v(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Yd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l0?(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,r=w(s,l,n)):r<0&&(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,r=w(s,l,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}var Ud=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0))return a;do{a.push(new Date(+n))}while(t(n,i),e(n),n=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return tf.setTime(+t),nf.setTime(+r),e(tf),e(nf),Math.floor(n(tf,nf))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var of=rf(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});of.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rf(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):of:null};var af=of.range,sf=6e4,lf=6048e5,cf=rf(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),uf=cf.range,df=rf(function(e){e.setTime(Math.floor(e/sf)*sf)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getMinutes()}),ff=df.range,pf=rf(function(e){var t=e.getTimezoneOffset()*sf%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),hf=pf.range,_f=rf(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/864e5},function(e){return e.getDate()-1}),mf=_f.range;function bf(e){return rf(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/lf})}var yf=bf(0),gf=bf(1),vf=bf(2),wf=bf(3),Mf=bf(4),kf=bf(5),Tf=bf(6),Of=yf.range,Sf=gf.range,xf=vf.range,Ef=wf.range,Af=Mf.range,Cf=kf.range,Lf=Tf.range,Pf=rf(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Df=Pf.range,If=rf(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});If.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var jf=If.range,Rf=rf(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getUTCMinutes()}),Nf=Rf.range,zf=rf(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),qf=zf.range,Wf=rf(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Hf=Wf.range;function Bf(e){return rf(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/lf})}var Ff=Bf(0),Yf=Bf(1),Gf=Bf(2),Uf=Bf(3),Xf=Bf(4),Vf=Bf(5),Kf=Bf(6),Qf=Ff.range,Jf=Yf.range,Zf=Gf.range,$f=Uf.range,ep=Xf.range,tp=Vf.range,np=Kf.range,rp=rf(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),op=rp.range,ip=rf(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ip.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var ap=ip.range;function sp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function lp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cp(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function up(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=yp(o),u=gp(o),d=yp(i),f=gp(i),p=yp(a),h=gp(a),_=yp(s),m=gp(s),b=yp(l),y=gp(l),g={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ip,e:Ip,H:jp,I:Rp,j:Np,L:zp,m:qp,M:Wp,p:function(e){return o[+(e.getHours()>=12)]},S:Hp,U:Bp,w:Fp,W:Yp,x:null,X:null,y:Gp,Y:Up,Z:Xp,"%":lh},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Vp,e:Vp,H:Kp,I:Qp,j:Jp,L:Zp,m:$p,M:eh,p:function(e){return o[+(e.getUTCHours()>=12)]},S:th,U:nh,w:rh,W:oh,x:null,X:null,y:ih,Y:ah,Z:sh,"%":lh},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:xp,e:xp,H:Ap,I:Ap,j:Ep,L:Pp,m:Sp,M:Cp,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},S:Lp,U:wp,w:vp,W:Mp,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:Tp,Y:kp,Z:Op,"%":Dp};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in fp?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return g.x=M(n,g),g.X=M(r,g),g.c=M(t,g),v.x=M(n,v),v.X=M(r,v),v.c=M(t,v),{format:function(e){var t=M(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",sp);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e,lp);return t.toString=function(){return e},t}}}var dp,fp={"-":"",_:" ",0:"0"},pp=/^\s*\d+/,hp=/^%/,_p=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function mp(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Op(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ep(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ap(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Cp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pp(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dp(e,t,n){var r=hp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ip(e,t){return mp(e.getDate(),t,2)}function jp(e,t){return mp(e.getHours(),t,2)}function Rp(e,t){return mp(e.getHours()%12||12,t,2)}function Np(e,t){return mp(1+_f.count(If(e),e),t,3)}function zp(e,t){return mp(e.getMilliseconds(),t,3)}function qp(e,t){return mp(e.getMonth()+1,t,2)}function Wp(e,t){return mp(e.getMinutes(),t,2)}function Hp(e,t){return mp(e.getSeconds(),t,2)}function Bp(e,t){return mp(yf.count(If(e),e),t,2)}function Fp(e){return e.getDay()}function Yp(e,t){return mp(gf.count(If(e),e),t,2)}function Gp(e,t){return mp(e.getFullYear()%100,t,2)}function Up(e,t){return mp(e.getFullYear()%1e4,t,4)}function Xp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mp(t/60|0,"0",2)+mp(t%60,"0",2)}function Vp(e,t){return mp(e.getUTCDate(),t,2)}function Kp(e,t){return mp(e.getUTCHours(),t,2)}function Qp(e,t){return mp(e.getUTCHours()%12||12,t,2)}function Jp(e,t){return mp(1+Wf.count(ip(e),e),t,3)}function Zp(e,t){return mp(e.getUTCMilliseconds(),t,3)}function $p(e,t){return mp(e.getUTCMonth()+1,t,2)}function eh(e,t){return mp(e.getUTCMinutes(),t,2)}function th(e,t){return mp(e.getUTCSeconds(),t,2)}function nh(e,t){return mp(Ff.count(ip(e),e),t,2)}function rh(e){return e.getUTCDay()}function oh(e,t){return mp(Yf.count(ip(e),e),t,2)}function ih(e,t){return mp(e.getUTCFullYear()%100,t,2)}function ah(e,t){return mp(e.getUTCFullYear()%1e4,t,4)}function sh(){return"+0000"}function lh(){return"%"}function ch(t){return dp=up(t),e.timeFormat=dp.format,e.timeParse=dp.parse,e.utcFormat=dp.utcFormat,e.utcParse=dp.utcParse,dp}ch({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var uh=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),dh=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),fh=1e3,ph=60*fh,hh=60*ph,_h=24*hh,mh=7*_h,bh=30*_h,yh=365*_h;function gh(e){return new Date(e)}function vh(e){return e instanceof Date?+e:+new Date(+e)}function wh(e,t,r,o,i,a,s,l,c){var u=Fd(qd,mn),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),_=c("%I:%M"),m=c("%I %p"),b=c("%a %d"),y=c("%b %d"),g=c("%B"),v=c("%Y"),w=[[s,1,fh],[s,5,5*fh],[s,15,15*fh],[s,30,30*fh],[a,1,ph],[a,5,5*ph],[a,15,15*ph],[a,30,30*ph],[i,1,hh],[i,3,3*hh],[i,6,6*hh],[i,12,12*hh],[o,1,_h],[o,2,2*_h],[r,1,mh],[t,1,bh],[t,3,3*bh],[e,1,yh]];function k(n){return(s(n)=1?Uh:e<=-1?-Uh:Math.asin(e)}function Kh(e){return e.innerRadius}function Qh(e){return e.outerRadius}function Jh(e){return e.startAngle}function Zh(e){return e.endAngle}function $h(e){return e&&e.padAngle}function e_(e,t,n,r,o,i,a){var s=e-n,l=t-r,c=(a?i:-i)/Fh(s*s+l*l),u=c*l,d=-c*s,f=e+u,p=t+d,h=n+u,_=r+d,m=(f+h)/2,b=(p+_)/2,y=h-f,g=_-p,v=y*y+g*g,w=o-i,M=f*_-h*p,k=(g<0?-1:1)*Fh(Wh(0,w*w*v-M*M)),T=(M*g-y*k)/v,O=(-M*y-g*k)/v,S=(M*g+y*k)/v,x=(-M*y+g*k)/v,E=T-m,A=O-b,C=S-m,L=x-b;return E*E+A*A>C*C+L*L&&(T=S,O=x),{cx:T,cy:O,x01:-u,y01:-d,x11:T*(o/w-1),y11:O*(o/w-1)}}function t_(e){this._context=e}t_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var n_=function(e){return new t_(e)};function r_(e){return e[0]}function o_(e){return e[1]}var i_=function(){var e=r_,t=o_,n=Rh(!0),r=null,o=n_,i=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(i=o(c=Ho())),s=0;s<=u;++s)!(s=u;--d)s.point(m[d],b[d]);s.lineEnd(),s.areaEnd()}_&&(m[c]=+e(f,c,l),b[c]=+n(f,c,l),s.point(t?+t(f,c,l):m[c],r?+r(f,c,l):b[c]))}if(p)return s=null,p+""||null}function c(){return i_().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Rh(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Rh(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Rh(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Rh(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l},s_=function(e,t){return te?1:t>=e?0:NaN},l_=function(e){return e},c_=d_(n_);function u_(e){this._curve=e}function d_(e){function t(t){return new u_(e(t))}return t._curve=e,t}function f_(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e}u_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var p_=function(){return f_(i_().curve(c_))},h_=function(){var e=a_().curve(c_),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return f_(n())},delete e.lineX0,e.lineEndAngle=function(){return f_(r())},delete e.lineX1,e.lineInnerRadius=function(){return f_(o())},delete e.lineY0,e.lineOuterRadius=function(){return f_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e},__=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},m_=Array.prototype.slice;function b_(e){return e.source}function y_(e){return e.target}function g_(e){var t=b_,n=y_,r=r_,o=o_,i=null;function a(){var a,s=m_.call(arguments),l=t.apply(this,s),c=n.apply(this,s);if(i||(i=a=Ho()),e(i,+r.apply(this,(s[0]=l,s)),+o.apply(this,s),+r.apply(this,(s[0]=c,s)),+o.apply(this,s)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function v_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function w_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function M_(e,t,n,r,o){var i=__(t,n),a=__(t,n=(n+o)/2),s=__(r,n),l=__(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}var k_={draw:function(e,t){var n=Math.sqrt(t/Gh);e.moveTo(n,0),e.arc(0,0,n,0,Xh)}},T_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},O_=Math.sqrt(1/3),S_=2*O_,x_={draw:function(e,t){var n=Math.sqrt(t/S_),r=n*O_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},E_=Math.sin(Gh/10)/Math.sin(7*Gh/10),A_=Math.sin(Xh/10)*E_,C_=-Math.cos(Xh/10)*E_,L_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=A_*n,o=C_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Xh*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},P_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},D_=Math.sqrt(3),I_={draw:function(e,t){var n=-Math.sqrt(t/(3*D_));e.moveTo(0,2*n),e.lineTo(-D_*n,-n),e.lineTo(D_*n,-n),e.closePath()}},j_=-.5,R_=Math.sqrt(3)/2,N_=1/Math.sqrt(12),z_=3*(N_/2+1),q_={draw:function(e,t){var n=Math.sqrt(t/z_),r=n/2,o=n*N_,i=r,a=n*N_+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(j_*r-R_*o,R_*r+j_*o),e.lineTo(j_*i-R_*a,R_*i+j_*a),e.lineTo(j_*s-R_*l,R_*s+j_*l),e.lineTo(j_*r+R_*o,j_*o-R_*r),e.lineTo(j_*i+R_*a,j_*a-R_*i),e.lineTo(j_*s+R_*l,j_*l-R_*s),e.closePath()}},W_=[k_,T_,x_,P_,L_,I_,q_],H_=function(){};function B_(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function F_(e){this._context=e}function Y_(e){this._context=e}function G_(e){this._context=e}function U_(e,t){this._basis=new F_(e),this._beta=t}F_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:B_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Y_.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},G_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:B_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},U_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var X_=function e(t){function n(e){return 1===t?new F_(e):new U_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function V_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function K_(e,t){this._context=e,this._k=(1-t)/6}K_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:V_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Q_=function e(t){function n(e){return new K_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function J_(e,t){this._context=e,this._k=(1-t)/6}J_.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z_=function e(t){function n(e){return new J_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function $_(e,t){this._context=e,this._k=(1-t)/6}$_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:V_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var em=function e(t){function n(e){return new $_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function tm(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Yh){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Yh){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function nm(e,t){this._context=e,this._alpha=t}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rm=function e(t){function n(e){return t?new nm(e,t):new K_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function om(e,t){this._context=e,this._alpha=t}om.prototype={areaStart:H_,areaEnd:H_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var im=function e(t){function n(e){return t?new om(e,t):new J_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function am(e,t){this._context=e,this._alpha=t}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tm(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sm=function e(t){function n(e){return t?new am(e,t):new $_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function lm(e){this._context=e}function cm(e){return e<0?-1:1}function um(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(cm(i)+cm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function dm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function pm(e){this._context=e}function hm(e){this._context=new _m(e)}function _m(e){this._context=e}function mm(e){this._context=e}function bm(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var gm=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function wm(e,t){return e[t]}var Mm=function(e){var t=e.map(km);return vm(e).sort(function(e,n){return t[e]-t[n]})};function km(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(i/=h,h<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=r-l,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>f&&(f=i)}else if(h>0){if(i0)){if(i/=_,_<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=o-c,_||!(i<0)){if(i/=_,_<0){if(i>p)return;i>f&&(f=i)}else if(_>0){if(i0||p<1)||(f>0&&(e[0]=[l+f*h,c+f*_]),p<1&&(e[1]=[l+p*h,c+p*_]),!0)}}}}}function Rm(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],p=u[0],h=u[1],_=(d+p)/2,m=(f+h)/2;if(h===f){if(_=r)return;if(d>p){if(l){if(l[1]>=o)return}else l=[_,n];i=[_,o]}else{if(l){if(l[1]1)if(d>p){if(l){if(l[1]>=o)return}else l=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(l){if(l[1]=r)return}else l=[t,a*t+s];i=[r,a*r+s]}else{if(l){if(l[0]=-nb)){var p=l*l+c*c,h=u*u+d*d,_=(d*p-c*h)/f,m=(l*h-u*p)/f,b=Hm.pop()||new function(){Em(this),this.x=this.y=this.arc=this.site=this.cy=null};b.arc=e,b.site=o,b.x=_+a,b.y=(b.cy=m+s)+Math.sqrt(_*_+m*m),e.circle=b;for(var y=null,g=$m._;g;)if(b.ytb)s=s.L;else{if(!((o=i-Qm(s,a))>tb)){r>-tb?(t=s.P,n=s):o>-tb?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Zm[e.index]={site:e,halfedges:[]}}(e);var l=Gm(e);if(Jm.insert(t,l),t||n){if(t===n)return Fm(t),n=Gm(t.site),Jm.insert(l,n),l.edge=n.edge=Pm(t.site,l.site),Bm(t),void Bm(n);if(n){Fm(t),Fm(n);var c=t.site,u=c[0],d=c[1],f=e[0]-u,p=e[1]-d,h=n.site,_=h[0]-u,m=h[1]-d,b=2*(f*m-p*_),y=f*f+p*p,g=_*_+m*m,v=[(m*y-p*g)/b+u,(f*g-_*y)/b+d];Im(n.edge,c,h,v),l.edge=Pm(c,e,null,v),n.edge=Pm(e,h,null,v),Bm(t),Bm(n)}else l.edge=Pm(t.site,l.site)}}function Km(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+o-i/2)))/d+r:(r+s)/2}function Qm(e,t){var n=e.N;if(n)return Km(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Jm,Zm,$m,eb,tb=1e-6,nb=1e-12;function rb(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function ob(e,t){return t[1]-e[1]||t[0]-e[0]}function ib(e,t){var n,r,o,i=e.sort(ob).pop();for(eb=[],Zm=new Array(e.length),Jm=new xm,$m=new xm;;)if(o=Wm,i&&(!o||i[1]tb||Math.abs(o[0][1]-o[1][1])>tb)||delete eb[i]}(a,s,l,c),function(e,t,n,r){var o,i,a,s,l,c,u,d,f,p,h,_,m=Zm.length,b=!0;for(o=0;otb||Math.abs(_-f)>tb)&&(l.splice(s,0,eb.push(Dm(a,p,Math.abs(h-e)tb?[e,Math.abs(d-e)tb?[Math.abs(f-r)tb?[n,Math.abs(d-n)tb?[Math.abs(f-t)=s)return null;var l=e-o.site[0],c=t-o.site[1],u=l*l+c*c;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;de?1:t>=e?0:NaN},e.deviation=c,e.extent=u,e.histogram=function(){var e=_,t=u,n=k;function r(r){var i,a,s=r.length,l=new Array(s);for(i=0;id;)f.pop(),--p;var h,_=new Array(p+1);for(i=0;i<=p;++i)(h=_[i]=[]).x0=i>0?f[i-1]:u,h.x1=i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,u,d=-1,f=n.length,p=r[o++],h=Vo(),_=a();++dr.length)return n;var a,s=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,i)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(i(e,0,Jo,Zo),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}},e.set=ti,e.map=Vo,e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.color=pt,e.rgb=bt,e.hsl=vt,e.lab=Dt,e.hcl=qt,e.cubehelix=Kt,e.dispatch=H,e.drag=function(){var t,n,r,o,i=Xe,a=Ve,s=Ke,l={},c=H("start","drag","end"),u=0,d=0;function f(e){e.on("mousedown.drag",p).filter(Qe).on("touchstart.drag",m).on("touchmove.drag",b).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!o&&i.apply(this,arguments)){var s=g("mouse",a.apply(this,arguments),de,this,arguments);s&&(qe(e.event.view).on("mousemove.drag",h,!0).on("mouseup.drag",_,!0),Fe(e.event.view),He(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function h(){if(Be(),!r){var o=e.event.clientX-t,i=e.event.clientY-n;r=o*o+i*i>d}l.mouse("drag")}function _(){qe(e.event.view).on("mousemove.drag mouseup.drag",null),Ye(e.event.view,r),Be(),l.mouse("end")}function m(){if(i.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=a.apply(this,arguments),s=r.length;for(t=0;tl+p||oc+p||is.index){var h=l-a.x-a.vx,_=c-a.y-a.vy,m=h*h+_*_;me.r&&(e.r=e[t].r)}function s(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r=a)){(e.data!==t||e.next)&&(0===u&&(u=_i(),p+=u*u),0===d&&(d=_i(),p+=d*d),p1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(e,n),t):c.on(e)}}},e.forceX=function(e){var t,n,r,o=hi(.1);function i(e){for(var o,i=0,a=t.length;ids(r[0],r[1])&&(r[1]=o[1]),ds(o[0],r[1])>ds(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,t=0,r=i[n];t<=n;r=o,++t)o=i[t],(s=ds(r[1],o[0]))>a&&(a=s,La=o[0],Da=r[1])}return es=ts=null,La===1/0||Pa===1/0?[[NaN,NaN],[NaN,NaN]]:[[La,Pa],[Da,Ia]]},e.geoCentroid=function(e){hs=_s=ms=bs=ys=gs=vs=ws=Ms=ks=Ts=0,qa(e,Cs);var t=Ms,n=ks,r=Ts,o=t*t+n*n+r*r;return o<1e-12&&(t=gs,n=vs,r=ws,_s=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:a).invert(e)},u.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=lu,e.geoRotation=Vs,e.geoStream=qa,e.geoTransform=function(e){return{stream:Ic(e)}},e.cluster=function(){var e=cu,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(uu,0)/e.length}(n),t.y=function(e){return 1+e.reduce(du,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.hierarchy=pu,e.pack=function(){var e=null,t=1,n=1,r=Du;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ru(e)).eachAfter(Nu(r,.5)).eachBefore(zu(1)):o.eachBefore(Ru(ju)).eachAfter(Nu(Du,1)).eachAfter(Nu(r,o.r/Math.min(t,n))).eachBefore(zu(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=function(e){return null==e?null:Pu(e)}(t),o):e},o.size=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.padding=function(e){return arguments.length?(r="function"==typeof e?e:Iu(+e),o):r},o},e.packSiblings=function(e){return Lu(e),e},e.packEnclose=gu,e.partition=function(){var e=1,t=1,n=0,r=!1;function o(o){var i=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/i,o.eachBefore(function(e,t){return function(r){r.children&&Wu(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,i=r.y0,a=r.x1-n,s=r.y1-n;a0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=Pu(t),n):e},n.parentId=function(e){return arguments.length?(t=Pu(e),n):t},n},e.tree=function(){var e=Uu,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Ju(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Ju(r[o],o)),n.parent=t;return(a.parent=new Ju(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var f=c===u?1:e(c,u)/2,p=f-c.x,h=t/(u.x+f+p),_=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*_})}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,f=l.m;s=Vu(s),i=Xu(i),s&&i;)l=Xu(l),(a=Vu(a)).a=t,(o=s.z+d-i.z-c+e(s._,i._))>0&&(Ku(Qu(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=i.m,f+=l.m,u+=a.m;s&&!Vu(a)&&(a.t=s,a.m+=d-u),i&&!Xu(l)&&(l.t=i,l.m+=c-f,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.treemap=function(){var e=td,t=!1,n=1,r=1,o=[0],i=Du,a=Du,s=Du,l=Du,c=Du;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(qu),e}function d(t){var n=o[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var u=s[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=l)}for(var d=c[t],f=r/2+d,p=t+1,h=n-1;p>>1;c[_]l-i){var y=(o*b+a*m)/r;e(t,p,m,o,i,y,l),e(p,n,b,y,i,a,l)}else{var g=(i*b+l*m)/r;e(t,p,m,o,i,a,g),e(p,n,b,o,g,a,l)}}(0,l,e.value,t,n,r,o)},e.treemapDice=Wu,e.treemapSlice=Zu,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?Zu:Wu)(e,t,n,r,o)},e.treemapSquarify=td,e.treemapResquarify=nd,e.interpolate=wn,e.interpolateArray=hn,e.interpolateBasis=Zt,e.interpolateBasisClosed=$t,e.interpolateDate=_n,e.interpolateNumber=mn,e.interpolateObject=bn,e.interpolateRound=Mn,e.interpolateString=vn,e.interpolateTransformCss=xn,e.interpolateTransformSvg=En,e.interpolateZoom=Ln,e.interpolateRgb=an,e.interpolateRgbBasis=fn,e.interpolateRgbBasisClosed=pn,e.interpolateHsl=Dn,e.interpolateHslLong=In,e.interpolateLab=function(e,t){var n=on((e=Dt(e)).l,(t=Dt(t)).l),r=on(e.a,t.a),o=on(e.b,t.b),i=on(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=i(t),e+""}},e.interpolateHcl=Rn,e.interpolateHclLong=Nn,e.interpolateCubehelix=Hn,e.interpolateCubehelixLong=Bn,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)c.push(e[r[i[t]][2]]);for(t=+s;ts!=c>s&&a<(l-n)*(s-r)/(c-r)+n&&(u=!u),l=n,c=r;return u},e.polygonLength=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],s=i[1],l=0;++r0){for(;fl)break;_.push(d)}}else for(;f=1;--u)if(!((d=c*u)l)break;_.push(d)}}else _=v(f,p,Math.min(p-f,h)).map(a);return t?_.reverse():_},n.tickFormat=function(t,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=e.format(r)),t===1/0)return r;null==t&&(t=10);var s=Math.max(1,o*t/n.ticks().length);return function(e){var t=e/a(Math.round(i(e)));return t*o0?i[t-1]:n[0],t=r?[i[r-1],n]:[i[o-1],i[o]]},s.copy=function(){return e().domain([t,n]).range(a)},Gd(s)},e.scaleThreshold=function e(){var t=[.5],n=[0,1],r=1;function i(e){if(e<=e)return n[o(t,e,0,r)]}return i.domain=function(e){return arguments.length?(t=Pd.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Pd.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.copy=function(){return e().domain(t).range(n)},i},e.scaleTime=function(){return wh(If,Pf,yf,_f,pf,df,cf,of,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return wh(ip,rp,Ff,Wf,zf,Rf,cf,of,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=kh,e.schemeCategory20b=Th,e.schemeCategory20c=Oh,e.schemeCategory20=Sh,e.interpolateCubehelixDefault=xh,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ch.h=360*e-100,Ch.s=1.5-1.5*t,Ch.l=.8-.9*t,Ch+""},e.interpolateWarm=Eh,e.interpolateCool=Ah,e.interpolateViridis=Ph,e.interpolateMagma=Dh,e.interpolateInferno=Ih,e.interpolatePlasma=jh,e.scaleSequential=function e(t){var n=0,r=1,o=!1;function i(e){var i=(e-n)/(r-n);return t(o?Math.max(0,Math.min(1,i)):i)}return i.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],i):[n,r]},i.clamp=function(e){return arguments.length?(o=!!e,i):o},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(t).domain([n,r]).clamp(o)},Gd(i)},e.creator=V,e.local=Q,e.matcher=te,e.mouse=de,e.namespace=X,e.namespaces=U,e.select=qe,e.selectAll=function(e){return"string"==typeof e?new Ne([document.querySelectorAll(e)],[document.documentElement]):new Ne([null==e?[]:e],Re)},e.selection=ze,e.selector=pe,e.selectorAll=_e,e.style=ke,e.touch=We,e.touches=function(e,t){null==t&&(t=ce().touches);for(var n=0,r=t?t.length:0,o=new Array(r);nf;if(s||(s=l=Ho()),dYh)if(h>Xh-Yh)s.moveTo(d*qh(f),d*Bh(f)),s.arc(0,0,d,f,p,!_),u>Yh&&(s.moveTo(u*qh(p),u*Bh(p)),s.arc(0,0,u,p,f,_));else{var m,b,y=f,g=p,v=f,w=p,M=h,k=h,T=a.apply(this,arguments)/2,O=T>Yh&&(r?+r.apply(this,arguments):Fh(u*u+d*d)),S=Hh(Nh(d-u)/2,+n.apply(this,arguments)),x=S,E=S;if(O>Yh){var A=Vh(O/u*Bh(T)),C=Vh(O/d*Bh(T));(M-=2*A)>Yh?(v+=A*=_?1:-1,w-=A):(M=0,v=w=(f+p)/2),(k-=2*C)>Yh?(y+=C*=_?1:-1,g-=C):(k=0,y=g=(f+p)/2)}var L=d*qh(y),P=d*Bh(y),D=u*qh(w),I=u*Bh(w);if(S>Yh){var j=d*qh(g),R=d*Bh(g),N=u*qh(v),z=u*Bh(v);if(hYh?function(e,t,n,r,o,i,a,s){var l=n-e,c=r-t,u=a-o,d=s-i,f=(u*(t-i)-d*(e-o))/(d*l-u*c);return[e+f*l,t+f*c]}(L,P,N,z,j,R,D,I):[D,I],W=L-q[0],H=P-q[1],B=j-q[0],F=R-q[1],Y=1/Bh(function(e){return e>1?0:e<-1?Gh:Math.acos(e)}((W*B+H*F)/(Fh(W*W+H*H)*Fh(B*B+F*F)))/2),G=Fh(q[0]*q[0]+q[1]*q[1]);x=Hh(S,(u-G)/(Y-1)),E=Hh(S,(d-G)/(Y+1))}}k>Yh?E>Yh?(m=e_(N,z,L,P,d,E,_),b=e_(j,R,D,I,d,E,_),s.moveTo(m.cx+m.x01,m.cy+m.y01),EYh&&M>Yh?x>Yh?(m=e_(D,I,j,R,u,-x,_),b=e_(L,P,N,z,u,-x,_),s.lineTo(m.cx+m.x01,m.cy+m.y01),x0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(_[e],_[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,c=p?(b-f*g)/p:0;s0?d*c:0)+g,_[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:y};return _}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Rh(+e),a):i},a},e.areaRadial=h_,e.radialArea=h_,e.lineRadial=p_,e.radialLine=p_,e.pointRadial=__,e.linkHorizontal=function(){return g_(v_)},e.linkVertical=function(){return g_(w_)},e.linkRadial=function(){var e=g_(M_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=Rh(k_),t=Rh(64),n=null;function r(){var r;if(n||(n=r=Ho()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Rh(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Rh(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},e.symbols=W_,e.symbolCircle=k_,e.symbolCross=T_,e.symbolDiamond=x_,e.symbolSquare=P_,e.symbolStar=L_,e.symbolTriangle=I_,e.symbolWye=q_,e.curveBasisClosed=function(e){return new Y_(e)},e.curveBasisOpen=function(e){return new G_(e)},e.curveBasis=function(e){return new F_(e)},e.curveBundle=X_,e.curveCardinalClosed=Z_,e.curveCardinalOpen=em,e.curveCardinal=Q_,e.curveCatmullRomClosed=im,e.curveCatmullRomOpen=sm,e.curveCatmullRom=rm,e.curveLinearClosed=function(e){return new lm(e)},e.curveLinear=n_,e.curveMonotoneX=function(e){return new pm(e)},e.curveMonotoneY=function(e){return new hm(e)},e.curveNatural=function(e){return new mm(e)},e.curveStep=function(e){return new ym(e,.5)},e.curveStepAfter=function(e){return new ym(e,1)},e.curveStepBefore=function(e){return new ym(e,0)},e.stack=function(){var e=Rh([]),t=vm,n=gm,r=wm;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,c=s.length,u=new Array(c);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,s,l=0,c=e[t[0]].length;l=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},e.stackOffsetNone=gm,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;aur&&n.name===t)return new Or([[e]],io,t,+r);return null},e.interrupt=vr,e.voronoi=function(){var e=Om,t=Sm,n=null;function r(r){return new ib(r.map(function(n,o){var i=[Math.round(e(n,o,r)/tb)*tb,Math.round(t(n,o,r)/tb)*tb];return i.index=o,i.data=n,i}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:Tm(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:Tm(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},e.zoom=function(){var t,n,r=fb,o=pb,i=_b,a=0,s=1/0,l=-s,c=s,u=l,d=c,f=250,p=Ln,h=[],_=H("start","zoom","end"),m=500,b=150,y=0;function g(e){e.property("__zoom",hb).on("wheel.zoom",x).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(mb).on("touchstart.zoom",C).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(e,t){return(t=Math.max(a,Math.min(s,t)))===e.k?e:new sb(t,e.x,e.y)}function w(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new sb(e.k,r,o)}function M(e,t){var n=e.invertX(t[0][0])-l,r=e.invertX(t[1][0])-c,o=e.invertY(t[0][1])-u,i=e.invertY(t[1][1])-d;return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}function k(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function T(e,t,n){e.on("start.zoom",function(){O(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).end()}).tween("zoom",function(){var e=arguments,r=O(this,e),i=o.apply(this,e),a=n||k(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,u=p(l.invert(a).concat(s/l.k),c.invert(a).concat(s/c.k));return function(e){if(1===e)e=c;else{var t=u(e),n=s/t[2];e=new sb(n,a[0]-t[0]*n,a[1]-t[1]*n)}r.zoom(null,e)}})}function O(e,t){for(var n,r=0,o=h.length;ry}t.zoom("mouse",M(w(t.that.__zoom,t.mouse[0]=de(t.that),t.mouse[1]),t.extent))},!0).on("mouseup.zoom",function(){o.on("mousemove.zoom mouseup.zoom",null),Ye(e.event.view,t.moved),db(),t.end()},!0),i=de(this),a=e.event.clientX,s=e.event.clientY;Fe(e.event.view),ub(),t.mouse=[i,this.__zoom.invert(i)],vr(this),t.start()}}function A(){if(r.apply(this,arguments)){var t=this.__zoom,n=de(this),i=t.invert(n),a=t.k*(e.event.shiftKey?.5:2),s=M(w(v(t,a),n,i),o.apply(this,arguments));db(),f>0?qe(this).transition().duration(f).call(T,s,n):qe(this).call(g.transform,s)}}function C(){if(r.apply(this,arguments)){var n,o,i,a,s=O(this,arguments),l=e.event.changedTouches,c=l.length;for(ub(),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function h(e){return r.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function _(e){return{type:o.SET_BREADCRUMB,breadcrumb:e}}function m(e){return{type:o.UPDATE_BREADCRUMB,node:e}}function b(){return p(6,10,!0).then(function(e){return{nodeId:"0",children:e.data.children}})}function y(e){return function(t){s||l===e||(s=!0,d("window",e).then(function(e){return w(e.data)}).then(function(n){t(_(n.reverse())),l=e,s=!1}).catch(function(){t(_([])),l=null,s=!1}))}}function g(e,t){return function(n){s||l===t||(s=!0,d(e,t).then(function(e){return w(e.data)}).then(function(e){n(_(e.reverse())),l=t,s=!1}).catch(function(){n(_([])),l=null,s=!1}))}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map(function(e){var t=v(e);"object"===a(t)?n=n.concat(t):n.push(v(e))}),n):[e]}function w(e){var t=[];return e.children&&w(e.children[0]).map(function(e){t.push(e)}),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}!function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(s,"breadcrumbsRequested","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(l,"breadcrumbsId","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(c,"pathRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(u,"nodePathsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(d,"elementPathRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(f,"queryPathsRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(p,"rootRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(h,"breadcrumbRequest","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(_,"setBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(m,"updateBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(b,"getRootBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(y,"getWindowBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(g,"getElementBreadcrumb","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(v,"flattenLastElem","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"),e.register(w,"flattenOneLine","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/actions/MenuActions.js"))}(),function(){var t="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(n(93));t.addQueryStringValueToPath=function(e,t,n){var i=r(e),a=i.pathname,s=i.search,l=i.hash;return o({pathname:a,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:l})},t.stripQueryStringValueFromPath=function(e,t){var n=r(e),i=n.pathname,a=n.search,s=n.hash;return o({pathname:i,search:a.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,n){return"?"===t?t:n}),hash:s})},t.getQueryStringValueFromPath=function(e,t){var n=r(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var r=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substring(o),t=t.substring(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substring(i),t=t.substring(0,i)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},o=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=(t||"")+n;return r&&"?"!==r&&(i+=r),o&&(i+=o),i}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(105)("meta"),o=n(12),i=n(52),a=n(28).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(14)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(83),o=n(615),i=Object(o.a)(Object.getPrototypeOf,Object),a=n(108),s="[object Object]",l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=u.call(Object);t.a=function(e){if(!Object(a.a)(e)||Object(r.a)(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){"use strict";var r=n(131),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.a?r.a.toStringTag:void 0;var l=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o},c=Object.prototype.toString;var u=function(e){return c.call(e)},d="[object Null]",f="[object Undefined]",p=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?l(e):u(e)}},function(e,t,n){"use strict";var r=n(616),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OTHER=0]="OTHER",e[e.ORIENTATION=1]="ORIENTATION",e[e.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",e[e.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",e[e.ISSUE_NUMBER=4]="ISSUE_NUMBER",e[e.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",e[e.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",e[e.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",e[e.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",e[e.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",e[e.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.MathUtils=function(){},e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){t+=e[n]}return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.RawWidget=void 0;var _moment=_interopRequireDefault(__webpack_require__(4)),_react=_interopRequireWildcard(__webpack_require__(2)),_reactAddonsCssTransitionGroup=_interopRequireDefault(__webpack_require__(239)),_reactRedux=__webpack_require__(6),_classnames2=_interopRequireDefault(__webpack_require__(9)),_immutable=__webpack_require__(38),_PropTypes=__webpack_require__(895),_RawWidgetHelpers=__webpack_require__(377),_WindowActions=__webpack_require__(19),_Constants=__webpack_require__(43),_ActionButton=_interopRequireDefault(__webpack_require__(894)),_Attributes=_interopRequireDefault(__webpack_require__(892)),_Checkbox=_interopRequireDefault(__webpack_require__(890)),_DatePicker=_interopRequireDefault(__webpack_require__(889)),_DatetimeRange=_interopRequireDefault(__webpack_require__(880)),_DevicesWidget=_interopRequireDefault(__webpack_require__(876)),_Image=_interopRequireDefault(__webpack_require__(874)),_Tooltips=_interopRequireDefault(__webpack_require__(54)),_Labels=_interopRequireDefault(__webpack_require__(873)),_Link=_interopRequireDefault(__webpack_require__(870)),_List=_interopRequireDefault(__webpack_require__(369)),_Lookup=_interopRequireDefault(__webpack_require__(868));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _objectSpread(e){for(var t=1;t-1;if(!T)return console.warn("The %c"+f,"font-weight:bold;","is unsupported type of widget."),!1;if(!l[0].displayed||!0!==l[0].displayed)return!1;var C,L,P=l[0].value&&l[0].value.description?l[0].value.description:null,D=i.map(function(e){return"form-field-"+e.field}).join(" "),I="";E?(C=b,L=y,I=m):((C=h?"col-sm-5":"")||(C="primary"!==a||A?"primaryLongLabels"===a?"col-sm-6":"col-sm-3":"col-sm-12 panel-title"),(L=h?"col-sm-7":"")||(L=("primary"!==a&&!s||A?"primaryLongLabels"===a?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(i[0].devices?"form-group-flex":"")));var j={};return!s&&n&&i[0].supportZoomInto&&(j.onClick=function(){return p(i[0].field)}),_react.default.createElement("div",{className:(0,_classnames2.default)("form-group",I,{"form-group-table":c&&!u},D)},_react.default.createElement("div",{className:"row"},o||null,!s&&n&&_react.default.createElement("label",_extends({className:(0,_classnames2.default)("form-control-label",C,{"input-zoom":E&&i[0].supportZoomInto,"zoom-into":i[0].supportZoomInto}),title:r||n},j),n),_react.default.createElement("div",{className:L,onMouseEnter:function(){return e.handleErrorPopup(!0)},onMouseLeave:function(){return e.handleErrorPopup(!1)}},!w&&x&&_react.default.createElement("div",{className:(0,_classnames2.default)("field-warning",{"field-warning-message":x,"field-error-message":x&&x.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},_react.default.createElement("span",null,x.caption),_react.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(x)}}),x.message&&M&&_react.default.createElement(_Tooltips.default,{action:x.message,type:""})),_react.default.createElement("div",{className:(0,_classnames2.default)("input-body-container",{focused:k}),title:P},_react.default.createElement(_reactAddonsCssTransitionGroup.default,{transitionName:"fade",transitionEnterTimeout:200,transitionLeaveTimeout:200},v&&S&&!S.valid&&!S.initialValue&&this.renderErrorPopup(S.reason)),T),i[0].devices&&!l[0].readonly&&_react.default.createElement(_DevicesWidget.default,{devices:i[0].devices,tabIndex:1,handleChange:function(e){return d&&d(i[0].field,e)}}))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawWidget}(_react.Component);exports.RawWidget=RawWidget,RawWidget.propTypes=_PropTypes.RawWidgetPropTypes,RawWidget.defaultProps=_PropTypes.RawWidgetDefaultProps;var _default=(0,_reactRedux.connect)(function(e){return{modalVisible:e.windowHandler.modal.visible,timeZone:e.appHandler.me.timeZone}})(RawWidget),_default2=_default;exports.default=_default2,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(RawWidget,"RawWidget","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/RawWidget.js"),e.register(_default,"default","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/RawWidget.js"))}(),function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(2)),i=n(6),a=d(n(241)),s=d(n(731)),l=d(n(730)),c=d(n(722)),u=d(n(721));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;tdocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(62),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(597),o=n(291);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=t&&(i^=e,i&=t-1);this.expTable=o;var s=new Int32Array(t);for(a=0;a32*this.bits.length){var n=e.makeArray(t);r.default.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(e){return 0!=(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=~n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=~n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(tthis.size)throw new a.default;if(t!==e){t--;for(var n=Math.floor(e/32),r=Math.floor(t/32),o=this.bits,i=n;i<=r;i++){var s=(2<<(in?0:31&e));o[i]|=s}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;nthis.size)throw new a.default;if(t===e)return!0;t--;for(var r=Math.floor(e/32),o=Math.floor(t/32),i=this.bits,s=r;s<=o;s++){var l=(2<<(sr?0:31&e))&4294967295;if((i[s]&l)!==(n?l:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new a.default("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);this.appendBit;for(var n=t;n>0;n--)this.appendBit(1==(e>>n-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);this.appendBit;for(var n=0;n>1&1431655765|(1431655765&i)<<1)>>2&858993459|(858993459&i)<<2)>>4&252645135|(252645135&i)<<4)>>8&16711935|(16711935&i)<<8)>>16&65535|(65535&i)<<16,e[t-o]=i}if(this.size!==32*n){var a=32*n-this.size,s=e[0]>>>a;for(o=1;o>>a}e[n-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+i.default.hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t0&&void 0!==arguments[0]?arguments[0]:p,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case l.NO_CONNECTION:return d({},t,{connectionError:n.status});case l.OPEN_MODAL:return d({},t,{modal:d({},t.modal,{visible:!0,type:n.windowType,staticModalType:n.staticModalType,dataId:n.dataId,tabId:n.tabId,rowId:n.rowId,viewId:n.viewId,title:n.title,modalType:n.modalType,isAdvanced:n.isAdvanced,viewDocumentIds:n.viewDocumentIds,triggerField:n.triggerField,parentViewId:n.parentViewId,parentViewSelectedIds:n.parentViewSelectedIds,childViewId:n.childViewId,childViewSelectedIds:n.childViewSelectedIds})});case l.OPEN_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!0,type:n.payload.type,id:n.payload.id}});case l.OPEN_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!0,windowId:n.windowId,viewId:n.viewId,profileId:n.profileId})});case l.UPDATE_MODAL:return d({},t,{modal:d({},t.modal,{rowId:n.rowId,dataId:n.dataId})});case l.UPDATE_RAW_MODAL:var a=n.windowId,c=n.data;return t.rawModal.windowId===a?d({},t,{rawModal:d({},t.rawModal,c)}):t;case l.CLOSE_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!1,windowId:null,viewId:null,profileId:null})});case l.CLOSE_PROCESS_MODAL:return"process"===t.modal.modalType?d({},t,{modal:d({},t.modal,p.modal)}):t;case l.CLOSE_MODAL:return d({},t,{modal:d({},t.modal,p.modal)});case l.CLOSE_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!1,type:"",id:null}});case l.TOGGLE_OVERLAY:return d({},t,{overlay:{visible:!1!==n.data&&!t.overlay.visible,data:n.data?d({},n.data):null}});case l.INIT_LAYOUT_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{layout:n.layout})));case l.INIT_DATA_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{data:n.data,docId:n.docId,layout:{},rowData:(0,o.Map)(),saveStatus:n.saveStatus,standardActions:(0,o.Set)(n.standardActions),validStatus:n.validStatus,includedTabsInfo:n.includedTabsInfo,websocket:n.websocket})));case l.UPDATE_MASTER_DATA:return d({},t,{master:d({},t.master,{data:d({},t.master.data,n.payload)})});case l.CLEAR_MASTER_DATA:return d({},t,{master:d({},t.master,{data:{},rowData:(0,o.Map)(),docId:void 0})});case l.SORT_TAB:return Object.assign({},t,f({},n.scope,Object.assign({},t[n.scope],{layout:Object.assign({},t[n.scope].layout,{tabs:t[n.scope].layout.tabs.map(function(e){return e.tabId===n.tabId?Object.assign({},e,{orderBy:[{fieldName:n.field,ascending:n.asc}]}):e})})})));case l.ACTIVATE_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:n.tabId}}}));case l.UNSELECT_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:null}}}));case l.ADD_ROW_DATA:for(var h=(0,o.Map)(),_=0,m=Object.entries(n.data);_0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,a.parsePath)(e):e;return{pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state,action:t,key:n}};var c=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,n){if(t===n)return!0;var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("function"===o&&(0,i.default)(!1),"object"===o){if(c(t)&&c(n)&&(0,i.default)(!1),!Array.isArray(t)){var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var r=!1,o={},i=0;i=0&&(n=e.isRange(s,a,!1))}return r},t.prototype.decodeRow=function(e,n,r){var c=t.findStartGuardPattern(n),h=null==r?null:r.get(i.default.NEED_RESULT_POINT_CALLBACK);if(null!=h){var _=new l.default((c[0]+c[1])/2,e);h.foundPossibleResultPoint(_)}var m=this.decodeMiddle(n,c,this.decodeRowStringBuffer),b=m.rowOffset,y=m.resultString;if(null!=h){var g=new l.default(b,e);h.foundPossibleResultPoint(g)}var v=t.decodeEnd(n,b);if(null!=h){var w=new l.default((v[0]+v[1])/2,e);h.foundPossibleResultPoint(w)}var M=v[1],k=M+(M-v[0]);if(k>=n.getSize()||!n.isRange(M,k,!1))throw new d.default;var T=y.toString();if(T.length<8)throw new f.default;if(!t.checkChecksum(T))throw new p.default;var O=(c[1]+c[0])/2,x=(v[1]+v[0])/2,S=this.getBarcodeFormat(),E=[new l.default(O,e),new l.default(x,e)],A=new a.default(T,null,0,E,S,(new Date).getTime()),C=0;try{var L=u.default.decodeRow(e,n,v[1]);A.putMetadata(s.default.UPC_EAN_EXTENSION,L.getText()),A.putAllMetadata(L.getResultMetadata()),A.addResultPoints(L.getResultPoints()),C=L.getText().length}catch(e){}var P=null==r?null:r.get(i.default.ALLOWED_EAN_EXTENSIONS);if(null!=P){var D=!1;for(var I in P)if(C.toString()===I){D=!0;break}if(!D)throw new d.default}return S===o.default.EAN_13||o.default.UPC_A,A},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){if((o=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||o>9)throw new f.default;n+=o}n*=3;for(r=t-2;r>=0;r-=2){var o;if((o=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||o>9)throw new f.default;n+=o}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPattern=function(e,n,r,o,i){for(var a=e.getSize(),s=0,l=n=r?e.getNextUnset(n):e.getNextSet(n),u=o.length,f=r,p=n;p=0)return a;throw new d.default},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=[1,1,1],t.MIDDLE_PATTERN=[1,1,1,1,1],t.END_PATTERN=[1,1,1,1,1,1],t.L_PATTERNS=[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],t}(c.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(41);!function(e){e[e.Cp437=0]="Cp437",e[e.ISO8859_1=1]="ISO8859_1",e[e.ISO8859_2=2]="ISO8859_2",e[e.ISO8859_3=3]="ISO8859_3",e[e.ISO8859_4=4]="ISO8859_4",e[e.ISO8859_5=5]="ISO8859_5",e[e.ISO8859_6=6]="ISO8859_6",e[e.ISO8859_7=7]="ISO8859_7",e[e.ISO8859_8=8]="ISO8859_8",e[e.ISO8859_9=9]="ISO8859_9",e[e.ISO8859_10=10]="ISO8859_10",e[e.ISO8859_11=11]="ISO8859_11",e[e.ISO8859_13=12]="ISO8859_13",e[e.ISO8859_14=13]="ISO8859_14",e[e.ISO8859_15=14]="ISO8859_15",e[e.ISO8859_16=15]="ISO8859_16",e[e.SJIS=16]="SJIS",e[e.Cp1250=17]="Cp1250",e[e.Cp1251=18]="Cp1251",e[e.Cp1252=19]="Cp1252",e[e.Cp1256=20]="Cp1256",e[e.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",e[e.UTF8=22]="UTF8",e[e.ASCII=23]="ASCII",e[e.Big5=24]="Big5",e[e.GB18030=25]="GB18030",e[e.EUC_KR=26]="EUC_KR"}(r=t.CharacterSetValueIdentifiers||(t.CharacterSetValueIdentifiers={}));var i=function(){function e(t,n,r){for(var o=[],i=3;i=900)throw new o.default("incorect value");var n=e.VALUES_TO_ECI.get(t);if(void 0===n)throw new o.default("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(void 0===n)throw new o.default("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(r.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(r.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(r.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(r.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(r.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(r.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(r.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(r.Big5,28,"Big5"),e.GB18030=new e(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(r.EUC_KR,30,"EUC_KR","EUC-KR"),e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(47).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74),o=n(235),i=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(e,t,n,r){throw new o.default("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new o.default("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new o.default("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new r.default,n=0;n0){var d=null;(a||i)&&(d=a||i),u=_objectSpread({},u,setSelectedValue(c,d,i))}else u.selected=null;if(!u.selected&&c.size>0){var f=null;(0,_lodash.isEqual)(e.selected,a)||(f=a),f&&(u=_objectSpread({},u,setSelectedValue(c,f,i)))}}Object.keys(u).length&&this.setState(_objectSpread({},u),function(){t.focusDropdown()})}},{key:"handleClickOutside",value:function(e){var t=this.props,n=t.isFocused,r=t.onCloseDropdown,o=t.onBlur,i=t.selected,a=e.target;if(n){if(a.classList&&a.classList.contains("input-dropdown-list"))return;this.setState({selected:i||null},function(){r(),o()})}}},{key:"handleSelect",value:function(e){var t=this,n=this.props,r=n.onSelect,o=n.onCloseDropdown,i=this.state.dropdownList,a=_objectSpread({},setSelectedValue(i,e));Array.isArray(e)?r(e):this.setState(a,function(){null===e.key?r(null):r(e),o(),setTimeout(function(){t.focusDropdown()},0)})}},{key:"focusDropdown",value:function(){this.props.onFocus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.rank,r=t.readonly,o=t.defaultValue,i=t.selected,a=t.align,s=t.updated,l=t.loading,c=t.rowId,u=t.isModal,d=t.tabIndex,f=t.disabled,p=t.mandatory,h=t.validStatus,_=t.lookupList,m=t.isToggled,b=t.isFocused,y=t.clearable,g=t.isMultiselect,v="",w="";w="string"==typeof o?o:o&&o.caption,_?v=w:i&&(v=i.caption),w=this.props.lookupList?this.props.properties.emptyText:w;var M=_react.default.createElement(_reactTether.default,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"scrollParent"},{to:"window",pin:["bottom"]}]},_react.default.createElement("div",{ref:function(t){return e.dropdown=t},className:(0,_classnames2.default)("input-dropdown-container",{"input-disabled":r,"input-dropdown-container-static":c,"input-table":c&&!u,"input-empty":!v,"lookup-dropdown":_,"select-dropdown":!_,focused:b,opened:m,"input-mandatory":!_&&p&&!i}),tabIndex:d,onFocus:r?null:this.focusDropdown,onClick:r?null:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},_react.default.createElement("div",{className:(0,_classnames2.default)("input-dropdown input-block",{"input-secondary":n,pulse:s,"input-mandatory":p&&!i,"input-error":h&&!h.valid&&!h.initialValue&&!m}),ref:function(t){return e.inputContainer=t}},_react.default.createElement("div",{className:(0,_classnames2.default)("input-editable input-dropdown-focused",_defineProperty({},"text-".concat(a),a))},_react.default.createElement("input",{type:"text",className:(0,_classnames2.default)("input-field js-input-field","font-weight-semibold",{"input-disabled":f}),readOnly:!0,tabIndex:-1,placeholder:w,value:v,disabled:r||f})),y&&i&&!r&&_react.default.createElement("div",{className:"input-icon",onClick:this.handleClear},_react.default.createElement("i",{className:"meta-icon-close-alt"})),!i&&_react.default.createElement("div",{className:"input-icon input-readonly"},_react.default.createElement("i",{className:"meta-icon-down-1"})))),b&&m&&_react.default.createElement(_SelectionDropdown.default,{loading:l,options:this.state.dropdownList,empty:"There is no choice available",selected:this.state.selected,width:this.dropdown.offsetWidth,onChange:this.handleTemporarySelection,onSelect:this.handleSelect,onCancel:this.handleCancel})),k=_react.default.createElement(_MultiSelect.default,{options:this.state.dropdownList,onOpenDropdown:this.props.onOpenDropdown,onCloseDropdown:this.props.onCloseDropdown,isToggled:this.props.isToggled,onFocus:this.props.onFocus,onSelect:this.props.onSelect,selectedItems:this.props.selected});return _react.default.createElement(_react.default.Fragment,null,g&&k,!g&&M)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawList}(_react.PureComponent);exports.RawList=RawList,RawList.propTypes={filter:_propTypes.default.object,readonly:_propTypes.default.bool,clearable:_propTypes.default.bool,list:_propTypes.default.object,listHash:_propTypes.default.string,rank:_propTypes.default.any,defaultValue:_propTypes.default.any,selected:_propTypes.default.any,align:_propTypes.default.any,emptyText:_propTypes.default.string,lastProperty:_propTypes.default.any,updated:_propTypes.default.bool,loading:_propTypes.default.bool,properties:_propTypes.default.object,rowId:_propTypes.default.any,isModal:_propTypes.default.bool,tabIndex:_propTypes.default.number,disabled:_propTypes.default.bool,mandatory:_propTypes.default.bool,validStatus:_propTypes.default.any,lookupList:_propTypes.default.any,initialFocus:_propTypes.default.any,doNotOpenOnFocus:_propTypes.default.bool,isFocused:_propTypes.default.bool.isRequired,isToggled:_propTypes.default.bool.isRequired,autoFocus:_propTypes.default.bool,disableAutofocus:_propTypes.default.func,onFocus:_propTypes.default.func.isRequired,onBlur:_propTypes.default.func.isRequired,onSelect:_propTypes.default.func.isRequired,onOpenDropdown:_propTypes.default.func.isRequired,onCloseDropdown:_propTypes.default.func.isRequired,isMultiselect:_propTypes.default.bool},RawList.defaultProps={tabIndex:-1,clearable:!0};var _default=(0,_reactOnclickoutside.default)(RawList),_default2=_default;exports.default=_default2,function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(setSelectedValue,"setSelectedValue","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/List/RawList.js"),e.register(RawList,"RawList","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/List/RawList.js"),e.register(_default,"default","/var/lib/jenkins/workspace/etasfresh-webui-frontend_release/src/components/widget/List/RawList.js"))}(),function(){var e="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(882))},function(e,t,n){"use strict";(function(t){var r=n(76),o=n(66),i=n(142);e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in t||(t[e.exports.WPrefix]={})},postMessage:function(n,r){t.parent!==t&&t.parent.postMessage(o.stringify({windowId:e.exports.currentWindowId,type:n,data:r||""}),"*")},createIframe:function(e,n){var o,i,a=t.document.createElement("iframe"),s=function(){clearTimeout(o);try{a.onload=null}catch(e){}a.onerror=null},l=function(){a&&(s(),setTimeout(function(){a&&a.parentNode.removeChild(a),a=null},0),r.unloadDel(i))},c=function(e){a&&(l(),n(e))};return a.src=e,a.style.display="none",a.style.position="absolute",a.onerror=function(){c("onerror")},a.onload=function(){clearTimeout(o),o=setTimeout(function(){c("onload timeout")},2e3)},t.document.body.appendChild(a),o=setTimeout(function(){c("timeout")},15e3),i=r.unloadAdd(l),{post:function(e,t){setTimeout(function(){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}},0)},cleanup:l,loaded:s}},createHtmlfile:function(n,o){var i,a,s,l=["Active"].concat("Object").join("X"),c=new t[l]("htmlfile"),u=function(){clearTimeout(i),s.onerror=null},d=function(){c&&(u(),r.unloadDel(a),s.parentNode.removeChild(s),s=c=null,CollectGarbage())},f=function(e){c&&(d(),o(e))};c.open(),c.write(' - + diff --git a/docker-src/webui/sources/dist/info.json b/docker-src/webui/sources/dist/info.json index feb0780..c755cc9 100644 --- a/docker-src/webui/sources/dist/info.json +++ b/docker-src/webui/sources/dist/info.json @@ -1,10 +1,10 @@ { "build": { - "releaseVersion": "5.140.2-447+release", - "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/447/", - "jenkinsBuildNo": "447", + "releaseVersion": "5.141.2-451+release", + "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/451/", + "jenkinsBuildNo": "451", "jenkinsJobName": "metasfresh-webui-frontend/release", - "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-447" - "gitSHA1": "d56e6eb626f40fda65ab70b62801eb63cfd9e9c4" + "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-451" + "gitSHA1": "bcca7b63f1e88274342a563913b27533ed605a84" } } \ No newline at end of file diff --git a/webapi/Dockerfile b/webapi/Dockerfile index a3b7006..05b12f2 100644 --- a/webapi/Dockerfile +++ b/webapi/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webapi:5.140 +FROM metasfresh/metasfresh-webapi:5.141 COPY sources/configs/* /opt/metasfresh-webui-api/ COPY sources/start_webapi.sh /opt/metasfresh-webui-api/ diff --git a/webui/Dockerfile b/webui/Dockerfile index 530d8f0..e2a435a 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webui:5.140 +FROM metasfresh/metasfresh-webui:5.141 COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/