/* Minification failed. Returning unminified contents.
(2564,7123-7124): run-time error JS1010: Expected identifier: (
(2564,7179-7180): run-time error JS1010: Expected identifier: (
(2564,19223-19224): run-time error JS1010: Expected identifier: (
(2564,19307-19308): run-time error JS1010: Expected identifier: (
(2564,258770-258771): run-time error JS1010: Expected identifier: (
(2564,252696-252702): run-time error JS1323: Duplicate class element name: decode
(2564,101562-101593): run-time error JS1323: Duplicate class element name: extractNumericValueFromBitArray
(2564,19307-19312): run-time error JS1315: Setter methods must have a single formal argument: (n,t)
 */
/*
 AngularJS v1.8.3
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(n,e){'use strict';function m(d,k,l){var a=l.baseHref(),h=d[0];return function(f,b,c){var d,g;c=c||{};g=c.expires;d=e.isDefined(c.path)?c.path:a;e.isUndefined(b)&&(g="Thu, 01 Jan 1970 00:00:00 GMT",b="");e.isString(g)&&(g=new Date(g));b=encodeURIComponent(f)+"="+encodeURIComponent(b);b=b+(d?";path="+d:"")+(c.domain?";domain="+c.domain:"");b+=g?";expires="+g.toUTCString():"";b+=c.secure?";secure":"";b+=c.samesite?";samesite="+c.samesite:"";c=b.length+1;4096<c&&k.warn("Cookie '"+f+"' possibly not set or overflowed because it was too large ("+
c+" > 4096 bytes)!");h.cookie=b}}e.module("ngCookies",["ng"]).info({angularVersion:"1.8.3"}).provider("$cookies",[function(){var d=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(k,l){return{get:function(a){return k()[a]},getObject:function(a){return(a=this.get(a))?e.fromJson(a):a},getAll:function(){return k()},put:function(a,h,f){l(a,h,f?e.extend({},d,f):d)},putObject:function(a,d,f){this.put(a,e.toJson(d),f)},remove:function(a,h){l(a,void 0,h?e.extend({},d,h):d)}}}]}]);m.$inject=
["$document","$log","$browser"];e.module("ngCookies").provider("$$cookieWriter",function(){this.$get=m})})(window,window.angular);
//# sourceMappingURL=angular-cookies.min.js.map
;
/*
 AngularJS v1.8.3
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(Y,z){'use strict';function Fa(a,b,c){if(!a)throw Pa("areq",b||"?",c||"required");return a}function Ga(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;Z(a)&&(a=a.join(" "));Z(b)&&(b=b.join(" "));return a+" "+b}function Qa(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function $(a,b,c){var d="";a=Z(a)?a:a&&G(a)&&a.length?a.split(/\s+/):[];s(a,function(a,k){a&&0<a.length&&(d+=0<k?" ":"",d+=c?b+a:a+b)});return d}function Ha(a){if(a instanceof A)switch(a.length){case 0:return a;
case 1:if(1===a[0].nodeType)return a;break;default:return A(va(a))}if(1===a.nodeType)return A(a)}function va(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1===c.nodeType)return c}}function Ra(a,b,c){s(b,function(b){a.addClass(b,c)})}function Sa(a,b,c){s(b,function(b){a.removeClass(b,c)})}function aa(a){return function(b,c){c.addClass&&(Ra(a,b,c.addClass),c.addClass=null);c.removeClass&&(Sa(a,b,c.removeClass),c.removeClass=null)}}function pa(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||
N;a.domOperation=function(){a.$$domOperationFired=!0;b();b=N};a.$$prepared=!0}return a}function ha(a,b){Ia(a,b);Ja(a,b)}function Ia(a,b){b.from&&(a.css(b.from),b.from=null)}function Ja(a,b){b.to&&(a.css(b.to),b.to=null)}function T(a,b,c){var d=b.options||{};c=c.options||{};var f=(d.addClass||"")+" "+(c.addClass||""),k=(d.removeClass||"")+" "+(c.removeClass||"");a=Ta(a.attr("class"),f,k);c.preparationClasses&&(d.preparationClasses=ba(c.preparationClasses,d.preparationClasses),delete c.preparationClasses);
f=d.domOperation!==N?d.domOperation:null;wa(d,c);f&&(d.domOperation=f);d.addClass=a.addClass?a.addClass:null;d.removeClass=a.removeClass?a.removeClass:null;b.addClass=d.addClass;b.removeClass=d.removeClass;return d}function Ta(a,b,c){function d(a){G(a)&&(a=a.split(" "));var c={};s(a,function(a){a.length&&(c[a]=!0)});return c}var f={};a=d(a);b=d(b);s(b,function(a,c){f[c]=1});c=d(c);s(c,function(a,c){f[c]=1===f[c]?null:-1});var k={addClass:"",removeClass:""};s(f,function(c,b){var d,f;1===c?(d="addClass",
f=!a[b]||a[b+"-remove"]):-1===c&&(d="removeClass",f=a[b]||a[b+"-add"]);f&&(k[d].length&&(k[d]+=" "),k[d]+=b)});return k}function K(a){return a instanceof A?a[0]:a}function Ua(a,b,c,d){a="";c&&(a=$(c,"ng-",!0));d.addClass&&(a=ba(a,$(d.addClass,"-add")));d.removeClass&&(a=ba(a,$(d.removeClass,"-remove")));a.length&&(d.preparationClasses=a,b.addClass(a))}function xa(a,b){var c=b?"paused":"",d=ca+"PlayState";ma(a,[d,c]);return[d,c]}function ma(a,b){a.style[b[0]]=b[1]}function ba(a,b){return a?b?a+" "+
b:a:b}function Ka(a,b,c){var d=Object.create(null),f=a.getComputedStyle(b)||{};s(c,function(a,c){var b=f[a];if(b){var L=b.charAt(0);if("-"===L||"+"===L||0<=L)b=Va(b);0===b&&(b=null);d[c]=b}});return d}function Va(a){var b=0;a=a.split(/\s*,\s*/);s(a,function(a){"s"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function ya(a){return 0===a||null!=a}function La(a,b){var c=M,d=a+"s";b?c+="Duration":d+=" linear all";return[c,d]}function Ma(a,b,c){s(c,
function(c){a[c]=za(a[c])?a[c]:b.style.getPropertyValue(c)})}var M,Aa,ca,Ba;void 0===Y.ontransitionend&&void 0!==Y.onwebkittransitionend?(M="WebkitTransition",Aa="webkitTransitionEnd transitionend"):(M="transition",Aa="transitionend");void 0===Y.onanimationend&&void 0!==Y.onwebkitanimationend?(ca="WebkitAnimation",Ba="webkitAnimationEnd animationend"):(ca="animation",Ba="animationend");var qa=ca+"Delay",Ca=ca+"Duration",na=M+"Delay",Na=M+"Duration",Pa=z.$$minErr("ng"),ra={blockTransitions:function(a,
b){var c=b?"-"+b+"s":"";ma(a,[na,c]);return[na,c]}},Wa={transitionDuration:Na,transitionDelay:na,transitionProperty:M+"Property",animationDuration:Ca,animationDelay:qa,animationIterationCount:ca+"IterationCount"},Xa={transitionDuration:Na,transitionDelay:na,animationDuration:Ca,animationDelay:qa},Da,wa,s,Z,za,sa,Ea,ta,G,R,A,N;z.module("ngAnimate",[],function(){N=z.noop;Da=z.copy;wa=z.extend;A=z.element;s=z.forEach;Z=z.isArray;G=z.isString;ta=z.isObject;R=z.isUndefined;za=z.isDefined;Ea=z.isFunction;
sa=z.isElement}).info({angularVersion:"1.8.3"}).directive("ngAnimateSwap",["$animate",function(a){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(b,c,d,f,k){var e,Q;b.$watchCollection(d.ngAnimateSwap||d["for"],function(b){e&&a.leave(e);Q&&(Q.$destroy(),Q=null);(b||0===b)&&k(function(b,d){e=b;Q=d;a.enter(b,null,c)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,c,d){function f(a){c.data("$$ngAnimateChildren","on"===a||"true"===
a)}var k=d.ngAnimateChildren;G(k)&&0===k.length?c.data("$$ngAnimateChildren",!0):(f(a(k)(b)),d.$observe("ngAnimateChildren",f))}}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),e=0;e<b.length;e++)b[e]();f||a(function(){f||c()})}}var d,f;d=b.queue=[];b.waitUntilQuiet=function(b){f&&f();f=a(function(){f=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){return{addClass:a.addClass,
removeClass:a.removeClass,from:a.from,to:a.to}}function c(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);s(a,function(a){b[a]=!0});return b}function d(a,b){if(a&&b){var d=c(b);return a.split(" ").some(function(a){return d[a]})}}function f(a,b,c){return e[a].some(function(a){return a(b,c)})}function k(a,b){var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var e=this.rules={skip:[],cancel:[],join:[]};e.join.push(function(a,b){return!a.structural&&k(a)});
e.skip.push(function(a,b){return!a.structural&&!k(a)});e.skip.push(function(a,b){return"leave"===b.event&&a.structural});e.skip.push(function(a,b){return b.structural&&2===b.state&&!a.structural});e.cancel.push(function(a,b){return b.structural&&a.structural});e.cancel.push(function(a,b){return 2===b.state&&a.structural});e.cancel.push(function(a,b){if(b.structural)return!1;var c=a.addClass,f=a.removeClass,k=b.addClass,e=b.removeClass;return R(c)&&R(f)||R(k)&&R(e)?!1:d(c,e)||d(f,k)});this.$get=["$$rAF",
"$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(c,d,e,C,U,oa,H,u,t,I,da){function ia(a){O.delete(a.target)}function v(){var a=!1;return function(b){a?b():d.$$postDigest(function(){a=!0;b()})}}function ua(a,b,c){var g=[],l=m[c];l&&s(l,function(l){Oa.call(l.node,b)?g.push(l.callback):"leave"===c&&Oa.call(l.node,a)&&g.push(l.callback)});return g}function h(a,b,c){var l=va(b);return a.filter(function(a){return!(a.node===
l&&(!c||a.callback===c))})}function q(a,J,w){function e(a,b,l,g){u(function(){var a=ua(ia,m,b);a.length?c(function(){s(a,function(a){a(h,l,g)});"close"!==l||m.parentNode||D.off(m)}):"close"!==l||m.parentNode||D.off(m)});a.progress(b,l,g)}function I(a){var b=h,c=n;c.preparationClasses&&(b.removeClass(c.preparationClasses),c.preparationClasses=null);c.activeClasses&&(b.removeClass(c.activeClasses),c.activeClasses=null);W(h,n);ha(h,n);n.domOperation();q.complete(!a)}var n=Da(w),h=Ha(a),m=K(h),ia=m&&
m.parentNode,n=pa(n),q=new H,u=v();Z(n.addClass)&&(n.addClass=n.addClass.join(" "));n.addClass&&!G(n.addClass)&&(n.addClass=null);Z(n.removeClass)&&(n.removeClass=n.removeClass.join(" "));n.removeClass&&!G(n.removeClass)&&(n.removeClass=null);n.from&&!ta(n.from)&&(n.from=null);n.to&&!ta(n.to)&&(n.to=null);if(!(B&&m&&fa(m,J,w)&&Ya(m,n)))return I(),q;var x=0<=["enter","move","leave"].indexOf(J),r=da(),P=r||O.get(m);w=!P&&y.get(m)||{};var p=!!w.state;P||p&&1===w.state||(P=!E(m,ia,J));if(P)return r&&
e(q,J,"start",b(n)),I(),r&&e(q,J,"close",b(n)),q;x&&F(m);r={structural:x,element:h,event:J,addClass:n.addClass,removeClass:n.removeClass,close:I,options:n,runner:q};if(p){if(f("skip",r,w)){if(2===w.state)return I(),q;T(h,w,r);return w.runner}if(f("cancel",r,w))if(2===w.state)w.runner.end();else if(w.structural)w.close();else return T(h,w,r),w.runner;else if(f("join",r,w))if(2===w.state)T(h,r,{});else return Ua(t,h,x?J:null,n),J=r.event=w.event,n=T(h,w,r),w.runner}else T(h,r,{});(p=r.structural)||
(p="animate"===r.event&&0<Object.keys(r.options.to||{}).length||k(r));if(!p)return I(),g(m),q;var C=(w.counter||0)+1;r.counter=C;l(m,1,r);d.$$postDigest(function(){h=Ha(a);var c=y.get(m),d=!c,c=c||{},t=0<(h.parent()||[]).length&&("animate"===c.event||c.structural||k(c));if(d||c.counter!==C||!t){d&&(W(h,n),ha(h,n));if(d||x&&c.event!==J)n.domOperation(),q.end();t||g(m)}else J=!c.structural&&k(c,!0)?"setClass":c.event,l(m,2),c=oa(h,J,c.options),q.setHost(c),e(q,J,"start",b(n)),c.done(function(a){I(!a);
(a=y.get(m))&&a.counter===C&&g(m);e(q,J,"close",b(n))})});return q}function F(a){a=a.querySelectorAll("[data-ng-animate]");s(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate"),10),c=y.get(a);if(c)switch(b){case 2:c.runner.end();case 1:y.delete(a)}})}function g(a){a.removeAttribute("data-ng-animate");y.delete(a)}function E(a,b,c){c=C[0].body;var l=K(e),g=a===c||"HTML"===a.nodeName,d=a===l,t=!1,m=O.get(a),h;for((a=A.data(a,"$ngAnimatePin"))&&(b=K(a));b;){d||(d=b===l);if(1!==b.nodeType)break;
a=y.get(b)||{};if(!t){var f=O.get(b);if(!0===f&&!1!==m){m=!0;break}else!1===f&&(m=!1);t=a.structural}if(R(h)||!0===h)a=A.data(b,"$$ngAnimateChildren"),za(a)&&(h=a);if(t&&!1===h)break;g||(g=b===c);if(g&&d)break;if(!d&&(a=A.data(b,"$ngAnimatePin"))){b=K(a);continue}b=b.parentNode}return(!t||h)&&!0!==m&&d&&g}function l(a,b,c){c=c||{};c.state=b;a.setAttribute("data-ng-animate",b);c=(b=y.get(a))?wa(b,c):c;y.set(a,c)}var y=new U,O=new U,B=null,P=d.$watch(function(){return 0===u.totalPendingRequests},function(a){a&&
(P(),d.$$postDigest(function(){d.$$postDigest(function(){null===B&&(B=!0)})}))}),m=Object.create(null);U=a.customFilter();var la=a.classNameFilter();I=function(){return!0};var fa=U||I,Ya=la?function(a,b){var c=[a.getAttribute("class"),b.addClass,b.removeClass].join(" ");return la.test(c)}:I,W=aa(t),Oa=Y.Node.prototype.contains||function(a){return this===a||!!(this.compareDocumentPosition(a)&16)},D={on:function(a,b,c){var l=va(b);m[a]=m[a]||[];m[a].push({node:l,callback:c});A(b).on("$destroy",function(){y.get(l)||
D.off(a,b,c)})},off:function(a,b,c){if(1!==arguments.length||G(arguments[0])){var l=m[a];l&&(m[a]=1===arguments.length?null:h(l,b,c))}else for(l in b=arguments[0],m)m[l]=h(m[l],b)},pin:function(a,b){Fa(sa(a),"element","not an element");Fa(sa(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a,b,c,l){c=c||{};c.domOperation=l;return q(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!B;else if(sa(a)){var l=K(a);if(1===c)b=!O.get(l);else{if(!O.has(l))A(a).on("$destroy",
ia);O.set(l,!b)}}else b=B=!!a;return b}};return D}]}]).provider("$$animateCache",function(){var a=0,b=Object.create(null);this.$get=[function(){return{cacheKey:function(b,d,f,k){var e=b.parentNode;b=[e.$$ngAnimateParentKey||(e.$$ngAnimateParentKey=++a),d,b.getAttribute("class")];f&&b.push(f);k&&b.push(k);return b.join(" ")},containsCachedAnimationWithoutDuration:function(a){return(a=b[a])&&!a.isValid||!1},flush:function(){b=Object.create(null)},count:function(a){return(a=b[a])?a.total:0},get:function(a){return(a=
b[a])&&a.value},put:function(a,d,f){b[a]?(b[a].total++,b[a].value=d):b[a]={total:1,value:d,isValid:f}}}}]}).provider("$$animation",["$animateProvider",function(a){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(a,d,f,k,e,Q,L){function x(a){function b(a){if(a.processed)return a;a.processed=!0;var d=a.domNode,t=d.parentNode;f.set(d,a);for(var h;t;){if(h=f.get(t)){h.processed||(h=b(h));break}t=t.parentNode}(h||
c).children.push(a);return a}var c={children:[]},d,f=new e;for(d=0;d<a.length;d++){var da=a[d];f.set(da.domNode,a[d]={domNode:da.domNode,element:da.element,fn:da.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var t=0,f=[];for(d=0;d<c.length;d++){var g=c[d];0>=a&&(a=t,t=0,b.push(f),f=[]);f.push(g);g.children.forEach(function(a){t++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var C=[],U=aa(a);return function(e,
H,u){function t(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];s(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function I(a){var b=[],c={};s(a,function(a,d){var l=K(a.element),g=0<=["enter","move"].indexOf(a.event),l=a.structural?t(l):[];if(l.length){var f=g?"to":"from";s(l,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][f]={animationID:d,element:A(a)}})}else b.push(a)});var d={},g={};s(c,function(c,
t){var f=c.from,e=c.to;if(f&&e){var h=a[f.animationID],k=a[e.animationID],E=f.animationID.toString();if(!g[E]){var I=g[E]={structural:!0,beforeStart:function(){h.beforeStart();k.beforeStart()},close:function(){h.close();k.close()},classes:da(h.classes,k.classes),from:h,to:k,anchors:[]};I.classes.length?b.push(I):(b.push(h),b.push(k))}g[E].anchors.push({out:f.element,"in":e.element})}else f=f?f.animationID:e.animationID,e=f.toString(),d[e]||(d[e]=!0,b.push(a[f]))});return b}function da(a,b){a=a.split(" ");
b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var g=a[d];if("ng-"!==g.substring(0,3))for(var t=0;t<b.length;t++)if(g===b[t]){c.push(g);break}}return c.join(" ")}function ia(a){for(var c=b.length-1;0<=c;c--){var d=f.get(b[c])(a);if(d)return d}}function v(a,b){function c(a){(a=a.data("$$animationRunner"))&&a.setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function ua(){var a=e.data("$$animationRunner");!a||"leave"===H&&u.$$domOperationFired||a.end()}function h(b){e.off("$destroy",
ua);e.removeData("$$animationRunner");U(e,u);ha(e,u);u.domOperation();E&&a.removeClass(e,E);F.complete(!b)}u=pa(u);var q=0<=["enter","move","leave"].indexOf(H),F=new k({end:function(){h()},cancel:function(){h(!0)}});if(!b.length)return h(),F;var g=Ga(e.attr("class"),Ga(u.addClass,u.removeClass)),E=u.tempClasses;E&&(g+=" "+E,u.tempClasses=null);q&&e.data("$$animatePrepareClasses","ng-"+H+"-prepare");e.data("$$animationRunner",F);C.push({element:e,classes:g,event:H,structural:q,options:u,beforeStart:function(){E=
(E?E+" ":"")+"ng-animate";a.addClass(e,E);var b=e.data("$$animatePrepareClasses");b&&a.removeClass(e,b)},close:h});e.on("$destroy",ua);if(1<C.length)return F;d.$$postDigest(function(){var b=[];s(C,function(a){a.element.data("$$animationRunner")?b.push(a):a.close()});C.length=0;var d=I(b),g=[];s(d,function(a){var b=a.from?a.from.element:a.element,c=u.addClass,d=L.cacheKey(b[0],a.event,(c?c+" ":"")+"ng-animate",u.removeClass);g.push({element:b,domNode:K(b),fn:function(){var b,c=a.close;if(L.containsCachedAnimationWithoutDuration(d))c();
else{a.beforeStart();if((a.anchors?a.from.element||a.to.element:a.element).data("$$animationRunner")){var g=ia(a);g&&(b=g.start)}b?(b=b(),b.done(function(a){c(!a)}),v(a,b)):c()}}})});for(var d=x(g),t=0;t<d.length;t++)for(var f=d[t],e=0;e<f.length;e++){var h=f[e],k=h.element;d[t][e]=h.fn;0===t?k.removeData("$$animatePrepareClasses"):(h=k.data("$$animatePrepareClasses"))&&a.addClass(k,h)}Q(d)});return F}}]}]).provider("$animateCss",["$animateProvider",function(a){this.$get=["$window","$$jqLite","$$AnimateRunner",
"$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,c,d,f,k,e,Q,L,x){function C(d,f,e,x){var v,s="stagger-"+e;0<k.count(e)&&(v=k.get(s),v||(f=$(f,"-stagger"),c.addClass(d,f),v=Ka(a,d,x),v.animationDuration=Math.max(v.animationDuration,0),v.transitionDuration=Math.max(v.transitionDuration,0),c.removeClass(d,f),k.put(s,v,!0)));return v||{}}function U(a){u.push(a);L.waitUntilQuiet(function(){k.flush();for(var a=e(),b=0;b<u.length;b++)u[b](a);u.length=0})}
function z(c,d,f,e){d=k.get(f);d||(d=Ka(a,c,Wa),"infinite"===d.animationIterationCount&&(d.animationIterationCount=1));k.put(f,d,e||0<d.transitionDuration||0<d.animationDuration);c=d;f=c.animationDelay;e=c.transitionDelay;c.maxDelay=f&&e?Math.max(f,e):f||e;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var H=aa(c),u=[];return function(a,b){function e(){v()}function L(){v(!0)}function v(b){if(!(P||la&&m)){P=!0;m=!1;V&&!g.$$skipPreparationClasses&&
c.removeClass(a,V);ba&&c.removeClass(a,ba);xa(l,!1);ra.blockTransitions(l,!1);s(y,function(a){l.style[a[0]]=""});H(a,g);ha(a,g);Object.keys(E).length&&s(E,function(a,b){a?l.style.setProperty(b,a):l.style.removeProperty(b)});if(g.onDone)g.onDone();w&&w.length&&a.off(w.join(" "),q);var d=a.data("$$animateCss");d&&(f.cancel(d[0].timer),a.removeData("$$animateCss"));fa&&fa.complete(!b)}}function u(a){p.blockTransition&&ra.blockTransitions(l,a);p.blockKeyframeAnimation&&xa(l,!!a)}function h(){fa=new d({end:e,
cancel:L});U(N);v();return{$$willAnimate:!1,start:function(){return fa},end:e}}function q(a){a.stopPropagation();var b=a.originalEvent||a;b.target===l&&(a=b.$manualTimeStamp||Date.now(),b=parseFloat(b.elapsedTime.toFixed(3)),Math.max(a-J,0)>=G&&b>=D&&(la=!0,v()))}function F(){function b(){if(!P){u(!1);s(y,function(a){l.style[a[0]]=a[1]});H(a,g);c.addClass(a,ba);if(p.recalculateTimingStyles){T=l.getAttribute("class")+" "+V;ka=k.cacheKey(l,ja,g.addClass,g.removeClass);r=z(l,T,ka,!1);ga=r.maxDelay;W=
Math.max(ga,0);D=r.maxDuration;if(0===D){v();return}p.hasTransitions=0<r.transitionDuration;p.hasAnimations=0<r.animationDuration}p.applyAnimationDelay&&(ga="boolean"!==typeof g.delay&&ya(g.delay)?parseFloat(g.delay):ga,W=Math.max(ga,0),r.animationDelay=ga,ea=[qa,ga+"s"],y.push(ea),l.style[ea[0]]=ea[1]);G=1E3*W;R=1E3*D;if(g.easing){var e,h=g.easing;p.hasTransitions&&(e=M+"TimingFunction",y.push([e,h]),l.style[e]=h);p.hasAnimations&&(e=ca+"TimingFunction",y.push([e,h]),l.style[e]=h)}r.transitionDuration&&
w.push(Aa);r.animationDuration&&w.push(Ba);J=Date.now();var m=G+1.5*R;e=J+m;var h=a.data("$$animateCss")||[],F=!0;if(h.length){var n=h[0];(F=e>n.expectedEndTime)?f.cancel(n.timer):h.push(v)}F&&(m=f(d,m,!1),h[0]={timer:m,expectedEndTime:e},h.push(v),a.data("$$animateCss",h));if(w.length)a.on(w.join(" "),q);g.to&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.to)),Ja(a,g))}}function d(){var b=a.data("$$animateCss");if(b){for(var c=1;c<b.length;c++)b[c]();a.removeData("$$animateCss")}}if(!P)if(l.parentNode){var e=
function(a){if(la)m&&a&&(m=!1,v());else if(m=!a,r.animationDuration)if(a=xa(l,m),m)y.push(a);else{var b=y,c=b.indexOf(a);0<=a&&b.splice(c,1)}},h=0<aa&&(r.transitionDuration&&0===X.transitionDuration||r.animationDuration&&0===X.animationDuration)&&Math.max(X.animationDelay,X.transitionDelay);h?f(b,Math.floor(h*aa*1E3),!1):b();A.resume=function(){e(!0)};A.pause=function(){e(!1)}}else v()}var g=b||{};g.$$prepared||(g=pa(Da(g)));var E={},l=K(a);if(!l||!l.parentNode||!x.enabled())return h();var y=[],O=
a.attr("class"),B=Qa(g),P,m,la,fa,A,W,G,D,R,J,w=[];if(0===g.duration||!Q.animations&&!Q.transitions)return h();var ja=g.event&&Z(g.event)?g.event.join(" "):g.event,Y=ja&&g.structural,n="",S="";Y?n=$(ja,"ng-",!0):ja&&(n=ja);g.addClass&&(S+=$(g.addClass,"-add"));g.removeClass&&(S.length&&(S+=" "),S+=$(g.removeClass,"-remove"));g.applyClassesEarly&&S.length&&H(a,g);var V=[n,S].join(" ").trim(),T=O+" "+V,O=B.to&&0<Object.keys(B.to).length;if(!(0<(g.keyframeStyle||"").length||O||V))return h();var X,ka=
k.cacheKey(l,ja,g.addClass,g.removeClass);if(k.containsCachedAnimationWithoutDuration(ka))return V=null,h();0<g.stagger?(B=parseFloat(g.stagger),X={transitionDelay:B,animationDelay:B,transitionDuration:0,animationDuration:0}):X=C(l,V,ka,Xa);g.$$skipPreparationClasses||c.addClass(a,V);g.transitionStyle&&(B=[M,g.transitionStyle],ma(l,B),y.push(B));0<=g.duration&&(B=0<l.style[M].length,B=La(g.duration,B),ma(l,B),y.push(B));g.keyframeStyle&&(B=[ca,g.keyframeStyle],ma(l,B),y.push(B));var aa=X?0<=g.staggerIndex?
g.staggerIndex:k.count(ka):0;(n=0===aa)&&!g.skipBlocking&&ra.blockTransitions(l,9999);var r=z(l,T,ka,!Y),ga=r.maxDelay;W=Math.max(ga,0);D=r.maxDuration;var p={};p.hasTransitions=0<r.transitionDuration;p.hasAnimations=0<r.animationDuration;p.hasTransitionAll=p.hasTransitions&&"all"===r.transitionProperty;p.applyTransitionDuration=O&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions);p.applyAnimationDuration=g.duration&&p.hasAnimations;p.applyTransitionDelay=ya(g.delay)&&(p.applyTransitionDuration||
p.hasTransitions);p.applyAnimationDelay=ya(g.delay)&&p.hasAnimations;p.recalculateTimingStyles=0<S.length;if(p.applyTransitionDuration||p.applyAnimationDuration)D=g.duration?parseFloat(g.duration):D,p.applyTransitionDuration&&(p.hasTransitions=!0,r.transitionDuration=D,B=0<l.style[M+"Property"].length,y.push(La(D,B))),p.applyAnimationDuration&&(p.hasAnimations=!0,r.animationDuration=D,y.push([Ca,D+"s"]));if(0===D&&!p.recalculateTimingStyles)return h();var ba=$(V,"-active");if(null!=g.delay){var ea;
"boolean"!==typeof g.delay&&(ea=parseFloat(g.delay),W=Math.max(ea,0));p.applyTransitionDelay&&y.push([na,ea+"s"]);p.applyAnimationDelay&&y.push([qa,ea+"s"])}null==g.duration&&0<r.transitionDuration&&(p.recalculateTimingStyles=p.recalculateTimingStyles||n);G=1E3*W;R=1E3*D;g.skipBlocking||(p.blockTransition=0<r.transitionDuration,p.blockKeyframeAnimation=0<r.animationDuration&&0<X.animationDelay&&0===X.animationDuration);g.from&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.from)),Ia(a,g));p.blockTransition||
p.blockKeyframeAnimation?u(D):g.skipBlocking||ra.blockTransitions(l,!1);return{$$willAnimate:!0,end:e,start:function(){if(!P)return A={end:e,cancel:L,resume:null,pause:null},fa=new d(A),U(F),fa}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,f,k,e,Q){function L(a){return a.replace(/\bng-\S+\b/g,"")}function x(a,b){G(a)&&
(a=a.split(" "));G(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function C(c,e,f){function k(a){var b={},c=K(a).getBoundingClientRect();s(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=H.scrollTop;break;case "left":d+=H.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function v(){var c=L(f.attr("class")||""),d=x(c,q),c=x(q,c),d=a(h,{to:k(f),addClass:"ng-anchor-in "+d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?
d:null}function C(){h.remove();e.removeClass("ng-animate-shim");f.removeClass("ng-animate-shim")}var h=A(K(e).cloneNode(!0)),q=L(h.attr("class")||"");e.addClass("ng-animate-shim");f.addClass("ng-animate-shim");h.addClass("ng-anchor");u.append(h);var F;c=function(){var c=a(h,{addClass:"ng-anchor-out",delay:!0,from:k(e)});return c.$$willAnimate?c:null}();if(!c&&(F=v(),!F))return C();var g=c||F;return{start:function(){function a(){c&&c.end()}var b,c=g.start();c.done(function(){c=null;if(!F&&(F=v()))return c=
F.start(),c.done(function(){c=null;C();b.complete()}),c;C();b.complete()});return b=new d({end:a,cancel:a})}}}function z(a,b,c,e){var f=oa(a,N),k=oa(b,N),h=[];s(e,function(a){(a=C(c,a.out,a["in"]))&&h.push(a)});if(f||k||0!==h.length)return{start:function(){function a(){s(b,function(a){a.end()})}var b=[];f&&b.push(f.start());k&&b.push(k.start());s(h,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function oa(c){var d=c.element,e=c.options||
{};c.structural&&(e.event=c.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===c.event&&(e.onDone=e.domOperation));e.preparationClasses&&(e.event=ba(e.event,e.preparationClasses));c=a(d,e);return c.$$willAnimate?c:null}if(!k.animations&&!k.transitions)return N;var H=Q[0].body;c=K(f);var u=A(c.parentNode&&11===c.parentNode.nodeType||H.contains(c)?c:H);return function(a){return a.from&&a.to?z(a.from,a.to,a.classes,a.anchors):oa(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=
["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function f(c){c=Z(c)?c:c.split(" ");for(var d=[],f={},k=0;k<c.length;k++){var s=c[k],z=a.$$registeredAnimations[s];z&&!f[s]&&(d.push(b.get(z)),f[s]=!0)}return d}var k=aa(d);return function(a,b,d,x){function C(){x.domOperation();k(a,x)}function z(a,b,d,f,e){switch(d){case "animate":b=[b,f.from,f.to,e];break;case "setClass":b=[b,t,I,e];break;case "addClass":b=[b,t,e];break;case "removeClass":b=[b,I,e];break;default:b=[b,e]}b.push(f);if(a=a.apply(a,
b))if(Ea(a.start)&&(a=a.start()),a instanceof c)a.done(e);else if(Ea(a))return a;return N}function A(a,b,d,e,f){var h=[];s(e,function(e){var l=e[f];l&&h.push(function(){var e,f,h=!1,k=function(a){h||(h=!0,(f||N)(a),e.complete(!a))};e=new c({end:function(){k()},cancel:function(){k(!0)}});f=z(l,a,b,d,function(a){k(!1===a)});return e})});return h}function H(a,b,d,e,f){var h=A(a,b,d,e,f);if(0===h.length){var k,q;"beforeSetClass"===f?(k=A(a,"removeClass",d,e,"beforeRemoveClass"),q=A(a,"addClass",d,e,"beforeAddClass")):
"setClass"===f&&(k=A(a,"removeClass",d,e,"removeClass"),q=A(a,"addClass",d,e,"addClass"));k&&(h=h.concat(k));q&&(h=h.concat(q))}if(0!==h.length)return function(a){var b=[];h.length&&s(h,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){s(b,function(b){a?b.cancel():b.end()})}}}var u=!1;3===arguments.length&&ta(d)&&(x=d,d=null);x=pa(x);d||(d=a.attr("class")||"",x.addClass&&(d+=" "+x.addClass),x.removeClass&&(d+=" "+x.removeClass));var t=x.addClass,I=x.removeClass,G=f(d),K,v;if(G.length){var M,
h;"leave"===b?(h="leave",M="afterLeave"):(h="before"+b.charAt(0).toUpperCase()+b.substr(1),M=b);"enter"!==b&&"move"!==b&&(K=H(a,b,x,G,h));v=H(a,b,x,G,M)}if(K||v){var q;return{$$willAnimate:!0,end:function(){q?q.end():(u=!0,C(),ha(a,x),q=new c,q.complete(!0));return q},start:function(){function b(c){u=!0;C();ha(a,x);q.complete(c)}if(q)return q;q=new c;var d,f=[];K&&f.push(function(a){d=K(a)});f.length?f.push(function(a){C();a(!0)}):C();v&&f.push(function(a){d=v(a)});q.setHost({end:function(){u||((d||
N)(void 0),b(void 0))},cancel:function(){u||((d||N)(!0),b(!0))}});c.chain(f,b);return q}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),e=d(a.to);if(b||e)return{start:function(){function a(){return function(){s(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());e&&
d.push(e.start());c.all(d,function(a){f.complete(a)});var f=new c({end:a(),cancel:a()});return f}}}else return d(a)}}]}])})(window,window.angular);
//# sourceMappingURL=angular-animate.min.js.map
;
/*
 AngularJS v1.8.3
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(s,e){'use strict';function O(e){var g=[];B(g,D).chars(e);return g.join("")}var C=e.$$minErr("$sanitize"),E,g,F,G,H,q,D,I,J,B;e.module("ngSanitize",[]).provider("$sanitize",function(){function h(a,d){return A(a.split(","),d)}function A(a,d){var c={},b;for(b=0;b<a.length;b++)c[d?q(a[b]):a[b]]=!0;return c}function t(a,d){d&&d.length&&g(a,A(d))}function P(a){for(var d={},c=0,b=a.length;c<b;c++){var k=a[c];d[k.name]=k.value}return d}function K(a){return a.replace(/&/g,"&amp;").replace(Q,function(a){var c=
a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(c-55296)+(a-56320)+65536)+";"}).replace(u,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function z(a){for(;a;){if(a.nodeType===s.Node.ELEMENT_NODE)for(var d=a.attributes,c=0,b=d.length;c<b;c++){var k=d[c],f=k.name.toLowerCase();if("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))a.removeAttributeNode(k),c--,b--}(d=a.firstChild)&&z(d);a=v("nextSibling",a)}}function v(a,d){var c=d[a];if(c&&I.call(d,c))throw C("elclob",
d.outerHTML||d.outerText);return c}var y=!1,f=!1;this.$get=["$$sanitizeUri",function(a){y=!0;f&&g(m,l);return function(d){var c=[];J(d,B(c,function(b,c){return!/^unsafe:/.test(a(b,c))}));return c.join("")}}];this.enableSvg=function(a){return H(a)?(f=a,this):f};this.addValidElements=function(a){y||(G(a)&&(a={htmlElements:a}),t(l,a.svgElements),t(r,a.htmlVoidElements),t(m,a.htmlVoidElements),t(m,a.htmlElements));return this};this.addValidAttrs=function(a){y||g(L,A(a,!0));return this};E=e.bind;g=e.extend;
F=e.forEach;G=e.isArray;H=e.isDefined;q=e.$$lowercase;D=e.noop;J=function(a,d){null===a||void 0===a?a="":"string"!==typeof a&&(a=""+a);var c=M(a);if(!c)return"";var b=5;do{if(0===b)throw C("uinput");b--;a=c.innerHTML;c=M(a)}while(a!==c.innerHTML);for(b=c.firstChild;b;){switch(b.nodeType){case 1:d.start(b.nodeName.toLowerCase(),P(b.attributes));break;case 3:d.chars(b.textContent)}var k;if(!(k=b.firstChild)&&(1===b.nodeType&&d.end(b.nodeName.toLowerCase()),k=v("nextSibling",b),!k))for(;null==k;){b=
v("parentNode",b);if(b===c)break;k=v("nextSibling",b);1===b.nodeType&&d.end(b.nodeName.toLowerCase())}b=k}for(;b=c.firstChild;)c.removeChild(b)};B=function(a,d){var c=!1,b=E(a,a.push);return{start:function(a,f){a=q(a);!c&&w[a]&&(c=a);c||!0!==m[a]||(b("<"),b(a),F(f,function(c,f){var e=q(f),h="img"===a&&"src"===e||"background"===e;!0!==L[e]||!0===N[e]&&!d(c,h)||(b(" "),b(f),b('="'),b(K(c)),b('"'))}),b(">"))},end:function(a){a=q(a);c||!0!==m[a]||!0===r[a]||(b("</"),b(a),b(">"));a==c&&(c=!1)},chars:function(a){c||
b(K(a))}}};I=s.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)};var Q=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/([^#-~ |!])/g,r=h("area,br,col,hr,img,wbr"),x=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),p=h("rp,rt"),n=g({},p,x),x=g({},x,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),p=g({},p,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),
l=h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),w=h("script,style"),m=g({},r,x,p,n),N=h("background,cite,href,longdesc,src,xlink:href,xml:base"),n=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),
p=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",
!0),L=g({},N,p,n),M=function(a,d){function c(b){b="<remove></remove>"+b;try{var c=(new a.DOMParser).parseFromString(b,"text/html").body;c.firstChild.remove();return c}catch(d){}}var b;try{b=!!c("")}catch(f){b=!1}if(b)return c;if(!d||!d.implementation)throw C("noinert");b=d.implementation.createHTMLDocument("inert");var e=(b.documentElement||b.getDocumentElement()).querySelector("body");return function(a){e.innerHTML=a;d.documentMode&&z(e);return e}}(s,s.document)}).info({angularVersion:"1.8.3"});
e.module("ngSanitize").filter("linky",["$sanitize",function(h){var g=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,t=/^mailto:/i,q=e.$$minErr("linky"),s=e.isDefined,z=e.isFunction,v=e.isObject,y=e.isString;return function(f,e,u){function r(e){e&&l.push(O(e))}function x(f,h){var g,a=p(f);l.push("<a ");for(g in a)l.push(g+'="'+a[g]+'" ');!s(e)||"target"in a||l.push('target="',e,'" ');l.push('href="',f.replace(/"/g,"&quot;"),'">');r(h);l.push("</a>")}if(null==
f||""===f)return f;if(!y(f))throw q("notstring",f);for(var p=z(u)?u:v(u)?function(){return u}:function(){return{}},n=f,l=[],w,m;f=n.match(g);)w=f[0],f[2]||f[4]||(w=(f[3]?"http://":"mailto:")+w),m=f.index,r(n.substr(0,m)),x(w,f[0].replace(t,"")),n=n.substring(m+f[0].length);r(n);return h(l.join(""))}}])})(window,window.angular);
//# sourceMappingURL=angular-sanitize.min.js.map
;
/*
 AngularJS v1.8.3
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(z,l){'use strict';function q(n){return["$animate",function(u){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(m,f,a,e,r){var b,h,s;if(!n){b=f[0];s=a.ngMessage||a.when;a=a.ngMessageExp||a.whenExp;var k=function(c){h=c?v(c)?c:c.split(/[\s,]+/):null;e.reRender()};a?(k(m.$eval(a)),m.$watchCollection(a,k)):k(s)}var g,t;e.register(b,t={test:function(c){var b=h;c=b?v(b)?0<=b.indexOf(c):b.hasOwnProperty(c):void 0;return c},attach:function(){g||
r(function(c,a){u.enter(c,null,f);g=c;var d=g.$$attachId=e.getAttachId();g.on("$destroy",function(){g&&g.$$attachId===d&&(e.deregister(b,n),t.detach());a.$destroy()})})},detach:function(){if(g){var c=g;g=null;u.leave(c)}}},n);m.$on("$destroy",function(){e.deregister(b,n)})}}}]}var x,v,p,y;l.module("ngMessages",[],function(){x=l.forEach;v=l.isArray;p=l.isString;y=l.element}).info({angularVersion:"1.8.3"}).directive("ngMessages",["$animate",function(n){function u(f,a){return p(a)&&0===a.length||m(f.$eval(a))}
function m(f){return p(f)?f.length:!!f}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(f,a,e){function r(c,b){for(var d=b,a=[];d&&d!==c;){var e=d.$$ngMessageNode;if(e&&e.length)return k[e];d.childNodes.length&&-1===a.indexOf(d)?(a.push(d),d=d.childNodes[d.childNodes.length-1]):d.previousSibling?d=d.previousSibling:(d=d.parentNode,a.push(d))}}var b=this,h=0,s=0;this.getAttachId=function(){return s++};var k=this.messages={},g,t;this.render=function(c){c=c||
{};g=!1;t=c;for(var w=u(a,e.ngMessagesMultiple)||u(a,e.multiple),d=[],r={},h=0,k=b.head,s=!1,l=0;null!=k;){l++;var p=k.message,q=!1;s||x(c,function(b,c){m(b)&&!q&&(h++,p.test(c)&&!r[c]&&(q=r[c]=!0,p.attach()))});q?s=!w:d.push(p);k=k.next}x(d,function(c){c.detach()});c=d.length!==l;(w=b.default&&!c&&0<h)?b.default.attach():b.default&&b.default.detach();c||w?n.setClass(f,"ng-active","ng-inactive"):n.setClass(f,"ng-inactive","ng-active")};a.$watchCollection(e.ngMessages||e["for"],b.render);this.reRender=
function(){g||(g=!0,a.$evalAsync(function(){g&&t&&b.render(t)}))};this.register=function(c,a,d){if(d)b.default=a;else{d=h.toString();k[d]={message:a};var e=f[0];a=k[d];b.head?(e=r(e,c))?(a.next=e.next,e.next=a):(a.next=b.head,b.head=a):b.head=a;c.$$ngMessageNode=d;h++}b.reRender()};this.deregister=function(a,e){if(e)delete b.default;else{var d=a.$$ngMessageNode;delete a.$$ngMessageNode;var g=k[d];if(g){var h=r(f[0],a);h?h.next=g.next:b.head=g.next}delete k[d]}b.reRender()}}]}}]).directive("ngMessagesInclude",
["$templateRequest","$document","$compile",function(n,l,m){function f(a,e){var f=m.$$createComment?m.$$createComment("ngMessagesInclude",e):l[0].createComment(" ngMessagesInclude: "+e+" "),f=y(f);a.after(f);a.remove()}return{restrict:"AE",require:"^^ngMessages",link:function(a,e,l){var b=l.ngMessagesInclude||l.src;n(b).then(function(h){a.$$destroyed||(p(h)&&!h.trim()?f(e,b):m(h)(a,function(a){e.after(a);f(e,b)}))})}}}]).directive("ngMessage",q()).directive("ngMessageExp",q()).directive("ngMessageDefault",
q(!0))})(window,window.angular);
//# sourceMappingURL=angular-messages.min.js.map
;
/*
 AngularJS v1.8.3
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(t,l){'use strict';var c="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),m=function(a,e){if(-1!==e.indexOf(a[0].nodeName))return!0};l.module("ngAria",["ng"]).info({angularVersion:"1.8.3"}).provider("$aria",function(){function a(a,c,n,g){return function(d,f,b){if(!b.hasOwnProperty("ngAriaDisable")){var p=b.$normalize(c);!e[p]||m(f,n)||b[p]||d.$watch(b[a],function(b){b=g?!b:!!b;f.attr(c,b)})}}}var e={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,
ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(a){e=l.extend(e,a)};this.$get=function(){return{config:function(a){return e[a]},$$watchExpr:a}}}).directive("ngShow",["$aria",function(a){return a.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(a){return a.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(a){return a.$$watchExpr("ngValue","aria-checked",c,!1)}]).directive("ngChecked",["$aria",function(a){return a.$$watchExpr("ngChecked",
"aria-checked",c,!1)}]).directive("ngReadonly",["$aria",function(a){return a.$$watchExpr("ngReadonly","aria-readonly",c,!1)}]).directive("ngRequired",["$aria",function(a){return a.$$watchExpr("ngRequired","aria-required",c,!1)}]).directive("ngModel",["$aria",function(a){function e(e,g,d,f){return a.config(g)&&!d.attr(e)&&(f||!m(d,c))&&("hidden"!==d.attr("type")||"INPUT"!==d[0].nodeName)}function k(a,e){return!e.attr("role")&&e.attr("type")===a&&!m(e,c)}function h(a,e){var d=a.type,f=a.role;return"checkbox"===
(d||f)||"menuitemcheckbox"===f?"checkbox":"radio"===(d||f)||"menuitemradio"===f?"radio":"range"===d||"progressbar"===f||"slider"===f?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(c,g){if(!g.hasOwnProperty("ngAriaDisable")){var d=h(g,c);return{post:function(f,b,c,g){function h(){return g.$modelValue}function m(a){b.attr("aria-checked",c.value==g.$viewValue)}function n(){b.attr("aria-checked",!g.$isEmpty(g.$viewValue))}var l=e("tabindex","tabindex",b,!1);switch(d){case "radio":case "checkbox":k(d,
b)&&b.attr("role",d);e("aria-checked","ariaChecked",b,!1)&&f.$watch(h,"radio"===d?m:n);l&&b.attr("tabindex",0);break;case "range":k(d,b)&&b.attr("role","slider");if(a.config("ariaValue")){var q=!b.attr("aria-valuemin")&&(c.hasOwnProperty("min")||c.hasOwnProperty("ngMin")),r=!b.attr("aria-valuemax")&&(c.hasOwnProperty("max")||c.hasOwnProperty("ngMax")),s=!b.attr("aria-valuenow");q&&c.$observe("min",function(a){b.attr("aria-valuemin",a)});r&&c.$observe("max",function(a){b.attr("aria-valuemax",a)});
s&&f.$watch(h,function(a){b.attr("aria-valuenow",a)})}l&&b.attr("tabindex",0)}!c.hasOwnProperty("ngRequired")&&g.$validators.required&&e("aria-required","ariaRequired",b,!1)&&c.$observe("required",function(){b.attr("aria-required",!!c.required)});e("aria-invalid","ariaInvalid",b,!0)&&f.$watch(function(){return g.$invalid},function(a){b.attr("aria-invalid",!!a)})}}}}}}]).directive("ngDisabled",["$aria",function(a){return a.$$watchExpr("ngDisabled","aria-disabled",c,!1)}]).directive("ngMessages",function(){return{restrict:"A",
require:"?ngMessages",link:function(a,c,k,h){k.hasOwnProperty("ngAriaDisable")||c.attr("aria-live")||c.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(a,e){return{restrict:"A",compile:function(k,h){if(!h.hasOwnProperty("ngAriaDisable")){var l=e(h.ngClick);return function(e,d,f){if(!m(d,c)&&(a.config("bindRoleForClick")&&!d.attr("role")&&d.attr("role","button"),a.config("tabindex")&&!d.attr("tabindex")&&d.attr("tabindex",0),a.config("bindKeydown")&&!f.ngKeydown&&!f.ngKeypress&&
!f.ngKeyup))d.on("keydown",function(a){function d(){l(e,{$event:a})}var f=a.which||a.keyCode;if(13===f||32===f)-1!==c.indexOf(a.target.nodeName)||a.target.isContentEditable||a.preventDefault(),e.$apply(d)})}}}}}]).directive("ngDblclick",["$aria",function(a){return function(e,k,h){h.hasOwnProperty("ngAriaDisable")||!a.config("tabindex")||k.attr("tabindex")||m(k,c)||k.attr("tabindex",0)}}])})(window,window.angular);
//# sourceMappingURL=angular-aria.min.js.map
;
/*!
 * angular-translate - v2.19.1 - 2024-01-21
 * 
 * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():e()}(0,function(){function t(e){"use strict";var n=e.storageKey(),a=e.storage(),t=function(){var t=e.preferredLanguage();angular.isString(t)?e.use(t):a.put(n,e.use())};t.displayName="fallbackFromIncorrectStorageValue",a?a.get(n)?e.use(a.get(n)).catch(t):t():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function e(t,r,e,i){"use strict";var T,c,z,x,F,I,_,n,V,R,D,K,U,M,H,G,q={},Y=[],B=t,J=[],Q="translate-cloak",W=!1,X=!1,Z=!0,tt=".",et=!1,nt=!1,at=0,rt=!0,a="default",s={default:function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return 1<n.length?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return e}return n.join("-")},"iso639-1":function(t){return(t||"").split("_").join("-").split("-")[0].toLowerCase()}},o=function(){if(angular.isFunction(i.getLocale))return i.getLocale();var t,e,n=r.$get().navigator,a=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(n.languages))for(t=0;t<n.languages.length;t++)if((e=n.languages[t])&&e.length)return e;for(t=0;t<a.length;t++)if((e=n[a[t]])&&e.length)return e;return null};o.displayName="angular-translate/service: getFirstBrowserLanguage";var it=function(){var t=o()||"";return s[a]&&(t=s[a](t)),t};it.displayName="angular-translate/service: getLocale";var st=function(t,e){for(var n=0,a=t.length;n<a;n++)if(t[n]===e)return n;return-1},ot=function(){return this.toString().replace(/^\s+|\s+$/g,"")},f=function(t){return angular.isString(t)?t.toLowerCase():t},lt=function(t){if(t){for(var e,n=[],a=f(t),r=0,i=Y.length;r<i;r++)n.push(f(Y[r]));if(-1<(r=st(n,a)))return Y[r];if(c)for(var s in c)if(c.hasOwnProperty(s)){var o=!1,l=Object.prototype.hasOwnProperty.call(c,s)&&f(s)===f(t);if("*"===s.slice(-1)&&(o=f(s.slice(0,-1))===f(t.slice(0,s.length-1))),(l||o)&&(e=c[s],-1<st(n,f(e))))return e}var u=t.split("_");return 1<u.length&&-1<st(n,f(u[0]))?u[0]:void 0}},ut=function(t,e){if(!t&&!e)return q;if(t&&!e){if(angular.isString(t))return q[t]}else angular.isObject(q[t])||(q[t]={}),angular.extend(q[t],ct(e));return this};this.translations=ut,this.cloakClassName=function(t){return t?(Q=t,this):Q},this.allowNamespaces=function(t){return void 0===t?Z:(Z=t,this)},this.nestedObjectDelimeter=function(t){return t?(tt=t,this):tt};var ct=function(t,e,n,a){var r,i,s;if(e||(e=[]),n||(n={}),!Z)return t;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(s=t[r],angular.isObject(s)?ct(s,e.concat(r),n,r):(i=e.length?""+e.join(tt)+tt+r:r,e.length&&r===a&&(n[""+e.join(tt)]="@:"+i),n[i]=s));return n};ct.displayName="flatObject",this.addInterpolation=function(t){return J.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return R=t,this},this.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},this.preferredLanguage=function(t){return t?(ft(t),this):T};var ft=function(t){return t&&(T=t),T};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(U=t,this):U},this.translationNotFoundIndicatorRight=function(t){return t?(M=t,this):M},this.fallbackLanguage=function(t){return gt(t),this};var gt=function(t){return t?(angular.isString(t)?(x=!0,z=[t]):angular.isArray(t)&&(x=!1,z=t),angular.isString(T)&&st(z,T)<0&&z.push(T),this):x?z[0]:z};this.use=function(t){if(t){if(!q[t]&&!D)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return F=t,this}return F},this.resolveClientLocale=function(){return it()};var pt=function(t){return t?(B=t,this):n?n+B:B};this.storageKey=pt,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return D=t,K=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return _=t,this},this.storagePrefix=function(t){return t?(n=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return V=t,this},this.usePostCompiling=function(t){return W=!!t,this},this.forceAsyncReload=function(t){return X=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},a=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():it();return T=Y.length&&lt(e)||e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(Y=t,e&&(c=e),this):Y},this.useLoaderCache=function(t){return!1===t?H=void 0:!0===t?H=!0:void 0===t?H="$translationCache":t&&(H=t),this},this.directivePriority=function(t){return void 0===t?at:(at=t,this)},this.statefulFilter=function(t){return void 0===t?rt:(rt=t,this)},this.postProcess=function(t){return G=t||void 0,this},this.keepContent=function(t){return nt=!!t,this},this.$get=["$log","$injector","$rootScope","$q",function(t,o,s,m){var i,$,y,b=o.get(R||"$translateDefaultInterpolation"),S=!1,L={},f={},w=function(t,s,o,l,u,c){!F&&T&&(F=T);var a=u&&u!==F?lt(u)||u:F;if(u&&v(u),angular.isArray(t)){return function(t){for(var a={},e=[],n=function(e){var n=m.defer(),t=function(t){a[e]=t,n.resolve([e,t])};return w(e,s,o,l,u,c).then(t,t),n.promise},r=0,i=t.length;r<i;r++)e.push(n(t[r]));return m.all(e).then(function(){return a})}(t)}var e=m.defer();if(!t)throw new TypeError("translationId must be a not empty string");t=ot.apply(t);var n=function(){var t=f[a]||f[T];if($=0,_&&!t){var e=i.get(B);if(t=f[e],z&&z.length){var n=st(z,e);$=0===n?1:0,st(z,T)<0&&z.push(T)}}return t}();if(n){var r=function(){u||(a=F),h(t,s,o,l,a,c).then(e.resolve,e.reject)};r.displayName="promiseResolved",n.finally(r).catch(angular.noop)}else h(t,s,o,l,a,c).then(e.resolve,e.reject);return e.promise},j=function(t){return U&&(t=[U,t].join(" ")),M&&(t=[t,M].join(" ")),t},l=function(t){F=t,_&&i.put(w.storageKey(),F),s.$emit("$translateChangeSuccess",{language:t}),b.setLocale(F);var e=function(t,e){L[e].setLocale(F)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(L,e),s.$emit("$translateChangeEnd",{language:t})},u=function(n){if(!n)throw"No language key specified for loading.";var a=m.defer();s.$emit("$translateLoadingStart",{language:n}),S=!0;var t=H;"string"==typeof t&&(t=o.get(t));var e=angular.extend({},K,{key:n,$http:angular.extend({},{cache:t},K.$http)}),r=function(t){var e={};s.$emit("$translateLoadingSuccess",{language:n}),angular.isArray(t)?angular.forEach(t,function(t){angular.extend(e,ct(t))}):angular.extend(e,ct(t)),S=!1,a.resolve({key:n,table:e}),s.$emit("$translateLoadingEnd",{language:n})};r.displayName="onLoaderSuccess";var i=function(t){s.$emit("$translateLoadingError",{language:t}),a.reject(t),s.$emit("$translateLoadingEnd",{language:t})};return i.displayName="onLoaderError",o.get(D)(e).then(r,i),a.promise};if(_&&(!(i=o.get(_)).get||!i.put))throw new Error("Couldn't use storage '"+_+"', missing get() or put() method!");if(J.length){var e=function(t){var e=o.get(t);e.setLocale(T||F),L[e.getInterpolationIdentifier()]=e};e.displayName="interpolationFactoryAdder",angular.forEach(J,e)}var c=function(a,r,i,s,o){var l=m.defer(),t=function(t){if(Object.prototype.hasOwnProperty.call(t,r)&&null!==t[r]){s.setLocale(a);var e=t[r];if("@:"===e.substr(0,2))c(a,e.substr(2),i,s,o).then(l.resolve,l.reject);else{var n=s.interpolate(t[r],i,"service",o,r);n=O(r,t[r],n,i,a),l.resolve(n)}s.setLocale(F)}else l.reject()};return t.displayName="fallbackTranslationResolver",function(t){var e=m.defer();if(Object.prototype.hasOwnProperty.call(q,t))e.resolve(q[t]);else if(f[t]){var n=function(t){ut(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",f[t].then(n,e.reject)}else e.reject();return e.promise}(a).then(t,l.reject),l.promise},g=function(t,e,n,a,r){var i,s=q[t];if(s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){if(a.setLocale(t),i=a.interpolate(s[e],n,"filter",r,e),i=O(e,s[e],i,n,t,r),!angular.isString(i)&&angular.isFunction(i.$$unwrapTrustedValue)){var o=i.$$unwrapTrustedValue();if("@:"===o.substr(0,2))return g(t,o.substr(2),n,a,r)}else if("@:"===i.substr(0,2))return g(t,i.substr(2),n,a,r);a.setLocale(F)}return i},C=function(t,e,n,a){return V?o.get(V)(t,F,e,n,a):t},N=function(t,e,n,a,r,i){var s=m.defer();if(t<z.length){var o=z[t];c(o,e,n,a,i).then(function(t){s.resolve(t)},function(){return N(t+1,e,n,a,r,i).then(s.resolve,s.reject)})}else if(r)s.resolve(r);else{var l=C(e,n,r);V&&l?s.resolve(l):s.reject(j(e))}return s.promise},p=function(t,e,n,a,r){var i;if(t<z.length){var s=z[t];(i=g(s,e,n,a,r))||""===i||(i=p(t+1,e,n,a))}return i},h=function(t,e,n,a,r,i){var s,o,l,u,c,f=m.defer(),g=r?q[r]:q,p=n?L[n]:b;if(g&&Object.prototype.hasOwnProperty.call(g,t)&&null!==g[t]){var h=g[t];if("@:"===h.substr(0,2))w(h.substr(2),e,n,a,r,i).then(f.resolve,f.reject);else{var d=p.interpolate(h,e,"service",i,t);d=O(t,h,d,e,r),f.resolve(d)}}else{var v;V&&!S&&(v=C(t,e,a)),r&&z&&z.length?(s=t,o=e,l=p,u=a,c=i,N(0<y?y:$,s,o,l,u,c)).then(function(t){f.resolve(t)},function(t){f.reject(j(t))}):V&&!S&&v?a?f.resolve(a):f.resolve(v):a?f.resolve(a):f.reject(j(t))}return f.promise},d=function(t,e,n,a,r){var i,s=a?q[a]:q,o=b;if(L&&Object.prototype.hasOwnProperty.call(L,n)&&(o=L[n]),s&&Object.prototype.hasOwnProperty.call(s,t)&&null!==s[t]){var l=s[t];i="@:"===l.substr(0,2)?d(l.substr(2),e,n,a,r):(i=o.interpolate(l,e,"filter",r,t),O(t,l,i,e,a,r))}else{var u;V&&!S&&(u=C(t,e,r)),i=a&&z&&z.length?p(($=0)<y?y:$,t,e,o,r):V&&!S&&u?u:j(t)}return i},O=function(t,e,n,a,r,i){var s=G;return s&&("string"==typeof s&&(s=o.get(s)),s)?s(t,e,n,a,r,i):n},v=function(t){q[t]||!D||f[t]||(f[t]=u(t).then(function(t){return ut(t.key,t.table),t}))};w.preferredLanguage=function(t){return t&&ft(t),T},w.cloakClassName=function(){return Q},w.allowNamespaces=function(){return Z},w.nestedObjectDelimeter=function(){return tt},w.fallbackLanguage=function(t){if(null!=t){if(gt(t),D&&z&&z.length)for(var e=0,n=z.length;e<n;e++)f[z[e]]||(f[z[e]]=u(z[e]));w.use(w.use())}return x?z[0]:z},w.useFallbackLanguage=function(t){if(null!=t)if(t){var e=st(z,t);-1<e&&(y=e)}else y=0},w.proposedLanguage=function(){return I},w.storage=function(){return i},w.negotiateLocale=lt,w.use=function(e){if(!e)return F;var n=m.defer();n.promise.then(null,angular.noop),s.$emit("$translateChangeStart",{language:e});var t=lt(e);return 0<Y.length&&!t?m.reject(e):(t&&(e=t),I=e,!X&&q[e]||!D||f[e]?f[e]?f[e].then(function(t){return I===t.key&&l(t.key),n.resolve(t.key),t},function(t){return!F&&z&&0<z.length&&z[0]!==t?w.use(z[0]).then(n.resolve,n.reject):n.reject(t)}):(n.resolve(e),l(e)):(f[e]=u(e).then(function(t){return ut(t.key,t.table),n.resolve(t.key),I===e&&l(t.key),t},function(t){return s.$emit("$translateChangeError",{language:t}),n.reject(t),s.$emit("$translateChangeEnd",{language:t}),m.reject(t)}),f[e].finally(function(){var t;I===(t=e)&&(I=void 0),f[t]=void 0}).catch(angular.noop)),n.promise)},w.resolveClientLocale=function(){return it()},w.storageKey=function(){return pt()},w.isPostCompilingEnabled=function(){return W},w.isForceAsyncReloadEnabled=function(){return X},w.isKeepContent=function(){return nt},w.refresh=function(t){if(!D)throw new Error("Couldn't refresh translation table, no loader registered!");s.$emit("$translateRefreshStart",{language:t});var e=m.defer(),n={};function a(e){var t=u(e);return(f[e]=t).then(function(t){q[e]={},ut(e,t.table),n[e]=!0},angular.noop),t}if(e.promise.then(function(){for(var t in q)q.hasOwnProperty(t)&&(t in n||delete q[t]);F&&l(F)},angular.noop).finally(function(){s.$emit("$translateRefreshEnd",{language:t})}),t)q[t]?a(t).then(e.resolve,e.reject):e.reject();else{var r=z&&z.slice()||[];F&&-1===r.indexOf(F)&&r.push(F),m.all(r.map(a)).then(e.resolve,e.reject)}return e.promise},w.instant=function(t,e,n,a,r){var i=a&&a!==F?lt(a)||a:F;if(null===t||angular.isUndefined(t))return t;if(a&&v(a),angular.isArray(t)){for(var s={},o=0,l=t.length;o<l;o++)s[t[o]]=w.instant(t[o],e,n,a,r);return s}if(angular.isString(t)&&t.length<1)return t;t&&(t=ot.apply(t));var u,c,f=[];T&&f.push(T),i&&f.push(i),z&&z.length&&(f=f.concat(z));for(var g=0,p=f.length;g<p;g++){var h=f[g];if(q[h]&&void 0!==q[h][t]&&(u=d(t,e,n,i,r)),void 0!==u)break}u||""===u||(U||M?u=j(t):(u=b.interpolate(t,e,"filter",r),V&&!S&&(c=C(t,e,r)),V&&!S&&c&&(u=c)));return u},w.versionInfo=function(){return"2.19.1"},w.loaderCache=function(){return H},w.directivePriority=function(){return at},w.statefulFilter=function(){return rt},w.isReady=function(){return et};var n=m.defer();n.promise.then(function(){et=!0}),w.onReady=function(t){var e=m.defer();return angular.isFunction(t)&&e.promise.then(t),et?e.resolve():n.promise.then(e.resolve),e.promise},w.getAvailableLanguageKeys=function(){return 0<Y.length?Y:null},w.getTranslationTable=function(t){return(t=t||w.use())&&q[t]?angular.copy(q[t]):null};var a=s.$on("$translateReady",function(){n.resolve(),a(),a=null}),r=s.$on("$translateChangeEnd",function(){n.resolve(),r(),r=null});if(D){if(angular.equals(q,{})&&w.use()&&w.use(w.use()),z&&z.length)for(var E=function(t){return ut(t.key,t.table),s.$emit("$translateChangeEnd",{language:t.key}),t},k=0,P=z.length;k<P;k++){var A=z[k];!X&&q[A]||(f[A]=u(A).then(E))}}else s.$emit("$translateReady",{language:w.use()});return w}]}function n(s,o){"use strict";var t={};return t.setLocale=function(t){t},t.getInterpolationIdentifier=function(){return"default"},t.useSanitizeValueStrategy=function(t){return o.useStrategy(t),this},t.interpolate=function(t,e,n,a,r){var i;return e=e||{},e=o.sanitize(e,"params",a,n),i=angular.isNumber(t)?""+t:angular.isString(t)?(i=s(t)(e),o.sanitize(i,"text",a,n)):""},t}function a(S,L,w,j,C){"use strict";var N=function(t){return angular.isString(t)?t.toLowerCase():t};return{restrict:"AE",scope:!0,priority:S.directivePriority(),compile:function(t,h){var d=h.translateValues?h.translateValues:void 0,v=h.translateInterpolation?h.translateInterpolation:void 0,m=h.translateSanitizeStrategy?h.translateSanitizeStrategy:void 0,$=t[0].outerHTML.match(/translate-value-+/i),y="^(.*)("+L.startSymbol()+".*"+L.endSymbol()+")(.*)",b="^(.*)"+L.startSymbol()+"(.*)"+L.endSymbol()+"(.*)";return function(r,l,u){r.interpolateParams={},r.preText="",r.postText="",r.translateNamespace=function t(e){if(e.translateNamespace)return e.translateNamespace;if(e.$parent)return t(e.$parent)}(r);var i={},s=function(t){if(angular.isFunction(s._unwatchOld)&&(s._unwatchOld(),s._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var e=function(){return this.toString().replace(/^\s+|\s+$/g,"")}.apply(l.text()).replace(/\n/g," "),n=e.match(y);if(angular.isArray(n)){r.preText=n[1],r.postText=n[3],i.translate=L(n[2])(r.$parent);var a=e.match(b);angular.isArray(a)&&a[2]&&a[2].length&&(s._unwatchOld=r.$watch(a[2],function(t){i.translate=t,c()}))}else i.translate=e||void 0}else i.translate=t;c()},t=function(e){u.$observe(e,function(t){i[e]=t,c()})};!function(t,e,n){if(e.translateValues&&angular.extend(t,j(e.translateValues)(r.$parent)),$)for(var a in n)Object.prototype.hasOwnProperty.call(e,a)&&"translateValue"===a.substr(0,14)&&"translateValues"!==a&&(t[N(a.substr(14,1))+a.substr(15)]=n[a])}(r.interpolateParams,u,h);var e=!0;for(var n in u.$observe("translate",function(t){void 0===t?s(""):""===t&&e||(i.translate=t,c()),e=!1}),u)u.hasOwnProperty(n)&&"translateAttr"===n.substr(0,13)&&13<n.length&&t(n);if(u.$observe("translateDefault",function(t){r.defaultText=t,c()}),m&&u.$observe("translateSanitizeStrategy",function(t){r.sanitizeStrategy=j(t)(r.$parent),c()}),d&&u.$observe("translateValues",function(t){t&&r.$parent.$watch(function(){angular.extend(r.interpolateParams,j(t)(r.$parent))})}),$){var a=function(n){u.$observe(n,function(t){var e=N(n.substr(14,1))+n.substr(15);r.interpolateParams[e]=t})};for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o&&a(o)}var c=function(){for(var t in i)i.hasOwnProperty(t)&&void 0!==i[t]&&f(t,i[t],r,r.interpolateParams,r.defaultText,r.translateNamespace)},f=function(e,t,n,a,r,i){t?(i&&"."===t.charAt(0)&&(t=i+t),S(t,a,v,r,n.translateLanguage,n.sanitizeStrategy).then(function(t){g(t,n,!0,e)},function(t){g(t,n,!1,e)})):g(t,n,!1,e)},g=function(t,e,n,a){if(n||void 0!==e.defaultText&&(t=e.defaultText),"translate"===a){(n||!n&&!S.isKeepContent()&&void 0===u.translateKeepContent)&&l.empty().append(e.preText+t+e.postText);var r=S.isPostCompilingEnabled(),i=void 0!==h.translateCompile,s=i&&"false"!==h.translateCompile;(r&&!i||s)&&w(l.contents())(e)}else{var o=u.$attr[a];"data-"===o.substr(0,5)&&(o=o.substr(5)),o=o.substr(15),l.attr(o,t)}};(d||$||u.translateDefault)&&r.$watch("interpolateParams",c,!0),r.$on("translateLanguageChanged",c);var p=C.$on("$translateChangeSuccess",c);l.text().length?u.translate?s(u.translate):s(""):u.translate&&s(u.translate),c(),r.$on("$destroy",p)}}}}function r(u,c){"use strict";return{restrict:"A",priority:u.directivePriority(),link:function(n,a,r){var i,s,o,l={},t=function(){angular.forEach(i,function(t,e){t&&(l[e]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),u(t,s,r.translateInterpolation,void 0,n.translateLanguage,o).then(function(t){a.attr(e,t)},function(t){a.attr(e,t)}))}),angular.forEach(l,function(t,e){i[e]||(a.removeAttr(e),delete l[e])})};f(n,r.translateAttr,function(t){i=t},t),f(n,r.translateValues,function(t){s=t},t),f(n,r.translateSanitizeStrategy,function(t){o=t},t),r.translateValues&&n.$watch(r.translateValues,t,!0),n.$on("translateLanguageChanged",t);var e=c.$on("$translateChangeSuccess",t);t(),n.$on("$destroy",e)}}}function f(t,e,n,a){"use strict";e&&("::"===e.substr(0,2)?e=e.substr(2):t.$watch(e,function(t){n(t),a()},!0),n(t.$eval(e)))}function i(s,o){"use strict";return{compile:function(t){var i=function(t){t.addClass(s.cloakClassName())};return i(t),function(t,e,n){var a=function(t){t.removeClass(s.cloakClassName())}.bind(this,e),r=i.bind(this,e);n.translateCloak&&n.translateCloak.length?(n.$observe("translateCloak",function(t){s(t).then(a,r)}),o.$on("$translateChangeSuccess",function(){s(n.translateCloak).then(a,r)})):s.onReady(a)}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=function t(e){if(e.translateNamespace)return e.translateNamespace;if(e.$parent)return t(e.$parent)}(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function l(i,s){"use strict";var t=function(t,e,n,a){if(!angular.isObject(e)){var r=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};e=i(e)(r)}return s.instant(t,e,n,a)};return s.statefulFilter()&&(t.$stateful=!0),t}function u(t){"use strict";return t("translations")}return t.$inject=["$translate"],e.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],a.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],r.$inject=["$translate","$rootScope"],i.$inject=["$translate","$rootScope"],l.$inject=["$parse","$translate"],u.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(t),t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",function(){"use strict";var n,a,g,p=null,h=!1,d=!1;(g={sanitize:function(t,e){return"text"===e&&(t=i(t)),t},escape:function(t,e){return"text"===e&&(t=r(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=o(t,i)),t},escapeParameters:function(t,e){return"params"===e&&(t=o(t,r)),t},sce:function(t,e,n){return"text"===e?t=s(t):"params"===e&&"filter"!==n&&(t=o(t,r)),t},sceParameters:function(t,e){return"params"===e&&(t=o(t,s)),t}}).escaped=g.escapeParameters,this.addStrategy=function(t,e){return g[t]=e,this},this.removeStrategy=function(t){return delete g[t],this},this.useStrategy=function(t){return h=!0,p=t,this},this.$get=["$injector","$log",function(u,c){var e,f={};return u.has("$sanitize")&&(n=u.get("$sanitize")),u.has("$sce")&&(a=u.get("$sce")),{useStrategy:(e=this,function(t){e.useStrategy(t)}),sanitize:function(t,e,n,a){if(p||h||d||(c.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),d=!0),n||null===n||(n=p),!n)return t;a||(a="service");var r,i,s,o,l=angular.isArray(n)?n:[n];return r=t,i=e,s=a,o=l,angular.forEach(o,function(e){if(angular.isFunction(e))r=e(r,i,s);else if(angular.isFunction(g[e]))r=g[e](r,i,s);else{if(!angular.isString(g[e]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'");if(!f[g[e]])try{f[g[e]]=u.get(g[e])}catch(t){throw f[g[e]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'")}r=f[g[e]](r,i,s)}}),r}}}];var r=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},i=function(t){if(!n)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return n(t)},s=function(t){if(!a)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return a.trustAsHtml(t)},o=function(t,n,a){if(angular.isDate(t))return t;if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(a){if(-1<a.indexOf(t))throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else a=[];return a.push(t),angular.forEach(t,function(t,e){angular.isFunction(t)||(r[e]=o(t,n,a))}),a.splice(-1,1),r}return angular.isNumber(t)?t:!0===t||!1===t?t:angular.isUndefined(t)||null===t?t:n(t)}}),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",e),e.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",a),a.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",r),r.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",i),i.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",o),o.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",u),u.displayName="$translationCache","pascalprecht.translate"});;
/*!
 * angular-translate - v2.19.1 - 2024-01-21
 * 
 * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():e()}(0,function(){function t(t){"use strict";var n;if(1===angular.version.major&&4<=angular.version.minor){var o=t.get("$cookies");n={get:function(t){return o.get(t)},put:function(t,e){o.put(t,e,{samesite:"lax"})}}}else{var r=t.get("$cookieStore");n={get:function(t){return r.get(t)},put:function(t,e){r.put(t,e)}}}return{get:function(t){return n.get(t)},set:function(t,e){n.put(t,e)},put:function(t,e){n.put(t,e)}}}return t.$inject=["$injector"],angular.module("pascalprecht.translate").factory("$translateCookieStorage",t),t.displayName="$translateCookieStorage","pascalprecht.translate"});;
/*!
 * angular-translate - v2.19.1 - 2024-01-21
 * 
 * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(e,i){"function"==typeof define&&define.amd?define([],function(){return i()}):"object"==typeof module&&module.exports?module.exports=i():i()}(0,function(){function e(n,a){"use strict";return function(r){if(!(r&&(angular.isArray(r.files)||angular.isString(r.prefix)&&angular.isString(r.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");r.files||(r.files=[{prefix:r.prefix,suffix:r.suffix}]);for(var e=function(e){if(!e||!angular.isString(e.prefix)||!angular.isString(e.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var i=[e.prefix,r.key,e.suffix].join("");return angular.isObject(r.fileMap)&&r.fileMap[i]&&(i=r.fileMap[i]),a(angular.extend({url:i,method:"GET"},r.$http)).then(function(e){return e.data},function(){return n.reject(r.key)})},i=[],t=r.files.length,f=0;f<t;f++)i.push(e({prefix:r.files[f].prefix,key:r.key,suffix:r.files[f].suffix}));return n.all(i).then(function(e){for(var i=e.length,r={},t=0;t<i;t++)for(var f in e[t])r[f]=e[t][f];return r})}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"});;
/*!
 * angular-translate - v2.19.1 - 2024-01-21
 * 
 * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():e()}(0,function(){function t(a,t){"use strict";var o,e={get:function(t){return o||(o=a.localStorage.getItem(t)),o},set:function(t,e){o=e,a.localStorage.setItem(t,e)},put:function(t,e){o=e,a.localStorage.setItem(t,e)}},r="localStorage"in a;if(r){var n="pascalprecht.translate.storageTest";try{r=null!==a.localStorage&&(a.localStorage.setItem(n,"foo"),a.localStorage.removeItem(n),!0)}catch(t){r=!1}}return r?e:t}return t.$inject=["$window","$translateCookieStorage"],angular.module("pascalprecht.translate").factory("$translateLocalStorage",t),t.displayName="$translateLocalStorageFactory","pascalprecht.translate"});;
(function (root, factory) {
	if (typeof define === 'function' && define.amd) {
		// AMD. Register as an anonymous module unless amdModuleId is set
		define([], function () {
			return (factory());
		});
	} else if (typeof exports === 'object') {
		// Node. Does not work with strict CommonJS, but
		// only CommonJS-like environments that support module.exports,
		// like Node.
		module.exports = factory();
	} else {
		factory();
	}
}(this, function () {
	'use strict';
	angular.module('tmh.dynamicLocale', []).config(['$provide', function ($provide) {
		function makeStateful($delegate) {
			$delegate.$stateful = true;
			return $delegate;
		}

		$provide.decorator('dateFilter', ['$delegate', makeStateful]);
		$provide.decorator('numberFilter', ['$delegate', makeStateful]);
		$provide.decorator('currencyFilter', ['$delegate', makeStateful]);

	}])
	.constant('tmhDynamicLocale.STORAGE_KEY', 'tmhDynamicLocale.locale')
	.provider('tmhDynamicLocale', ['tmhDynamicLocale.STORAGE_KEY', function (STORAGE_KEY) {

		var defaultLocale,
		  localeLocationPattern = 'angular/i18n/angular-locale_{{locale}}.js',
		  nodeToAppend,
		  storageFactory = 'tmhDynamicLocaleStorageCache',
		  storage,
		  storageKey = STORAGE_KEY,
		  promiseCache = {},
		  activeLocale,
		  extraProperties = {};

		/**
		 * Loads a script asynchronously
		 *
		 * @param {string} url The url for the script
		 @ @param {function} callback A function to be called once the script is loaded
		 */
		function loadScript(url, callback, errorCallback, $timeout) {
			var script = document.createElement('script'),
			  element = nodeToAppend ? nodeToAppend : document.getElementsByTagName("body")[0],
			  removed = false;

			script.type = 'text/javascript';
			if (script.readyState) { // IE
				script.onreadystatechange = function () {
					if (script.readyState === 'complete' ||
						script.readyState === 'loaded') {
						script.onreadystatechange = null;
						$timeout(
						  function () {
						  	if (removed) return;
						  	removed = true;
						  	element.removeChild(script);
						  	callback();
						  }, 30, false);
					}
				};
			} else { // Others
				script.onload = function () {
					if (removed) return;
					removed = true;
					element.removeChild(script);
					callback();
				};
				script.onerror = function () {
					if (removed) return;
					removed = true;
					element.removeChild(script);
					errorCallback();
				};
			}
			script.src = url;
			script.async = true;
			element.appendChild(script);
		}

		/**
		 * Loads a locale and replaces the properties from the current locale with the new locale information
		 *
		 * @param {string} localeUrl The path to the new locale
		 * @param {Object} $locale The locale at the curent scope
		 * @param {string} localeId The locale id to load
		 * @param {Object} $rootScope The application $rootScope
		 * @param {Object} $q The application $q
		 * @param {Object} localeCache The current locale cache
		 * @param {Object} $timeout The application $timeout
		 */
		function loadLocale(localeUrl, $locale, localeId, $rootScope, $q, localeCache, $timeout) {
		
			function overrideValues(oldObject, newObject) {
				if (activeLocale !== localeId) {
					return;
				}
				angular.forEach(oldObject, function (value, key) {
					if (!newObject[key]) {
						delete oldObject[key];
					} else if (angular.isArray(newObject[key])) {
						oldObject[key].length = newObject[key].length;
					}
				});
				angular.forEach(newObject, function (value, key) {
					if (angular.isArray(newObject[key]) || angular.isObject(newObject[key])) {
						if (!oldObject[key]) {
							oldObject[key] = angular.isArray(newObject[key]) ? [] : {};
						}
						overrideValues(oldObject[key], newObject[key]);
					} else {
						oldObject[key] = newObject[key];
					}
				});
			}


			if (promiseCache[localeId]) {
				activeLocale = localeId;
				return promiseCache[localeId];
			}

			var cachedLocale,
			  deferred = $q.defer();
			if (localeId === activeLocale) {
				deferred.resolve($locale);
			} else if ((cachedLocale = localeCache.get(localeId))) {
				activeLocale = localeId;
				$rootScope.$evalAsync(function () {
					overrideValues($locale, cachedLocale);
					storage.put(storageKey, localeId);
					$rootScope.$broadcast('$localeChangeSuccess', localeId, $locale);
					deferred.resolve($locale);
				});
			} else {
				activeLocale = localeId;
				promiseCache[localeId] = deferred.promise;
				loadScript(localeUrl, function () {
					// Create a new injector with the new locale
					var localInjector = angular.injector(['ngLocale']),
					  externalLocale = localInjector.get('$locale');

					overrideValues($locale, externalLocale);
					localeCache.put(localeId, externalLocale);
					delete promiseCache[localeId];

					$rootScope.$applyAsync(function () {
						storage.put(storageKey, localeId);
						$rootScope.$broadcast('$localeChangeSuccess', localeId, $locale);
						deferred.resolve($locale);
					});
				}, function () {
					delete promiseCache[localeId];

					$rootScope.$applyAsync(function () {
						if (activeLocale === localeId) {
							activeLocale = $locale.id;
						}
						$rootScope.$broadcast('$localeChangeError', localeId);
						deferred.reject(localeId);
					});
				}, $timeout);
			}
			return deferred.promise;
		}

		this.localeLocationPattern = function (value) {
			if (value) {
				localeLocationPattern = value;
				return this;
			} else {
				return localeLocationPattern;
			}
		};

		this.appendScriptTo = function (nodeElement) {
			nodeToAppend = nodeElement;
		};

		this.useStorage = function (storageName) {
			storageFactory = storageName;
		};

		this.useCookieStorage = function () {
			this.useStorage('$cookieStore');
		};

		this.defaultLocale = function (value) {
			defaultLocale = value;
		};

		this.storageKey = function (value) {
			if (value) {
				storageKey = value;
				return this;
			} else {
				return storageKey;
			}
		};

		this.addLocalePatternValue = function (key, value) {
			extraProperties[key] = value;
		};

		this.$get = ['$rootScope', '$injector', '$interpolate', '$locale', '$q', 'tmhDynamicLocaleCache', '$timeout', function ($rootScope, $injector, interpolate, locale, $q, tmhDynamicLocaleCache, $timeout) {
			var localeLocation = interpolate(localeLocationPattern);

			storage = $injector.get(storageFactory);
			$rootScope.$evalAsync(function () {
				var initialLocale;
				if ((initialLocale = (storage.get(storageKey) || defaultLocale))) {
					loadLocaleFn(initialLocale);
				}
			});
			return {
				/**
				 * @ngdoc method
				 * @description
				 * @param {string} value Sets the locale to the new locale. Changing the locale will trigger
				 *    a background task that will retrieve the new locale and configure the current $locale
				 *    instance with the information from the new locale
				 */
				set: loadLocaleFn,
				/**
				 * @ngdoc method
				 * @description Returns the configured locale
				 */
				get: function () {
					return activeLocale;
				}
			};

			function loadLocaleFn(localeId) {
				var baseProperties = { locale: localeId, angularVersion: angular.version.full };
				return loadLocale(localeLocation(angular.extend({}, extraProperties, baseProperties)), locale, localeId, $rootScope, $q, tmhDynamicLocaleCache, $timeout);
			}
		}];
	}]).provider('tmhDynamicLocaleCache', function () {
		this.$get = ['$cacheFactory', function ($cacheFactory) {
			return $cacheFactory('tmh.dynamicLocales');
		}];
	}).provider('tmhDynamicLocaleStorageCache', function () {
		this.$get = ['$cacheFactory', function ($cacheFactory) {
			return $cacheFactory('tmh.dynamicLocales.store');
		}];
	}).run(['tmhDynamicLocale', angular.noop]);

	return 'tmh.dynamicLocale';

}));;
/*!
    localForage -- Offline Storage, Improved
    Version 1.5.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/
(function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.localforage=n()}})(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h=typeof require=="function"&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e=typeof require=="function"&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){(function(n){"use strict";function u(){e=!0;for(var n,r,t=i.length;t;){for(r=i,i=[],n=-1;++n<t;)r[n]();t=i.length}e=!1}function l(n){i.push(n)!==1||e||r()}var o=n.MutationObserver||n.WebKitMutationObserver,r,f,e,i;if(o){var s=0,c=new o(u),h=n.document.createTextNode("");c.observe(h,{characterData:!0});r=function(){h.data=s=++s%2}}else n.setImmediate||typeof n.MessageChannel=="undefined"?r="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){u();t.onreadystatechange=null;t.parentNode.removeChild(t);t=null};n.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)}:(f=new n.MessageChannel,f.port1.onmessage=u,r=function(){f.port2.postMessage(0)});i=[];t.exports=l}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,t,i){"use strict";function u(){}function o(n){if(typeof n!="function")throw new TypeError("resolver must be a function");this.state=c;this.queue=[];this.outcome=void 0;n!==u&&l(this,n)}function f(n,t,i){this.promise=n;typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled);typeof i=="function"&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function s(n,t,i){v(function(){var u;try{u=t(i)}catch(f){return r.reject(n,f)}u===n?r.reject(n,new TypeError("Cannot resolve promise with itself")):r.resolve(n,u)})}function y(n){var t=n&&n.then;if(n&&typeof n=="object"&&typeof t=="function")return function(){t.apply(n,arguments)}}function l(n,t){function u(t){i||(i=!0,r.reject(n,t))}function e(t){i||(i=!0,r.resolve(n,t))}function o(){t(e,u)}var i=!1,f=a(o);f.status==="error"&&u(f.value)}function a(n,t){var i={};try{i.value=n(t);i.status="success"}catch(r){i.status="error";i.value=r}return i}function p(n){return n instanceof this?n:r.resolve(new this(u),n)}function w(n){var t=new this(u);return r.reject(t,n)}function b(n){function c(n,u){function f(n){o[u]=n;++h!==t||i||(i=!0,r.resolve(e,o))}s.resolve(n).then(f,function(n){i||(i=!0,r.reject(e,n))})}var s=this,t,i;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));if(t=n.length,i=!1,!t)return this.resolve([]);for(var o=new Array(t),h=0,f=-1,e=new this(u);++f<t;)c(n[f],f);return e}function k(n){function s(n){o.resolve(n).then(function(n){t||(t=!0,r.resolve(i,n))},function(n){t||(t=!0,r.reject(i,n))})}var o=this,f,t,e,i;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));if(f=n.length,t=!1,!f)return this.resolve([]);for(e=-1,i=new this(u);++e<f;)s(n[e]);return i}var v=n(1),r={},h=["REJECTED"],e=["FULFILLED"],c=["PENDING"];t.exports=i=o;o.prototype["catch"]=function(n){return this.then(null,n)};o.prototype.then=function(n,t){var i,r;return typeof n!="function"&&this.state===e||typeof t!="function"&&this.state===h?this:(i=new this.constructor(u),this.state!==c?(r=this.state===e?n:t,s(i,r,this.outcome)):this.queue.push(new f(i,n,t)),i)};f.prototype.callFulfilled=function(n){r.resolve(this.promise,n)};f.prototype.otherCallFulfilled=function(n){s(this.promise,this.onFulfilled,n)};f.prototype.callRejected=function(n){r.reject(this.promise,n)};f.prototype.otherCallRejected=function(n){s(this.promise,this.onRejected,n)};r.resolve=function(n,t){var i=a(y,t),u,f,o;if(i.status==="error")return r.reject(n,i.value);if(u=i.value,u)l(n,u);else for(n.state=e,n.outcome=t,f=-1,o=n.queue.length;++f<o;)n.queue[f].callFulfilled(t);return n};r.reject=function(n,t){n.state=h;n.outcome=t;for(var i=-1,r=n.queue.length;++i<r;)n.queue[i].callRejected(t);return n};i.resolve=p;i.reject=w;i.all=b;i.race=k},{"1":1}],3:[function(n){(function(t){"use strict";typeof t.Promise!="function"&&(t.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"2":2}],4:[function(n,t){"use strict";function ui(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function fi(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(n){}}function ei(){try{if(!v)return!1;var n=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!n||t)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(i){return!1}}function oi(){return typeof openDatabase=="function"}function si(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&localStorage.setItem}catch(n){return!1}}function y(n,t){var f,r,i;n=n||[];t=t||{};try{return new Blob(n,t)}catch(u){if(u.name!=="TypeError")throw u;for(f=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,r=new f,i=0;i<n.length;i+=1)r.append(n[i]);return r.getBlob(t.type)}}function r(n,t){t&&n.then(function(n){t(null,n)},function(n){t(n)})}function o(n,t,i){typeof t=="function"&&n.then(t);typeof i=="function"&&n["catch"](i)}function hi(n){for(var i=n.length,r=new ArrayBuffer(i),u=new Uint8Array(r),t=0;t<i;t++)u[t]=n.charCodeAt(t);return r}function ci(n){return new i(function(t){var i=n.transaction(h,"readwrite"),r=y([""]);i.objectStore(h).put(r,"key");i.onabort=function(n){n.preventDefault();n.stopPropagation();t(!1)};i.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);t(i||!n||parseInt(n[1],10)>=43)}})["catch"](function(){return!1})}function li(n){return typeof c=="boolean"?i.resolve(c):ci(n).then(function(n){return c=n})}function ai(n){var r=e[n.name],t={};t.promise=new i(function(n){t.resolve=n});r.deferredOperations.push(t);r.dbReady=r.dbReady?r.dbReady.then(function(){return t.promise}):t.promise}function vi(n){var i=e[n.name],t=i.deferredOperations.pop();t&&t.resolve()}function rt(n,t){return new i(function(i,r){var f,u;if(n.db)if(t)ai(n),n.db.close();else return i(n.db);f=[n.name];t&&f.push(n.version);u=v.open.apply(v,f);t&&(u.onupgradeneeded=function(t){var i=u.result;try{i.createObjectStore(n.storeName);t.oldVersion<=1&&i.createObjectStore(h)}catch(r){if(r.name==="ConstraintError")console.warn('The database "'+n.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+n.storeName+'" already exists.');else throw r;}});u.onerror=function(n){n.preventDefault();r(u.error)};u.onsuccess=function(){i(u.result);vi(n)}})}function yi(n){return rt(n,!1)}function pi(n){return rt(n,!0)}function wi(n,t){var i;if(!n.db)return!0;var r=!n.db.objectStoreNames.contains(n.storeName),u=n.version<n.db.version,f=n.version>n.db.version;return(u&&(n.version!==t&&console.warn('The database "'+n.name+"\" can't be downgraded from version "+n.db.version+" to version "+n.version+"."),n.version=n.db.version),f||r)?(r&&(i=n.db.version+1,i>n.version&&(n.version=i)),!0):!1}function bi(n){return new i(function(t,i){var r=new FileReader;r.onerror=i;r.onloadend=function(i){var r=btoa(i.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:n.type})};r.readAsBinaryString(n)})}function ut(n){var t=hi(atob(n.data));return y([t],{type:n.type})}function ft(n){return n&&n.__local_forage_encoded_blob}function ki(n){var t=this,i=t._initReady().then(function(){var n=e[t._dbInfo.name];if(n&&n.dbReady)return n.dbReady});return o(i,n,n),i}function di(n){function l(){return i.resolve()}var u=this,t={db:null},o,r,s,f,h,c;if(n)for(o in n)t[o]=n[o];for(e||(e={}),r=e[t.name],r||(r={forages:[],db:null,dbReady:null,deferredOperations:[]},e[t.name]=r),r.forages.push(u),u._initReady||(u._initReady=u.ready,u.ready=ki),s=[],f=0;f<r.forages.length;f++)h=r.forages[f],h!==u&&s.push(h._initReady()["catch"](l));return c=r.forages.slice(0),i.all(s).then(function(){return t.db=r.db,yi(t)}).then(function(n){return(t.db=n,wi(t,u._defaultConfig.version))?pi(t):n}).then(function(n){var i,f;for(t.db=r.db=n,u._dbInfo=t,i=0;i<c.length;i++)f=c[i],f!==u&&(f._dbInfo.db=t.db,f._dbInfo.version=t.version)})}function gi(n,t){var f=this,u;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),u=new i(function(t,i){f.ready().then(function(){var u=f._dbInfo,e=u.db.transaction(u.storeName,"readonly").objectStore(u.storeName),r=e.get(n);r.onsuccess=function(){var n=r.result;n===undefined&&(n=null);ft(n)&&(n=ut(n));t(n)};r.onerror=function(){i(r.error)}})["catch"](i)}),r(u,t),u}function nr(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){var f=u._dbInfo,e=f.db.transaction(f.storeName,"readonly").objectStore(f.storeName),r=e.openCursor(),o=1;r.onsuccess=function(){var u=r.result,i,f;u?(i=u.value,ft(i)&&(i=ut(i)),f=n(i,u.key,o++),f!==void 0?t(f):u["continue"]()):t()};r.onerror=function(){i(r.error)}})["catch"](i)});return r(f,t),f}function tr(n,t,u){var e=this,f;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),f=new i(function(i,r){var u;e.ready().then(function(){return(u=e._dbInfo,it.call(t)==="[object Blob]")?li(u.db).then(function(n){return n?t:bi(t)}):t}).then(function(t){var f=u.db.transaction(u.storeName,"readwrite"),o=f.objectStore(u.storeName),e=o.put(t,n);t===null&&(t=undefined);f.oncomplete=function(){t===undefined&&(t=null);i(t)};f.onabort=f.onerror=function(){var n=e.error?e.error:e.transaction.error;r(n)}})["catch"](r)}),r(f,u),f}function ir(n,t){var f=this,u;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),u=new i(function(t,i){f.ready().then(function(){var e=f._dbInfo,r=e.db.transaction(e.storeName,"readwrite"),o=r.objectStore(e.storeName),u=o["delete"](n);r.oncomplete=function(){t()};r.onerror=function(){i(u.error)};r.onabort=function(){var n=u.error?u.error:u.transaction.error;i(n)}})["catch"](i)}),r(u,t),u}function rr(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var u=t._dbInfo,r=u.db.transaction(u.storeName,"readwrite"),e=r.objectStore(u.storeName),f=e.clear();r.oncomplete=function(){n()};r.onabort=r.onerror=function(){var n=f.error?f.error:f.transaction.error;i(n)}})["catch"](i)});return r(u,n),u}function ur(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var u=t._dbInfo,f=u.db.transaction(u.storeName,"readonly").objectStore(u.storeName),r=f.count();r.onsuccess=function(){n(r.result)};r.onerror=function(){i(r.error)}})["catch"](i)});return r(u,n),u}function fr(n,t){var u=this,f=new i(function(t,i){if(n<0){t(null);return}u.ready().then(function(){var f=u._dbInfo,o=f.db.transaction(f.storeName,"readonly").objectStore(f.storeName),e=!1,r=o.openCursor();r.onsuccess=function(){var i=r.result;if(!i){t(null);return}n===0?t(i.key):e?t(i.key):(e=!0,i.advance(n))};r.onerror=function(){i(r.error)}})["catch"](i)});return r(f,t),f}function er(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var u=t._dbInfo,e=u.db.transaction(u.storeName,"readonly").objectStore(u.storeName),r=e.openCursor(),f=[];r.onsuccess=function(){var t=r.result;if(!t){n(f);return}f.push(t.key);t["continue"]()};r.onerror=function(){i(r.error)}})["catch"](i)});return r(u,n),u}function kt(n){var r=n.length*.75,l=n.length,t,u=0,h,e,o,c,s,i;for(n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--),s=new ArrayBuffer(r),i=new Uint8Array(s),t=0;t<l;t+=4)h=f.indexOf(n[t]),e=f.indexOf(n[t+1]),o=f.indexOf(n[t+2]),c=f.indexOf(n[t+3]),i[u++]=h<<2|e>>4,i[u++]=(e&15)<<4|o>>2,i[u++]=(o&3)<<6|c&63;return s}function k(n){for(var i=new Uint8Array(n),t="",r=0;r<i.length;r+=3)t+=f[i[r]>>2],t+=f[(i[r]&3)<<4|i[r+1]>>4],t+=f[(i[r+1]&15)<<2|i[r+2]>>6],t+=f[i[r+2]&63];return i.length%3==2?t=t.substring(0,t.length-1)+"=":i.length%3==1&&(t=t.substring(0,t.length-2)+"=="),t}function hr(n,t){var i="",u,r,f;if(n&&(i=bt.call(n)),n&&(i==="[object ArrayBuffer]"||n.buffer&&bt.call(n.buffer)==="[object ArrayBuffer]"))r=l,n instanceof ArrayBuffer?(u=n,r+=w):(u=n.buffer,i==="[object Int8Array]"?r+=ot:i==="[object Uint8Array]"?r+=st:i==="[object Uint8ClampedArray]"?r+=ht:i==="[object Int16Array]"?r+=ct:i==="[object Uint16Array]"?r+=at:i==="[object Int32Array]"?r+=lt:i==="[object Uint32Array]"?r+=vt:i==="[object Float32Array]"?r+=yt:i==="[object Float64Array]"?r+=pt:t(new Error("Failed to get type for BinaryArray"))),t(r+k(u));else if(i==="[object Blob]")f=new FileReader,f.onload=function(){var i=sr+n.type+"~"+k(this.result);t(l+b+i)},f.readAsArrayBuffer(n);else try{t(JSON.stringify(n))}catch(e){console.error("Couldn't convert value into a JSON string: ",n);t(null,e)}}function cr(n){var i,r,f,u,t;if(n.substring(0,p)!==l)return JSON.parse(n);i=n.substring(wt);r=n.substring(p,wt);r===b&&et.test(i)&&(u=i.match(et),f=u[1],i=i.substring(u[0].length));t=kt(i);switch(r){case w:return t;case b:return y([t],{type:f});case ot:return new Int8Array(t);case st:return new Uint8Array(t);case ht:return new Uint8ClampedArray(t);case ct:return new Int16Array(t);case at:return new Uint16Array(t);case lt:return new Int32Array(t);case vt:return new Uint32Array(t);case yt:return new Float32Array(t);case pt:return new Float64Array(t);default:throw new Error("Unkown type: "+r);}}function lr(n){var f=this,t={db:null},r,u;if(n)for(r in n)t[r]=typeof n[r]!="string"?n[r].toString():n[r];return u=new i(function(n,i){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(r){return i(r)}t.db.transaction(function(r){r.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){f._dbInfo=t;n()},function(n,t){i(t)})})}),t.serializer=a,u}function ar(n,t){var f=this,u;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),u=new i(function(t,i){f.ready().then(function(){var r=f._dbInfo;r.db.transaction(function(u){u.executeSql("SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[n],function(n,i){var u=i.rows.length?i.rows.item(0).value:null;u&&(u=r.serializer.deserialize(u));t(u)},function(n,t){i(t)})})})["catch"](i)}),r(u,t),u}function vr(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){var r=u._dbInfo;r.db.transaction(function(u){u.executeSql("SELECT * FROM "+r.storeName,[],function(i,u){for(var o,f,s=u.rows,h=s.length,e=0;e<h;e++)if(o=s.item(e),f=o.value,f&&(f=r.serializer.deserialize(f)),f=n(f,o.key,e+1),f!==void 0){t(f);return}t()},function(n,t){i(t)})})})["catch"](i)});return r(f,t),f}function dt(n,t,u,f){var e=this,o;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),o=new i(function(i,r){e.ready().then(function(){t===undefined&&(t=null);var s=t,o=e._dbInfo;o.serializer.serialize(t,function(t,h){h?r(h):o.db.transaction(function(u){u.executeSql("INSERT OR REPLACE INTO "+o.storeName+" (key, value) VALUES (?, ?)",[n,t],function(){i(s)},function(n,t){r(t)})},function(t){if(t.code===t.QUOTA_ERR){if(f>0){i(dt.apply(e,[n,s,u,f-1]));return}r(t)}})})})["catch"](r)}),r(o,u),o}function yr(n,t,i){return dt.apply(this,[n,t,i,1])}function pr(n,t){var f=this,u;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),u=new i(function(t,i){f.ready().then(function(){var r=f._dbInfo;r.db.transaction(function(u){u.executeSql("DELETE FROM "+r.storeName+" WHERE key = ?",[n],function(){t()},function(n,t){i(t)})})})["catch"](i)}),r(u,t),u}function wr(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("DELETE FROM "+r.storeName,[],function(){n()},function(n,t){i(t)})})})["catch"](i)});return r(u,n),u}function br(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,i){var r=i.rows.item(0).c;n(r)},function(n,t){i(t)})})})["catch"](i)});return r(u,n),u}function kr(n,t){var u=this,f=new i(function(t,i){u.ready().then(function(){var r=u._dbInfo;r.db.transaction(function(u){u.executeSql("SELECT key FROM "+r.storeName+" WHERE id = ? LIMIT 1",[n+1],function(n,i){var r=i.rows.length?i.rows.item(0).key:null;t(r)},function(n,t){i(t)})})})["catch"](i)});return r(f,t),f}function dr(n){var t=this,u=new i(function(n,i){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT key FROM "+r.storeName,[],function(t,i){for(var u=[],r=0;r<i.rows.length;r++)u.push(i.rows.item(r).key);n(u)},function(n,t){i(t)})})})["catch"](i)});return r(u,n),u}function gr(n){var u=this,t={},r;if(n)for(r in n)t[r]=n[r];return t.keyPrefix=t.name+"/",t.storeName!==u._defaultConfig.storeName&&(t.keyPrefix+=t.storeName+"/"),u._dbInfo=t,t.serializer=a,i.resolve()}function nu(n){var t=this,i=t.ready().then(function(){for(var i,r=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--)i=localStorage.key(n),i.indexOf(r)===0&&localStorage.removeItem(i)});return r(i,n),i}function tu(n,t){var u=this,i;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),i=u.ready().then(function(){var i=u._dbInfo,t=localStorage.getItem(i.keyPrefix+n);return t&&(t=i.serializer.deserialize(t)),t}),r(i,t),i}function iu(n,t){var i=this,u=i.ready().then(function(){for(var r,t,f=i._dbInfo,e=f.keyPrefix,o=e.length,s=localStorage.length,h=1,u=0;u<s;u++)if((r=localStorage.key(u),r.indexOf(e)===0)&&(t=localStorage.getItem(r),t&&(t=f.serializer.deserialize(t)),t=n(t,r.substring(o),h++),t!==void 0))return t});return r(u,t),u}function ru(n,t){var i=this,u=i.ready().then(function(){var r=i._dbInfo,t;try{t=localStorage.key(n)}catch(u){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return r(u,t),u}function uu(n){var t=this,i=t.ready().then(function(){for(var i=t._dbInfo,u=localStorage.length,r=[],n=0;n<u;n++)localStorage.key(n).indexOf(i.keyPrefix)===0&&r.push(localStorage.key(n).substring(i.keyPrefix.length));return r});return r(i,n),i}function fu(n){var i=this,t=i.keys().then(function(n){return n.length});return r(t,n),t}function eu(n,t){var u=this,i;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),i=u.ready().then(function(){var t=u._dbInfo;localStorage.removeItem(t.keyPrefix+n)}),r(i,t),i}function ou(n,t,u){var e=this,f;return typeof n!="string"&&(console.warn(n+" used as a key, but it is not a string."),n=String(n)),f=e.ready().then(function(){t===undefined&&(t=null);var r=t;return new i(function(i,u){var f=e._dbInfo;f.serializer.serialize(t,function(t,e){if(e)u(e);else try{localStorage.setItem(f.keyPrefix+n,t);i(r)}catch(o){(o.name==="QuotaExceededError"||o.name==="NS_ERROR_DOM_QUOTA_REACHED")&&u(o);u(o)}})})}),r(f,u),f}function lu(n,t){n[t]=function(){var i=arguments;return n.ready().then(function(){return n[t].apply(n,i)})}}function tt(){for(var n,t,i=1;i<arguments.length;i++)if(n=arguments[i],n)for(t in n)n.hasOwnProperty(t)&&(arguments[0][t]=nt(n[t])?n[t].slice():n[t]);return arguments[0]}function ni(n){for(var t in u)if(u.hasOwnProperty(t)&&u[t]===n)return!0;return!1}var ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n},v=fi(),i,h,c,e,it,a,gt,nt,ti,ii;typeof Promise=="undefined"&&n(3);i=Promise;h="local-forage-detect-blob-support";it=Object.prototype.toString;var or={_driver:"asyncStorage",_initStorage:di,iterate:nr,getItem:gi,setItem:tr,removeItem:ir,clear:rr,length:ur,key:fr,keys:er},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr="~~local_forage_type~",et=/^~~local_forage_type~([^~]+)~/,l="__lfsc__:",p=l.length,w="arbf",b="blob",ot="si08",st="ui08",ht="uic8",ct="si16",lt="si32",at="ur16",vt="ui32",yt="fl32",pt="fl64",wt=p+w.length,bt=Object.prototype.toString;a={serialize:hr,deserialize:cr,stringToBuffer:kt,bufferToString:k};gt={_driver:"webSQLStorage",_initStorage:lr,iterate:vr,getItem:ar,setItem:yr,removeItem:pr,clear:wr,length:br,key:kr,keys:dr};var su={_driver:"localStorageWrapper",_initStorage:gr,iterate:iu,getItem:tu,setItem:ou,removeItem:eu,clear:nu,length:fu,key:ru,keys:uu},d={},u={INDEXEDDB:"asyncStorage",LOCALSTORAGE:"localStorageWrapper",WEBSQL:"webSQLStorage"},hu=[u.INDEXEDDB,u.WEBSQL,u.LOCALSTORAGE],g=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],cu={description:"",driver:hu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},s={};s[u.INDEXEDDB]=ei();s[u.WEBSQL]=oi();s[u.LOCALSTORAGE]=si();nt=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"};ti=function(){function n(t){ui(this,n);this.INDEXEDDB=u.INDEXEDDB;this.LOCALSTORAGE=u.LOCALSTORAGE;this.WEBSQL=u.WEBSQL;this._defaultConfig=tt({},cu);this._config=tt({},this._defaultConfig,t);this._driverSet=null;this._initDriver=null;this._ready=!1;this._dbInfo=null;this._wrapLibraryMethodsWithReady();this.setDriver(this._config.driver)["catch"](function(){})}return n.prototype.config=function(n){if((typeof n=="undefined"?"undefined":ri(n))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in n){if(t==="storeName"&&(n[t]=n[t].replace(/\W/g,"_")),t==="version"&&typeof n[t]!="number")return new Error("Database version must be a number.");this._config[t]=n[t]}return"driver"in n&&n.driver?this.setDriver(this._config.driver):!0}return typeof n=="string"?this._config[n]:this._config},n.prototype.defineDriver=function(n,t,r){var u=new i(function(t,r){var e,u,f,o;try{var h=n._driver,c=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver"),l=new Error("Custom driver name already in use: "+n._driver);if(!n._driver){r(c);return}if(ni(n._driver)){r(l);return}for(e=g.concat("_initStorage"),u=0;u<e.length;u++)if(f=e[u],!f||!n[f]||typeof n[f]!="function"){r(c);return}o=i.resolve(!0);"_support"in n&&(o=n._support&&typeof n._support=="function"?n._support():i.resolve(!!n._support));o.then(function(i){s[h]=i;d[h]=n;t()},r)}catch(a){r(a)}});return o(u,t,r),u},n.prototype.driver=function(){return this._driver||null},n.prototype.getDriver=function(n,t,r){var u=this,f=i.resolve().then(function(){if(ni(n))switch(n){case u.INDEXEDDB:return or;case u.LOCALSTORAGE:return su;case u.WEBSQL:return gt}else{if(d[n])return d[n];throw new Error("Driver not found.");}});return o(f,t,r),f},n.prototype.getSerializer=function(n){var t=i.resolve(a);return o(t,n),t},n.prototype.ready=function(n){var t=this,i=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return o(i,n,n),i},n.prototype.setDriver=function(n,t,r){function f(){u._config.driver=u.driver()}function h(n){return u._extend(n),f(),u._ready=u._initStorage(u._config),u._ready}function c(n){return function(){function r(){for(var e,o;t<n.length;)return e=n[t],t++,u._dbInfo=null,u._ready=null,u.getDriver(e).then(h)["catch"](r);return f(),o=new Error("No available storage method found."),u._driverSet=i.reject(o),u._driverSet}var t=0;return r()}}var u=this,e,s;return nt(n)||(n=[n]),e=this._getSupportedDrivers(n),s=this._driverSet!==null?this._driverSet["catch"](function(){return i.resolve()}):i.resolve(),this._driverSet=s.then(function(){var n=e[0];return u._dbInfo=null,u._ready=null,u.getDriver(n).then(function(n){u._driver=n._driver;f();u._wrapLibraryMethodsWithReady();u._initDriver=c(e)})})["catch"](function(){f();var n=new Error("No available storage method found.");return u._driverSet=i.reject(n),u._driverSet}),o(this._driverSet,t,r),this._driverSet},n.prototype.supports=function(n){return!!s[n]},n.prototype._extend=function(n){tt(this,n)},n.prototype._getSupportedDrivers=function(n){for(var i,r=[],t=0,u=n.length;t<u;t++)i=n[t],this.supports(i)&&r.push(i);return r},n.prototype._wrapLibraryMethodsWithReady=function(){for(var n=0;n<g.length;n++)lu(this,g[n])},n.prototype.createInstance=function(t){return new n(t)},n}();ii=new ti;t.exports=ii},{"3":3}]},{},[4])(4)});;
/*
 * angular-ui-bootstrap
 * http://angular-ui.github.io/bootstrap/

 * Version: 2.5.0 - 2017-01-28
 * License: MIT
 */angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.modal","ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position","ui.bootstrap.tooltip"]),angular.module("ui.bootstrap.tpls",["uib/template/modal/window.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html"]),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(e,o){var i=t.resolver?e.get(t.resolver):null;return{resolve:function(t,n,r,a){if(i)return i.resolve(t,n,r,a);var l=[];return angular.forEach(t,function(t){l.push(angular.isFunction(t)||angular.isArray(t)?o.resolve(e.invoke(t)):angular.isString(t)?o.resolve(e.get(t)):o.resolve(t))}),o.all(l).then(function(e){var o={},i=0;return angular.forEach(t,function(t,n){o[n]=e[i++]}),o})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(t,e,o){function i(e,i,n){n.modalInClass&&(t.addClass(i,n.modalInClass),e.$on(o.NOW_CLOSING_EVENT,function(o,r){var a=r();e.modalOptions.animation?t.removeClass(i,n.modalInClass).then(a):a()}))}return{restrict:"A",compile:function(t,e){return t.addClass(e.backdropClass),i}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(t,e,o,i){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/modal/window.html"},link:function(n,r,a){r.addClass(a.windowTopClass||""),n.size=a.size,n.close=function(e){var o=t.getTop();o&&o.value.backdrop&&"static"!==o.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(o.key,"backdrop click"))},r.on("click",n.close),n.$isRendered=!0;var l=e.defer();n.$$postDigest(function(){l.resolve()}),l.promise.then(function(){var l=null;a.modalInClass&&(l=o(r,{addClass:a.modalInClass}).start(),n.$on(t.NOW_CLOSING_EVENT,function(t,e){var i=e();o(r,{removeClass:a.modalInClass}).start().then(i)})),e.when(l).then(function(){var e=t.getTop();if(e&&t.modalRendered(e.key),!i[0].activeElement||!r[0].contains(i[0].activeElement)){var o=r[0].querySelector("[autofocus]");o?o.focus():r[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(t){return{link:function(e,o,i,n,r){r(e.$parent,function(e){o.empty(),t.enter(e,o)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(t,e,o,i,n,r,a,l,p){function s(t){var e="-";return t.replace(O,function(t,o){return(o?e:"")+t.toLowerCase()})}function u(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function c(){for(var t=-1,e=k.keys(),o=0;o<e.length;o++)k.get(e[o]).value.backdrop&&(t=o);return t>-1&&S>t&&(t=S),t}function d(t,e){var o=k.get(t).value,i=o.appendTo;k.remove(t),x=k.top(),x&&(S=parseInt(x.value.modalDomEl.attr("index"),10)),h(o.modalDomEl,o.modalScope,function(){var e=o.openedClass||C;T.remove(e,t);var n=T.hasKey(e);i.toggleClass(e,n),!n&&y&&y.heightOverflow&&y.scrollbarWidth&&(i.css(y.originalRight?{paddingRight:y.originalRight+"px"}:{paddingRight:""}),y=null),f(!0)},o.closedDeferred),m(),e&&e.focus?e.focus():i.focus&&i.focus()}function f(t){var e;k.length()>0&&(e=k.top().value,e.modalDomEl.toggleClass(e.windowTopClass||"",t))}function m(){if(w&&-1===c()){var t=$;h(w,$,function(){t=null}),w=void 0,$=void 0}}function h(e,o,i,n){function a(){a.done||(a.done=!0,t.leave(e).then(function(){i&&i(),e.remove(),n&&n.resolve()}),o.$destroy())}var l,p=null,s=function(){return l||(l=r.defer(),p=l.promise),function(){l.resolve()}};return o.$broadcast(E.NOW_CLOSING_EVENT,s),r.when(p).then(a)}function b(t){if(t.isDefaultPrevented())return t;var e=k.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),n.$apply(function(){E.dismiss(e.key,"escape key press")}));break;case 9:var o=E.loadFocusElementList(e),i=!1;t.shiftKey?(E.isFocusInFirstItem(t,o)||E.isModalFocused(t,e))&&(i=E.focusLastFocusableElement(o)):E.isFocusInLastItem(t,o)&&(i=E.focusFirstFocusableElement(o)),i&&(t.preventDefault(),t.stopPropagation())}}function v(t,e,o){return!t.value.modalScope.$broadcast("modal.closing",e,o).defaultPrevented}function g(){Array.prototype.forEach.call(document.querySelectorAll("["+D+"]"),function(t){var e=parseInt(t.getAttribute(D),10),o=e-1;t.setAttribute(D,o),o||(t.removeAttribute(D),t.removeAttribute("aria-hidden"))})}var w,$,y,C="modal-open",k=l.createNew(),T=a.createNew(),E={NOW_CLOSING_EVENT:"modal.stack.now-closing"},S=0,x=null,D="data-bootstrap-modal-aria-hidden-count",M="a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]",O=/[A-Z]/g;return n.$watch(c,function(t){$&&($.index=t)}),o.on("keydown",b),n.$on("$destroy",function(){o.off("keydown",b)}),E.open=function(e,r){function a(t){function e(t){var e=t.parent()?t.parent().children():[];return Array.prototype.filter.call(e,function(e){return e!==t[0]})}if(t&&"BODY"!==t[0].tagName)return e(t).forEach(function(t){var e="true"===t.getAttribute("aria-hidden"),o=parseInt(t.getAttribute(D),10);o||(o=e?1:0),t.setAttribute(D,o+1),t.setAttribute("aria-hidden","true")}),a(t.parent())}var l=o[0].activeElement,u=r.openedClass||C;f(!1),x=k.top(),k.add(e,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),T.put(u,e);var d=r.appendTo,m=c();m>=0&&!w&&($=n.$new(!0),$.modalOptions=r,$.index=m,w=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),w.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),r.backdropClass&&w.addClass(r.backdropClass),r.animation&&w.attr("modal-animation","true"),i(w)($),t.enter(w,d),p.isScrollable(d)&&(y=p.scrollbarPadding(d),y.heightOverflow&&y.scrollbarWidth&&d.css({paddingRight:y.right+"px"})));var h;r.component?(h=document.createElement(s(r.component.name)),h=angular.element(h),h.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):h=r.content,S=x?parseInt(x.value.modalDomEl.attr("index"),10)+1:0;var b=angular.element('<div uib-modal-window="modal-window"></div>');b.attr({"class":"modal","template-url":r.windowTemplateUrl,"window-top-class":r.windowTopClass,role:"dialog","aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,size:r.size,index:S,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(h),r.windowClass&&b.addClass(r.windowClass),r.animation&&b.attr("modal-animation","true"),d.addClass(u),r.scope&&(r.scope.$$topModalIndex=S),t.enter(i(b)(r.scope),d),k.top().value.modalDomEl=b,k.top().value.modalOpener=l,a(b)},E.close=function(t,e){var o=k.get(t);return g(),o&&v(o,e,!0)?(o.value.modalScope.$$uibDestructionScheduled=!0,o.value.deferred.resolve(e),d(t,o.value.modalOpener),!0):!o},E.dismiss=function(t,e){var o=k.get(t);return g(),o&&v(o,e,!1)?(o.value.modalScope.$$uibDestructionScheduled=!0,o.value.deferred.reject(e),d(t,o.value.modalOpener),!0):!o},E.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},E.getTop=function(){return k.top()},E.modalRendered=function(t){var e=k.get(t);e&&e.value.renderDeferred.resolve()},E.focusFirstFocusableElement=function(t){return t.length>0?(t[0].focus(),!0):!1},E.focusLastFocusableElement=function(t){return t.length>0?(t[t.length-1].focus(),!0):!1},E.isModalFocused=function(t,e){if(t&&e){var o=e.value.modalDomEl;if(o&&o.length)return(t.target||t.srcElement)===o[0]}return!1},E.isFocusInFirstItem=function(t,e){return e.length>0?(t.target||t.srcElement)===e[0]:!1},E.isFocusInLastItem=function(t,e){return e.length>0?(t.target||t.srcElement)===e[e.length-1]:!1},E.loadFocusElementList=function(t){if(t){var e=t.value.modalDomEl;if(e&&e.length){var o=e[0].querySelectorAll(M);return o?Array.prototype.filter.call(o,function(t){return u(t)}):o}}},E}]).provider("$uibModal",function(){var t={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(e,o,i,n,r,a,l){function p(t){return t.template?o.when(t.template):n(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl)}var s={},u=null;return s.getPromiseChain=function(){return u},s.open=function(n){function s(){return b}var c=o.defer(),d=o.defer(),f=o.defer(),m=o.defer(),h={result:c.promise,opened:d.promise,closed:f.promise,rendered:m.promise,close:function(t){return l.close(h,t)},dismiss:function(t){return l.dismiss(h,t)}};if(n=angular.extend({},t.options,n),n.resolve=n.resolve||{},n.appendTo=n.appendTo||i.find("body").eq(0),!n.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!n.component&&!n.template&&!n.templateUrl)throw new Error("One of component or template or templateUrl options is required.");var b;b=n.component?o.when(a.resolve(n.resolve,{},null,null)):o.all([p(n),a.resolve(n.resolve,{},null,null)]);var v;return v=u=o.all([u]).then(s,s).then(function(t){function o(e,o,i,n){e.$scope=a,e.$scope.$resolve={},i?e.$scope.$uibModalInstance=h:e.$uibModalInstance=h;var r=o?t[1]:t;angular.forEach(r,function(t,o){n&&(e[o]=t),e.$scope.$resolve[o]=t})}var i=n.scope||e,a=i.$new();a.$close=h.close,a.$dismiss=h.dismiss,a.$on("$destroy",function(){a.$$uibDestructionScheduled||a.$dismiss("$uibUnscheduledDestruction")});var p,s,u={scope:a,deferred:c,renderDeferred:m,closedDeferred:f,animation:n.animation,backdrop:n.backdrop,keyboard:n.keyboard,backdropClass:n.backdropClass,windowTopClass:n.windowTopClass,windowClass:n.windowClass,windowTemplateUrl:n.windowTemplateUrl,ariaLabelledBy:n.ariaLabelledBy,ariaDescribedBy:n.ariaDescribedBy,size:n.size,openedClass:n.openedClass,appendTo:n.appendTo},b={},v={};n.component?(o(b,!1,!0,!1),b.name=n.component,u.component=b):n.controller&&(o(v,!0,!1,!0),s=r(n.controller,v,!0,n.controllerAs),n.controllerAs&&n.bindToController&&(p=s.instance,p.$close=a.$close,p.$dismiss=a.$dismiss,angular.extend(p,{$resolve:v.$scope.$resolve},i)),p=s(),angular.isFunction(p.$onInit)&&p.$onInit()),n.component||(u.content=t[0]),l.open(h,u),d.resolve(!0)},function(t){d.reject(t),c.reject(t)})["finally"](function(){u===v&&(u=null)}),h},s}]};return t}),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map(function(e){return{key:e,value:t[e]}})},get:function(e){return t[e]},hasKey:function(e){return!!t[e]},keys:function(){return Object.keys(t)},put:function(e,o){t[e]||(t[e]=[]),t[e].push(o)},remove:function(e,o){var i=t[e];if(i){var n=i.indexOf(o);-1!==n&&i.splice(n,1),i.length||delete t[e]}}}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,o){t.push({key:e,value:o})},get:function(e){for(var o=0;o<t.length;o++)if(e===t[o].key)return t[o]},keys:function(){for(var e=[],o=0;o<t.length;o++)e.push(t[o].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var o=-1,i=0;i<t.length;i++)if(e===t[i].key){o=i;break}return t.splice(o,1)[0]},removeTop:function(){return t.pop()},length:function(){return t.length}}}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(t,e){var o,i,n={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(t){return t.nodeName?t:t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(o){function i(t){return"static"===(e.getComputedStyle(t).position||"static")}o=this.getRawNode(o);for(var n=o.offsetParent||t[0].documentElement;n&&n!==t[0].documentElement&&i(n);)n=n.offsetParent;return n||t[0].documentElement},scrollbarWidth:function(n){if(n){if(angular.isUndefined(i)){var r=t.find("body");r.addClass("uib-position-body-scrollbar-measure"),i=e.innerWidth-r[0].clientWidth,i=isFinite(i)?i:0,r.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(o)){var a=angular.element('<div class="uib-position-scrollbar-measure"></div>');t.find("body").append(a),o=a[0].offsetWidth-a[0].clientWidth,o=isFinite(o)?o:0,a.remove()}return o},scrollbarPadding:function(t){t=this.getRawNode(t);var o=e.getComputedStyle(t),i=this.parseStyle(o.paddingRight),n=this.parseStyle(o.paddingBottom),r=this.scrollParent(t,!1,!0),l=this.scrollbarWidth(a.test(r.tagName));return{scrollbarWidth:l,widthOverflow:r.scrollWidth>r.clientWidth,right:i+l,originalRight:i,heightOverflow:r.scrollHeight>r.clientHeight,bottom:n+l,originalBottom:n}},isScrollable:function(t,o){t=this.getRawNode(t);var i=o?n.hidden:n.normal,r=e.getComputedStyle(t);return i.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(o,i,r){o=this.getRawNode(o);var a=i?n.hidden:n.normal,l=t[0].documentElement,p=e.getComputedStyle(o);if(r&&a.test(p.overflow+p.overflowY+p.overflowX))return o;var s="absolute"===p.position,u=o.parentElement||l;if(u===l||"fixed"===p.position)return l;for(;u.parentElement&&u!==l;){var c=e.getComputedStyle(u);if(s&&"static"!==c.position&&(s=!1),!s&&a.test(c.overflow+c.overflowY+c.overflowX))break;u=u.parentElement}return u},position:function(o,i){o=this.getRawNode(o);var n=this.offset(o);if(i){var r=e.getComputedStyle(o);n.top-=this.parseStyle(r.marginTop),n.left-=this.parseStyle(r.marginLeft)}var a=this.offsetParent(o),l={top:0,left:0};return a!==t[0].documentElement&&(l=this.offset(a),l.top+=a.clientTop-a.scrollTop,l.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:o.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:o.offsetHeight),top:Math.round(n.top-l.top),left:Math.round(n.left-l.left)}},offset:function(o){o=this.getRawNode(o);var i=o.getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:o.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:o.offsetHeight),top:Math.round(i.top+(e.pageYOffset||t[0].documentElement.scrollTop)),left:Math.round(i.left+(e.pageXOffset||t[0].documentElement.scrollLeft))}},viewportOffset:function(o,i,n){o=this.getRawNode(o),n=n!==!1?!0:!1;var r=o.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},l=i?t[0].documentElement:this.scrollParent(o),p=l.getBoundingClientRect();if(a.top=p.top+l.clientTop,a.left=p.left+l.clientLeft,l===t[0].documentElement&&(a.top+=e.pageYOffset,a.left+=e.pageXOffset),a.bottom=a.top+l.clientHeight,a.right=a.left+l.clientWidth,n){var s=e.getComputedStyle(l);a.top+=this.parseStyle(s.paddingTop),a.bottom-=this.parseStyle(s.paddingBottom),a.left+=this.parseStyle(s.paddingLeft),a.right-=this.parseStyle(s.paddingRight)}return{top:Math.round(r.top-a.top),bottom:Math.round(a.bottom-r.bottom),left:Math.round(r.left-a.left),right:Math.round(a.right-r.right)}},parsePlacement:function(t){var e=r.auto.test(t);return e&&(t=t.replace(r.auto,"")),t=t.split("-"),t[0]=t[0]||"top",r.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",r.secondary.test(t[1])||(t[1]="center"),t[2]=e?!0:!1,t},positionElements:function(t,o,i,n){t=this.getRawNode(t),o=this.getRawNode(o);var a=angular.isDefined(o.offsetWidth)?o.offsetWidth:o.prop("offsetWidth"),l=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight");i=this.parsePlacement(i);var p=n?this.offset(t):this.position(t),s={top:0,left:0,placement:""};if(i[2]){var u=this.viewportOffset(t,n),c=e.getComputedStyle(o),d={width:a+Math.round(Math.abs(this.parseStyle(c.marginLeft)+this.parseStyle(c.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(c.marginTop)+this.parseStyle(c.marginBottom)))};if(i[0]="top"===i[0]&&d.height>u.top&&d.height<=u.bottom?"bottom":"bottom"===i[0]&&d.height>u.bottom&&d.height<=u.top?"top":"left"===i[0]&&d.width>u.left&&d.width<=u.right?"right":"right"===i[0]&&d.width>u.right&&d.width<=u.left?"left":i[0],i[1]="top"===i[1]&&d.height-p.height>u.bottom&&d.height-p.height<=u.top?"bottom":"bottom"===i[1]&&d.height-p.height>u.top&&d.height-p.height<=u.bottom?"top":"left"===i[1]&&d.width-p.width>u.right&&d.width-p.width<=u.left?"right":"right"===i[1]&&d.width-p.width>u.left&&d.width-p.width<=u.right?"left":i[1],"center"===i[1])if(r.vertical.test(i[0])){var f=p.width/2-a/2;u.left+f<0&&d.width-p.width<=u.right?i[1]="left":u.right+f<0&&d.width-p.width<=u.left&&(i[1]="right")}else{var m=p.height/2-d.height/2;u.top+m<0&&d.height-p.height<=u.bottom?i[1]="top":u.bottom+m<0&&d.height-p.height<=u.top&&(i[1]="bottom")}}switch(i[0]){case"top":s.top=p.top-l;break;case"bottom":s.top=p.top+p.height;break;case"left":s.left=p.left-a;break;case"right":s.left=p.left+p.width}switch(i[1]){case"top":s.top=p.top;break;case"bottom":s.top=p.top+p.height-l;break;case"left":s.left=p.left;break;case"right":s.left=p.left+p.width-a;break;case"center":r.vertical.test(i[0])?s.left=p.left+p.width/2-a/2:s.top=p.top+p.height/2-l/2}return s.top=Math.round(s.top),s.left=Math.round(s.left),s.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],s},adjustTop:function(t,e,o,i){return-1!==t.indexOf("top")&&o!==i?{top:e.top-i+"px"}:void 0},positionArrow:function(t,o){t=this.getRawNode(t);var i=t.querySelector(".tooltip-inner, .popover-inner");if(i){var n=angular.element(i).hasClass("tooltip-inner"),a=t.querySelector(n?".tooltip-arrow":".arrow");if(a){var l={top:"",bottom:"",left:"",right:""};if(o=this.parsePlacement(o),"center"===o[1])return void angular.element(a).css(l);var p="border-"+o[0]+"-width",s=e.getComputedStyle(a)[p],u="border-";u+=r.vertical.test(o[0])?o[0]+"-"+o[1]:o[1]+"-"+o[0],u+="-radius";var c=e.getComputedStyle(n?i:t)[u];switch(o[0]){case"top":l.bottom=n?"0":"-"+s;break;case"bottom":l.top=n?"0":"-"+s;break;case"left":l.right=n?"0":"-"+s;break;case"right":l.left=n?"0":"-"+s}l[o[1]]=c,angular.element(a).css(l)}}}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function t(t){var e=/[A-Z]/g,o="-";return t.replace(e,function(t,e){return(e?o:"")+t.toLowerCase()})}var e={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},o={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(o,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(n,r,a,l,p,s,u,c,d){function f(t){if(27===t.which){var e=m.top();e&&(e.value.close(),e=null)}}var m=d.createNew();return l.on("keyup",f),u.$on("$destroy",function(){l.off("keyup",f)}),function(n,u,d,f){function h(t){var e=(t||f.trigger||d).split(" "),i=e.map(function(t){return o[t]||t});return{show:e,hide:i}}f=angular.extend({},e,i,f);var b=t(n),v=s.startSymbol(),g=s.endSymbol(),w="<div "+b+'-popup uib-title="'+v+"title"+g+'" '+(f.useContentExp?'content-exp="contentExp()" ':'content="'+v+"content"+g+'" ')+'origin-scope="origScope" class="uib-position-measure '+u+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(){var t=r(w);return function(e,o,i){function r(){H.isOpen?d():s()}function s(){(!B||e.$eval(i[u+"Enable"]))&&(w(),C(),H.popupDelay?A||(A=a(b,H.popupDelay,!1)):b())}function d(){v(),H.popupCloseDelay?P||(P=a(g,H.popupCloseDelay,!1)):g()}function b(){return v(),w(),H.content?($(),void H.$evalAsync(function(){H.isOpen=!0,k(!0),_()})):angular.noop}function v(){A&&(a.cancel(A),A=null),I&&(a.cancel(I),I=null)}function g(){H&&H.$evalAsync(function(){H&&(H.isOpen=!1,k(!1),H.animation?N||(N=a(y,150,!1)):y())})}function w(){P&&(a.cancel(P),P=null),N&&(a.cancel(N),N=null)}function $(){M||(O=H.$new(),M=t(O,function(t){L?l.find("body").append(t):o.after(t)}),m.add(H,{close:g}),T())}function y(){v(),w(),E(),M&&(M.remove(),M=null,R&&a.cancel(R)),m.remove(H),O&&(O.$destroy(),O=null)}function C(){H.title=i[u+"Title"],H.content=j?j(e):i[n],H.popupClass=i[u+"Class"],H.placement=angular.isDefined(i[u+"Placement"])?i[u+"Placement"]:f.placement;var t=p.parsePlacement(H.placement);F=t[1]?t[0]+"-"+t[1]:t[0];var o=parseInt(i[u+"PopupDelay"],10),r=parseInt(i[u+"PopupCloseDelay"],10);H.popupDelay=isNaN(o)?f.popupDelay:o,H.popupCloseDelay=isNaN(r)?f.popupCloseDelay:r}function k(t){q&&angular.isFunction(q.assign)&&q.assign(e,t)}function T(){z.length=0,j?(z.push(e.$watch(j,function(t){H.content=t,!t&&H.isOpen&&g()})),z.push(O.$watch(function(){U||(U=!0,O.$$postDigest(function(){U=!1,H&&H.isOpen&&_()}))}))):z.push(i.$observe(n,function(t){H.content=t,!t&&H.isOpen?g():_()})),z.push(i.$observe(u+"Title",function(t){H.title=t,H.isOpen&&_()})),z.push(i.$observe(u+"Placement",function(t){H.placement=t?t:f.placement,H.isOpen&&_()}))}function E(){z.length&&(angular.forEach(z,function(t){t()}),z.length=0)}function S(t){H&&H.isOpen&&M&&(o[0].contains(t.target)||M[0].contains(t.target)||d())}function x(t){27===t.which&&d()}function D(){var t=[],n=[],a=e.$eval(i[u+"Trigger"]);Y(),angular.isObject(a)?(Object.keys(a).forEach(function(e){t.push(e),n.push(a[e])}),W={show:t,hide:n}):W=h(a),"none"!==W.show&&W.show.forEach(function(t,e){"outsideClick"===t?(o.on("click",r),l.on("click",S)):t===W.hide[e]?o.on(t,r):t&&(o.on(t,s),o.on(W.hide[e],d)),o.on("keypress",x)})}var M,O,N,A,P,I,R,F,L=angular.isDefined(f.appendToBody)?f.appendToBody:!1,W=h(void 0),B=angular.isDefined(i[u+"Enable"]),H=e.$new(!0),U=!1,q=angular.isDefined(i[u+"IsOpen"])?c(i[u+"IsOpen"]):!1,j=f.useContentExp?c(i[n]):!1,z=[],_=function(){M&&M.html()&&(I||(I=a(function(){var t=p.positionElements(o,M,H.placement,L),e=angular.isDefined(M.offsetHeight)?M.offsetHeight:M.prop("offsetHeight"),i=L?p.offset(o):p.position(o);M.css({top:t.top+"px",left:t.left+"px"});var n=t.placement.split("-");M.hasClass(n[0])||(M.removeClass(F.split("-")[0]),M.addClass(n[0])),M.hasClass(f.placementClassPrefix+t.placement)||(M.removeClass(f.placementClassPrefix+F),M.addClass(f.placementClassPrefix+t.placement)),R=a(function(){var t=angular.isDefined(M.offsetHeight)?M.offsetHeight:M.prop("offsetHeight"),o=p.adjustTop(n,i,e,t);o&&M.css(o),R=null},0,!1),M.hasClass("uib-position-measure")?(p.positionArrow(M,t.placement),M.removeClass("uib-position-measure")):F!==t.placement&&p.positionArrow(M,t.placement),F=t.placement,I=null},0,!1)))};H.origScope=e,H.isOpen=!1,H.contentExp=function(){return H.content},i.$observe("disabled",function(t){t&&v(),t&&H.isOpen&&g()}),q&&e.$watch(q,function(t){H&&!t===H.isOpen&&r()});var Y=function(){W.show.forEach(function(t){"outsideClick"===t?o.off("click",r):(o.off(t,s),o.off(t,r)),o.off("keypress",x)}),W.hide.forEach(function(t){"outsideClick"===t?l.off("click",S):o.off(t,d)})};D();var X=e.$eval(i[u+"Animation"]);H.animation=angular.isDefined(X)?!!X:f.animation;var G,V=u+"AppendToBody";G=V in i&&void 0===i[V]?!0:e.$eval(i[V]),L=angular.isDefined(G)?G:L,e.$on("$destroy",function(){Y(),y(),H=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(t,e,o,i){return{link:function(n,r,a){var l,p,s,u=n.$eval(a.tooltipTemplateTranscludeScope),c=0,d=function(){p&&(p.remove(),p=null),l&&(l.$destroy(),l=null),s&&(t.leave(s).then(function(){p=null}),p=s,s=null)};n.$watch(e.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(e){var a=++c;e?(i(e,!0).then(function(i){if(a===c){var n=u.$new(),p=i,f=o(p)(n,function(e){d(),t.enter(e,r)});l=n,s=f,l.$emit("$includeContentLoaded",e)}},function(){a===c&&(d(),n.$emit("$includeContentError",e))}),n.$emit("$includeContentRequested",e)):d()}),n.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(t){return{restrict:"A",link:function(e,o,i){if(e.placement){var n=t.parsePlacement(e.placement);o.addClass(n[0])}e.popupClass&&o.addClass(e.popupClass),e.animation&&o.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0});;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.core.min",["jquery"],e)}(function(){return function(e,t,n){function r(){}function o(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),r=e.substring(1);return"="===n?"+("+r+")+":":"===n?"+$kendoHtmlEncode("+r+")+":";"+e+";$kendoOutput+="}function i(e,t,n){return e+="",t=t||2,n=t-e.length,n?B[t].substring(0,n)+e:e}function a(e){var t=e.css(Ce.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(Re)||[0,0,0,0,0]:[0,0,0,0,0],r=_e.max(+n[3],+(n[4]||0));return{left:-n[1]+r,right:+n[1]+r,bottom:+n[2]+r}}function s(n,r){var o,i,a,s,l,c,d=Ce._outerWidth,f=Ce._outerHeight,p=n.parent(),m=d(t);return p.removeClass("k-animation-container-sm"),p.hasClass("k-animation-container")?u(n,r):(i=n[0].style.width,a=n[0].style.height,s=Ne.test(i),l=Ne.test(a),c=n.hasClass("k-tooltip")||n.is(".k-menu-horizontal.k-context-menu"),o=s||l,!s&&(!r||r&&i||c)&&(i=r?d(n)+1:d(n)),(!l&&(!r||r&&a)||n.is(".k-menu-horizontal.k-context-menu"))&&(a=f(n)),n.wrap(e("<div/>").addClass("k-animation-container").css({width:i,height:a})),p=n.parent(),o&&n.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),m<d(p)&&(p.addClass("k-animation-container-sm"),u(n,r)),p}function u(e,t){var n,r=Ce._outerWidth,o=Ce._outerHeight,i=e.parent(".k-animation-container"),a=i[0].style;i.is(":hidden")&&i.css({display:"",position:""}),n=Ne.test(a.width)||Ne.test(a.height),n||i.css({width:t?r(e)+1:r(e),height:o(e),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})}function l(e){var t=1,n=arguments.length;for(t=1;t<n;t++)c(e,arguments[t]);return e}function c(e,n){var r,o,i,a,s,u=Ce.data.ObservableArray,l=Ce.data.LazyObservableArray,d=Ce.data.DataSource,f=Ce.data.HierarchicalDataSource;for(r in n)o=n[r],i=typeof o,a=i===$e&&null!==o?o.constructor:null,!a||a===Array||a===u||a===l||a===d||a===f||a===RegExp||Ce.isFunction(t.ArrayBuffer)&&a===ArrayBuffer?i!==Ye&&(e[r]=o):o instanceof Date?e[r]=new Date(o.getTime()):F(o.clone)?e[r]=o.clone():(s=e[r],e[r]=typeof s===$e?s||{}:{},c(e[r],o));return e}function d(e,t,r){for(var o in t)if(t.hasOwnProperty(o)&&t[o].test(e))return o;return r!==n?r:e}function f(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function p(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function m(t,n){var r,o={};return document.defaultView&&document.defaultView.getComputedStyle?(r=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=r.getPropertyValue(t)})):(r=t.currentStyle,n&&e.each(n,function(e,t){o[t]=r[p(t)]})),Ce.size(o)||(o=r),o}function h(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=m(e,["overflow"]).overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1}function g(t,r){var o,i,a=Fe.browser.webkit,s=Fe.browser.mozilla,u=Fe.browser.version;return t instanceof e&&r!==n?(t.each(function(e,t){g(t,r)}),n):(o=t instanceof e?t[0]:t)?(i=Fe.isRtl(t),r===n?i&&a&&(u<85||Fe.browser.safari)?o.scrollWidth-o.clientWidth-o.scrollLeft:Math.abs(o.scrollLeft):(o.scrollLeft=i&&a&&(u<85||Fe.browser.safari)?o.scrollWidth-o.clientWidth-r:i&&(s||a)&&r>0?-r:r,n)):n}function y(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function v(e,n,r){var o,i,a;return n||(n="offset"),o=e[n](),i={top:o.top,right:o.right,bottom:o.bottom,left:o.left},Fe.browser.msie&&(Fe.pointers||Fe.msPointers)&&!r&&(a=Fe.isRtl(e)?1:-1,i.top-=t.pageYOffset-document.documentElement.scrollTop,i.left-=t.pageXOffset+a*document.documentElement.scrollLeft),i}function b(e){var t={};return De("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function w(e){return new Ce.effects.Element(e)}function M(e,t,n,r){return typeof e===We&&(F(t)&&(r=t,t=400,n=!1),F(n)&&(r=n,n=!1),typeof t===Be&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:r}),Oe({effects:{},duration:400,reverse:!1,init:Ee,teardown:Ee,hide:!1},e,{completeCallback:e.complete,complete:Ee})}function x(t,n,r,o,i){for(var a,s=0,u=t.length;s<u;s++)a=e(t[s]),a.queue(function(){q.promise(a,M(n,r,o,i))});return t}function S(e,t,n,r){return t&&(t=t.split(" "),De(t,function(t,n){e.toggleClass(n,r)})),e}function T(e){return(""+e).replace(J,"&amp;").replace(V,"&lt;").replace(Q,"&gt;").replace(G,"&quot;").replace(K,"&#39;")}function k(e){var n;try{n=t.decodeURIComponent(e)}catch(r){n=e.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,function(e,t,n){return String.fromCharCode(parseInt("0x"+(t||n),16))})}return n}function C(e,t){var r;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(ae,"-$1"),r=e.getAttribute("data-"+Ce.ns+t),null===r?r=n:"null"===r?r=null:"true"===r?r=!0:"false"===r?r=!1:je.test(r)&&"mask"!=t?r=parseFloat(r):oe.test(r)&&!ie.test(r)&&(r=Function("return ("+r+")")()),r}function O(t,r,o){var i,a,s={},u=t.getAttribute("data-"+Ce.ns+"role");for(i in r)a=C(t,i),a!==n&&(re.test(i)&&"drawer"!=u&&("string"==typeof a?e("#"+a).length?a=Ce.template(e("#"+a).html()):o&&(a=Ce.template(o[a])):a=t.getAttribute(i)),s[i]=a);return s}function D(t,n){return e.contains(t,n)?-1:1}function z(){var t=e(this);return e.inArray(t.attr("data-"+Ce.ns+"role"),["slider","rangeslider","breadcrumb"])>-1||t.is(":visible")}function A(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&E(e)}function E(t){return e.expr.pseudos.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function _(e,t){return new _.fn.init(e,t)}var H,F,N,P,R,j,U,W,I,$,L,B,Y,q,J,V,G,K,Q,Z,X,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,de,fe,pe,me,he,ge,ye,ve,be,we,Me,xe,Se,Te,ke,Ce=t.kendo=t.kendo||{cultures:{}},Oe=e.extend,De=e.each,ze=e.isArray,Ae=e.proxy,Ee=e.noop,_e=Math,He=t.JSON||{},Fe={},Ne=/%/,Pe=/\{(\d+)(:[^\}]+)?\}/g,Re=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,je=/^(\+|-?)\d+(\.?)\d*$/,Ue="function",We="string",Ie="number",$e="object",Le="null",Be="boolean",Ye="undefined",qe={},Je={},Ve=[].slice,Ge=function(){var e,t,r,o,i,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"==typeof s||jQuery.isFunction(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(i=arguments[u]))for(o in i)"filters"!=o&&"concat"!=o&&":"!=o&&(e=s[o],r=i[o],s!==r&&(c&&r&&(jQuery.isPlainObject(r)||(t=jQuery.isArray(r)))?(t?(t=!1,a=e&&jQuery.isArray(e)?e:[]):a=e&&jQuery.isPlainObject(e)?e:{},s[o]=Ge(c,a,r)):r!==n&&(s[o]=r)));return s};Ce.version="2021.2.616".replace(/^\s+|\s+$/g,""),r.extend=function(e){var t,n,r=function(){},o=this,i=e&&e.init?e.init:function(){o.apply(this,arguments)};r.prototype=o.prototype,n=i.fn=i.prototype=new r;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?Oe(!0,{},r.prototype[t],e[t]):e[t];return n.constructor=i,i.extend=o.extend,i},r.prototype._initOptions=function(e){this.options=l({},this.options,e)},F=Ce.isFunction=function(e){return"function"==typeof e},N=function(){this._defaultPrevented=!0},P=function(){return this._defaultPrevented===!0},R=r.extend({init:function(){this._events={}},bind:function(e,t,r){var o,i,a,s,u,l=this,c=typeof e===We?[e]:e,d=typeof t===Ue;if(t===n){for(o in e)l.bind(o,e[o]);return l}for(o=0,i=c.length;o<i;o++)e=c[o],s=d?t:t[e],s&&(r&&(a=s,s=function(){l.unbind(e,s),a.apply(l,arguments)},s.original=a),u=l._events[e]=l._events[e]||[],u.push(s));return l},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,r,o,i,a=this,s=typeof e===We?[e]:e,u=typeof t===Ue;for(n=0,r=s.length;n<r;n++)e=s[n],o=u?t:t[e],o&&(i=a._events[e]=a._events[e]||[],i.unshift(o));return a},trigger:function(e,t){var n,r,o=this,i=o._events[e];if(i){for(t=t||{},t.sender=o,t._defaultPrevented=!1,t.preventDefault=N,t.isDefaultPrevented=P,i=i.slice(),n=0,r=i.length;n<r;n++)i[n].call(o,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var r,o=this,i=o._events[e];if(e===n)o._events={};else if(i)if(t)for(r=i.length-1;r>=0;r--)i[r]!==t&&i[r].original!==t||i.splice(r,1);else o._events[e]=[];return o}}),j=/^\w+/,U=/\$\{([^}]*)\}/g,W=/\\\}/g,I=/__CURLY__/g,$=/\\#/g,L=/__SHARP__/g,B=["","0","00","000","0000"],H={paramName:"data",useWithBlock:!0,render:function(e,t){var n,r,o="";for(n=0,r=t.length;n<r;n++)o+=e(t[n]);return o},compile:function(e,t){var n,r,i,a=Oe({},this,t),s=a.paramName,u=s.match(j)[0],l=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(F(e))return e;for(c+=l?"with("+s+"){":"",c+="$kendoOutput=",r=e.replace(W,"__CURLY__").replace(U,"#=$kendoHtmlEncode($1)#").replace(I,"}").replace($,"__SHARP__").split("#"),i=0;i<r.length;i++)c+=o(r[i],i%2===0);c+=l?";}":";",c+="return $kendoOutput;",c=c.replace(L,"#");try{return n=Function(u,c),n._slotCount=Math.floor(r.length/2),n}catch(d){throw Error(Ce.format("Invalid template:'{0}' Generated code:'{1}'",e,c))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===We?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(i,a){var s,l,c,d,f,p,m=n,h=a[i];if(h&&typeof h===$e&&typeof h.toJSON===Ue&&(h=h.toJSON(i)),typeof o===Ue&&(h=o.call(a,i,h)),p=typeof h,p===We)return e(h);if(p===Ie)return isFinite(h)?h+"":Le;if(p===Be||p===Le)return h+"";if(p===$e){if(!h)return Le;if(n+=r,f=[],"[object Array]"===u.apply(h)){for(d=h.length,s=0;s<d;s++)f[s]=t(s,h)||Le;return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+m+"]":"["+f.join(",")+"]",n=m,c}if(o&&typeof o===$e)for(d=o.length,s=0;s<d;s++)typeof o[s]===We&&(l=o[s],c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c));else for(l in h)Object.hasOwnProperty.call(h,l)&&(c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c));return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+m+"}":"{"+f.join(",")+"}",n=m,c}}var n,r,o,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},u={}.toString;typeof Date.prototype.toJSON!==Ue&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?i(e.getUTCFullYear(),4)+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof He.stringify!==Ue&&(He.stringify=function(e,i,a){var s;if(n="",r="",typeof a===Ie)for(s=0;s<a;s+=1)r+=" ";else typeof a===We&&(r=a);if(o=i,i&&typeof i!==Ue&&(typeof i!==$e||typeof i.length!==Ie))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===We){var t=Ce.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function r(e){return e&&(e=t(e)),e||Ce.cultures.current}function o(e,t,o){o=r(o);var a=o.calendars.standard,s=a.days,u=a.months;return t=a.patterns[t]||t,t.replace(c,function(t){var r,o,l;return"d"===t?o=e.getDate():"dd"===t?o=i(e.getDate()):"ddd"===t?o=s.namesAbbr[e.getDay()]:"dddd"===t?o=s.names[e.getDay()]:"M"===t?o=e.getMonth()+1:"MM"===t?o=i(e.getMonth()+1):"MMM"===t?o=u.namesAbbr[e.getMonth()]:"MMMM"===t?o=u.names[e.getMonth()]:"yy"===t?o=i(e.getFullYear()%100):"yyyy"===t?o=i(e.getFullYear(),4):"h"===t?o=e.getHours()%12||12:"hh"===t?o=i(e.getHours()%12||12):"H"===t?o=e.getHours():"HH"===t?o=i(e.getHours()):"m"===t?o=e.getMinutes():"mm"===t?o=i(e.getMinutes()):"s"===t?o=e.getSeconds():"ss"===t?o=i(e.getSeconds()):"f"===t?o=_e.floor(e.getMilliseconds()/100):"ff"===t?(o=e.getMilliseconds(),o>99&&(o=_e.floor(o/10)),o=i(o)):"fff"===t?o=i(e.getMilliseconds(),3):"tt"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(r=e.getTimezoneOffset(),l=r<0,o=(""+_e.abs(r/60)).split(".")[0],r=_e.abs(r)-60*o,o=(l?"+":"-")+i(o),o+=":"+i(r)):"zz"!==t&&"z"!==t||(o=e.getTimezoneOffset()/60,l=o<0,o=(""+_e.abs(o)).split(".")[0],o=(l?"+":"-")+("zz"===t?i(o):o)),o!==n?o:t.slice(1,t.length-1)})}function a(e,t,o){var i,a,l,c,w,M,x,S,T,k,C,O,D,z,A,E,_,H,F,N,P,R,j,U,W,I,$,L,B,Y,q,J,V,G;if(o=r(o),i=o.numberFormat,a=i[h],l=i.decimals,c=i.pattern[0],w=[],C=e<0,E=m,_=m,q=-1,e===n)return m;if(!isFinite(e))return e;if(!t)return o.name.length?e.toLocaleString():""+e;if(k=d.exec(t)){if(t=k[1].toLowerCase(),x="c"===t,S="p"===t,(x||S)&&(i=x?i.currency:i.percent,a=i[h],l=i.decimals,M=i.symbol,c=i.pattern[C?0:1]),T=k[2],T&&(l=+T),"e"===t)return V=T?e.toExponential(l):e.toExponential(),V.replace(h,i[h]);if(S&&(e*=100),e=u(e,l),C=e<0,e=e.split(h),O=e[0],D=e[1],C&&(O=O.substring(1)),_=s(O,0,O.length,i),D&&(_+=a+D),"n"===t&&!C)return _;for(e=m,H=0,F=c.length;H<F;H++)N=c.charAt(H),e+="n"===N?_:"$"===N||"%"===N?M:N;return e}if((t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(f,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return w.push(n),b})),t=t.split(";"),C&&t[1])t=t[1],R=!0;else if(0===e&&t[2]){if(t=t[2],t.indexOf(y)==-1&&t.indexOf(v)==-1)return t}else t=t[0];if(L=t.indexOf("%"),B=t.indexOf("$"),S=L!=-1,x=B!=-1,S&&(e*=100),x&&"\\"===t[B-1]&&(t=t.split("\\").join(""),x=!1),(x||S)&&(i=x?i.currency:i.percent,a=i[h],l=i.decimals,M=i.symbol),P=t.indexOf(g)>-1,P&&(t=t.replace(p,m)),j=t.indexOf(h),F=t.length,j!=-1)if(D=(""+e).split("e"),D=D[1]?u(e,Math.abs(D[1])):D[0],D=D.split(h)[1]||m,W=t.lastIndexOf(v)-j,U=t.lastIndexOf(y)-j,I=W>-1,$=U>-1,H=D.length,I||$||(t=t.substring(0,j)+t.substring(j+1),F=t.length,j=-1,H=0),I&&W>U)H=W;else if(U>W)if($&&H>U){for(G=u(e,U,C);G.charAt(G.length-1)===v&&U>0&&U>W;)U--,G=u(e,U,C);H=U}else I&&H<W&&(H=W);if(e=u(e,H,C),U=t.indexOf(y),Y=W=t.indexOf(v),q=U==-1&&W!=-1?W:U!=-1&&W==-1?U:U>W?W:U,U=t.lastIndexOf(y),W=t.lastIndexOf(v),J=U==-1&&W!=-1?W:U!=-1&&W==-1?U:U>W?U:W,q==F&&(J=q),q!=-1){for(_=(""+e).split(h),O=_[0],D=_[1]||m,z=O.length,A=D.length,C&&e*-1>=0&&(C=!1),e=t.substring(0,q),C&&!R&&(e+="-"),H=q;H<F;H++){if(N=t.charAt(H),j==-1){if(J-H<z){e+=O;break}}else if(W!=-1&&W<H&&(E=m),j-H<=z&&j-H>-1&&(e+=O,H=j),j===H){e+=(D?a:m)+D,H+=J-j+1;continue}N===v?(e+=N,E=N):N===y&&(e+=E)}if(P&&(e=s(e,q+(C&&!R?1:0),Math.max(J,z+q),i)),J>=q&&(e+=t.substring(J+1)),x||S){for(_=m,H=0,F=e.length;H<F;H++)N=e.charAt(H),_+="$"===N||"%"===N?M:N;e=_}if(F=w.length)for(H=0;H<F;H++)e=e.replace(b,w[H])}return e}var s,u,l,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,f=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,m="",h=".",g=",",y="#",v="0",b="??",w="en-US",M={}.toString;Ce.cultures["en-US"]={name:w,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"US Dollar",abbr:"USD",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},Ce.culture=function(e){var r,o=Ce.cultures;return e===n?o.current:(r=t(e)||o[w],r.calendar=r.calendars.standard,o.current=r,n)},Ce.findCulture=t,Ce.getCulture=r,Ce.culture(w),s=function(e,t,r,o){var i,a,s,u,l,c,d=e.indexOf(o[h]),f=o.groupSize.slice(),p=f.shift();if(r=d!==-1?d:r+1,i=e.substring(t,r),a=i.length,a>=p){for(s=a,u=[];s>-1;)if(l=i.substring(s-p,s),l&&u.push(l),s-=p,c=f.shift(),p=c!==n?c:p,0===p){s>0&&u.push(i.substring(0,s));break}i=u.reverse().join(o[g]),e=e.substring(0,t)+i+e.substring(r)}return e},u=function(e,t,n){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),n&&(e=-e),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(Math.min(t,20))},l=function(e,t,r){if(t){if("[object Date]"===M.call(e))return o(e,t,r);if(typeof e===Ie)return a(e,t,r)}return e!==n?e:""},Ce.format=function(e){var t=arguments;return e.replace(Pe,function(e,n,r){var o=t[parseInt(n,10)+1];return l(o,r?r.substring(1):"")})},Ce._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},Ce._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},Ce._round=u,Ce._outerWidth=function(t,n){return e(t).outerWidth(n||!1)||0},Ce._outerHeight=function(t,n){return e(t).outerHeight(n||!1)||0},Ce.toString=l}(),function(){function t(e,t,n){return!(e>=t&&e<=n)}function r(e){return e.charAt(0)}function o(t){return e.map(t,r)}function i(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,r=[];t<n;t++)r[t]=(e[t]+"").toLowerCase();return r}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function u(e,r,a,u){if(!e)return null;var l,c,d,f,p,g,y,v,b,M,x,S,T,k=function(e){for(var t=0;r[R]===e;)t++,R++;return t>0&&(R-=1),t},C=function(t){var n=w[t]||RegExp("^\\d{1,"+t+"}"),r=e.substr(j,t).match(n);return r?(r=r[0],j+=r.length,parseInt(r,10)):null},O=function(t,n){for(var r,o,i,a=0,s=t.length,u=0,l=0;a<s;a++)r=t[a],o=r.length,i=e.substr(j,o),n&&(i=i.toLowerCase()),i==r&&o>u&&(u=o,l=a);return u?(j+=u,l+1):null},D=function(){var t=!1;return e.charAt(j)===r[R]&&(j++,t=!0),t},z=a.calendars.standard,A=null,E=null,_=null,H=null,F=null,N=null,P=null,R=0,j=0,U=!1,W=new Date,I=z.twoDigitYearMax||2029,$=W.getFullYear();for(r||(r="d"),f=z.patterns[r],f&&(r=f),r=r.split(""),d=r.length;R<d;R++)if(l=r[R],U)"'"===l?U=!1:D();else if("d"===l){if(c=k("d"),z._lowerDays||(z._lowerDays=s(z.days)),null!==_&&c>2)continue;if(_=c<3?C(2):O(z._lowerDays[3==c?"namesAbbr":"names"],!0),null===_||t(_,1,31))return null}else if("M"===l){if(c=k("M"),z._lowerMonths||(z._lowerMonths=s(z.months)),E=c<3?C(2):O(z._lowerMonths[3==c?"namesAbbr":"names"],!0),null===E||t(E,1,12))return null;E-=1}else if("y"===l){if(c=k("y"),A=C(c),null===A)return null;2==c&&("string"==typeof I&&(I=$+parseInt(I,10)),A=$-$%100+A,A>I&&(A-=100))}else if("h"===l){if(k("h"),H=C(2),12==H&&(H=0),null===H||t(H,0,11))return null}else if("H"===l){if(k("H"),H=C(2),null===H||t(H,0,23))return null}else if("m"===l){if(k("m"),F=C(2),null===F||t(F,0,59))return null}else if("s"===l){if(k("s"),N=C(2),null===N||t(N,0,59))return null}else if("f"===l){if(c=k("f"),T=e.substr(j,c).match(w[3]),P=C(c),null!==P&&(P=parseFloat("0."+T[0],10),P=Ce._round(P,3),P*=1e3),null===P||t(P,0,999))return null}else if("t"===l){if(c=k("t"),v=z.AM,b=z.PM,1===c&&(v=o(v),b=o(b)),p=O(b),!p&&!O(v))return null}else if("z"===l){if(g=!0,c=k("z"),"Z"===e.substr(j,1)){D();continue}if(y=e.substr(j,6).match(c>2?h:m),!y)return null;if(y=y[0].split(":"),M=y[0],x=y[1],!x&&M.length>3&&(j=M.length-2,x=M.substring(j),M=M.substring(0,j)),M=parseInt(M,10),t(M,-12,13))return null;if(c>2&&(x=y[0][0]+x,x=parseInt(x,10),isNaN(x)||t(x,-59,59)))return null}else if("'"===l)U=!0,D();else if(!D())return null;return u&&!/^\s*$/.test(e.substr(j))?null:(S=null!==H||null!==F||N||null,null===A&&null===E&&null===_&&S?(A=$,E=W.getMonth(),_=W.getDate()):(null===A&&(A=$),null===_&&(_=1)),p&&H<12&&(H+=12),g?(M&&(H+=-M),x&&(F+=-x),e=new Date(Date.UTC(A,E,_,H,F,N,P))):(e=new Date(A,E,_,H,F,N,P),i(e,H)),A<100&&e.setFullYear(A),e.getDate()!==_&&g===n?null:e)}function l(e){var t="-"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}function c(e){var t,n,r,o=_e.max(v.length,b.length),i=e.calendar||e.calendars.standard,a=i.patterns,s=[];for(r=0;r<o;r++){for(t=v[r],n=0;n<t.length;n++)s.push(a[t[n]]);s=s.concat(b[r])}return s}function d(e,t,n,r){var o,i,a,s;if("[object Date]"===M.call(e))return e;if(o=0,i=null,e&&0===e.indexOf("/D")&&(i=g.exec(e)))return i=i[1],s=y.exec(i.substring(1)),i=new Date(parseInt(i,10)),s&&(s=l(s[0]),i=Ce.timezone.apply(i,0),i=Ce.timezone.convert(i,0,-1*s)),i;for(n=Ce.getCulture(n),t||(t=c(n)),t=ze(t)?t:[t],a=t.length;o<a;o++)if(i=u(e,t[o],n,r))return i;return i}var f=/\u00A0/g,p=/[eE][\-+]?[0-9]+/,m=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:?\d{2}/,g=/^\/Date\((.*?)\)\/$/,y=/[+-]\d*/,v=[[],["G","g","F"],["D","d","y","m","T","t"]],b=[["yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:ss.fff","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss"],["yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm","yyyy/MM/dd HH:mm"],["yyyy/MM/dd","yyyy-MM-dd","HH:mm:ss","HH:mm"]],w={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},M={}.toString;Ce.parseDate=function(e,t,n){return d(e,t,n,!1)},Ce.parseExactDate=function(e,t,n){return d(e,t,n,!0)},Ce.parseInt=function(e,t){var n=Ce.parseFloat(e,t);return n&&(n=0|n),n},Ce.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Ie)return e;e=""+e,t=Ce.getCulture(t);var r,o,i=t.numberFormat,a=i.percent,s=i.currency,u=s.symbol,l=a.symbol,c=e.indexOf("-");return p.test(e)?(e=parseFloat(e.replace(i["."],".")),isNaN(e)&&(e=null),e):c>0?null:(c=c>-1,e.indexOf(u)>-1||n&&n.toLowerCase().indexOf("c")>-1?(i=s,r=i.pattern[0].replace("$",u).split("n"),e.indexOf(r[0])>-1&&e.indexOf(r[1])>-1&&(e=e.replace(r[0],"").replace(r[1],""),c=!0)):e.indexOf(l)>-1&&(o=!0,i=a,u=l),e=e.replace("-","").replace(u,"").replace(f," ").split(i[","].replace(f," ")).join("").replace(i["."],"."),e=parseFloat(e),isNaN(e)?e=null:c&&(e*=-1),e&&o&&(e/=100),e)}}(),function(){var r,o,i,a,s,u,l,c,f,p,m;Fe._scrollbar=n,Fe.scrollbar=function(e){if(isNaN(Fe._scrollbar)||e){var t,n=document.createElement("div");return n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML="&nbsp;",document.body.appendChild(n),Fe._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Fe._scrollbar},Fe.isRtl=function(t){return e(t).closest(".k-rtl").length>0},r=document.createElement("table");try{r.innerHTML="<tr><td></td></tr>",Fe.tbodyInnerHtml=!0}catch(h){Fe.tbodyInnerHtml=!1}Fe.touch="ontouchstart"in t,o=document.documentElement.style,i=Fe.transitions=!1,a=Fe.transforms=!1,s="HTMLElement"in t?HTMLElement.prototype:[],Fe.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in o||"msPerspective"in o,Fe.cssFlexbox="flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,De(["Moz","webkit","O","ms"],function(){var e,t=""+this,n=typeof r.style[t+"Transition"]===We;if(n||typeof r.style[t+"Transform"]===We)return e=t.toLowerCase(),a={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},n&&(i=a,i.event=i.event?i.event+"TransitionEnd":"transitionend"),!1}),r=null,Fe.transforms=a,Fe.transitions=i,Fe.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Fe.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Fe.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(h){Fe.screenWidth=t.screen.availWidth,Fe.screenHeight=t.screen.availHeight}Fe.detectOS=function(e){var n,r,o=!1,i=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},u={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},l={tablet:/playbook|ipad|fire/i},c={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(r in s)if(s.hasOwnProperty(r)&&(i=e.match(s[r]))){if("windows"==r&&"plugins"in navigator)return!1;o={},o.device=r,o.tablet=d(r,l,!1),o.browser=d(e,c,"default"),o.name=d(r,u),o[o.name]=!0,o.majorVersion=i[2],o.minorVersion=(i[3]||"0").replace("_","."),n=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+n+Array(3-(n.length<3?n.length:2)).join("0"),o.cordova=typeof t.PhoneGap!==Ye||typeof t.cordova!==Ye,o.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||o.cordova,o.android&&(Fe.devicePixelRatio<1.5&&o.flatVersion<400||a)&&(Fe.screenWidth>800||Fe.screenHeight>800)&&(o.tablet=r);break}return o},u=Fe.mobileOS=Fe.detectOS(navigator.userAgent),Fe.wpDevicePixelRatio=u.wp?screen.width/320:0,Fe.hasNativeScrolling=!1,(u.ios||u.android&&u.majorVersion>2||u.wp)&&(Fe.hasNativeScrolling=u),Fe.delayedClick=function(){if(Fe.touch){if(u.ios)return!0;if(u.android)return!Fe.browser.chrome||!(Fe.browser.version<32)&&!(e("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1},Fe.mouseAndTouchPresent=Fe.touch&&!(Fe.mobileOS.ios||Fe.mobileOS.android),Fe.detectBrowser=function(e){var t,n=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(t in o)if(o.hasOwnProperty(t)&&(r=e.match(o[t]))){n={},n[t]=!0,n[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||r[2],10);break}return n},Fe.browser=Fe.detectBrowser(navigator.userAgent),Fe.detectClipboardAccess=function(){var e={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return Fe.browser.chrome&&(e.paste=!1,Fe.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},Fe.clipboard=Fe.detectClipboardAccess(),Fe.zoomLevel=function(){var e,n,r;try{return e=Fe.browser,n=0,r=document.documentElement,e.msie&&11==e.version&&r.scrollHeight>r.clientHeight&&!Fe.touch&&(n=Fe.scrollbar()),Fe.touch?r.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(o){return 1}},function(t){var n="",r=e(document.documentElement),o=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera?n="opera":t.edge&&(n="edge"),n&&(n="k-"+n+" k-"+n+o),Fe.mobileOS&&(n+=" k-mobile"),Fe.cssFlexbox||(n+=" k-no-flexbox"),r.addClass(n)}(Fe.browser),Fe.eventCapture=document.documentElement.addEventListener,l=document.createElement("input"),Fe.placeholder="placeholder"in l,Fe.propertyChangeEvent="onpropertychange"in l,Fe.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,r="test",o={},i=0;i<n;i++)e=t[i],l.setAttribute("type",e),l.value=r,o[e.replace("-","")]="text"!==l.type&&l.value!==r;return o}(),l.style.cssText="float:left;",Fe.cssFloat=!!l.style.cssFloat,l=null,Fe.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;e<t;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:e.field<t.field?-1:0}),1===n[0].index}(),Fe.matchesSelector=s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.matchesSelector||s.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),r=n.length;r--;)if(n[r]==this)return!0;return!1},Fe.matchMedia="matchMedia"in t,Fe.pushState=t.history&&t.history.pushState,Fe.hashChange="onhashchange"in t,Fe.customElements="registerElement"in t.document,c=Fe.browser.chrome,f=Fe.browser.crios,p=Fe.browser.mozilla,m=Fe.browser.safari,Fe.msPointers=!c&&t.MSPointerEvent,Fe.pointers=!c&&!f&&!p&&!m&&t.PointerEvent,Fe.kineticScrollNeeded=u&&(Fe.touch||Fe.msPointers||Fe.pointers)}(),Y={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},q={},e.extend(q,{enabled:!0,Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),q.promiseShim=q.promise,"kendoAnimate"in e.fn||Oe(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,r){return x(this,e,t,n,r)},kendoAddClass:function(e,t){return Ce.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return Ce.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return Ce.toggleClass(this,e,t,n)}}),J=/&/g,V=/</g,G=/"/g,K=/'/g,Q=/>/g,Z=function(e){return e.target},Fe.touch&&(Z=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},De(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Fe.touch?Fe.mobileOS?(Fe.mousedown="touchstart",Fe.mouseup="touchend",Fe.mousemove="touchmove",Fe.mousecancel="touchcancel",Fe.click="touchend",Fe.resize="orientationchange"):(Fe.mousedown="mousedown touchstart",Fe.mouseup="mouseup touchend",Fe.mousemove="mousemove touchmove",Fe.mousecancel="mouseleave touchcancel",Fe.click="click",Fe.resize="resize"):Fe.pointers?(Fe.mousemove="pointermove",Fe.mousedown="pointerdown",Fe.mouseup="pointerup",Fe.mousecancel="pointercancel",Fe.click="pointerup",Fe.resize="orientationchange resize"):Fe.msPointers?(Fe.mousemove="MSPointerMove",Fe.mousedown="MSPointerDown",Fe.mouseup="MSPointerUp",Fe.mousecancel="MSPointerCancel",Fe.click="MSPointerUp",Fe.resize="orientationchange resize"):(Fe.mousemove="mousemove",Fe.mousedown="mousedown",Fe.mouseup="mouseup",Fe.mousecancel="mouseleave",Fe.click="click",Fe.resize="resize"),X=function(e,t){var n,r,o,i,a=t||"d",s=1;for(r=0,o=e.length;r<o;r++)i=e[r],""!==i&&(n=i.indexOf("["),0!==n&&(n==-1?i="."+i:(s++,i="."+i.substring(0,n)+" || {})"+i.substring(n))),s++,a+=i+(r<o-1?" || {})":")"));return Array(s).join("(")+a},ee=/^([a-z]+:)?\/\//i,Oe(Ce,{widgets:[],_widgetRegisteredCallbacks:[],ui:Ce.ui||{},fx:Ce.fx||w,effects:Ce.effects||q,mobile:Ce.mobile||{},data:Ce.data||{},dataviz:Ce.dataviz||{},drawing:Ce.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:Ce.support||Fe,animate:Ce.animate||x,ns:"",attr:function(e){return"data-"+Ce.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:m,isScrollable:h,scrollLeft:g,size:y,toCamelCase:p,toHyphens:f,getOffset:Ce.getOffset||v,parseEffects:Ce.parseEffects||b,toggleClass:Ce.toggleClass||S,directions:Ce.directions||Y,Observable:R,Class:r,Template:H,template:Ae(H.compile,H),
render:Ae(H.render,H),stringify:Ae(He.stringify,He),eventTarget:Z,htmlEncode:T,unescape:k,isLocalUrl:function(e){return e&&!ee.test(e)},expr:function(e,t,n){return e=e||"",typeof t==We&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"'),e=e.replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'"),e=X(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return qe[n]=qe[n]||Function("d","return "+Ce.expr(e,t))},setter:function(e){return Je[e]=Je[e]||Function("d,value",Ce.expr(e)+"=value")},accessor:function(e){return{get:Ce.getter(e),set:Ce.setter(e)}},guid:function(){var e,t,n="",r="abcdef";for(n+=r[Math.floor(Math.random()*Math.floor(r.length))],e=1;e<32;e++)t=16*_e.random()|0,8!=e&&12!=e&&16!=e&&20!=e||(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+Ce.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;t<n.length;t++)"view"!=n[t]&&(n[t]=n[t].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return n.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},onWidgetRegistered:function(e){for(var t=0,n=Ce.widgets.length;t<n;t++)e(Ce.widgets[t]);Ce._widgetRegisteredCallbacks.push(e)},logToConsole:function(e,r){var o=t.console;!Ce.suppressLog&&n!==o&&o.log&&o[r||"log"](e)}}),te=R.extend({init:function(e,t){var n,r,o=this;o.element=Ce.jQuery(e).handler(o),o.angular("init",t),R.fn.init.call(o),n=t?t.dataSource:null,t&&(r=(o.componentTypes||{})[(t||{}).componentType]),n&&(t=Oe({},t,{dataSource:{}})),t=o.options=Oe(!0,{},o.options,o.defaults,r||{},t),n&&(t.dataSource=n),o.element.attr(Ce.attr("role"))||o.element.attr(Ce.attr("role"),(t.name||"").toLowerCase()),o.element.data("kendo"+t.prefix+t.name,o),o.bind(o.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",r=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(r)?0:r)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,r=0,o=n.events.length;r<o;r++)t=n.events[r],n.options[t]&&e[t]&&(n.unbind(t,n.options[t]),n._events&&n._events[t]&&delete n._events[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger("resize",t))},getSize:function(){return Ce.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(e){this._muteRebind=!0,e.call(this),this._muteRebind=!1}}),ne=te.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})}}),Ce.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},Ce.notify=Ee,re=/template$/i,oe=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,ie=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,ae=/([A-Z])/g,Ce.initWidget=function(r,o,i){var a,s,u,l,c,d,f,p,m,h,g,y,v;if(i?i.roles&&(i=i.roles):i=Ce.ui.roles,r=r.nodeType?r:r[0],d=r.getAttribute("data-"+Ce.ns+"role")){m=d.indexOf(".")===-1,u=m?i[d]:Ce.getter(d)(t),g=e(r).data(),y=u?"kendo"+u.fn.options.prefix+u.fn.options.name:"",h=m?RegExp("^kendo.*"+d+"$","i"):RegExp("^"+y+"$","i");for(v in g)if(v.match(h)){if(v!==y)return g[v];a=g[v]}if(u){for(p=C(r,"dataSource"),o=e.extend({},O(r,e.extend({},u.fn.options,u.fn.defaults)),o),p&&(o.dataSource=typeof p===We?Ce.getter(p)(t):p),l=0,c=u.fn.events.length;l<c;l++)s=u.fn.events[l],f=C(r,s),f!==n&&(o[s]=Ce.getter(f)(t));return a?e.isEmptyObject(o)||a.setOptions(o):a=new u(r,o),a}}},Ce.rolesFromNamespaces=function(e){var t,n,r=[];for(e[0]||(e=[Ce.ui,Ce.dataviz.ui]),t=0,n=e.length;t<n;t++)r[t]=e[t].roles;return Oe.apply(null,[{}].concat(r.reverse()))},Ce.init=function(t){var n=Ce.rolesFromNamespaces(Ve.call(arguments,1));e(t).find("[data-"+Ce.ns+"role]").addBack().each(function(){Ce.initWidget(this,{},n)})},Ce.destroy=function(t){e(t).find("[data-"+Ce.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Ue&&n[t].destroy()})},Ce.resize=function(t,n){var r,o=e(t).find("[data-"+Ce.ns+"role]").addBack().filter(z);o.length&&(r=e.makeArray(o),r.sort(D),e.each(r,function(){var t=Ce.widgetInstance(e(this));t&&t.resize(n)}))},Ce.parseOptions=O,Oe(Ce.ui,{Widget:te,DataBoundWidget:ne,roles:{},progress:function(t,n,r){var o,i,a,s,u,l=t.find(".k-loading-mask"),c=Ce.support,d=c.browser;r=e.extend({},{width:"100%",height:"100%",top:t.scrollTop(),opacity:!1},r),u=r.opacity?"k-loading-mask k-opaque":"k-loading-mask",n?l.length||(o=c.isRtl(t),i=o?"right":"left",s=Ce.scrollLeft(t),a=d.webkit&&o?t[0].scrollWidth-t.width()-2*s:0,l=e(Ce.format("<div class='{0}'><span class='k-loading-text'>{1}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>",u,Ce.ui.progress.messages.loading)).width(r.width).height(r.height).css("top",r.top).css(i,Math.abs(s)+a).prependTo(t)):l&&l.remove()},plugin:function(t,r,o){var i,a,s,u,l=t.fn.options.name;for(r=r||Ce.ui,o=o||"",r[l]=t,r.roles[l.toLowerCase()]=t,i="getKendo"+o+l,l="kendo"+o+l,a={name:l,widget:t,prefix:o||""},Ce.widgets.push(a),s=0,u=Ce._widgetRegisteredCallbacks.length;s<u;s++)Ce._widgetRegisteredCallbacks[s](a);e.fn[l]=function(r){var o,i=this;return typeof r===We?(o=Ve.call(arguments,1),this.each(function(){var t,a,s=e.data(this,l);if(!s)throw Error(Ce.format("Cannot call method '{0}' of {1} before it is initialized",r,l));if(t=s[r],typeof t!==Ue)throw Error(Ce.format("Cannot find method '{0}' of {1}",r,l));if(a=t.apply(s,o),a!==n)return i=a,!1})):this.each(function(){return new t(this,r)}),i},e.fn[l].widget=t,e.fn[i]=function(){return this.data(l)}}}),Ce.ui.progress.messages={loading:"Loading..."},se={bind:function(){return this},nullObject:!0,options:{}},ue=te.extend({init:function(e,t){te.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){te.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(Ce.roleSelector("view splitview modalview drawer"));return Ce.widgetInstance(e,Ce.mobile.ui)||se},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(Ce.roleSelector("view layout modalview drawer splitview"));return Ce.widgetInstance(e.eq(0),Ce.mobile.ui)||se}}),Oe(Ce.mobile,{init:function(e){Ce.init(e,Ce.mobile.ui,Ce.ui,Ce.dataviz.ui)},appLevelNativeScrolling:function(){return Ce.mobile.application&&Ce.mobile.application.options&&Ce.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ue,DataBoundWidget:ne.extend(ue.prototype),roles:{},plugin:function(e){Ce.ui.plugin(e,Ce.mobile.ui,"Mobile")}}}),l(Ce.dataviz,{init:function(e){Ce.init(e,Ce.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){Ce.ui.plugin(e,Ce.dataviz.ui)}},roles:{}}),Ce.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map(function(t,r){return r=e(r),!(!Fe.kineticScrollNeeded||!Ce.mobile.ui.Scroller||r.data("kendoMobileScroller"))&&(r.kendoMobileScroller(n),r.data("kendoMobileScroller"))})[0]},Ce.preventDefault=function(e){e.preventDefault()},Ce.widgetInstance=function(e,n){var r,o,i,a,s,u=e.data(Ce.ns+"role"),l=[],c=e.data("kendoView");if(u){if("content"===u&&(u="scroller"),"editortoolbar"===u&&(i=e.data("kendoEditorToolbar")))return i;if("view"===u&&c)return c;if(n)if(n[0])for(r=0,o=n.length;r<o;r++)l.push(n[r].roles[u]);else l.push(n.roles[u]);else l=[Ce.ui.roles[u],Ce.dataviz.ui.roles[u],Ce.mobile.ui.roles[u]];for(u.indexOf(".")>=0&&(l=[Ce.getter(u)(t)]),r=0,o=l.length;r<o;r++)if(a=l[r],a&&(s=e.data("kendo"+a.fn.options.prefix+a.fn.options.name)))return s}},Ce.onResize=function(n){var r=n;return Fe.mobileOS.android&&(r=function(){setTimeout(n,600)}),e(t).on(Fe.resize,r),r},Ce.unbindResize=function(n){e(t).off(Fe.resize,n)},Ce.attrValue=function(e,t){return e.data(Ce.ns+t)},Ce.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr.pseudos,{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return A(t,!isNaN(n)&&n>-1)}}),le=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],ce="label, input, [data-rel=external]",de={setupMouseMute:function(){var t,n=0,r=le.length,o=document.documentElement;if(!de.mouseTrap&&Fe.eventCapture)for(de.mouseTrap=!0,de.bustClick=!1,de.captureMouse=!1,t=function(t){de.captureMouse&&("click"===t.type?de.bustClick&&!e(t.target).is(ce)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};n<r;n++)o.addEventListener(le[n],t,!0)},muteMouse:function(e){de.captureMouse=!0,e.data.bustClick&&(de.bustClick=!0),clearTimeout(de.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(de.mouseTrapTimeoutID),de.mouseTrapTimeoutID=setTimeout(function(){de.captureMouse=!1,de.bustClick=!1},400)}},fe={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},Fe.touch&&(Fe.mobileOS.ios||Fe.mobileOS.android)?fe={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:Fe.pointers?fe={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:Fe.msPointers&&(fe={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!Fe.msPointers||"onmspointerenter"in t||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var r,o=this,i=t.relatedTarget,a=t.handleObj;return i&&(i===o||e.contains(o,i))||(t.type=a.origType,r=a.handler.apply(this,arguments),t.type=n),r}}}),pe=function(e){return fe[e]||e},me=/([^ ]+)/g,Ce.applyEventMap=function(e,t){return e=e.replace(me,pe),t&&(e=e.replace(me,"$1."+t)),e},Ce.keyDownHandler=function(e,t){var n,r,o=t._events.kendoKeydown;if(!o)return!0;for(o=o.slice(),e.sender=t,e.preventKendoKeydown=!1,n=0,r=o.length;n<r;n++)o[n].call(t,e);return!e.preventKendoKeydown},he=e.fn.on,Ge(!0,_,e),_.fn=_.prototype=new e,_.fn.constructor=_,_.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof _)&&(n=_(n)),e.fn.init.call(this,t,n,ge)},_.fn.init.prototype=_.fn,ge=_(document),Oe(_.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||Ce.guid()),this},on:function(){var e,t,n,r,o,i,a,s,u=this,l=u.data("kendoNS");return 1===arguments.length?he.call(u,arguments[0]):(e=u,t=Ve.call(arguments),typeof t[t.length-1]===Ye&&t.pop(),n=t[t.length-1],r=Ce.applyEventMap(t[0],l),Fe.mouseAndTouchPresent&&r.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(de.setupMouseMute(),o=2===t.length?null:t[1],i=r.indexOf("click")>-1&&r.indexOf("touchend")>-1,he.call(this,{touchstart:de.muteMouse,touchend:de.unMuteMouse},o,{bustClick:i})),arguments[0].indexOf("keydown")!==-1&&t[1]&&t[1].options?(t[0]=r,a=t[1],s=t[t.length-1],t[t.length-1]=function(e){if(Ce.keyDownHandler(e,a))return s.apply(this,[e])},he.apply(u,t),u):(typeof n===We&&(e=u.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=r,he.apply(u,t),u))},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),Ce.jQuery=_,Ce.eventMap=fe,Ce.timezone=function(){function e(e,t){var n,r,o,i=t[3],a=t[4],s=t[5],u=t[8];return u||(t[8]=u={}),u[e]?u[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,c[i]+1,1,s[0]-24,s[1],s[2],0)),r=d[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o-(r>o?7:0))):a.indexOf(">=")>=0?(n=new Date(Date.UTC(e,c[i],a.substr(5),s[0],s[1],s[2],0)),r=d[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o+(r<o?7:0))):a.indexOf("<=")>=0&&(n=new Date(Date.UTC(e,c[i],a.substr(5),s[0],s[1],s[2],0)),r=d[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o-(r>o?7:0))):n=new Date(Date.UTC(e,c[i],a,s[0],s[1],s[2],0)),u[e]=n)}function t(t,n,r){var o,i,a,s;return(n=n[r])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return t<=a&&(n>=a||t==a&&"only"==n||"max"==n)}),n.push(t),n.sort(function(t,n){return"number"!=typeof t&&(t=+e(a,t)),"number"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(o=r.split(":"),i=0,o.length>1&&(i=60*o[0]+ +o[1]),[-1e6,"max","-","Jan",1,[0,0,0],i,"-"])}function n(e,t,n){var r,o,i,a=t[n];if("string"==typeof a&&(a=t[a]),!a)throw Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.');for(r=a.length-1;r>=0&&(o=a[r][3],!(o&&e>o));r--);if(i=a[r+1],!i)throw Error('Timezone "'+n+'" not found on '+e+".");return i}function r(e,r,o,i){typeof e!=Ie&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,r,i);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,i;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,Ce.parseFloat(i?o[0]-i[6]:o[0]))}function i(e,t){var n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,a=o[2];return a.indexOf("/")>=0?a.split("/")[i&&+i[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",i&&"-"!=i[7]?i[7]:""):a}function a(e,t,n){var r,o,i,a=n;return typeof t==We&&(t=this.offset(e,t)),typeof n==We&&(n=this.offset(e,n)),o=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),i=e.getTimezoneOffset(),typeof a==We&&(a=this.offset(e,a)),r=i-o+(n-a),new Date(e.getTime()+6e4*r)}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function u(e,t){return this.convert(e,t,e.getTimezoneOffset())}function l(e){return this.apply(new Date(e),"Etc/UTC")}var c={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},d={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:o,convert:a,apply:s,remove:u,abbr:i,toLocalDate:l}}(),Ce.date=function(){function e(e,t){return 0===t&&23===e.getHours()&&(e.setHours(e.getHours()+2),!0)}function t(t,n,r){var o=t.getHours();r=r||1,n=(n-t.getDay()+7*r)%7,t.setDate(t.getDate()+n),e(t,o)}function r(e,n,r){return e=new Date(e),t(e,n,r),e}function o(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=o(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}function a(e){return new Date(e.getFullYear(),0,1)}function s(e){return new Date(e.getFullYear(),11,31)}function u(e,t){return 1!==t?g(r(e,t,-1),4):g(e,4-(e.getDay()||7))}function l(e,t){var n=new Date(e.getFullYear(),0,1,(-6)),r=u(e,t),o=r.getTime()-n.getTime(),i=Math.floor(o/T);return 1+Math.floor(i/7)}function c(e,t){var r,o,i;return t===n&&(t=Ce.culture().calendar.firstDay),r=g(e,-7),o=g(e,7),i=l(e,t),0===i?l(r,t)+1:53===i&&l(o,t)>1?1:i}function d(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function f(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function p(e){return M(e).getTime()-d(M(e))}function m(e,t,n){var r,o=p(t),i=p(n);return!e||o==i||(t>=n&&(n+=T),r=p(e),o>r&&(r+=T),i<o&&(i+=T),r>=o&&r<=i)}function h(e,t,n){var r,o=t.getTime(),i=n.getTime();return o>=i&&(i+=T),r=e.getTime(),r>=o&&r<=i}function g(t,n){var r=t.getHours();return t=new Date(t),y(t,n*T),e(t,r),t}function y(e,t,n){var r,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(r=e.getTimezoneOffset()-o,e.setTime(e.getTime()+r*S))}function v(t,n){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e(t,n.getHours()),t}function b(){return d(new Date)}function w(e){return d(e).getTime()==b().getTime()}function M(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function x(e,t){var n=new Date(e);return new Date(n.setFullYear(n.getFullYear()+t))}var S=6e4,T=864e5;return{adjustDST:e,dayOfWeek:r,setDayOfWeek:t,getDate:d,isInDateRange:h,isInTimeRange:m,isToday:w,nextDay:function(e){return g(e,1)},previousDay:function(e){return g(e,-1)},toUtcTime:f,MS_PER_DAY:T,MS_PER_HOUR:60*S,MS_PER_MINUTE:S,setTime:y,setHours:v,addDays:g,today:b,toInvariantTime:M,firstDayOfMonth:o,lastDayOfMonth:i,weekInYear:c,getMilliseconds:p,firstDayOfYear:a,lastDayOfYear:s,nextYear:function(e){return x(e,1)},previousYear:function(e){return x(e,-1)}}}(),Ce.stripWhitespace=function(e){var t,n,r;if(document.createNodeIterator)for(t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(n=0;n<e.childNodes.length;n++)r=e.childNodes[n],3!=r.nodeType||/\S/.test(r.nodeValue)||(e.removeChild(r),n--),1==r.nodeType&&Ce.stripWhitespace(r)},ye=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},Ce.animationFrame=function(e){ye.call(t,e)},ve=[],Ce.queueAnimation=function(e){ve[ve.length]=e,1===ve.length&&Ce.runNextAnimation()},Ce.runNextAnimation=function(){Ce.animationFrame(function(){ve[0]&&(ve.shift()(),ve[0]&&Ce.runNextAnimation())})},Ce.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},r=t.split(/&|=/),o=r.length,i=0;i<o;i+=2)""!==r[i]&&(n[decodeURIComponent(r[i])]=decodeURIComponent(r[i+1]));return n},Ce.elementUnderCursor=function(e){if(n!==e.x.client)return document.elementFromPoint(e.x.client,e.y.client)},Ce.wheelDeltaY=function(e){var t,r=e.originalEvent,o=r.wheelDeltaY;return r.wheelDelta?(o===n||o)&&(t=r.wheelDelta):r.detail&&r.axis===r.VERTICAL_AXIS&&(t=10*-r.detail),t},Ce.throttle=function(e,t){var r,o,i=0;return!t||t<=0?e:(o=function(){function o(){e.apply(a,u),i=+new Date}var a=this,s=+new Date-i,u=arguments;return i?(r&&clearTimeout(r),s>t?o():r=setTimeout(o,t-s),n):o()},o.cancel=function(){clearTimeout(r)},o)},Ce.caret=function(t,r,o){var i,a,s,u,l,c=r!==n;if(o===n&&(o=r),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==n?c?(t.focus(),a=Fe.mobileOS,a.wp||a.android?setTimeout(function(){t.setSelectionRange(r,o)},0):t.setSelectionRange(r,o)):r=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),i=t.createTextRange(),c?(i.collapse(!0),i.moveStart("character",r),i.moveEnd("character",o-r),i.select()):(s=i.duplicate(),i.moveToBookmark(document.selection.createRange().getBookmark()),s.setEndPoint("EndToStart",i),u=s.text.length,l=u+i.text.length,r=[u,l]))}catch(d){r=[]}return r}},Ce.compileMobileDirective=function(e,n){var r=t.angular;return e.attr("data-"+Ce.ns+"role",e[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),r.element(e).injector().invoke(["$compile",function(t){t(e)(n),/^\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),Ce.widgetInstance(e,Ce.mobile.ui)},Ce.antiForgeryTokens=function(){var t={},r=e("meta[name=csrf-token],meta[name=_csrf]").attr("content"),o=e("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),o!==n&&r!==n&&(t[o]=r),t},Ce.cycleForm=function(e){function t(e){var t=Ce.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find("input, .k-widget").first(),r=e.find("button, .k-button").last();r.on("keydown",function(e){e.keyCode!=Ce.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on("keydown",function(e){e.keyCode==Ce.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(r))})},Ce.focusElement=function(n){var r=[],o=n.parentsUntil("body").filter(function(e,t){var n=Ce.getComputedStyles(t,["overflow"]);return"visible"!==n.overflow}).add(t);o.each(function(t,n){r[t]=e(n).scrollTop()});try{n[0].setActive()}catch(i){n[0].focus()}o.each(function(t,n){e(n).scrollTop(r[t])})},Ce.focusNextElement=function(){var t,n,r;document.activeElement&&(t=e(":kendoFocusable"),n=t.index(document.activeElement),n>-1&&(r=t[n+1]||t[0],r.focus()))},Ce.trim=function(e){return e?(""+e).trim():""},Ce.getWidgetFocusableElement=function(t){var n,r=t.closest(":kendoFocusable"),o=Ce.widgetInstance(t);return n=r.length?r:o?"Editor"===o.options.name?e(o.body):o.wrapper.find(":kendoFocusable").first():t},Ce.addAttribute=function(e,t,n){var r=e.attr(t)||"";r.indexOf(n)<0&&e.attr(t,(r+" "+n).trim())},Ce.removeAttribute=function(e,t,n){var r=e.attr(t)||"";e.attr(t,r.replace(n,"").trim())},Ce.toggleAttribute=function(e,t,n){var r=e.attr(t)||"";r.indexOf(n)<0?Ce.addAttribute(e,t,n):Ce.removeAttribute(e,t,n)},Ce.matchesMedia=function(e){var n=Ce._bootstrapToMedia(e)||e;return Fe.matchMedia&&t.matchMedia(n).matches},Ce._bootstrapToMedia=function(e){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[e]},Ce.fileGroupMap={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],"disc-image":[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},Ce.getFileGroup=function(e,t){var r,o,i=Ce.fileGroupMap,a=Object.keys(i),s="file";if(e===n||!e.length)return s;for(r=0;r<a.length;r+=1)if(o=i[a[r]],o.indexOf(e.toLowerCase())>-1)return t?"file-"+a[r]:a[r];return s},Ce.getFileSizeMessage=function(e){var t,n=["Bytes","KB","MB","GB","TB"];return 0===e?"0 Byte":(t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10),Math.round(e/Math.pow(1024,t),2)+" "+n[t])},Ce.selectorFromClasses=function(e){return"."+e.split(" ").join(".")},be=["primary","secondary","tertiary","inherit","info","success","warning","error","dark","light","inverse"],we=["solid","outline","flat"],Me=["edge","outside","inside"],xe=["circle","rectangle","rounded","dot","pill"],Se=[["small","sm"],["medium","md"],["large","lg"]],Te=[["top start","top-start"],["top end","top-end"],["bottom start","bottom-start"],["bottom end","bottom-end"]],ke=["fixed","static","sticky","absolute"],Ce.propertyToCssClassMap={},Ce.registerCssClass=function(e,t,n){Ce.propertyToCssClassMap[e]||(Ce.propertyToCssClassMap[e]={}),Ce.propertyToCssClassMap[e][t]=n||t},Ce.registerCssClasses=function(e,t){for(var n=0;n<t.length;n++)ze(t[n])?Ce.registerCssClass(e,t[n][0],t[n][1]):Ce.registerCssClass(e,t[n])},Ce.getValidCssClass=function(e,t,n){var r=Ce.propertyToCssClassMap[t][n];if(r)return e+r},Ce.registerCssClasses("themeColor",be),Ce.registerCssClasses("fill",we),Ce.registerCssClasses("postition",Me),Ce.registerCssClasses("shape",xe),Ce.registerCssClasses("size",Se),Ce.registerCssClasses("align",Te),Ce.registerCssClasses("positionMode",ke),Ce.whenAll=function(t){function n(e,t,n){return function(){n!=o&&l++,s.notifyWith(t[e]=this,n[e]=Array.prototype.slice.call(arguments)),--a||s[(l?"reject":"resolve")+"With"](t,n)}}for(var r,o=1==arguments.length&&e.isArray(t)?t:Array.prototype.slice.call(arguments),i=o.length,a=i,s=e.Deferred(),u=0,l=0,c=Array(i),d=Array(i),f=Array(i);u<i;u++)(r=o[u])&&e.isFunction(r.promise)?r.promise().done(n(u,f,o)).fail(n(u,c,d)):(s.notifyWith(this,r),--a);return a||s.resolveWith(f,o),s.promise()},function(){function n(t,n,r,o){var i,a,s=e("<form>").attr({action:r,method:"POST",target:o}),u=Ce.antiForgeryTokens();u.fileName=n,i=t.split(";base64,"),u.contentType=i[0].replace("data:",""),u.base64=i[1];for(a in u)u.hasOwnProperty(a)&&e("<input>").attr({value:u[a],name:a,type:"hidden"}).appendTo(s);s.appendTo("body").submit().remove()}function r(e,t){var n,r,o,i,a,s=e;if("string"==typeof e){for(n=e.split(";base64,"),r=n[0],o=atob(n[1]),i=new Uint8Array(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a);s=new Blob([i.buffer],{type:r})}navigator.msSaveBlob(s,t)}function o(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),i.download=n,i.href=e;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r),setTimeout(function(){URL.revokeObjectURL(e)})}var i=document.createElement("a"),a="download"in i&&!Ce.support.browser.edge;Ce.saveAs=function(e){var t=n;e.forceProxy||(a?t=o:navigator.msSaveBlob&&(t=r)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}(),Ce.proxyModelSetters=function(e){var t={};return Object.keys(e||{}).forEach(function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t,e.dirty=!0}})}),t},function(){Ce.defaults=Ce.defaults||{},Ce.setDefaults=function(e,t){var r=e.split("."),o=Ce.defaults;e=r.pop(),r.forEach(function(e){o[e]===n&&(o[e]={}),o=o[e]}),o[e]=t.constructor===Object?l({},o[e],t):t}}()}(jQuery,window),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.core.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.data.min",["kendo.core.min","kendo.data.odata.min","kendo.data.xml.min"],e)}(function(){return function(e,t){function r(e,t,r,i){return function(n){var a,s={};for(a in n)s[a]=n[a];s.field=i?r+"."+n.field:r,t==Ae&&e._notifyChange&&e._notifyChange(s),e.trigger(t,s)}}function i(e,t){var r,i,n=[];for(e=e||{},r=Object.getOwnPropertyNames(e),i=nt.filter(function(e){return r.indexOf(e)<0});e;)Object.getOwnPropertyNames(e).forEach(function(e){n.indexOf(e)===-1&&(!t||i.indexOf(e)<0)&&n.push(e)}),e=Object.getPrototypeOf(e);return n}function n(t,r){if(t===r)return!0;var i,a=e.type(t),s=e.type(r);if(a!==s)return!1;if("date"===a)return t.getTime()===r.getTime();if("object"!==a&&"array"!==a)return!1;for(i in t)if(!n(t[i],r[i]))return!1;return!0}function a(e,t){var r,i;for(i in e){if(r=e[i],ve(r)&&r.field&&r.field===t)return r;if(r===t)return r}return null}function s(e){this.data=e||[]}function o(e,r){if(e){var i=typeof e===qe?{field:e,dir:r}:e,n=Se(i)?i:i!==t?[i]:[];return be(n,function(e){return!!e.dir})}}function u(e,r){var i,n,a,s={};if(e)for(i=typeof e===qe?{field:e,dir:r}:e,n=Se(i)?i:i!==t?[i]:[],a=0;a<n.length;a++)s[n[a].field]={dir:n[a].dir,index:a+1};return s}function l(e){var t,r,i,n,a=e.filters;if(a)for(t=0,r=a.length;t<r;t++)i=a[t],n=i.operator,n&&typeof n===qe&&(i.operator=ne[n.toLowerCase()]||n),l(i)}function g(e){if(e&&!ye(e))return!Se(e)&&e.filters||(e={logic:"and",filters:Se(e)?e:[e]}),l(e),e}function d(e,t){return!e.logic&&!t.logic&&(e.field===t.field&&e.value===t.value&&e.operator===t.operator)}function h(e){return e=e||{},ye(e)?{logic:"and",filters:[]}:g(e)}function f(e,t){return t.logic||e.field>t.field?1:e.field<t.field?-1:0}function c(e,t){var r,i,n,a,s;if(e=h(e),t=h(t),e.logic!==t.logic)return!1;if(n=(e.filters||[]).slice(),a=(t.filters||[]).slice(),n.length!==a.length)return!1;for(n=n.sort(f),a=a.sort(f),s=0;s<n.length;s++)if(r=n[s],i=a[s],r.logic&&i.logic){if(!c(r,i))return!1}else if(!d(r,i))return!1;return!0}function p(e){return Se(e)?e:[e]}function _(e,r,i,n){var a=typeof e===qe?{field:e,dir:r,compare:i,skipItemSorting:n}:e,s=Se(a)?a:a!==t?[a]:[];return $(s,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates,compare:e.compare,skipItemSorting:e.skipItemSorting}})}function m(e,t,r){var i,n=_(e,t,r);for(i=0;i<n.length;i++)delete n[i].compare;return n}function v(e){var t,r=Se(e)?e:[e];for(t=0;t<r.length;t++)if(r[t]&&Fe(r[t].compare))return!0;return!1}function y(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function S(e,t,r,i,n,a){var s,o,u,l,g;for(t=t||[],l=t.length,s=0;s<l;s++)o=t[s],u=o.aggregate,g=o.field,e[g]=e[g]||{},a[g]=a[g]||{},a[g][u]=a[g][u]||{},e[g][u]=ae[u.toLowerCase()](e[g][u],r,xe.accessor(g),i,n,a[g][u])}function b(e){return"number"==typeof e&&!isNaN(e)}function k(e){return e&&e.getTime}function w(e){var t,r=e.length,i=Array(r);for(t=0;t<r;t++)i[t]=e[t].toJSON();return i}function P(e,t,r,i,n){var a,s,o,u,l,g={};for(u=0,l=e.length;u<l;u++){a=e[u];for(s in t)o=n[s],o&&o!==s&&(g[o]||(g[o]=xe.setter(o)),g[o](a,t[s](a)),delete a[s])}}function x(e,t,r,i,n){var a,s,o,u,l;for(u=0,l=e.length;u<l;u++){a=e[u];for(s in t)a[s]=r._parse(s,t[s](a)),o=n[s],o&&o!==s&&delete a[o]}}function F(e,t,r,i,n){var a,s,o,u;for(s=0,u=e.length;s<u;s++)a=e[s],o=i[a.field],o&&o!=a.field&&(a.field=o),a.value=r._parse(a.field,a.value),a.items&&(a.hasSubgroups?F(a.items,t,r,i,n):x(a.items,t,r,i,n))}function R(e,t,r,i,n,a){return function(s){return s=e(s),G(t,r,i,n,a)(s)}}function G(e,t,r,i,n){return function(a){return a&&!ye(r)&&("[object Array]"===tt.call(a)||a instanceof at||(a=[a]),t(a,r,new e,i,n)),a||[]}}function q(e,t){var r,i,n;if(t.items&&t.items.length)for(n=0;n<t.items.length;n++)r=e.items[e.items.length-1],i=t.items[n],r&&i?r.hasSubgroups&&r.value==i.value?q(r,i):r.field&&r.value==i.value?r.items.push.apply(r.items,i.items):e.items.push.apply(e.items,[i]):i&&e.items.push.apply(e.items,[i])}function C(e,t,r,i){for(var n,a,s,o=0;t.length&&i&&(n=t[o],a=n.items,s=a.length,e&&e.field===n.field&&e.value===n.value?(e.hasSubgroups&&e.items.length?C(e.items[e.items.length-1],n.items,r,i):(a=a.slice(r,r+i),e.items=e.items.concat(a)),t.splice(o--,1)):n.hasSubgroups&&a.length?(C(n,a,r,i),n.items.length||t.splice(o--,1)):(a=a.slice(r,r+i),n.items=a,n.items.length||t.splice(o--,1)),0===a.length?r-=s:(r=0,i-=a.length),!(++o>=t.length)););o<t.length&&t.splice(o,t.length-o)}function O(e,t){var r,i,n,a,s=[],o=(e||[]).length,u=Fe(t)?t:function(e,t){return e[t]};for(n=0;n<o;n++)if(r=u(e,n),r.hasSubgroups)s=s.concat(O(r.items));else for(i=r.items,a=0;a<i.length;a++)s.push(u(i,a));return s}function D(e){var t,r,i,n,a,s=[];for(t=0,r=e.length;t<r;t++)if(a=e.at(t),a.items)if(a.hasSubgroups)s=s.concat(D(a.items));else for(i=a.items,n=0;n<i.length;n++)s.push(i.at(n));return s}function z(e,t){var r,i,n;if(t)for(r=0,i=e.length;r<i;r++)n=e.at(r),n.items&&(n.hasSubgroups?z(n.items,t):n.items=new K(n.items,t,n.items._events))}function I(e,t){for(var r=0;r<e.length;r++)if(e[r].hasSubgroups){if(I(e[r].items,t))return!0}else if(t(e[r].items,e[r]))return!0}function T(e,t,r,i){for(var n=0;n<e.length&&e[n].data!==t&&!A(e[n].data,r,i);n++);}function A(e,t,r){for(var i=0,n=e.length;i<n;i++){if(e[i]&&e[i].hasSubgroups)return A(e[i].items,t,r);if(e[i]===t||e[i]===r)return e[i]=r,!0}}function E(e,r,i,n,a){var s,o,u,l;for(s=0,o=e.length;s<o;s++)if(u=e[s],u&&!(u instanceof n))if(u.hasSubgroups===t||a){for(l=0;l<r.length;l++)if(r[l]===u){e[s]=r.at(l),T(i,r,u,e[s]);break}}else E(u.items,r,i,n,a)}function N(e,t){var r,i,n;if(e)for(r=e.length,n=0;n<r;n++)if(i=e[n],i.uid&&i.uid==t.uid)return e.splice(n,1),i}function M(e,t){return t?L(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function j(e,t){return t?L(e,function(e){return e.uid==t.uid}):-1}function L(e,t){var r,i;if(e){for(r=0,i=e.length;r<i;r++)if(t(e[r]))return r;return-1}}function B(e,t){var r,i;return e&&!ye(e)?(r=e[t],i=ve(r)?r.from||r.field||t:e[t]||t,Fe(i)?t:i):t}function H(e,t){var r,i,n,a={};for(n in e)"filters"!==n&&(a[n]=e[n]);if(e.filters)for(a.filters=[],r=0,i=e.filters.length;r<i;r++)a.filters[r]=H(e.filters[r],t);else a.field=B(t.fields,a.field);return a}function U(e,t){var r,i,n,a,s,o=[];for(r=0,i=e.length;r<i;r++){n={},a=e[r];for(s in a)n[s]=a[s];n.field=B(t.fields,n.field),n.aggregates&&Se(n.aggregates)&&(n.aggregates=U(n.aggregates,t)),o.push(n)}return o}function J(t,r){var i,n,a,s,o,u,l,g,d,h;for(t=e(t)[0],i=t.options,n=r[0],a=r[1],s=[],o=0,u=i.length;o<u;o++)d={},g=i[o],l=g.parentNode,l===t&&(l=null),g.disabled||l&&l.disabled||(l&&(d.optgroup=l.label),d[n.field]=g.text,h=g.attributes.value,h=h&&h.specified?g.value:g.text,d[a.field]=h,s.push(d));return s}function V(t,r){var i,n,a,s,o,u,l,g=e(t)[0].tBodies[0],d=g?g.rows:[],h=r.length,f=[];for(i=0,n=d.length;i<n;i++){for(o={},l=!0,s=d[i].cells,a=0;a<h;a++)u=s[a],"th"!==u.nodeName.toLowerCase()&&(l=!1,o[r[a].field]=u.innerHTML);l||f.push(o)}return f}function Q(e){return function(){var t=this._data,r=ge.fn[e].apply(this,Ze.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),r}}function W(t,r){function i(e,t){return e.filter(t).add(e.find(t))}var n,a,s,o,u,l,g,d,h=e(t).children(),f=[],c=r[0].field,p=r[1]&&r[1].field,_=r[2]&&r[2].field,m=r[3]&&r[3].field;for(n=0,a=h.length;n<a;n++)s={_loaded:!0},o=h.eq(n),l=o[0].firstChild,d=o.children(),t=d.filter("ul"),d=d.filter(":not(ul)"),u=o.attr("data-id"),u&&(s.id=u),l&&(s[c]=3==l.nodeType?l.nodeValue:d.text()),p&&(s[p]=i(d,"a").attr("href")),m&&(s[m]=i(d,"img").attr("src")),_&&(g=i(d,".k-sprite").prop("className"),s[_]=g&&xe.trim(g.replace("k-sprite",""))),t.length&&(s.items=W(t.eq(0),r)),"true"==o.attr("data-hasChildren")&&(s.hasChildren=!0),f.push(s);return f}var $,K,X,Y,Z,ee,te,re,ie,ne,ae,se,oe,ue,le,ge,de,he,fe,ce,pe,_e=e.extend,me=e.proxy,ve=e.isPlainObject,ye=e.isEmptyObject,Se=e.isArray,be=e.grep,ke=e.ajax,we=e.each,Pe=e.noop,xe=window.kendo,Fe=xe.isFunction,Re=xe.Observable,Ge=xe.Class,qe="string",Ce="function",Oe="asc",De="create",ze="read",Ie="update",Te="destroy",Ae="change",Ee="sync",Ne="get",Me="error",je="requestStart",Le="progress",Be="requestEnd",He=[De,ze,Ie,Te],Ue=function(e){return e},Je=xe.getter,Ve=xe.stringify,Qe=Math,We=[].push,$e=[].join,Ke=[].pop,Xe=[].splice,Ye=[].shift,Ze=[].slice,et=[].unshift,tt={}.toString,rt=xe.support.stableSort,it=/^\/Date\((.*?)\)\/$/,nt=[],at=Re.extend({init:function(e,t){var r=this;r.type=t||X,Re.fn.init.call(r),r.length=e.length,r.wrapAll(e,r)},at:function(e){return this[e]},toJSON:function(e){var t,r,i=this.length,n=Array(i);for(t=0;t<i;t++)r=this[t],r instanceof X&&(r=r.toJSON(e)),n[t]=r;return n},parent:Pe,wrapAll:function(e,t){var r,i,n=this,a=function(){return n};for(t=t||[],r=0,i=e.length;r<i;r++)t[r]=n.wrap(e[r],a);return t},wrap:function(e,t){var r,i=this;return null!==e&&"[object Object]"===tt.call(e)&&(r=e instanceof i.type||e instanceof ee,r||(e=e instanceof X?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(Ae,function(e){i.trigger(Ae,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemloaded":"itemchange"})})),e},push:function(){var e,t=this.length,r=this.wrapAll(arguments);return e=We.apply(this,r),this.omitChangeEvent||this.trigger(Ae,{action:"add",index:t,items:r}),e},slice:Ze,sort:[].sort,join:$e,pop:function(){var e=this.length,t=Ke.apply(this);return e&&this.trigger(Ae,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,r){var i,n,a,s=this.wrapAll(Ze.call(arguments,2));if(i=Xe.apply(this,[e,t].concat(s)),i.length)for(this.omitChangeEvent||this.trigger(Ae,{action:"remove",index:e,items:i}),n=0,a=i.length;n<a;n++)i[n]&&i[n].children&&i[n].unbind(Ae);return r&&(this.omitChangeEvent||this.trigger(Ae,{action:"add",index:e,items:s})),i},shift:function(){var e=this.length,t=Ye.apply(this);return e&&this.trigger(Ae,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=et.apply(this,t),this.trigger(Ae,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,r,i=this;for(t=0,r=i.length;t<r;t++)if(i[t]===e)return t;return-1},forEach:function(e,t){for(var r=0,i=this.length,n=t||window;r<i;r++)e.call(n,this[r],r,this)},map:function(e,t){for(var r=0,i=[],n=this.length,a=t||window;r<n;r++)i[r]=e.call(a,this[r],r,this);return i},reduce:function(e){var t,r=0,i=this.length;for(2==arguments.length?t=arguments[1]:r<i&&(t=this[r++]);r<i;r++)t=e(t,this[r],r,this);return t},reduceRight:function(e){var t,r=this.length-1;for(2==arguments.length?t=arguments[1]:r>0&&(t=this[r--]);r>=0;r--)t=e(t,this[r],r,this);return t},filter:function(e,t){for(var r,i=0,n=[],a=this.length,s=t||window;i<a;i++)r=this[i],e.call(s,r,i,this)&&(n[n.length]=r);return n},find:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],e.call(a,r,i,this))return r},every:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],!e.call(a,r,i,this))return!1;return!0},some:function(e,t){for(var r,i=0,n=this.length,a=t||window;i<n;i++)if(r=this[i],e.call(a,r,i,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);t!==-1&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}});"undefined"!=typeof Symbol&&Symbol.iterator&&!at.prototype[Symbol.iterator]&&(at.prototype[Symbol.iterator]=[][Symbol.iterator]),K=at.extend({init:function(e,t,r){Re.fn.init.call(this),this.type=t||X,r&&(this._events=r);for(var i=0;i<e.length;i++)this[i]=e[i];this.length=i,this._parent=me(function(){return this},this)},at:function(e){var t=this[e];return t instanceof this.type?t.parent=this._parent:t=this[e]=this.wrap(t,this._parent),t}}),nt=i({},!1),X=Re.extend({init:function(e){var t,r=this,n=i(e,!0),a=function(){return r};Re.fn.init.call(this),this._handlers={},n.forEach(function(i){t=e[i],"object"==typeof t&&t&&!t.getTime&&"_"!=i.charAt(0)&&(t=r.wrap(t,i,a)),r[i]=t}),r.uid=xe.guid()},shouldSerialize:function(e,t){return this.hasOwnProperty(e)&&"_handlers"!==e&&"_events"!==e&&(t&&t[e]||typeof this[e]!==Ce)&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(e){var t,r,i={};for(r in this)this.shouldSerialize(r,e)&&(t=this[r],(t instanceof X||t instanceof at)&&(t=t.toJSON(e)),i[r]=t);return i},get:function(e){var t,r=this;return r.trigger(Ne,{field:e}),t="this"===e?r:xe.getter(e,!0)(r)},_set:function(e,t){var r,i,n,a=this,s=e.indexOf(".")>=0;if(s)for(r=e.split("."),i="";r.length>1;){if(i+=r.shift(),n=xe.getter(i,!0)(a),n instanceof X)return n.set(r.join("."),t),s;i+="."}return xe.setter(e)(a,t),s},set:function(e,t){var r=this,i=!1,n=e.indexOf(".")>=0,a=xe.getter(e,!0)(r);return a!==t&&(a instanceof Re&&this._handlers[e]&&(this._handlers[e].get&&a.unbind(Ne,this._handlers[e].get),a.unbind(Ae,this._handlers[e].change)),i=r.trigger("set",{field:e,value:t}),i||(n||(t=r.wrap(t,e,function(){return r})),(!r._set(e,t)||e.indexOf("(")>=0||e.indexOf("[")>=0)&&r.trigger(Ae,{field:e}))),i},parent:Pe,wrap:function(e,t,i){var n,a,s,o,u=this,l=tt.call(e);return null==e||"[object Object]"!==l&&"[object Array]"!==l||(s=e instanceof at,o=e instanceof ge,"[object Object]"!==l||o||s?("[object Array]"===l||s||o)&&(s||o||(e=new at(e)),a=r(u,Ae,t,!1),e.bind(Ae,a),u._handlers[t]={change:a}):(e instanceof X||(e=new X(e)),n=r(u,Ne,t,!0),e.bind(Ne,n),a=r(u,Ae,t,!0),e.bind(Ae,a),u._handlers[t]={get:n,change:a}),e.parent=i),e}}),Y={number:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:xe.parseFloat(e)},date:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:xe.parseDate(e)},"boolean":function(e){return typeof e===qe?"null"===e.toLowerCase()?null:"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return typeof e===qe&&"null"===e.toLowerCase()?null:null!=e?e+"":e},"default":function(e){return e}},Z={string:"",number:0,date:new Date,"boolean":!1,"default":""},ee=X.extend({init:function(r){var i,n,a=this;if((!r||e.isEmptyObject(r))&&(r=e.extend({},a.defaults,r),a._initializers))for(i=0;i<a._initializers.length;i++)n=a._initializers[i],r[n]=a.defaults[n]();X.fn.init.call(a,r),a.dirty=!1,a.dirtyFields={},a.idField&&(a.id=a.get(a.idField),a.id===t&&(a.id=a._defaultId))},shouldSerialize:function(e){return X.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"dirtyFields"!==e&&"_accessors"!==e},_parse:function(e,t){var r,i=this,n=e,s=i.fields||{};return e=s[e],e||(e=a(s,n)),e&&(r=e.parse,!r&&e.type&&(r=Y[e.type.toLowerCase()])),r?r(t):t},_notifyChange:function(e){var t=e.action;"add"!=t&&"remove"!=t||(this.dirty=!0,this.dirtyFields[e.field]=!0)},editable:function(e){return e=(this.fields||{})[e],!e||e.editable!==!1},set:function(e,t){var r=this,i=r.dirty;r.editable(e)&&(t=r._parse(e,t),n(t,r.get(e))?r.trigger("equalSet",{field:e,value:t}):(r.dirty=!0,r.dirtyFields[e]=!0,X.fn.set.call(r,e,t)&&!i&&(r.dirty=i,r.dirty||(r.dirtyFields[e]=!1))))},accept:function(e){var t,r,i=this,n=function(){return i};for(t in e)r=e[t],"_"!=t.charAt(0)&&(r=i.wrap(e[t],t,n)),i._set(t,r);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1,i.dirtyFields={}},isNew:function(){return this.id===this._defaultId}}),ee.define=function(e,r){r===t&&(r=e,e=ee);var i,n,a,s,o,u,l,g,d=_e({defaults:{}},r),h={},f=d.id,c=[];if(f&&(d.idField=f),d.id&&delete d.id,f&&(d.defaults[f]=d._defaultId=""),"[object Array]"===tt.call(d.fields)){for(u=0,l=d.fields.length;u<l;u++)a=d.fields[u],typeof a===qe?h[a]={}:a.field&&(h[a.field]=a);d.fields=h}for(n in d.fields)a=d.fields[n],s=a.type||"default",o=null,g=n,n=typeof a.field===qe?a.field:n,a.nullable||(o=d.defaults[g!==n?g:n]=a.defaultValue!==t?a.defaultValue:Z[s.toLowerCase()],"function"==typeof o&&c.push(n)),r.id===n&&(d._defaultId=o),d.defaults[g!==n?g:n]=o,a.parse=a.parse||Y[s];return c.length>0&&(d._initializers=c),i=e.extend(d),i.define=function(e){return ee.define(i,e)},d.fields&&(i.fields=d.fields,i.idField=d.idField),i},te={selector:function(e){return Fe(e)?e:Je(e)},compare:function(e){var t=this.selector(e);return function(e,r){return e=t(e),r=t(r),null==e&&null==r?0:null==e?-1:null==r?1:e.localeCompare?e.localeCompare(r):e>r?1:e<r?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,r){return t(r,e,!0)}:t},combine:function(e){return function(t,r){var i,n,a=e[0](t,r);for(i=1,n=e.length;i<n;i++)a=a||e[i](t,r);return a}}},re=_e({},te,{asc:function(e){var t=this.selector(e);return function(e,r){var i=t(e),n=t(r);return i&&i.getTime&&n&&n.getTime&&(i=i.getTime(),n=n.getTime()),i===n?e.__position-r.__position:null==i?-1:null==n?1:i.localeCompare?i.localeCompare(n):i>n?1:-1}},desc:function(e){var t=this.selector(e);return function(e,r){var i=t(e),n=t(r);return i&&i.getTime&&n&&n.getTime&&(i=i.getTime(),n=n.getTime()),i===n?e.__position-r.__position:null==i?1:null==n?-1:n.localeCompare?n.localeCompare(i):i<n?1:-1}},create:function(e){return this[e.dir](e.field)}}),$=function(e,t){var r,i=e.length,n=Array(i);for(r=0;r<i;r++)n[r]=t(e[r],r,e);return n},ie=function(){function e(e){return"string"==typeof e&&(e=e.replace(/[\r\n]+/g,"")),JSON.stringify(e)}function t(t){return function(r,i,n,a){return i+="",n&&(r="("+r+" + '').toString()"+(a?".toLocaleLowerCase('"+a+"')":".toLowerCase()"),i=a?i.toLocaleLowerCase(a):i.toLowerCase()),t(r,e(i),n)}}function r(t,r,i,n,a){if(null!=i){if(typeof i===qe){var s=it.exec(i);s?i=new Date((+s[1])):n?(i=e(a?i.toLocaleLowerCase(a):i.toLowerCase()),r="(("+r+" || '')+'')"+(a?".toLocaleLowerCase('"+a+"')":".toLowerCase()")):i=e(i)}i.getTime&&(r="("+r+"&&"+r+".getTime?"+r+".getTime():"+r+")",i=i.getTime())}return r+" "+t+" "+i}function i(e){var t,r,i,n;for(t="/^",r=!1,i=0;i<e.length;++i){if(n=e.charAt(i),r)t+="\\"+n;else{if("~"==n){r=!0;continue}t+="*"==n?".*":"?"==n?".":".+^$()[]{}|\\/\n\r\u2028\u2029 ".indexOf(n)>=0?"\\"+n:n}r=!1}return t+"$/"}return{quote:function(t){return t&&t.getTime?"new Date("+t.getTime()+")":e(t)},eq:function(e,t,i,n){return r("==",e,t,i,n)},neq:function(e,t,i,n){return r("!=",e,t,i,n)},gt:function(e,t,i){return r(">",e,t,i)},gte:function(e,t,i){return r(">=",e,t,i)},lt:function(e,t,i){return r("<",e,t,i)},lte:function(e,t,i){return r("<=",e,t,i)},startswith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == 0"}),doesnotstartwith:t(function(e,t){return e+".lastIndexOf("+t+", 0) == -1"}),endswith:t(function(e,t){var r=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+r+") >= 0"}),doesnotendwith:t(function(e,t){var r=t?t.length-2:0;return e+".indexOf("+t+", "+e+".length - "+r+") < 0"}),contains:t(function(e,t){return e+".indexOf("+t+") >= 0"}),doesnotcontain:t(function(e,t){return e+".indexOf("+t+") == -1"}),matches:t(function(e,t){return t=t.substring(1,t.length-1),i(t)+".test("+e+")"}),doesnotmatch:t(function(e,t){return t=t.substring(1,t.length-1),"!"+i(t)+".test("+e+")"}),isempty:function(e){return e+" === ''"},isnotempty:function(e){return e+" !== ''"},isnull:function(e){return"("+e+" == null)"},isnotnull:function(e){return"("+e+" != null)"},isnullorempty:function(e){return"("+e+" === null) || ("+e+" === '')"},isnotnullorempty:function(e){return"("+e+" !== null) && ("+e+" !== '')"}}}(),s.filterExpr=function(e){var r,i,n,a,o,u,l=[],g={and:" && ",or:" || "},d=[],h=[],f=e.filters;for(r=0,i=f.length;r<i;r++)n=f[r],o=n.field,u=n.operator,n.filters?(a=s.filterExpr(n),n=a.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(h.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(d.length+t)+"]"}),h.push.apply(h,a.operators),d.push.apply(d,a.fields)):(typeof o===Ce?(a="__f["+d.length+"](d)",d.push(o)):a=xe.expr(o),typeof u===Ce?(n="__o["+h.length+"]("+a+", "+ie.quote(n.value)+")",h.push(u)):n=ie[(u||"eq").toLowerCase()](a,n.value,n.ignoreCase===t||n.ignoreCase,e.accentFoldingFiltering)),l.push(n);return{expression:"("+l.join(g[e.logic])+")",fields:d,operators:h}},ne={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain",isnull:"isnull",isempty:"isempty",isnotempty:"isnotempty"},s.normalizeFilter=g,s.compareFilters=c,s.prototype={toArray:function(){return this.data},range:function(e,t){return new s(this.data.slice(e,e+t))},skip:function(e){return new s(this.data.slice(e))},take:function(e){return new s(this.data.slice(0,e))},select:function(e){return new s($(this.data,e))},order:function(e,t,r){var i={dir:t};return e&&(e.compare?i.compare=e.compare:i.field=e),new s(r?this.data.sort(te.create(i)):this.data.slice(0).sort(te.create(i)))},orderBy:function(e,t){return this.order(e,"asc",t)},orderByDescending:function(e,t){return this.order(e,"desc",t)},sort:function(e,t,r,i){var n,a,s=o(e,t),u=[];if(r=r||te,s.length){for(n=0,a=s.length;n<a;n++)u.push(r.create(s[n]));return this.orderBy({compare:r.combine(u)},i)}return this},filter:function(e){var t,r,i,n,a,o,u,l,d=this.data,h=[];if(e=g(e),!e||0===e.filters.length)return this;for(n=s.filterExpr(e),o=n.fields,u=n.operators,a=l=Function("d, __f, __o","return "+n.expression),(o.length||u.length)&&(l=function(e){return a(e,o,u)}),t=0,i=d.length;t<i;t++)r=d[t],l(r)&&h.push(r);return new s(h)},group:function(e,t,r){e=_(e||[]),t=t||this.data;var i,n=this,a=new s(n.data);return e.length>0&&(i=e[0],a=r&&r.groupPaging?new s(t).groupAllData(i,t).select(function(n){var a=new s(t).filter([{field:n.field,operator:"eq",value:n.value,ignoreCase:!1}]),o=e.length>1?new s(n.items).group(e.slice(1),a.toArray(),r).toArray():n.items;return{field:n.field,value:n.value,hasSubgroups:e.length>1,items:o,aggregates:a.aggregate(i.aggregates),uid:xe.guid(),itemCount:o.length,subgroupCount:o.length}}):a.groupBy(i).select(function(r){var n=new s(t).filter([{field:r.field,operator:"eq",value:r.value,ignoreCase:!1}]);return{field:r.field,value:r.value,items:e.length>1?new s(r.items).group(e.slice(1),n.toArray()).toArray():r.items,hasSubgroups:e.length>1,aggregates:n.aggregate(i.aggregates)}})),a},groupBy:function(e){var t,r,i,n,a,o,u,l,g,d,h=this;if(ye(e)||!this.data.length)return new s([]);for(t=e.field,r=e.skipItemSorting?this.data:this._sortForGrouping(t,e.dir||"asc"),i=xe.accessor(t),a=i.get(r[0],t),o={field:t,value:a,items:[]},d=[o],l=0,g=r.length;l<g;l++)n=r[l],u=i.get(n,t),y(a,u)||(a=u,o={field:t,value:a,items:[]},d.push(o)),o.items.push(n);return d=h._sortGroups(d,e),new s(d)},groupAllData:function(e,t){if(ye(e)||this.data&&!this.data.length)return new s([]);var r,i,n,a,o=e.field,u=e.skipItemSorting?t:new s(t).sort(o,e.dir||"asc",re).toArray(),l=xe.accessor(o),g=l.get(u[0],o),d={field:o,value:g,items:[]},h=[d];for(n=0,a=u.length;n<a;n++)r=u[n],i=l.get(r,o),y(g,i)||(g=i,d={field:o,value:g,items:[]},h.push(d)),d.items.push(r);return h=this._sortGroups(h,e),new s(h)},_sortForGrouping:function(e,t){var r,i,n=this.data;if(!rt){for(r=0,i=n.length;r<i;r++)n[r].__position=r;for(n=new s(n).sort(e,t,re).toArray(),r=0,i=n.length;r<i;r++)delete n[r].__position;return n}return this.sort(e,t).toArray()},_sortGroups:function(e,t){var r=e;return t&&Fe(t.compare)&&(r=new s(r).order({compare:t.compare},t.dir||Oe).toArray()),r},aggregate:function(e){var t,r,i={},n={};if(e&&e.length)for(t=0,r=this.data.length;t<r;t++)S(i,e,this.data[t],t,r,n);return i}},ae={sum:function(e,t,r){var i=r.get(t);return b(e)?b(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,r,i,n,a,s){var o=i.get(r);return s.count===t&&(s.count=0),b(e)?b(o)&&(e+=o):e=o,b(o)&&s.count++,n==a-1&&b(e)&&(e/=s.count),e},max:function(e,t,r){var i=r.get(t);return b(e)||k(e)||(e=i),e<i&&(b(i)||k(i))&&(e=i),e},min:function(e,t,r){var i=r.get(t);return b(e)||k(e)||(e=i),e>i&&(b(i)||k(i))&&(e=i),e}},s.normalizeGroup=_,s.normalizeSort=o,s.process=function(e,r,i){var n,a,u,l,g,d,h,f,c,p,y,S;return r=r||{},n=r.group,a=v(_(n||[])),u=new s(e),l=m(n||[]),g=o(r.sort||[]),d=a?g:l.concat(g),c=r.filterCallback,p=r.filter,y=r.skip,S=r.take,d&&i&&(u=u.sort(d,t,t,i)),p&&(u=u.filter(p),c&&(u=c(u)),f=u.toArray().length),d&&(i||(u=u.sort(d)),n&&(e=u.toArray())),a?(u=u.group(n,e,r),y===t||S===t||r.groupPaging||(u=new s(O(u.toArray())).range(y,S),h=$(l,function(e){return _e({},e,{skipItemSorting:!0})}),u=u.group(h,e,r))):(y!==t&&S!==t&&(u=u.range(y,S)),n&&(u=u.group(n,e,r))),{total:f,data:u.toArray()}},se=Ge.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),oe=Ge.extend({init:function(e){var t,r=this;e=r.options=_e({},r.options,e),we(He,function(t,r){typeof e[r]===qe&&(e[r]={url:e[r]})}),r.cache=e.cache?ue.create(e.cache):{find:Pe,add:Pe},t=e.parameterMap,e.submit&&(r.submit=e.submit),Fe(e.push)&&(r.push=e.push),r.push||(r.push=Ue),r.parameterMap=Fe(t)?t:function(e){var r={};return we(e,function(e,i){e in t&&(e=t[e],ve(e)&&(i=e.value(i),e=e.key)),r[e]=i}),r}},options:{parameterMap:Ue},create:function(e){return ke(this.setup(e,De))},read:function(r){var i,n,a,s=this,o=s.cache;r=s.setup(r,ze),i=r.success||Pe,n=r.error||Pe,a=o.find(r.data),a!==t?i(a):(r.success=function(e){o.add(r.data,e),i(e)},e.ajax(r))},update:function(e){return ke(this.setup(e,Ie))},destroy:function(e){return ke(this.setup(e,Te))},setup:function(e,t){e=e||{};var r,i=this,n=i.options[t],a=Fe(n.data)?n.data(e.data):n.data;return e=_e(!0,{},n,e),r=_e(!0,{},a,e.data),e.data=i.parameterMap(r,t),Fe(e.url)&&(e.url=e.url(r)),e}}),ue=Ge.extend({init:function(){this._store={}},add:function(e,r){e!==t&&(this._store[Ve(e)]=r)},find:function(e){return this._store[Ve(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Ve(e)]}}),ue.create=function(e){var t={inmemory:function(){return new ue}};return ve(e)&&Fe(e.find)?e:e===!0?new ue:t[e]()},le=Ge.extend({init:function(e){var t,r,i,n,a,s,o,u,l,g,d,h,f,c,p=this;e=e||{};for(t in e)r=e[t],p[t]=typeof r===qe?Je(r):r;n=e.modelBase||ee,ve(p.model)&&(p.model=i=n.define(p.model)),a=me(p.data,p),p._dataAccessFunction=a,p.model&&(s=me(p.groups,p),o=me(p.serialize,p),u={},l={},g={},d={},h=!1,i=p.model,i.fields&&(we(i.fields,function(e,t){var r;f=e,ve(t)&&t.field?f=t.field:typeof t===qe&&(f=t),ve(t)&&t.from&&(r=t.from),h=h||r&&r!==e||f!==e,c=r||f,l[e]=c.indexOf(".")!==-1?Je(c,!0):Je(c),g[e]=Je(e),u[r||f]=e,d[e]=r||f}),!e.serialize&&h&&(p.serialize=R(o,i,P,g,u,d))),p._dataAccessFunction=a,p._wrapDataAccessBase=G(i,x,l,u,d),p.data=R(a,i,x,l,u,d),p.groups=R(s,i,F,l,u,d))},errors:function(e){return e?e.errors:null},parse:Ue,data:Ue,total:function(e){return e.length},groups:Ue,aggregates:function(){return{}},serialize:function(e){return e}}),ge=Re.extend({init:function(e){var r,i,n,a=this;e&&(i=e.data),e=a.options=_e({},a.options,e),a._map={},a._prefetch={},a._data=[],a._pristineData=[],a._ranges=[],a._view=[],a._pristineTotal=0,a._destroyed=[],a._pageSize=e.pageSize,a._page=e.page||(e.pageSize?1:t),a._sort=o(e.sort),a._sortFields=u(e.sort),a._filter=g(e.filter),a._group=_(e.group),a._aggregate=e.aggregate,a._total=e.total,a._groupPaging=e.groupPaging,a._groupPaging&&(a._groupsState={}),a._shouldDetachObservableParents=!0,Re.fn.init.call(a),a.transport=de.create(e,i,a),Fe(a.transport.push)&&a.transport.push({pushCreate:me(a._pushCreate,a),pushUpdate:me(a._pushUpdate,a),pushDestroy:me(a._pushDestroy,a)}),null!=e.offlineStorage&&("string"==typeof e.offlineStorage?(n=e.offlineStorage,a._storage={getItem:function(){return JSON.parse(localStorage.getItem(n))},setItem:function(e){localStorage.setItem(n,Ve(a.reader.serialize(e)))}}):a._storage=e.offlineStorage),a.reader=new xe.data.readers[e.schema.type||"json"](e.schema),r=a.reader.model||{},a._detachObservableParents(),a._data=a._observe(a._data),a._online=!0,a.bind(["push",Me,Ae,je,Ee,Be,Le],e)},options:{data:null,schema:{modelBase:ee},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(r){return r!==t?this._online!=r&&(this._online=r,r)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){var e=this._group||[];return this._groupPaging&&e.length},_pushCreate:function(e){this._push(e,"pushCreate")},_pushUpdate:function(e){this._push(e,"pushUpdate")},_pushDestroy:function(e){this._push(e,"pushDestroy")},_push:function(e,t){var r=this._readData(e);r||(r=e),this[t](r)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return D(e);if(!t)for(var r=0;r<e.length;r++)e.at(r)}return e},parent:Pe,get:function(e){var t,r,i=this._flatData(this._data,this.options.useRanges);for(t=0,r=i.length;t<r;t++)if(i[t].id==e)return i[t]},getByUid:function(e){return this._getByUid(e,this._data)},_getByUid:function(e,t){var r,i,n=this._flatData(t,this.options.useRanges);if(n)for(r=0,i=n.length;r<i;r++)if(n[r].uid==e)return n[r]},indexOf:function(e){return j(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var r,i=this;if(e===t){if(i._data)for(r=0;r<i._data.length;r++)i._data.at(r);return i._data}i._detachObservableParents(),i._data=this._observe(e),i._pristineData=e.slice(0),i._storeData(),i._ranges=[],i.trigger("reset"),i._addRange(i._data),i._total=i._data.length,i._pristineTotal=i._total,i._process(i._data)},view:function(e){return e===t?this._view:(this._view=this._observeView(e),t)},_observeView:function(e){var t,r=this;return E(e,r._data,r._ranges,r.reader.model||X,r._isServerGrouped()),t=new K(e,r.reader.model),t.parent=function(){return r.parent()},t},flatView:function(){var e=this.group()||[];return e.length?D(this._view):this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):e instanceof X?e:new X(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof ee||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),this._insertModelInRange(e,t),t},pushInsert:function(t,r){var i,n,a,s,o,u,l=this,g=l._getCurrentRangeSpan();r||(r=t,t=0),Se(r)||(r=[r]),i=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(a=0;a<r.length;a++)s=r[a],o=this.insert(t,s),i.push(o),u=o.toJSON(),this._isServerGrouped()&&(u=this._wrapInEmptyGroup(u)),this._pristineData.push(u),g&&g.length&&e(g).last()[0].pristineData.push(u),t++}finally{this.options.autoSync=n}i.length&&this.trigger("push",{type:"create",items:i})},pushCreate:function(e){this.pushInsert(this._data.length,e)},pushUpdate:function(e){var t,r,i,n,a;for(Se(e)||(e=[e]),t=[],r=0;r<e.length;r++)i=e[r],n=this._createNewModel(i),a=this.get(n.id),a?(t.push(a),a.accept(i),a.trigger(Ae),this._updatePristineForModel(a,i)):this.pushCreate(i);t.length&&this.trigger("push",{type:"update",items:t})},pushDestroy:function(e){var t=this._removeItems(e);t.length&&this.trigger("push",{type:"destroy",items:t})},_removeItems:function(e,r){var i,n,a,s,o,u,l;Se(e)||(e=[e]),i=t===r||r,n=[],a=this.options.autoSync,this.options.autoSync=!1;try{for(s=0;s<e.length;s++)o=e[s],u=this._createNewModel(o),l=!1,this._eachItem(this._data,function(e){var t,r;for(t=0;t<e.length;t++)if(r=e.at(t),r.id===u.id){n.push(r),e.splice(t,1),l=!0;break}}),l&&i&&(this._removePristineForModel(u),this._destroyed.pop())}finally{this.options.autoSync=a}return n},remove:function(e){var t,r=this,i=r._isServerGrouped();return this._eachItem(r._data,function(n){if(t=N(n,e),t&&i)return t.isNew&&t.isNew()||r._destroyed.push(t),!0}),this._removeModelFromRanges(e),
e},destroyed:function(){return this._destroyed},created:function(){var e,t,r=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&i[e].isNew()&&r.push(i[e]);return r},updated:function(){var e,t,r=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e<t;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&r.push(i[e]);return r},sync:function(){var t,r=this,i=[],n=[],a=r._destroyed,s=e.Deferred().resolve().promise();if(r.online()){if(!r.reader.model)return s;i=r.created(),n=r.updated(),t=[],r.options.batch&&r.transport.submit?t=r._sendSubmit(i,n,a):(t.push.apply(t,r._send("create",i)),t.push.apply(t,r._send("update",n)),t.push.apply(t,r._send("destroy",a))),s=e.when.apply(null,t).then(function(){var e,t;for(e=0,t=arguments.length;e<t;e++)arguments[e]&&r._accept(arguments[e]);r._storeData(!0),r._syncEnd(),r._change({action:"sync"}),r.trigger(Ee),r._isServerGroupPaged()&&r.read()})}else r._storeData(!0),r._syncEnd(),r._change({action:"sync"});return s},_syncEnd:Pe,cancelChanges:function(e){var t=this;e instanceof xe.data.Model?t._cancelModel(e):(t._destroyed=[],t._detachObservableParents(),t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t._pristineTotal),t._ranges=[],t._addRange(t._data,0),t._changesCanceled(),t._change(),t._markOfflineUpdatesAsDirty(),t._isServerGrouped()&&t.read())},_changesCanceled:Pe,_markOfflineUpdatesAsDirty:function(){var e=this;null!=e.options.offlineStorage&&e._eachItem(e._data,function(e){var t,r;for(t=0;t<e.length;t++)r=e.at(t),"update"!=r.__state__&&"create"!=r.__state__||(r.dirty=!0)})},hasChanges:function(){var e,t,r=this._flatData(this._data,this.options.useRanges);if(this._destroyed.length)return!0;for(e=0,t=r.length;e<t;e++)if(r[e].isNew&&r[e].isNew()||r[e].dirty)return!0;return!1},_accept:function(t){var r,i=this,n=t.models,a=t.response,s=0,o=i._isServerGrouped(),u=i._pristineData,l=t.type;if(i.trigger(Be,{response:a,type:l}),a&&!ye(a)){if(a=i.reader.parse(a),i._handleCustomErrors(a))return;a=i.reader.data(a),Se(a)||(a=[a])}else a=e.map(n,function(e){return e.toJSON()});for("destroy"===l&&(i._destroyed=[]),s=0,r=n.length;s<r;s++)"destroy"!==l?(n[s].accept(a[s]),"create"===l?u.push(o?i._wrapInEmptyGroup(n[s].toJSON()):a[s]):"update"===l&&i._updatePristineForModel(n[s],a[s])):i._removePristineForModel(n[s])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,r){xe.deepExtend(r[e],t)})},_executeOnPristineForModel:function(e,t){this._eachPristineItem(function(r){var i=M(r,e);if(i>-1)return t(i,r),!0})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){var t=this,r=t.options,i=t._getCurrentRangeSpan();t._eachItem(t._pristineData,e),r.serverPaging&&r.useRanges&&we(i,function(r,i){t._eachItem(i.pristineData,e)})},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?I(e,t):t(e))},_pristineForModel:function(e){var t,r,i=function(i){if(r=M(i,e),r>-1)return t=i[r],!0};return this._eachPristineItem(i),t},_cancelModel:function(e){var t=this,r=this._pristineForModel(e);this._eachItem(this._data,function(i){var n=j(i,e);n>=0&&(!r||e.isNew()&&!r.__state__?(t._modelCanceled(e),i.splice(n,1),t._removeModelFromRanges(e)):(i[n].accept(r),"update"==r.__state__&&(i[n].dirty=!0)))})},_modelCanceled:Pe,_submit:function(t,r){var i=this;i.trigger(je,{type:"submit"}),i.trigger(Le),i.transport.submit(_e({success:function(r,i){var n=e.grep(t,function(e){return e.type==i})[0];n&&n.resolve({response:r,models:n.models,type:i})},error:function(e,r,n){for(var a=0;a<t.length;a++)t[a].reject(e);i.error(e,r,n)}},r))},_sendSubmit:function(t,r,i){var n=this,a=[];return n.options.batch&&(t.length&&a.push(e.Deferred(function(e){e.type="create",e.models=t})),r.length&&a.push(e.Deferred(function(e){e.type="update",e.models=r})),i.length&&a.push(e.Deferred(function(e){e.type="destroy",e.models=i})),n._submit(a,{data:{created:n.reader.serialize(w(t)),updated:n.reader.serialize(w(r)),destroyed:n.reader.serialize(w(i))}})),a},_promise:function(t,r,i){var n=this;return e.Deferred(function(e){n.trigger(je,{type:i}),n.trigger(Le),n.transport[i].call(n.transport,_e({success:function(t){e.resolve({response:t,models:r,type:i})},error:function(t,r,i){e.reject(t),n.error(t,r,i)}},t))}).promise()},_send:function(e,t){var r,i,n=this,a=[],s=n.reader.serialize(w(t));if(n.options.batch)t.length&&a.push(n._promise({data:{models:s}},t,e));else for(r=0,i=t.length;r<i;r++)a.push(n._promise({data:s[r]},[t[r]],e));return a},read:function(t){var r=this,i=r._params(t),n=e.Deferred();return r._queueRequest(i,function(){var e=r.trigger(je,{type:"read"});e?(r._dequeueRequest(),n.resolve(e)):(r.trigger(Le),r._ranges=[],r.trigger("reset"),r.online()?r.transport.read({data:i,success:function(e){r._ranges=[],r.success(e,i),n.resolve()},error:function(){var e=Ze.call(arguments);r.error.apply(r,e),n.reject.apply(n,e)}}):null!=r.options.offlineStorage&&(r.success(r.offlineData(),i),n.resolve()))}),n.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var r,i,n,a,s,o,u,l,g,d,h,f=this,c=f.options;if(f.trigger(Be,{response:e,type:"read"}),f.online()){if(e=f.reader.parse(e),f._handleCustomErrors(e))return f._dequeueRequest(),t;f._total=f.reader.total(e),f._isServerGroupPaged()&&(f._serverGroupsTotal=f._total),f._pageSize>f._total&&(f._pageSize=f._total,f.options.pageSize&&f.options.pageSize>f._pageSize&&(f._pageSize=f.options.pageSize)),f._aggregate&&c.serverAggregates&&(f._aggregateResult=f._readAggregates(e)),e=f._readData(e),f._destroyed=[]}else{for(e=f._readData(e),r=[],n={},a=f.reader.model,s=a?a.idField:"id",o=0;o<this._destroyed.length;o++)u=this._destroyed[o][s],n[u]=u;for(o=0;o<e.length;o++)l=e[o],g=l.__state__,"destroy"==g?n[l[s]]||this._destroyed.push(this._createNewModel(l)):r.push(l);e=r,f._total=e.length}if(f._pristineTotal=f._total,i=f._skip&&f._data.length&&f._skip<f._data.length,f.options.endless)for(i&&f._pristineData.splice(f._skip,f._pristineData.length),r=e.slice(0),d=0;d<r.length;d++)f._pristineData.push(r[d]);else f._pristineData=e.slice(0);if(f._detachObservableParents(),f.options.endless){for(f._data.unbind(Ae,f._changeHandler),f._isServerGrouped()&&f._data[f._data.length-1].value===e[0].value&&(q(f._data[f._data.length-1],e[0]),e.shift()),e=f._observe(e),i&&f._data.splice(f._skip,f._data.length),h=0;h<e.length;h++)f._data.push(e[h]);f._data.bind(Ae,f._changeHandler)}else f._data=f._observe(e);f._markOfflineUpdatesAsDirty(),f._storeData(),f._addRange(f._data),f._process(f._data),f._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;e<this._data.length;e++)this._data[e].parent&&(this._data[e].parent=Pe)},_storeData:function(e){function t(e){var r,i,n,a=[];for(r=0;r<e.length;r++)i=e.at(r),n=i.toJSON(),s&&i.items?n.items=t(i.items):(n.uid=i.uid,o&&(i.isNew()?n.__state__="create":i.dirty&&(n.__state__="update"))),a.push(n);return a}var r,i,n,a,s=this._isServerGrouped(),o=this.reader.model;if(null!=this.options.offlineStorage){for(r=t(this._data),i=[],n=0;n<this._destroyed.length;n++)a=this._destroyed[n].toJSON(),a.__state__="destroy",i.push(a);this.offlineData(r.concat(i)),e&&(this._pristineData=this.reader.reader?this.reader.reader._wrapDataAccessBase(r):this.reader._wrapDataAccessBase(r))}},_addRange:function(e,r){var i,n=this,a=t!==r?r:n._skip||0,s={data:e,pristineData:e.toJSON(),timestamp:n._timeStamp()};this._isGroupPaged()?(i=a+e.length,s.outerStart=a,s.outerEnd=i):i=a+n._flatData(e,!0).length,s.start=a,s.end=i,n._ranges.push(s),n._sortRanges(),n._isGroupPaged()&&(n._groupsFlat||(n._groupsFlat=[]),n._appendToGroupsFlat(s.data),n._updateOuterRangesLength())},_appendToGroupsFlat:function(e){var t,r=e.length;for(t=0;t<r;t++)this._groupsFlat.push(e[t])},_getGroupByUid:function(e){var t,r,i=this._groupsFlat.length;for(r=0;r<i;r++)if(t=this._groupsFlat[r],t.uid===e)return t},_sortRanges:function(){this._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,r){this._dequeueRequest(),this.trigger(Be,{}),this.trigger(Me,{xhr:e,status:t,errorThrown:r})},_params:function(e){var t=this,r=_e({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate,groupPaging:!!t._groupPaging},e);return t.options.serverPaging||(delete r.take,delete r.skip,delete r.page,delete r.pageSize),t.options.serverGrouping?t.reader.model&&r.group&&(r.group=U(r.group,t.reader.model)):delete r.group,t.options.serverFiltering?t.reader.model&&r.filter&&(r.filter=H(r.filter,t.reader.model)):delete r.filter,t.options.serverSorting?t.reader.model&&r.sort&&(r.sort=U(r.sort,t.reader.model)):delete r.sort,t.options.serverAggregates?t.reader.model&&r.aggregate&&(r.aggregate=U(r.aggregate,t.reader.model)):delete r.aggregate,t.options.groupPaging||delete r.groupPaging,r},_queueRequest:function(e,r){var i=this;i._requestInProgress?i._pending={callback:me(r,i),options:e}:(i._requestInProgress=!0,i._pending=t,r())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(Me,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_shouldWrap:function(e){var t=this.reader.model;return!(!t||!e.length)&&!(e[0]instanceof t)},_observe:function(e){var t,r=this,i=r.reader.model;return r._shouldDetachObservableParents=!0,e instanceof at?(r._shouldDetachObservableParents=!1,r._shouldWrap(e)&&(e.type=r.reader.model,e.wrapAll(e,e))):(t=r.pageSize()&&!r.options.serverPaging?K:at,e=new t(e,r.reader.model),e.parent=function(){return r.parent()}),r._isServerGrouped()&&z(e,i),!(r._changeHandler&&r._data&&r._data instanceof at)||r.options.useRanges&&r.options.serverPaging?r._changeHandler=me(r._change,r):r._data.unbind(Ae,r._changeHandler),e.bind(Ae,r._changeHandler)},_updateTotalForAction:function(e,t){var r=this,i=parseInt(r._total,10);b(r._total)||(i=parseInt(r._pristineTotal,10)),"add"===e?i+=t.length:"remove"===e?i-=t.length:"itemchange"===e||"sync"===e||r.options.serverPaging?"sync"===e&&(i=r._pristineTotal=parseInt(r._total,10)):i=r._pristineTotal,r._total=i},_change:function(e){var t,r,i,n=this,a=e?e.action:"";if("remove"===a)for(t=0,r=e.items.length;t<r;t++)e.items[t].isNew&&e.items[t].isNew()||n._destroyed.push(e.items[t]);!n.options.autoSync||"add"!==a&&"remove"!==a&&"itemchange"!==a?(n._updateTotalForAction(a,e?e.items:[]),n._process(n._data,e)):(i=function(t){"sync"===t.action&&(n.unbind("change",i),n._updateTotalForAction(a,e.items))},n.first("change",i),n.sync())},_calculateAggregates:function(e,t){t=t||{};var r=new s(e),i=t.aggregate,n=t.filter;return n&&(r=r.filter(n)),r.aggregate(i)},_process:function(e,r){var i,n=this,a={};n.options.serverPaging!==!0&&(a.skip=n._skip,a.take=n._take||n._pageSize,a.skip===t&&n._page!==t&&n._pageSize!==t&&(a.skip=(n._page-1)*n._pageSize),n.options.useRanges&&(a.skip=n.currentRangeStart())),n.options.serverSorting!==!0&&(a.sort=n._sort),n.options.serverFiltering!==!0&&(a.filter=n._filter),n.options.serverGrouping!==!0&&(a.group=n._group),n.options.serverAggregates!==!0&&(a.aggregate=n._aggregate),n.options.serverGrouping&&n._clearEmptyGroups(e),a.groupPaging=n._groupPaging,i=n._isGroupPaged()&&r&&("page"===r.action||"expandGroup"===r.action||"collapseGroup"===r.action)?n._queryProcess(e,{aggregate:n._aggregate}):n._queryProcess(e,a),n.options.serverAggregates!==!0&&(n._aggregateResult=n._calculateAggregates(i.dataToAggregate||e,a)),n._setView(i,a,r),n._setFilterTotal(i.total,!1),r=r||{},r.items=r.items||n._view,n.trigger(Ae,r)},_setView:function(e,t,r){var i,n=this;n._isGroupPaged()&&!n._isServerGrouped()?!r||"page"!==r.action&&"expandGroup"!==r.action&&"collapseGroup"!==r.action?(n._ranges=[],i=new s(e.data),n._addRange(n._observe(e.data)),t.skip+t.take>e.data.length&&(t.skip=e.data.length-t.take),n.view(i.range(t.skip,t.take).toArray())):(n.view(e.data),n._updateOuterRangesLength()):n.view(e.data)},_clearEmptyGroups:function(e){var t,r;for(t=e.length-1;t>=0;t--)r=e[t],r.hasSubgroups?this._clearEmptyGroups(r.items):r.items&&!r.items.length&&Xe.apply(r.parent(),[t,1])},_queryProcess:function(e,t){return this.options.inPlaceSort?s.process(e,t,this.options.inPlaceSort):s.process(e,t)},_mergeState:function(r){var i=this;return r!==t&&(i._pageSize=r.pageSize,i._page=r.page,i._sort=r.sort,i._filter=r.filter,i._group=r.group,i._aggregate=r.aggregate,i._skip=i._currentRangeStart=r.skip,i._take=r.take,i._skip===t&&(i._skip=i._currentRangeStart=i.skip(),r.skip=i.skip()),i._take===t&&i._pageSize!==t&&(i._take=i._pageSize,r.take=i._take),r.sort&&(i._sort=r.sort=o(r.sort),i._sortFields=u(r.sort)),r.filter&&(i._filter=r.filter=i.options.accentFoldingFiltering&&!e.isEmptyObject(r.filter)?e.extend({},g(r.filter),{accentFoldingFiltering:i.options.accentFoldingFiltering}):g(r.filter)),r.group&&(i._group=r.group=_(r.group)),r.aggregate&&(i._aggregate=r.aggregate=p(r.aggregate))),r},query:function(r){var i,n,a,s=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return s||(this._data===t||0===this._data.length)&&!this._destroyed.length?(this.options.endless&&(n=r.pageSize-this.pageSize(),n>0?(n=this.pageSize(),r.page=r.pageSize/n,r.pageSize=n):(r.page=1,this.options.endless=!1)),this.read(this._mergeState(r))):(a=this.trigger(je,{type:"read"}),a||(this.trigger(Le),r&&(r.groupPaging=this._groupPaging),i=this._queryProcess(this._data,this._mergeState(r)),this._setFilterTotal(i.total,!0),this._aggregateResult=this._calculateAggregates(i.dataToAggregate||this._data,r),this._setView(i,r),this.trigger(Be,{type:"read"}),this.trigger(Ae,{items:i.data,action:r?r.action:""})),e.Deferred().resolve(a).promise())},_hasExpandedSubGroups:function(e){var t,r=!1,i=e.items?e.items.length:0;if(!e.hasSubgroups)return!1;for(t=0;t<i;t++)if(this._groupsState[e.items[t].uid]){r=!0;break}return r},_findGroupedRange:function(e,r,i,n,a){var s,o,u,l,g,d,h,f=this,c=e.length;for(d=0;d<c&&(s=e[d],!(i.taken>=i.take));d++)if(f._getGroupByUid(s.uid)||f._groupsFlat.push(s),f._groupsState[s.uid]){if(f._isServerGroupPaged()){if(f._fetchGroupItems(s,i,n,a))return f._fetchingGroupItems=!0,t;if(l=(s.subgroupCount||s.itemCount)+1,g=i.skip-i.skipped,!f._hasExpandedSubGroups(s)&&g>l){i.skipped+=l;continue}}if(i.includeParents&&i.skipped<i.skip?(i.skipped++,s.excludeHeader=!0):i.includeParents&&(i.taken++,s.excludeHeader=!1),s.hasSubgroups&&s.items&&s.items.length)s.currentItems=[],n||(n=[]),n.push(s),f._findGroupedRange(s.items,s.currentItems,i,n,a),n.pop(),s.currentItems.length||i.taken>0?r.push(s):s.excludeHeader=!1;else{for(o=[],u=s.items.length,h=0;h<u;h++)if(i.skipped<i.skip)i.skipped++;else{if(i.taken>=i.take)break;o.push(s.items[h]),i.taken++}o.length||i.taken>0?(s.currentItems=o,r.push(s)):s.excludeHeader=!1}}else{if(i.skipped<i.skip){i.skipped++;continue}r.push(s),i.taken++}},_expandedSubGroupItemsCount:function(e,t,r){var i,n,a,s=this,o=0,u="number"==typeof t,l=u?t:e.subgroupCount;if(!e.hasSubgroups)return o;for(a=0;a<l&&(i=e.items[a],i);a++)if(i.hasSubgroups&&s._groupsState[e.uid]?(n=s._expandedSubGroupItemsCount(i,l,!0),o+=n,u&&(l-=n)):!i.hasSubgroups&&s._groupsState[i.uid]&&(n=i.items?i.items.length:0,o+=n,u&&(l-=n)),r&&(o+=1,u&&(l-=1)),u&&o>l)return o;return o},_fetchGroupItems:function(e,r,i,n){var a,s,o,u,l=this,g=e.hasSubgroups?e.subgroupCount:e.itemCount,d=r.take,h=r.skipped,f=l.take();return r.includeParents&&(h<r.skip?h+=1:d-=1),!e.items||e.items&&!e.items.length?(l.getGroupItems(e,r,i,n,0),!0):(u=this._expandedSubGroupItemsCount(e,r.skip-h),a=Math.max(r.skip-(h+u),0),!(a>=g)&&(s=e.items[a],o=e.items[Math.min(a+d,g-1)],s.notFetched?(l.getGroupItems(e,r,i,n,Qe.max(Qe.floor(a/f),0)*f),!0):o.notFetched?(l.getGroupItems(e,r,i,n,Qe.max(Qe.floor((a+f)/f),0)*f),!0):t))},getGroupItems:function(e,t,r,i,n){var a,s,o,u,l=this;e.items||(e.items=[]),a=l.take(),s=this._composeItemsFilter(e,r),o={page:Qe.floor((n||0)/(a||1))||1,pageSize:a,skip:n,take:a,filter:s,aggregate:l._aggregate,sort:l._sort},u=l.findSubgroups(e),u&&u.length&&(o.group=u,o.groupPaging=!0),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._queueRequest(o,function(){l.trigger(je,{type:"read"})?l._dequeueRequest():l.transport.read({data:o,success:l._groupItemsSuccessHandler(e,t.skip,l.take(),i,n),error:function(){var e=Ze.call(arguments);l.error.apply(l,e)}})})},100)},_groupItemsSuccessHandler:function(e,t,r,i,n){var a,s=this,o=s._timeStamp();return i=Fe(i)?i:Pe,a=s.options.schema&&s.options.schema.total?s.options.schema.total:"Total",function(u){var l,g,d,h=ee.define(s.options.schema.model);for(s._dequeueRequest(),s.trigger(Be,{response:u,type:"read"}),g=Fe(a)?a(u):u[a],u=s.reader.parse(u),e.hasSubgroups?(l=s.reader.groups(u),e.subgroupCount=g):(l=s.reader.data(u),l=l.map(function(e){return new h(e)})),e.items.omitChangeEvent=!0,d=0;d<g;d++)d>=n&&d<n+r?e.items.splice(d,1,l[d-n]):e.items[d]||e.items.splice(d,0,{notFetched:!0});e.items.omitChangeEvent=!1,s._updateRangePristineData(e),s._fetchingGroupItems=!1,e.countAdded||(s._serverGroupsTotal+=g,e.countAdded=!0),s.range(t,r,i,"expandGroup"),(o>=s._currentRequestTimeStamp||!s._skipRequestsInProgress)&&s.trigger(Ae,{})}},findSubgroups:function(e){var t=this._group.map(function(e){return e.field}).indexOf(e.field);return this._group.slice(t+1,this._group.length)},_composeItemsFilter:function(e,t){var r,i=this.filter()||{logic:"and",filters:[]};if(i=_e(!0,{},i),i.filters.push({field:e.field,operator:"eq",value:e.value}),t)for(r=0;r<t.length;r++)i.filters.push({field:t[r].field,operator:"eq",value:t[r].value});return i},_updateRangePristineData:function(e){var t,r,i,n,a,s,o,u,l=this,g=l._ranges,d=g.length;for(o=0;o<d;o++){for(i=g[o],n=i.data.length,a=[],t=null,u=0;u<n&&(r=i.data[u],a.push(u),!(r.uid===e.uid||r.hasSubgroups&&r.items.length&&l._containsSubGroup(r,e,a)));u++)a.pop();if(a.length){for(t=g[o].pristineData;a.length>1;)s=a.splice(0,1)[0],t=t[s].items;t[a[0]]=l._cloneGroup(e);break}}},_containsSubGroup:function(e,t,r){var i,n,a=this,s=e.items.length;if(e.hasSubgroups&&s)for(n=0;n<s;n++){if(i=e.items[n],r.push(n),i.uid===t.uid)return!0;if(i.hasSubgroups&&i.items.length)return a._containsSubGroup(i,t,r);r.pop()}},_cloneGroup:function(e){var t=this;return e="function"==typeof e.toJSON?e.toJSON():e,e.items&&e.items.length&&(e.items=e.items.map(function(e){return t._cloneGroup(e)})),e},_setFilterTotal:function(e,r){var i=this;i.options.serverFiltering||(e!==t?i._total=e:r&&(i._total=i._data.length))},fetch:function(e){var t=this,r=function(r){r!==!0&&Fe(e)&&e.call(t)};return this._query().done(r)},_query:function(e){var t=this;return t.query(_e({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var t=this,r=t.page(),i=t.total();if(e=e||{},r&&!(i&&r+1>t.totalPages()))return t._skip=t._currentRangeStart=r*t.take(),r+=1,e.page=r,t._query(e),r},prev:function(e){var t=this,r=t.page();if(e=e||{},r&&1!==r)return t._skip=t._currentRangeStart=t._skip-t.take(),r-=1,e.page=r,t._query(e),r},page:function(e){var r,i,n=this;return e!==t?(e=Qe.max(Qe.min(Qe.max(e,1),n.totalPages()),1),i=n.take(),n._isGroupPaged()?(e-=1,n.range(e*i,i,null,"page"),t):(n._query(n._pageableQueryOptions({page:e})),t)):(r=n.skip(),r!==t?Qe.round((r||0)/(n.take()||1))+1:t)},pageSize:function(e){var r=this;return e!==t?(r._query(r._pageableQueryOptions({pageSize:e,page:1})),t):r.take()},sort:function(e){var r=this;return e!==t?(r.trigger("sort"),r._query({sort:e}),t):r._sort},filter:function(e){var r=this;return e===t?r._filter:(r.trigger("reset"),r._query({filter:e,page:1}),t)},group:function(e){var r=this,i={group:e};return r._groupPaging&&(i.page=1),e!==t?(r._query(i),t):r._group},getGroupsFlat:function(e){var t,r,i,n=[];for(t=0,r=e.length;t<r;t++)i=e[t],i.hasSubgroups&&(n=n.concat(this.getGroupsFlat(i.items))),n.push(i);return n},total:function(){return parseInt(this._total||0,10)},groupsTotal:function(e){var t=this;return t._group.length?t._isServerGrouped()?t._serverGroupsTotal?t._serverGroupsTotal:t._serverGroupsTotal=t.total():t._calculateGroupsTotal(t._ranges.length?t._ranges[0].data:[],e):t.total()},_calculateGroupsTotal:function(e,t,r,i){var n,a,s,o=this;if(r=r||"items",o._group.length&&e){for(n=0,a=e.length,s=0;s<a;s++)n+=o.groupCount(e[s],t,r,i);return o._groupsTotal=n,n}return o._groupsTotal=o._data.length},groupCount:function(e,t,r,i){var n=this,a=0;return e.hasSubgroups&&n._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&(a+=1),e[r].forEach(function(e){a+=n.groupCount(e,t,r,i)})):n._groupsState[e.uid]?((t&&!e.excludeHeader||i)&&a++,a+=e[r]?e[r].length:0):a++,a},countGroupRange:function(e){var t,r=0,i=e.length;for(t=0;t<i;t++)r+=this.groupCount(e[t],!0);return r},aggregate:function(e){var r=this;return e!==t?(r._query({aggregate:e}),t):r._aggregate},aggregates:function(){var e=this._aggregateResult;return ye(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t,r,i={};if(!ye(e))for(t={},Se(e)||(e=[e]),r=0;r<e.length;r++)t[e[r].aggregate]=0,i[e[r].field]=t;return i},_pageableQueryOptions:function(e){return e},_wrapInEmptyGroup:function(e){var t,r,i,n,a=this.group();for(i=a.length-1,n=0;i>=n;i--)r=a[i],t={value:e.get?e.get(r.field):e[r.field],field:r.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(r.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total(),r=e._isGroupPaged()?e.groupsTotal(!0):e.total();return Qe.ceil((r||0)/t)},inRange:function(e,t){var r=this,i=Qe.min(e+t,r.total());return!r.options.serverPaging&&r._data.length>0||r._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,r,i,n){var a,s,o,u,l;return this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,a=this._isGroupPaged()?this.groupsTotal(!0):this.total(),"expandGroup"!==n&&"collapseGroup"!==n||this._updateOuterRangesLength(),e=Qe.min(e||0,a),i=Fe(i)?i:Pe,s=this,o=Qe.max(Qe.floor(e/r),0)*r,u=Qe.min(o+r,a),l=s._findRange(e,Qe.min(e+r,a),i),!l.length&&0!==a||s._fetchingGroupItems?(s._isGroupPaged()&&(s._originalPageSkip=o,s._originalSize=u,o=Qe.max(Qe.floor(s._adjustPageSkip(e,r)/r),0)*r,u=Qe.min(o+r,a)),r===t||s._fetchingGroupItems||(s._isGroupPaged()&&!s._groupRangeExists(o,r)||!s._rangeExists(o,u)?s.prefetch(o,r,function(){e>o&&u<s.total()&&!s._rangeExists(u,Qe.min(u+r,s.total()))?s.prefetch(u,r,function(){s.range(e,r,i)}):s.range(e,r,i)}):o<e&&s.prefetch(u,r,function(){s.range(e,r,i)})),t):(s._processRangeData(l,e,r,s._originalPageSkip||o,s._originalSize||u,{action:n}),s._originalPageSkip=null,s._originalSize=null,i(),t)},_findRange:function(e,r,i){var n,a,s,u,l,g,d,h,f,c,p,_,v,y,S=this,b=S._ranges,k=[],w=S.options,P=w.serverSorting||w.serverPaging||w.serverFiltering||w.serverGrouping||w.serverAggregates,x={take:r-e,skip:e,skipped:0,taken:0,includeParents:!0},F=S._isGroupPaged(),R=F?"outerStart":"start",G=F?"outerEnd":"end";for(a=0,p=b.length;a<p;a++){if(n=b[a],F){if(n.outerStart>=r)return[];if(e>n.outerEnd){x.skipped+=n.outerEnd-(_||0),_=n.outerEnd;continue}if(t!==_&&_!=n.outerStart&&(x.skipped+=n.outerStart-_),x.skipped>x.skip)return[];for(t===_&&e>0&&n.start>0&&(x.skipped=n.outerStart),s=a;;){if(this._findGroupedRange(n.data,k,x,null,i),v=S._calculateGroupsTotal(k,!0,"currentItems"),v>=x.take)return k;if(S._fetchingGroupItems)return[];if(s++,!b[s]||b[s].outerStart!==n.outerEnd)break;n=b[s]}}else if(e>=n[R]&&e<=n[G]){for(c=0,s=a;s<p;s++)if(n=b[s],f=S._flatData(n.data,!0),f.length&&e+c>=n.start&&(g=n.data,d=n.end,P||(w.inPlaceSort?h=S._queryProcess(n.data,{filter:S.filter()}):(y=m(S.group()||[]).concat(o(S.sort()||[])),h=S._queryProcess(n.data,{sort:y,filter:S.filter()})),f=g=h.data,h.total!==t&&(d=h.total)),u=0,e+c>n.start&&(u=e+c-n.start),l=f.length,d>r&&(l-=d-r),c+=l-u,k=S._mergeGroups(k,g,u,l),r<=n.end&&c==r-e))return k;break}_=n.outerEnd}return[]},_getRangesMismatch:function(e){for(var t,r=this,i=r._ranges,n=0,a=0;;){if(t=i[a],!t||t.outerStart>e)break;t.outerEnd!=t.end&&(n=t.outerEnd-t.end),a++}return n},_mergeGroups:function(e,t,r,i){if(this._isServerGrouped()){var n,a=t.toJSON();return e.length&&(n=e[e.length-1]),C(n,a,r,i),e.concat(a)}return e.concat(t.slice(r,i))},_processRangeData:function(e,r,i,n,a,s){var o,u,l,g,d=this;d._pending=t,d._skip=r>d.skip()&&!d._omitPrefetch?Qe.min(a,(d.totalPages()-1)*d.take()):n,d._currentRangeStart=r,d._take=i,o=d.options.serverPaging,u=d.options.serverSorting,l=d.options.serverFiltering,g=d.options.serverAggregates;try{d.options.serverPaging=!0,d._isServerGrouped()||d.group()&&d.group().length||(d.options.serverSorting=!0),d.options.serverFiltering=!0,d.options.serverPaging=!0,d.options.serverAggregates=!0,o&&(d._detachObservableParents(),d._data=e=d._observe(e)),d._process(e,s)}finally{d.options.serverPaging=o,d.options.serverSorting=u,d.options.serverFiltering=l,d.options.serverAggregates=g}},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,r,i){var n=this,a=n._timeStamp();return function(s){var o,u,l,g=!1,d={start:e,end:t,data:[],timestamp:n._timeStamp()};if(n._dequeueRequest(),n.trigger(Be,{response:s,type:"read"}),s=n.reader.parse(s),l=n._readData(s),l.length){for(o=0,u=n._ranges.length;o<u;o++)if(n._ranges[o].start===e){g=!0,d=n._ranges[o],n._isGroupPaged()||(d.pristineData=l,d.data=n._observe(l),d.end=d.start+n._flatData(d.data,!0).length,n._sortRanges());break}g||n._addRange(n._observe(l),e)}n._total=n.reader.total(s),(i||a>=n._currentRequestTimeStamp||!n._skipRequestsInProgress)&&(r&&l.length?r():n.trigger(Ae,{}))}},prefetch:function(e,r,i){var n=this,a=Qe.min(e+r,n.total()),s={take:r,skip:e,page:e/r+1,pageSize:r,sort:n._sort,filter:n._filter,group:n._group,aggregate:n._aggregate};return n._isGroupPaged()&&!n._isServerGrouped()&&n._groupRangeExists(e,a)?(i&&i(),t):(n._isServerGroupPaged()&&!n._groupRangeExists(e,a)||!n._rangeExists(e,a)?(clearTimeout(n._timeout),n._timeout=setTimeout(function(){n._queueRequest(s,function(){n.trigger(je,{type:"read"})?n._dequeueRequest():(n._omitPrefetch&&n.trigger(Le),n.transport.read({data:n._params(s),success:n._prefetchSuccessHandler(e,a,i),error:function(){var e=Ze.call(arguments);n.error.apply(n,e)}}))})},100)):i&&i(),t)},_multiplePrefetch:function(e,t,r){var i=this,n=Qe.min(e+t,i.total()),a={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,n)?r&&r():i.trigger(je,{type:"read"})||i.transport.read({data:i._params(a),success:i._prefetchSuccessHandler(e,n,r,!0)})},_adjustPageSkip:function(e,t){var r,i,n=this,a=n._getPrevRange(e),s=n.total();if(a){if(i=n._getRangesMismatch(e),!i)return e;e-=i}if(r=Qe.max(Qe.floor(e/t),0)*t,r>s)for(;;)if(r-=t,r<s)break;return r},_getNextRange:function(e){var t,r,i=this,n=i._ranges;for(t=0,r=n.length;t<r;t++)if(n[t].start<=e&&n[t].end>=e)return n[t]},_getPrevRange:function(e){var t,r,i=this,n=i._ranges,a=n.length;for(t=a-1;t>=0;t--)if(n[t].outerStart<=e){r=n[t];break}return r},_rangeExists:function(e,t){var r,i,n=this,a=n._ranges;for(r=0,i=a.length;r<i;r++)if(a[r].start<=e&&a[r].end>=t)return!0;return!1},_groupRangeExists:function(e,t){var r,i,n,a=this,s=a._ranges,o=0,u=a.groupsTotal(!0);for(t>u&&!a._isServerGrouped()&&(t=u),r=0,i=s.length;r<i;r++)n=s[r],n.outerStart<=e&&n.outerEnd>=e?o+=n.outerEnd-e:n.outerStart<=t&&n.outerEnd>=t&&(o+=t-n.outerStart);return o>=t-e},_getCurrentRangeSpan:function(){var e,t,r=this,i=r._ranges,n=r.currentRangeStart(),a=n+(r.take()||0),s=[],o=i.length;for(t=0;t<o;t++)e=i[t],(e.start<=n&&e.end>=n||e.start>=n&&e.start<=a)&&s.push(e);return s},_removeModelFromRanges:function(e){var t,r,i,n=this;for(r=0,i=this._ranges.length;r<i;r++)t=this._ranges[r],n._removeModelFromRange(t,e);n._updateRangesLength()},_removeModelFromRange:function(e,t){this._eachItem(e.data,function(e){var r,i;if(e)for(r=0;r<e.length;r++)if(i=e[r],i.uid&&i.uid==t.uid){[].splice.call(e,r,1);break}})},_insertModelInRange:function(e,t){var r,i,n=this,a=n._ranges||[],s=a.length;for(i=0;i<s;i++)if(r=a[i],r.start<=e&&r.end>=e){n._getByUid(t.uid,r.data)||(n._isServerGrouped()?r.data.splice(e,0,n._wrapInEmptyGroup(t)):r.data.splice(e,0,t));break}n._updateRangesLength()},_updateRangesLength:function(){var e,t,r,i=this,n=i._ranges||[],a=n.length,s=!1,o=0,u=0;for(r=0;r<a;r++)t=n[r],e=i._isGroupPaged()?t.data.length:i._flatData(t.data,!0).length,u=e-Qe.abs(t.end-t.start),s||0===u?s&&(t.start+=o,t.end+=o):(s=!0,o=u,t.end+=o)},_updateOuterRangesLength:function(){var e,t,r,i,n=this,a=n._ranges||[],s=a.length,o=0;for(t=0;t<s;t++)e=a[t],i=n._isGroupPaged()?n._calculateGroupsTotal(e.data,!0,"items",!0):n._flatData(e.data,!0).length,r?(r.end!=e.start&&(o=e.start-r.end),e.outerStart=r.outerEnd+o,o=0):e.outerStart=e.start,e.outerEnd=e.outerStart+i,r=e}}),de={},de.create=function(t,r,i){var n,a=t.transport?e.extend({},t.transport):null;return a?(a.read=typeof a.read===qe?{url:a.read}:a.read,"jsdo"===t.type&&(a.dataSource=i),t.type&&(xe.data.transports=xe.data.transports||{},xe.data.schemas=xe.data.schemas||{},xe.data.transports[t.type]?ve(xe.data.transports[t.type])?a=_e(!0,{},xe.data.transports[t.type],a):n=new xe.data.transports[t.type](_e(a,{data:r})):xe.logToConsole("Unknown DataSource transport type '"+t.type+"'.\nVerify that registration scripts for this type are included after Kendo UI on the page.","warn"),t.schema=_e(!0,{},xe.data.schemas[t.type],t.schema)),n||(n=Fe(a.read)?a:new oe(a))):n=new se({data:t.data||[]}),n},ge.create=function(e){(Se(e)||e instanceof at)&&(e={data:e});var r,i,n,a=e||{},s=a.data,o=a.fields,u=a.table,l=a.select,g={};if(s||!o||a.transport||(u?s=V(u,o):l&&(s=J(l,o),a.group===t&&s[0]&&s[0].optgroup!==t&&(a.group="optgroup"))),xe.data.Model&&o&&(!a.schema||!a.schema.model)){for(r=0,i=o.length;r<i;r++)n=o[r],n.type&&(g[n.field]=n);ye(g)||(a.schema=_e(!0,a.schema,{model:{fields:g}}))}return a.data=s,l=null,a.select=null,u=null,a.table=null,a instanceof ge?a:new ge(a)},he=ee.define({idField:"id",init:function(e){var t,r=this,i=r.hasChildren||e&&e.hasChildren,n="items",a={};xe.data.Model.fn.init.call(r,e),typeof r.children===qe&&(n=r.children),a={schema:{data:n,model:{hasChildren:i,id:r.idField,fields:r.fields}}},typeof r.children!==qe&&_e(a,r.children),a.data=e,i||(i=a.schema.data),typeof i===qe&&(i=xe.getter(i)),Fe(i)&&(t=i.call(r,r),r.hasChildren=(!t||0!==t.length)&&!!t),r._childrenOptions=a,r.hasChildren&&r._initChildren(),r._loaded=!(!e||!e._loaded)},_initChildren:function(){var e,t,r,i=this;i.children instanceof fe||(e=i.children=new fe(i._childrenOptions),t=e.transport,r=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||"id"]=i.id,r&&(e=r.call(i,e,t)),e},e.parent=function(){return i},e.bind(Ae,function(e){e.node=e.node||i,i.trigger(Ae,e)}),e.bind(Me,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(Me,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||"items"]=this.children.data();
},_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var r,i,n={},a="_query";return this.hasChildren?(this._initChildren(),r=this.children,n[this.idField||"id"]=this.id,this._loaded||(r._data=t,a="read"),r.one(Ae,me(this._childrenLoaded,this)),this._matchFilter&&(n.filter={field:"_matchFilter",operator:"eq",value:!0}),i=r[a](n)):this.loaded(!0),i||e.Deferred().resolve().promise()},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return ee.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),fe=ge.extend({init:function(e){var t=he.define({children:e});e.filter&&!e.serverFiltering&&(this._hierarchicalFilter=e.filter,e.filter=null),ge.fn.init.call(this,_e(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(Me,function(t){e.trigger(Me,t)})},read:function(e){var t=ge.fn.read.call(this,e);return this._hierarchicalFilter&&(this._data&&this._data.length>0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=g(this.options.filter),this._hierarchicalFilter=null)),t},remove:function(e){var t,r=e.parentNode(),i=this;return r&&r._initChildren&&(i=r.children),t=ge.fn.remove.call(i,e),r&&!i.data().length&&(r.hasChildren=!1),t},success:Q("success"),data:Q("data"),insert:function(e,t){var r=this.parent();return r&&r._initChildren&&(r.hasChildren=!0,r._initChildren()),ge.fn.insert.call(this,e,t)},filter:function(e){return e===t?this._filter:(!this.options.serverFiltering&&this._markHierarchicalQuery(e)&&(e={logic:"or",filters:[e,{field:"_matchFilter",operator:"equals",value:!0}]}),this.trigger("reset"),this._query({filter:e,page:1}),t)},_markHierarchicalQuery:function(t){var r,i,n,a,o,u=this.options.accentFoldingFiltering;return t=u?e.extend({},g(t),{accentFoldingFiltering:u}):g(t),t&&0!==t.filters.length?(r=s.filterExpr(t),n=r.fields,a=r.operators,i=o=Function("d, __f, __o","return "+r.expression),(n.length||a.length)&&(o=function(e){return i(e,n,a)}),this._updateHierarchicalFilter(o),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(e){var t,r,i=this._data,n=!1;for(r=0;r<i.length;r++)t=i[r],t.hasChildren?(t._matchFilter=t.children._updateHierarchicalFilter(e),t._matchFilter||(t._matchFilter=e(t))):t._matchFilter=e(t),t._matchFilter&&(n=!0);return n},_find:function(e,t){var r,i,n,a,s=this._data;if(s){if(n=ge.fn[e].call(this,t))return n;for(s=this._flatData(this._data),r=0,i=s.length;r<i;r++)if(a=s[r].children,a instanceof fe&&(n=a[e](t)))return n}},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}}),fe.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},r=t.data,i=t.fields,n=t.list;return r&&r._dataSource?r._dataSource:(r||!i||t.transport||n&&(r=W(n,i)),t.data=r,t instanceof fe?t:new fe(t))},ce=xe.Observable.extend({init:function(e,t,r){xe.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!r;var i=this;e.bind("change",function(){i._change()}),e.bind("reset",function(){i._reset()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var r=this.pageSize,i=!0;return e>=this.total()?(this.trigger("endreached",{index:e}),null):this.useRanges?this.useRanges?((e<this.dataOffset||e>=this.skip+r)&&(i=this.range(Math.floor(e/r)*r)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),i?this.dataSource.at(e-this.dataOffset):(this.trigger("endreached",{index:e}),null)):t:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,r=e.skip-e.viewSize+t,i=Qe.max(Qe.floor(r/t),0)*t;this.offset=r,this.dataSource.prefetch(i,t,function(){e._goToRange(r,!0)})},range:function(e,t){if(this.offset===e)return!0;var r=this,i=this.pageSize,n=Qe.max(Qe.floor(e/i),0)*i,a=this.dataSource;return t&&(n+=i),a.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):!this.prefetch||(a.prefetch(n,i,function(){r.offset=e,r._recalculate(),r._goToRange(e,!0)}),!1)},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,r=this.skip+t,i=this.dataSource;i.inRange(r,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:r,take:t}),i.prefetch(r,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:r,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,r=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+r-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-r,this.nextFullRange=i,this.previousMidRange=t-r,this.previousFullRange=i-e}}),pe=xe.Observable.extend({init:function(e,t){var r=this;xe.Observable.fn.init.call(r),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new ce(e,3*t),this.buffer.bind({endreached:function(e){r.trigger("endreached",{index:e.index})},prefetching:function(e){r.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){r.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){r._total=0,r.trigger("reset")},resize:function(){r._total=Math.ceil(this.length/r.batchSize),r.trigger("resize",{total:r.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,r,i=this.buffer,n=e*this.batchSize,a=this.batchSize,s=[];for(i.offset>n&&i.at(i.offset-1),r=0;r<a&&(t=i.at(n+r),null!==t);r++)s.push(t);return s},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),_e(!0,xe.data,{readers:{json:le},Query:s,DataSource:ge,HierarchicalDataSource:fe,Node:he,Comparer:te,ObservableObject:X,ObservableArray:at,LazyObservableArray:K,LocalTransport:se,RemoteTransport:oe,Cache:ue,DataReader:le,Model:ee,Buffer:ce,BatchBuffer:pe})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,r){(r||t)()});
//# sourceMappingURL=kendo.data.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.fx.min",["kendo.core.min"],t)}(function(){return function(t,e){function i(t){return parseInt(t,10)}function r(t,e){return i(t.css(e))}function n(t){var e,i=[];for(e in t)i.push(e);return i}function s(t){for(var e in t)L.indexOf(e)!=-1&&Q.indexOf(e)==-1&&delete t[e];return t}function o(t,e){var i,r,n,s,o=[],a={};for(r in e)i=r.toLowerCase(),s=H&&L.indexOf(i)!=-1,!E.hasHW3D&&s&&Q.indexOf(i)==-1?delete e[r]:(n=e[r],s?o.push(r+"("+n+")"):a[r]=n);return o.length&&(a[at]=o.join(" ")),a}function a(t,e){var r,n,s;return H?(r=t.css(at),r==J?"scale"==e?1:0:(n=r.match(RegExp(e+"\\s*\\(([\\d\\w\\.]+)")),s=0,n?s=i(n[1]):(n=r.match(I)||[0,0,0,0,0],e=e.toLowerCase(),A.test(e)?s=parseFloat(n[3]/n[2]):"translatey"==e?s=parseFloat(n[4]/n[2]):"scale"==e?s=parseFloat(n[2]):"rotate"==e&&(s=parseFloat(Math.atan2(n[2],n[1])))),s)):parseFloat(t.css(e))}function c(t){return t.charAt(0).toUpperCase()+t.substring(1)}function l(t,e){var i=h.extend(e),r=i.prototype.directions;P[c(t)]=i,P.Element.prototype[t]=function(t,e,r,n){return new i(this.element,t,e,r,n)},T(r,function(e,r){P.Element.prototype[t+c(r)]=function(t,e,n){return new i(this.element,r,t,e,n)}})}function d(t,i,r,n){l(t,{directions:v,startValue:function(t){return this._startValue=t,this},endValue:function(t){return this._endValue=t,this},shouldHide:function(){return this._shouldHide},prepare:function(t,s){var o,a,c=this,l="out"===this._direction,d=c.element.data(i),u=!(isNaN(d)||d==r);o=u?d:e!==this._startValue?this._startValue:l?r:n,a=e!==this._endValue?this._endValue:l?n:r,this._reverse?(t[i]=a,s[i]=o):(t[i]=o,s[i]=a),c._shouldHide=s[i]===n}})}function u(t,e){var i=C.directions[e].vertical,r=t[i?Y:X]()/2+"px";return _[e].replace("$size",r)}var f,p,h,m,v,x,_,g,y,k,b,w,C=window.kendo,P=C.effects,T=t.each,N=t.extend,z=t.proxy,E=C.support,R=E.browser,H=E.transforms,D=E.transitions,O={scale:0,scalex:0,scaley:0,scale3d:0},F={translate:0,translatex:0,translatey:0,translate3d:0},S=e!==document.documentElement.style.zoom&&!H,I=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,q=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,A=/translatex?$/i,V=/(zoom|fade|expand)(\w+)/,M=/(zoom|fade|expand)/,$=/[xy]$/i,L=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],Q=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],W={rotate:"deg",scale:"",skew:"px",translate:"px"},j=H.css,B=Math.round,U="",G="px",J="none",K="auto",X="width",Y="height",Z="hidden",tt="origin",et="abortId",it="overflow",rt="translate",nt="position",st="completeCallback",ot=j+"transition",at=j+"transform",ct=j+"backface-visibility",lt=j+"perspective",dt="1500px",ut="perspective("+dt+")",ft={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};C.directions=ft,N(t.fn,{kendoStop:function(t,e){return D?P.stopQueue(this,t||!1,e||!1):this.stop(t,e)}}),H&&!D&&(T(Q,function(i,r){t.fn[r]=function(i){if(e===i)return a(this,r);var n=t(this)[0],s=r+"("+i+W[r.replace($,"")]+")";return n.style.cssText.indexOf(at)==-1?t(this).css(at,s):n.style.cssText=n.style.cssText.replace(RegExp(r+"\\(.*?\\)","i"),s),this},t.fx.step[r]=function(e){t(e.elem)[r](e.now)}}),f=t.fx.prototype.cur,t.fx.prototype.cur=function(){return Q.indexOf(this.prop)!=-1?parseFloat(t(this.elem)[this.prop]()):f.apply(this,arguments)}),C.toggleClass=function(t,e,i,r){return e&&(e=e.split(" "),D&&(i=N({exclusive:"all",duration:400,ease:"ease-out"},i),t.css(ot,i.exclusive+" "+i.duration+"ms "+i.ease),setTimeout(function(){t.css(ot,"").css(Y)},i.duration)),T(e,function(e,i){t.toggleClass(i,r)})),t},C.parseEffects=function(t,e){var i={};return"string"==typeof t?T(t.split(" "),function(t,r){var n=!M.test(r),s=r.replace(V,function(t,e,i){return e+":"+i.toLowerCase()}),o=s.split(":"),a=o[1],c={};o.length>1&&(c.direction=e&&n?ft[a].reverse:a),i[o[0]]=c}):T(t,function(t){var r=this.direction;r&&e&&!M.test(t)&&(this.direction=ft[r].reverse),i[t]=this}),i},D&&N(P,{transition:function(e,i,r){var s,a,c,l,d=0,u=e.data("keys")||[];r=N({duration:200,ease:"ease-out",complete:null,exclusive:"all"},r),c=!1,l=function(){c||(c=!0,a&&(clearTimeout(a),a=null),e.removeData(et).dequeue().css(ot,"").css(ot),r.complete.call(e))},r.duration=t.fx?t.fx.speeds[r.duration]||r.duration:r.duration,s=o(e,i),t.merge(u,n(s)),t.hasOwnProperty("uniqueSort")?e.data("keys",t.uniqueSort(u)).height():e.data("keys",t.unique(u)).height(),e.css(ot,r.exclusive+" "+r.duration+"ms "+r.ease).css(ot),e.css(s).css(at),D.event&&(e.one(D.event,l),0!==r.duration&&(d=500)),a=setTimeout(l,r.duration+d),e.data(et,a),e.data(st,l)},stopQueue:function(t,e,i){var r,n=t.data("keys"),s=!i&&n,o=t.data(st);return s&&(r=C.getComputedStyles(t[0],n)),o&&o(),s&&t.css(r),t.removeData("keys").stop(e)}}),p=C.Class.extend({init:function(t,e){var i=this;i.element=t,i.effects=[],i.options=e,i.restore=[]},run:function(e){var i,r,n,a,c,l,d,u=this,f=e.length,p=u.element,h=u.options,m=t.Deferred(),v={},x={};for(u.effects=e,m.done(t.proxy(u,"complete")),p.data("animating",!0),r=0;r<f;r++)for(i=e[r],i.setReverse(h.reverse),i.setOptions(h),u.addRestoreProperties(i.restore),i.prepare(v,x),c=i.children(),n=0,l=c.length;n<l;n++)c[n].duration(h.duration).run();for(d in h.effects)N(x,h.effects[d].properties);for(p.is(":visible")||N(v,{display:p.data("olddisplay")||"block"}),H&&!h.reset&&(a=p.data("targetTransform"),a&&(v=N(a,v))),v=o(p,v),H&&!D&&(v=s(v)),p.css(v).css(at),r=0;r<f;r++)e[r].setup();return h.init&&h.init(),p.data("targetTransform",x),P.animate(p,x,N({},h,{complete:m.resolve})),m.promise()},stop:function(){t(this.element).kendoStop(!0,!0)},addRestoreProperties:function(t){for(var e,i=this.element,r=0,n=t.length;r<n;r++)e=t[r],this.restore.push(e),i.data(e)||i.data(e,i.css(e))},restoreCallback:function(){var t,e,i,r=this.element;for(t=0,e=this.restore.length;t<e;t++)i=this.restore[t],r.css(i,r.data(i))},complete:function(){var e=this,i=0,r=e.element,n=e.options,s=e.effects,o=s.length;for(r.removeData("animating").dequeue(),n.hide&&r.data("olddisplay",r.css("display")).hide(),this.restoreCallback(),S&&!H&&setTimeout(t.proxy(this,"restoreCallback"),0);i<o;i++)s[i].teardown();n.completeCallback&&n.completeCallback(r)}}),P.promise=function(t,e){var i,r,n,s=[],o=new p(t,e),a=C.parseEffects(e.effects);e.effects=a;for(n in a)i=P[c(n)],i&&(r=new i(t,a[n].direction),s.push(r));s[0]?o.run(s):(t.is(":visible")||t.css({display:t.data("olddisplay")||"block"}).css("display"),e.init&&e.init(),t.dequeue(),o.complete())},N(P,{animate:function(i,n,o){var a=o.transition!==!1;delete o.transition,D&&"transition"in P&&a?P.transition(i,n,o):H?i.animate(s(n),{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete}):i.each(function(){var i=t(this),s={};T(L,function(t,o){var a,c,l,d,u,f,p,h=n?n[o]+" ":null;h&&(c=n,o in O&&n[o]!==e?(a=h.match(q),H&&N(c,{scale:+a[0]})):o in F&&n[o]!==e&&(l=i.css(nt),d="absolute"==l||"fixed"==l,i.data(rt)||(d?i.data(rt,{top:r(i,"top")||0,left:r(i,"left")||0,bottom:r(i,"bottom"),right:r(i,"right")}):i.data(rt,{top:r(i,"marginTop")||0,left:r(i,"marginLeft")||0})),u=i.data(rt),a=h.match(q),a&&(f=o==rt+"y"?0:+a[1],p=o==rt+"y"?+a[1]:+a[2],d?(isNaN(u.right)?isNaN(f)||N(c,{left:u.left+f}):isNaN(f)||N(c,{right:u.right-f}),isNaN(u.bottom)?isNaN(p)||N(c,{top:u.top+p}):isNaN(p)||N(c,{bottom:u.bottom-p})):(isNaN(f)||N(c,{marginLeft:u.left+f}),isNaN(p)||N(c,{marginTop:u.top+p})))),!H&&"scale"!=o&&o in c&&delete c[o],c&&N(s,c))}),R.msie&&delete s.scale,i.animate(s,{queue:!1,show:!1,hide:!1,duration:o.duration,complete:o.complete})})}}),P.animatedPromise=P.promise,h=C.Class.extend({init:function(t,e){var i=this;i.element=t,i._direction=e,i.options={},i._additionalEffects=[],i.restore||(i.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(t){return this._additionalEffects.push(t),this},direction:function(t){return this._direction=t,this},duration:function(t){return this._duration=t,this},compositeRun:function(){var t=this,e=new p(t.element,{reverse:t._reverse,duration:t._duration}),i=t._additionalEffects.concat([t]);return e.run(i)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var e,i,r=this,n=r.element,a=0,c=r.restore,l=c.length,d=t.Deferred(),u={},f={},p=r.children(),h=p.length;for(d.done(t.proxy(r,"_complete")),n.data("animating",!0),a=0;a<l;a++)e=c[a],n.data(e)||n.data(e,n.css(e));for(a=0;a<h;a++)p[a].duration(r._duration).run();return r.prepare(u,f),n.is(":visible")||N(u,{display:n.data("olddisplay")||"block"}),H&&(i=n.data("targetTransform"),i&&(u=N(i,u))),u=o(n,u),H&&!D&&(u=s(u)),n.css(u).css(at),r.setup(),n.data("targetTransform",f),P.animate(n,f,{duration:r._duration,complete:d.resolve}),d.promise()},stop:function(){var e=0,i=this.children(),r=i.length;for(e=0;e<r;e++)i[e].stop();return t(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var t,e,i,r=this.element;for(t=0,e=this.restore.length;t<e;t++)i=this.restore[t],r.css(i,r.data(i))},_complete:function(){var e=this,i=e.element;i.removeData("animating").dequeue(),e.restoreCallback(),e.shouldHide()&&i.data("olddisplay",i.css("display")).hide(),S&&!H&&setTimeout(t.proxy(e,"restoreCallback"),0),e.teardown()},setOptions:function(t){N(!0,this.options,t)},children:function(){return[]},shouldHide:t.noop,setup:t.noop,prepare:t.noop,teardown:t.noop,directions:[],setReverse:function(t){return this._reverse=t,this}}),m=["left","right","up","down"],v=["in","out"],l("slideIn",{directions:m,divisor:function(t){return this.options.divisor=t,this},prepare:function(t,e){var i,r=this,n=r.element,s=C._outerWidth,o=C._outerHeight,a=ft[r._direction],c=-a.modifier*(a.vertical?o(n):s(n)),l=c/(r.options&&r.options.divisor||1)+G,d="0px";r._reverse&&(i=t,t=e,e=i),H?(t[a.transition]=l,e[a.transition]=d):(t[a.property]=l,e[a.property]=d)}}),l("tile",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this.options={previous:i}},previousDivisor:function(t){return this.options.previousDivisor=t,this},children:function(){var t=this,e=t._reverse,i=t.options.previous,r=t.options.previousDivisor||1,n=t._direction,s=[C.fx(t.element).slideIn(n).setReverse(e)];return i&&s.push(C.fx(i).slideIn(ft[n].reverse).divisor(r).setReverse(!e)),s}}),d("fade","opacity",1,0),d("zoom","scale",1,.01),l("slideMargin",{prepare:function(t,e){var i,r=this,n=r.element,s=r.options,o=n.data(tt),a=s.offset,c=r._reverse;c||null!==o||n.data(tt,parseFloat(n.css("margin-"+s.axis))),i=n.data(tt)||0,e["margin-"+s.axis]=c?i:i+a}}),l("slideTo",{prepare:function(t,e){var i=this,r=i.element,n=i.options,s=n.offset.split(","),o=i._reverse;H?(e.translatex=o?0:s[0],e.translatey=o?0:s[1]):(e.left=o?0:s[0],e.top=o?0:s[1]),r.css("left")}}),l("expand",{directions:["horizontal","vertical"],restore:[it],prepare:function(t,i){var r=this,n=r.element,s=r.options,o=r._reverse,a="vertical"===r._direction?Y:X,c=n[0].style[a],l=n.data(a),d=parseFloat(l||c),u=B(n.css(a,K)[a]());t.overflow=Z,d=s&&s.reset?u||d:d||u,i[a]=(o?0:d)+G,t[a]=(o?d:0)+G,l===e&&n.data(a,c)},shouldHide:function(){return this._reverse},teardown:function(){var t=this,e=t.element,i="vertical"===t._direction?Y:X,r=e.data(i);r!=K&&r!==U||setTimeout(function(){e.css(i,K).css(i)},0)}}),x={position:"absolute",marginLeft:0,marginTop:0,scale:1},l("transfer",{init:function(t,e){this.element=t,this.options={target:e},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(t,e){var i=this,r=i.element,n=P.box(r),s=P.box(i.options.target),o=a(r,"scale"),c=P.fillScale(s,n),l=P.transformOrigin(s,n);N(t,x),e.scale=1,r.css(at,"scale(1)").css(at),r.css(at,"scale("+o+")"),t.top=n.top,t.left=n.left,t.transformOrigin=l.x+G+" "+l.y+G,i._reverse?t.scale=c:e.scale=c}}),_={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},g={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}},l("turningPage",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this._container=i},prepare:function(t,e){var i=this,r=i._reverse,n=r?ft[i._direction].reverse:i._direction,s=g[n];t.zIndex=1,i._clipInHalf&&(t.clip=u(i._container,C.directions[n].reverse)),t[ct]=Z,e[at]=ut+(r?s.start:s.end),t[at]=ut+(r?s.end:s.start)},setup:function(){this._container.append(this.element)},face:function(t){return this._face=t,this},shouldHide:function(){var t=this,e=t._reverse,i=t._face;return e&&!i||!e&&i},clipInHalf:function(t){return this._clipInHalf=t,this},temporary:function(){return this.element.addClass("temp-page"),this}}),l("staticPage",{directions:m,init:function(t,e,i){h.prototype.init.call(this,t,e),this._container=i},restore:["clip"],prepare:function(t,e){var i=this,r=i._reverse?ft[i._direction].reverse:i._direction;t.clip=u(i._container,r),t.opacity=.999,e.opacity=1},shouldHide:function(){var t=this,e=t._reverse,i=t._face;return e&&!i||!e&&i},face:function(t){return this._face=t,this}}),l("pageturn",{directions:["horizontal","vertical"],init:function(t,e,i,r){h.prototype.init.call(this,t,e),this.options={},this.options.face=i,this.options.back=r},children:function(){var t,e=this,i=e.options,r="horizontal"===e._direction?"left":"top",n=C.directions[r].reverse,s=e._reverse,o=i.face.clone(!0).removeAttr("id"),a=i.back.clone(!0).removeAttr("id"),c=e.element;return s&&(t=r,r=n,n=t),[C.fx(i.face).staticPage(r,c).face(!0).setReverse(s),C.fx(i.back).staticPage(n,c).setReverse(s),C.fx(o).turningPage(r,c).face(!0).clipInHalf(!0).temporary().setReverse(s),C.fx(a).turningPage(n,c).clipInHalf(!0).temporary().setReverse(s)]},prepare:function(t,e){t[lt]=dt,t.transformStyle="preserve-3d",t.opacity=.999,e.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),l("flip",{directions:["horizontal","vertical"],init:function(t,e,i,r){h.prototype.init.call(this,t,e),this.options={},this.options.face=i,this.options.back=r},children:function(){var t,e=this,i=e.options,r="horizontal"===e._direction?"left":"top",n=C.directions[r].reverse,s=e._reverse,o=e.element;return s&&(t=r,r=n,n=t),[C.fx(i.face).turningPage(r,o).face(!0).setReverse(s),C.fx(i.back).turningPage(n,o).setReverse(s)]},prepare:function(t){t[lt]=dt,t.transformStyle="preserve-3d"}}),y=!E.mobileOS.android,k=".km-touch-scrollbar, .km-actionsheet-wrapper",l("replace",{_before:t.noop,_after:t.noop,init:function(e,i,r){h.prototype.init.call(this,e),this._previous=t(i),this._transitionClass=r},duration:function(){throw Error("The replace effect does not support duration setting; the effect duration may be customized through the transition class rule")},beforeTransition:function(t){return this._before=t,this},afterTransition:function(t){return this._after=t,this},_both:function(){return t().add(this._element).add(this._previous)},_containerClass:function(){var t=this._direction,e="k-fx k-fx-start k-fx-"+this._transitionClass;return t&&(e+=" k-fx-"+t),this._reverse&&(e+=" k-fx-reverse"),e},complete:function(e){if(!(!this.deferred||e&&t(e.target).is(k))){var i=this.container;i.removeClass("k-fx-end").removeClass(this._containerClass()).off(D.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),y&&i.css(it,""),this.isAbsolute||this._both().css(nt,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var e,i=this,r=i.element,n=i._previous,s=r.parents().filter(n.parents()).first(),o=i._both(),a=t.Deferred(),c=r.css(nt);return s.length||(s=r.parent()),this.container=s,this.deferred=a,this.isAbsolute="absolute"==c,this.isAbsolute||o.css(nt,"absolute"),y&&(e=s.css(it),s.css(it,"hidden")),D?(r.addClass("k-fx-hidden"),s.addClass(this._containerClass()),this.completeProxy=t.proxy(this,"complete"),s.on(D.event,this.completeProxy),C.animationFrame(function(){r.removeClass("k-fx-hidden").addClass("k-fx-next"),n.css("display","").addClass("k-fx-current"),i._before(n,r),C.animationFrame(function(){s.removeClass("k-fx-start").addClass("k-fx-end"),i._after(n,r)})})):this.complete(),a.promise()},stop:function(){this.complete()}}),b=C.Class.extend({init:function(){var t=this;t._tickProxy=z(t._tick,t),t._started=!1},tick:t.noop,done:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,C.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var t=this;t._started&&(t.tick(),t.done()?(t._started=!1,t.onEnd()):C.animationFrame(t._tickProxy))}}),w=b.extend({init:function(t){var e=this;N(e,t),b.fn.init.call(e)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(t){var e=this,i=e.movable;e.initial=i[e.axis],e.delta=t.location-e.initial,e.duration="number"==typeof t.duration?t.duration:300,e.tick=e._easeProxy(t.ease),e.startDate=new Date,e.start()},_easeProxy:function(t){var e=this;return function(){e.movable.moveAxis(e.axis,t(e.timePassed(),e.initial,e.delta,e.duration))}}}),N(w,{easeOutExpo:function(t,e,i,r){return t==r?e+i:i*(-Math.pow(2,-10*t/r)+1)+e},easeOutBack:function(t,e,i,r,n){return n=1.70158,i*((t=t/r-1)*t*((n+1)*t+n)+1)+e}}),P.Animation=b,P.Transition=w,P.createEffect=l,P.box=function(e){e=t(e);var i=e.offset();return i.width=C._outerWidth(e),i.height=C._outerHeight(e),i},P.transformOrigin=function(t,e){var i=(t.left-e.left)*e.width/(e.width-t.width),r=(t.top-e.top)*e.height/(e.height-t.height);return{x:isNaN(i)?0:i,y:isNaN(r)?0:r}},P.fillScale=function(t,e){return Math.min(t.width/e.width,t.height/e.height)},P.fitScale=function(t,e){return Math.max(t.width/e.width,t.height/e.height)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});
//# sourceMappingURL=kendo.fx.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.userevents.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,o=t.x.location,r=t.y.location,s=n-o,a=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(s*s+a*a)}}function i(e){var t,n,i,o=[],r=e.originalEvent,a=e.currentTarget,c=0;if(e.api)o.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:"api"});else if(e.type.match(/touch/))for(n=r?r.changedTouches:[],t=n.length;c<t;c++)i=n[c],o.push({location:i,event:e,target:i.target,currentTarget:a,id:i.identifier,type:"touch"});else o.push(s.pointers||s.msPointers?{location:r,event:e,target:e.target,currentTarget:a,id:r.pointerId,type:"pointer"}:{id:1,event:e,target:e.target,currentTarget:a,location:e,type:"mouse"});return o}function o(e){for(var t=r.eventMap.up.split(" "),n=0,i=t.length;n<i;n++)e(t[n])}var r=window.kendo,s=r.support,a=r.Class,c=r.Observable,u=e.now,l=e.extend,h=s.mobileOS,p=h&&h.android,d=800,f=300,v=s.browser.msie?5:0,g="press",_="hold",m="select",T="start",y="move",k="end",E="cancel",x="tap",D="doubleTap",M="release",w="gesturestart",b="gesturechange",A="gestureend",C="gesturetap",I={api:0,touch:0,mouse:9,pointer:9},S=!s.touch||s.mouseAndTouchPresent,P=a.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=u()},move:function(e){var t=this,n=e["page"+t.axis],i=u(),o=i-t.timeStamp||1;!n&&p||(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/o,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),L=a.extend({init:function(e,t,n){l(this,{x:new P("X",n.location),y:new P("Y",n.location),type:n.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||I[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,"_hold"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_tap:function(e){var t=this;t.userEvents._clicks++,1==t.userEvents._clicks&&(t._clickTimeout=setTimeout(function(){1==t.userEvents._clicks?t._trigger(x,e):t._trigger(D,e),t.userEvents._clicks=0},f))},_hold:function(){this._trigger(_,this.pressEvent)},move:function(e){var t=this,n="api"!==e.type&&t.userEvents._shouldNotMove;if(!t._finished&&!n){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(X.current&&X.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(y,e)}},end:function(e){this.endTime=u(),this._finished||(this._finished=!0,this._trigger(M,e),this._moved?this._trigger(k,e):this.useClickAsTap||(this.supportDoubleTap?this._tap(e):this._trigger(x,e)),clearTimeout(this._holdTimeout),this.dispose())},dispose:function(){var t=this.userEvents,n=t.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),n.splice(e.inArray(this,n),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=u(),this._moved=!0,this._trigger(T,e)},_trigger:function(e,t){var n=this,i=t.event,o={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,o)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.threshold}}),X=c.extend({init:function(t,n){var i,a,u,h,p=this,f=r.guid();n=n||{},i=p.filter=n.filter,p.threshold=n.threshold||v,p.minHold=n.minHold||d,p.touches=[],p._maxTouches=n.multiTouch?2:1,p.allowSelection=n.allowSelection,p.captureUpIfMoved=n.captureUpIfMoved,p.useClickAsTap=!n.fastTap&&!s.delayedClick(),p.eventNS=f,p._clicks=0,p.supportDoubleTap=n.supportDoubleTap,t=e(t).handler(p),c.fn.init.call(p),l(p,{element:t,surface:e(n.global&&S?t[0].ownerDocument.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),p.surface.handler(p).on(r.applyEventMap("move",f),"_move").on(r.applyEventMap("up cancel",f),"_end"),t.on(r.applyEventMap("down",f),i,"_start"),p.useClickAsTap&&t.on(r.applyEventMap("click",f),i,"_click"),(s.pointers||s.msPointers)&&(s.browser.version<11?(a="pinch-zoom double-tap-zoom",t.css("-ms-touch-action",n.touchAction&&"none"!=n.touchAction?a+" "+n.touchAction:a)):t.css("touch-action",n.touchAction||"none")),n.preventDragEvent&&t.on(r.applyEventMap("dragstart",f),r.preventDefault),t.on(r.applyEventMap("mousedown",f),i,{root:t},"_select"),p.captureUpIfMoved&&s.eventCapture&&(u=p.surface[0],h=e.proxy(p.preventIfMoving,p),o(function(e){u.addEventListener(e,h,!0)})),p.bind([g,_,x,D,T,y,k,M,E,w,b,A,C,m],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&s.eventCapture&&(e=t.surface[0],o(function(n){e.removeEventListener(n,t.preventIfMoving)})),t.element.kendoDestroy(t.eventNS),t.surface.kendoDestroy(t.eventNS),t.element.removeData("handler"),t.surface.removeData("handler"),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget)},capture:function(){X.current=this},cancel:function(){this._disposeAll(),this.trigger(E)},notify:function(e,t){var i=this,o=i.touches;if(this._isMultiTouch()){switch(e){case y:e=b;break;case k:e=A;break;case x:e=C}l(t,{touches:o},n(o[0],o[1]))}return this.trigger(e,l(t,{type:e}))},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){this.allowSelection&&!this.trigger(m,{event:e})||e.preventDefault()},_start:function(t){var n,o,r=this,s=0,a=r.filter,c=i(t),u=c.length,l=t.which;if(!(l&&l>1||r._maxTouchesReached()))for(X.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();s<u&&!r._maxTouchesReached();s++)o=c[s],n=a?e(o.currentTarget):r.element,n.length&&(o=new L(r,n,o),r.touches.push(o),o.press(),r._isMultiTouch()&&r.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_click:function(t){var n={touch:{initialTouch:t.target,target:e(t.currentTarget),endTime:u(),x:{location:t.pageX,client:t.clientX},y:{location:t.pageY,client:t.clientY}},x:t.pageX,y:t.pageY,target:e(t.currentTarget),event:t,type:"tap"};this.trigger("tap",n)&&t.preventDefault()},_eachTouch:function(e,t){var n,o,r,s,a=this,c={},u=i(t),l=a.touches;for(n=0;n<l.length;n++)o=l[n],c[o.id]=o;for(n=0;n<u.length;n++)r=u[n],s=c[r.id],s&&s[e](r)},_apiCall:function(t,n,i,o){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:e(o||this.element)[0],stopPropagation:e.noop,preventDefault:e.noop})}});X.defaultThreshold=function(e){v=e},X.minHold=function(e){d=e},r.getTouches=i,r.touchDelta=n,r.UserEvents=X}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.userevents.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.mobile.scroller.min",["kendo.fx.min","kendo.draganddrop.min"],e)}(function(){return function(e,i){var n=window.kendo,t=n.mobile,s=n.effects,o=t.ui,l=e.proxy,a=e.extend,r=o.Widget,c=n.Class,h=n.ui.Movable,u=n.ui.Pane,d=n.ui.PaneDimensions,m=s.Transition,f=s.Animation,p=Math.abs,v=500,b=.7,x=.96,y=10,T=55,w=.5,_=5,g="km-scroller-release",E="km-scroller-refresh",C="pull",k="change",S="resize",z="scroll",M=2,A=f.extend({init:function(e){var i=this;f.fn.init.call(i),a(i,e),i.userEvents.bind("gestureend",l(i.start,i)),i.tapCapture.bind("press",l(i.cancel,i))},enabled:function(){return this.movable.scale<this.dimensions.minScale},done:function(){return this.dimensions.minScale-this.movable.scale<.01},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),O=f.extend({init:function(e){var i=this;f.fn.init.call(i),a(i,e,{transition:new m({axis:e.axis,movable:e.movable,onEnd:function(){i._end()}})}),i.tapCapture.bind("press",function(){i.cancel()}),i.userEvents.bind("end",l(i.start,i)),i.userEvents.bind("gestureend",l(i.start,i)),i.userEvents.bind("tap",l(i.onEnd,i))},onCancel:function(){this.transition.cancel()},freeze:function(e){var i=this;i.cancel(),i._moveTo(e)},onEnd:function(){var e=this;e.paneAxis.outOfBounds()?e._snapBack():e._end()},done:function(){return p(this.velocity)<1},start:function(e){var i,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n.transition._started?(n.transition.cancel(),n.velocity=Math.min(e.touch[n.axis].velocity*n.velocityMultiplier,T),f.fn.start.call(n)):n._snapBack():(i=e.touch.id===M?0:e.touch[n.axis].velocity,n.velocity=Math.max(Math.min(i*n.velocityMultiplier,T),-T),n.tapCapture.captureNext(),f.fn.start.call(n)))},tick:function(){var e=this,i=e.dimension,n=e.paneAxis.outOfBounds()?w:e.friction,t=e.velocity*=n,s=e.movable[e.axis]+t;!e.elastic&&i.outOfBounds(s)&&(s=Math.max(Math.min(s,i.max),i.min),e.velocity=0),e.movable.moveAxis(e.axis,s)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var e=this,i=e.dimension,n=e.movable[e.axis]>i.max?i.max:i.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:v,ease:m.easeOutExpo})}}),H=f.extend({init:function(e){var i=this;n.effects.Animation.fn.init.call(this),a(i,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return p(this.offset.y)<_&&p(this.offset.x)<_},onEnd:function(){this.moveTo(this.destination),this.callback&&this.callback.call()},setCoordinates:function(e,i){this.offset={},this.origin=e,this.destination=i},setCallback:function(e){e&&n.isFunction(e)?this.callback=e:e=i},_updateCoordinates:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}),B=c.extend({init:function(i){var n=this,t="x"===i.axis,s=e('<div class="km-touch-scrollbar km-'+(t?"horizontal":"vertical")+'-scrollbar" />');a(n,i,{element:s,elementSize:0,movable:new h(s),scrollMovable:i.movable,alwaysVisible:i.alwaysVisible,size:t?"width":"height"}),n.scrollMovable.bind(k,l(n.refresh,n)),n.container.append(s),i.alwaysVisible&&n.show()},refresh:function(){var e=this,i=e.axis,n=e.dimension,t=n.size,s=e.scrollMovable,o=t/n.total,l=Math.round(-s[i]*o),a=Math.round(t*o);o>=1?this.element.css("display","none"):this.element.css("display",""),l+a>t?a=t-l:l<0&&(a+=l,l=0),e.elementSize!=a&&(e.element.css(e.size,a+"px"),e.elementSize=a),e.movable.moveAxis(i,l)},show:function(){this.element.css({opacity:b,visibility:"visible"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})}}),R=r.extend({init:function(t,s){var o,c,m,f,v,b,x,y,T,w=this;return r.fn.init.call(w,t,s),t=w.element,(w._native=w.options.useNative&&n.support.hasNativeScrolling)?(t.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),a(w,{scrollElement:t,fixedContainer:t.children().first()}),i):(t.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>'),o=t.children().eq(1),c=new n.TapCapture(t),m=new h(o),f=new d({element:o,container:t,forcedEnabled:w.options.zoom}),v=this.options.avoidScrolling,b=new n.UserEvents(t,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:w.options.zoom,supportDoubleTap:w.options.supportDoubleTap,start:function(i){f.refresh();var n=p(i.x.velocity),t=p(i.y.velocity),s=2*n>=t,o=e.contains(w.fixedContainer[0],i.event.target),l=2*t>=n;!o&&!v(i)&&w.enabled&&(f.x.enabled&&s||f.y.enabled&&l)?b.capture():b.cancel()}}),x=new u({movable:m,dimensions:f,userEvents:b,elastic:w.options.elastic}),y=new A({movable:m,dimensions:f,userEvents:b,tapCapture:c}),T=new H({moveTo:function(e){w.scrollTo(e.x,e.y)}}),m.bind(k,function(){w.scrollTop=-m.y,w.scrollLeft=-m.x,w.trigger(z,{scrollTop:w.scrollTop,scrollLeft:w.scrollLeft})}),w.options.mousewheelScrolling&&t.on("DOMMouseScroll mousewheel",l(this,"_wheelScroll")),a(w,{movable:m,dimensions:f,zoomSnapBack:y,animatedScroller:T,userEvents:b,pane:x,tapCapture:c,pulled:!1,enabled:!0,scrollElement:o,scrollTop:0,scrollLeft:0,fixedContainer:t.children().first()}),w._initAxis("x"),w._initAxis("y"),w._wheelEnd=function(){w._wheel=!1,w.userEvents.end(0,w._wheelY)},f.refresh(),w.options.pullToRefresh&&w._initPullToRefresh(),i)},_wheelScroll:function(e){if(!e.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var i=n.wheelDeltaY(e);i&&(this._wheelY+=i,this.userEvents.move(0,this._wheelY)),e.preventDefault()}},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,i){this.dimensions.y.virtualSize(e,i)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}},events:[C,z,S],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var i=this;r.fn.setOptions.call(i,e),e.pullToRefresh&&i._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,i){this._native?(n.scrollLeft(this.scrollElement,p(e)),this.scrollElement.scrollTop(p(i))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:i}))},animatedScrollTo:function(e,i,n){var t,s;this._native?this.scrollTo(e,i):(t={x:this.movable.x,y:this.movable.y},s={x:e,y:i},this.animatedScroller.setCoordinates(t,s),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(E),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){r.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=n.template(e.options.messages.pullTemplate),e.releaseTemplate=n.template(e.options.messages.releaseTemplate),e.refreshTemplate=n.template(e.options.messages.refreshTemplate),e.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span><span class="km-template">'+e.pullTemplate({})+"</span></span>"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(".km-template"),e.pane.y.bind("change",l(e._paneChange,e)),e.userEvents.bind("end",l(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(g).addClass(E),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger("pull"))},_paneChange:function(){var e=this;e.movable.y/w>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(E).addClass(g),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(g),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var i=this,n=i.movable,t=i.dimensions[e],s=i.tapCapture,o=i.pane[e],l=new B({axis:e,movable:n,dimension:t,container:i.element,alwaysVisible:i.options.visibleScrollHints});t.bind(k,function(){l.refresh()}),o.bind(k,function(){l.show()}),i[e+"inertia"]=new O({axis:e,paneAxis:o,movable:n,tapCapture:s,userEvents:i.userEvents,dimension:t,elastic:i.options.elastic,friction:i.options.friction||x,velocityMultiplier:i.options.velocityMultiplier||y,end:function(){l.hide(),i.trigger("scrollEnd",{axis:e,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft})}})}});o.plugin(R)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,i,n){(n||i)()});
//# sourceMappingURL=kendo.mobile.scroller.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.list.min",["kendo.data.min","kendo.popup.min"],e)}(function(){return function(e,t){function i(e,i){return e!==t&&""!==e&&null!==e&&("boolean"===i?("boolean"!=typeof e&&(e="true"===(""+e).toLowerCase()),e=!!e):"number"===i?e=+e:"string"===i&&(e=""+e)),e}function a(e){return e[e.length-1]}function n(e){var t=e.selectedIndex;return t>-1?e.options[t]:{}}function s(e,t){var i,a,n,s,r=t.length,l=e.length,o=[],u=[];if(l)for(n=0;n<l;n++){for(i=e[n],a=!1,s=0;s<r;s++)if(i===t[s]){a=!0,o.push({index:n,item:i});break}a||u.push(i)}return{changed:o,unchanged:u}}function r(t){return!(!t||e.isEmptyObject(t))&&!(t.filters&&!t.filters.length)}function l(t,i){var a,n=!1;return t.filters&&(a=e.grep(t.filters,function(e){return n=l(e,i),e.filters?e.filters.length:e.field!=i}),n||t.filters.length===a.length||(n=!0),t.filters=a),n}var o,u,c=window.kendo,d=c.ui,h=c._outerHeight,f=/^\d+(\.\d+)?%$/i,p=d.Widget,_=c.keys,g=c.support,m=c.htmlEncode,v=c._activeElement,b=c._outerWidth,x=c.data.ObservableArray,I="id",w="change",y="k-state-focused",S="k-state-hover",T="k-i-loading",F=".k-group-header",V=".k-item",C="_label",k="open",D="close",H="cascade",B="select",E="selected",L="requestStart",P="requestEnd",G="blur",W="focus",A="focusout",q=e.extend,N=e.proxy,O=e.isArray,M=g.browser,z="k-hidden",R="width",U=M.msie,j=/"/g,$={ComboBox:["DropDownList","MultiColumnComboBox"],DropDownList:["ComboBox","MultiColumnComboBox"],MultiColumnComboBox:["ComboBox","DropDownList"]},Q=c.ui.DataBoundWidget.extend({init:function(t,i){var a,n=this,s=n.ns;p.fn.init.call(n,t,i),t=n.element,i=n.options,n._isSelect=t.is(B),n._isSelect&&n.element[0].length&&(i.dataSource||(i.dataTextField=i.dataTextField||"text",i.dataValueField=i.dataValueField||"value")),n.ul=e('<ul unselectable="on" class="k-list k-reset"/>').attr({tabIndex:-1,"aria-hidden":!0}),n.list=e("<div class='k-list-container'/>").append(n.ul).on("mousedown"+s,N(n._listMousedown,n)),a=t.attr(I),a||(a=c.guid()),n.list.attr(I,a+"-list"),n.ul.attr(I,a+"_listbox"),i.columns&&i.columns.length&&(n.ul.removeClass("k-list").addClass("k-grid-list"),n._columnsHeader()),n._header(),n._noData(),n._footer(),n._accessors(),n._initValue()},options:{valuePrimitive:!1,footerTemplate:"",headerTemplate:"",noDataTemplate:!0,messages:{noData:"No data found.",clear:"clear"}},setOptions:function(e){p.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable),e.columns&&e.columns.length&&this._columnsHeader(),this._header(),this._noData(),this._footer(),this._renderFooter(),this._renderNoData()},focus:function(){this._focused.focus()},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},_header:function(){var i,a=this,n=e(a.header),s=a.options.headerTemplate;return this._angularElement(n,"cleanup"),c.destroy(n),n.remove(),s?(i="function"!=typeof s?c.template(s):s,n=e(i({})),a.header=n[0]?n:null,a.list.prepend(n),this._angularElement(a.header,"compile"),t):(a.header=null,t)},_columnsHeader:function(){var t,i,a,n,s,r,l,o,u,d,h,p=this,_=e(p.columnsHeader);for(this._angularElement(_,"cleanup"),c.destroy(_),_.remove(),t="<div class='k-grid-header'><div class='k-grid-header-wrap'><table role='presentation'>",i="<colgroup>",a="<tr>",n=0;n<this.options.columns.length;n++)s=this.options.columns[n],r=s.title||s.field||"",l=s.headerTemplate||r,o="function"!=typeof l?c.template(l):l,u=s.width,d=parseInt(u,10),h="",u&&!isNaN(d)&&(h+="style='width:",h+=d,h+=f.test(u)?"%":"px",h+=";'"),i+="<col "+h+"/>",a+="<th class='k-header'>",a+=o(s),a+="</th>";i+="</colgroup>",a+="</tr>",t+=i,t+=a,t+="</table></div></div>",p.columnsHeader=_=e(t),p.list.prepend(_),this._angularElement(p.columnsHeader,"compile")},_noData:function(){var i=this,a=e(i.noData),n=i.options.noDataTemplate===!0?i.options.messages.noData:i.options.noDataTemplate;return i.angular("cleanup",function(){return{elements:a}}),c.destroy(a),a.remove(),n?(i.noData=e('<div class="k-nodata" style="display:none"><div></div></div>').appendTo(i.list),i.noDataTemplate="function"!=typeof n?c.template(n):n,t):(i.noData=null,t)},_footer:function(){var i=this,a=e(i.footer),n=i.options.footerTemplate;return this._angularElement(a,"cleanup"),c.destroy(a),a.remove(),n?(i.footer=e('<div class="k-footer"></div>').appendTo(i.list),i.footerTemplate="function"!=typeof n?c.template(n):n,t):(i.footer=null,t)},_listOptions:function(t){var i=this,a=i.options,n=a.virtual,s={change:N(i._listChange,i)},r=N(i._listBound,i),l=i._focused,o=i.element.attr("id"),u=e('label[for="'+i.element.attr("id")+'"]'),d=l.attr("aria-labelledby");return!d&&u.length&&(d=u.attr("id")||i._generateLabelId(u,o||c.guid())),n="object"==typeof n?n:{},t=e.extend({autoBind:!1,selectable:!0,dataSource:i.dataSource,click:N(i._click,i),activate:N(i._activateItem,i),columns:a.columns,deactivate:N(i._deactivateItem,i),dataBinding:function(){i.trigger("dataBinding")},dataBound:r,height:a.height,dataValueField:a.dataValueField,dataTextField:a.dataTextField,groupTemplate:a.groupTemplate,fixedGroupTemplate:a.fixedGroupTemplate,template:a.template,ariaLabel:l.attr("aria-label"),ariaLabelledBy:d},t,n,s),t.template||(t.template="#:"+c.expr(t.dataTextField,"data")+"#"),a.$angular&&(t.$angular=a.$angular),t},_initList:function(){var e=this,t=e._listOptions({selectedItemChange:N(e._listChange,e)});e.listView=e.options.virtual?new c.ui.VirtualList(e.ul,t):new c.ui.StaticList(e.ul,t),e.listView.bind("listBound",N(e._listBound,e)),e._setListValue()},_setListValue:function(e){e=e||this.options.value,e!==t&&this.listView.value(e).done(N(this._updateSelectionState,this))},_updateSelectionState:e.noop,_listMousedown:function(e){this.filterInput&&this.filterInput[0]===e.target||e.preventDefault()},_isFilterEnabled:function(){var e=this.options.filter;return e&&"none"!==e},_hideClear:function(){var e=this;e._clear&&e._clear.addClass(z)},_showClear:function(){this._clear&&this._clear.removeClass(z)},_clearValue:function(){this._clearText(),this._accessor(""),this.listView.value([]),this._isSelect&&(this._customOption=t),this._isFilterEnabled()&&!this.options.enforceMinLength&&(this._filter({word:"",open:!1}),this.options.highlightFirst&&this.listView.focus(0)),this._change()},_clearText:function(){this.text("")},_clearFilter:function(){this.options.virtual||this.listView.bound(!1),this._filterSource()},_filterSource:function(t,i){var a,n,s=this,o=s.options,u=o.filterFields&&t&&t.logic&&t.filters&&t.filters.length,c=s.dataSource,d=q({},c.filter()||{}),h=t||d.filters&&d.filters.length&&!t,f=l(d,o.dataTextField);return this._clearFilterExpressions(d),(t||f)&&s.trigger("filtering",{filter:t})?e.Deferred().reject().promise():(a={filters:[],logic:"and"},u?a.filters.push(t):this._pushFilterExpression(a,t),r(d)&&(a.logic===d.logic?a.filters=a.filters.concat(d.filters):a.filters.push(d)),s._cascading&&this.listView.setDSFilter(a),n=q({},{page:h?1:c.page(),pageSize:h?c.options.pageSize:c.pageSize(),sort:c.sort(),filter:c.filter(),group:c.group(),aggregate:c.aggregate()},{filter:a}),c[i?"read":"query"](c._mergeState(n)))},_pushFilterExpression:function(e,t){r(t)&&""!==t.value&&e.filters.push(t)},_clearFilterExpressions:function(e){var t,i;if(e.filters){for(i=0;i<e.filters.length;i++)"fromFilter"in e.filters[i]&&(t=i);isNaN(t)||e.filters.splice(t,1)}},_angularElement:function(e,t){e&&this.angular(t,function(){return{elements:e}})},_renderNoData:function(){var e=this,t=e.noData;t&&(this._angularElement(t,"cleanup"),t.children(":first").html(e.noDataTemplate({instance:e})),this._angularElement(t,"compile"))},_toggleNoData:function(t){e(this.noData).toggle(t)},_toggleHeader:function(e){var t=this.listView.content.prev(F);t.toggle(e)},_renderFooter:function(){var e=this,t=e.footer;t&&(this._angularElement(t,"cleanup"),t.html(e.footerTemplate({instance:e})),this._angularElement(t,"compile"))},_allowOpening:function(){return this.options.noDataTemplate||this.dataSource.flatView().length},_initValue:function(){var e=this,t=e.options.value;null!==t?e.element.val(t):(t=e._accessor(),e.options.value=t),e._old=t},_ignoreCase:function(){var e,t=this,i=t.dataSource.reader.model;i&&i.fields&&(e=i.fields[t.options.dataTextField],e&&e.type&&"string"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},_filter:function(e){var t,i,a=this,n=a.options,s=e.word,r=n.filterFields,l=n.dataTextField;if(r&&r.length)for(t={logic:"or",filters:[],fromFilter:!0},i=0;i<r.length;i++)this._pushFilterExpression(t,a._buildExpression(s,r[i]));else t=a._buildExpression(s,l);a._open=e.open,a._filterSource(t)},_buildExpression:function(e,t){var i=this,a=i.options,n=a.ignoreCase,s=i.dataSource.options.accentFoldingFiltering;return{value:n?s?e.toLocaleLowerCase(s):e.toLowerCase():e,field:t,operator:a.filter,ignoreCase:n}},_clearButton:function(){var t=this,i=t.options.messages.clear;t._clear||(t._clear=e('<span unselectable="on" class="k-clear-value" title="'+i+'"><span class="k-icon k-i-x"></span></span>').attr({role:"button",tabIndex:-1})),t.options.clearButton||t._clear.remove(),this._hideClear()},search:function(e){var t=this.options;e="string"==typeof e?e:this._inputValue(),clearTimeout(this._typingTimeout),(!t.enforceMinLength&&!e.length||e.length>=t.minLength)&&(this._state="filter",this.listView&&(this.listView._emptySearch=!c.trim(e).length),this._isFilterEnabled()?this._filter({word:e,open:!0}):this._searchByWord(e))},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;p.fn.destroy.call(e),e._unbindDataSource(),e.listView.destroy(),e.list.off(t),e.popup.destroy(),e._form&&e._form.off("reset",e._resetHandler)},dataItem:function(i){var a=this;if(i===t)return a.listView.selectedDataItems()[0];if("number"!=typeof i){if(a.options.virtual)return a.dataSource.getByUid(e(i).data("uid"));i=e(a.items()).index(i)}return a.dataSource.flatView()[i]},_activateItem:function(){var e=this.listView.focus();e&&this._focused.add(this.filterInput).attr("aria-activedescendant",e.attr("id"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr("aria-activedescendant")},_accessors:function(){var e=this,t=e.element,i=e.options,a=c.getter,n=t.attr(c.attr("text-field")),s=t.attr(c.attr("value-field"));!i.dataTextField&&n&&(i.dataTextField=n),!i.dataValueField&&s&&(i.dataValueField=s),e._text=a(i.dataTextField),e._value=a(i.dataValueField)},_aria:function(e){var i,a=this,n=a.options,s=a._focused;n.suggest!==t&&(i="none"===n.filter?n.suggest===!0?"inline":"none":n.suggest===!0?"both":"list",s.attr("aria-autocomplete",i)),e=e?e+" "+a.ul[0].id:a.ul[0].id,s.attr({"aria-owns":e,"aria-controls":e}),a.filterInput&&a.filterInput.length>0&&a.filterInput.attr("aria-controls",e),a.ul.attr("aria-live",a._isFilterEnabled()?"polite":"off"),a._ariaLabel()},_ariaLabel:function(){var t,i=this,a=i._focused,n=i.element,s=n.attr("id"),r=e('label[for="'+s+'"]'),l=n.attr("aria-label"),o=n.attr("aria-labelledby");a!==n&&(l?a.attr("aria-label",l):o?a.attr("aria-labelledby",o):r.length&&(t=r.attr("id")||i._generateLabelId(r,s||c.guid()),a.attr("aria-labelledby",t)))},_generateLabelId:function(e,t){var i=t+C;return e.attr("id",i),i},_blur:function(){var e=this;e._change(),e.close(),e._userTriggered=!1},_isValueChanged:function(e){return e!==i(this._old,typeof e)},_change:function(){var e,a=this,n=a.selectedIndex,s=a.options.value,r=a.value();a._isSelect&&!a.listView.bound()&&s&&(r=s),a._isValueChanged(r)?e=!0:a._valueBeforeCascade!==t&&a._valueBeforeCascade!==i(a._old,typeof a._valueBeforeCascade)&&a._userTriggered?e=!0:n===t||n===a._oldIndex||a.listView.isFiltered()||(e=!0),e&&(a._valueBeforeCascade=a._old=null===a._old||""===a._old||""===r?r:a.dataItem()?a.options.dataValueField?a.dataItem()[a.options.dataValueField]:a.dataItem():null,a._oldIndex=n,a._typing||a.element.trigger(w),a.trigger(w)),a.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,i=e.options,a=e.element.is("[disabled]");i.enable!==t&&(i.enabled=i.enable),!i.enabled||a?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_dataValue:function(e){var i=this._value(e);return i===t&&(i=this._text(e)),i},_offsetHeight:function(){var t=0,i=this.listView.content.prevAll(":visible");return i.each(function(){var i=e(this);t+=h(i,!0)}),t},_height:function(i){var a,n,s,r=this,l=r.list,o=r.options.height,u=r.popup.visible();if(i||r.options.noDataTemplate){if(n=l.add(l.parent(".k-animation-container")).show(),!l.is(":visible"))return n.hide(),t;o=r.listView.content[0].scrollHeight>o?o:"auto",n.height(o),"auto"!==o&&(a=r._offsetHeight(),s=h(e(r.footer))||0,o=o-a-s),r.listView.content.height(o),u||n.hide()}return o},_openHandler:function(e){this._adjustListWidth(),this.trigger(k)?e.preventDefault():(this._focused.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_adjustListWidth:function(){var e,t,i=this,a=i.list,n=a[0].style.width,s=i.wrapper;if(a.data(R)||!n)return e=window.getComputedStyle?window.getComputedStyle(s[0],null):0,t=parseFloat(e&&e.width)||b(s),e&&M.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),n="border-box"!==a.css("box-sizing")?t-(b(a)-a.width()):t,a.css({fontFamily:s.css("font-family"),width:i.options.autoWidth?"auto":n,minWidth:n,whiteSpace:i.options.autoWidth?"nowrap":"normal"}).data(R,n),!0},_closeHandler:function(e){this.trigger(D)?e.preventDefault():(this._focused.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_focusItem:function(){var e=this.listView,i=!e.focus(),n=a(e.select());n===t&&this.options.highlightFirst&&i&&(n=0),n!==t?e.focus(n):i&&e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(".k-first:first"),i=this.listView.content.prev(F),a=0,n="right";i[0]&&"none"!==i[0].style.display&&("auto"!==e&&(a=c.support.scrollbar()),this.element.parents(".k-rtl").length&&(n="left"),a+=parseFloat(t.css("border-"+n+"-width"),10)+parseFloat(t.children(".k-group").css("padding-"+n),10),i.css("padding-"+n,a))},_calculatePopupHeight:function(e){var t=this._height(this.dataSource.flatView().length||e);this._calculateGroupPadding(t),this._calculateColumnsHeaderPadding(t)},_calculateColumnsHeaderPadding:function(e){var t,i,a;this.options.columns&&this.options.columns.length&&(t=this,i=g.isRtl(t.wrapper),a=c.support.scrollbar(),t.columnsHeader.css(i?"padding-left":"padding-right","auto"!==e?a:0))},_refreshScroll:function(){var e=this.listView,t=e.element.height()>e.content.height();this.options.autoWidth&&e.content.css({overflowX:"hidden",overflowY:t?"scroll":"auto"})},_resizePopup:function(e){this.options.virtual||(this.popup.element.is(":visible")?this._calculatePopupHeight(e):(this.popup.one("open",function(e){return N(function(){this._calculatePopupHeight(e)},this)}.call(this,e)),this.popup.one("activate",N(this._refreshScroll,this))))},_popup:function(){var e=this;e.popup=new d.Popup(e.list,q({},e.options.popup,{anchor:e.wrapper,open:N(e._openHandler,e),close:N(e._closeHandler,e),animation:e.options.animation,isRtl:g.isRtl(e.wrapper),autosize:e.options.autoWidth}))},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_toggle:function(e,i){var a=this,n=g.mobileOS&&(g.touch||g.MSPointers||g.pointers);e=e!==t?e:!a.popup.visible(),i||n||a._focused[0]===v()||(a._prevent=!0,a._focused.focus(),a._prevent=!1),a[e?k:D]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e.value()===i(e._cascadedValue,typeof e.value())||(e._cascadedValue=e.value(),e._cascadeTriggered=!0,e.trigger(H,{userTriggered:e._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(w)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(L,e._requestStartHandler).unbind(P,e._requestEndHandler).unbind("error",e._errorHandler)},requireValueMapper:function(e,t){var i=(e.value instanceof Array?e.value.length:e.value)||(t instanceof Array?t.length:t);if(i&&e.virtual&&"function"!=typeof e.virtual.valueMapper)throw Error("ValueMapper is not provided while the value is being set. See http://docs.telerik.com/kendo-ui/controls/editors/combobox/virtualization#the-valuemapper-function")}});q(Q,{inArray:function(e,t){var i,a,n=t.children;if(!e||e.parentNode!==t)return-1;for(i=0,a=n.length;i<a;i++)if(e===n[i])return i;return-1},unifyType:i}),c.ui.List=Q,d.Select=Q.extend({init:function(e,t){Q.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,i=this;i.options.dataSource=e,i._dataSource(),i.listView.bound()&&(i._initialIndex=null,i.listView._current=null),i.listView.setDataSource(i.dataSource),i.options.autoBind&&i.dataSource.fetch(),t=i._parentWidget(),t&&i._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var i=this;return e===t?i.selectedIndex:i._select(e).done(function(){i._cascadeValue=i._old=i._accessor(),i._oldIndex=i.selectedIndex})},_accessor:function(e,t){return this[this._isSelect?"_accessorSelect":"_accessorInput"](e,t)},_accessorInput:function(e){var i=this.element[0];return e===t?i.value:(null===e&&(e=""),i.value=e,t)},_accessorSelect:function(e,i){var a,s=this.element[0];return e===t?n(s).value||"":(n(s).selected=!1,i===t&&(i=-1),a=null!==e&&""!==e,a&&i==-1?this._custom(e):e?s.value=e:s.selectedIndex=i,t)},_syncValueAndText:function(){return!0},_custom:function(t){var i=this,a=i.element,n=i._customOption;n||(n=e("<option/>"),i._customOption=n,a.append(n)),n.text(t),n[0].selected=!0},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrowIcon.removeClass(T),e._focused.attr("aria-busy",!1),e._busy=null,e._showClear()},_showBusy:function(e){var t=this;e.isDefaultPrevented()||(t._request=!0,t._busy||(t._busy=setTimeout(function(){t._arrowIcon&&(t._focused.attr("aria-busy",!0),t._arrowIcon.addClass(T),t._hideClear())},100)))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var t,i=this,a=i.element,n=i.options,s=n.dataSource||{};s=e.isArray(s)?{data:s}:s,i._isSelect&&(t=a[0].selectedIndex,t>-1&&(n.index=t),s.select=a,s.fields=[{field:n.dataTextField},{field:n.dataValueField}]),i.dataSource?i._unbindDataSource():(i._requestStartHandler=N(i._showBusy,i),i._requestEndHandler=N(i._requestEnd,i),i._errorHandler=N(i._hideBusy,i)),i.dataSource=c.data.DataSource.create(s).bind(L,i._requestStartHandler).bind(P,i._requestEndHandler).bind("error",i._errorHandler)},_firstItem:function(){this.listView.focusFirst()},_lastItem:function(){this.listView.focusLast()},_nextItem:function(){return this.listView.focusNext()},_prevItem:function(){return this.listView.focusPrev()},_getNormalizedDataItem:function(e){var t,i=this,a=i.listView,n="number"==typeof e,s=i.optionLabel&&i.optionLabel.length;return t=n?s?--e:e:a.getElementIndex(e),a.dataItemByIndex(t)},_getNormalizedSelectCandidate:function(e){var t=this,i=t.optionLabel&&t.optionLabel.length,a="number"==typeof e,n=e;return i&&a&&n++,n},_move:function(e){var t,i,a,n,s,r,l,o,u,c=this,d=c.listView,h=e.keyCode,f=h===_.DOWN,p=c.options.virtual;if(h===_.UP||f){if(e.altKey)c.toggle(f);else{if(!d.bound()&&!c.ul[0].firstChild)return c._fetch||(c.dataSource.one(w,function(){c._fetch=!1,c._move(e)}),c._fetch=!0,c._filterSource()),e.preventDefault(),!0;a=c._focus(),c._fetch||a&&!a.hasClass("k-state-selected")||(f?(n=c._nextItem(),(p&&n<=0||!c._focus()&&!n)&&c._lastItem()):(n=c._prevItem(),(p&&n>=d.dataSource.total()-1||!c._focus()&&!n)&&c._firstItem())),s=c._getNormalizedSelectCandidate(c._get(c._focus())||n||0),c._select(s,!0).done(function(){var e=function(){c.popup.visible()||c._blur(),c._cascadedValue=null===c._cascadedValue?c.value():c.dataItem()?c.dataItem()[c.options.dataValueField]||c.dataItem():null};c.trigger(B,{dataItem:c._getNormalizedDataItem(s),item:c._focus()})?c._select(a).done(e):e()})}e.preventDefault(),i=!0}else if(h===_.ENTER||h===_.TAB){if(c.popup.visible()&&e.preventDefault(),a=c._focus(),t=c.dataItem(),c.popup.visible()||t&&c.text()===c._text(t)||(a=null),r=c.filterInput&&c.filterInput[0]===v(),a){if(t=d.dataItemByIndex(d.getElementIndex(a)),o=!0,t&&(o=c._value(t)!==Q.unifyType(c.value(),typeof c._value(t))),o&&c.trigger(B,{dataItem:t,item:a}))return;l=c._select(a)}else c.input&&((c._syncValueAndText()||c._isSelect)&&c._accessor(c.input.val()),c.listView.value(c.input.val()));c._focusElement&&c._focusElement(c.wrapper),r&&h===_.TAB?c.wrapper.focusout():l&&"function"==typeof l.done?l.done(function(){c._blur()}):c._blur(),c.close(),i=!0}else h===_.ESC?(c.popup.visible()&&e.preventDefault(),c.close(),i=!0):!c.popup.visible()||h!==_.PAGEDOWN&&h!==_.PAGEUP||(e.preventDefault(),u=h===_.PAGEDOWN?1:-1,d.scrollWith(u*d.screenHeight()),i=!0);return i},_fetchData:function(){var e=this,t=!!e.dataSource.view().length;e._request||e.options.cascadeFrom||e.listView.bound()||e._fetch||t||(e._fetch=!0,e.dataSource.fetch().done(function(){e._fetch=!1}))},_options:function(e,i,a){var s,r,l,o,u=this,c=u.element,d=c[0],h=e.length,f="",p=0;for(i&&(f=i);p<h;p++)s="<option",r=e[p],l=u._text(r),o=u._value(r),o!==t&&(o+="",o.indexOf('"')!==-1&&(o=o.replace(j,"&quot;")),s+=' value="'+o+'"'),s+=">",l!==t&&(s+=m(l)),s+="</option>",f+=s;c.html(f),a!==t&&(d.value=a,d.value&&!a&&(d.selectedIndex=-1)),d.selectedIndex!==-1&&(s=n(d),s&&s.setAttribute(E,E))},_reset:function(){var t=this,i=t.element,a=i.attr("form"),n=a?e("#"+a):i.closest("form");n[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=n.on("reset",t._resetHandler))},_parentWidget:function(){var t,i,a,n=this.options.name;if(this.options.cascadeFrom){if(t=e("#"+this.options.cascadeFrom),i=t.data("kendo"+n),!i)for(a=0;a<$[n].length&&!(i=t.data("kendo"+$[n][a]));a+=1);return i}},_cascade:function(){var e,t=this,i=t.options,a=i.cascadeFrom;if(a){if(e=t._parentWidget(),!e)return;t._cascadeHandlerProxy=N(t._cascadeHandler,t),t._cascadeFilterRequests=[],i.autoBind=!1,e.bind("set",function(){t.one("set",function(e){t._selectedValue=e.value||t._accessor()})}),e.first(H,t._cascadeHandlerProxy),e.listView.bound()?(t._toggleCascadeOnFocus(),t._cascadeSelect(e)):(e.one("dataBound",function(){t._toggleCascadeOnFocus(),e.popup.visible()&&e._focused.focus()}),e.value()||t.enable(!1))}},_toggleCascadeOnFocus:function(){var e=this,t=e._parentWidget(),i=U&&t instanceof d.DropDownList?G:A;t._focused.add(t.filterInput).bind(W,function(){t.unbind(H,e._cascadeHandlerProxy),t.first(w,e._cascadeHandlerProxy)}),t._focused.add(t.filterInput).bind(i,function(){t.unbind(w,e._cascadeHandlerProxy),t.first(H,e._cascadeHandlerProxy)})},_cascadeHandler:function(e){var t=this._parentWidget(),i=this.value();this._userTriggered=e.userTriggered||t._userTriggered,this.listView.bound()&&this._clearSelection(t,!0),this._cascadeSelect(t,i)},_cascadeChange:function(e){var t=this,a=t._accessor()||t._selectedValue;t._cascadeFilterRequests.length||(t._selectedValue=null),t._userTriggered?t._clearSelection(e,!0):a?(a!==i(t.listView.value()[0],typeof a)&&t.value(a),t.dataSource.view()[0]&&t.selectedIndex!==-1||t._clearSelection(e,!0)):t.dataSource.flatView().length&&t.select(t.options.index),t.enable(),t._triggerCascade(),t._triggerChange(),t._userTriggered=!1},_cascadeSelect:function(e,i){var a,n,s=this,r=e.dataItem(),o=r?r[s.options.cascadeFromParentField]||e._value(r):null,u=s.options.cascadeFromField||e.options.dataValueField;s._valueBeforeCascade=i!==t?i:s.value(),o||0===o?(a=s.dataSource.filter()||{},l(a,u),n=function(){var t=s._cascadeFilterRequests.shift();t&&s.unbind("dataBound",t),t=s._cascadeFilterRequests[0],t&&s.first("dataBound",t),s._cascadeChange(e)},s._cascadeFilterRequests.push(n),1===s._cascadeFilterRequests.length&&s.first("dataBound",n),s._cascading=!0,s._filterSource({field:u,operator:"eq",value:o}),s._cascading=!1):(s.enable(!1),s._clearSelection(e),s._triggerCascade(),s._triggerChange(),s._userTriggered=!1)}}),o=".StaticList",u=c.ui.DataBoundWidget.extend({init:function(t,i){p.fn.init.call(this,t,i),this.element.attr("role","listbox").on("click"+o,"li",N(this._click,this)).on("mouseenter"+o,"li",function(){e(this).addClass(S)}).on("mouseleave"+o,"li",function(){e(this).removeClass(S)}),i&&i.ariaLabel?this.element.attr("aria-label",i.ariaLabel):i&&i.ariaLabelledBy&&this.element.attr("aria-labelledby",i.ariaLabelledBy),g.touch&&this._touchHandlers(),"multiple"===this.options.selectable&&this.element.attr("aria-multiselectable",!0),this.content=this.element.wrap("<div class='k-list-scroller' unselectable='on'></div>").parent(),this.header=this.content.before('<div class="k-group-header" style="display:none"></div>').prev(),this.bound(!1),this._optionID=c.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var a=this.options.value;a&&(this._values=e.isArray(a)?a.slice(0):[a]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=N(function(){var e=this;clearTimeout(e._scrollId),e._scrollId=setTimeout(function(){e._renderHeader()},50)},this)},options:{name:"StaticList",dataValueField:null,valuePrimitive:!1,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null,ariaLabel:null,ariaLabelledBy:null},events:["click",w,"activate","deactivate","dataBinding","dataBound","selectedItemChange"],setDataSource:function(t){var i,a=this,n=t||{};n=e.isArray(n)?{data:n}:n,n=c.data.DataSource.create(n),a.dataSource?(a.dataSource.unbind(w,a._refreshHandler),i=a.value(),a.value([]),a.bound(!1),a.value(i)):a._refreshHandler=N(a.refresh,a),a.setDSFilter(n.filter()),a.dataSource=n.bind(w,a._refreshHandler),a._fixedHeader()},_touchHandlers:function(){var t,i,a=this,n=function(e){return(e.originalEvent||e).changedTouches[0].pageY};a.element.on("touchstart"+o,function(e){t=n(e)}),a.element.on("touchend"+o,function(s){s.isDefaultPrevented()||(i=n(s),Math.abs(i-t)<10&&(a._touchTriggered=!0,a._triggerClick(e(s.target).closest(V).get(0))))})},skip:function(){return this.dataSource.skip()},setOptions:function(e){p.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(o),this._refreshHandler&&this.dataSource.unbind(w,this._refreshHandler),clearTimeout(this._scrollId),p.fn.destroy.call(this)},dataItemByIndex:function(e){return this.dataSource.flatView()[e]},screenHeight:function(){return this.content[0].clientHeight},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scrollWith:function(e){this.content.scrollTop(this.content.scrollTop()+e)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],i=e.offsetTop,a=e.offsetHeight,n=t.scrollTop,s=t.clientHeight,r=i+a;n>i?n=i:r>n+s&&(n=r-s),t.scrollTop=n}},selectedDataItems:function(e){return e===t?this._dataItems.slice():(this._dataItems=e,this._values=this._getValues(e),t)},_getValues:function(t){var i=this._valueGetter;return e.map(t,function(e){return i(e)})},focusNext:function(){var e=this.focus();e=e?e.next():0,this.focus(e)},focusPrev:function(){var e=this.focus();e=e?e.prev():this.element[0].children.length-1,this.focus(e)},focusFirst:function(){this.focus(this.element[0].children[0])},focusLast:function(){this.focus(a(this.element[0].children))},focus:function(i){var n,s=this,r=s._optionID;return i===t?s._current:(i=a(s._get(i)),i=e(this.element[0].children[i]),s._current&&(s._current.removeClass(y).removeAttr(I),s.trigger("deactivate")),n=!!i[0],n&&(i.addClass(y),s.scroll(i),i.attr("id",r)),s._current=n?i:null,s.trigger("activate"),t)},focusIndex:function(){return this.focus()?this.focus().index():t},skipUpdate:function(e){this._skipUpdate=e},select:function(i){var n,s,r,l=this,o=l.options.selectable,u="multiple"!==o&&o!==!1,c=l._selectedIndices,d=[this.element.find(".k-state-selected").index()],h=[],f=[];return i===t?c.slice():(i=l._get(i),1===i.length&&i[0]===-1&&(i=[]),s=e.Deferred().resolve(),r=l.isFiltered(),r&&!u&&l._deselectFiltered(i)?s:u&&!r&&e.inArray(a(i),c)!==-1&&e.inArray(a(i),d)!==-1?(l._dataItems.length&&l._view.length&&(l._dataItems=[l._view[c[0]].item]),s):(n=l._deselect(i),f=n.removed,i=n.indices,i.length&&(u&&(i=[a(i)]),h=l._select(i)),(h.length||f.length)&&(l._valueComparer=null,l.trigger(w,{added:h,removed:f})),s))},removeAt:function(e){return this._selectedIndices.splice(e,1),this._values.splice(e,1),this._valueComparer=null,{position:e,dataItem:this._dataItems.splice(e,1)[0]}},setValue:function(t){t=e.isArray(t)||t instanceof x?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(i){var a,n=this,s=n._valueDeferred;return i===t?n._values.slice():(n.setValue(i),s&&"resolved"!==s.state()||(n._valueDeferred=s=e.Deferred()),n.bound()&&(a=n._valueIndices(n._values),"multiple"===n.options.selectable&&n.select(-1),n.select(a),s.resolve()),n._skipUpdate=!1,s)},items:function(){return this.element.children(V)},_click:function(e){return this._touchTriggered?(this._touchTriggered=!1,t):(e.isDefaultPrevented()||this._triggerClick(e.currentTarget),t)},_triggerClick:function(t){this.trigger("click",{item:e(t)})||this.select(t)},_valueExpr:function(e,t){var a,n,s=this,r=0,l=[];if(!s._valueComparer||s._valueType!==e){for(s._valueType=e;r<t.length;r++)l.push(i(t[r],e));a="for (var idx = 0; idx < "+l.length+"; idx++) { if (current === values[idx]) {   return idx; }} return -1;",n=Function("current","values",a),s._valueComparer=function(e){return n(e,l)}}return s._valueComparer},_dataItemPosition:function(e,t){var i=this._valueGetter(e),a=this._valueExpr(typeof i,t);return a(i)},_getter:function(){this._valueGetter=c.getter(this.options.dataValueField)},_deselect:function(t){var i,a,n,s,r,l=this,o=l.element[0].children,u=l.options.selectable,c=l._selectedIndices,d=l._dataItems,h=l._values,f=[],p=0,_=0;if(t=t.slice(),u!==!0&&t.length){if("multiple"===u)for(;p<t.length;p++)if(a=t[p],e(o[a]).hasClass("k-state-selected"))for(i=0;i<c.length;i++)if(n=c[i],n===a){e(o[n]).removeClass("k-state-selected").attr("aria-selected",!1),s=this._view[a].item,r=this._dataItemPosition(s,this._values),f.push({position:r,dataItem:s}),d.splice(i,1),c.splice(i,1),t.splice(p,1),h.splice(i,1),_+=1,p-=1,i-=1;break}}else{for(;p<c.length;p++)e(o[c[p]]).removeClass("k-state-selected").attr("aria-selected",!1),f.push({position:p,dataItem:d[p]});l._values=[],l._dataItems=[],l._selectedIndices=[]}return{indices:t,removed:f}},_deselectFiltered:function(t){for(var i,a,n,s=this.element[0].children,r=[],l=0;l<t.length;l++)a=t[l],i=this._view[a].item,n=this._dataItemPosition(i,this._values),n>-1&&(r.push(this.removeAt(n)),e(s[a]).removeClass("k-state-selected"));return!!r.length&&(this.trigger(w,{added:[],removed:r}),!0)},_select:function(t){var i,n,s=this,r=s.element[0].children,l=s._view,o=[],u=0;for(a(t)!==-1&&s.focus(t);u<t.length;u++)n=t[u],i=l[n],n!==-1&&i&&(i=i.item,s._selectedIndices.push(n),s._dataItems.push(i),s._values.push(s._valueGetter(i)),e(r[n]).addClass("k-state-selected").attr("aria-selected",!0),o.push({dataItem:i}));return o},getElementIndex:function(t){return e(t).data("offset-index")},_get:function(e){return"number"==typeof e?e=[e]:O(e)||(e=this.getElementIndex(e),e=[e!==t?e:-1]),e},_template:function(){var e=this,t=e.options,i=t.template;return i?(i=c.template(i),i=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+i(e)+"</li>"}):i=c.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${'+c.expr(t.dataTextField,"data")+"}</li>",{useWithBlock:!1}),i},_templates:function(){var e,t,i,a,n,s=this.options,r={template:s.template,groupTemplate:s.groupTemplate,fixedGroupTemplate:s.fixedGroupTemplate};if(s.columns)for(t=0;t<s.columns.length;t++)i=s.columns[t],a=i.field?""+i.field:"text",r["column"+t]=i.template||"#: "+a+"#";for(n in r)e=r[n],e&&"function"!=typeof e&&(r[n]=c.template(e));this.templates=r},_normalizeIndices:function(e){for(var i=[],a=0;a<e.length;a++)e[a]!==t&&i.push(e[a]);return i},_valueIndices:function(e,t){var i,a=this._view,n=0;if(t=t?t.slice():[],!e.length)return[];for(;n<a.length;n++)i=this._dataItemPosition(a[n].item,e),
i!==-1&&(t[i]=n);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],i=this.content[0],a=i.scrollTop,n=e(t.children[0]).height(),s=Math.floor(a/n)||0,r=t.children[s]||t.lastChild,l=r.offsetTop<a;r;)if(l){if(r.offsetTop+n>a||!r.nextSibling)break;r=r.nextSibling}else{if(r.offsetTop<=a||!r.previousSibling)break;r=r.previousSibling}return this._view[e(r).data("offset-index")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.show(),this.content.scroll(this._onScroll)):(this.header.hide(),this.content.off("scroll",this._onScroll))},_renderHeader:function(){var e,t=this.templates.fixedGroupTemplate;t&&(e=this._firstVisibleItem(),e&&(""+e.group).length&&this.header.html(t(e.group)))},_renderItem:function(e){var t='<li tabindex="-1" role="option" unselectable="on" class="k-item',i=e.item,a=0!==e.index,n=e.selected,s=this.isGrouped(),r=this.options.columns&&this.options.columns.length;return a&&e.newGroup&&(t+=" k-first"),e.isLastGroupedItem&&r&&(t+=" k-last"),n&&(t+=" k-state-selected"),t+='" aria-selected="'+(n?"true":"false")+'" data-offset-index="'+e.index+'">',t+=r?this._renderColumns(i):this.templates.template(i),a&&e.newGroup?t+=r?'<div class="k-cell k-group-cell"><span>'+this.templates.groupTemplate(e.group)+"</span></div>":'<div class="k-group">'+this.templates.groupTemplate(e.group)+"</div>":s&&r&&(t+="<div class='k-cell k-spacer-cell'></div>"),t+"</li>"},_renderColumns:function(e){var t,i,a,n,s="";for(t=0;t<this.options.columns.length;t++)i=this.options.columns[t].width,a=parseInt(i,10),n="",i&&!isNaN(a)&&(n+="style='width:",n+=a,n+=f.test(i)?"%":"px",n+=";'"),s+="<span class='k-cell' "+n+">",s+=this.templates["column"+t](e),s+="</span>";return s},_render:function(){var e,t,i,a,n="",s=0,r=0,l=[],o=this.dataSource.view(),u=this.value(),c=this.isGrouped();if(c)for(s=0;s<o.length;s++)for(t=o[s],i=!0,a=0;a<t.items.length;a++)e={selected:this._selected(t.items[a],u),item:t.items[a],group:t.value,newGroup:i,isLastGroupedItem:a===t.items.length-1,index:r},l[r]=e,r+=1,n+=this._renderItem(e),i=!1;else for(s=0;s<o.length;s++)e={selected:this._selected(o[s],u),item:o[s],index:s},l[s]=e,n+=this._renderItem(e);this._view=l,this.element[0].innerHTML=n,c&&l.length&&this._renderHeader()},_selected:function(e,t){var i=!this.isFiltered()||"multiple"===this.options.selectable;return i&&this._dataItemPosition(e,t)!==-1},setDSFilter:function(e){this._lastDSFilter=q({},e)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!c.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(e){var t,i=this,a=e&&e.action,n=i.options.skipUpdateOnBind,r="itemchange"===a;i.trigger("dataBinding"),i._angularItems("cleanup"),i._fixedHeader(),i._render(),i.bound(!0),r||"remove"===a?(t=s(i._dataItems,e.items),t.changed.length&&(r?i.trigger("selectedItemChange",{items:t.changed}):i.value(i._getValues(t.unchanged)))):i.isFiltered()||i._skipUpdate||i._emptySearch?(i.focus(0),i._skipUpdate&&(i._skipUpdate=!1,i._selectedIndices=i._valueIndices(i._values,i._selectedIndices))):n||a&&"add"!==a||i.value(i._values),i._valueDeferred&&i._valueDeferred.resolve(),i._angularItems("compile"),i.trigger("dataBound")},bound:function(e){return e===t?this._bound:(this._bound=e,t)},isGrouped:function(){return(this.dataSource.group()||[]).length}}),d.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,i){(i||t)()});
//# sourceMappingURL=kendo.list.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.popup.min",["kendo.core.min"],e)}(function(){return function(e,t){function o(t,o){return!(!t||!o)&&(t===o||e.contains(t,o))}var n,i,s,r,a=window.kendo,l=a.ui,d=l.Widget,p=a.Class,c=a.support,f=a.getOffset,u=a._outerWidth,h=a._outerHeight,m="open",g="close",w="deactivate",v="activate",_="center",b="left",y="right",k="top",x="bottom",T="absolute",z="hidden",C="body",P="location",S="position",E="visible",I="effects",O="k-state-active",R="k-state-border",A=/k-state-border-(\w+)/,D=".k-picker-wrap, .k-dropdown-wrap, .k-link",F="down",H=e(document.documentElement),N=e.proxy,W=e(window),L="scroll",j=c.transitions.css,M=j+"transform",K=e.extend,U=".kendoPopup",Y=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=d.extend({init:function(t,o){var n,i=this;o=o||{},o.isRtl&&(o.origin=o.origin||x+" "+y,o.position=o.position||k+" "+y),d.fn.init.call(i,t,o),t=i.element,o=i.options,i.collisions=o.collision?o.collision.split(" "):[],i.downEvent=a.applyEventMap(F,a.guid()),1===i.collisions.length&&i.collisions.push(i.collisions[0]),n=e(i.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),o.appendTo=e(e(o.appendTo)[0]||n[0]||document.body),i.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!o.isRtl).css({position:T}).appendTo(o.appendTo).attr("aria-hidden",!0).on("mouseenter"+U,function(){i._hovered=!0}).on("wheel"+U,function(t){var o=e(t.target).find(".k-list"),n=o.parent();o.length&&o.is(":visible")&&(0===n.scrollTop()&&t.originalEvent.deltaY<0||n.scrollTop()===n.prop("scrollHeight")-n.prop("offsetHeight")&&t.originalEvent.deltaY>0)&&t.preventDefault()}).on("mouseleave"+U,function(){i._hovered=!1}),i.wrapper=e(),o.animation===!1&&(o.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),K(o.animation.open,{complete:function(){i.wrapper.css({overflow:E}),i._activated=!0,i._trigger(v)}}),K(o.animation.close,{complete:function(){i._animationClose()}}),i._mousedownProxy=function(e){i._mousedown(e)},i._resizeProxy=c.mobileOS.android?function(e){setTimeout(function(){i._resize(e)},600)}:function(e){i._resize(e)},o.toggleTarget&&e(o.toggleTarget).on(o.toggleEvent+U,e.proxy(i.toggle,i))},events:[m,v,g,w],options:{name:"Popup",toggleEvent:"click",origin:x+" "+b,position:k+" "+b,anchor:C,appendTo:null,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}},omitOriginOffsets:!1},_animationClose:function(){var e=this,t=e.wrapper.data(P);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=C&&e._hideDirClass(),e._closing=!1,e._trigger(w)},destroy:function(){var t,o=this,n=o.options,i=o.element.off(U);d.fn.destroy.call(o),n.toggleTarget&&e(n.toggleTarget).off(U),n.modal||(H.off(o.downEvent,o._mousedownProxy),o._toggleResize(!1)),a.destroy(o.element.children()),i.removeData(),n.appendTo[0]===document.body&&(t=i.parent(".k-animation-container"),t[0]?t.remove():i.remove())},open:function(o,n){var i,s,r=this,l={isFixed:!isNaN(parseInt(n,10)),x:o,y:n},d=r.element,p=r.options,f=e(p.anchor),u=d[0]&&d.hasClass("km-widget");if(!r.visible()){if(p.copyAnchorStyles&&(u&&"font-size"==Y[0]&&Y.shift(),d.css(a.getComputedStyles(f[0],Y))),d.data("animating")||r._trigger(m))return;r._activated=!1,p.modal||(H.off(r.downEvent,r._mousedownProxy).on(r.downEvent,r._mousedownProxy),r._toggleResize(!1),r._toggleResize(!0)),r.wrapper=s=a.wrap(d,p.autosize).css({overflow:z,display:"block",position:T}).attr("aria-hidden",!1),c.mobileOS.android&&s.css(M,"translatez(0)"),s.css(S),e(p.appendTo)[0]==document.body&&s.css(k,"-10000px"),r.flipped=r._position(l),i=r._openAnimation(),p.anchor!=C&&r._showDirClass(i),d.is(":visible")||d.data("olddisplay")!==t||(d.show(),d.data("olddisplay",d.css("display")),d.hide()),d.data(I,i.effects).kendoStop(!0).kendoAnimate(i).attr("aria-hidden",!1)}},_location:function(t){var o,n,i=this,s=i.element,r=i.options,l=e(r.anchor),d=s[0]&&s.hasClass("km-widget");return r.copyAnchorStyles&&(d&&"font-size"==Y[0]&&Y.shift(),s.css(a.getComputedStyles(l[0],Y))),i.wrapper=o=a.wrap(s,r.autosize).css({overflow:z,display:"block",position:T}),c.mobileOS.android&&o.css(M,"translatez(0)"),o.css(S),e(r.appendTo)[0]==document.body&&o.css(k,"-10000px"),i._position(t||{}),n=o.offset(),{width:a._outerWidth(o),height:a._outerHeight(o),left:n.left,top:n.top}},_openAnimation:function(){var e=K(!0,{},this.options.animation.open);return e.effects=a.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),o=((t.attr("class")||"").match(A)||["","down"])[1],n=R+"-"+o;t.removeClass(n).children(D).removeClass(O).removeClass(n),this.element.removeClass(R+"-"+a.directions[o].reverse)},_showDirClass:function(t){var o=t.effects.slideIn?t.effects.slideIn.direction:"down",n=R+"-"+o;e(this.options.anchor).addClass(n).children(D).addClass(O).addClass(n),this.element.addClass(R+"-"+a.directions[o].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?g:m]()},visible:function(){return this.element.is(":"+E)},close:function(o){var n,i,s,r,l=this,d=l.options;if(l.visible()){if(n=l.wrapper[0]?l.wrapper:a.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(g))return l._toggleResize(!0),t;l.element.find(".k-popup").each(function(){var t=e(this),n=t.data("kendoPopup");n&&n.close(o)}),H.off(l.downEvent,l._mousedownProxy),o?i={hide:!0,effects:{}}:(i=K(!0,{},d.animation.close),s=l.element.data(I),r=i.effects,!r&&!a.size(r)&&s&&a.size(s)&&(i.effects=s,i.reverse=!0),l._closing=!0),l.element.kendoStop(!0).attr("aria-hidden",!0),n.css({overflow:z}).attr("aria-hidden",!0),l.element.kendoAnimate(i),o&&l._animationClose()}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;c.resize.indexOf(e.type)!==-1?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass("k-list-container"))&&t.close()},_toggleResize:function(e){var t=e?"on":"off",o=c.resize;c.mobileOS.ios||c.mobileOS.android||c.browser.safari||(o+=" "+L),e&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents()),this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[t](L,this._resizeProxy),W[t](o,this._resizeProxy)},_mousedown:function(t){var n=this,i=n.element[0],s=n.options,r=e(s.anchor)[0],l=s.toggleTarget,d=a.eventTarget(t),p=e(d).closest(".k-popup"),c=p.parent().parent(".km-shim").length;p=p[0],!c&&p&&p!==n.element[0]||"popover"!==e(t.target).closest("a").data("rel")&&(o(i,d)||o(r,d)||l&&o(e(l)[0],d)||n.close())},_fit:function(e,t,o){var n=0;return e+t>o&&(n=o-(e+t)),e<0&&(n=-e),n},_flip:function(e,t,o,n,i,s,r){var a=0;return r=r||t,s!==i&&s!==_&&i!==_&&(e+r>n&&(a+=-(o+t)),e+a<0&&(a+=o+t)),a},_scrollableParents:function(){return e(this.options.anchor).parentsUntil("body").filter(function(e,t){return a.isScrollable(t)})},_position:function(t){var o,n,i,s,r,l,d,p,m,g,w,v,_,b,y,k,x,z=this,C=z.element,E=z.wrapper,I=z.options,O=e(I.viewport),R=c.zoomLevel(),A=!!(O[0]==window&&window.innerWidth&&R<=1.02),D=e(I.anchor),F=I.origin.toLowerCase().split(" "),H=I.position.toLowerCase().split(" "),N=z.collisions,W=10002,L=0,j=document.documentElement;if(r=I.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:O.offset(),A?(l=window.innerWidth,d=window.innerHeight):(l=O.width(),d=O.height()),A&&j.scrollHeight-j.clientHeight>0&&(p=I.isRtl?-1:1,l-=p*a.support.scrollbar()),o=D.parents().filter(E.siblings()),o[0])if(i=Math.max(+o.css("zIndex"),0))W=i+10;else for(n=D.parentsUntil(o),s=n.length;L<s;L++)i=+e(n[L]).css("zIndex"),i&&W<i&&(W=i+10);return E.css("zIndex",W),E.css(t&&t.isFixed?{left:t.x,top:t.y}:z._align(F,H)),m=f(E,S,D[0]===E.offsetParent()[0]),g=f(E),w=D.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),w.length&&(m=f(E,S,!0),g=f(E)),g.top-=r.top,g.left-=r.left,z.wrapper.data(P)||E.data(P,K({},m)),v=K({},g),_=K({},m),b=I.adjustSize,"fit"===N[0]&&(_.top+=z._fit(v.top,h(E)+b.height,d/R)),"fit"===N[1]&&(_.left+=z._fit(v.left,u(E)+b.width,l/R)),y=K({},_),k=h(C),x=h(E),!E.height()&&k&&(x+=k),"flip"===N[0]&&(_.top+=z._flip(v.top,k,h(D),d/R,F[0],H[0],x)),"flip"===N[1]&&(_.left+=z._flip(v.left,u(C),u(D),l/R,F[1],H[1],u(E))),C.css(S,T),E.css(_),_.left!=y.left||_.top!=y.top},_align:function(t,o){var n,i=this,s=i.wrapper,r=e(i.options.anchor),a=t[0],l=t[1],d=o[0],p=o[1],c=f(r),m=e(i.options.appendTo),g=u(s),w=h(s)||h(s.children().first()),v=u(r),b=h(r),k=i.options.omitOriginOffsets?0:c.top,T=i.options.omitOriginOffsets?0:c.left,z=Math.round;return m[0]!=document.body&&(n=f(m),k-=n.top,T-=n.left),a===x&&(k+=b),a===_&&(k+=z(b/2)),d===x&&(k-=w),d===_&&(k-=z(w/2)),l===y&&(T+=v),l===_&&(T+=z(v/2)),p===y&&(T-=g),p===_&&(T-=z(g/2)),{top:k,left:T}}});l.plugin(Q),n=a.support.stableSort,i="kendoTabKeyTrap",s="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]",r=p.extend({init:function(t){this.element=e(t),this.element.autoApplyNS(i)},trap:function(){this.element.on("keydown",N(this._keepInTrap,this))},removeTrap:function(){this.element.kendoDestroy(i)},destroy:function(){this.element.kendoDestroy(i),this.element=t},shouldTrap:function(){return!0},_keepInTrap:function(e){var t,o,n;9===e.which&&this.shouldTrap()&&!e.isDefaultPrevented()&&(t=this._focusableElements(),o=this._sortFocusableElements(t),n=this._nextFocusable(e,o),this._focus(n),e.preventDefault())},_focusableElements:function(){var t=this.element.find(s).filter(function(t,o){return o.tabIndex>=0&&e(o).is(":visible")&&!e(o).is("[disabled]")});return this.element.is("[tabindex]")&&t.push(this.element[0]),t},_sortFocusableElements:function(e){var t,o;return n?t=e.sort(function(e,t){return e.tabIndex-t.tabIndex}):(o="__k_index",e.each(function(e,t){t.setAttribute(o,e)}),t=e.sort(function(e,t){return e.tabIndex===t.tabIndex?parseInt(e.getAttribute(o),10)-parseInt(t.getAttribute(o),10):e.tabIndex-t.tabIndex}),e.removeAttr(o)),t},_nextFocusable:function(e,t){var o=t.length,n=t.index(e.target);return t.get((n+(e.shiftKey?-1:1))%o)},_focus:function(e){return"IFRAME"==e.nodeName?(e.contentWindow.document.body.focus(),t):(e.focus(),"INPUT"==e.nodeName&&e.setSelectionRange&&this._haveSelectionRange(e)&&e.setSelectionRange(0,e.value.length),t)},_haveSelectionRange:function(e){var t=e.type.toLowerCase();return"text"===t||"search"===t||"url"===t||"tel"===t||"password"===t}}),l.Popup.TabKeyTrap=r}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,o){(o||t)()});
//# sourceMappingURL=kendo.popup.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("aspnetmvc/kendo.data.aspnetmvc.min",["kendo.data.min","kendo.combobox.min","kendo.multiselect.min","kendo.validator.min"],e)}(function(){!function(e,t){function n(t,n,i){var r,o={};return t.sort?(o[this.options.prefix+"sort"]=e.map(t.sort,function(e){return e.field+"-"+e.dir}).join("~"),delete t.sort):o[this.options.prefix+"sort"]="",t.page&&(o[this.options.prefix+"page"]=t.page,delete t.page),t.pageSize&&(o[this.options.prefix+"pageSize"]=t.pageSize,delete t.pageSize),t.group?(o[this.options.prefix+"group"]=e.map(t.group,function(e){return e.field+"-"+e.dir}).join("~"),delete t.group):o[this.options.prefix+"group"]="",t.aggregate&&(o[this.options.prefix+"aggregate"]=e.map(t.aggregate,function(e){return e.field+"-"+e.aggregate}).join("~"),delete t.aggregate),t.filter?(o[this.options.prefix+"filter"]=a(t.filter,i.encode),delete t.filter):(o[this.options.prefix+"filter"]="",delete t.filter),t.groupPaging||(delete t.take,delete t.skip),r=new g(i),r.serialize(o,t,""),o}function a(n,r){return n.filters?e.map(n.filters,function(e){var t=e.filters&&e.filters.length>1,n=a(e,r);return n&&t&&(n="("+n+")"),n}).join("~"+n.logic+"~"):n.field?n.field+"~"+n.operator+"~"+i(n.value,r):t}function i(e,t){if("string"==typeof e){if(!(e.indexOf("Date(")>-1))return e=e.replace(l,"''"),t&&(e=encodeURIComponent(e)),"'"+e+"'";e=new Date(parseInt(e.replace(/^\/Date\((.*?)\)\/$/,"$1"),10))}return e&&e.getTime?"datetime'"+c.format("{0:yyyy-MM-ddTHH-mm-ss}",e)+"'":e}function r(e,n){return t!==e?e:n}function o(t){var n=t.HasSubgroups||t.hasSubgroups||!1,a=t.Items||t.items,i=t.ItemCount||t.itemCount,d=t.SubgroupCount||t.subgroupCount;return{value:r(t.Key,r(t.key,t.value)),field:t.Member||t.member||t.field,hasSubgroups:n,aggregates:s(t.Aggregates||t.aggregates),items:n?e.map(a,o):a,itemCount:i,subgroupCount:d,uid:c.guid()}}function d(e){var t={};return t[e.AggregateMethodName.toLowerCase()]=e.Value,t}function s(e){var t,n,a,i={};for(t in e){i={},a=e[t];for(n in a)i[n.toLowerCase()]=a[n];e[t]=i}return e}function u(e){var t,n,a,i={};for(t=0,n=e.length;t<n;t++)a=e[t],i[a.Member]=f(!0,i[a.Member],d(a));return i}var c=window.kendo,l=/'/gi,f=e.extend,p=e.isArray,m=e.isPlainObject,v=".",g=function(e){e=e||{},this.culture=e.culture||c.culture(),this.stringifyDates=e.stringifyDates,this.decimalSeparator=this.culture.numberFormat[v]};g.prototype=g.fn={serialize:function(e,t,n){var a,i;for(i in t)a=n?n+"."+i:i,this.serializeField(e,t[i],t,i,a)},serializeField:function(e,n,a,i,r){p(n)?this.serializeArray(e,n,r):m(n)?this.serialize(e,n,r):e[r]===t&&(e[r]=a[i]=this.serializeValue(n))},serializeArray:function(e,t,n){var a,i,r,o,d;for(o=0,d=0;o<t.length;o++)a=t[o],i="["+d+"]",r=n+i,this.serializeField(e,a,t,i,r),d++},serializeValue:function(e){return e instanceof Date?e=this.stringifyDates?c.stringify(e).replace(/"/g,""):c.toString(e,"G",this.culture.name):"number"==typeof e&&(e=(""+e).replace(v,this.decimalSeparator)),e}},f(!0,c.data,{schemas:{"aspnetmvc-ajax":{groups:function(t){return e.map(this._dataAccessFunction(t),o)},aggregates:function(t){var n,a;if(t=t.d||t,n=t.AggregateResults||[],!e.isArray(n)){for(a in n)n[a]=u(n[a]);return n}return u(n)}}}}),f(!0,c.data,{transports:{"aspnetmvc-ajax":c.data.RemoteTransport.extend({init:function(e){var t=this,a=(e||{}).stringifyDates;c.data.RemoteTransport.fn.init.call(this,f(!0,{},this.options,e,{parameterMap:function(e,i){return n.call(t,e,i,{encode:!1,stringifyDates:a})}}))},read:function(e){var t=this.options.data,n=this.options.read.url;m(t)?(n&&(this.options.data=null),!t.Data.length&&n?c.data.RemoteTransport.fn.read.call(this,e):e.success(t)):c.data.RemoteTransport.fn.read.call(this,e)},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"},parameterMap:n,prefix:""}})}}),f(!0,c.data,{schemas:{webapi:c.data.schemas["aspnetmvc-ajax"]}}),f(!0,c.data,{transports:{webapi:c.data.RemoteTransport.extend({init:function(e){var t,a,i=this,r=(e||{}).stringifyDates,o=c.cultures[e.culture]||c.cultures["en-US"];e.update&&(t="string"==typeof e.update?e.update:e.update.url,e.update=f(e.update,{url:function(n){return c.format(t,n[e.idField])}})),e.destroy&&(a="string"==typeof e.destroy?e.destroy:e.destroy.url,e.destroy=f(e.destroy,{url:function(t){return c.format(a,t[e.idField])}})),e.create&&"string"==typeof e.create&&(e.create={url:e.create}),c.data.RemoteTransport.fn.init.call(this,f(!0,{},this.options,e,{parameterMap:function(e,t){return n.call(i,e,t,{encode:!1,stringifyDates:r,culture:o})}}))},read:function(e){var t=this.options.data,n=this.options.read.url;m(t)?(n&&(this.options.data=null),!t.Data.length&&n?c.data.RemoteTransport.fn.read.call(this,e):e.success(t)):c.data.RemoteTransport.fn.read.call(this,e)},options:{read:{type:"GET"},update:{type:"PUT"},create:{type:"POST"},destroy:{type:"DELETE"},parameterMap:n,prefix:""}})}}),f(!0,c.data,{transports:{"aspnetmvc-server":c.data.RemoteTransport.extend({init:function(e){var t=this;c.data.RemoteTransport.fn.init.call(this,f(e,{parameterMap:function(e,a){return n.call(t,e,a,{encode:!0})}}))},read:function(t){var n,a,i=this.options.prefix,r=[i+"sort",i+"page",i+"pageSize",i+"group",i+"aggregate",i+"filter"],o=RegExp("("+r.join("|")+")=[^&]*&?","g");a=location.search.replace(o,"").replace("?",""),a.length&&!/&$/.test(a)&&(a+="&"),t=this.setup(t,"read"),n=t.url,n.indexOf("?")>=0?(a=a.replace(/(.*?=.*?)&/g,function(e){return n.indexOf(e.substr(0,e.indexOf("=")))>=0?"":e}),n+="&"+a):n+="?"+a,n+=e.map(t.data,function(e,t){return t+"="+e}).join("&"),location.href=n}})}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.combobox.aspnetmvc.min",["aspnetmvc/kendo.data.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=n.ui;a&&a.ComboBox&&(a.ComboBox.requestData=function(t){var n,a,i=e(t).data("kendoComboBox");if(i)return n=i.dataSource.filter(),a=i.input.val(),n&&n.filters.length||(a=""),{text:a}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.multicolumncombobox.aspnetmvc.min",["aspnetmvc/kendo.data.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=n.ui;a&&a.MultiColumnComboBox&&(a.MultiColumnComboBox.requestData=function(t){var n,a,i=e(t).data("kendoMultiColumnComboBox");if(i)return n=i.dataSource.filter(),a=i.input.val(),n&&n.filters.length||(a=""),{text:a}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.dropdownlist.aspnetmvc.min",["aspnetmvc/kendo.data.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=n.ui;a&&a.DropDownList&&(a.DropDownList.requestData=function(t){var n,a,i,r=e(t).data("kendoDropDownList");if(r)return n=r.dataSource.filter(),a=r.filterInput,i=a?a.val():"",n&&n.filters.length||(i=""),{text:i}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.dropdowntree.aspnetmvc.min",["aspnetmvc/kendo.data.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=n.ui;a&&a.DropDownTree&&(a.DropDownTree.requestData=function(t){var n,a,i,r=e(t).data("kendoDropDownTree");if(r)return n=r.dataSource.filter(),a=r.filterInput,i=a?a.val():"",n&&n.filters.length||(i=""),{text:i}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.multiselect.aspnetmvc.min",["aspnetmvc/kendo.combobox.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=n.ui;a&&a.MultiSelect&&(a.MultiSelect.requestData=function(t){var n,a=e(t).data("kendoMultiSelect");if(a)return n=a.input.val(),{text:n!==a.options.placeholder?n:""}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.imagebrowser.aspnetmvc.min",["aspnetmvc/kendo.multiselect.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=e.extend,i=e.isFunction;a(!0,n.data,{schemas:{"imagebrowser-aspnetmvc":{data:function(e){return e||[]},model:{id:"name",fields:{name:{field:"Name"},size:{field:"Size"},type:{field:"EntryType",parse:function(e){return 0==e?"f":"d"}}}}}}}),a(!0,n.data,{schemas:{"filebrowser-aspnetmvc":n.data.schemas["imagebrowser-aspnetmvc"]}}),a(!0,n.data,{transports:{"imagebrowser-aspnetmvc":n.data.RemoteTransport.extend({init:function(t){n.data.RemoteTransport.fn.init.call(this,e.extend(!0,{},this.options,t))},_call:function(t,a){a.data=e.extend({},a.data,{path:this.options.path()}),i(this.options[t])?this.options[t].call(this,a):n.data.RemoteTransport.fn[t].call(this,a)},read:function(e){this._call("read",e)},create:function(e){this._call("create",e)},destroy:function(e){this._call("destroy",e)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"},parameterMap:function(e,t){return"read"!=t&&(e.EntryType="f"===e.EntryType?0:1),e}}})}}),a(!0,n.data,{transports:{"filebrowser-aspnetmvc":n.data.transports["imagebrowser-aspnetmvc"]}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.validator.aspnetmvc.min",["aspnetmvc/kendo.imagebrowser.aspnetmvc.min"],e)}(function(){!function(e,t){function n(){var e,t={};for(e in m)t["mvc"+e]=d(e);return t}function a(){var e,t={};for(e in m)t["mvc"+e]=s(e);return t}function i(e,t){var n,a,i,r,o={},d=e.data(),s=t.length;for(i in d)a=i.toLowerCase(),n=a.indexOf(t),n>-1&&(r="valserver"===a?n:n+s,a=a.substring(r,i.length),a&&(o[a]=d[i]));return o}function r(t){var n,a,i=t.Fields||[],r={};for(n=0,a=i.length;n<a;n++)e.extend(!0,r,o(i[n]));return r}function o(e){var t,n,a,i,r={},o={},d=e.FieldName,s=e.ValidationRules;for(a=0,i=s.length;a<i;a++)t=s[a].ValidationType,n=s[a].ValidationParameters,r[d+t]=c(d,t,n),o[d+t]=u(s[a].ErrorMessage);return{rules:r,messages:o}}function d(e){return function(t){return t.attr(t.filter("[data-rule-"+e+"]").length?"data-msg-"+e:"data-val-"+e)}}function s(e){return function(t){return t.filter("[data-val-"+e+"]").length?m[e](t,i(t,e)):!t.filter("[data-rule-"+e+"]").length||m[e](t,i(t,e))}}function u(e){return function(){return e}}function c(e,t,n){return function(a){return!a.filter("[name="+e+"]").length||m[t](a,n)}}function l(e,t){return"string"==typeof t&&(t=RegExp("^(?:"+t+")$")),t.test(e)}var f=/("|\%|'|\[|\]|\$|\.|\,|\:|\;|\+|\*|\&|\!|\#|\(|\)|<|>|\=|\?|\@|\^|\{|\}|\~|\/|\||`)/g,p=".k-switch",m={required:function(e){var t,n,a,i,r=e.val(),o=e.filter("[type=checkbox]"),d=e.filter("[type=radio]");return o.length?(t=o[0].name.replace(f,"\\$1"),n="input:hidden[name='"+t+"']",a=e.closest(".k-checkbox-list").find("input[name='"+t+"']"),o.closest(p).length&&(o=o.closest(p)),i=o.next(n),i.length||(i=o.next("label.k-checkbox-label").next(n)),r=i.length?i.val():e.prop("checked")===!0,a.length&&(r=a.is(":checked"))):d.length&&(r=kendo.jQuery.find("input[name='"+e.attr("name")+"']:checked").length>0),!(""===r||!r||0===r.length)},number:function(e){return""===e.val()||null==e.val()||null!==kendo.parseFloat(e.val())},regex:function(e,t){return""===e.val()||l(e.val(),t.pattern)},range:function(e,t){return""===e.val()||this.min(e,t)&&this.max(e,t)},min:function(e,t){var n=parseFloat(t.min)||0,a=kendo.parseFloat(e.val());return n<=a},max:function(e,t){var n=parseFloat(t.max)||0,a=kendo.parseFloat(e.val());return a<=n},date:function(e){return""===e.val()||null!==kendo.parseDate(e.val())},length:function(e,t){if(""!==e.val()){var n=kendo.trim(e.val()).length;return(!t.min||n>=(t.min||0))&&(!t.max||n<=(t.max||0))}return!0},server:function(e,t){return!t.server}};e.extend(!0,kendo.ui.validator,{rules:a(),messages:n(),messageLocators:{mvcLocator:{locate:function(e,t){return t=t.replace(f,"\\$1"),e.find(".field-validation-valid[data-valmsg-for='"+t+"'], .field-validation-error[data-valmsg-for='"+t+"']")},decorate:function(e,t){e.addClass("field-validation-error").attr("data-valmsg-for",t||"")}},mvcMetadataLocator:{locate:function(e,t){return t=t.replace(f,"\\$1"),e.find("#"+t+"_validationMessage.field-validation-valid")},decorate:function(e,t){e.addClass("field-validation-error").attr("id",t+"_validationMessage")}}},ruleResolvers:{mvcMetaDataResolver:{resolve:function(t){var n,a=window.mvcClientValidationMetadata||[];if(a.length)for(t=e(t),n=0;n<a.length;n++)if(a[n].FormId==t.attr("id"))return r(a[n]);return{}}}},validateOnInit:function(e){return!!e.find("input[data-val-server]").length},allowSubmit:function(e,t){return!!t&&t.length===e.find("input[data-val-server]").length}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("aspnetmvc/kendo.filemanager.aspnetmvc.min",["aspnetmvc/kendo.data.aspnetmvc.min"],e)}(function(){!function(e,t){var n=window.kendo,a=e.extend;a(!0,n.data,{schemas:{filemanager:{data:function(e){return e||[]},model:{id:"path",hasChildren:"hasDirectories",fields:{name:{field:"Name",editable:!0,type:"string",defaultValue:"New Folder"},size:{field:"Size",editable:!1,type:"number"},path:{field:"Path",editable:!1,type:"string"},extension:{field:"Extension",editable:!1,type:"string"},isDirectory:{field:"IsDirectory",editable:!1,defaultValue:!0,type:"boolean"},hasDirectories:{field:"HasDirectories",editable:!1,defaultValue:!1,type:"boolean"},created:{field:"Created",type:"date",editable:!1},createdUtc:{field:"CreatedUtc",type:"date",editable:!1},modified:{field:"Modified",type:"date",editable:!1},modifiedUtc:{field:"ModifiedUtc",type:"date",editable:!1}}}}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.aspnetmvc.min",["kendo.data.min","kendo.combobox.min","kendo.dropdownlist.min","kendo.dropdowntree.min","kendo.multiselect.min","kendo.validator.min","aspnetmvc/kendo.data.aspnetmvc.min","aspnetmvc/kendo.combobox.aspnetmvc.min","aspnetmvc/kendo.multicolumncombobox.aspnetmvc.min","aspnetmvc/kendo.dropdownlist.aspnetmvc.min","aspnetmvc/kendo.dropdowntree.aspnetmvc.min","aspnetmvc/kendo.multiselect.aspnetmvc.min","aspnetmvc/kendo.imagebrowser.aspnetmvc.min","aspnetmvc/kendo.validator.aspnetmvc.min","aspnetmvc/kendo.filemanager.aspnetmvc.min"],e)}(function(){!function(e,t){function n(t){kendo.__documentIsReady?t():e(t)}var a=e.extend;e(function(){kendo.__documentIsReady=!0}),a(kendo,{syncReady:n})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});

;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.calendar.min",["kendo.core.min","kendo.selectable.min"],e)}(function(){return function(e,t){function a(e,t,a,n){var r,l=e.getFullYear(),i=t.getFullYear(),s=a.getFullYear();return l-=l%n,r=l+(n-1),l<i&&(l=i),r>s&&(r=s),l+"-"+r}function n(e){var t,a=0,n=e.min,r=e.max,l=e.start,i=e.setter,o=e.build,c=e.weekNumberBuild,u=e.cells||12,d=e.isWeekColumnVisible,f=e.perRow||4,g=e.otherMonth,_=e.lastDayOfMonth,h=e.weekNumber||q,m=e.content||I,p=e.empty||z,k=e.otherMonthCellTemplate||U,b=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';for(d&&(b+=h(c(l)));a<u;a++)a>0&&a%f===0&&(b+='</tr><tr role="row">',d&&(b+=h(g||+l<=+_?c(l):{weekNumber:"&nbsp;"}))),l=v(l.getFullYear(),l.getMonth(),l.getDate()),V(l,0),t=o(l,a,e.disableDates),b+=t.cssClass.indexOf(se)===-1||g?s(l,n,r)?m(t):p(t):k(t),i(l,1);return b+"</tr></tbody></table>"}function r(e,t,a){var n=e.getFullYear(),r=t.getFullYear(),l=r,i=0;return a&&(r-=r%a,l=r-r%a+a-1),n>l?i=1:n<r&&(i=-1),i}function l(){var e=new Ye;return new Ye(e.getFullYear(),e.getMonth(),e.getDate())}function i(e,t,a){var n=l();return e&&(n=new Ye((+e))),t>n?n=new Ye((+t)):a<n&&(n=new Ye((+a))),n}function s(e,t,a){return+e>=+t&&+e<=+a}function o(e,t){return e.slice(t).concat(e.slice(0,t))}function c(e,t,a){t=t instanceof Ye?t.getFullYear():e.getFullYear()+a*t,e.setFullYear(t)}function u(e,t){var a,n,r;return+t<+e&&(a=+e,T.views[0].setDate(e,t),T.views[0].setDate(t,new Date(a))),n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),Math.ceil((+r-+n)/F.date.MS_PER_DAY)}function d(e,t,a,n){var r,l;for(r=0;r<=t;r++)l=new Date(a.getTime()),l=new Date(l.setDate(l.getDate()+r)),n(l)||e.push(l)}function f(t){var a=e(this).hasClass("k-state-disabled");a||e(this).toggleClass(re,pe.indexOf(t.type)>-1||t.type==he)}function g(e){e.preventDefault()}function v(e,t,a){var n=new Ye(e,t,a);return n.setFullYear(e,t,a),n}function _(e){return W(e).calendars.standard}function h(e){var a=Ae[e.start],n=Ae[e.depth],r=W(e.culture);e.format=H(e.format||r.calendars.standard.patterns.d),isNaN(a)&&(a=0,e.start=$),(n===t||n>a)&&(e.depth=$),null===e.dates&&(e.dates=[])}function m(e,t){e.addClass("k-"+t)}function p(e,t){for(var a=0,n=t.length;a<n;a++)if(e===+t[a])return!0;return!1}function k(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function b(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function w(t){return F.isFunction(t)?t:e.isArray(t)?y(t):e.noop}function D(e){var t,a=[];for(t=0;t<e.length;t++)a.push(e[t].setHours(0,0,0,0));return a}function y(t){var a,n,r,l,i,s=[],o=["su","mo","tu","we","th","fr","sa"],c="if (found) { return true } else {return false}";if(t[0]instanceof Ye)s=D(t),a="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.setHours(0, 0, 0, 0),["+s+"]) > -1;"+c;else{for(r=0;r<t.length;r++)l=t[r].slice(0,2).toLowerCase(),i=e.inArray(l,o),i>-1&&s.push(i);a="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.getDay(),["+s+"]) > -1;"+c}return n=Function("date",a)}function C(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}function S(t){var a=e(t).attr(F.attr(ne)).split("/");return a=v(a[0],a[1],a[2])}var T,F=window.kendo,x=F.support,M=F.ui,Y=M.Widget,A=F.keys,N=F.parseDate,V=F.date.adjustDST,O=F.date.weekInYear,B=F.ui.Selectable,H=F._extractFormat,E=F.template,W=F.getCulture,P=F.support.transitions,R=P?P.css+"transform-origin":"",I=E('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),z=E('<td role="gridcell" class="k-out-of-range"><a class="k-link"></a></td>',{useWithBlock:!1}),U=E('<td role="gridcell" class="k-out-of-range">&nbsp;</td>',{useWithBlock:!1}),q=E('<td class="k-alt">#= data.weekNumber #</td>',{useWithBlock:!1}),j=F._outerWidth,G=".kendoCalendar",K="click"+G,L="keydown"+G,Q="id",J="min",X="left",Z="slideIn",$="month",ee="century",te="change",ae="navigate",ne="value",re="k-state-hover",le="k-state-disabled",ie="k-state-focused",se="k-other-month",oe=' class="'+se+'"',ce="k-out-of-range",ue="k-nav-today",de="td:has(.k-link)",fe="td:has(.k-link):not(."+le+"):not(."+ce+")",ge="td:not(:has(.k-link))",ve="k-state-selected",_e="blur"+G,he="focus",me=he+G,pe=x.touch?"touchstart":"mouseenter",ke=x.touch?"touchstart"+G:"mouseenter"+G,be=x.touch?"touchend"+G+" touchmove"+G:"mouseleave"+G,we=6e4,De=864e5,ye="_prevArrow",Ce="_nextArrow",Se="aria-disabled",Te="aria-selected",Fe="aria-label",xe=e.proxy,Me=e.extend,Ye=Date,Ae={month:0,year:1,decade:2,century:3},Ne=".k-header, .k-calendar-header",Ve='<div class="k-header"><a href="\\#" #=actionAttr#="prev" role="button" class="k-link k-nav-prev" '+Fe+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="\\#" #=actionAttr#="next" role="button" class="k-link k-nav-next" '+Fe+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></div>',Oe='<div class="k-calendar-header"><a href="\\#" #=actionAttr#="nav-up" role="button" aria-live="assertive" aria-atomic="true" class="k-button k-title"></a><span class="k-calendar-nav"><a #=actionAttr#="prev" class="k-button k-button-icon k-prev-view"><span class="k-icon k-i-arrow-60-left"></span></a><a #=actionAttr#="today" class="k-today">#=messages.today#</a><a #=actionAttr#="next" class="k-button k-button-icon k-next-view"><span class="k-icon k-i-arrow-60-right"></span></a></span></div>',Be=Y.extend({init:function(t,a){var n,r,s=this;a=a||{},a.componentType=a.componentType||"classic",Y.fn.init.call(s,t,a),t=s.wrapper=s.element,a=s.options,a.url=F.unescape(a.url),s.options.disableDates=w(s.options.disableDates),s._templates(),s._selectable(),s._header(),s._viewWrapper(),s.options.hasFooter?s._footer(s.footer):(s._today=s.element.find("a.k-today"),s._toggle()),r=t.addClass("k-widget k-calendar "+(a.weekNumber?" k-week-number":"")).on(ke+" "+be,de,f).on(L,"table.k-content",xe(s._move,s)).on(K+" touchend",de,function(t){var n=t.currentTarget.firstChild,r=S(n);n.href.indexOf("#")!=-1&&t.preventDefault(),"month"==s._view.name&&s.options.disableDates(r)||"month"==s._view.name&&"single"!=a.selectable||s._click(e(n))}).on("mouseup"+G,"table.k-content, .k-footer",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(Q),s._isMultipleSelection()&&s.options.weekNumber&&t.on(K,ge,function(t){var a=e(t.currentTarget).closest("tr").find(fe).first(),n=s.selectable._lastActive=e(t.currentTarget).closest("tr").find(fe).last();s.selectable.selectRange(a,n,{event:t}),s._current=s._value=S(n.find("a")),s._setCurrent(s._current)}),h(a),n=N(a.value,a.format,a.culture),s._selectDates=[],s._index=Ae[a.start],s._current=new Ye((+i(n,a.min,a.max))),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(le)){var e=s._view.toDateString(l());s._cell=s._cellByDate(e)}s._cell.addClass(ie)},s._removeClassProxy=function(){s._active=!1,s._cell&&s._cell.removeClass(ie)},s.value(n),s._isMultipleSelection()&&a.selectDates.length>0&&s.selectDates(a.selectDates),F.notify(s)},options:{name:"Calendar",value:null,min:new Ye(1900,0,1),max:new Ye(2099,11,31),dates:[],disableDates:null,url:"",culture:"",footer:"",format:"",month:{},weekNumber:!1,selectable:"single",selectDates:[],start:$,depth:$,animation:{horizontal:{effects:Z,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}},messages:{weekColumnHeader:"",today:"Today"},componentType:"classic"},events:[te,ae],componentTypes:{classic:{header:{template:Ve},hasFooter:!0,linksSelector:".k-link",contentClasses:"k-content"},modern:{header:{template:Oe},hasFooter:!1,linksSelector:".k-button",contentClasses:"k-content k-calendar-content"}},setOptions:function(e){var t=this;h(e),e.disableDates=w(e.disableDates),t._destroySelectable(),Y.fn.setOptions.call(t,e),t._templates(),t._selectable(),t._viewWrapper(),t.options.hasFooter?t._footer(t.footer):(t.element.find(".k-footer").hide(),t._toggle()),t._index=Ae[t.options.start],t.navigate(),e.weekNumber&&t.element.addClass("k-week-number")},destroy:function(){var e=this,t=e._today;e.element.off(G),e._title.off(G),e[ye].off(G),e[Ce].off(G),e._destroySelectable(),F.destroy(e._table),t&&F.destroy(t.off(G)),Y.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.trigger("focus")},min:function(e){return this._option(J,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(ye,-1)},navigateToFuture:function(){this._navigate(Ce,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(le)||e.navigate(e._current,++t)},navigateDown:function(e){var a=this,n=a._index,r=a.options.depth;if(e)return n===Ae[r]?(C(a._value,a._current)&&C(a._value,e)||(a.value(e),a.trigger(te)),t):(a.navigate(e,--n),t)},navigate:function(a,n){var r,l,s,o,c,u,d,f,g,v,_,h,p,k,b,w,D;n=isNaN(n)?Ae[n]:n,r=this,l=r.options,s=l.culture,o=l.min,c=l.max,u=r._title,d=r._table,f=r._oldTable,g=r._current,v=a&&+a>+g,_=n!==t&&n!==r._index,w=r.element.children(".k-calendar-view"),a||(a=g),r._current=a=new Ye((+i(a,o,c))),n===t?n=r._index:r._index=n,r._view=p=T.views[n],k=p.compare,b=n===Ae[ee],u.toggleClass(le,b).attr(Se,b),b=k(a,o)<1,r[ye].toggleClass(le,b).attr(Se,b),r[ye].hasClass(le)&&r[ye].removeClass(re),b=k(a,c)>-1,r[Ce].toggleClass(le,b).attr(Se,b),r[Ce].hasClass(le)&&r[Ce].removeClass(re),d&&f&&f.data("animating")&&(f.kendoStop(!0,!0),d.kendoStop(!0,!0)),r._oldTable=d,d&&!r._changeView||(u.html(p.title(a,o,c,s)),r._table=h=e(p.content(Me({min:o,max:c,date:a,url:l.url,dates:l.dates,format:l.format,otherMonth:!0,culture:s,disableDates:l.disableDates,isWeekColumnVisible:l.weekNumber,messages:l.messages,contentClasses:r.options.contentClasses},r[p.name]))),m(h,p.name),D=d&&d.data("start")===h.data("start"),r._animate({from:d,to:h,vertical:_,future:v,replace:D}),"modern"===r.options.componentType&&(w.removeClass("k-calendar-monthview k-calendar-yearview k-calendar-decadeview k-calendar-centuryview"),w.addClass("k-calendar-"+p.name+"view")),r.trigger(ae),r._focus(a)),n===Ae[l.depth]&&r._selectDates.length>0&&r._visualizeSelectedDatesInView(),"single"===r.options.selectable&&n===Ae[l.depth]&&r._value&&!r.options.disableDates(r._value)&&r._selectCell(r._value),r._setCurrent(a),!d&&r._cell&&r._cell.removeClass(ie),r._changeView=!0},selectDates:function(a){var n,r,l=this;return a===t?l._selectDates:(r=a.map(function(e){return e.getTime()}).filter(function(e,t,a){return a.indexOf(e)===t}).map(function(e){return new Date(e)}),n=e.grep(r,function(e){if(e)return+l._validateValue(new Date(e.setHours(0,0,0,0)))===+e}),l._selectDates=n.length>0?n:0===r.length?r:l._selectDates,l._visualizeSelectedDatesInView(),t)},value:function(e){var a,n=this,r=n._view,l=n._view;return e===t?n._value:(e=n._validateValue(e),e&&n._isMultipleSelection()&&(a=new Date((+e)),a.setHours(0,0,0,0),n._selectDates=[a],n.selectable._lastActive=null),r&&null===e&&n._cell?n._cell.removeClass(ve):(n._changeView=!e||l&&0!==l.compare(e,n._current),n.navigate(e)),t)},_validateValue:function(e){var a=this,n=a.options,r=n.min,l=n.max;return null===e&&(a._current=v(a._current.getFullYear(),a._current.getMonth(),a._current.getDate())),e=N(e,n.format,n.culture),null!==e&&(e=new Ye((+e)),s(e,r,l)||(e=null)),null!==e&&a.options.disableDates(new Date((+e)))?a._value===t&&(a._value=null):a._value=e,a._value},_visualizeSelectedDatesInView:function(){var t,a=this,n={};e.each(a._selectDates,function(e,t){n[F.calendar.views[0].toDateString(t)]=t}),a.selectable.clear(),t=a._table.find(de).filter(function(t,a){return n[e(a.firstChild).attr(F.attr(ne))]}),t.length>0&&a.selectable._selectElement(t,!0)},_isMultipleSelection:function(){var e=this;return"multiple"===e.options.selectable},_selectable:function(){var e,t,a=this;a._isMultipleSelection()&&(e=a.options.selectable,t=B.parseOptions(e),t.multiple&&a.element.attr("aria-multiselectable","true"),a.selectable=new B(a.wrapper,{aria:!0,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:t.multiple,filter:"table.k-month:eq(0) "+fe,change:xe(a._onSelect,a),relatedTarget:xe(a._onRelatedTarget,a)}))},_onRelatedTarget:function(e){var t=this;t.selectable.options.multiple&&e.is(fe)&&(t._current=S(e.find("a")),t._setCurrent(t._current))},_onSelect:function(a){var n=this,r=a,l=B.parseOptions(n.options.selectable);return l.multiple?(r.event.ctrlKey||r.event.metaKey?e(r.event.currentTarget).is(fe)?n._toggleSelection(e(r.event.currentTarget)):(n._cellsBySelector(fe).each(function(t,a){var r=S(e(a).find("a"));n._deselect(r)}),n._addSelectedCellsToArray()):r.event.shiftKey?n._rangeSelection(n._cell):e(r.event.currentTarget).is(de)?n.value(S(e(r.event.currentTarget).find("a"))):(n._selectDates=[],n._addSelectedCellsToArray()),n.trigger(te),t):(e(r.event.currentTarget).is("td")&&!e(r.event.currentTarget).hasClass("k-state-selected")?e(r.event.currentTarget).addClass("k-state-selected"):n._click(e(r.event.currentTarget).find("a")),t)},_destroySelectable:function(){var e=this;e.selectable&&(e.selectable.destroy(),e.selectable=null)},_toggleSelection:function(e){var t=this,a=S(e.find("a"));e.hasClass("k-state-selected")?t._selectDates.push(a):t._deselect(a)},_rangeSelection:function(e,t){var a,n=this,r=t||S(n.selectable.value().first().find("a")),l=S(e.find("a"));n.selectable._lastActive||n._value?r=n.selectable._lastActive?S(n.selectable._lastActive.find("a")):new Date((+n._value)):n.selectable._lastActive=t?n._cellByDate(n._view.toDateString(t),fe):n.selectable.value().first(),n._selectDates=[],a=u(r,l),d(n._selectDates,a,r,n.options.disableDates),n._visualizeSelectedDatesInView()},_cellsBySelector:function(e){var t=this;return t._table.find(e)},_addSelectedCellsToArray:function(){var t=this;t.selectable.value().each(function(a,n){var r=S(e(n.firstChild));t.options.disableDates(r)||t._selectDates.push(r)})},_deselect:function(e){var t=this,a=t._selectDates.map(Number).indexOf(+e);a!=-1&&t._selectDates.splice(a,1)},_dateInView:function(e){var t=this,a=S(t._cellsBySelector(fe+":first").find("a")),n=S(t._cellsBySelector(fe+":last").find("a"));return+e<=+n&&+e>=+a},_isNavigatable:function(e,t){var a,n,r=this,l=r.options.disableDates;return"month"==r._view.name?!l(e):(n=r.wrapper.find("."+ie).index(),a=r.wrapper.find(".k-content td:eq("+(n+t)+")"),a.is(fe)||!l(e))},_move:function(a){var n,r,l,o,c,u=this,d=u.options,f=a.keyCode,g=u._view,_=u._index,h=u.options.min,m=u.options.max,p=new Ye((+u._current)),k=F.support.isRtl(u.wrapper),b=u.options.disableDates;return a.target===u._table[0]&&(u._active=!0),f==A.RIGHT&&!k||f==A.LEFT&&k?(n=1,r=!0):f==A.LEFT&&!k||f==A.RIGHT&&k?(n=-1,r=!0):f==A.UP?(n=0===_?-7:-4,r=!0):f==A.DOWN?(n=0===_?7:4,r=!0):f==A.SPACEBAR?(n=0,r=!0):f!=A.HOME&&f!=A.END||(l=f==A.HOME?"first":"last",o=g[l](p),p=new Ye(o.getFullYear(),o.getMonth(),o.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds()),p.setFullYear(o.getFullYear()),r=!0),a.ctrlKey||a.metaKey?f==A.RIGHT&&!k||f==A.LEFT&&k?(u.navigateToFuture(),r=!0):f==A.LEFT&&!k||f==A.RIGHT&&k?(u.navigateToPast(),r=!0):f==A.UP?(u.navigateUp(),r=!0):f==A.DOWN?(u._click(e(u._cell[0].firstChild)),r=!0):f!=A.ENTER&&f!=A.SPACEBAR||!u._isMultipleSelection()||(u._keyboardToggleSelection(a),c=S(e(u._cell[0]).find("a")),u._setCurrent(c)):a.shiftKey?(n!==t||l)&&(l||g.setDate(p,n),s(p,h,m)||(p=i(p,d.min,d.max)),b(p)&&(p=u._nextNavigatable(p,n)),h=v(h.getFullYear(),h.getMonth(),h.getDate()),u._isMultipleSelection()?u._keyboardRangeSelection(a,p):u._focus(p)):(f==A.ENTER||f==A.SPACEBAR?("month"==g.name&&u._isMultipleSelection()?(u.value(S(e(u._cell.find("a")))),u.selectable._lastActive=e(u._cell[0]),u.trigger(te)):u._click(e(u._cell[0].firstChild)),r=!0):f==A.PAGEUP?(r=!0,u.navigateToPast()):f==A.PAGEDOWN&&(r=!0,u.navigateToFuture()),(n||l)&&(l||g.setDate(p,n),h=v(h.getFullYear(),h.getMonth(),h.getDate()),s(p,h,m)||(p=i(p,d.min,d.max)),u._isNavigatable(p,n)||(p=u._nextNavigatable(p,n)),u._isMultipleSelection()?u._dateInView(p)?(u._current=p,u._setCurrent(p)):u.navigate(p):u._focus(p))),r&&a.preventDefault(),u._current},_keyboardRangeSelection:function(e,a){var n,r,l=this;return l._dateInView(a)?(l.selectable.options.filter=l.wrapper.find("table").length>1&&+a>+l._current?"table.k-month:eq(1) "+fe:"table.k-month:eq(0) "+fe,l._setCurrent(a),l._current=a,l._rangeSelection(l._cellByDate(l._view.toDateString(a),fe),a),l.trigger(te),l.selectable.options.filter="table.k-month:eq(0) "+fe,t):(l._selectDates=[],n=l.selectable._lastActive?S(l.selectable._lastActive.find("a")):a,r=u(n,new Date((+a))),d(l._selectDates,r,n,l.options.disableDates),l.navigate(a),l._current=a,l.selectable._lastActive=l.selectable._lastActive||l._cellByDate(l._view.toDateString(a),fe),l.trigger(te),t)},_keyboardToggleSelection:function(t){var a=this;t.currentTarget=a._cell[0],a.selectable._lastActive=e(a._cell[0]),e(a._cell[0]).hasClass(ve)?(a.selectable._unselect(e(a._cell[0])),a.selectable.trigger(te,{event:t})):a.selectable.value(e(a._cell[0]),{event:t})},_nextNavigatable:function(e,t){var a=this,n=!0,r=a._view,l=a.options.min,i=a.options.max,o=a.options.disableDates,c=new Date(e.getTime());for(r.setDate(c,-t);n;){if(r.setDate(e,t),!s(e,l,i)){e=c;break}n=o(e)}return e},_animate:function(e){var t=this,a=e.from,n=e.to,r=t._active,l=t.element.children(".k-calendar-view");a?a.parent().data("animating")?(a.off(G),a.parent().kendoStop(!0,!0).remove(),a.remove(),l.append(n),t._focusView(r)):!a.is(":visible")||t.options.animation===!1||e.replace?(n.insertAfter(a),a.off(G).remove(),t._focusView(r)):t[e.vertical?"_vertical":"_horizontal"](a,n,e.future):(l.append(n),t._bindTable(n))},_horizontal:function(e,t,a){var n=this,r=n._active,l=n.options.animation.horizontal,i=l.effects,s=j(e);i&&i.indexOf(Z)!=-1&&(e.add(t).css({width:s}),e.wrap("<div/>"),n._focusView(r,e),e.parent().css({position:"relative",width:2*s,"float":X,"margin-left":a?0:-s}),t[a?"insertAfter":"insertBefore"](e),Me(l,{effects:Z+":"+(a?"right":X),complete:function(){e.off(G).remove(),n._oldTable=null,t.unwrap(),n._focusView(r)}}),e.parent().kendoStop(!0,!0).kendoAnimate(l))},_vertical:function(e,t){var a,n,r=this,l=r.options.animation.vertical,i=l.effects,s=r._active;i&&i.indexOf("zoom")!=-1&&(t.insertBefore(e),e.css({position:"absolute",width:t.width()}),R&&(a=r._cellByDate(r._view.toDateString(r._current)),n=a.position(),n=n.left+parseInt(a.width()/2,10)+"px "+(n.top+parseInt(a.height()/2,10)+"px"),t.css(R,n)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(G).remove(),r._oldTable=null,r._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(l))},_cellByDate:function(t,a){return this._table.find(a?a:"td:not(."+se+")").filter(function(){return e(this.firstChild).attr(F.attr(ne))===t})},_selectCell:function(e){var t=this,a=t._selectedCell,n=t._view.toDateString(e);a&&a[0]&&(a[0].removeAttribute(Te),a.removeClass(ve)),a=t._cellByDate(n,"multiple"==t.options.selectable?de:"td:not(."+se+")"),t._selectedCell=a,a.addClass(ve).attr(Te,!0)},_setCurrent:function(e){var t=this,a=F.guid(),n=t._cell,r=t._view.toDateString(e);n&&n[0]&&(n.removeClass(ie),n[0].removeAttribute(Fe),n[0].removeAttribute(Q)),n=t._cellByDate(r,"multiple"==t.options.selectable?de:"td:not(."+se+")"),t._cell=n,n.attr(Q,a).addClass(ie),t._table[0]&&(t._table[0].removeAttribute("aria-activedescendant"),t._table.attr("aria-activedescendant",a))},_bindTable:function(e){e.on(me,this._addClassProxy).on(_e,this._removeClassProxy)},_click:function(e){var t=this,a=t.options,n=new Date((+t._current)),r=S(e);V(r,0),"month"==t._view.name&&t.options.disableDates(r)&&(r=t._value),t._view.setDate(n,r),t.navigateDown(i(n,a.min,a.max))},_focus:function(e){var t=this,a=t._view;0!==a.compare(e,t._current)?t.navigate(e):(t._current=e,t._setCurrent(e))},_focusView:function(e,t){e&&this.focus(t)},_viewWrapper:function(){var t=this,a=t.element,n=a.children(".k-calendar-view");n[0]||(n=e("<div class='k-calendar-view' />").insertAfter(a.find(Ne)))},_footer:function(a){var n=this,r=l(),i=n.element,s=i.find(".k-footer");return a?(s[0]||(s=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(i)),n._today=s.show().find(".k-link").html(a(r)).attr("title",F.toString(r,"D",n.options.culture)),n._toggle(),t):(n._toggle(!1),s.hide(),t)},_header:function(){var t=this,a=t.element,n=t.options.linksSelector;a.find(Ne)[0]||a.html(F.template(t.options.header.template)(e.extend(!0,{},t.options,{actionAttr:F.attr("action")}))),a.find(n).on(ke+" "+be+" "+me+" "+_e,f).on(K+" touchend"+G,function(){return!1}),t._title=a.find("["+F.attr("action")+'="nav-up"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[ye]=a.find("["+F.attr("action")+'="prev"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[Ce]=a.find("["+F.attr("action")+'="next"]').on(K+" touchend"+G,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()}),a.find("["+F.attr("action")+'="today"]').on(K+" touchend"+G,xe(t._todayClick,t))},_navigate:function(e,t){var a,n=this,r=n._index+1,l=new Ye((+n._current));n._isMultipleSelection()&&(a=n._table.find("td:not(.k-other-month):not(.k-out-of-range)").has(".k-link").first(),l=S(a.find("a")),n._current=new Date((+l))),e=n[e],e.hasClass(le)||(r>3?l.setFullYear(l.getFullYear()+100*t):T.views[r].setDate(l,t),n.navigate(l))},_option:function(e,a){var n,r=this,l=r.options,i=r._value||r._current;return a===t?l[e]:(a=N(a,l.format,l.culture),a&&(l[e]=new Ye((+a)),n=e===J?a>i:i>a,(n||b(i,a))&&(n&&(r._value=null),r._changeView=!0),r._changeView||(r._changeView=!(!l.month.content&&!l.month.empty)),r.navigate(r._value),r._toggle()),t)},_toggle:function(e){var a=this,n=a.options,r=a.options.disableDates(l()),i=a._today,o=a._todayClass();e===t&&(e=s(l(),n.min,n.max)),i&&(i.off(K),e&&!r?i.addClass(o).removeClass(le).on(K,xe(a._todayClick,a)):i.removeClass(o).addClass(le).on(K,g))},_todayClass:function(){return"modern"===this.options.componentType?"k-today":ue},_todayClick:function(e){var t=this,a=Ae[t.options.depth],n=t.options.disableDates,r=l();e.preventDefault(),n(r)||(0===t._view.compare(t._current,r)&&t._index==a&&(t._changeView=!1),t._isMultipleSelection()&&(t._selectDates=[r],t.selectable._lastActive=null),t._value=r,t.navigate(r,a),t.trigger(te))},_templates:function(){var e=this,t=e.options,a=t.footer,n=t.month,r=n.content,l=n.weekNumber,i=n.empty,s='#= kendo.toString(data,"D","'+t.culture+'") #';e.month={content:E('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+F.attr(ne)+'="#=data.dateString#" title="#=data.title#">'+(r||"#=data.value#")+"</a></td>",{useWithBlock:!!r}),empty:E('<td role="gridcell">'+(i||"&nbsp;")+"</td>",{useWithBlock:!!i}),weekNumber:E('<td class="k-alt">'+(l||"#= data.weekNumber #")+"</td>",{useWithBlock:!!l})},a&&a!==!0&&(s=a),e.footer=a!==!1?E(s,{useWithBlock:!1}):null},_updateAria:function(e,t){var a,n=this,r=n._cell,l=n.view().valueType(),i=t||n.current();return a="month"===l?F.toString(i,"MMMM"):"date"===l?F.toString(i,"D"):r.text(),r.attr("aria-label",e({current:i,valueType:l,text:a})),r.attr("id")}});M.plugin(Be),T={firstDayOfMonth:function(e){return v(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||F.culture().calendar;var a=t.firstDay,n=new Ye(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());for(n.setFullYear(e.getFullYear());n.getDay()!=a;)T.setTime(n,-1*De);return n},setTime:function(e,t){var a=e.getTimezoneOffset(),n=new Ye(e.getTime()+t),r=n.getTimezoneOffset()-a;e.setTime(n.getTime()+r*we)},views:[{name:$,title:function(e,t,a,n){return _(n).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){var t=this,a=0,r=e.min,i=e.max,s=e.date,c=e.dates,u=e.format,d=e.culture,f=e.url,g=e.showHeader,h=e.otherMonth,m=e.isWeekColumnVisible,k=f&&c[0],b=_(d),w=b.firstDay,D=b.days,y=o(D.names,w),C=o(D.namesShort,w),S=T.firstVisibleDay(s,b),x=t.first(s),M=t.last(s),Y=t.toDateString,A=l(),N=e.contentClasses,B='<table tabindex="0" role="grid" class="'+N+'" cellspacing="0" data-start="'+Y(S)+'">';for(B+=g?'<caption class="k-month-header">'+this.title(s,r,i,d)+'</caption><thead><tr role="row">':'<thead><tr role="row">',m&&(B+='<th scope="col" class="k-alt">'+e.messages.weekColumnHeader+"</th>");a<7;a++)B+='<th scope="col" title="'+y[a]+'">'+C[a]+"</th>";return V(A,0),A=+A,n({cells:42,perRow:7,html:B+='</tr></thead><tbody><tr role="row">',start:S,isWeekColumnVisible:m,weekNumber:e.weekNumber,min:v(r.getFullYear(),r.getMonth(),r.getDate()),max:v(i.getFullYear(),i.getMonth(),i.getDate()),otherMonth:h,content:e.content,lastDayOfMonth:M,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,a){var n=[],r=e.getDay(),l="",i="#";return(e<x||e>M)&&n.push(se),a(e)&&n.push(le),+e===A&&n.push("k-today"),0!==r&&6!==r||n.push("k-weekend"),k&&p(+e,c)&&(i=f.replace("{0}",F.toString(e,u,d)),l=" k-action-link"),{date:e,dates:c,ns:F.ns,title:F.toString(e,"D",d),value:e.getDate(),dateString:Y(e),cssClass:n[0]?' class="'+n.join(" ")+'"':"",linkClass:l,url:i}},weekNumberBuild:function(e){return{weekNumber:O(e,F.culture().calendar.firstDay),currentDate:e}}})},first:function(e){return T.firstDayOfMonth(e)},last:function(e){var t=v(e.getFullYear(),e.getMonth()+1,0),a=T.firstDayOfMonth(e),n=Math.abs(t.getTimezoneOffset()-a.getTimezoneOffset());return n&&t.setHours(a.getHours()+n/60),t},compare:function(e,t){var a,n=e.getMonth(),r=e.getFullYear(),l=t.getMonth(),i=t.getFullYear();return a=r>i?1:r<i?-1:n==l?0:n>l?1:-1},setDate:function(e,t){var a=e.getHours();t instanceof Ye?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):T.setTime(e,t*De),V(e,a)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()},valueType:function(){return"date"}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=_(e.culture).months.namesAbbr,a=this.toDateString,r=e.min,l=e.max,i="";return e.showHeader&&(i+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',i+=this.title(e.date),i+='</caption><tbody><tr role="row">'),n({min:v(r.getFullYear(),r.getMonth(),1),max:v(l.getFullYear(),l.getMonth(),1),start:v(e.date.getFullYear(),0,1),html:i,setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:F.ns,dateString:a(e),cssClass:""}}})},first:function(e){return v(e.getFullYear(),0,e.getDate())},last:function(e){return v(e.getFullYear(),11,e.getDate())},compare:function(e,t){return r(e,t)},setDate:function(e,t){var a,n=e.getHours();t instanceof Ye?(a=t.getMonth(),e.setFullYear(t.getFullYear(),a,e.getDate()),a!==e.getMonth()&&e.setDate(0)):(a=e.getMonth()+t,e.setMonth(a),a>11&&(a-=12),a>0&&e.getMonth()!=a&&e.setDate(0)),V(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"},valueType:function(){return"month"}},{name:"decade",title:function(e,t,n){return a(e,t,n,10)},content:function(e){var t=e.date.getFullYear(),a=this.toDateString,r="";return e.showHeader&&(r+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',r+=this.title(e.date,e.min,e.max),r+='</caption><tbody><tr role="row">'),n({start:v(t-t%10-1,0,1),min:v(e.min.getFullYear(),0,1),max:v(e.max.getFullYear(),0,1),otherMonth:e.otherMonth,html:r,setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:F.ns,dateString:a(e),cssClass:0===t||11==t?oe:""}}})},first:function(e){var t=e.getFullYear();return v(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return v(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,10)},setDate:function(e,t){c(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"},valueType:function(){return"year"}},{name:ee,title:function(e,t,n){return a(e,t,n,100)},content:function(e){var t=e.date.getFullYear(),a=e.min.getFullYear(),r=e.max.getFullYear(),l=this.toDateString,i=a,s=r,o="";return i-=i%10,s-=s%10,s-i<10&&(s=i+9),e.showHeader&&(o+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',o+=this.title(e.date,e.min,e.max),o+='</caption><tbody><tr role="row">'),n({start:v(t-t%100-10,0,1),min:v(i,0,1),max:v(s,0,1),otherMonth:e.otherMonth,html:o,setter:this.setDate,build:function(e,t){var n=e.getFullYear(),i=n+9;return n<a&&(n=a),i>r&&(i=r),{ns:F.ns,value:n+" - "+i,dateString:l(e),cssClass:0===t||11==t?oe:""}}})},first:function(e){var t=e.getFullYear();return v(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return v(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,100)},setDate:function(e,t){c(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"},valueType:function(){return"decade"}}]},T.isEqualDatePart=k,T.isEqualDate=C,T.restrictValue=i,T.isInRange=s,T.addClassToViewContainer=m,T.normalize=h,T.viewsEnum=Ae,T.disabled=w,T.toDateObject=S,T.getToday=l,T.createDate=v,F.calendar=T}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.calendar.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.datepicker.min",["kendo.calendar.min","kendo.popup.min","kendo.dateinput.min"],e)}(function(){return function(e,t){function a(t){var a=t.parseFormats,n=t.format;H.normalize(t),a=e.isArray(a)?a:[a],a.length||a.push("yyyy-MM-dd"),e.inArray(n,a)===-1&&a.splice(0,0,t.format),t.parseFormats=a}function n(e){e.preventDefault()}var i,o=window.kendo,r=o.ui,l=r.Widget,s=o.parseDate,u=o.keys,p=o.support,d=o.template,c=o._activeElement,m="<div />",_="<span />",f=".kendoDatePicker",v="click"+f,h=p.mouseAndTouchPresent?o.applyEventMap("up",f.slice(1)):v,g="open",y="close",w="change",b="disabled",k="readonly",D="k-state-default",x="k-state-focused",I="k-state-selected",A="k-state-disabled",T="k-state-hover",V="mouseenter"+f+" mouseleave"+f,C="mousedown"+f,O="id",P="min",R="max",E="month",N="aria-disabled",F="aria-readonly",W="aria-expanded",S="aria-hidden",H=o.calendar,M=H.isInRange,q=H.restrictValue,z=H.isEqualDatePart,K=e.extend,j=e.proxy,B=Date,Q=function(t){var a,n=this,i=document.body,l=e(m).attr(S,"true").addClass("k-calendar-container");n.options=t=t||{},a=t.id,t.omitPopup?l=t.dateDiv:(l.appendTo(i),n.popup=new r.Popup(l,K(t.popup,t,{name:"Popup",isRtl:o.support.isRtl(t.anchor)}))),a&&(a+="_dateview",l.attr(O,a),n._dateViewID=a),n.div=l,n.value(t.value)};Q.prototype={_calendar:function(){var t,a=this,i=a.calendar,l=a.options;i||(t=e(m).attr(O,o.guid()).appendTo(l.omitPopup?l.dateDiv:a.popup.element).on(C,n).on(v,"td:has(.k-link)",j(a._click,a)),a.calendar=i=new r.Calendar(t,{componentType:l.componentType}),a._setOptions(l),i.navigate(a._value||a._current,l.start),a.value(a._value))},_setOptions:function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,max:e.max,min:e.min,month:e.month,weekNumber:e.weekNumber,start:e.start,disableDates:e.disableDates})},setOptions:function(e){var t=this.options,a=e.disableDates;a&&(e.disableDates=H.disabled(a)),this.options=K(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup&&this.popup.destroy()},open:function(){var e,t=this;t._calendar(),e=t.popup._hovered,t.popup._hovered=!0,t.popup.open(),setTimeout(function(){t.popup._hovered=e},1)},close:function(){this.popup&&this.popup.close()},min:function(e){this._option(P,e)},max:function(e){this._option(R,e)},toggle:function(){var e=this;e[e.popup.visible()?y:g]()},move:function(e){var t=this,a=e.keyCode,n=t.calendar,i=e.ctrlKey&&a==u.DOWN||a==u.ENTER,o=!1;if(e.altKey)a==u.DOWN?(t.open(),e.preventDefault(),o=!0):a==u.UP&&(t.close(),e.preventDefault(),o=!0);else if(t.popup&&t.popup.visible()){if(a==u.ESC||i&&n._cell.hasClass(I))return t.close(),e.preventDefault(),!0;a!=u.SPACEBAR&&(t._current=n._move(e)),o=!0}return o},current:function(e){this._current=e,this.calendar&&this.calendar._focus(e)},value:function(e){var t=this,a=t.calendar,n=t.options,i=n.disableDates;i&&i(e)&&(e=null),t._value=e,t._current=new B((+q(e,n.min,n.max))),a&&a.value(e)},_click:function(e){e.currentTarget.className.indexOf(I)!==-1&&(this.calendar.trigger("change"),this.close())},_option:function(e,t){var a=this,n=a.calendar;a.options[e]=t,n&&n[e](t)}},Q.normalize=a,o.DateView=Q,i=l.extend({init:function(t,n){var i,r,u=this;l.fn.init.call(u,t,n),t=u.element,n=u.options,n.disableDates=o.calendar.disabled(n.disableDates),n.min=s(t.attr("min"))||s(n.min),n.max=s(t.attr("max"))||s(n.max),a(n),u._initialOptions=K({},n),u._wrapper(),u.dateView=new Q(K({},n,{id:t.attr(O),anchor:u.wrapper,change:function(){u._change(this.value()),u.close()},close:function(e){u.trigger(y)?e.preventDefault():(t.attr(W,!1),r.attr(S,!0))},open:function(e){var a,n=u.options;u.trigger(g)?e.preventDefault():(u.element.val()!==u._oldText&&(a=s(t.val(),n.parseFormats,n.culture),u.dateView[a?"current":"value"](a)),t.attr(W,!0),r.attr(S,!1),u._updateARIA(a))}})),r=u.dateView.div,u._icon();try{t[0].setAttribute("type","text")}catch(p){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-haspopup":"grid","aria-owns":u.dateView._dateViewID,autocomplete:"off"}),u._reset(),u._template(),i=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),i?u.enable(!1):u.readonly(t.is("[readonly]")),u._createDateInput(n),u._old=u._update(n.value||u.element.val()),u._oldText=t.val(),o.notify(u)},events:[g,y,w],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:E,depth:E,animation:{},month:{},dates:[],disableDates:null,ARIATemplate:"Current focused #=data.valueType# is #=data.text#",dateInput:!1,weekNumber:!1,componentType:"classic"},setOptions:function(e){var t=this,n=t._value;l.fn.setOptions.call(t,e),e=t.options,e.min=s(e.min),e.max=s(e.max),a(e),t.dateView.setOptions(e),t._createDateInput(e),t._dateInput||t.element.val(o.toString(n,e.format,e.culture)),n&&t._updateARIA(n)},_editable:function(e){var t=this,a=t._dateIcon.off(f),i=t.element.off(f),o=t._inputWrapper.off(f),r=e.readonly,l=e.disable;r||l?(o.addClass(l?A:D).removeClass(l?D:A),i.attr(b,l).attr(k,r).attr(N,l).attr(F,r)):(o.addClass(D).removeClass(A).on(V,t._toggleHover),i&&i.length&&(i[0].removeAttribute(b),i[0].removeAttribute(k)),i.attr(N,!1).attr(F,!1).on("keydown"+f,j(t._keydown,t)).on("focusout"+f,j(t._blur,t)).on("focus"+f,function(){t._inputWrapper.addClass(x)}),a.on(h,j(t._click,t)).on(C,n))},readonly:function(e){this._editable({readonly:e===t||e,disable:!1}),this._dateInput&&this._dateInput._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)}),this._dateInput&&this._dateInput._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;l.fn.destroy.call(e),e.dateView.destroy(),e.element.off(f),e._dateIcon.off(f),e._inputWrapper.off(f),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(P,e)},max:function(e){return this._option(R,e)},value:function(e){var a=this;return e===t?a._value:(a._old=a._update(e),null!==a._old||a._dateInput||a.element.val(""),a._oldText=a.element.val(),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(T,"mouseenter"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&(e._change(t),t||e.dateView.current(o.calendar.getToday())),e._inputWrapper.removeClass(x)},_click:function(e){var t=this;t.dateView.toggle(),t._focusElement(e.type)},_focusElement:function(e){var t=this.element;p.touch&&(!p.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===c()||t.trigger("focus")},_change:function(e){var t,a,n,i=this,r=i.element.val();e=i._update(e),t=!o.calendar.isEqualDate(i._old,e),a=t&&!i._typing,n=r!==i.element.val(),(a||n)&&i.element.trigger(w),t&&(i._old=e,i._oldText=i.element.val(),i.trigger(w)),i._typing=!1},_keydown:function(e){var t=this,a=t.dateView,n=t.element.val(),i=!1;a.popup.visible()||e.keyCode!=u.ENTER||n===t._oldText?(i=a.move(e),t._updateARIA(a._current),i?t._dateInput&&e.stopImmediatePropagation&&e.stopImmediatePropagation():t._typing=!0):t._change(n)},_icon:function(){var t,a=this,n=a.element;t=n.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-calendar"></span></span>').insertAfter(n)),a._dateIcon=t.attr({role:"button","aria-controls":a.dateView._dateViewID})},_option:function(e,a){var n=this,i=n.options;return a===t?i[e]:(a=s(a,i.parseFormats,i.culture),a&&(i[e]=new B((+a)),n.dateView[e](a)),t)},_update:function(e){var t,a=this,n=a.options,i=n.min,r=n.max,l=a._value,u=s(e,n.parseFormats,n.culture),p=null===u&&null===l||u instanceof Date&&l instanceof Date;return n.disableDates(u)&&(u=null,a._old||a.element.val()||(e=null)),+u===+l&&p?(t=o.toString(u,n.format,n.culture),t===e||a._dateInput&&!u||a.element.val(null===u?e:t),u):(null!==u&&z(u,i)?u=q(u,i,r):M(u,i,r)||(u=null),a._value=u,a.dateView.value(u),a._dateInput&&u?a._dateInput.value(u||e):a.element.val(o.toString(u||e,n.format,n.culture)),a._updateARIA(u),u)},_wrapper:function(){var t,a=this,n=a.element;t=n.parents(".k-datepicker"),t[0]||(t=n.wrap(_).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(_).parent()),t[0].style.cssText=n[0].style.cssText,n.css({width:"100%",height:n[0].style.height}),a.wrapper=t.addClass("k-widget k-datepicker").addClass(n[0].className).removeClass("input-validation-error"),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,n=a.attr("form"),i=t.options,r=i.disableDates,l=i.parseFormats.length?i.parseFormats:null,s=t._initialOptions.value,u=n?e("#"+n):a.closest("form"),p=a[0].defaultValue;s&&r&&r(s)&&(s=null),p&&o.parseDate(p,l,i.culture)||!s||a.attr("value",o.toString(s,i.format,i.culture)),u[0]&&(t._resetHandler=function(){t.value(s||a[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=u.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=j(d(this.options.ARIATemplate),this)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new r.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max}))},_updateARIA:function(e){var t=this,a=t.dateView.calendar;t.element&&t.element.length&&t.element[0].removeAttribute("aria-activedescendant"),a&&t.element.attr("aria-activedescendant",a._updateAria(t._ariaTemplate,e))}}),r.plugin(i)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.datepicker.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.timepicker.min",["kendo.popup.min","kendo.dateinput.min"],t)}(function(){return function(t,e){function i(){var t=new st,e=new st(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),i=new st(t.getFullYear(),t.getMonth(),t.getDate(),12,0,0);return-1*(e.getTimezoneOffset()-i.getTimezoneOffset())}function n(t){return 60*t.getHours()*z+t.getMinutes()*z+1e3*t.getSeconds()+t.getMilliseconds()}function a(t){var e=new Date(2100,0,1);return e.setMinutes(-t),e}function s(t,e,i){var a,s=n(e),o=n(i);return!t||s==o||(a=n(t),s>a&&(a+=G),o<s&&(o+=G),a>=s&&a<=o)}function o(t){var e=t.parseFormats;t.format=M(t.format||x.getCulture(t.culture).calendars.standard.patterns.t),e=it(e)?e:[e],e.splice(0,0,t.format),t.parseFormats=e}function l(t){t.preventDefault()}function r(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function u(t,e){var i,n=e.calendar;return"string"==typeof t&&(i=n.patterns[t]?n.patterns[t]:t),i||(i=n.patterns.d),i}function c(t,e){var i=t[t.length-1];i&&"LITERAL"===i.type?i.pattern+=e:t.push({type:lt,pattern:e})}function d(t){return"h"===t||"K"===t}function h(t){var e;return t<=3?e="abbreviated":4===t?e="wide":5===t?e="narrow":6===t&&(e="short"),e}function p(t,e,i){return i=i||0,t.indexOf(e,i)===i}function f(t,e){var i=!1;return t.indexOf(e)!==-1&&(i=!0),i}function m(t){for(var e,i,n,a,s,o,l,r=x.culture(),f=u(t,r),m=[],_=ot.lastIndex=0,g=ot.exec(f);g;)l=g[0],_<g.index&&c(m,f.substring(_,g.index)),p(l,'"')||p(l,"'")?c(m,l):(e=l[0],i=pt[e],n={type:i,pattern:l},"hour"===i&&(n.hour12=d(l)),a=ft[i],a&&(s="number"==typeof a.minLength?a.minLength:a.minLength[e],o=l.length,o>=s&&(n.names={type:a.type,nameType:h(o),standAlone:a.standAlone===e})),m.push(n)),_=ot.lastIndex,g=ot.exec(f);return _<f.length&&c(m,f.substring(_)),m}function _(t,e){for(var i=t+"";i.length<(e||2);)i="0"+i;return i}function g(t,e){return Math.max(Math.round(t/e),0)}function v(t){return t.length&&t[0].getBoundingClientRect().height}function w(t,e){function i(t,e){return{start:t,length:e,end:t+e}}function n(t,i){return!1===e||i.start<t.end&&t.start<i.end?Math.min(t.start,Math.max(i.start,t.end-i.length)):(t.start+t.end-i.length)/2}function a(t,e){return{x:t,y:e,translate:function(i,n){return a(t+i,e+n)}}}function s(t,e){for(;t;)e=e.translate(t.offsetLeft,t.offsetTop),t=t.offsetParent;return e}for(var o,l=s(t,a(0,0)),r=a(t.offsetWidth,t.offsetHeight),u=t.parentNode;u instanceof HTMLElement;)o=s(u,a(u.clientLeft,u.clientTop)),u.scrollLeft=n(i(l.x-o.x,r.x),i(u.scrollLeft,u.clientWidth)),u.scrollTop=n(i(l.y-o.y,r.y),i(u.scrollTop,u.clientHeight)),l=l.translate(-u.scrollLeft,-u.scrollTop),u=u.parentNode}var k,y,x=window.kendo,b=x.keys,T=x.parseDate,S=x._activeElement,M=x._extractFormat,V=x.support,D=V.browser,C=x.ui,H=C.Widget,L="open",I="close",R="change",A=".kendoTimePicker",P="click"+A,F="k-state-default",O="disabled",E="readonly",q="li",W="<span></span>",N="k-state-focused",B="k-state-hover",Y="mouseenter"+A+" mouseleave"+A,K="mousedown"+A,z=6e4,G=864e5,j="k-state-selected",Q="k-state-disabled",U="aria-selected",X="aria-expanded",Z="aria-hidden",J="aria-disabled",$="aria-readonly",tt="aria-activedescendant",et="id",it=t.isArray,nt=t.extend,at=t.proxy,st=Date,ot=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g,lt="literal",rt="month",ut="hour",ct="zone",dt="weekday",ht="quarter",pt={G:"era",y:"year",q:ht,Q:ht,M:rt,L:rt,d:"day",E:dt,c:dt,e:dt,h:ut,H:ut,k:ut,K:ut,m:"minute",s:"second",a:"dayperiod",x:ct,X:ct,z:ct,Z:ct},ft={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},mt=new st,_t='<div tabindex="0" class="k-timeselector"><div class="k-time-header"><span class="k-title"></span><button class="k-button k-flat k-time-now" title="Select now" aria-label="Select now">#=messages.now#</button></div><div class="k-time-list-container"><span class="k-time-highlight"></span></div></div>',gt='<div class="k-time-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel changes" aria-label="Cancel changes">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set time" aria-label="Set time">#=messages.set#</button></div>',vt='<span class="k-time-highlight"></span>';mt=new Date(mt.getFullYear(),mt.getMonth(),mt.getDate(),0,0,0),k=function(t){var e=this,i=t.id;e.options=t,e._dates=[],e._createList(t.timeView&&"scroll"===t.timeView.list),i&&(e._timeViewID=i+"_timeview",e._optionID=i+"_option_selected",e.ul.attr(et,e._timeViewID)),e._heightHandler=at(e._height,e),e._popup()},k.prototype={_createList:function(t){t?this._createScrollList():this._createClassicRenderingList()},_createScrollList:function(){this.list=t(x.template(_t)(this.options)).on(K,l),this.options.omitPopup||this.list.append(x.template(gt)(this.options)),this.ul=this.list.find(".k-time-list-container"),this.list.on("click"+A,".k-time-header button.k-time-now",at(this._nowClickHandler,this)),this.list.on("click"+A,".k-time-footer button.k-time-cancel",at(this._cancelClickHandler,this)),this.list.on("click"+A,".k-time-footer button.k-time-accept",at(this._setClickHandler,this)),this.list.on("mouseover"+A,".k-time-list-wrapper",at(this._mouseOverHandler,this)),this.list.on("keydown"+A,at(this._scrollerKeyDownHandler,this))},_scrollerKeyDownHandler:function(e){var i=this,n=e.keyCode,a=t(e.currentTarget).find(".k-time-list-wrapper.k-state-focused"),s=i.list.find(".k-time-list-wrapper"),o=s.length,l=s.index(a),r=x.support.isRtl(i.wrapper),u=v(a.find(".k-item:visible:eq(0)")),c=a.find(".k-time-container.k-content.k-scrollable");a.length&&(n==b.RIGHT&&!r||n==b.LEFT&&r?l+1<o&&i._focusList(s.eq(l+1)):n==b.LEFT&&!r||n==b.RIGHT&&r?l-1>=0&&i._focusList(s.eq(l-1)):n==b.UP?(c.scrollTop(c.scrollTop()-u),e.preventDefault()):n==b.DOWN?(c.scrollTop(c.scrollTop()+u),e.preventDefault()):n===b.ENTER?i._setClickHandler():n===b.ESC&&i._cancelClickHandler())},_mouseOverHandler:function(e){this._focusList(t(e.currentTarget))},_focusList:function(t){this.list.find(".k-time-list-wrapper").removeClass(N),t.addClass(N),this.list.focus(),this._scrollTop=t.find(".k-scrollable").scrollTop()},_createClassicRenderingList:function(){var e=this;e.ul=t('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:V.kineticScrollNeeded?"":"auto"}).on(P,q,at(e._click,e)).on("mouseenter"+A,q,function(){t(this).addClass(B)}).on("mouseleave"+A,q,function(){t(this).removeClass(B)}),e.list=t("<div class='k-list-container k-list-scroller' unselectable='on'/>").append(e.ul).on(K,l),e.template=x.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})},current:function(i){var n=this,a=n.options.active;return i===e?n._current:(n._current&&(n._current.removeClass(j),n._current&&n._current.length&&(n._current[0].removeAttribute(et),n._current[0].removeAttribute(U))),i&&(i=t(i).addClass(j).attr(et,n._optionID).attr(U,!0),n.scroll(i[0])),n._current=i,a&&a(i),e)},_updateTitle:function(){this.list.find(".k-time-header > .k-title").html(x.toString(this._value,this.options.format,this.options.culture))},applyValue:function(t){var e,i,n,a,s,o,l,r,u,c;t&&(e=f(this.options.format.toLowerCase(),"t"),i=t.getHours(),n=t.getMinutes(),a=t.getSeconds(),o=x.attr("index"),l=this.ul.find("["+o+'="1"]'),r=this.ul.find("["+o+'="2"]'),u=this.ul.find("["+o+'="3"]'),c=this.ul.find("["+o+'="4"]'),e&&(i>=12?(s="PM",i>12&&(i-=12)):(s="AM",0===i&&(i=12))),this._internalScroll=!0,l.length&&this._scrollListToPosition(l,i),r.length&&this._scrollListToPosition(r,n),u.length&&this._scrollListToPosition(u,a),c.length&&this._scrollListToPosition(c,s),this._internalScroll=!1)},_scrollListToPosition:function(t,e){var i=t.find('.k-item[data-value="'+_(e)+'"]'),n=v(i);t.scrollTop(t.find(".k-item:visible").index(i)*n)},close:function(){this.popup.close()},destroy:function(){var t=this;t.ul.off(A),t.list.off(A),this.popup&&t.popup.destroy()},open:function(){var t,e=this;(!e.ul[0].firstChild||e.ul.find("li").length<1)&&e.bind(),t=e.popup._hovered,e.popup._hovered=!0,e.popup.open(),setTimeout(function(){e.popup._hovered=t},1),e._current&&e.scroll(e._current[0])},dataBind:function(t){for(var e,i=this,n=i.options,a=n.format,o=x.toString,l=i.template,r=t.length,u=0,c="";u<r;u++)e=t[u],s(e,n.min,n.max)&&(c+=l(o(e,a,n.culture)));i._html(c)},refresh:function(){var t,e,s=this,o=s.options,l=o.format,u=i(),c=u<0,d=x.parseDate(s._value),h=d?r(d,o.min):r(new Date,o.min),p=o.min,f=o.max,_=n(p),g=n(f),v=n(a(o.interval)),w=o.interval*z,k=x.toString,y=s.template,b=o.useValueToRender?h:new Date((+o.min)),T=new st(b),S="";e=c?(G+u*z)/w:G/w,_==g&&v!==g||(_>g&&(g+=G),e=(g-_)/w+1),o.timeView&&"scroll"===o.timeView.list?S=s._createListContent(m(l)):s.getDatesInRange(t,g,T,f,w,b).forEach(function(t){S+=y(k(t,l,o.culture))}),s._html(S)},_showAllHiddenItems:function(){var e,i,n=this.list.find(".k-time-container"),a=n.length;for(i=0;i<a;i++)e=t(n[i]),e.find(".k-item:hidden").show(),this._updateListBottomOffset(e)},_updateListBottomOffset:function(t){var e=v(t.find(".k-item:visible:eq(0)")),i=t.outerHeight(),n=i-e;t.find(".k-scrollable-placeholder").css({height:t.find("ul").height()+n})},_updateHoursRange:function(){var e,i,n=this,a=x.attr("index"),s=this.ul.find("["+a+'="1"]'),o=this._minHours,l=this._maxHours,r=f(this.options.format.toLowerCase(),"t"),u=this._findSelectedValue(this.ul.find("["+a+'="4"]'));s.length&&(r&&u?("AM"===u?(o<12&&(i=!0),l<12&&(e=!0)):"PM"===u&&(o>12&&(i=!0,o-=12),l>12&&(e=!0,l-=12)),s.find(".k-item").each(function(a,s){s=t(s);var r=+s.attr("data-value");n._validateMin&&i&&r<o||n._validateMax&&e&&r>l?s.hide():s.show()})):s.find(".k-item").each(function(e,i){i=t(i);var a=+i.attr("data-value");n._validateMin&&a<o||n._validateMax&&a>l?i.hide():i.show()}),this._updateListBottomOffset(s))},_updateMinutesRange:function(){var e=this,i=x.attr("index"),n=this.ul.find("["+i+'="2"]'),a=this._minHours,s=this._maxHours,o=this._minMinutes,l=this._maxMinutes,r=+this._findSelectedValue(this.ul.find("["+i+'="1"]')),u=f(this.options.format.toLowerCase(),"t"),c=this._findSelectedValue(this.ul.find("["+i+'="4"]'));u&&"PM"===c&&(r+=12),n.length&&(n.find(".k-item").each(function(i,n){n=t(n);var u=+n.attr("data-value");e._validateMin&&u<o&&a&&r===a||e._validateMax&&u>l&&s&&r===s?n.hide():n.show()}),this._updateListBottomOffset(n))},_updateSecondsRange:function(){var e=this,i=x.attr("index"),n=this.ul.find("["+i+'="3"]'),a=this._minSeconds,s=this._minSeconds,o=this._minMinutes,l=this._maxMinutes,r=+this._findSelectedValue(this.ul.find("["+i+'="2"]'));n.length&&(n.find(".k-item").each(function(i,n){n=t(n);var u=+n.attr("data-value");e._validateMin&&u<a&&o&&r===o||e._validateMax&&u>s&&l&&r===l?n.hide():n.show()}),this._updateListBottomOffset(n))},_updateDesignatorRange:function(){var t=this._minHours,e=this._maxHours,i=x.attr("index"),n=this.ul.find("["+i+'="4"]');n.length&&(this._validateMin&&t>=12?n.find('.k-item[data-value="AM"]').hide():n.find('.k-item[data-value="AM"]').show(),this._validateMax&&e<12?n.find('.k-item[data-value="PM"]').hide():n.find('.k-item[data-value="PM"]').show())},_updateRanges:function(){var t,i;if(this.options.specifiedRange){if(this._currentlySelected||(this._currentlySelected=new Date),t=this.options.max,i=this.options.min,this.options.validateDate){if(this._validateMax=t.getFullYear()===this._currentlySelected.getFullYear()&&t.getMonth()===this._currentlySelected.getMonth()&&t.getDate()===this._currentlySelected.getDate(),this._validateMin=i.getFullYear()===this._currentlySelected.getFullYear()&&i.getMonth()===this._currentlySelected.getMonth()&&i.getDate()===this._currentlySelected.getDate(),!this._validateMax&&!this._validateMin)return this._showAllHiddenItems(),e}else this._validateMax=!0,this._validateMin=!0;this._minMinutes=i.getMinutes(),this._maxMinutes=t.getMinutes(),this._minHours=i.getHours(),this._maxHours=t.getHours(),this._minSeconds=i.getSeconds(),this._maxSeconds=t.getSeconds(),this._updateDesignatorRange(),this._updateHoursRange(),this._updateMinutesRange(),this._updateSecondsRange()}},addTranslate:function(){var t,e,i,n,a,s,o,l=this.ul.find(".k-time-container.k-content.k-scrollable"),r=l.length;for(o=0;o<r;o++)t=l.eq(o),e=v(t.find(".k-item:visible:eq(0)")),i=t.outerHeight(),n=(i-e)/2,a="translateY("+n+"px)",s=i-e,t.find("ul").css({transform:a,"-ms-transform":a}),t.find(".k-scrollable-placeholder").css({height:t.find("ul").height()+s}),t.off(A).on("click"+A,".k-item",at(this._itemClickHandler,this)).on("scroll"+A,at(this._listScrollHandler,this))},_nowClickHandler:function(){var t=new Date;this.value(t),this.options.change(x.toString(t,this.options.format,this.options.culture))},_cancelClickHandler:function(){this.value(this._value),this.popup.close()},_setClickHandler:function(){this._value=new Date(this._currentlySelected),this.options.change(x.toString(this._currentlySelected,this.options.format,this.options.culture),!0),this.popup.close()},_listScrollHandler:function(e){var i=this,n=v(t(e.currentTarget).find(".k-item:visible:eq(0)"));i._internalScroll||(i._scrollingTimeout&&clearTimeout(i._scrollingTimeout),i._scrollingTimeout=setTimeout(function(){e.currentTarget.scrollTop%n>1&&(e.currentTarget.scrollTop+=n-e.currentTarget.scrollTop%n),i._scrollTop=e.currentTarget.scrollTop,i._updateCurrentlySelected(),i._updateRanges()},100))},_updateCurrentlySelected:function(){var t,i,n,a,s=f(this.options.format.toLowerCase(),"t"),o=x.attr("index"),l=this.ul.find("["+o+'="1"]'),r=this.ul.find("["+o+'="2"]'),u=this.ul.find("["+o+'="3"]'),c=this.ul.find("["+o+'="4"]');this.ul.is(":visible")&&(this._currentlySelected||(this._currentlySelected=this._value?new Date(this._value):new Date),l.length&&(t=+this._findSelectedValue(l)),r.length&&(i=+this._findSelectedValue(r)),u.length&&(n=+this._findSelectedValue(u)),c.length&&(a=this._findSelectedValue(c)),s&&("PM"==a&&(t+=12,24==t&&(t=12)),"AM"===a&&12===t&&(t=0)),t!==e&&this._currentlySelected.setHours(t),i!==e&&this._currentlySelected.setMinutes(i),n!==e&&this._currentlySelected.setSeconds(n))},_findSelectedValue:function(t){var e=g(t.scrollTop(),v(t.find(".k-item:visible:eq(0)")));return t.find(".k-item:visible").eq(e).attr("data-value")},_itemClickHandler:function(e){var i=t(e.originalEvent.currentTarget),n=i.find(".k-item:visible").index(t(e.currentTarget)),a=v(i.find(".k-item:visible:eq(0)"));i.scrollTop(n*a)},getDatesInRange:function(t,e,i,a,s,o){for(var l=[];;){if(e&&(n(o)>=e||i.getDate()!=o.getDate())){t=n(o),i<o&&(t+=G),t>e&&(o=new st((+a))),n(o)>0&&l.push(new Date(o));break}if(i.getDate()!=o.getDate())break;if(l.push(new Date(o)),o.setTime(o.getTime()+s),!e&&this.options.maxSet)break}return l},_createListContent:function(t){var e,i,n,a=t.length,s="";for(n=0;n<a;n++)e=t[n],"literal"===e.type?s+=this._literalTemplate(e):(i=this._getValues(e,!0),s+=this._itemTemplate(i.values,e,this.options.messages[e.type],i.index));return s},_itemTemplate:function(t,e,i,n){var a,s="",o=t.length,l=x.attr("index");for(s+='<div class="k-time-list-wrapper" role="presentation"><span class="k-title">'+(i||e.type)+'</span><div class="k-time-list"><div class="k-time-container k-content k-scrollable" role="presentation" '+l+'="'+n+'"><ul class="k-reset">',a=0;a<o;a++)s+='<li class="k-item" data-value="'+t[a]+'"><span>'+t[a]+"</span></li>";return s+='</ul><div class="k-scrollable-placeholder"></div></div></div></div>'},_getValues:function(t,e){var i,n,a=[],s=0;for("hour"===t.type?(s=t.hour12?1:0,i=1,n=t.hour12?12:23):"minute"===t.type?(i=2,n=59):"second"===t.type&&(i=3,n=59);s<=n;s++)a.push(e?_(s):s);return{values:a,index:i}},_literalTemplate:function(t){var e='<div class="k-time-separator">'+(" tt"===t.pattern?":":t.pattern)+"</div>";return" tt"===t.pattern&&(e+=this._itemTemplate(["AM","PM"],t,"AM/PM",4)),e},bind:function(){var t=this,e=t.options.dates;e&&e[0]?t.dataBind(e):t.refresh()},_html:function(t){var e=this;e.options.timeView&&"scroll"===e.options.timeView.list?(t=vt+t,e.ul.html(t)):(e.ul[0].innerHTML=t,e.popup.unbind(L,e._heightHandler),e.popup.one(L,e._heightHandler),e.current(null),e.select(e._value))},scroll:function(t){t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():w(t))},select:function(e){var i,n=this,a=n.options,s=n._current;e instanceof Date&&(e=x.toString(e,a.format,a.culture)),"string"==typeof e&&(s&&s.text()===e?e=s:(e=t.grep(n.ul[0].childNodes,function(t){return(t.textContent||t.innerText)==e}),e=e[0]?e:null)),i=n._distinctSelection(e),n.current(i)},_distinctSelection:function(e){var i,a,s=this;return e&&e.length>1&&(i=n(s._value),a=t.inArray(i,s._dates),e=s.ul.children()[a]),e},setOptions:function(t){var e=this.options;t.min=T(t.min),t.max=T(t.max),this.options=nt(e,t,{active:e.active,change:e.change,close:e.close,open:e.open}),this.bind()},toggle:function(){var t=this;t.popup.visible()?t.close():t.open()},value:function(t){var e=this;e._value=t,e.ul[0].firstChild&&(e.options.timeView&&"scroll"===e.options.timeView.list?e.applyValue(t):e.select(t))},_click:function(e){var i=this,n=t(e.currentTarget),a=n.text(),s=i.options.dates;s&&s.length>0&&(a=s[n.index()]),e.isDefaultPrevented()||(i.select(n),i.options.change(a,!0),i.close())},_height:function(){var t=this,e=t.list,i=e.parent(".k-animation-container"),n=t.options.height;t.ul[0].children.length&&e.add(i).show().height(t.ul[0].scrollHeight>n?n:"auto").hide()},_parse:function(t){var e=this,i=e.options,a=n(i.min)!=n(mt)?i.min:null,s=n(i.max)!=n(mt)?i.max:null,o=e._value||a||s||mt;return t instanceof st?t:(t=T(t,i.parseFormats,i.culture),t&&(t=new st(o.getFullYear(),o.getMonth(),o.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),t)},_adjustListWidth:function(){var t,e,i=this.list,n=i[0].style.width,a=this.options.anchor,s=x._outerWidth;!i.data("width")&&n||(t=window.getComputedStyle?window.getComputedStyle(a[0],null):0,e=t?parseFloat(t.width):s(a),t&&(D.mozilla||D.msie)&&(e+=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth)),n=e-(s(i)-i.width()),i.css({fontFamily:a.css("font-family"),width:n}).data("width",n))},_popup:function(){var t=this,e=t.list,i=t.options,n=i.anchor;this.options.omitPopup?e.appendTo(i.timeDiv):t.popup=new C.Popup(e,nt(i.popup,{anchor:n,open:i.open,close:i.close,animation:i.animation,isRtl:V.isRtl(i.anchor),activate:function(){t.options.timeView&&"scroll"===t.options.timeView.list&&(t.addTranslate(),t._value?t.applyValue(t._value):t._updateCurrentlySelected(),t._updateRanges(),t._focusList(t.list.find(".k-time-list-wrapper:eq(0)")))}}))},move:function(t){var i=this,n=t.keyCode,a=i.ul[0],s=i._current,o=n===b.DOWN;if(n===b.UP||o){if(t.altKey)return i.toggle(o),e;s=o?s?s[0].nextSibling:a.firstChild:s?s[0].previousSibling:a.lastChild,s&&i.select(s),i.options.change(i._current.text()),t.preventDefault()}else n!==b.ENTER&&n!==b.TAB&&n!==b.ESC||(t.preventDefault(),s&&i.options.change(s.text(),!0),i.close())}},k.getMilliseconds=n,x.TimeView=k,y=H.extend({init:function(e,i){var a,s,l,r,u,c,d=this;i=i||{},i.componentType=i.componentType||"classic",H.fn.init.call(d,e,i),e=d.element,i=d.options,i.min=T(e.attr("min"))||T(i.min),i.max=T(e.attr("max"))||T(i.max),+i.max==+mt&&+i.min==+mt||(this._specifiedRange=!0),o(i),d._initialOptions=nt({},i),d._wrapper(),d.options.timeView&&"scroll"===d.options.timeView.list&&(d.options.height=null),d.timeView=s=new k(nt({},i,{id:e.attr(et),anchor:d.wrapper,format:i.format,change:function(t,i){i?d._change(t):e.val(t)},open:function(t){d.options.timeView&&"scroll"!==d.options.timeView.list?d.timeView._adjustListWidth():d.timeView._updateTitle(),d.trigger(L)?t.preventDefault():(e.attr(X,!0),a.attr(Z,!1))},close:function(t){d.trigger(I)?t.preventDefault():(e.attr(X,!1),a.attr(Z,!0))},active:function(t){e&&e.length&&e[0].removeAttribute(tt),t&&e.attr(tt,s._optionID)},specifiedRange:d._specifiedRange,maxSet:+i.max!=+mt})),a=s.ul,d._icon(),d._reset();try{e[0].setAttribute("type","text")}catch(h){e[0].type="text"}e.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":s._timeViewID,autocomplete:"off"}),l=e.is("[disabled]")||t(d.element).parents("fieldset").is(":disabled"),l?d.enable(!1):d.readonly(e.is("[readonly]")),i.dateInput&&(r=i.min,u=i.max,c=new st,n(r)==n(u)&&(r=new st(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0),u=new st(c.getFullYear(),c.getMonth(),c.getDate(),24,0,0)),d._dateInput=new C.DateInput(e,{culture:i.culture,format:i.format,min:r,max:u,value:i.value,interval:i.interval})),d._old=d._update(i.value||d.element.val()),d._oldText=e.val(),x.notify(d)},options:{name:"TimePicker",min:mt,max:mt,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{},dateInput:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now"},componentType:"classic"},events:[L,I,R],componentTypes:{classic:{timeView:{list:"list"}},modern:{timeView:{list:"scroll"}}},setOptions:function(t){var e=this,i=e._value;H.fn.setOptions.call(e,t),t=e.options,+t.max==+mt&&+t.min==+mt||(this._specifiedRange=!0),o(t),e.timeView.setOptions(t),i&&e.element.val(x.toString(i,t.format,t.culture))},dataBind:function(t){it(t)&&this.timeView.dataBind(t)},_editable:function(t){var e=this,i=t.disable,n=t.readonly,a=e._arrow.off(A),s=e.element.off(A),o=e._inputWrapper.off(A);e._dateInput&&e._dateInput._unbindInput(),n||i?(o.addClass(i?Q:F).removeClass(i?F:Q),s.attr(O,i).attr(E,n).attr(J,i).attr($,n)):(o.addClass(F).removeClass(Q).on(Y,e._toggleHover),s&&s.length&&(s[0].removeAttribute(O),s[0].removeAttribute(E)),s.attr(J,!1).attr($,!1).on("keydown"+A,at(e._keydown,e)).on("focusout"+A,at(e._blur,e)).on("focus"+A,function(){e._inputWrapper.addClass(N)}),e._dateInput&&e._dateInput._bindInput(),a.on(P,at(e._click,e)).on(K,l))},readonly:function(t){this._editable({readonly:t===e||t,disable:!1})},enable:function(t){this._editable({readonly:!1,disable:!(t=t===e||t)})},destroy:function(){var t=this;H.fn.destroy.call(t),t.timeView.destroy(),t.element.off(A),t._arrow.off(A),t._inputWrapper.off(A),t._form&&t._form.off("reset",t._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(t){return t&&(this._specifiedRange=!0),this._option("min",t)},max:function(t){return t&&this.timeView?(this._specifiedRange=!0,this.timeView.options.maxSet=!0):this.timeView&&(this.timeView.options.maxSet=!1),this._option("max",t)},value:function(t){var i=this;return t===e?i._value:(i._old=i._update(t),null===i._old&&i.element.val(""),i._oldText=i.element.val(),e)},_blur:function(){var t=this,e=t.element.val();t.options.timeView&&"scroll"===t.options.timeView.list||t.close(),e!==t._oldText&&t._change(e),t._inputWrapper.removeClass(N)},_click:function(){var t=this,e=t.element;t.timeView.toggle(),V.touch||e[0]===S()||e.trigger("focus")},_change:function(t){var e,i,n,a=this,s=a.element.val();t=a._update(t),e=!x.calendar.isEqualDate(a._old,t),i=e&&!a._typing,n=s!==a.element.val(),(i||n)&&a.element.trigger(R),e&&(a._old=t,a._oldText=a.element.val(),a.trigger(R)),a._typing=!1},_icon:function(){var e,i=this,n=i.element;e=n.next("span.k-select"),e[0]||(e=t('<span unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-clock"></span></span>').insertAfter(n)),i._arrow=e.attr({role:"button","aria-controls":i.timeView._timeViewID})},_keydown:function(t){var e=this,i=t.keyCode,n=e.timeView,a=e.element.val();n.popup.visible()||t.altKey?(n.move(t),e._dateInput&&t.stopImmediatePropagation&&t.stopImmediatePropagation()):i===b.ENTER&&a!==e._oldText?e._change(a):e._typing=!0},_option:function(t,i){var n=this,a=n.options;return i===e?a[t]:(i=n.timeView._parse(i),i&&(i=new st((+i)),a[t]=i,n.timeView.options[t]=i,n.timeView.bind()),e)},_toggleHover:function(e){t(e.currentTarget).toggleClass(B,"mouseenter"===e.type)},_update:function(t){var e=this,i=e.options,n=e.timeView,a=n._parse(t);return s(a,i.min,i.max)||(a=null),e._value=a,e._currentlySelected=a,e._dateInput&&a?e._dateInput.value(a||t):e.element.val(x.toString(a||t,i.format,i.culture)),n.value(a),a},_wrapper:function(){var e,i=this,n=i.element;e=n.parents(".k-timepicker"),e[0]||(e=n.wrap(W).parent().addClass("k-picker-wrap k-state-default"),e=e.wrap(W).parent()),e[0].style.cssText=n[0].style.cssText,i.wrapper=e.addClass("k-widget k-timepicker").addClass(n[0].className),n.css({width:"100%",height:n[0].style.height}),i._inputWrapper=t(e[0].firstChild)},_reset:function(){var e=this,i=e.element,n=i.attr("form"),a=n?t("#"+n):i.closest("form");a[0]&&(e._resetHandler=function(){e.value(i[0].defaultValue),e.max(e._initialOptions.max),e.min(e._initialOptions.min)},e._form=a.on("reset",e._resetHandler))}}),C.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});
//# sourceMappingURL=kendo.timepicker.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.datetimepicker.min",["kendo.datepicker.min","kendo.timepicker.min"],e)}(function(){return function(e,t){function a(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function i(e){e.preventDefault()}function n(t){var a,i=o.getCulture(t.culture).calendars.standard.patterns,n=!t.parseFormats.length;t.format=u(t.format||i.g),t.timeFormat=a=u(t.timeFormat||i.t),o.DateView.normalize(t),n&&t.parseFormats.unshift("yyyy-MM-ddTHH:mm:ss"),e.inArray(a,t.parseFormats)===-1&&t.parseFormats.push(a)}var o=window.kendo,s=o.TimeView,l=o.parseDate,r=o.support,p=o._activeElement,u=o._extractFormat,m=o.calendar,d=m.isInRange,c=m.restrictValue,_=m.isEqualDatePart,v=s.getMilliseconds,g=o.ui,f=g.Widget,h="open",w="close",k="change",b=".kendoDateTimePicker",y="click"+b,V=r.mouseAndTouchPresent?o.applyEventMap("up",b.slice(1)):y,x="disabled",T="readonly",D="k-state-default",I="k-state-focused",C="k-state-hover",A="k-state-disabled",P="mouseenter"+b+" mouseleave"+b,F="mousedown"+b,S="month",R="<span/>",H="aria-activedescendant",M="aria-expanded",O="aria-hidden",E="aria-owns",W="aria-disabled",B="aria-readonly",q=Date,N=new q(1800,0,1),Y=new q(2099,11,31),j={view:"date"},z={view:"time"},K=e.extend,L='<div class="k-date-tab k-datetime-wrap"><div class="k-datetime-buttongroup"><div class="k-button-group k-button-group-stretched"><button class="k-button k-state-active k-group-start">#=messages.date#</button><button class="k-button k-group-end">#=messages.time#</button></div></div><div class="k-datetime-selector"><div class="k-datetime-calendar-wrap"></div><div class="k-datetime-time-wrap"></div></div><div class="k-datetime-footer k-action-buttons"><button class="k-button k-time-cancel" title="Cancel" aria-label="Cancel">#=messages.cancel#</button><button class="k-time-accept k-button k-primary" title="Set" aria-label="Set">#=messages.set#</button></div></div>',Q="k-state-active",G=f.extend({init:function(t,a){var i,s=this;a=a||{},a.componentType=a.componentType||"classic",f.fn.init.call(s,t,a),t=s.element,a=s.options,a.disableDates=o.calendar.disabled(a.disableDates),a.min=l(t.attr("min"))||l(a.min),a.max=l(t.attr("max"))||l(a.max),+a.max==+Y&&+a.min==+N||(this._specifiedRange=!0),n(a),s._initialOptions=K({},a),s._wrapper(),a.singlePopup&&s._popup(),s._views(),s._icons(),s._reset(),s._template();try{t[0].setAttribute("type","text")}catch(r){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,autocomplete:"off"}),s._midnight=s._calculateMidnight(a.min,a.max),i=t.is("[disabled]")||e(s.element).parents("fieldset").is(":disabled"),i?s.enable(!1):s.readonly(t.is("[readonly]")),s._createDateInput(a),s._old=s._update(a.value||s.element.val()),s._oldText=t.val(),o.notify(s)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],disableDates:null,min:new q(N),max:new q(Y),interval:30,height:200,footer:"",start:S,depth:S,animation:{},month:{},ARIATemplate:"Current focused #=data.valueType# is #=data.text#",dateButtonText:"Open the date view",timeButtonText:"Open the time view",dateInput:!1,weekNumber:!1,messages:{set:"Set",cancel:"Cancel",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",now:"Now",date:"Date",time:"Time",today:"Today"},componentType:"classic"},events:[h,w,k],componentTypes:{classic:{singlePopup:!1,timeView:{list:"list"}},modern:{singlePopup:!0,timeView:{list:"scroll"}}},setOptions:function(e){var t,a,i,s=this,r=s._value;f.fn.setOptions.call(s,e),e=s.options,e.min=t=l(e.min),e.max=a=l(e.max),n(e),s._midnight=s._calculateMidnight(e.min,e.max),i=e.value||s._value||s.dateView._current,t&&!_(t,i)&&(t=new q(N)),a&&!_(a,i)&&(a=new q(Y)),s.dateView.setOptions(e),s.timeView.setOptions(K({},e,{format:e.timeFormat,min:t,max:a})),s._createDateInput(e),s._dateInput||s.element.val(o.toString(r,e.format,e.culture)),r&&s._updateARIA(r)},_editable:function(t){var a=this,n=a.element.off(b),s=a._dateIcon.off(b),l=a._timeIcon.off(b),r=a._inputWrapper.off(b),p=t.readonly,u=t.disable;p||u?(r.addClass(u?A:D).removeClass(u?D:A),n.attr(x,u).attr(T,p).attr(W,u).attr(B,p)):(r.addClass(D).removeClass(A).on(P,a._toggleHover),n&&n.length&&(n[0].removeAttribute(x),n[0].removeAttribute(T,!1),n[0].removeAttribute(W,!1),n[0].removeAttribute(B,!1)),n.on("keydown"+b,e.proxy(a._keydown,a)).on("focus"+b,function(){a._inputWrapper.addClass(I)}).on("focusout"+b,function(){a._inputWrapper.removeClass(I),n.val()!==a._oldText&&(a._change(n.val()),n.val()||a.dateView.current(o.calendar.getToday())),a.options.singlePopup||(a.close("date"),a.close("time"))}),s.on(F,i).on(V,function(e){a.toggle("date"),a._focusElement(e.type)}),l.on(F,i).on(V,function(e){a.toggle("time"),a._focusElement(e.type)}))},_focusElement:function(e){var t=this.element;r.touch&&(!r.mouseAndTouchPresent||(e||"").match(/touch/i))||t[0]===p()||t.trigger("focus")},readonly:function(e){this._editable({readonly:e===t||e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t||e)})},destroy:function(){var e=this;f.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.options.singlePopup&&(e.popup.element.off(b),e.popup.destroy()),e.element.off(b),e._dateIcon.off(b),e._timeIcon.off(b),e._inputWrapper.off(b),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){this.options.singlePopup?this.popup.close():("time"!==e&&(e="date"),this[e+"View"].close())},open:function(e){var t,a=this;a.options.singlePopup?(a.dateView._calendar(),a.timeView.ul.find("li").length<1&&a.timeView.bind(),t=a.popup._hovered,a.popup._hovered=!0,a.popup.open(),"time"===e?a._switchToTimeView():a._switchToDateView(),this._dateIcon.toggle("time"!==e),this._timeIcon.toggle("time"===e),setTimeout(function(){a.popup._hovered=t},1)):("time"!==e&&(e="date"),this[e+"View"].open())},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},toggle:function(e){if(this.options.singlePopup)this.popup.visible()?this.close():this.open(e);else{var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()}},value:function(e){var a=this;return e===t?a._value:(a._old=a._update(e),null===a._old&&a.element.val(""),a._oldText=a.element.val(),t)},_change:function(e){var t,a,i,n=this,o=n.element.val();e=n._update(e),t=+n._old!=+e,a=t&&!n._typing,i=o!==n.element.val(),(a||i)&&n.element.trigger(k),t&&(n._old=e,n._oldText=n.element.val(),n.trigger(k)),n._typing=!1},_option:function(e,i){var n,o,s=this,r=s.options,p=s.timeView,u=p.options,m=s._value||s._old;if(i===t)return r[e];if(i=l(i,r.parseFormats,r.culture),u.maxSet=!1,i){if(r.min.getTime()===r.max.getTime()&&(u.dates=[]),r[e]=new q(i.getTime()),s.dateView[e](i),s._midnight=s._calculateMidnight(r.min,r.max),m&&(n=_(r.min,m),o=_(r.max,m)),n||o){if(u[e]=i,n&&!o&&(u.max=a(r.interval)),o){if(s._midnight)return p.dataBind([Y]),t;n||(u.min=N,u.maxSet=!0)}}else u.max=Y,u.min=N;p.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_update:function(t){var i,n,s,r,p,u=this,m=u.options,v=m.min,g=m.max,f=m.dates,h=u.timeView,w=u._value,b=l(t,m.parseFormats,m.culture),y=null===b&&null===w||b instanceof Date&&w instanceof Date;return m.disableDates&&m.disableDates(b)&&(b=null,u._old||u.element.val()||(t=null)),+b===+w&&y?(p=o.toString(b,m.format,m.culture),p!==t&&(u.element.val(null===b?t:p),t instanceof String&&u.element.trigger(k)),b):(null!==b&&_(b,v)?b=c(b,v,g):d(b,v,g)||(b=null),u._value=b,h.value(b),u.dateView.value(b),b&&(s=u._old,n=h.options,n.maxSet=!1,f[0]&&(f=e.grep(f,function(e){return _(b,e)}),f[0]&&(h.dataBind(f),r=!0)),r||(_(b,v)&&(n.min=v,n.max=a(m.interval),i=!0),_(b,g)&&(u._midnight?(h.dataBind([Y]),r=!0):(n.max=g,n.maxSet=!0,i||(n.min=N),i=!0))),!r&&(!s&&i||s&&!_(s,b))&&(i||(n.max=Y,n.min=N),h.bind())),u._dateInput&&b?u._dateInput.value(b||t):u.element.val(o.toString(b||t,m.format,m.culture)),u._updateARIA(b),b)},_keydown:function(e){var t=this,a=t.dateView,i=t.timeView,n=t.element.val(),s=t.options.singlePopup?t.popup.visible():a.popup.visible(),l=t._dateInput&&e.stopImmediatePropagation;e.altKey&&e.keyCode===o.keys.DOWN?t.toggle(s?"time":"date"):s?(a.move(e),t._updateARIA(a._current)):!t.options.singlePopup&&i.popup.visible()?i.move(e):e.keyCode===o.keys.ENTER&&n!==t._oldText?t._change(n):(t._typing=!0,l=!1),l&&e.stopImmediatePropagation()},_views:function(){var e,t,a,i,n,r,p,u,m,d=this,c=d.element,_=d.options,v=c.attr("id");_.singlePopup&&(_.dateDiv=d.popup.element.find(".k-datetime-calendar-wrap"),p=d.popup.element.find(".k-datetime-time-wrap"),_.omitPopup=u=!0,m=_.timeView),d.dateView=e=new o.DateView(K({},_,{id:v,anchor:d.wrapper,change:function(){var e=d._applyDateValue();_.singlePopup?(d.timeView._currentlySelected||(d.timeView._currentlySelected=new Date),d.timeView._currentlySelected.setFullYear(e.getFullYear()),d.timeView._currentlySelected.setMonth(e.getMonth()),d.timeView._currentlySelected.setDate(e.getDate()),d._switchToTimeView(),d._toggleIcons()):(d._change(e),d.close("date"))},close:function(e){d.trigger(w,j)?e.preventDefault():(c.attr(M,!1),a.attr(O,!0),d.options.singlePopup||t.popup.visible()||c&&c.length&&c[0].removeAttribute(E))},open:function(t){d.trigger(h,j)?t.preventDefault():(c.val()!==d._oldText&&(r=l(c.val(),_.parseFormats,_.culture),d.dateView[r?"current":"value"](r)),a.attr(O,!1),c.attr(M,!0).attr(E,e._dateViewID),d._updateARIA(r))}})),a=e.div,n=_.min.getTime(),d.timeView=t=new s({id:v,value:_.value,anchor:d.wrapper,animation:_.animation,format:_.timeFormat,culture:_.culture,height:"modern"===_.componentType?null:_.height,interval:_.interval,min:"modern"===_.componentType?_.min:new q(N),max:"modern"===_.componentType?_.max:new q(Y),dates:n===_.max.getTime()?[new Date(n)]:[],parseFormats:_.parseFormats,validateDate:!0,change:function(t,a){t=d._applyTimeValue(t),a?(d._timeSelected=!0,d._change(t)):(c.val(o.toString(t,_.format,_.culture)),e.value(t),d._updateARIA(t))},close:function(t){d.trigger(w,z)?t.preventDefault():(i.attr(O,!0),c.attr(M,!1),e.popup.visible()||c&&c.length&&c[0].removeAttribute(E))},open:function(e){"modern"!==d.options.componentType?t._adjustListWidth():d.timeView._updateTitle(),d.trigger(h,z)?e.preventDefault():(c.val()!==d._oldText&&(r=l(c.val(),_.parseFormats,_.culture),d.timeView.value(r)),i.attr(O,!1),c.attr(M,!0).attr(E,t._timeViewID),t.options.active(t.current()))},active:function(e){c&&c.length&&c[0].removeAttribute(H),e&&c.attr(H,t._optionID)},popup:_.popup,useValueToRender:!0,specifiedRange:d._specifiedRange,omitPopup:u,timeDiv:p,timeView:m,messages:d.options.messages}),i=t.ul},_applyDateValue:function(){var e,t,a=this,i=a.options,n=a.dateView,s=n.calendar.value(),l=+s,r=+i.min,p=+i.max;return l!==r&&l!==p||(e=l===r?r:p,e=new q(a._value||e),e.setFullYear(s.getFullYear(),s.getMonth(),s.getDate()),d(e,r,p)&&(s=e)),a._value&&(t=o.date.setHours(new Date(s),a._value),d(t,r,p)&&(s=t)),s},_applyTimeValue:function(e){var t=this.timeView,a=this.options;return e=t._parse(e),e<a.min?(e=new q((+a.min)),t.options.min=e):e>a.max&&(e=new q((+a.max)),t.options.max=e),e},_icons:function(){var t=this,a=t.element,i=t.options,n=a.next("span.k-select");n[0]||(n=e('<span unselectable="on" class="k-select"><span class="k-link k-link-date" role="button" aria-label="'+i.dateButtonText+'"><span unselectable="on" class="k-icon k-i-calendar"></span></span><span class="k-link k-link-time" role="button" aria-label="'+i.timeButtonText+'"><span unselectable="on" class="k-icon k-i-clock"></span></span></span>').insertAfter(a)),n=n.children(),t._dateIcon=n.eq(0).attr("aria-controls",t.dateView._dateViewID),t._timeIcon=n.eq(1).attr("aria-controls",t.timeView._timeViewID),i.singlePopup&&t._timeIcon.hide()},_wrapper:function(){var t,a=this,i=a.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(R).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(R).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),a.wrapper=t.addClass("k-widget k-datetimepicker").addClass(i[0].className).removeClass("input-validation-error"),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,i=a.attr("form"),n=i?e("#"+i):a.closest("form"),s=t.options,l=s.disableDates,r=s.parseFormats.length?s.parseFormats:null,p=t._initialOptions.value,u=a[0].defaultValue;p&&l&&l(p)&&(p=null),u&&o.parseDate(u,r,s.culture)||!p||a.attr("value",o.toString(p,s.format,s.culture)),n[0]&&(t._resetHandler=function(){t.value(p||a[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=n.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=e.proxy(o.template(this.options.ARIATemplate),this)},_createDateInput:function(e){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),e.dateInput&&(this._dateInput=new g.DateInput(this.element,{culture:e.culture,format:e.format,min:e.min,max:e.max,interval:e.interval}))},_calculateMidnight:function(e,t){return v(e)+v(t)===0},_updateARIA:function(e){var t=this,a=t.dateView.calendar;t.element&&t.element.length&&t.element[0].removeAttribute(H),a&&t.element.attr(H,a._updateAria(t._ariaTemplate,e))},_popup:function(){var t=this,a=t.options,i=e("<div></div>").attr(O,"true").addClass("k-datetime-container k-group k-reset").appendTo(document.body);i.append(o.template(L)(t.options)),t.popup=new g.Popup(i,K(a.popup,a,{name:"Popup",isRtl:o.support.isRtl(t.wrapper),anchor:t.wrapper,activate:function(){t.options.timeView&&"scroll"===t.options.timeView.list&&(t.timeView.addTranslate(),t.timeView.applyValue(t._value),t.timeView._updateRanges())},open:function(e){t.trigger(h,{view:this.element.find(".k-date-tab").length?"date":"time",sender:t})&&e.preventDefault(),t.timeView._updateTitle()}})),i.on(y+b,".k-datetime-buttongroup .k-button",e.proxy(t._groupChangeClick,t)),i.on(y+b,".k-datetime-footer button.k-time-cancel",e.proxy(t._cancelClickHandler,t)),i.on(y+b,".k-datetime-footer button.k-time-accept",e.proxy(t._setClickHandler,t))},_groupChangeClick:function(t){var a,n;i(t),a=e(t.currentTarget),n=a.index(),n?this._switchToTimeView():this._switchToDateView(),this._toggleIcons()},_switchToDateView:function(){this.popup.element.find(".k-group-start, .k-group-end").removeClass(Q).eq(0).addClass(Q),this.popup.element.find(".k-datetime-wrap").removeClass("k-time-tab").addClass("k-date-tab")},_switchToTimeView:function(){this.timeView.addTranslate(),this.timeView.applyValue(this._value),this.timeView._updateRanges(),this.popup.element.find(".k-group-start, .k-group-end").removeClass(Q).eq(1).addClass(Q),this.popup.element.find(".k-datetime-wrap").removeClass("k-date-tab").addClass("k-time-tab")},_toggleIcons:function(){this._dateIcon.toggle(),this._timeIcon.toggle()},_cancelClickHandler:function(){this._value&&(this.value(this._value),this.dateView.value(this._value)),this.popup.close()},_setClickHandler:function(){var e,t=this._applyDateValue();t=t||new Date,e=this.timeView._currentlySelected||t,this.timeView._updateCurrentlySelected(),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()),t.setSeconds(e.getSeconds()),t=this._applyTimeValue(t),this._change(t),this.popup.close()}});g.plugin(G)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.datetimepicker.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.upload.min",["kendo.core.min"],e)}(function(){return function(e,t){function a(t){return e.map(n(t),function(e){return e.name}).join(", ")}function n(e){var t=e[0];return t.files?i(t.files):[{name:s(t.value),extension:r(t.value),size:null}]}function i(t){return e.map(t,function(e){return o(e)})}function o(e){var t=e.name||e.fileName;return{name:z.htmlEncode(t),extension:r(t),size:"number"==typeof e.size?e.size:e.fileSize,rawFile:e}}function r(e){var t=e.match(E);return t?t[0]:""}function s(e){var t=e.lastIndexOf("\\");return t!=-1?e.substr(t+1):e}function l(t,a){var n=z.guid();return e.map(t,function(e){return e.uid=a?z.guid():n,e})}function p(e,t){var a,n=d(t.allowedExtensions),i=t.maxFileSize,o=t.minFileSize;for(a=0;a<e.length;a++)u(e[a],n),c(e[a],o,i)}function d(t){var a=e.map(t,function(e){var t="."===e.substring(0,1)?e:"."+e;return t.toLowerCase()});return a}function u(t,a){a.length>0&&a.indexOf(t.extension.toLowerCase())<0&&(t.validationErrors=t.validationErrors||[],e.inArray(V,t.validationErrors)===-1&&t.validationErrors.push(V))}function c(t,a,n){0!==a&&t.size<a&&(t.validationErrors=t.validationErrors||[],e.inArray(Z,t.validationErrors)===-1&&t.validationErrors.push(Z)),0!==n&&t.size>n&&(t.validationErrors=t.validationErrors||[],e.inArray(O,t.validationErrors)===-1&&t.validationErrors.push(O))}function f(e){var t,a=0;if("number"!=typeof e[0].size)return"";for(t=0;t<e.length;t++)e[t].size&&(a+=e[t].size);return a/=1024,a<1024?a.toFixed(2)+" KB":(a/1024).toFixed(2)+" MB"}function h(t){return!t.multiple&&e(".k-file",t.wrapper).length>1}function m(a,n,i,o){var r,s;return n._supportsRemove()?(r=a.data("fileNames"),s=e.map(r,function(e){return e.name}),o===!1?(n._removeFileEntry(a),t):(n._submitRemove(s,i,function(e,t,i){var o=n.trigger(R,{operation:"remove",files:r,response:e,XMLHttpRequest:i});o||n._removeFileEntry(a)},function(e){h(n)&&n._removeFileEntry(a),n.trigger(I,{operation:"remove",files:r,XMLHttpRequest:e}),b("Server response: "+e.responseText)}),t)):(!h(n)&&o||n._removeFileEntry(a),t)}function k(t,a,n){var i=!1,o="";try{o=e.parseJSON(v(t)),i=!0}catch(r){n()}i&&a(o)}function v(e){return t!==e&&""!==e||(e="{}"),e}function g(e){e.originalEvent&&(e.originalEvent.dataTransfer.dropEffect="copy"),e.stopPropagation(),e.preventDefault()}function _(e,t,a,n){var i,o;e.on("dragenter"+t,function(e){a(e),o=new Date,i||(i=setInterval(function(){var e=new Date-o;e>100&&(n(),clearInterval(i),i=null)},100))}).on("dragover"+t,function(){o=new Date})}function y(e){return e.is(".k-file-progress, .k-file-success, .k-file-error")}function F(t){return e(t.target).closest(".k-file")}var w,C,z=window.kendo,S=z.ui.Widget,U=z.antiForgeryTokens,b=z.logToConsole,E=/\.([^\.]+)$/,x=".kendoUpload",A="select",D="upload",R="success",I="error",P="complete",T="cancel",N="clear",B="pause",H="resume",q="progress",M="remove",L="validationErrors",O="invalidMaxFileSize",Z="invalidMinFileSize",V="invalidFileExtension",j=1e3,X=2e3,W={loading:"k-i-upload",warning:"k-i-warning",success:"k-i-check"},K=S.extend({init:function(t,a){var n,i,o=this;S.fn.init.call(o,t,a),o.name=t.name,o.multiple=o.options.multiple,o.directory=o.options.directory,o.localization=o.options.localization,n=o.element,o.wrapper=n.closest(".k-upload"),0===o.wrapper.length&&(o.wrapper=o._wrapInput(n)),o._activeInput(n),o.toggle(o.options.enabled),i=o._ns=x+"-"+z.guid(),n.closest("form").on("submit"+i,e.proxy(o._onParentFormSubmit,o)).on("reset"+i,e.proxy(o._onParentFormReset,o)),o._initUploadModule(),o._toggleDropZone(),o.wrapper.on("click",".k-upload-action",e.proxy(o._onFileAction,o)).on("click",".k-clear-selected",e.proxy(o._onClearSelected,o)).on("click",".k-upload-selected",e.proxy(o._onUploadSelected,o)),o.element.val()&&o._onInputChange({target:o.element})},events:[A,D,R,I,P,T,N,q,M,B,H],options:{name:"Upload",enabled:!0,multiple:!0,directory:!1,showFileList:!0,template:"",files:[],async:{autoRetryAfter:0,bufferChunkSize:1e7,maxAutoRetries:1,removeVerb:"POST",autoUpload:!0,withCredentials:!0,accept:"*/*; q=0.5, application/json",useArrayBuffer:!1},localization:{select:"Select files...",cancel:"Cancel",retry:"Retry",remove:"Remove",pause:"Pause",resume:"Resume",clearSelectedFiles:"Clear",uploadSelectedFiles:"Upload",dropFilesHere:"Drop files here to upload",invalidFiles:"Invalid file(s). Please check file upload requirements.",statusUploading:"uploading",statusUploaded:"uploaded",statusWarning:"warning",statusFailed:"failed",headerStatusUploading:"Uploading...",headerStatusPaused:"Paused",headerStatusUploaded:"Done",uploadSuccess:"File(s) uploaded successfully.",uploadFail:"File(s) failed to upload.",invalidMaxFileSize:"File size too large.",invalidMinFileSize:"File size too small.",invalidFileExtension:"File type not allowed."},validation:{allowedExtensions:[],maxFileSize:0,minFileSize:0},dropZone:""},_initUploadModule:function(){var e,t=this,a=t.options;a.async.saveUrl?(t._module=t._supportsFormData()?new C(t):new w(t),t._async=!0,e=a.files,e.length>0&&t._renderInitialFiles(e)):t._module=new G(t)},setOptions:function(t){var a=this,n=a.element;e(a.options.dropZone).off(a._ns),S.fn.setOptions.call(a,t),a.multiple=a.options.multiple,a.directory=a.options.directory,n.attr("multiple",!!a._supportsMultiple()&&a.multiple),a.directory&&(n.attr("webkitdirectory",a.directory),n.attr("directory",a.directory)),a.toggle(a.options.enabled),a._initUploadModule(),a._toggleDropZone()},enable:function(e){e=t===e||e,this.toggle(e)},disable:function(){this.toggle(!1)},toggle:function(e){e=t===e?e:!e,this.wrapper.toggleClass("k-state-disabled",e),this.element.prop("disabled",e)},focus:function(){this.element.focus()},destroy:function(){var t=this,a=e(t.options.dropZone);e(document).add(e(".k-dropzone",t.wrapper)).add(t.wrapper.closest("form")).off(t._ns),a.length>0&&a.off(t._ns),e(t.element).off(x),S.fn.destroy.call(t)},pause:function(t){this._module.onPause({target:e(t,this.wrapper)});var a=t.find(".k-i-pause-sm");a.removeClass("k-i-pause-sm").addClass("k-i-play-sm").attr("title",this.localization.resume),e(a).parent().attr("aria-label",this.localization.resume)},resume:function(t){this._module.onResume({target:e(t,this.wrapper)});var a=t.find(".k-i-play-sm");a.removeClass("k-i-play-sm").addClass("k-i-pause-sm").attr("title",this.localization.pause),e(a).parent().attr("aria-label",this.localization.pause)},upload:function(){var e=this;e._module.onSaveSelected()},getFiles:function(){var t,a,n,i=this,o=[],r=i.wrapper.find(".k-file");for(a=0;a<r.length;a++)if(t=e(r[a]).data("fileNames"))for(n=0;n<t.length;n++)o.push(t[n]);return o},clearAllFiles:function(){var e=this,t=e.wrapper.find(".k-file");t.each(function(t,a){e._removeFileByDomElement(a,!1)})},removeAllFiles:function(){var e=this,t=e.wrapper.find(".k-file");t.each(function(t,a){e._removeFileByDomElement(a,!0)})},removeFileByUid:function(e){this._removeFileByUid(e,!0)},clearFileByUid:function(e){this._removeFileByUid(e,!1)},_removeFileByUid:function(t,a){var n,i=this;"string"==typeof t&&(n=e(".k-file["+z.attr("uid")+'="'+t+'"]',i.wrapper),n.length>0&&i._removeFileByDomElement(n,a))},clearFile:function(e){this._removeFile(e,!1)},removeFile:function(e){this._removeFile(e,!0)},_removeFile:function(t,a){var n,i=this,o=i.wrapper.find(".k-file");"function"==typeof t&&o.each(function(o,r){n=e(r).data("fileNames"),t(n)&&i._removeFileByDomElement(r,a)})},_removeFileByDomElement:function(t,a){var n,i=this,o={target:e(t,i.wrapper)};i.options.async.saveUrl?(e(t).hasClass("k-file-progress")?i._module.onCancel(o):i._module.onRemove(o,{},a),n=e(".k-file",i.wrapper),0===n.length?i._hideHeaderUploadstatus():i._updateHeaderUploadStatus()):i._module.onRemove(o,{},a)},_addInput:function(t){if(t[0].nodeType){var a=this,n=t.clone().val("");n.insertAfter(a.element).data("kendo"+a.options.prefix+a.options.name,a),e(a.element).hide().attr("tabindex","-1").removeAttr("id").off(x),a._activeInput(n),a.element.focus()}},_activeInput:function(t){var a=this,n=a.wrapper;a.element=t,a.directory&&(t.attr("webkitdirectory",a.directory),t.attr("directory",a.directory)),t.attr("multiple",!!a._supportsMultiple()&&a.multiple).attr("autocomplete","off").on("click"+x,function(e){n.hasClass("k-state-disabled")&&e.preventDefault()}).on("focus"+x,function(){e(this).parent().addClass("k-state-focused")}).on("blur"+x,function(){e(this).parent().removeClass("k-state-focused")}).on("change"+x,e.proxy(a._onInputChange,a)).on("keydown"+x,e.proxy(a._onInputKeyDown,a))},_onInputKeyDown:function(e){var t=this,a=t.wrapper.find(".k-upload-action:visible:first");e.keyCode===z.keys.TAB&&a.length>0&&!e.shiftKey&&(e.preventDefault(),a.focus())},_onInputChange:function(t){var a,n=this,i=e(t.target),o=l(n._inputFiles(i),n._isAsyncNonBatch());p(o,n.options.validation),a=n.trigger(A,{files:o}),a?(n._addInput(i),i.remove()):n._module.onSelect({target:i},o)},_readDirectory:function(t){var a=new e.Deferred,n=t.createReader(),i=[],o=function(){n.readEntries(function(e){e.length?(i=i.concat(e),o()):a.resolve(i)},a.reject)};return o(),a.promise()},_readFile:function(e){var t=this,a=e.fullPath;e.file(function(e){e.relativePath=a.slice(1),t.droppedFolderFiles.push(e),t.droppedFolderCounter--,0===t.droppedFolderCounter&&setTimeout(function(){0===t.droppedFolderCounter&&t.droppedFolderFiles.length&&(t._proceedDroppedItems(t.droppedFolderFiles),t.droppedFolderFiles=[])},0)},function(){b("File error.")})},_traverseFileTree:function(e,t){var a=this;t||a.droppedFolderCounter--,this._readDirectory(e).then(function(e){a.droppedFolderCounter+=e.length;for(var t=0;t<e.length;t++)e[t].isFile?a._readFile(e[t]):e[t].isDirectory&&a._traverseFileTree(e[t])})},_onDrop:function(e){var t,a,n,i=e.originalEvent.dataTransfer,o=this,r=i.files;if(g(e),o.options.directoryDrop&&i.items)for(t=i.items.length,o.droppedFolderCounter=0,o.droppedFolderFiles=[],a=0;a<t;a++)i.items[a].webkitGetAsEntry?(n=i.items[a].webkitGetAsEntry(),n.isDirectory?o._traverseFileTree(n,!0):n.isFile&&o.droppedFolderFiles.push(i.files[a])):o._proceedDroppedItems(r);else o._proceedDroppedItems(r)},_proceedDroppedItems:function(t){var a,n=this,o=l(i(t),n._isAsyncNonBatch());t.length>0&&!n.wrapper.hasClass("k-state-disabled")&&(!n.multiple&&o.length>1&&o.splice(1,o.length-1),p(o,n.options.validation),a=n.trigger(A,{files:o}),a||n._module.onSelect({target:e(".k-dropzone",n.wrapper)},o))},_filesContainValidationErrors:function(t){var a=!1;return e(t).each(function(e,t){if(t[L]&&t[L].length>0)return a=!0,!1}),a},_isAsyncNonBatch:function(){return this._async&&!this.options.async.batch||!1},_renderInitialFiles:function(e){var t,a,n=this,i=0;for(e=l(e,!0),i=0;i<e.length;i++)t=e[i],a=n._enqueueFile(t.name,{fileNames:[t]}),a.addClass("k-file-success").data("files",[e[i]]),n._supportsRemove()&&n._fileAction(a,M)},_prepareTemplateData:function(e,t){var a=t.fileNames,n={},i=0,o=0;for(o=0;o<a.length;o++)i+=a[o].size;return n.name=e,n.size=i,n.files=t.fileNames,n},_prepareDefaultSingleFileEntryTemplate:function(t){var a=this,n=t.fileNames[0],i=f(t.fileNames),o=z.getFileGroup(n.extension,!0),r=n[L],s="";return s+=r&&r.length>0?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-invalid-group-wrapper'><span class='k-file-group k-icon k-i-"+o+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name k-file-name-invalid' title='"+n.name+"'>"+n.name+"</span><span class='k-file-validation-message k-text-error'>"+a.localization[r[0]]+"</span></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-group-wrapper'><span class='k-file-group k-icon k-i-"+o+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name' title='"+n.name+"'>"+n.name+"</span><span class='k-file-size'>"+i+"</span></span>",s+="<strong class='k-upload-status'></strong>",e(s)},_prepareDefaultMultipleFileEntriesTemplate:function(t){var a,n,i,o=this,r=t.fileNames,s=o._filesContainValidationErrors(r),l=f(r),p="";for(p+=s?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-invalid-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>",p+="<span class='k-file-state'></span></span>",r.sort(function(e,t){return e[L]?-1:t[L]?1:0}),p+="<span class='k-multiple-files-wrapper'>",a=0;a<r.length;a++)n=r[a],i=f([n]),p+="<span class='k-file-name-size-wrapper'>",p+=n[L]&&n[L].length>0?"<span class='k-file-name k-file-name-invalid' title='"+n.name+"'>"+n.name+"</span>":"<span class='k-file-name' title='"+n.name+"'>"+n.name+"</span>",p+="<span class='k-file-size'>"+i+"</span></span>";return p+=s?"<span class='k-file-validation-message k-text-error'>"+o.localization.invalidFiles+"</span>":"<span class='k-file-information'>Total: "+r.length+" files, "+l+"</span>",p+="</span><strong class='k-upload-status'></strong>",e(p)},_enqueueFile:function(t,a){var n,i,o,r,s=this,l=a.fileNames[0].uid,p=e(".k-upload-files",s.wrapper),d=s.options,u=d.template;return 0===p.length&&(p=e("<ul class='k-upload-files k-reset'></ul>").appendTo(s.wrapper),s.options.showFileList||p.hide(),s.wrapper.removeClass("k-upload-empty")),n=e(".k-file",p),u?(o=s._prepareTemplateData(t,a),u=z.template(u),i=e("<li class='k-file'>"+u(o)+"</li>"),i.find(".k-upload-action").addClass("k-button k-button-icon k-flat"),s.angular("compile",function(){return{elements:i,data:[o]}})):i=1===a.fileNames.length?s._prepareDefaultSingleFileEntryTemplate(a):s._prepareDefaultMultipleFileEntriesTemplate(a),i.attr(z.attr("uid"),l).appendTo(p).data(a),s._async||e(".k-progress",i).width("100%"),!s.multiple&&n.length>0&&(r={files:n.data("fileNames"),headers:{}},s.trigger(M,r)||s._module.onRemove({target:e(n,s.wrapper)},r)),i},_removeFileEntry:function(t){var a,n,i,o=this,r=t.closest(".k-upload-files");t.remove(),a=e(".k-file",r),n=e(".k-file-success, .k-file-error",r),i=e(".k-file-invalid",r),n.length!==a.length&&i.length!==a.length||this._hideActionButtons(),0===a.length?(r.remove(),o.wrapper.addClass("k-upload-empty"),o._hideHeaderUploadstatus()):o._updateHeaderUploadStatus()},_fileAction:function(e,t,a){var n,i={remove:"k-i-x",cancel:"k-i-cancel",retry:"k-i-retry",pause:"k-i-pause-sm"},o={remove:"k-i-close",cancel:"k-i-cancel",retry:"k-i-reload-sm",pause:"k-i-pause-sm"};i.hasOwnProperty(t)&&(a||this._clearFileAction(e),this.options.template?(n=e.find(".k-upload-action").first(),n.find(".k-icon").length?n.next(".k-upload-action").length&&n.next(".k-upload-action").addClass("k-button").append("<span class='k-icon "+o[t]+" "+i[t]+"' title='"+this.localization[t]+"'aria-label='"+this.localization[t]+"'></span>").show():n.addClass("k-button").append("<span class='k-icon "+o[t]+" "+i[t]+"' title='"+this.localization[t]+"'aria-label='"+this.localization[t]+"'></span>").show()):(a||e.find(".k-upload-status .k-upload-action").remove(),e.find(".k-upload-status").append(this._renderAction(i[t],this.localization[t],o[t]))))},_fileState:function(t,a){var n=this.localization,i={uploading:{text:n.statusUploading},uploaded:{text:n.statusUploaded},failed:{text:n.statusFailed}},o=i[a];o&&e("span.k-file-state",t).text(o.text)},_renderAction:function(t,a,n){return""!==t?e("<button type='button' class='k-button k-button-icon k-flat k-upload-action' aria-label='"+a+"'><span class='k-icon "+n+" "+t+"' title='"+a+"'></span></button>").on("focus",function(){e(this).addClass("k-state-focused")}).on("blur",function(){e(this).removeClass("k-state-focused")}):e("<button type='button' class='k-button'>"+a+"</button>")},_clearFileAction:function(t){e(".k-upload-action",t).empty().hide()},_onFileAction:function(t){var a,n,i,o,r,s,l=this;return l.wrapper.hasClass("k-state-disabled")||(a=e(t.target).closest(".k-upload-action"),n=a.find(".k-icon"),i=a.closest(".k-file"),o=i.data("fileNames"),r=l._filesContainValidationErrors(o),s={files:o,headers:{}},l._retryClicked=!1,n.hasClass("k-i-x")?l.trigger(M,s)||l._module.onRemove({target:e(i,l.wrapper)},s,!r):n.hasClass("k-i-cancel")?(l.trigger(T,s),l._module.onCancel({target:e(i,l.wrapper)}),l._checkAllComplete(),l._updateHeaderUploadStatus()):n.hasClass("k-i-pause-sm")?(l.trigger(B,s),l.pause(i),l._updateHeaderUploadStatus()):n.hasClass("k-i-play-sm")?(l.trigger(H,s),l.resume(i)):n.hasClass("k-i-retry")&&(e(".k-i-warning",i).remove(),e(".k-progressbar",i).finish().show(),l._module.onRetry({target:e(i,l.wrapper)}),l._retryClicked=!0)),!1},_onUploadSelected:function(){var e=this,t=e.wrapper;return t.hasClass("k-state-disabled")||this._module.onSaveSelected(),!1},_onClearSelected:function(){var e=this,t=e.wrapper,a={};return t.hasClass("k-state-disabled")||e.trigger(N,a)||e.clearAllFiles(),!1},_onFileProgress:function(t,a){var n;a>100&&(a=100),e(".k-progressbar",t.target).removeClass("k-hidden"),this.options.template?e(".k-progress",t.target).width(a+"%"):(n=e(".k-upload-pct",t.target),0===n.length&&e(".k-upload-status",t.target).prepend("<span class='k-upload-pct'></span>"),100!==a?e(".k-upload-pct",t.target).text(a+"%"):e(".k-upload-pct",t.target).remove(),e(".k-progress",t.target).width(a+"%")),this.trigger(q,{files:F(t).data("fileNames"),percentComplete:a})},_onUploadSuccess:function(e,t,a){var n=this,i=F(e),o=i.data("fileNames"),r=i.find(".k-file-information"),s=i.find(".k-file-size"),l=n.trigger(R,{files:i.data("fileNames"),response:t,operation:"upload",XMLHttpRequest:a});l?n._setUploadErrorState(i):(n._fileState(i,"uploaded"),i.removeClass("k-file-progress").addClass("k-file-success"),r.length>0?r.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+o.length+" "+n.localization.uploadSuccess+"</span>"):s.length>0&&s.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+n.localization.uploadSuccess+"</span>"),n._updateHeaderUploadStatus(),n._supportsRemove()?n._fileAction(i,M):n._clearFileAction(i)),n._hideUploadProgress(i),n._checkAllComplete()},_onUploadError:function(e,t){var a=this,n=a._module,i=F(e),o=i.data("uid");a._setUploadErrorState(i),a.trigger(I,{operation:"upload",files:i.data("fileNames"),XMLHttpRequest:t}),b("Server response: "+t.responseText),a.options.async.chunkSize?n._decreasePosition&&n._decreasePosition(o):a._hideUploadProgress(i),a._checkAllComplete(),this.options.async.autoRetryAfter&&this._autoRetryAfter(i)},_autoRetryAfter:function(e){var t=this,a=this._module.retries;a&&(a[e.data("uid")]||(a[e.data("uid")]=1),a[e.data("uid")]<=this.options.async.maxAutoRetries&&(a[e.data("uid")]++,setTimeout(function(){t._module.performUpload(e)},this.options.async.autoRetryAfter)))},_setUploadErrorState:function(t){var a,n=this,i=t.data("fileNames"),o=t.find(".k-file-information"),r=t.find(".k-file-size");n._fileState(t,"failed"),t.removeClass("k-file-progress").addClass("k-file-error"),o.length>0?o.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+i.length+" "+n.localization.uploadFail+"</span>"):r.length>0&&r.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+n.localization.uploadFail+"</span>"),n._updateUploadProgress(t),a=e(".k-upload-pct",t),a.length>0&&a.remove(),this._updateHeaderUploadStatus(),this._fileAction(t,"retry"),this._fileAction(t,M,!0),n._retryClicked&&t.find(".k-i-retry").parent().focus()},_updateUploadProgress:function(t){var a,n,i,o=this;o.options.async.chunkSize?(a=t.data("uid"),o._module.metaData&&(n=o._module.metaData[a],n&&(i=n.totalChunks?Math.round(n.chunkIndex/n.totalChunks*100):100,o._onFileProgress({target:e(t,o.wrapper)},i)))):e(".k-progress",t).width("100%")},_hideUploadProgress:function(t){e(".k-progressbar",t).delay(j).fadeOut(X,function(){e(this).find(".k-progress").css("width","0%")})},_showActionButtons:function(){var t=this,a=e(".k-action-buttons",t.wrapper),n=e(".k-upload-selected",t.wrapper),i=e(".k-clear-selected",t.wrapper);0===n.length&&(n=t._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected").addClass("k-primary"),i=t._renderAction("",this.localization.clearSelectedFiles).addClass("k-clear-selected")),a.length||(a=e("<div />").addClass("k-action-buttons").append(i,n)),this.wrapper.append(a)},_hideActionButtons:function(){e(".k-action-buttons",this.wrapper).remove()},_showHeaderUploadStatus:function(t){var a=this,n=a.localization,i=e(".k-dropzone",a.wrapper),o=e(".k-upload-status-total",a.wrapper);0!==o.length&&o.remove(),e(".k-dropzone-hint",a.wrapper).addClass("k-hidden"),o='<strong class="k-upload-status k-upload-status-total"><span class="k-icon"></span></strong>',t?(o=e(o).append(n.headerStatusUploading),o.find(".k-icon").addClass(W.loading)):(o=e(o).append(n.headerStatusUploaded),o.find(".k-icon").addClass(W.warning)),i.length>0?i.append(o):e(".k-upload-button",a.wrapper).after(o)},_updateHeaderUploadStatus:function(){var t,a,n=this,i=e(".k-upload-status-total",this.wrapper),o=e(".k-file",n.wrapper).not(".k-file-success, .k-file-error, .k-file-invalid"),r=e(".k-file-invalid",n.wrapper),s=e(".k-file-error",n.wrapper),l=e(".k-file",n.wrapper).find(".k-i-play-sm");!l.length||l.length!==o.length&&n.options.async.concurrent?(0===o.length||r.length>0||s.length>0)&&(t=e(".k-file.k-file-error, .k-file.k-file-invalid",n.wrapper),i=e(".k-upload-status-total",n.wrapper),a=e(".k-icon",i).removeClass().addClass("k-icon").addClass(0!==t.length?W.warning:W.success),i.html(a).append(n.localization.headerStatusUploaded)):(a=e(".k-icon",i).removeClass().addClass("k-icon").addClass("k-i-pause-sm"),i.html(a).append(n.localization.headerStatusPaused))},_hideHeaderUploadstatus:function(){var t=this,a=t.options.dropZone;e(".k-upload-status-total",this.wrapper).remove(),""===a&&e(".k-dropzone-hint",t.wrapper).removeClass("k-hidden")},_onParentFormSubmit:function(){var a,n=this,i=n.element;t!==this._module.onAbort&&this._module.onAbort(),i.value||(a=e(i),a.attr("disabled","disabled"),window.setTimeout(function(){a.removeAttr("disabled")},0))},_onParentFormReset:function(){e(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return"undefined"!=typeof FormData},_supportsMultiple:function(){var e=this._userAgent().indexOf("Windows")>-1;return!(z.support.browser.opera||z.support.browser.safari&&e)},_supportsDrop:function(){var e=this._userAgent().toLowerCase(),t=/chrome/.test(e),a=!t&&/safari/.test(e),n=a&&/windows/.test(e);return!n&&this._supportsFormData()&&this.options.async.saveUrl},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){var t=this,a=t._ns,n=e(".k-dropzone",t.wrapper).on("dragenter"+a,g).on("dragover"+a,function(e){e.originalEvent&&(e.originalEvent.dataTransfer.dropEffect="copy"),e.preventDefault()}).on("drop"+a,e.proxy(t._onDrop,t));n.find(".k-dropzone-hint").length||n.append(e("<em class='k-dropzone-hint'>"+t.localization.dropFilesHere+"</em>")),_(n,a,function(){n.closest(".k-upload").hasClass("k-state-disabled")||n.addClass("k-dropzone-hovered")},function(){n.removeClass("k-dropzone-hovered")}),t._bindDocumentDragEventWrappers(n)},_setupCustomDropZone:function(){var t,a=this,n=e(a.options.dropZone);a.wrapper.find(".k-dropzone-hint").length?e(".k-dropzone-hint",a.wrapper).addClass("k-hidden"):e(".k-dropzone",a.wrapper).append(e("<em class='k-dropzone-hint k-hidden'>"+a.localization.dropFilesHere+"</em>")),t=a._ns,n.on("dragenter"+t,g).on("dragover"+t,function(e){e.originalEvent&&(e.originalEvent.dataTransfer.dropEffect="copy"),e.preventDefault()}).on("drop"+t,e.proxy(a._onDrop,a)),_(n,t,function(t){a.wrapper.hasClass("k-state-disabled")||(n.removeClass("k-dropzone-hovered"),n.addClass("k-dropzone-hovered"),e(t.target).addClass("k-dropzone-hovered"))},function(){n.removeClass("k-dropzone-hovered"),n.find(".k-dropzone-hovered").removeClass("k-dropzone-hovered")}),a._bindDocumentDragEventWrappers(n)},_bindDocumentDragEventWrappers:function(t){var a=this,n=a._ns;_(e(document),n,function(){a.wrapper.hasClass("k-state-disabled")||(t.addClass("k-dropzone-active"),t.closest(".k-upload").removeClass("k-upload-empty"),t.find(".k-dropzone-hint").removeClass("k-hidden"))},function(){t.removeClass("k-dropzone-active"),t.find(".k-dropzone-hint").addClass("k-hidden"),0===e("li.k-file",t.closest(".k-upload")).length&&t.closest(".k-upload").addClass("k-upload-empty")})},_toggleDropZone:function(){var t=this,a=t.options.dropZone;t._supportsDrop()&&(e(a).off(t._ns),e(".k-dropzone",t.wrapper).off(t._ns),""!==a?t._setupCustomDropZone():t._setupDropZone())},_supportsRemove:function(){return!!this.options.async.removeUrl},_submitRemove:function(t,a,n,i){var o=this,r=o.options.async.removeField||"fileNames",s=e.extend(a.data,U());s[r]=t,jQuery.ajax({type:this.options.async.removeVerb,dataType:"json",dataFilter:v,url:this.options.async.removeUrl,traditional:!0,data:s,headers:a.headers,success:n,error:i,xhrFields:{withCredentials:this.options.async.withCredentials}})},_wrapInput:function(e){var t=this,a=t.options;return e.wrap("<div class='k-widget k-upload'><div class='k-dropzone'><div class='k-button k-upload-button' aria-label='"+this.localization.select+"'></div></div></div>"),a.async.saveUrl?e.closest(".k-upload").addClass("k-upload-async"):e.closest(".k-upload").addClass("k-upload-sync"),e.closest(".k-upload").addClass("k-upload-empty"),e.closest(".k-button").append("<span>"+this.localization.select+"</span>"),e.closest(".k-upload")},_checkAllComplete:function(){0===e(".k-file.k-file-progress",this.wrapper).length&&this.trigger(P)},_inputFiles:function(e){return n(e)}}),G=function(e){this.name="syncUploadModule",this.element=e.wrapper,this.upload=e,this.element.closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};G.prototype={onSelect:function(t,n){var i,o,r=this.upload,s=e(t.target),l=r._filesContainValidationErrors(n);r._addInput(s),i={fileNames:n},l?s.remove():i.relatedInput=s,o=r._enqueueFile(a(s),i),l&&r._hideUploadProgress(o),r._fileAction(o,M)},onRemove:function(e){var t=F(e),a=t.data("relatedInput");a&&a.remove(),this.upload._removeFileEntry(t)}},w=function(e){this.name="iframeUploadModule",this.element=e.wrapper,this.upload=e,this.iframes=[]},K._frameId=0,w.prototype={onSelect:function(t,a){var n=this.upload,i=e(t.target),o=n._filesContainValidationErrors(a),r=this.prepareUpload(i,a,o);n.options.async.autoUpload?o?(n._fileAction(r,M),n._showHeaderUploadStatus(!1)):this.performUpload(r):(n._fileAction(r,M),o?n._updateHeaderUploadStatus():n._showActionButtons()),o&&n._hideUploadProgress(r)},prepareUpload:function(t,n,i){var o,r,s,l,p=this.upload,d=e(p.element),u=p.options.async.saveField||t.attr("name");return p._addInput(t),t.attr("name",u),i?(t.remove(),r={fileNames:n}):(s=this.createFrame(p.name+"_"+K._frameId++),this.registerFrame(s),l=this.createForm(p.options.async.saveUrl,s.attr("name")).append(d),r={frame:s,relatedInput:d,fileNames:n}),o=p._enqueueFile(a(t),r),s&&s.data({form:l,file:o}),o},performUpload:function(t){var a,n,i,o={files:t.data("fileNames")},r=t.data("frame"),s=this.upload,l=t.find(".k-file-validation-message"),p=t.find(".k-file-information"),d=t.find(".k-file-size");if(s.trigger(D,o))s._removeFileEntry(r.data("file")),this.cleanupFrame(r),this.unregisterFrame(r);else{s._hideActionButtons(),s._showHeaderUploadStatus(!0),r.appendTo(document.body),a=r.data("form").attr("action",s.options.async.saveUrl).appendTo(document.body),o.data=e.extend({},o.data,U());for(n in o.data)i=a.find("input[name='"+n+"']"),0===i.length&&(i=e("<input>",{type:"hidden",name:n}).prependTo(a)),i.val(o.data[n]);s._fileAction(t,T),s._fileState(t,"uploading"),e(t).removeClass("k-file-error").addClass("k-file-progress"),l.length>0&&l.remove(),p.length>0?p.removeClass("k-hidden"):d.length>0&&d.removeClass("k-hidden"),r.one("load",e.proxy(this.onIframeLoad,this)),a[0].submit()}},onSaveSelected:function(){var t=this,a=t.upload;e(".k-file",this.element).each(function(){var n=e(this),i=y(n),o=a._filesContainValidationErrors(n.data("fileNames"));i||o||t.performUpload(n)})},onIframeLoad:function(t){var a,n=e(t.target);try{a=n.contents().text()}catch(i){a="Error trying to get server response: "+i}this.processResponse(n,a)},processResponse:function(t,a){var n=t.data("file"),i=this,o={responseText:a};k(a,function(a){e.extend(o,{statusText:"OK",status:"200"}),i.upload._onFileProgress({target:e(n,i.upload.wrapper)},100),i.upload._onUploadSuccess({target:e(n,i.upload.wrapper)},a,o),i.cleanupFrame(t),i.unregisterFrame(t)},function(){e.extend(o,{statusText:"error",status:"500"}),i.upload._onUploadError({target:e(n,i.upload.wrapper)},o)})},onCancel:function(t){var a=e(t.target).data("frame");this.stopFrameSubmit(a),this.cleanupFrame(a),this.unregisterFrame(a),this.upload._removeFileEntry(a.data("file"))},onRetry:function(e){var t=F(e);this.performUpload(t)},onRemove:function(e,t,a){var n=this,i=n.upload,o=F(e),r=o.data("frame");r?(n.unregisterFrame(r),i._removeFileEntry(o),n.cleanupFrame(r)):o.hasClass("k-file-success")?m(o,i,t,a):i._removeFileEntry(o)},onAbort:function(){var t=this.element,a=this;e.each(this.iframes,function(){e("input",this.data("form")).appendTo(t),a.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(t){return e("<iframe name='"+t+"' id='"+t+"' style='display:none;' />")},createForm:function(t,a){return e("<form enctype='multipart/form-data' method='POST' action='"+t+"' target='"+a+"'/>")},stopFrameSubmit:function(e){t!==e.stop?e.stop():e.document&&e.document.execCommand("Stop")},registerFrame:function(e){this.iframes.push(e)},unregisterFrame:function(t){this.iframes=e.grep(this.iframes,function(e){return e.attr("name")!=t.attr("name")})},cleanupFrame:function(e){var t=e.data("form");e.data("file").data("frame",null),setTimeout(function(){t.remove(),e.remove()},1)}},C=function(e){this.name="formDataUploadModule",this.element=e.wrapper,this.upload=e,this.position={},this.metaData={},this.cancelled={},this.resume={},this.paused={},this.retries={}},C.prototype={onSelect:function(t,a){var n,i,o=this.upload,r=this,s=e(t.target),l=this.prepareUpload(s,a);e.each(l,function(t){n=o._filesContainValidationErrors(e(this.data("fileNames"))),o.options.async.autoUpload?n?(o._fileAction(this,M),o._showHeaderUploadStatus(!1)):o.options.async.chunkSize?(r.prepareChunk(this),i=this.prev(),(o.options.async.concurrent||0===t&&!i.length||0===t&&i.hasClass("k-file-success"))&&r.performUpload(this)):r.performUpload(this):(o._fileAction(this,M),n?o._updateHeaderUploadStatus():(o._showActionButtons(),this.addClass("k-toupload"))),n&&o._hideUploadProgress(this)})},prepareUpload:function(t,a){var n=this.enqueueFiles(a);return t.is("input")&&(e.each(n,function(){e(this).data("relatedInput",t)}),t.data("relatedFileEntries",n),this.upload._addInput(t)),n},enqueueFiles:function(t){var a,n,i,o,r=this.upload,s=t.length,l=[];if(r.options.async.batch===!0)a=e.map(t,function(e){return e.name}).join(", "),(r.directory||r.options.directoryDrop)&&e(t).each(function(){(this.rawFile.webkitRelativePath||this.rawFile.relativePath)&&(this.name=this.rawFile.webkitRelativePath||this.rawFile.relativePath)}),o=r._enqueueFile(a,{fileNames:t}),o.data("files",t),l.push(o);else for(n=0;n<s;n++)i=t[n],a=i.name,(r.directory||r.options.directoryDrop)&&(i.rawFile.webkitRelativePath||i.rawFile.relativePath)&&(i.name=i.rawFile.webkitRelativePath||i.rawFile.relativePath),o=r._enqueueFile(a,{fileNames:[i]}),o.data("files",[i]),l.push(o);return l},performUpload:function(t){var a,n,i=this.upload,o=this.createFormData(),r=this.createXHR(),s={files:t.data("fileNames"),XMLHttpRequest:r},l=t.find(".k-file-validation-message"),p=t.find(".k-file-information"),d=t.find(".k-file-size");if(i.trigger(D,s))this.removeFileEntry(t);else{
if(0===t.find(".k-i-cancel").length&&(i.options.async.chunkSize&&i._fileAction(t,B),i._fileAction(t,T,i.options.async.chunkSize)),i.wrapper.find(".k-toupload").length||i._hideActionButtons(),i._showHeaderUploadStatus(!0),s.formData)o=s.formData;else{s.data=e.extend({},s.data,U());for(n in s.data)o.append(n,s.data[n]);a=t.data("files"),a&&this.populateFormData(o,a)}i._fileState(t,"uploading"),e(t).removeClass("k-file-error").addClass("k-file-progress"),l.length>0&&l.remove(),p.length>0?p.removeClass("k-hidden"):d.length>0&&d.removeClass("k-hidden"),i.options.async.useArrayBuffer&&window.FileReader?this._readFile(i.options.async.saveUrl,o,t,r):this.postFormData(i.options.async.saveUrl,o,t,r)}},_readFile:function(a,n,i,o){var r=this,s=r.upload,l=i.data("files")[0],p=new FileReader;p.onload=function(p){try{r.fileArrayBuffer=r.fileArrayBuffer?r._appendBuffer(r.fileArrayBuffer,p.target.result):p.target.result}catch(d){return s._onUploadError({target:e(i,s.wrapper)},o),t}r.position[l.uid]>l.size?(r.postFormData(s.options.async.saveUrl,r.fileArrayBuffer,i,o),r.fileArrayBuffer=null):r._readFile(a,n,i,o)},p.onerror=function(){s._onUploadError({target:e(i,s.wrapper)},o)},p.readAsArrayBuffer(r._getCurrentChunk(l.rawFile,l.uid))},_appendBuffer:function(e,t){var a=new Uint8Array(e.byteLength+t.byteLength);return a.set(new Uint8Array(e),0),a.set(new Uint8Array(t),e.byteLength),a.buffer},onSaveSelected:function(){var t=this,a=t.upload;e(".k-toupload",this.element).filter(function(){var t=e(this),n=y(t),i=a._filesContainValidationErrors(t.data("fileNames"));return!n&&!i}).each(function(n){var i=e(this),o=i.prev();i.removeClass("k-toupload"),a.options.async.chunkSize?(t.prepareChunk(i),(a.options.async.concurrent||0===n&&!o.length||0===n&&o.hasClass("k-file-success")||o.hasClass("k-file-error"))&&t.performUpload(i)):t.performUpload(i)})},onCancel:function(e){var t=F(e);this.upload.options.async.chunkSize&&(this.cancelled[t.data("uid")]=!0),this.stopUploadRequest(t),this.removeFileEntry(t)},onPause:function(e){var t=F(e),a=t.data("uid"),n=this.upload.options.async;n.chunkSize&&(this.retries[a]=n.maxAutoRetries+1,this.paused[a]=!0,this.resume[a]=!1)},onResume:function(e){var t=F(e),a=t.data("uid");this.upload.options.async.chunkSize&&(delete this.paused[a],this.resume[a]=!0,this.retries[t.data("uid")]=1,this._increaseChunkIndex(a),this.performUpload(t))},onRetry:function(e){var t=F(e),a=this.upload.options.async;a.chunkSize&&(this.retries[t.data("uid")]=a.maxAutoRetries+1,delete this.paused[t.data("uid")]),this.performUpload(t)},onRemove:function(e,t,a){var n=this,i=n.upload,o=F(e),r=this.upload.options.async;r.chunkSize&&(this.retries[o.data("uid")]=r.maxAutoRetries+1),o.hasClass("k-file-success")?m(o,i,t,a):n.removeFileEntry(o)},createXHR:function(){return new XMLHttpRequest},postFormData:function(e,t,a,n){var i,o=this;a.data("request",n),n.addEventListener("load",function(e){o.onRequestSuccess.call(o,e,a)},!1),n.addEventListener(I,function(e){o.onRequestError.call(o,e,a)},!1),n.upload.addEventListener("progress",function(e){o.onRequestProgress.call(o,e,a)},!1),n.open("POST",e,!0),n.withCredentials=this.upload.options.async.withCredentials,i=this.upload.options.async.accept,i&&n.setRequestHeader("Accept",i),n.send(t)},createFormData:function(){return new FormData},populateFormData:function(e,t){var a,n,i,o,r=t.length,s=this.upload;if(s.options.async.chunkSize)i=t[0].uid,a=this._getCurrentChunk(t[0].rawFile,i),e.append(s.options.async.saveField||s.name,a),o=JSON.stringify(this.metaData[i]),e.append("metadata",o);else for(n=0;n<r;n++)e.append(s.options.async.saveField||s.name,t[n].rawFile);return e},onRequestSuccess:function(t,a){function n(){r.upload._onUploadError({target:e(a,r.upload.wrapper)},o)}function i(t){var n=r.upload.options.async.batch,i=r.upload.options.async.chunkSize,s=r.upload.options.async.concurrent,l=t.fileUid;r.paused[l]||r.cancelled[l]||(delete r.retries[l],!i||n||t.uploaded?!i||n||s||!a.next().length||a.next().hasClass("k-toupload")?(r.upload._onFileProgress({target:e(a,r.upload.wrapper)},100),r.upload._onUploadSuccess({target:e(a,r.upload.wrapper)},t,o),r.cleanupFileEntry(a)):(r.upload._onFileProgress({target:e(a,r.upload.wrapper)},100),r._resetChunkIndex(l),r.upload._onUploadSuccess({target:e(a,r.upload.wrapper)},t,o),r.performUpload(a.next())):(r._increaseChunkIndex(l),r.performUpload(a)))}var o=t.target,r=this;o.status>=200&&o.status<=299?k(o.responseText,i,n):n()},onRequestError:function(t,a){var n=t.target;this.upload._onUploadError({target:e(a,this.upload.wrapper)},n)},cleanupFileEntry:function(t){var a=t.data("relatedInput"),n=!0;a&&(e.each(a.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=t[0]&&(n=n&&this.hasClass("k-file-success"))}),n&&a.remove())},removeFileEntry:function(e){var t=this.upload.options.async.chunkSize,a=this.upload.options.async.concurrent,n=this.upload.wrapper.find(".k-upload-selected").length>0;this.cleanupFileEntry(e),!t||a||n||e.next().length&&this.performUpload(e.next()),this.upload._removeFileEntry(e)},onRequestProgress:function(t,a){var n,i=Math.round(100*t.loaded/t.total),o=a.data("uid");this.upload.options.async.chunkSize&&(n=this.metaData[o],i=n&&n.totalChunks?Math.round(n.chunkIndex/n.totalChunks*100):100),this.upload._onFileProgress({target:e(a,this.upload.wrapper)},i)},stopUploadRequest:function(e){e.data("request").abort()},prepareChunk:function(e){var t=e.data("files")[0],a=t.rawFile,n=t.uid,i=this.upload.options.async.chunkSize;this.position[n]=0,this.metaData[n]={chunkIndex:0,contentType:a.type,fileName:a.name,relativePath:t.name,totalFileSize:a.size,totalChunks:Math.ceil(a.size/i),uploadUid:n}},_decreaseChunkIndex:function(e){this.metaData[e].chunkIndex--},_increaseChunkIndex:function(e){this.metaData[e].chunkIndex++},_resetChunkIndex:function(e){this.metaData[e].chunkIndex=0},_decreasePosition:function(e){this.position[e]-=this.upload.options.async.chunkSize},_getCurrentChunk:function(e,t){var a,n=this.position[t],i=this.upload.options.async,o=i.chunkSize||i.bufferChunkSize;return this.position[t]||(this.position[t]=0),this.position[t]+=o,(a=this._getChunker(e))?e[a](n,this.position[t]):e},_getChunker:function(e){return e.slice?"slice":e.mozSlice?"mozSlice":e.webkitSlice?"webkitSlice":null}},z.ui.plugin(K)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.upload.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.dropdownlist.min",["kendo.list.min","kendo.mobile.scroller.min","kendo.virtuallist.min"],t)}(function(){return function(t,e){function i(t,e,i){for(var n,a=0,o=e.length-1;a<o;++a)n=e[a],n in t||(t[n]={}),t=t[n];t[e[o]]=i}function n(t,e){return t>=e&&(t-=e),t}function a(t,e){for(var i=0;i<t.length;i++)if(t.charAt(i)!==e)return!1;return!0}var o=window.kendo,s=o.ui,l=s.List,r=s.Select,p=o.support,u=o._activeElement,c=o.data.ObservableObject,d=o.keys,f=".kendoDropDownList",_=f+"FocusEvent",h="disabled",m="readonly",v="change",b="k-state-focused",w="k-state-default",g="k-state-disabled",I="aria-disabled",x="aria-readonly",L="click"+f+" touchend"+f,k="mouseenter"+f+" mouseleave"+f,y="tabindex",T="filter",V="accept",C="The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel",O=t.proxy,D="open",F="close",S=r.extend({init:function(i,n){var a,s,l,p=this,u=n&&n.index;p.ns=f,n=t.isArray(n)?{dataSource:n}:n,r.fn.init.call(p,i,n),n=p.options,i=p.element.on("focus"+f,O(p._focusHandler,p)),p._focusInputHandler=t.proxy(p._focusInput,p),p.optionLabel=t(),p._optionLabel(),p._inputTemplate(),p._reset(),p._prev="",p._word="",p._wrapper(),p._tabindex(),p.wrapper.data(y,p.wrapper.attr(y)),p._span(),p._popup(),p._mobile(),p._dataSource(),p._ignoreCase(),p._filterHeader(),p._aria(),p.wrapper.attr("aria-live","polite"),p._enable(),p._attachFocusHandlers(),p._oldIndex=p.selectedIndex=-1,u!==e&&(n.index=u),p._initialIndex=n.index,p.requireValueMapper(p.options),p._initList(),p.listView.one("dataBound",O(p._attachAriaActiveDescendant,p)),p._cascade(),p.one("set",function(t){!t.sender.listView.bound()&&p.hasOptionLabel()&&p._textAccessor(p._optionLabelText())}),n.autoBind?p.dataSource.fetch():p.selectedIndex===-1&&(s=n.text||"",s||(a=n.optionLabel,a&&0===n.index?s=a:p._isSelect&&(s=i.children(":selected").text())),p._textAccessor(s)),l=t(p.element).parents("fieldset").is(":disabled"),l&&p.enable(!1),p.listView.bind("click",function(t){t.preventDefault()}),o.notify(p)},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,enforceMinLength:!1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",autoWidth:!1,popup:null,filterTitle:null},events:["open","close",v,"select","filtering","dataBinding","dataBound","cascade","set","kendoKeydown"],setOptions:function(t){r.fn.setOptions.call(this,t),this.listView.setOptions(this._listOptions(t)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var t=this;r.fn.destroy.call(t),t.wrapper.off(f),t.wrapper.off(_),t.element.off(f),t._inputWrapper.off(f),t._arrow.off(),t._arrow=null,t._arrowIcon=null,t.optionLabel.off(),t.filterInput&&t.filterInput.off(_)},open:function(){var t=this,e=!!t.dataSource.filter()&&t.dataSource.filter().filters.length>0,i=this.listView;t.popup.visible()||(t.listView.bound()&&t._state!==V?t._allowOpening()&&(t._focusFilter=!0,t.popup.one("activate",t._focusInputHandler),t.popup._hovered=!0,t.wrapper.attr("aria-activedescendant",i._optionID),t.popup.open(),t._resizeFilterInput(),t._focusItem()):(t._open=!0,t._state="rebind",t.filterInput&&(t.filterInput.val(""),t._prev=""),t.filterInput&&1!==t.options.minLength&&!e?(t.refresh(),t.popup.one("activate",t._focusInputHandler),t.wrapper.attr("aria-activedescendant",i._optionID),t.popup.open(),t._resizeFilterInput()):t._filterSource()))},close:function(){this._attachAriaActiveDescendant(),this.popup.close()},_attachAriaActiveDescendant:function(){var t=this.wrapper,e=t.find(".k-input").attr("id");t.attr("aria-activedescendant",e)},_focusInput:function(){this._focusElement(this.filterInput)},_resizeFilterInput:function(){var t,e,i=this.filterInput,n=this._prevent;i&&(t=this.filterInput[0]===u(),e=o.caret(this.filterInput[0])[0],this._prevent=!0,i.css("display","none").css("width",this.popup.element.css("width")).css("display","inline-block"),t&&(i.focus(),o.caret(i[0],e)),this._prevent=n)},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||r.fn._allowOpening.call(this)},toggle:function(t){this._toggle(t,!0)},current:function(t){var i;return t===e?(i=this.listView.focus(),!i&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:i):(this._focus(t),e)},dataItem:function(i){var n=this,a=null;if(null===i)return i;if(i===e)a=n.listView.selectedDataItems()[0];else{if("number"!=typeof i){if(n.options.virtual)return n.dataSource.getByUid(t(i).data("uid"));i=i.hasClass("k-list-optionlabel")?-1:t(n.items()).index(i)}else n.hasOptionLabel()&&(i-=1);a=n.dataSource.flatView()[i]}return a||(a=n._optionLabelDataItem()),a},refresh:function(){this.listView.refresh()},text:function(t){var i,n=this,a=n.options.ignoreCase;return t=null===t?"":t,t===e?n._textAccessor():"string"!=typeof t?(n._textAccessor(t),e):(i=a?t.toLowerCase():t,n._select(function(t){return t=n._text(t),a&&(t=(t+"").toLowerCase()),t===i}).done(function(){n._textAccessor(n.dataItem()||t)}),e)},_clearFilter:function(){t(this.filterInput).val(""),r.fn._clearFilter.call(this)},value:function(t){var i=this,n=i.listView,a=i.dataSource;return t===e?(t=i._accessor()||i.listView.value()[0],t===e||null===t?"":t):(i.requireValueMapper(i.options,t),!t&&i.hasOptionLabel()||(i._initialIndex=null),this.trigger("set",{value:t}),i._request&&i.options.cascadeFrom&&i.listView.bound()?(i._valueSetter&&a.unbind(v,i._valueSetter),i._valueSetter=O(function(){i.value(t)},i),a.one(v,i._valueSetter),e):(i._isFilterEnabled()&&n.bound()&&n.isFiltered()?i._clearFilter():i._fetchData(),n.value(t).done(function(){i._old=i._valueBeforeCascade=i._accessor(),i._oldIndex=i.selectedIndex}),e))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var i=this,n=i.options,a=n.optionLabel,s=n.optionLabelTemplate;return a?(s||(s="#:",s+="string"==typeof a?"data":o.expr(n.dataTextField,"data"),s+="#"),"function"!=typeof s&&(s=o.template(s)),i.optionLabelTemplate=s,i.hasOptionLabel()||(i.optionLabel=t('<div class="k-list-optionlabel"></div>').prependTo(i.list)),i.optionLabel.html(s(a)).off().on(L,O(i._click,i)).on(k,i._toggleHover),i.angular("compile",function(){return{elements:i.optionLabel,data:[{dataItem:i._optionLabelDataItem()}]}}),e):(i.optionLabel.off().remove(),i.optionLabel=t(),e)},_optionLabelText:function(){var t=this.options.optionLabel;return"string"==typeof t?t:this._text(t)},_optionLabelDataItem:function(){var i=this,n=i.options.optionLabel;return i.hasOptionLabel()?t.isPlainObject(n)?new c(n):i._assignInstance(i._optionLabelText(),""):e},_buildOptions:function(t){var i,n,a,o=this;o._isSelect&&(i=o.listView.value()[0],n=o._optionLabelDataItem(),a=n&&o._value(n),i!==e&&null!==i||(i=""),n&&(a!==e&&null!==a||(a=""),n='<option value="'+a+'">'+o._text(n)+"</option>"),o._options(t,n,i),i!==l.unifyType(o._accessor(),typeof i)&&(o._customOption=null,o._custom(i)))},_listBound:function(){var t,e=this,i=e._initialIndex,n=e._state===T,a=e.dataSource.flatView();e._presetValue=!1,e._renderFooter(),e._renderNoData(),e._toggleNoData(!a.length),e._resizePopup(!0),e.popup.position(),e._buildOptions(a),n||(e._open&&e.toggle(e._allowOpening()),e._open=!1,e._fetch||(a.length?(!e.listView.value().length&&i>-1&&null!==i&&e.select(i),e._initialIndex=null,t=e.listView.selectedDataItems()[0],t&&e.text()!==e._text(t)&&e._selectValue(t)):e._textAccessor()!==e._optionLabelText()&&(e.listView.value(""),e._selectValue(null),e._oldIndex=e.selectedIndex))),e._hideBusy(),e.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&this._oldIndex===-1)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this._search()},_attachFocusHandlers:function(){var t=this,e=t.wrapper;e.on("focusin"+_,O(t._focusinHandler,t)).on("focusout"+_,O(t._focusoutHandler,t)),t.filterInput&&t.filterInput.on("focusin"+_,O(t._focusinHandler,t)).on("focusout"+_,O(t._focusoutHandler,t))},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(b),this._prevent=!1},_focusoutHandler:function(){var t=this,e=window.self!==window.top;t._prevent||(clearTimeout(t._typingTimeout),p.mobileOS.ios&&e?t._change():t._blur(),t._inputWrapper.removeClass(b),t._prevent=!0,t._open=!1,t.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(t){t.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_editable:function(t){var e=this,i=e.element,n=t.disable,a=t.readonly,s=e.wrapper.add(e.filterInput).off(f),l=e._inputWrapper.off(k);a||n?n?(s.removeAttr(y),l.addClass(g).removeClass(w)):l.addClass(w).removeClass(g):(i.removeAttr(h).removeAttr(m),l.addClass(w).removeClass(g).on(k,e._toggleHover),s.attr(y,s.data(y)).attr(I,!1).attr(x,!1).on("keydown"+f,e,O(e._keydown,e)).on(o.support.mousedown+f,O(e._wrapperMousedown,e)).on("paste"+f,O(e._filterPaste,e)),e.wrapper.on("click"+f,O(e._wrapperClick,e)),e.filterInput?s.on("input"+f,O(e._search,e)):s.on("keypress"+f,O(e._keypress,e))),i.attr(h,n).attr(m,a),s.attr(I,n).attr(x,a)},_keydown:function(t){var i,n,a,o=this,s=t.keyCode,l=t.altKey,r=o.popup.visible();if(o.filterInput&&(i=o.filterInput[0]===u()),s===d.LEFT?(s=d.UP,n=!0):s===d.RIGHT&&(s=d.DOWN,n=!0),!n||!i){if(t.keyCode=s,(l&&s===d.UP||s===d.ESC)&&o._focusElement(o.wrapper),o._state===T&&s===d.ESC&&(o._clearFilter(),o._open=!1,o._state=V),s===d.ENTER&&o._typingTimeout&&o.filterInput&&r)return t.preventDefault(),e;if(s!==d.SPACEBAR||i||(o.toggle(!r),t.preventDefault()),n=o._move(t),!n){if((!r||!o.filterInput)&&(a=o._focus(),s===d.HOME?(n=!0,o._firstItem()):s===d.END&&(n=!0,o._lastItem()),n)){if(o.trigger("select",{dataItem:o._getElementDataItem(o._focus()),item:o._focus()}))return o._focus(a),e;o._select(o._focus(),!0).done(function(){r||o._blur()}),t.preventDefault()}l||n||!o.filterInput||o._search()}}},_matchText:function(t,i){var n=this.options.ignoreCase;return t!==e&&null!==t&&(t+="",n&&(t=t.toLowerCase()),0===t.indexOf(i))},_shuffleData:function(t,e){var i=this._optionLabelDataItem();return i&&(t=[i].concat(t)),t.slice(e).concat(t.slice(0,e))},_selectNext:function(){var t,e,i,o=this,s=o.dataSource.flatView(),l=s.length+(o.hasOptionLabel()?1:0),r=a(o._word,o._last),p=o.selectedIndex;for(p===-1?p=0:(p+=r?1:0,p=n(p,l)),s=s.toJSON?s.toJSON():s.slice(),s=o._shuffleData(s,p),i=0;i<l&&(e=o._text(s[i]),!r||!o._matchText(e,o._last))&&!o._matchText(e,o._word);i++);i!==l&&(t=o._focus(),o._select(n(p+i,l)).done(function(){var e=function(){o.popup.visible()||o._change()};o.trigger("select",{dataItem:o._getElementDataItem(o._focus()),item:o._focus()})?o._select(t).done(e):e()}))},_keypress:function(t){var e,i=this;0!==t.which&&t.keyCode!==o.keys.ENTER&&(e=String.fromCharCode(t.charCode||t.keyCode),i.options.ignoreCase&&(e=e.toLowerCase())," "===e&&t.preventDefault(),i._word+=e,i._last=e,i._search())},_popupOpen:function(){var t=this.popup;t.wrapper=o.wrap(t.element),t.element.closest(".km-root")[0]&&(t.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){r.fn._popup.call(this),this.popup.one("open",O(this._popupOpen,this))},_getElementDataItem:function(t){return t&&t[0]?t[0]===this.optionLabel[0]?this._optionLabelDataItem():this.listView.dataItemByIndex(this.listView.getElementIndex(t)):null},_click:function(i){var n=this,a=i.item||t(i.currentTarget);return i.preventDefault(),n.trigger("select",{dataItem:n._getElementDataItem(a),item:a})?(n.close(),e):(n._userTriggered=!0,n._select(a).done(function(){n._blur(),n._focusElement(n.wrapper)}),e)},_focusElement:function(t){var e=u(),i=this.wrapper,n=this.filterInput,a=t===n?i:n,o=p.mobileOS&&(p.touch||p.MSPointers||p.pointers);n&&n[0]===t[0]&&o||n&&(a[0]===e||this._focusFilter)&&(this._focusFilter=!1,this._prevent=!0,this._focused=t.focus())},_searchByWord:function(t){var e,i;t&&(e=this,i=e.options.ignoreCase,i&&(t=t.toLowerCase()),e._select(function(i){return e._matchText(e._text(i),t)}))},_inputValue:function(){return this.text()},_search:function(){var t=this,i=t.dataSource;if(clearTimeout(t._typingTimeout),t._isFilterEnabled())t._typingTimeout=setTimeout(function(){var e=t.filterInput.val();t._prev!==e&&(t._prev=e,t.search(e),t._resizeFilterInput()),t._typingTimeout=null},t.options.delay);else{if(t._typingTimeout=setTimeout(function(){t._word=""},t.options.delay),!t.listView.bound())return i.fetch().done(function(){t._selectNext()}),e;t._selectNext()}},_get:function(e){var i,n,a,o="function"==typeof e,s=o?t():t(e);if(this.hasOptionLabel()&&("number"==typeof e?e>-1&&(e-=1):s.hasClass("k-list-optionlabel")&&(e=-1)),o){for(i=this.dataSource.flatView(),a=0;a<i.length;a++)if(e(i[a])){e=a,n=!0;break}n||(e=-1)}return e},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){var t;return this.optionLabel.hasClass("k-state-focused")?(this._resetOptionLabel(),this.listView.focusFirst(),t=1):t=this.listView.focusNext(),t},_prevItem:function(){var t;if(!this.optionLabel.hasClass("k-state-focused"))return t=this.listView.focusPrev(),this.listView.focus()||this.options.virtual||this._focus(this.optionLabel),t},_focusItem:function(){var t=this.options,i=this.listView,n=i.focus(),a=i.select();a=a[a.length-1],a===e&&t.highlightFirst&&!n&&(a=0),a!==e?i.focus(a):!t.optionLabel||t.virtual&&"dataItem"===t.virtual.mapValueTo?i.scrollToIndex(0):(this._focus(this.optionLabel),this._select(this.optionLabel),this.listView.content.scrollTop(0))},_resetOptionLabel:function(t){this.optionLabel.removeClass("k-state-focused"+(t||"")).removeAttr("id")},_focus:function(t){var i=this.listView,n=this.optionLabel;return t===e?(t=i.focus(),!t&&n.hasClass("k-state-focused")&&(t=n),t):(this._resetOptionLabel(),t=this._get(t),i.focus(t),t===-1&&(n.addClass("k-state-focused").attr("id",i._optionID),this._focused.add(this.filterInput).removeAttr("aria-activedescendant").attr("aria-activedescendant",i._optionID)),e)},_select:function(t,e){var i=this;return t=i._get(t),i.listView.select(t).done(function(){e||i._state!==T||(i._state=V),t===-1&&i._selectValue(null)})},_selectValue:function(t){var i=this,n=i.options.optionLabel,a=i.listView.select(),o="",s="";a=a[a.length-1],a===e&&(a=-1),this._resetOptionLabel(" k-state-selected"),t||0===t?(s=t,o=i._dataValue(t),n&&(a+=1)):n&&(i._focus(i.optionLabel.addClass("k-state-selected")),s=i._optionLabelText(),o="string"==typeof n?"":i._value(n),a=0),i.selectedIndex=a,null===o&&(o=""),i._textAccessor(s),i._accessor(o,a),i._triggerCascade()},_mobile:function(){var t=this,e=t.popup,i=p.mobileOS,n=e.element.parents(".km-root").eq(0);n.length&&i&&(e.options.animation.open.effects=i.android||i.meego?"fadeIn":i.ios||i.wp?"slideIn:up":e.options.animation.open.effects)},_filterHeader:function(){var e;this.filterInput&&(this.filterInput.off(f).parent().remove(),this.filterInput=null),this._isFilterEnabled()&&(e='<span class="k-icon k-i-zoom"></span>',this.filterInput=t('<input class="k-textbox"/>').attr({placeholder:this.element.attr("placeholder"),title:this.options.filterTitle||this.element.attr("title"),role:"searchbox","aria-haspopup":"listbox","aria-autocomplete":"list"}),this.list.prepend(t('<span class="k-list-filter" />').append(this.filterInput.add(e))))},_span:function(){var e,i=this,n=i.wrapper,a="span.k-input",s=o.guid();e=n.find(a),e[0]||(n.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span id="'+s+'" unselectable="on" role="option" aria-selected="true" class="k-input">&nbsp;</span><span role="button" unselectable="on" class="k-select" aria-label="select"><span class="k-icon k-i-arrow-60-down"></span></span></span>').append(i.element),e=n.find(a)),i.span=e,i._inputWrapper=t(n[0].firstChild),i._arrow=n.find(".k-select"),i._arrowIcon=i._arrow.find(".k-icon")},_wrapper:function(){var t,e=this,i=e.element,n=i[0];t=i.parent(),t.is("span.k-widget")||(t=i.wrap("<span />").parent(),t[0].style.cssText=n.style.cssText,t[0].title=n.title),e._focused=e.wrapper=t.addClass("k-widget k-dropdown").addClass(n.className).removeClass("input-validation-error").css("display","").attr({accesskey:i.attr("accesskey"),unselectable:"on",role:"listbox","aria-haspopup":"listbox","aria-expanded":!1}),i.hide().removeAttr("accesskey")},_clearSelection:function(t){this.select(t.value()?0:-1)},_openHandler:function(t){this._adjustListWidth(),this.trigger(D)?t.preventDefault():(this.wrapper.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_closeHandler:function(t){this.trigger(F)?t.preventDefault():(this.wrapper.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_inputTemplate:function(){var e=this,i=e.options.valueTemplate;if(i=i?o.template(i):t.proxy(o.template("#:this._text(data)#",{useWithBlock:!1}),e),e.valueTemplate=i,e.hasOptionLabel()&&!e.options.optionLabelTemplate)try{e.valueTemplate(e._optionLabelDataItem())}catch(n){throw Error(C)}},_textAccessor:function(i){var n,a=null,o=this.valueTemplate,s=this._optionLabelText(),l=this.span;if(i===e)return l.text();t.isPlainObject(i)||i instanceof c?a=i:s&&s===i&&(a=this.options.optionLabel),a||(a=this._assignInstance(i,this._accessor())),this.hasOptionLabel()&&(a!==s&&this._text(a)!==s||(o=this.optionLabelTemplate,"string"!=typeof this.options.optionLabel||this.options.optionLabelTemplate||(a=s))),n=function(){return{elements:l.get(),data:[{dataItem:a}]}},this.angular("cleanup",n);try{l.html(o(a))}catch(r){l.html("")}this.angular("compile",n)},_preselect:function(t,e){t||e||(e=this._optionLabelText()),this._accessor(t),this._textAccessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(t),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(t,e){var n=this.options.dataTextField,a={};return n?(i(a,n.split("."),t),i(a,this.options.dataValueField.split("."),e),a=new c(a)):a=t,a}});s.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()});
//# sourceMappingURL=kendo.dropdownlist.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.numerictextbox.min",["kendo.core.min","kendo.userevents.min","kendo.floatinglabel.min"],e)}(function(){return function(e,t){function a(e,t){var a="k-i-arrow-"+("increase"===e?"60-up":"60-down");return'<span role="button" unselectable="on" class="k-link k-link-'+e+'" aria-label="'+t+'" title="'+t+'"><span unselectable="on" class="'+F+" "+a+'"></span></span>'}function n(e,t){var a=(""+parseFloat(e,10)).split(L);return a[1]&&(a[1]=a[1].substring(0,t)),a.join(L)}var r=window.kendo,i=r.caret,o=r.keys,l=r.ui,s=l.Widget,u=r._activeElement,p=r._extractFormat,d=r.parseFloat,c=r.support.placeholder,_=r.getCulture,f="change",m="disabled",v="readonly",h="k-input",b="spin",g=".kendoNumericTextBox",x="touchend",w="mouseleave"+g,y="mouseenter"+g+" "+w,k="k-state-default",T="k-state-focused",C="k-state-hover",A="focus",L=".",E="symbol",F="k-icon",H="k-label k-input-label",O="k-state-selected",I="k-state-disabled",S="k-state-invalid",W="aria-disabled",D=/^(-)?(\d*)$/,P=null,R=e.proxy,j=e.isPlainObject,N=e.extend,V=s.extend({init:function(a,n){var i,o,l,u,d,c,_=this,f=n&&n.step!==t;s.fn.init.call(_,a,n),n=_.options,a=_.element.on("focusout"+g,R(_._focusout,_)).attr("role","spinbutton"),n.placeholder=n.placeholder||a.attr("placeholder"),i=_.min(a.attr("min")),o=_.max(a.attr("max")),l=_._parse(a.attr("step")),n.min===P&&i!==P&&(n.min=i),n.max===P&&o!==P&&(n.max=o),f||l===P||(n.step=l),_._initialOptions=N({},n),c=a.attr("type"),_._reset(),_._wrapper(),_._arrows(),_._validation(),_._input(),r.support.mobileOS?_._text.on(x+g+" "+A+g,function(){r.support.browser.edge?_._text.one(A+g,function(){_._focusin()}):_._focusin(),_.selectValue()}):_._text.on(A+g,R(_._click,_)),a.attr("aria-valuemin",n.min!==P?n.min*n.factor:n.min).attr("aria-valuemax",n.max!==P?n.max*n.factor:n.max),n.format=p(n.format),u=n.value,u==P&&(u="number"==c?parseFloat(a.val()):a.val()),_.value(u),d=!n.enable||a.is("[disabled]")||e(_.element).parents("fieldset").is(":disabled"),d?_.enable(!1):_.readonly(a.is("[readonly]")),_.angular("compile",function(){return{elements:_._text.get()}}),_._label(),_._ariaLabel(),r.notify(_)},options:{name:"NumericTextBox",decimals:P,enable:!0,restrictDecimals:!1,min:P,max:P,value:P,step:1,round:!0,culture:"",format:"n",spinners:!0,placeholder:"",selectOnFocus:!1,factor:1,upArrowText:"Increase value",downArrowText:"Decrease value",label:null},events:[f,b],_editable:function(e){var t=this,a=t.element,n=e.disable,r=e.readonly,i=t._text.add(a),o=t._inputWrapper.off(y);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),a.off("keydown"+g).off("keyup"+g).off("input"+g).off("paste"+g),t._inputLabel&&t._inputLabel.off(g),r||n?(o.addClass(n?I:k).removeClass(n?k:I),i.attr(m,n).attr(v,r).attr(W,n)):(o.addClass(k).removeClass(I).on(y,t._toggleHover),i.removeAttr(m).removeAttr(v).attr(W,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(O)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(O)}),t.element.on("keydown"+g,R(t._keydown,t)).on("keyup"+g,R(t._keyup,t)).on("paste"+g,R(t._paste,t)).on("input"+g,R(t._inputHandler,t)),t._inputLabel&&t._inputLabel.on("click"+g,R(t.focus,t)))},readonly:function(e){var a=this;this._editable({readonly:e===t||e,disable:!1}),a.floatingLabel&&a.floatingLabel.readonly(e===t||e)},enable:function(e){var a=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),a.floatingLabel&&a.floatingLabel.enable(e=e===t||e)},setOptions:function(e){var a=this;s.fn.setOptions.call(a,e),a._arrowsWrap.toggle(a.options.spinners),a._inputWrapper.toggleClass("k-expand-padding",!a.options.spinners),a._text.prop("placeholder",a.options.placeholder),a._placeholder(a.options.placeholder),a.element.attr({"aria-valuemin":a.options.min!==P?a.options.min*a.options.factor:a.options.min,"aria-valuemax":a.options.max!==P?a.options.max*a.options.factor:a.options.max}),a.options.format=p(a.options.format),e.value!==t&&a.value(e.value)},destroy:function(){var e=this;e._inputLabel&&(e._inputLabel.off(g),e.floatingLabel&&e.floatingLabel.destroy()),e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(g),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off("reset",e._resetHandler),s.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var a,n=this;return e===t?n._value:(e=n._parse(e),a=n._adjust(e),e===a&&(n._update(e),n._old=n._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,a=t.options,n=a.min,r=a.max;return e===P?e:(n!==P&&e<n?e=n:r!==P&&e>r&&(e=r),e)},_arrows:function(){var t,n=this,i=function(){clearTimeout(n._spinning),t.removeClass(O)},o=n.options,l=o.spinners,s=n.element;t=s.siblings("."+F),t[0]||(t=e(a("increase",o.upArrowText)+a("decrease",o.downArrowText)).insertAfter(s),n._arrowsWrap=t.wrapAll('<span class="k-select"/>').parent()),l||(t.parent().toggle(l),n._inputWrapper.addClass("k-expand-padding")),n._upArrow=t.eq(0),n._upArrowEventHandler=new r.UserEvents(n._upArrow,{release:i}),n._downArrow=t.eq(1),n._downArrowEventHandler=new r.UserEvents(n._downArrow,{release:i})},_validation:function(){var t=this,a=t.element;t._validationIcon=e("<span class='"+F+" k-i-warning'></span>").hide().insertAfter(a)},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var a,n,r,o=e.target,l=i(o)[0],s=o.value.substring(0,l),u=t._format(t.options.format),p=u[","],d=0;p&&(n=RegExp("\\"+p,"g"),r=RegExp("(-)?("+u[E]+")?([\\d\\"+p+"]+)(\\"+u[L]+")?(\\d+)?")),r&&(a=r.exec(s)),a&&(d=a[0].replace(n,"").length,s.indexOf("(")!=-1&&t._value<0&&d++),t._focusin(),i(t.element[0],d),t.selectValue()})},selectValue:function(){this.options.selectOnFocus&&this.element[0].select()},_getFactorValue:function(e){var t=this,a=t.options.factor;return a&&1!==a&&(e=r.parseFloat(e),null!==e&&(e/=a)),e},_change:function(e){var t=this;e=t._getFactorValue(e),t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(f),t.trigger(f)),t._typing=!1},_culture:function(e){return e||_(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(T),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(T).removeClass(C),e._blur(),e._removeInvalidState()},_format:function(e,t){var a=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?a=a.currency:e.indexOf("p")>-1&&(a=a.percent),a},_input:function(){var t,a=this,n=a.options,r="k-formatted-value",i=a.element.addClass(h).show()[0],o=i.accessKey,l=a.wrapper;t=l.find(L+r),t[0]||(t=e('<input type="text"/>').insertBefore(i).addClass(r));try{i.setAttribute("type","text")}catch(s){i.type="text"}t[0].title=i.title,t[0].tabIndex=i.tabIndex,t[0].style.cssText=i.style.cssText,t.prop("placeholder",n.placeholder),o&&(t.attr("accesskey",o),i.accessKey=""),a._text=t.addClass(i.className).attr({role:"spinbutton","aria-valuemin":n.min!==P?n.min*n.factor:n.min,"aria-valuemax":n.max!==P?n.max*n.factor:n.max,autocomplete:"off"})},_keydown:function(e){var a=this,n=e.keyCode;return n===o.NUMPAD_DOT&&(a._numPadDot=!0),n==o.DOWN?(a._step(-1),t):n==o.UP?(a._step(1),t):n==o.ENTER?(a._change(a.element.val()),t):(n!=o.TAB&&(a._typing=!0),a._cachedCaret=i(a.element),t)},_keyup:function(){this._removeInvalidState()},_inputHandler:function(){var e=this.element,t=e.val(),a=this.options.min,n=this._format(this.options.format),r=n[L],o=null!==a&&a>=0&&"-"===t.charAt(0);this._numPadDot&&r!==L&&(t=t.replace(L,r),this.element.val(t),this._numPadDot=!1),this._isPasted&&(t=(""+this._parse(t)).replace(L,n[L])),this._numericRegex(n).test(t)&&!o?this._oldText=t:(this._blinkInvalidState(),this.element.val(this._oldText),this._cachedCaret&&(i(e,this._cachedCaret[0]),this._cachedCaret=null)),this._isPasted=!1},_blinkInvalidState:function(){var e=this;e._addInvalidState(),clearTimeout(e._invalidStateTimeout),e._invalidStateTimeout=setTimeout(R(e._removeInvalidState,e),100)},_addInvalidState:function(){var e=this;e._inputWrapper.addClass(S),e._validationIcon.show()},_removeInvalidState:function(){var e=this;e._inputWrapper.removeClass(S),e._validationIcon.hide(),e._invalidStateTimeout=null},_numericRegex:function(e){var t=this,a=e[L],n=t.options.decimals,r="*";return a===L&&(a="\\"+a),n===P&&(n=e.decimals),0===n&&t.options.restrictDecimals?D:(t.options.restrictDecimals&&(r="{0,"+n+"}"),t._separator!==a&&(t._separator=a,t._floatRegExp=RegExp("^(-)?(((\\d+("+a+"\\d"+r+")?)|("+a+"\\d"+r+")))?$")),t._floatRegExp)},_paste:function(e){var t=this,a=e.target,n=a.value,r=t._format(t.options.format);t._isPasted=!0,setTimeout(function(){var e=t._parse(a.value);e===P?t._update(n):(a.value=(""+e).replace(L,r[L]),t._adjust(e)===e&&t._numericRegex(r).test(a.value)||(n=t._getFactorValue(a.value),t._update(n)))})},_option:function(e,a){var n=this,r=n.element,i=n.options;return a===t?i[e]:(a=n._parse(a),(a||"step"!==e)&&(i[e]=a,r.add(n._text).attr("aria-value"+e,a),r.attr(e,a)),t)},_ariaLabel:function(){var t,a=this,n=a._text,i=a.element,o=i.attr("id"),l=e("label[for='"+o+"']"),s=i.attr("aria-label"),u=i.attr("aria-labelledby");s?n.attr("aria-label",s):u?n.attr("aria-labelledby",u):l.length&&(t=l.attr("id"),t?n.attr("aria-labelledby",t):(t=r.guid(),l.attr("id",t),n.attr("aria-labelledby",t)))},_spin:function(e,t){var a=this;t=t||500,clearTimeout(a._spinning),a._spinning=setTimeout(function(){a._spin(e,50)},t),a._step(e)},_step:function(e){var t=this,a=t.element,n=t._value,r=t._parse(a.val())||0,i=t.options.decimals||2;u()!=a[0]&&t._focusin(),t.options.factor&&r&&(r/=t.options.factor),r=+(r+t.options.step*e).toFixed(i),r=t._adjust(r),t._update(r),t._typing=!1,n!==r&&t.trigger(b)},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),e?t._text.removeAttr("aria-hidden"):t._text.attr("aria-hidden","true"),t.element.toggle(!e)},_parse:function(e,t){return d(e,this._culture(t),this.options.format)},_round:function(e,t){var a=this.options.round?r._round:n;return a(e,t)},_update:function(e){var t,a=this,n=a.options,i=n.factor,o=n.format,l=n.decimals,s=a._culture(),u=a._format(o,s);l===P&&(l=u.decimals),e=a._parse(e,s),t=e!==P,t&&(e=parseFloat(a._round(e,l),10)),a._value=e=a._adjust(e),a._placeholder(r.toString(e,o,s)),t?(i&&(e=parseFloat(a._round(e*i,l),10)),e=""+e,e.indexOf("e")!==-1&&(e=a._round(+e,l)),e=e.replace(L,u[L])):e=null,a.element.val(e),a._oldText=e,a.element.add(a._text).attr("aria-valuenow",e)},_placeholder:function(e){var t=this._text;t.val(e),c||e||t.val(this.options.placeholder),t.attr("title",this.element.attr("title")||t.val())},_label:function(){var a,n,i=this,o=i.element,l=i.options,s=o.attr("id");null!==l.label&&(a=!!j(l.label)&&l.label.floating,n=j(l.label)?l.label.content:l.label,a&&(i._floatingLabelContainer=i.wrapper.wrap("<span></span>").parent(),i.floatingLabel=new r.ui.FloatingLabel(i._floatingLabelContainer,{widget:i})),r.isFunction(n)&&(n=n.call(i)),n||(n=""),s||(s=l.name+"_"+r.guid(),o.attr("id",s)),i._inputLabel=e("<label class='"+H+"' for='"+s+"'>"+n+"</label>'").insertBefore(i.wrapper),i.element.attr("disabled")===t&&i.element.attr("readonly")===t&&i._inputLabel.on("click"+g,R(i.focus,i)))},_wrapper:function(){var t,a=this,n=a.element,r=n[0];t=n.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=n.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=r.style.cssText,r.style.width="",a.wrapper=t.addClass("k-widget k-numerictextbox").addClass(r.className).removeClass("input-validation-error").css("display",""),a._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,a=t.element,n=a.attr("form"),r=n?e("#"+n):a.closest("form");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(a[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=r.on("reset",t._resetHandler))}});l.plugin(V)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.numerictextbox.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("kendo.tooltip.min",["kendo.core.min","kendo.popup.min","kendo.fx.min"],t)}(function(){return function(t,o){function e(t){for(;t.length&&!n(t);)t=t.parent()}function n(t){var o=t.data(r.ns+"title");if(o)return t.attr("title",o),t.removeData(r.ns+"title"),!0}function i(t){var o=t.attr("title");if(o)return t.data(r.ns+"title",o),t.attr("title",""),!0}function s(t){for(;t.length&&!t.is("body")&&!i(t);)t=t.parent()}var r=window.kendo,p=r.ui.Widget,u=r.ui.Popup,c=r.isFunction,l=t.isPlainObject,a=t.extend,h=t.proxy,f=t(document),d=r.isLocalUrl,m="_tt_active",w="aria-describedby",_="show",g="hide",v="error",k="contentLoad",y="requestStart",O="k-content-frame",b='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#"><div class="k-tooltip-content"></div>#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close" title="Close"></a></div> #}##if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',S=r.template("<iframe frameborder='0' class='"+O+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),C=".kendoTooltip",T={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},H={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},D={bottom:"n",top:"s",left:"e",right:"w",center:"n"},P={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},x=function(t){return t.target.data(r.ns+"title")},j=p.extend({init:function(t,o){var e,n=this;p.fn.init.call(n,t,o),e=n.options.position.match(/left|right/)?"horizontal":"vertical",n.dimensions=P[e],n._documentKeyDownHandler=h(n._documentKeyDown,n),r.support.touch&&this._isShownOnMouseEnter()&&n.element.on(r.support.mousedown+C,n.options.filter,h(n._showOn,n)),n.element.on(n.options.showOn+C,n.options.filter,h(n._showOn,n)),(this._isShownOnMouseEnter()||this._isShownOnClick())&&n.element.on("mouseenter"+C,n.options.filter,h(n._mouseenter,n)),this.options.autoHide&&this._isShownOnMouseEnter()&&n.element.on("mouseleave"+C,n.options.filter,h(n._mouseleave,n)),this.options.autoHide&&this._isShownOnFocus()&&n.element.on("blur"+C,n.options.filter,h(n._blur,n)),r.support.touch&&n.element.on(r.support.mousedown+C,n.options.filter,h(n._mouseenter,n))},options:{name:"Tooltip",filter:"",content:x,showAfter:100,hideAfter:100,callout:!0,offset:0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{duration:40,hide:!0}}},events:[_,g,k,v,y],_isShownOnFocus:function(){return this.options.showOn&&this.options.showOn.match(/focus/)},_isShownOnMouseEnter:function(){return this.options.showOn&&this.options.showOn.match(/mouseenter/)},_isShownOnClick:function(){return this.options.showOn&&this.options.showOn.match(/click/)},_mouseenter:function(o){s(t(o.currentTarget))},_showOn:function(o){var e=this,n=t(o.currentTarget);e._isShownOnClick()&&!e._isShownOnMouseEnter()?e._show(n):e._isShownOnFocus()?(s(n),e._show(n)):(clearTimeout(e.timeout),e.timeout=setTimeout(function(){e._show(n)},e.options.showAfter))},_appendContent:function(t){var o,e=this,n=e.options.content,i=e.content,s=e.options.iframe;l(n)&&n.url?("iframe"in e.options||(s=!d(n.url)),e.trigger(y,{options:n,target:t}),s?(i.hide(),o=i.find("."+O)[0],o?o.src=n.url||o.src:i.html(S({content:n})),i.find("."+O).off("load"+C).on("load"+C,function(){e.trigger(k),i.show()})):(i.empty(),r.ui.progress(i,!0),e._ajaxRequest(n))):n&&c(n)?(n=n({sender:this,target:t}),i.html(n||"")):i.html(n),e.angular("compile",function(){return{elements:i}})},_ajaxRequest:function(t){var o=this;o.contentLoading=!0,jQuery.ajax(a({type:"GET",dataType:"html",cache:!1,error:function(t,e){r.ui.progress(o.content,!1),o.trigger(v,{status:e,xhr:t})},success:h(function(t){r.ui.progress(o.content,!1),o.content.html(t),o.contentLoading=!1,o.trigger(k),o._openPopup()},o)},t))},_documentKeyDown:function(t){t.keyCode===r.keys.ESC&&this.hide()},refresh:function(){var t=this,o=t.popup;o&&o.options.anchor&&t._appendContent(o.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(t){t=t||this.element,s(t),this._show(t)},_show:function(t){var o=this,n=o.target();o.popup||o._initPopup(),n&&n[0]!=t[0]&&(o.popup.close(),o.popup.element.kendoStop(!0,!0)),n&&n[0]==t[0]||(o._appendContent(t),o.popup.options.anchor=t),o.popup.one("deactivate",function(){e(t),o._removeDescribedBy(t),this.element.removeAttr("id").attr("aria-hidden",!0),f.off("keydown"+C,o._documentKeyDownHandler)}),o.contentLoading||o._openPopup()},_openPopup:function(){this.popup&&(this.popup._hovered=!0,this.popup.open())},_initPopup:function(){var e=this,n=e.options,i=t(r.template(b)({callout:n.callout&&"center"!==n.position,dir:D[n.position],autoHide:n.autoHide}));e.popup=new u(i,a({autosize:!0,activate:function(){var t=this.options.anchor,i=t[0].id||e.element[0].id||r.guid(),s=[];t.attr(w)&&s.push(t.attr(w)),i&&(s.push(i+m),t.attr(w,s.join(" ")),this.element.attr("id",i+m)),n.callout?e._positionCallout():e._offset(e.options.position,e.options.offset),this.element.removeAttr("aria-hidden"),f.on("keydown"+C,e._documentKeyDownHandler),e.trigger(_),e.popup._hovered=o},close:function(){e.trigger(g)},copyAnchorStyles:!1,animation:n.animation},T[n.position])),i.css({width:n.width,height:n.height}),e.content=i.find(".k-tooltip-content"),e.arrow=i.find(".k-callout"),n.autoHide&&this._isShownOnMouseEnter()?i.on("mouseleave"+C,h(e._mouseleave,e)):i.on("click"+C,".k-tooltip-button",h(e._closeButtonClick,e))},_closeButtonClick:function(t){t.preventDefault(),this.hide()},_mouseleave:function(t){var o=this;clearTimeout(o.timeout),o.timeout=setTimeout(function(){o._closePopup(t.currentTarget)},o.options.hideAfter)},_blur:function(t){this._closePopup(t.currentTarget)},_closePopup:function(o){this.popup&&!this.popup._hovered?this.popup.close():e(t(o))},target:function(){return this.popup?this.popup.options.anchor:null},_positionCallout:function(){var o=this,e=o.options.position,n=o.dimensions,i=n.offset,s=o.popup,r=s.options.anchor,p=t(r).offset(),u=t(s.element).offset(),c=D[s.flipped?H[e]:e],l=p[i]-u[i]+t(r)[n.size]()/2;o._offset(e,o.options.offset),o.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+c).css(i,l)},_removeDescribedBy:function(t){var o,e,n,i=this.popup.element.attr("id"),s=t.attr(w);s&&(o=s.split(" "),o&&o.length>0&&(e=o.filter(function(t){return t!==i})),e&&e.length>0?(n=e.join(" "),t.attr(w,n)):t.removeAttr(w))},destroy:function(){var t=this.popup;t&&(t.element.off(C),t.destroy()),clearTimeout(this.timeout),this.element.off(C),f.off("keydown"+C,this._documentKeyDownHandler),p.fn.destroy.call(this)},_offset:function(t,o){var e=this,n="top"==t||"left"==t,i=e.popup.flipped,s=n&&i||!n&&!i?1:-1,p=n?"margin-"+t:"margin-"+H[t],u=r._outerWidth(e.arrow)/2+o;e.popup.wrapper.css(p,u*s+"px")}});r.ui.plugin(j)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,o,e){(e||o)()});
//# sourceMappingURL=kendo.tooltip.min.js.map
;
/** 
 * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui)                                                                                                                                               
 * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.angular.min",["kendo.core.min"],e)}(function(){return function(e,t,n){"use strict";function i(e){var t=T;try{return T=function(e){return e()},e()}finally{T=t}}function o(t,i,o,c,d,k){function h(){var n,k,h,g,b,y,V;return o.kRebind&&(n=e(e(i)[0].cloneNode(!0))),S=a(t,i,o,c,M).options,i.is("select")&&!function(t){var n,i;if(t.length>0)for(n=e(t[0]),!/\S/.test(n.text())&&/^\?/.test(n.val())&&n.remove(),i=0;i<t.length;i++)e(t[i]).off("$destroy")}(i[0].options),k=M.call(i,x=S).data(c),u(k,t,o,c,d),t.$emit("kendoWidgetCreated",k),h=p(t,k),o.kRebind&&m(k,t,i,n,o.kRebind,h,o),o.kNgDisabled&&(g=o.kNgDisabled,b=t.$eval(g),b&&k.enable(!b),r(k,t,i,g)),o.kNgReadonly&&(y=o.kNgReadonly,V=t.$eval(y),V&&k.readonly(V),l(k,t,i,y)),o.kNgModel&&f(k,t,o.kNgModel),w&&s(k,t,i,w,$),k&&v(k,i),k}var g,b,w,$,M,y,S,V,_,P,D,A,L,E;if(!(i instanceof jQuery))throw Error("The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.");if(g=o.kNgDelay,b=t.$eval(g),k=k||[],w=k[0],$=k[1],M=e(i)[c],!M)return window.console.error("Could not find: "+c),null;if(y=a(t,i,o,c,M),S=y.options,y.unresolved.length){for(V=[],_=0,P=y.unresolved.length;_<P;_++)D=y.unresolved[_],A=e.Deferred(function(e){var i=t.$watch(D.path,function(t){t!==n&&(i(),e.resolve())})}).promise(),V.push(A);return e.when.apply(null,V).then(h),n}return g&&!b?(L=t.$root||t,E=function(){var e=t.$watch(g,function(t){t!==n&&(e(),i.removeAttr(o.$attr.kNgDelay),g=null,T(h))})},/^\$(digest|apply)$/.test(L.$$phase)?E():t.$apply(E),n):h()}function a(i,o,a,r,l){function u(e,o){var a=t.copy(i.$eval(o));a===n?v.push({option:e,path:o}):c[e]=a}var c,d,s,f,p=r.replace(/^kendo/,""),v=[],m=a.kOptions||a.options,k=i.$eval(m);return m&&k===n&&v.push({option:"options",path:m}),c=t.extend({},a.defaultOptions,k),d=l.widget.prototype.options,s=l.widget.prototype.events,e.each(a,function(e,t){var n,i,o,a;"source"!==e&&"kDataSource"!==e&&"kScopeField"!==e&&"scopeField"!==e&&(n="data"+e.charAt(0).toUpperCase()+e.slice(1),0===e.indexOf("on")&&(i=e.replace(/^on./,function(e){return e.charAt(2).toLowerCase()}),s.indexOf(i)>-1&&(c[i]=t)),d.hasOwnProperty(n)?u(n,t):d.hasOwnProperty(e)&&!L[e]?u(e,t):A[e]||(o=e.match(/^k(On)?([A-Z].*)/),o&&(a=o[2].charAt(0).toLowerCase()+o[2].slice(1),o[1]&&"kOnLabel"!=e?c[a]=t:("kOnLabel"==e&&(a="onLabel"),u(a,t)))))}),f=a.kDataSource||a.source,f&&(c.dataSource=D(i,o,p,f)),c.$angular=[i],{options:c,unresolved:v}}function r(e,t,i,o){return kendo.ui.PanelBar&&e instanceof kendo.ui.PanelBar||kendo.ui.Menu&&e instanceof kendo.ui.Menu?(P.warn("k-ng-disabled specified on a widget that does not have the enable() method: "+e.options.name),n):(t.$watch(o,function(t,n){t!=n&&e.enable(!t)}),n)}function l(e,t,i,o){return"function"!=typeof e.readonly?(P.warn("k-ng-readonly specified on a widget that does not have the readonly() method: "+e.options.name),n):(t.$watch(o,function(t,n){t!=n&&e.readonly(t)}),n)}function u(e,t,n,i,o){if(n[o]){var a=V(n[o]).assign;if(!a)throw Error(o+" attribute used but expression in it is not assignable: "+n[i]);a(t,e)}}function c(e){return/checkbox|radio/i.test(e.attr("type"))?e.prop("checked"):e.val()}function d(e){return E.test(e[0].tagName)}function s(e,t,i,o,a){var r,l,u,s,f;e.value&&(l=!1,r=d(i)?function(){return c(i)}:function(){return e.value()},u=function(){var i=o.$viewValue;i===n&&(i=o.$modelValue),i===n&&(i=null),l=!0,setTimeout(function(){if(l=!1,e){var n=t[e.element.attr("k-ng-model")];n&&(i=n),e.options.autoBind!==!1||e.listView.bound()?e.value(i):i&&e.value(i)}},0)},o.$render=u,setTimeout(function(){o.$render!==u&&(o.$render=u)()}),d(i)&&i.on("change",function(){l=!0}),s=function(e){return function(){var n;l&&!i.is("select")||(e&&a&&(n=a.$pristine),o.$setViewValue(r()),e&&(o.$setPristine(),n&&a.$setPristine()),w(t))}},e.first("change",s(!1)),e.first("spin",s(!1)),kendo.ui.AutoComplete&&e instanceof kendo.ui.AutoComplete||e.first("dataBound",s(!0)),f=r(),isNaN(o.$viewValue)||f==o.$viewValue||(o.$isEmpty(o.$viewValue)?null!=f&&""!==f&&f!=o.$viewValue&&o.$setViewValue(f):e.value(o.$viewValue)),o.$setPristine())}function f(t,i,o){var a,r,l,u,c,d,s,p,v,m,k,h,g;return kendo.ui.DateRangePicker&&t instanceof kendo.ui.DateRangePicker?(a=o.split(","),r=a[0].trim(),f(t._startDateInput,i,r),a[1]?(l=a[1].trim(),f(t._endDateInput,i,l),t.range({start:i[r],end:i[l]})):t.range({start:i[r],end:null}),n):"function"!=typeof t.value?(P.warn("k-ng-model specified on a widget that does not have the value() method: "+t.options.name),n):(u=e(t.element).parents("ng-form, form").first(),c=kendo.getter(u.attr("name"),!0)(i),d=V(o),s=d.assign,p=!1,v=kendo.ui.MultiSelect&&t instanceof kendo.ui.MultiSelect||kendo.ui.RangeSlider&&t instanceof kendo.ui.RangeSlider,m=function(e){return e&&v?e.length:0},k=m(d(i)),t.$angular_setLogicValue(d(i)),h=function(e,i){e===n&&(e=null),p||e==i&&m(e)==k||(k=m(e),t.$angular_setLogicValue(e))},v?i.$watchCollection(o,h):i.$watch(o,h),g=function(){p=!0,c&&c.$pristine&&c.$setDirty(),w(i,function(){s(i,t.$angular_getLogicValue()),k=m(d(i))}),p=!1},t.first("change",g),t.first("spin",g),n)}function p(e,t){var n=e.$on("$destroy",function(){n(),t&&(kendo.destroy(t.element),t=null)});return n}function v(t,n){function i(){r.disconnect()}function o(){r.observe(e(n)[0],{attributes:!0})}var a,r;window.MutationObserver&&t.wrapper&&(a=[].slice.call(e(n)[0].classList),r=new MutationObserver(function(n){i(),t&&(n.forEach(function(n){var i,o=e(t.wrapper)[0];switch(n.attributeName){case"class":i=[].slice.call(n.target.classList),i.forEach(function(e){a.indexOf(e)<0&&(o.classList.add(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.add(e))}),a.forEach(function(e){i.indexOf(e)<0&&(o.classList.remove(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.remove(e))}),a=i;break;case"disabled":"function"!=typeof t.enable||t.element.attr("readonly")||t.enable(!e(n.target).attr("disabled"));break;case"readonly":"function"!=typeof t.readonly||t.element.attr("disabled")||t.readonly(!!e(n.target).attr("readonly"))}}),o())}),o(),t.first("destroy",i))}function m(t,n,i,o,a,r,l){var u=n.$watch(a,function(a,c){var d,s,f,p,v;t._muteRebind||a===c||(u(),l._cleanUp&&l._cleanUp(),d=U[t.options.name],d&&d.forEach(function(t){var i=n.$eval(l["k"+t]);i&&o.append(e(i).attr(kendo.toHyphens("k"+t),""))}),s=e(t.wrapper)[0],f=e(t.element)[0],p="Upload"===t.options.name,p&&(i=e(f)),v=i.injector().get("$compile"),t._destroy(),r&&r(),t=null,f&&(s&&s.parentNode.replaceChild(f,s),e(i).replaceWith(o)),v(o)(n))},!0);w(n)}function k(e,t){return function(n,i){return e.call(t,n,i)}}function h(e,t){this[e]=kendo.stringify(t)}function g(e,n){function i(e,t){y.directive(e,["directiveFactory",function(n){return n.create(t,e)}])}var o,a,r,l,u=n?"Mobile":"";u+=e.fn.options.name,o=u,a="kendo"+u.charAt(0)+u.substr(1).toLowerCase(),u="kendo"+u,r=u.replace(/([A-Z])/g,"-$1"),B.indexOf(u.replace("kendo",""))==-1&&(l=u===a?[u]:[u,a],t.forEach(l,function(e){y.directive(e,function(){return{restrict:"E",replace:!0,template:function(e,t){var n=O[o]||"div",i=t.kScopeField||t.scopeField;return"<"+n+" "+r+(i?'="'+i+'"':"")+">"+e.html()+"</"+n+">"}}})})),C.indexOf(u.replace("kendo",""))>-1||(i(u,u),a!=u&&i(a,u))}function b(t){return t=e(t),kendo.widgetInstance(t,kendo.ui)||kendo.widgetInstance(t,kendo.mobile.ui)||kendo.widgetInstance(t,kendo.dataviz.ui)}function w(e,t){var n=e.$root||e,i=/^\$(digest|apply)$/.test(n.$$phase);t?i?t():n.$apply(t):i||n.$digest()}function $(t,n){t.$destroy(),n&&e(n).removeData("$scope").removeData("$$kendoScope").removeData("$isolateScope").removeData("$isolateScopeNoTemplate").removeClass("ng-scope")}function M(n,i,o){var a,r,l;if(e.isArray(n))return t.forEach(n,function(e){M(e,i,o)});if("string"==typeof n){for(a=n.split("."),r=kendo;r&&a.length>0;)r=r[a.shift()];if(!r)return j.push([n,i,o]),!1;n=r.prototype}return l=n[i],n[i]=function(){var e=this,t=arguments;return o.apply({self:e,next:function(){return l.apply(e,arguments.length>0?arguments:t)}},t)},!0}var y,S,V,T,_,P,x,D,A,L,E,O,B,C,N,I,H,R,F,j,U;t&&t.injector&&(y=t.module("kendo.directives",[]),S=t.injector(["ng"]),V=S.get("$parse"),T=S.get("$timeout"),P=S.get("$log"),D=function(){var e={TreeList:"TreeListDataSource",TreeView:"HierarchicalDataSource",Scheduler:"SchedulerDataSource",PivotGrid:"PivotDataSource",PivotConfigurator:"PivotDataSource",PanelBar:"HierarchicalDataSource",Menu:"$PLAIN",ContextMenu:"$PLAIN"},t=function(e,t){return"$PLAIN"==t?e:kendo.data[t].create(e)};return function(n,i,o,a){var r=e[o]||"DataSource",l=n.$eval(a),u=t(l,r);return n.$watch(a,function(e){var n,o=b(i);o&&"function"==typeof o.setDataSource&&e!==l&&e!==o.dataSource&&(n=t(e,r),o.setDataSource(n),l=e)}),u}}(),A={kDataSource:!0,kOptions:!0,kRebind:!0,kNgModel:!0,kNgDelay:!0},L={name:!0,title:!0,style:!0},E=/^(input|select|textarea)$/i,y.factory("directiveFactory",["$compile",function(t){var n,i,a=!1;return _=t,i=function(t,i){return{restrict:"AC",require:["?ngModel","^?form"],scope:!1,controller:["$scope","$attrs","$element",function(e,t){this.template=k(h,t),t._cleanUp=k(function(){this.template=null,t._cleanUp=null},this)}],link:function(r,l,u,c){var d,s=e(l),f=t.replace(/([A-Z])/g,"-$1");s.attr(f,s.attr("data-"+f)),s[0].removeAttribute("data-"+f),d=o(r,l,u,t,i,c),d&&(n&&clearTimeout(n),n=setTimeout(function(){r.$emit("kendoRendered"),a||(a=!0,e("form").each(function(){var t=e(this).controller("form");t&&t.$setPristine()}))}))}}},{create:i}}]),O={Editor:"textarea",NumericTextBox:"input",DatePicker:"input",DateTimePicker:"input",TimePicker:"input",AutoComplete:"input",ColorPicker:"input",MaskedTextBox:"input",MultiSelect:"input",Upload:"input",Validator:"form",Button:"button",MobileButton:"a",MobileBackButton:"a",MobileDetailButton:"a",ListView:"ul",MobileListView:"ul",ScrollView:"div",PanelBar:"ul",TreeView:"ul",Menu:"ul",ContextMenu:"ul",ActionSheet:"ul",Switch:"input"},B=["MobileView","MobileDrawer","MobileLayout","MobileSplitView","MobilePane","MobileModalView"],C=["MobileApplication","MobileView","MobileModalView","MobileLayout","MobileActionSheet","MobileDrawer","MobileSplitView","MobilePane","MobileScrollView","MobilePopOver"],t.forEach(["MobileNavBar","MobileButton","MobileBackButton","MobileDetailButton","MobileTabStrip","MobileScrollView","MobileScroller"],function(e){C.push(e),e="kendo"+e,y.directive(e,function(){return{restrict:"A",link:function(t,n,i){o(t,n,i,e,e)}}})}),N=kendo.htmlEncode,I=/{{/g,H=/}}/g,R="{&#8203;{",F="}&#8203;}",kendo.htmlEncode=function(e){return N(e).replace(I,R).replace(H,F)},j=[],kendo.onWidgetRegistered(function(t){j=e.grep(j,function(e){return!M.apply(null,e)}),g(t.widget,"Mobile"==t.prefix)}),M(["ui.Widget","mobile.ui.Widget"],"angular",function(o,a){var r,l=this.self;return"init"==o?(!a&&x&&(a=x),x=null,a&&a.$angular&&(l.$angular_scope=a.$angular[0],l.$angular_init(l.element,a)),n):(r=l.$angular_scope,r&&i(function(){var i,u,c=a(),d=c.elements,s=c.data;if(d.length>0)switch(o){case"cleanup":t.forEach(d,function(t){var n=e(t).data("$$kendoScope");n&&n!==r&&n.$$kendoScope&&$(n,t)});break;case"compile":i=l.element.injector(),u=i?i.get("$compile"):_,t.forEach(d,function(t,i){var o,a;c.scopeFrom?o=c.scopeFrom:(a=s&&s[i],a!==n?(o=e.extend(r.$new(),a),o.$$kendoScope=!0):o=r),e(t).data("$$kendoScope",o),u(t)(o)}),w(r)}}),n)}),M("ui.Widget","$angular_getLogicValue",function(){return this.self.value()}),M("ui.Widget","$angular_setLogicValue",function(e){this.self.value(e)}),M("ui.Select","$angular_getLogicValue",function(){var e=this.self.dataItem(),t=this.self.options.dataValueField;return e?this.self.options.valuePrimitive?t?e[t]:e:e.toJSON():null}),M("ui.Select","$angular_setLogicValue",function(e){var t=this.self,i=t.options,o=i.dataValueField,a=i.text||"";e===n&&(e=""),o&&!i.valuePrimitive&&e&&(a=e[i.dataTextField]||"",e=e[o||i.dataTextField]),t.options.autoBind!==!1||t.listView.bound()?t.value(e):!a&&e&&i.valuePrimitive?t.value(e):t._preselect(e,a)}),M("ui.MultiSelect","$angular_getLogicValue",function(){var t=this.self.dataItems().slice(0),n=this.self.options.dataValueField;return n&&this.self.options.valuePrimitive&&(t=e.map(t,function(e){return e[n]})),t}),M("ui.MultiSelect","$angular_setLogicValue",function(t){var n,i,o,a;null==t&&(t=[]),n=this.self,i=n.options,o=i.dataValueField,a=t,o&&!i.valuePrimitive&&(t=e.map(t,function(e){return e[o]})),i.autoBind!==!1||i.valuePrimitive||n.listView.bound()?n.value(t):n._preselect(a,t)}),M("ui.Widget","$angular_init",function(t,n){var i,o,a,r,l=this.self;if(n&&!e.isArray(n))for(i=l.$angular_scope,o=l.events.length;--o>=0;)a=l.events[o],r=n[a],r&&"string"==typeof r&&(n[a]=l.$angular_makeEventHandler(a,i,r))}),M("ui.Widget","$angular_makeEventHandler",function(e,t,n){return n=V(n),function(e){w(t,function(){n(t,{kendoEvent:e})})}}),M(["ui.Grid","ui.ListView","ui.TreeView","ui.PanelBar"],"$angular_makeEventHandler",function(e,n,i){return"change"!=e?this.next():(i=V(i),function(e){var o,a,r,l,u,c,d,s,f,p=e.sender,v=p.options,m={kendoEvent:e};for(t.isString(v.selectable)&&(o=v.selectable.indexOf("cell")!==-1,a=v.selectable.indexOf("multiple")!==-1),p._checkBoxSelection&&(a=!0),r=m.selected=this.select(),l=m.data=[],u=m.columns=[],d=0;d<r.length;d++)s=o?r[d].parentNode:r[d],f=p.dataItem(s),o?(t.element.inArray(f,l)<0&&l.push(f),c=t.element(r[d]).index(),t.element.inArray(c,u)<0&&u.push(c)):l.push(f);a||(m.dataItem=m.data=l[0],m.angularDataItem=kendo.proxyModelSetters(m.dataItem),m.selected=r[0]),w(n,function(){i(n,m)})})}),M("ui.Grid","$angular_init",function(i,o){if(this.next(),o.columns){var a=e.extend({},kendo.Template,o.templateSettings);t.forEach(o.columns,function(e){!e.field||e.template||e.format||e.values||e.encoded!==n&&!e.encoded||(e.template="<span ng-bind='"+kendo.expr(e.field,"dataItem")+"'>#: "+kendo.expr(e.field,a.paramName)+"#</span>")})}}),M("mobile.ui.ButtonGroup","value",function(e){var t=this.self;return null!=e&&(t.select(t.element.children("li.km-button").eq(e)),t.trigger("change"),t.trigger("select",{index:t.selectedIndex})),t.selectedIndex}),M("mobile.ui.ButtonGroup","_select",function(){this.next(),this.self.trigger("change")}),y.directive("kendoMobileApplication",function(){return{terminal:!0,link:function(e,t,n){o(e,t,n,"kendoMobileApplication","kendoMobileApplication")}}}).directive("kendoMobileView",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileView","kendoMobileView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileDrawer",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileDrawer","kendoMobileDrawer")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileModalView",function(){return{scope:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileModalView","kendoMobileModalView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileSplitView",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileSplitView","kendoMobileSplitView")},post:function(e,t,n){n._instance._layout()}}}}).directive("kendoMobilePane",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePane","kendoMobilePane")}}}}).directive("kendoMobileLayout",function(){return{link:{pre:function(e,t,n){o(e,t,n,"kendoMobileLayout","kendoMobileLayout")}}}}).directive("kendoMobileActionSheet",function(){return{restrict:"A",link:function(t,n,i){n.find("a[k-action]").each(function(){e(this).attr("data-"+kendo.ns+"action",e(this).attr("k-action"))}),o(t,n,i,"kendoMobileActionSheet","kendoMobileActionSheet")}}}).directive("kendoMobilePopOver",function(){return{terminal:!0,link:{pre:function(e,t,n){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePopOver","kendoMobilePopOver")}}}}).directive("kendoViewTitle",function(){return{restrict:"E",replace:!0,template:function(e){return"<span data-"+kendo.ns+"role='view-title'>"+e.html()+"</span>"}}}).directive("kendoMobileHeader",function(){return{restrict:"E",link:function(e,t){t.addClass("km-header").attr("data-role","header")}}}).directive("kendoMobileFooter",function(){return{restrict:"E",link:function(e,t){t.addClass("km-footer").attr("data-role","footer")}}}).directive("kendoMobileScrollViewPage",function(){return{restrict:"E",replace:!0,template:function(e){return"<div data-"+kendo.ns+"role='page'>"+e.html()+"</div>"}}}),t.forEach(["align","icon","rel","transition","actionsheetContext"],function(e){var t="k"+e.slice(0,1).toUpperCase()+e.slice(1);y.directive(t,function(){return{restrict:"A",priority:2,link:function(n,i,o){i.attr(kendo.attr(kendo.toHyphens(e)),n.$eval(o[t]))}}})}),U={TreeMap:["Template"],MobileListView:["HeaderTemplate","Template"],MobileScrollView:["EmptyTemplate","Template"],Grid:["AltRowTemplate","DetailTemplate","RowTemplate"],ListView:["EditTemplate","Template","AltTemplate"],Pager:["SelectTemplate","LinkTemplate"],PivotGrid:["ColumnHeaderTemplate","DataCellTemplate","RowHeaderTemplate"],Scheduler:["AllDayEventTemplate","DateHeaderTemplate","EventTemplate","MajorTimeHeaderTemplate","MinorTimeHeaderTemplate"],ScrollView:["Template"],PanelBar:["Template"],TreeView:["Template"],Validator:["ErrorTemplate"]},function(){var e={};t.forEach(U,function(n,i){t.forEach(n,function(t){e[t]||(e[t]=[]),e[t].push("?^^kendo"+i)})}),t.forEach(e,function(e,t){var n="k"+t,i=kendo.toHyphens(n);y.directive(n,function(){return{restrict:"A",require:e,terminal:!0,compile:function(t,o){if(""===o[n]){t.removeAttr(i);var a=t[0].outerHTML;return function(t,o,r,l){for(var u;!u&&l.length;)u=l.shift();u?(u.template(n,a),o.remove()):P.warn(i+" without a matching parent widget found. It can be one of the following: "+e.join(", "))}}}}})})}())}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.angular.min.js.map
;
// http://spin.js.org/#v2.3.2
!function(a,b){"object"==typeof module&&module.exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return m[e]||(k.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",k.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;if(b=b.charAt(0).toUpperCase()+b.slice(1),void 0!==e[b])return b;for(d=0;d<l.length;d++)if(c=l[d]+b,void 0!==e[c])return c}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}k.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.scale*d.width,left:d.scale*d.radius,top:-d.scale*d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.scale*(d.length+d.width),k=2*d.scale*j,l=-(d.width+d.length)*d.scale*2+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k,l=["webkit","Moz","ms","O"],m={},n={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(h.defaults={},f(h.prototype,{spin:function(b){this.stop();var c=this,d=c.opts,f=c.el=a(null,{className:d.className});if(e(f,{position:d.position,width:0,zIndex:d.zIndex,left:d.left,top:d.top}),b&&b.insertBefore(f,b.firstChild||null),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.scale*(f.length+f.width)+"px",height:f.scale*f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.scale*f.radius+"px,0)",borderRadius:(f.corners*f.scale*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.scale*f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}}),"undefined"!=typeof document){k=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}();var o=e(a("group"),{behavior:"url(#default#VML)"});!d(o,"transform")&&o.adj?i():j=d(o,"animation")}return h});;
!function(n){"use strict";function i(n,i){n.module("angularSpinner",[]).factory("usSpinnerService",["$rootScope",function(n){var i={};return i.spin=function(i){n.$broadcast("us-spinner:spin",i)},i.stop=function(i){n.$broadcast("us-spinner:stop",i)},i}]).directive("usSpinner",["$window",function(e){return{scope:!0,link:function(s,t,r){var p=i||e.Spinner;s.spinner=null,s.key=n.isDefined(r.spinnerKey)?r.spinnerKey:!1,s.startActive=n.isDefined(r.spinnerStartActive)?r.spinnerStartActive:s.key?!1:!0,s.spin=function(){s.spinner&&s.spinner.spin(t[0])},s.stop=function(){s.spinner&&s.spinner.stop()},s.$watch(r.usSpinner,function(n){s.stop(),s.spinner=new p(n),(!s.key||s.startActive)&&s.spinner.spin(t[0])},!0),s.$on("us-spinner:spin",function(n,i){i===s.key&&s.spin()}),s.$on("us-spinner:stop",function(n,i){i===s.key&&s.stop()}),s.$on("$destroy",function(){s.stop(),s.spinner=null})}}}])}"function"==typeof define&&define.amd?define(["angular","spin"],i):i(n.angular)}(window);;
'use strict';

(function () {
	'use strict';
	angular.module('ngMask', []);
})();(function () {
	'use strict';
	angular.module('ngMask').directive('mask', ['$log', '$timeout', 'MaskService', function ($log, $timeout, MaskService) {
		return {
			restrict: 'A',
			require: 'ngModel',
			link: function link($scope, $element, $attrs, controller) {
				var maskService = MaskService.create();
				var timeout,
				    promise,
				    listenersActive = false;;
				var options = maskService.getOptions();

				function setSelectionRange(selectionStart) {
					if (typeof selectionStart !== 'number') {
						return;
					}

					// using $timeout:
					// it should run after the DOM has been manipulated by Angular
					// and after the browser renders (which may cause flicker in some cases)
					$timeout.cancel(timeout);
					timeout = $timeout(function () {
						var selectionEnd = selectionStart + 1;
						var input = $element[0];

						if (input.setSelectionRange) {
							input.focus();
							input.setSelectionRange(selectionStart, selectionEnd);
						} else if (input.createTextRange) {
							var range = input.createTextRange();

							range.collapse(true);
							range.moveEnd('character', selectionEnd);
							range.moveStart('character', selectionStart);
							range.select();
						}
					});
				}

				function parseViewValue(value) {
					var untouchedValue = value;
					options = maskService.getOptions();
					// set default value equal 0
					value = value || '';

					// get view value object
					var viewValue = maskService.getViewValue(value);

					// get mask without question marks
					var maskWithoutOptionals = options['maskWithoutOptionals'] || '';

					// get view values capped
					// used on view
					var viewValueWithDivisors = viewValue.withDivisors(true);
					// used on model
					var viewValueWithoutDivisors = viewValue.withoutDivisors(true);
					controller.$cleanViewValue = viewValueWithoutDivisors;

					try {
						// get current regex
						var regex = maskService.getRegex(viewValueWithDivisors.length - 1);
						var fullRegex = maskService.getRegex(maskWithoutOptionals.length - 1);

						// current position is valid
						var validCurrentPosition = regex.test(viewValueWithDivisors) || fullRegex.test(viewValueWithDivisors);

						// difference means for select option
						var diffValueAndViewValueLengthIsOne = value.length - viewValueWithDivisors.length === 1;
						var diffMaskAndViewValueIsGreaterThanZero = maskWithoutOptionals.length - viewValueWithDivisors.length > 0;

						if (options.restrict !== 'accept') {
							if (options.restrict === 'select' && (!validCurrentPosition || diffValueAndViewValueLengthIsOne)) {
								var lastCharInputed = value[value.length - 1];
								var lastCharGenerated = viewValueWithDivisors[viewValueWithDivisors.length - 1];

								if (lastCharInputed !== lastCharGenerated && diffMaskAndViewValueIsGreaterThanZero) {
									viewValueWithDivisors = viewValueWithDivisors + lastCharInputed;
								}

								var wrongPosition = maskService.getFirstWrongPosition(viewValueWithDivisors);
								if (angular.isDefined(wrongPosition)) {
									setSelectionRange(wrongPosition);
								}
							} else if (options.restrict === 'reject' && !validCurrentPosition) {
								viewValue = maskService.removeWrongPositions(viewValueWithDivisors);
								viewValueWithDivisors = viewValue.withDivisors(true);
								viewValueWithoutDivisors = viewValue.withoutDivisors(true);

								// setSelectionRange(viewValueWithDivisors.length);
							}
						}

						if (!options.limit) {
							viewValueWithDivisors = viewValue.withDivisors(false);
							viewValueWithoutDivisors = viewValue.withoutDivisors(false);
						}

						// Set validity
						if (options.validate && controller.$dirty) {
							if (fullRegex.test(viewValueWithDivisors) || controller.$isEmpty(untouchedValue)) {
								controller.$setValidity('mask', true);
							} else {
								controller.$setValidity('mask', false);
							}
						}

						// Update view and model values
						if (value !== viewValueWithDivisors) {
							controller.$setViewValue(angular.copy(viewValueWithDivisors), 'input');
							controller.$render();
						}
					} catch (e) {
						$log.error('[mask - parseViewValue]');
						throw e;
					}

					// Update model, can be different of view value
					if (options.clean) {
						return viewValueWithoutDivisors;
					} else {
						return viewValueWithDivisors;
					}
				}

				var callParseViewValue = function callParseViewValue() {
					parseViewValue();

					if (controller.$parsers.indexOf(parseViewValue) === -1) controller.$parsers.push(parseViewValue);

					// $evalAsync from a directive
					// it should run after the DOM has been manipulated by Angular
					// but before the browser renders
					if (options.value) {
						$scope.$evalAsync(function ($scope) {
							controller.$setViewValue(angular.copy(options.value), 'input');
							controller.$render();
						});
					}
				};

				var removeParser = function removeParser() {
					var index = controller.$parsers.indexOf(parseViewValue);
					if (index !== -1) controller.$parsers.splice(index, 1);
					controller.$setValidity('mask', true);
				};

				function registerListeners() {
					$element.on('click.ngMask input.ngMask paste.ngMask keyup.ngMask', function () {
						timeout = $timeout(function () {
							// Manual debounce to prevent multiple execution
							$timeout.cancel(timeout);

							parseViewValue($element.val());
							$scope.$apply();
						}, 10);
					});
					listenersActive = true;
				}

				function unregisterListeners() {
					$element.off('.ngMask');
					listenersActive = false;
				}

				// Register the watch to observe remote loading or promised data
				// Deregister calling returned function
				//var watcher = $scope.$watch($attrs.ngModel, function (newValue, oldValue) {
				//	if (angular.isDefined(newValue)) {
				//		parseViewValue(newValue);
				//		watcher();
				//	}
				//});

				$scope.$watch($attrs.mask, function (mask) {
					if (!mask) {
						removeParser();
						unregisterListeners();
						return;
					}

					promise = maskService.generateRegex({
						mask: mask,
						// repeat mask expression n times
						repeat: $attrs.repeat || $attrs.maskRepeat,
						// clean model value - without divisors
						clean: ($attrs.clean || $attrs.maskClean) === 'true',
						// limit length based on mask length
						limit: ($attrs.limit || $attrs.maskLimit || 'true') === 'true',
						// how to act with a wrong value
						restrict: $attrs.restrict || $attrs.maskRestrict || 'select', //select, reject, accept
						// set validity mask
						validate: ($attrs.validate || $attrs.maskValidate || 'true') === 'true',
						// default model value
						model: $attrs.ngModel,
						// default input value
						value: $attrs.ngValue
					}).then(function () {
						$element.triggerHandler('click');
					});

					promise.then(function () {
						callParseViewValue();
						registerListeners();
					}, function () {
						removeParser();
						unregisterListeners();
					});
				}, true);
			}
		};
	}]);
})();
(function () {
	'use strict';
	angular.module('ngMask').factory('MaskService', ['$q', 'OptionalService', 'UtilService', function ($q, OptionalService, UtilService) {
		function create() {
			var options;
			var maskWithoutOptionals;
			var maskWithoutOptionalsLength = 0;
			var maskWithoutOptionalsAndDivisorsLength = 0;
			var optionalIndexes = [];
			var optionalDivisors = {};
			var optionalDivisorsCombinations = [];
			var divisors = [];
			var divisorElements = {};
			var regex = [];
			var patterns = {
				'9': /[0-9]/,
				'8': /[0-8]/,
				'7': /[0-7]/,
				'6': /[0-6]/,
				'5': /[0-5]/,
				'4': /[0-4]/,
				'3': /[0-3]/,
				'2': /[0-2]/,
				'1': /[0-1]/,
				'0': /[0]/,
				'*': /./,
				'w': /\w/,
				'W': /\W/,
				'd': /\d/,
				'D': /\D/,
				's': /\s/,
				'S': /\S/,
				'b': /\b/,
				'A': /[A-Z]/,
				'a': /[a-z]/,
				'Z': /[A-ZÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/,
				'z': /[a-zçáàãâéèêẽíìĩîóòôõúùũüû]/,
				'@': /[a-zA-Z]/,
				'#': /[a-zA-ZçáàãâéèêẽíìĩîóòôõúùũüûÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/,
				'%': /[0-9a-zA-ZçáàãâéèêẽíìĩîóòôõúùũüûÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/
			};

			// REGEX

			function generateIntermetiateElementRegex(i, forceOptional) {
				var charRegex;
				try {
					var element = maskWithoutOptionals[i];
					var elementRegex = patterns[element];
					var hasOptional = isOptional(i);

					if (elementRegex) {
						charRegex = '(' + elementRegex.source + ')';
					} else {
						// is a divisor
						if (!isDivisor(i)) {
							divisors.push(i);
							divisorElements[i] = element;
						}

						charRegex = '(' + '\\' + element + ')';
					}
				} catch (e) {
					throw e;
				}

				if (hasOptional || forceOptional) {
					charRegex += '?';
				}

				return new RegExp(charRegex);
			}

			function generateIntermetiateRegex(i, forceOptional) {
				var _elementRegex;
				var _elementOptionalRegex;
				try {
					var intermetiateElementRegex = generateIntermetiateElementRegex(i, forceOptional);
					_elementRegex = intermetiateElementRegex;

					var hasOptional = isOptional(i);
					var currentRegex = intermetiateElementRegex.source;

					if (hasOptional && i + 1 < maskWithoutOptionalsLength) {
						var intermetiateRegex = generateIntermetiateRegex(i + 1, true).elementOptionalRegex();
						currentRegex += intermetiateRegex.source;
					}

					_elementOptionalRegex = new RegExp(currentRegex);
				} catch (e) {
					throw e;
				}
				return {
					elementRegex: function elementRegex() {
						return _elementRegex;
					},
					elementOptionalRegex: function elementOptionalRegex() {
						// from element regex, gets the flow of regex until first not optional
						return _elementOptionalRegex;
					}
				};
			}

			function generateRegex(opts) {
				var deferred = $q.defer();
				maskWithoutOptionals = null;
				maskWithoutOptionalsLength = 0;
				maskWithoutOptionalsAndDivisorsLength = 0;
				optionalIndexes = [];
				optionalDivisors = {};
				optionalDivisorsCombinations = [];
				divisors = [];
				divisorElements = {};
				regex = [];
				options = opts;

				try {
					var mask = opts['mask'];
					var repeat = opts['repeat'];

					if (!mask) {
						deferred.reject();
						return deferred.promise;
					}

					if (repeat) {
						mask = Array(parseInt(repeat) + 1).join(mask);
					}

					optionalIndexes = OptionalService.getOptionals(mask).fromMaskWithoutOptionals();
					options['maskWithoutOptionals'] = maskWithoutOptionals = OptionalService.removeOptionals(mask);
					maskWithoutOptionalsLength = maskWithoutOptionals.length;

					var cumulativeRegex;
					for (var i = 0; i < maskWithoutOptionalsLength; i++) {
						var charRegex = generateIntermetiateRegex(i);
						var elementRegex = charRegex.elementRegex();
						var elementOptionalRegex = charRegex.elementOptionalRegex();

						var newRegex = cumulativeRegex ? cumulativeRegex.source + elementOptionalRegex.source : elementOptionalRegex.source;
						newRegex = new RegExp(newRegex);
						cumulativeRegex = cumulativeRegex ? cumulativeRegex.source + elementRegex.source : elementRegex.source;
						cumulativeRegex = new RegExp(cumulativeRegex);

						regex.push(newRegex);
					}

					generateOptionalDivisors();
					maskWithoutOptionalsAndDivisorsLength = removeDivisors(maskWithoutOptionals).length;

					deferred.resolve({
						options: options,
						divisors: divisors,
						divisorElements: divisorElements,
						optionalIndexes: optionalIndexes,
						optionalDivisors: optionalDivisors,
						optionalDivisorsCombinations: optionalDivisorsCombinations
					});
				} catch (e) {
					deferred.reject(e);
					throw e;
				}

				return deferred.promise;
			}

			function getRegex(index) {
				var currentRegex;

				try {
					currentRegex = regex[index] ? regex[index].source : '';
				} catch (e) {
					throw e;
				}

				return new RegExp('^' + currentRegex + '$');
			}

			// DIVISOR

			function isOptional(currentPos) {
				return UtilService.inArray(currentPos, optionalIndexes);
			}

			function isDivisor(currentPos) {
				return UtilService.inArray(currentPos, divisors);
			}

			function generateOptionalDivisors() {
				function sortNumber(a, b) {
					return a - b;
				}

				var sortedDivisors = divisors.sort(sortNumber);
				var sortedOptionals = optionalIndexes.sort(sortNumber);
				for (var i = 0; i < sortedDivisors.length; i++) {
					var divisor = sortedDivisors[i];
					for (var j = 1; j <= sortedOptionals.length; j++) {
						var optional = sortedOptionals[j - 1];
						if (optional >= divisor) {
							break;
						}

						if (optionalDivisors[divisor]) {
							optionalDivisors[divisor] = optionalDivisors[divisor].concat(divisor - j);
						} else {
							optionalDivisors[divisor] = [divisor - j];
						}

						// get the original divisor for alternative divisor
						divisorElements[divisor - j] = divisorElements[divisor];
					}
				}
			}

			function removeDivisors(value) {
				value = value.toString();
				try {
					if (divisors.length > 0 && value) {
						var keys = Object.keys(divisorElements);
						var elments = [];

						for (var i = keys.length - 1; i >= 0; i--) {
							var divisor = divisorElements[keys[i]];
							if (divisor) {
								elments.push(divisor);
							}
						}

						elments = UtilService.uniqueArray(elments);

						// remove if it is not pattern
						var regex = new RegExp('[' + '\\' + elments.join('\\') + ']', 'g');
						return value.replace(regex, '');
					} else {
						return value;
					}
				} catch (e) {
					throw e;
				}
			}

			function insertDivisors(array, combination) {
				function insert(array, output) {
					var out = output;
					for (var i = 0; i < array.length; i++) {
						var divisor = array[i];
						if (divisor < out.length) {
							out.splice(divisor, 0, divisorElements[divisor]);
						}
					}
					return out;
				}

				var output = array;
				var divs = divisors.filter(function (it) {
					var optionalDivisorsKeys = Object.keys(optionalDivisors).map(function (it) {
						return parseInt(it);
					});

					return !UtilService.inArray(it, combination) && !UtilService.inArray(it, optionalDivisorsKeys);
				});

				if (!angular.isArray(array) || !angular.isArray(combination)) {
					return output;
				}

				// insert not optional divisors
				output = insert(divs, output);

				// insert optional divisors
				output = insert(combination, output);

				return output;
			}

			function tryDivisorConfiguration(value) {
				var output = value.split('');
				var defaultDivisors = true;

				// has optional?
				if (optionalIndexes.length > 0) {
					var lazyArguments = [];
					var optionalDivisorsKeys = Object.keys(optionalDivisors);

					// get all optional divisors as array of arrays [[], [], []...]
					for (var i = 0; i < optionalDivisorsKeys.length; i++) {
						var val = optionalDivisors[optionalDivisorsKeys[i]];
						lazyArguments.push(val);
					}

					// generate all possible configurations
					if (optionalDivisorsCombinations.length === 0) {
						UtilService.lazyProduct(lazyArguments, function () {
							// convert arguments to array
							optionalDivisorsCombinations.push(Array.prototype.slice.call(arguments));
						});
					}

					for (var i = optionalDivisorsCombinations.length - 1; i >= 0; i--) {
						var outputClone = angular.copy(output);
						outputClone = insertDivisors(outputClone, optionalDivisorsCombinations[i]);

						// try validation
						var viewValueWithDivisors = outputClone.join('');
						var regex = getRegex(maskWithoutOptionals.length - 1);

						if (regex.test(viewValueWithDivisors)) {
							defaultDivisors = false;
							output = outputClone;
							break;
						}
					}
				}

				if (defaultDivisors) {
					output = insertDivisors(output, divisors);
				}

				return output.join('');
			}

			// MASK

			function getOptions() {
				return options;
			}

			function getViewValue(value) {
				try {
					var outputWithoutDivisors = removeDivisors(value);
					var output = tryDivisorConfiguration(outputWithoutDivisors);

					return {
						withDivisors: function withDivisors(capped) {
							if (capped) {
								return output.substr(0, maskWithoutOptionalsLength);
							} else {
								return output;
							}
						},
						withoutDivisors: function withoutDivisors(capped) {
							if (capped) {
								return outputWithoutDivisors.substr(0, maskWithoutOptionalsAndDivisorsLength);
							} else {
								return outputWithoutDivisors;
							}
						}
					};
				} catch (e) {
					throw e;
				}
			}

			// SELECTOR

			function getWrongPositions(viewValueWithDivisors, onlyFirst) {
				var pos = [];

				if (!viewValueWithDivisors) {
					return 0;
				}

				for (var i = 0; i < viewValueWithDivisors.length; i++) {
					var pattern = getRegex(i);
					var value = viewValueWithDivisors.substr(0, i + 1);

					if (pattern && !pattern.test(value)) {
						pos.push(i);

						if (onlyFirst) {
							break;
						}
					}
				}

				return pos;
			}

			function getFirstWrongPosition(viewValueWithDivisors) {
				return getWrongPositions(viewValueWithDivisors, true)[0];
			}

			function removeWrongPositions(viewValueWithDivisors) {
				var wrongPositions = getWrongPositions(viewValueWithDivisors, false);
				var newViewValue = viewValueWithDivisors;

				for (var i = 0; i < wrongPositions.length; i++) {
					var wrongPosition = wrongPositions[i];
					var viewValueArray = viewValueWithDivisors.split('');
					viewValueArray.splice(wrongPosition, 1);
					newViewValue = viewValueArray.join('');
				}

				return getViewValue(newViewValue);
			}

			return {
				getViewValue: getViewValue,
				generateRegex: generateRegex,
				getRegex: getRegex,
				getOptions: getOptions,
				removeDivisors: removeDivisors,
				getFirstWrongPosition: getFirstWrongPosition,
				removeWrongPositions: removeWrongPositions
			};
		}

		return {
			create: create
		};
	}]);
})();
(function () {
	'use strict';
	angular.module('ngMask').factory('OptionalService', [function () {
		function getOptionalsIndexes(mask) {
			var indexes = [];

			try {
				var regexp = /\?/g;
				var match = [];

				while ((match = regexp.exec(mask)) != null) {
					// Save the optional char
					indexes.push(match.index - 1);
				}
			} catch (e) {
				throw e;
			}

			return {
				fromMask: function fromMask() {
					return indexes;
				},
				fromMaskWithoutOptionals: function fromMaskWithoutOptionals() {
					return getOptionalsRelativeMaskWithoutOptionals(indexes);
				}
			};
		}

		function getOptionalsRelativeMaskWithoutOptionals(optionals) {
			var indexes = [];
			for (var i = 0; i < optionals.length; i++) {
				indexes.push(optionals[i] - i);
			}
			return indexes;
		}

		function removeOptionals(mask) {
			var newMask;

			try {
				newMask = mask.replace(/\?/g, '');
			} catch (e) {
				throw e;
			}

			return newMask;
		}

		return {
			removeOptionals: removeOptionals,
			getOptionals: getOptionalsIndexes
		};
	}]);
})();(function () {
	'use strict';
	angular.module('ngMask').factory('UtilService', [function () {

		// sets: an array of arrays
		// f: your callback function
		// context: [optional] the `this` to use for your callback
		// http://phrogz.net/lazy-cartesian-product
		function lazyProduct(sets, f, context) {
			if (!context) {
				context = this;
			}

			var p = [];
			var max = sets.length - 1;
			var lens = [];

			for (var i = sets.length; i--;) {
				lens[i] = sets[i].length;
			}

			function dive(d) {
				var a = sets[d];
				var len = lens[d];

				if (d === max) {
					for (var i = 0; i < len; ++i) {
						p[d] = a[i];
						f.apply(context, p);
					}
				} else {
					for (var i = 0; i < len; ++i) {
						p[d] = a[i];
						dive(d + 1);
					}
				}

				p.pop();
			}

			dive(0);
		}

		function inArray(i, array) {
			var output;

			try {
				output = array.indexOf(i) > -1;
			} catch (e) {
				throw e;
			}

			return output;
		}

		function uniqueArray(array) {
			var u = {};
			var a = [];

			for (var i = 0, l = array.length; i < l; ++i) {
				if (u.hasOwnProperty(array[i])) {
					continue;
				}

				a.push(array[i]);
				u[array[i]] = 1;
			}

			return a;
		}

		return {
			lazyProduct: lazyProduct,
			inArray: inArray,
			uniqueArray: uniqueArray
		};
	}]);
})();

;
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function _(){return H.apply(null,arguments)}function y(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function g(e){return void 0===e}function w(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Wt(e,t,n,s,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){var t,n,s=e._d&&!isNaN(e._d.getTime());return s&&(t=p(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function I(e){var t=l(NaN);return null!=e?E(p(t),e):p(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=_.momentProperties=[],z=!1;function q(e,t){var n,s,i,r=Z.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=p(t)),g(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)g(i=t[s=Z[n]])||(e[s]=i);return e}function $(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,_.updateOffset(this),z=!1)}function k(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function B(e){!1===_.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=_.deprecationHandler&&_.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=_.deprecationHandler&&_.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function a(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=a(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,s),ne.lastIndex=0,--n;return e}var oe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function o(e){return"string"==typeof e?oe[e]||oe[e.toLowerCase()]:void 0}function ue(e){var t,n,s={};for(n in e)c(e,n)&&(t=o(n))&&(s[t]=e[n]);return s}var le={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var de=/\d/,t=/\d\d/,he=/\d{3}/,ce=/\d{4}/,fe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,we=/[+-]?\d{1,6}/,pe=/\d+/,ke=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,i=/[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,u=/^[1-9]\d?/,d=/^([1-9]\d|\d)/;function h(e,n,s){Ye[e]=a(n)?n:function(e,t){return e&&s?s:n}}function De(e,t){return c(Ye,e)?Ye[e](t._strict,t._locale):new RegExp(f(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function f(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t}var Ye={},Se={};function v(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),w(n)&&(i=function(e,t){t[n]=M(e)}),s=e.length,t=0;t<s;t++)Se[e[t]]=i}function Oe(e,i){v(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}function be(e){return e%4==0&&e%100!=0||e%400==0}var D=0,Y=1,S=2,O=3,b=4,T=5,Te=6,xe=7,Ne=8;function We(e){return be(e)?366:365}s("Y",0,0,function(){var e=this.year();return e<=9999?r(e,4):"+"+e}),s(0,["YY",2],0,function(){return this.year()%100}),s(0,["YYYY",4],0,"year"),s(0,["YYYYY",5],0,"year"),s(0,["YYYYYY",6,!0],0,"year"),h("Y",ke),h("YY",n,t),h("YYYY",ge,ce),h("YYYYY",we,fe),h("YYYYYY",we,fe),v(["YYYYY","YYYYYY"],D),v("YYYY",function(e,t){t[D]=2===e.length?_.parseTwoDigitYear(e):M(e)}),v("YY",function(e,t){t[D]=_.parseTwoDigitYear(e)}),v("Y",function(e,t){t[D]=parseInt(e,10)}),_.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3)};var x,Pe=Re("FullYear",!0);function Re(t,n){return function(e){return null!=e?(Ue(this,t,e),_.updateOffset(this,n),this):Ce(this,t)}}function Ce(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ue(e,t,n){var s,i,r;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return i?s.setUTCMilliseconds(n):s.setMilliseconds(n);case"Seconds":return i?s.setUTCSeconds(n):s.setSeconds(n);case"Minutes":return i?s.setUTCMinutes(n):s.setMinutes(n);case"Hours":return i?s.setUTCHours(n):s.setHours(n);case"Date":return i?s.setUTCDate(n):s.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||be(t)?e:28,i?s.setUTCFullYear(t,r,e):s.setFullYear(t,r,e)}}function He(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?be(e)?29:28:31-n%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},s("M",["MM",2],"Mo",function(){return this.month()+1}),s("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),s("MMMM",0,0,function(e){return this.localeData().months(this,e)}),h("M",n,u),h("MM",n,t),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),v(["M","MM"],function(e,t){t[Y]=M(e)-1}),v(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[Y]=s:p(n).invalidMonth=e});var Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ge=i,Ee=i;function Ae(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(!w(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,He(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Ie(e){return null!=e?(Ae(this,e),_.updateOffset(this,!0),this):Ce(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n,s=[],i=[],r=[],a=0;a<12;a++)n=l([2e3,a]),t=f(this.monthsShort(n,"")),n=f(this.months(n,"")),s.push(t),i.push(n),r.push(n),r.push(t);s.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1}function $e(e,t,n,s,i){var r,t=1+7*(t-1)+(7+n-s)%7+qe(e,s,i),n=t<=0?We(r=e-1)+t:t>We(e)?(r=e+1,t-We(e)):(r=e,t);return{year:r,dayOfYear:n}}function Be(e,t,n){var s,i,r=qe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+N(i=e.year()-1,t,n):r>N(e.year(),t,n)?(s=r-N(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function N(e,t,n){var s=qe(e,t,n),t=qe(e+1,t,n);return(We(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),h("w",n,u),h("ww",n,t),h("W",n,u),h("WW",n,t),Oe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e)});function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),h("d",n),h("e",n),h("E",n),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,n,s){t[s]=M(e)});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=i,tt=i,nt=i;function st(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=f(this.weekdaysMin(s,"")),n=f(this.weekdaysShort(s,"")),s=f(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,it),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),rt("a",!0),rt("A",!1),h("a",at),h("A",at),h("H",n,d),h("h",n,u),h("k",n,u),h("HH",n,t),h("hh",n,t),h("kk",n,t),h("hmm",me),h("hmmss",_e),h("Hmm",me),h("Hmmss",_e),v(["H","HH"],O),v(["k","kk"],function(e,t,n){e=M(e);t[O]=24===e?0:e}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),v(["h","hh"],function(e,t,n){t[O]=M(e),p(n).bigHour=!0}),v("hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s)),p(n).bigHour=!0}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i)),p(n).bigHour=!0}),v("Hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s))}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i))});i=Re("Hours",!0);var ot,ut={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},W={},lt={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=dt(e[r]).split("-")).length,n=(n=dt(e[r+1]))?n.split("-"):null;0<t;){if(s=ct(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return ot}function ct(t){var e,n;if(void 0===W[t]&&"undefined"!=typeof module&&module&&module.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ot._abbr,require("./locale/"+t),ft(e)}catch(e){W[t]=null}return W[t]}function ft(e,t){return e&&((t=g(t)?P(e):mt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function mt(e,t){if(null===t)return delete W[e],null;var n,s=ut;if(t.abbr=e,null!=W[e])Q("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."),s=W[e]._config;else if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return W[e]=new K(X(s,t)),lt[e]&&lt[e].forEach(function(e){mt(e.name,e.config)}),ft(e),W[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!y(e)){if(t=ct(e))return t;e=[e]}return ht(e)}function _t(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[Y]<0||11<t[Y]?Y:t[S]<1||t[S]>He(t[D],t[Y])?S:t[O]<0||24<t[O]||24===t[O]&&(0!==t[b]||0!==t[T]||0!==t[Te])?O:t[b]<0||59<t[b]?b:t[T]<0||59<t[T]?T:t[Te]<0||999<t[Te]?Te:-1,p(e)._overflowDayOfYear&&(t<D||S<t)&&(t=S),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Ne),p(e).overflow=t),e}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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["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/]],Mt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yt(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o),o=pt.length,l=kt.length;if(u){for(p(e).iso=!0,t=0,n=o;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],s=!1!==pt[t][2];break}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){r=(u[2]||" ")+kt[t][0];break}if(null==r)return void(e._isValid=!1)}if(s||null==r){if(u[4]){if(!wt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),xt(e)}else e._isValid=!1}}else e._isValid=!1}function St(e,t,n,s,i,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Le.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e}function Ot(e){var t,n,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=St(s[4],s[3],s[2],s[5],s[6],s[7]),function(e,t,n){if(!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1}(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],n=s[9],s=s[10],t?Dt[t]:n?0:60*(((t=parseInt(s,10))-(n=t%100))/100)+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,s,i,r,a,o,u,l,d,h,c=[];if(!e._d){for(s=e,i=new Date(_.now()),n=s._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[S]&&null==e._a[Y]&&(null!=(i=(s=e)._w).GG||null!=i.W||null!=i.E?(u=1,l=4,r=bt(i.GG,s._a[D],Be(R(),1,4).year),a=bt(i.W,1),((o=bt(i.E,1))<1||7<o)&&(d=!0)):(u=s._locale._week.dow,l=s._locale._week.doy,h=Be(R(),u,l),r=bt(i.gg,s._a[D],h.year),a=bt(i.w,h.week),null!=i.d?((o=i.d)<0||6<o)&&(d=!0):null!=i.e?(o=i.e+u,(i.e<0||6<i.e)&&(d=!0)):o=u),a<1||a>N(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=$e(r,a,o,u,l),s._a[D]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[D],n[D]),(e._dayOfYear>We(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=ze(i,0,e._dayOfYear),e._a[Y]=d.getUTCMonth(),e._a[S]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[b]&&0===e._a[T]&&0===e._a[Te]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ze:Ze).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function xt(e){if(e._f===_.ISO_8601)Yt(e);else if(e._f===_.RFC_2822)Ot(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],d=l.length,h=0;h<d;h++)n=l[h],(t=(a.match(De(n,e))||[])[0])&&(0<(s=a.substr(0,a.indexOf(t))).length&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(t)+t.length),u+=t.length),ie[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(Se,s)&&Se[s](i,r._a,r,s)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=o-u,0<a.length&&p(e).unusedInput.push(a),e._a[O]<=12&&!0===p(e).bigHour&&0<e._a[O]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[O]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[O],e._meridiem),null!==(o=p(e).era)&&(e._a[D]=e._locale.erasConvertYear(o,e._a[D])),Tt(e),_t(e)}}function Nt(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||P(e._l),null===i||void 0===r&&""===i)return I({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),k(i))return new $(_t(i));if(V(i))e._d=i;else if(y(r)){var a,o,u,l,d,h,c=e,f=!1,m=c._f.length;if(0===m)p(c).invalidFormat=!0,c._d=new Date(NaN);else{for(l=0;l<m;l++)d=0,h=!1,a=q({},c),null!=c._useUTC&&(a._useUTC=c._useUTC),a._f=c._f[l],xt(a),A(a)&&(h=!0),d=(d+=p(a).charsLeftOver)+10*p(a).unusedTokens.length,p(a).score=d,f?d<u&&(u=d,o=a):(null==u||d<u||h)&&(u=d,o=a,h)&&(f=!0);E(c,o||a)}}else if(r)xt(e);else if(g(r=(i=e)._i))i._d=new Date(_.now());else V(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null!==(t=Mt.exec(n._i))?n._d=new Date(+t[1]):(Yt(n),!1===n._isValid&&(delete n._isValid,Ot(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:_.createFromInputFallback(n)))):y(r)?(i._a=G(r.slice(0),function(e){return parseInt(e,10)}),Tt(i)):F(r)?(t=i)._d||(s=void 0===(n=ue(t._i)).day?n.date:n.day,t._a=G([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Tt(t)):w(r)?i._d=new Date(r):_.createFromInputFallback(i);return A(e)||(e._d=null),e}function Wt(e,t,n,s,i){var r={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(F(e)&&L(e)||y(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(i=new $(_t(Nt(i=r))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function R(e,t,n,s){return Wt(e,t,n,s,!1)}_.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I()}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:I()});function Pt(e,t){var n,s;if(!(t=1===t.length&&y(t[0])?t[0]:t).length)return R();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var e=ue(e),t=e.year||0,n=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Rt.length;for(t in e)if(c(e,t)&&(-1===x.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Rt[n]]){if(s)return!1;parseFloat(e[Rt[n]])!==M(e[Rt[n]])&&(s=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*o+1e3*a*60*60,this._days=+r+7*i,this._months=+s+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){s(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),h("Z",ve),h("ZZ",ve),v(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(ve,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+M(e[2]))?0:"+"===e[0]?t:-t}function Gt(e,t){var n;return t._isUTC?(t=t.clone(),n=(k(e)||V(e)?e:R(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),_.updateOffset(t,!1),t):R(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&this._isUTC&&0===this._offset}_.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var n,s=e;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(t=It.exec(e))?(n="-"===t[1]?-1:1,s={y:0,d:M(t[S])*n,h:M(t[O])*n,m:M(t[b])*n,s:M(t[T])*n,ms:M(Ht(1e3*t[Te]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,s={y:Zt(t[2],n),M:Zt(t[3],n),w:Zt(t[4],n),d:Zt(t[5],n),h:Zt(t[6],n),m:Zt(t[7],n),s:Zt(t[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(R(s.from),R(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new Ct(s),Ut(e)&&c(e,"_locale")&&(n._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n}function Zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),$t(this,C(e,t),s),this}}function $t(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ae(e,Ce(e,"Month")+t*n),r&&Ue(e,"Date",Ce(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s)&&_.updateOffset(e,r||t)}C.fn=Ct.prototype,C.invalid=function(){return C(NaN)};Fe=qt(1,"add"),Qe=qt(-1,"subtract");function Bt(e){return"string"==typeof e||e instanceof String}function Jt(e){return k(e)||V(e)||Bt(e)||w(e)||function(t){var e=y(t),n=!1;e&&(n=0===t.filter(function(e){return!w(e)&&Bt(t)}).length);return e&&n}(e)||function(e){var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i}(e)||null==e}function Qt(e,t){var n,s;return e.date()<t.date()?-Qt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(s=e.clone().add(n,"months"))<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Ke=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Kt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function an(){for(var e,t,n,s=[],i=[],r=[],a=[],o=this.eras(),u=0,l=o.length;u<l;++u)e=f(o[u].name),t=f(o[u].abbr),n=f(o[u].narrow),i.push(e),s.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function on(e,t){s(0,[e,e.length],0,t)}function un(e,t,n,s,i){var r;return null==e?Be(this,s,i).year:(r=N(e,s,i),function(e,t,n,s,i){e=$e(e,t,n,s,i),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,s,i))}s("N",0,0,"eraAbbr"),s("NN",0,0,"eraAbbr"),s("NNN",0,0,"eraAbbr"),s("NNNN",0,0,"eraName"),s("NNNNN",0,0,"eraNarrow"),s("y",["y",1],"yo","eraYear"),s("y",["yy",2],0,"eraYear"),s("y",["yyy",3],0,"eraYear"),s("y",["yyyy",4],0,"eraYear"),h("N",rn),h("NN",rn),h("NNN",rn),h("NNNN",function(e,t){return t.erasNameRegex(e)}),h("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?p(n).era=s:p(n).invalidEra=e}),h("y",pe),h("yy",pe),h("yyy",pe),h("yyyy",pe),h("yo",function(e,t){return t._eraYearOrdinalRegex||pe}),v(["y","yy","yyy","yyyy"],D),v(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[D]=n._locale.eraYearOrdinalParse(e,i):t[D]=parseInt(e,10)}),s(0,["gg",2],0,function(){return this.weekYear()%100}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),h("G",ke),h("g",ke),h("GG",n,t),h("gg",n,t),h("GGGG",ge,ce),h("gggg",ge,ce),h("GGGGG",we,fe),h("ggggg",we,fe),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=M(e)}),Oe(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e)}),s("Q",0,"Qo","quarter"),h("Q",de),v("Q",function(e,t){t[Y]=3*(M(e)-1)}),s("D",["DD",2],"Do","date"),h("D",n,u),h("DD",n,t),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],S),v("Do",function(e,t){t[S]=M(e.match(n)[0])});ge=Re("Date",!0);s("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",ye),h("DDDD",he),v(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),s("m",["mm",2],0,"minute"),h("m",n,d),h("mm",n,t),v(["m","mm"],b);var ln,ce=Re("Minutes",!1),we=(s("s",["ss",2],0,"second"),h("s",n,d),h("ss",n,t),v(["s","ss"],T),Re("Seconds",!1));for(s("S",0,0,function(){return~~(this.millisecond()/100)}),s(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond()}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),h("S",ye,de),h("SS",ye,t),h("SSS",ye,he),ln="SSSS";ln.length<=9;ln+="S")h(ln,pe);function dn(e,t){t[Te]=M(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")v(ln,dn);fe=Re("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName");u=$.prototype;function hn(e){return e}u.add=Fe,u.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||R(),n=Gt(e,this).startOf("day"),n=_.calendarFormat(this,n)||"sameElse",t=t&&(a(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,R(e)))},u.clone=function(){return new $(this)},u.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=o(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:m(r)},u.endOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,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+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1;break}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.format=function(e){return e=e||(this.isUtc()?_.defaultFormatUtc:_.defaultFormat),e=re(this,e),this.localeData().postformat(e)},u.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.fromNow=function(e){return this.from(R(),e)},u.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.toNow=function(e){return this.to(R(),e)},u.get=function(e){return a(this[e=o(e)])?this[e]():this},u.invalidAt=function(){return p(this).overflow},u.isAfter=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},u.isBefore=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},u.isBetween=function(e,t,n,s){return e=k(e)?e:R(e),t=k(t)?t:R(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))},u.isSame=function(e,t){var e=k(e)?e:R(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},u.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},u.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},u.isValid=function(){return A(this)},u.lang=Ke,u.locale=Xt,u.localeData=Kt,u.max=_e,u.min=me,u.parsingFlags=function(){return E({},p(this))},u.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:le[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else if(a(this[e=o(e)]))return this[e](t);return this},u.startOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3);break}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.subtract=Qe,u.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},u.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},u.toDate=function(){return new Date(this.valueOf())},u.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):a(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},u.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},u.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},u.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},u.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},u.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},u.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-_(n[s].since).year())*e+n[s].offset;return this.year()},u.year=Pe,u.isLeapYear=function(){return be(this.year())},u.weekYear=function(e){return un.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},u.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},u.quarter=u.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},u.month=Ie,u.daysInMonth=function(){return He(this.year(),this.month())},u.week=u.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},u.isoWeek=u.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},u.weeksInYear=function(){var e=this.localeData()._week;return N(this.year(),e.dow,e.doy)},u.weeksInWeekYear=function(){var e=this.localeData()._week;return N(this.weekYear(),e.dow,e.doy)},u.isoWeeksInYear=function(){return N(this.year(),1,4)},u.isoWeeksInISOWeekYear=function(){return N(this.isoWeekYear(),1,4)},u.date=ge,u.day=u.days=function(e){var t,n,s;return this.isValid()?(t=Ce(this,"Day"),null!=e?(n=e,s=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=s.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},u.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},u.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},u.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")},u.hour=u.hours=i,u.minute=u.minutes=ce,u.second=u.seconds=we,u.millisecond=u.milliseconds=fe,u.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?$t(this,C(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},u.utc=function(e){return this.utcOffset(0,e)},u.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Et(this),"m"),this},u.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},u.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?R(e).utcOffset():0,(this.utcOffset()-e)%60==0)},u.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},u.isLocal=function(){return!!this.isValid()&&!this._isUTC},u.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},u.isUtc=At,u.isUTC=At,u.zoneAbbr=function(){return this._isUTC?"UTC":""},u.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},u.dates=e("dates accessor is deprecated. Use date instead.",ge),u.months=e("months accessor is deprecated. Use month instead",Ie),u.years=e("years accessor is deprecated. Use year instead",Pe),u.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),u.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return g(this._isDSTShifted)&&(q(e={},this),(e=Nt(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&M(e[a])!==M(t[a]))&&r++;return r+i}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});d=K.prototype;function cn(e,t,n,s){var i=P(),s=l().set(s,t);return i[n](s,e)}function fn(e,t,n){if(w(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=cn(e,i,n,"month");return s}function mn(e,t,n,s){t=("boolean"==typeof e?w(t)&&(n=t,t=void 0):(t=e,e=!1,w(n=t)&&(n=t,t=void 0)),t||"");var i,r=P(),a=e?r._week.dow:0,o=[];if(null!=n)return cn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o}d.calendar=function(e,t,n){return a(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},d.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},d.invalidDate=function(){return this._invalidDate},d.ordinal=function(e){return this._ordinal.replace("%d",e)},d.preparse=hn,d.postformat=hn,d.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return a(i)?i(e,t,n,s):i.replace(/%d/i,e)},d.pastFuture=function(e,t){return a(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},d.set=function(e){var t,n;for(n in e)c(e,n)&&(a(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)},d.eras=function(e,t){for(var n,s=this._eras||P("en")._eras,i=0,r=s.length;i<r;++i){switch(typeof s[i].since){case"string":n=_(s[i].since).startOf("day"),s[i].since=n.valueOf();break}switch(typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=_(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf();break}}return s},d.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s];break}else if(0<=[r,a,o].indexOf(e))return u[s]},d.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?_(e.since).year():_(e.since).year()+(t-e.offset)*n},d.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},d.erasNameRegex=function(e){return c(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},d.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},d.months=function(e,t){return e?(y(this._months)?this._months:this._months[(this._months.isFormat||Ve).test(t)?"format":"standalone"])[e.month()]:y(this._months)?this._months:this._months.standalone},d.monthsShort=function(e,t){return e?(y(this._monthsShort)?this._monthsShort:this._monthsShort[Ve.test(t)?"format":"standalone"])[e.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},d.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},d.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},d.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},d.week=function(e){return Be(e,this._week.dow,this._week.doy).week},d.firstDayOfYear=function(){return this._week.doy},d.firstDayOfWeek=function(){return this._week.dow},d.weekdays=function(e,t){return t=y(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Je(t,this._week.dow):e?t[e.day()]:t},d.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},d.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},d.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},d.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},d.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},d.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},d.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},d.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),_.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),_.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var _n=Math.abs;function yn(e,t,n,s){t=C(t,n);return e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function pn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}de=kn("ms"),t=kn("s"),ye=kn("m"),he=kn("h"),Fe=kn("d"),_e=kn("w"),me=kn("M"),Qe=kn("Q"),i=kn("y"),ce=de;function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var we=Mn("milliseconds"),fe=Mn("seconds"),ge=Mn("minutes"),Pe=Mn("hours"),d=Mn("days"),vn=Mn("months"),Dn=Mn("years");var Yn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function On(e,t,n,s){var i=C(e).abs(),r=Yn(i.as("s")),a=Yn(i.as("m")),o=Yn(i.as("h")),u=Yn(i.as("d")),l=Yn(i.as("M")),d=Yn(i.as("w")),i=Yn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(o<=1?["h"]:o<n.h&&["hh",o])||(u<=1?["d"]:u<n.d&&["dd",u]);return(r=(r=null!=n.w?r||(d<=1?["w"]:d<n.w&&["ww",d]):r)||(l<=1?["M"]:l<n.M&&["MM",l])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,r)}var bn=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function xn(){var e,t,n,s,i,r,a,o,u,l,d;return this.isValid()?(e=bn(this._milliseconds)/1e3,t=bn(this._days),n=bn(this._months),(o=this.asSeconds())?(s=m(e/60),i=m(s/60),e%=60,s%=60,r=m(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=Tn(this._months)!==Tn(o)?"-":"",l=Tn(this._days)!==Tn(o)?"-":"",d=Tn(this._milliseconds)!==Tn(o)?"-":"",(o<0?"-":"")+"P"+(r?u+r+"Y":"")+(n?u+n+"M":"")+(t?l+t+"D":"")+(i||s||e?"T":"")+(i?d+i+"H":"")+(s?d+s+"M":"")+(e?d+a+"S":"")):"P0D"):this.localeData().invalidDate()}var U=Ct.prototype;return U.isValid=function(){return this._isValid},U.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},U.add=function(e,t){return yn(this,e,t,1)},U.subtract=function(e,t){return yn(this,e,t,-1)},U.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=o(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},U.asMilliseconds=de,U.asSeconds=t,U.asMinutes=ye,U.asHours=he,U.asDays=Fe,U.asWeeks=_e,U.asMonths=me,U.asQuarters=Qe,U.asYears=i,U.valueOf=ce,U._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(pn(n)+t),n=t=0),s.milliseconds=e%1e3,e=m(e/1e3),s.seconds=e%60,e=m(e/60),s.minutes=e%60,e=m(e/60),s.hours=e%24,t+=m(e/24),n+=e=m(wn(t)),t-=gn(pn(e)),e=m(n/12),n%=12,s.days=t,s.months=n,s.years=e,this},U.clone=function(){return C(this)},U.get=function(e){return e=o(e),this.isValid()?this[e+"s"]():NaN},U.milliseconds=we,U.seconds=fe,U.minutes=ge,U.hours=Pe,U.days=d,U.weeks=function(){return m(this.days()/7)},U.months=vn,U.years=Dn,U.humanize=function(e,t){var n,s;return this.isValid()?(n=!1,s=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(s.ss=t.s-1),e=this.localeData(),t=On(this,!n,s,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},U.toISOString=xn,U.toString=xn,U.toJSON=xn,U.locale=Xt,U.localeData=Kt,U.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),U.lang=Ke,s("X",0,0,"unix"),s("x",0,0,"valueOf"),h("x",ke),h("X",/[+-]?\d+(\.\d{1,3})?/),v("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),v("x",function(e,t,n){n._d=new Date(M(e))}),_.version="2.30.1",H=R,_.fn=u,_.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},_.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=l,_.unix=function(e){return R(1e3*e)},_.months=function(e,t){return fn(e,t,"months")},_.isDate=V,_.locale=ft,_.invalid=I,_.duration=C,_.isMoment=k,_.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},_.parseZone=function(){return R.apply(null,arguments).parseZone()},_.localeData=P,_.isDuration=Ut,_.monthsShort=function(e,t){return fn(e,t,"monthsShort")},_.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},_.defineLocale=mt,_.updateLocale=function(e,t){var n,s;return null!=t?(s=ut,null!=W[e]&&null!=W[e].parentLocale?W[e].set(X(W[e]._config,t)):(t=X(s=null!=(n=ct(e))?n._config:s,t),null==n&&(t.abbr=e),(s=new K(t)).parentLocale=W[e],W[e]=s),ft(e)):null!=W[e]&&(null!=W[e].parentLocale?(W[e]=W[e].parentLocale,e===ft()&&ft(e)):null!=W[e]&&delete W[e]),W[e]},_.locales=function(){return ee(W)},_.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},_.normalizeUnits=o,_.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},_.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},_.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},_.prototype=u,_.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"},_});
//# sourceMappingURL=moment.min.js.map;
// numeral.js
// version : 1.4.5
// author : Adam Draper
// license : MIT
// http://adamwdraper.github.com/Numeral-js/
(function(){function o(e){this._n=e}function u(e,t,n){var r=Math.pow(10,t),i;i=(Math.round(e*r)/r).toFixed(t);if(n){var s=new RegExp("0{1,"+n+"}$");i=i.replace(s,"")}return i}function a(e,t){var n;t.indexOf("$")>-1?n=l(e,t):t.indexOf("%")>-1?n=c(e,t):t.indexOf(":")>-1?n=h(e,t):n=d(e,t);return n}function f(e,t){if(t.indexOf(":")>-1)e._n=p(t);else if(t===i)e._n=0;else{var s=t;n[r].delimiters.decimal!=="."&&(t=t.replace(/\./g,"").replace(n[r].delimiters.decimal,"."));var o=new RegExp(n[r].abbreviations.thousand+"(?:\\)|(\\"+n[r].currency.symbol+")?(?:\\))?)?$"),u=new RegExp(n[r].abbreviations.million+"(?:\\)|(\\"+n[r].currency.symbol+")?(?:\\))?)?$"),a=new RegExp(n[r].abbreviations.billion+"(?:\\)|(\\"+n[r].currency.symbol+")?(?:\\))?)?$"),f=new RegExp(n[r].abbreviations.trillion+"(?:\\)|(\\"+n[r].currency.symbol+")?(?:\\))?)?$"),l=["KB","MB","GB","TB","PB","EB","ZB","YB"],c=!1;for(var h=0;h<=l.length;h++){c=t.indexOf(l[h])>-1?Math.pow(1024,h+1):!1;if(c)break}e._n=(c?c:1)*(s.match(o)?Math.pow(10,3):1)*(s.match(u)?Math.pow(10,6):1)*(s.match(a)?Math.pow(10,9):1)*(s.match(f)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*Number((t.indexOf("(")>-1?"-":"")+t.replace(/[^0-9\.'-]+/g,""));e._n=c?Math.ceil(e._n):e._n}return e._n}function l(e,t){var i=t.indexOf("$")<=1?!0:!1,s="";if(t.indexOf(" $")>-1){s=" ";t=t.replace(" $","")}else if(t.indexOf("$ ")>-1){s=" ";t=t.replace("$ ","")}else t=t.replace("$","");var o=a(e,t);if(i)if(o.indexOf("(")>-1||o.indexOf("-")>-1){o=o.split("");o.splice(1,0,n[r].currency.symbol+s);o=o.join("")}else o=n[r].currency.symbol+s+o;else if(o.indexOf(")")>-1){o=o.split("");o.splice(-1,0,s+n[r].currency.symbol);o=o.join("")}else o=o+s+n[r].currency.symbol;return o}function c(e,t){var n="";if(t.indexOf(" %")>-1){n=" ";t=t.replace(" %","")}else t=t.replace("%","");e._n=e._n*100;var r=a(e,t);if(r.indexOf(")")>-1){r=r.split("");r.splice(-1,0,n+"%");r=r.join("")}else r=r+n+"%";return r}function h(e,t){var n=Math.floor(e._n/60/60),r=Math.floor((e._n-n*60*60)/60),i=Math.round(e._n-n*60*60-r*60);return n+":"+(r<10?"0"+r:r)+":"+(i<10?"0"+i:i)}function p(e){var t=e.split(":"),n=0;if(t.length===3){n+=Number(t[0])*60*60;n+=Number(t[1])*60;n+=Number(t[2])}else if(t.lenght===2){n+=Number(t[0])*60;n+=Number(t[1])}return Number(n)}function d(e,t){var s=!1,o=!1,a="",f="",l="",c=Math.abs(e._n);if(e._n===0&&i!==null)return i;if(t.indexOf("(")>-1){s=!0;t=t.slice(1,-1)}if(t.indexOf("a")>-1){if(t.indexOf(" a")>-1){a=" ";t=t.replace(" a","")}else t=t.replace("a","");if(c>=Math.pow(10,12)){a+=n[r].abbreviations.tillion;e._n=e._n/Math.pow(10,12)}else if(c<Math.pow(10,12)&&c>=Math.pow(10,9)){a+=n[r].abbreviations.billion;e._n=e._n/Math.pow(10,9)}else if(c<Math.pow(10,9)&&c>=Math.pow(10,6)){a+=n[r].abbreviations.million;e._n=e._n/Math.pow(10,6)}else if(c<Math.pow(10,6)&&c>=Math.pow(10,3)){a+=n[r].abbreviations.thousand;e._n=e._n/Math.pow(10,3)}}if(t.indexOf("b")>-1){if(t.indexOf(" b")>-1){f=" ";t=t.replace(" b","")}else t=t.replace("b","");var h=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],p,d;for(var v=0;v<=h.length;v++){p=Math.pow(1024,v);d=Math.pow(1024,v+1);if(e._n>=p&&e._n<d){f+=h[v];p>0&&(e._n=e._n/p);break}}}if(t.indexOf("o")>-1){if(t.indexOf(" o")>-1){l=" ";t=t.replace(" o","")}else t=t.replace("o","");l+=n[r].ordinal(e._n)}if(t.indexOf("[.]")>-1){o=!0;t=t.replace("[.]",".")}var m=e._n.toString().split(".")[0],g=t.split(".")[1],y=t.indexOf(","),b="",w=!1;if(g){if(g.indexOf("[")>-1){g=g.replace("]","");g=g.split("[");b=u(e._n,g[0].length+g[1].length,g[1].length)}else b=u(e._n,g.length);m=b.split(".")[0];b.split(".")[1].length?b=n[r].delimiters.decimal+b.split(".")[1]:b="";o&&Number(b)===0&&(b="")}else m=u(e._n,null);if(m.indexOf("-")>-1){m=m.slice(1);w=!0}y>-1&&(m=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n[r].delimiters.thousands));t.indexOf(".")===0&&(m="");return(s&&w?"(":"")+(!s&&w?"-":"")+m+b+(l?l:"")+(a?a:"")+(f?f:"")+(s&&w?")":"")}function v(e,t){n[e]=t}var e,t="1.4.5",n={},r="en",i=null,s=typeof module!="undefined"&&module.exports;e=function(t){e.isNumeral(t)?t=t.value():Number(t)||(t=0);return new o(Number(t))};e.version=t;e.isNumeral=function(e){return e instanceof o};e.language=function(t,i){if(!t)return r;t&&!i&&(r=t);(i||!n[t])&&v(t,i);return e};e.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"},currency:{symbol:"$"}});e.zeroFormat=function(e){typeof e=="string"?i=e:i=null};e.fn=o.prototype={clone:function(){return e(this)},format:function(t){return a(this,t?t:e.defaultFormat)},unformat:function(t){return f(this,t?t:e.defaultFormat)},value:function(){return this._n},valueOf:function(){return this._n},set:function(e){this._n=Number(e);return this},add:function(e){this._n=this._n+Number(e);return this},subtract:function(e){this._n=this._n-Number(e);return this},multiply:function(e){this._n=this._n*Number(e);return this},divide:function(e){this._n=this._n/Number(e);return this},difference:function(e){var t=this._n-Number(e);t<0&&(t=-t);return t}};s&&(module.exports=e);typeof ender=="undefined"&&(this.numeral=e);typeof define=="function"&&define.amd&&define([],function(){return e})}).call(this);;
typeof Zepto=="undefined"&&(Zepto=undefined);typeof jQuery=="undefined"&&(jQuery=Zepto);typeof numeral=="undefined"&&(numeral=undefined);typeof moment=="undefined"&&(moment=undefined);typeof jStat=="undefined"&&(jStat=undefined),function(n,t,i,r){function l(t){function r(){this.yy={}}var i={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,variableSequence:6,TRUE:7,FALSE:8,NULL:9,TIME_AMPM:10,TIME_24:11,number:12,STRING:13,"&":14,"=":15,"+":16,"(":17,")":18,"[":19,expseq:20,"]":21,"<":22,">":23,NOT:24,"-":25,"*":26,"/":27,"^":28,E:29,FUNCTION:30,cell:31,FIXEDCELL:32,":":33,CELL:34,SHEET:35,"!":36,RANGE:37,";":38,",":39,VARIABLE:40,DECIMAL:41,NUMBER:42,"%":43,"#":44,$accept:0,$end:1},terminals_:{5:"EOF",7:"TRUE",8:"FALSE",9:"NULL",10:"TIME_AMPM",11:"TIME_24",13:"STRING",14:"&",15:"=",16:"+",17:"(",18:")",19:"[",21:"]",22:"<",23:">",24:"NOT",25:"-",26:"*",27:"/",28:"^",29:"E",30:"FUNCTION",32:"FIXEDCELL",33:":",34:"CELL",35:"SHEET",36:"!",37:"RANGE",38:";",39:",",40:"VARIABLE",41:"DECIMAL",42:"NUMBER",43:"%",44:"#"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,4],[4,4],[4,4],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,1],[4,3],[4,4],[4,1],[4,1],[4,2],[31,1],[31,3],[31,1],[31,3],[31,3],[31,5],[31,1],[31,3],[20,1],[20,3],[20,3],[6,1],[6,3],[12,1],[12,3],[12,2],[2,3],[2,4]],performAction:function(i,r,f,e,o,s){var h=s.length-1;switch(o){case 1:return s[h-1];case 2:this.$=t.getVariable(s[h]);break;case 3:this.$=!0;break;case 4:this.$=!1;break;case 5:this.$=null;break;case 6:this.$=t.time(s[h]);break;case 7:this.$=t.time(s[h]);break;case 8:this.$=s[h]*1;isNaN(this.$)&&(this.$=0);break;case 9:this.$=s[h].substring(1,s[h].length-1);break;case 10:this.$=""+s[h-2]+s[h];break;case 11:this.$=t.comparator.equal.call(t,s[h-2],s[h]);break;case 12:this.$=u.math.SUM.call(t,s[h-2],s[h]);break;case 13:this.$=s[h-1]*1;break;case 14:this.$=s[h-1];break;case 15:this.$=t.comparator.lessEqual.call(t,s[h-3],s[h]);break;case 16:this.$=t.comparator.greaterEqual.call(t,s[h-3],s[h]);break;case 17:this.$=t.comparator.notEqual.call(t,s[h-3],s[h]);break;case 18:this.$=s[h-2]!=s[h];break;case 19:this.$=t.comparator.greater.call(t,s[h-2],s[h]);break;case 20:this.$=t.comparator.less.call(t,s[h-2],s[h]);break;case 21:this.$=u.math.SUBTRACT.call(t,s[h-2],s[h]);break;case 22:this.$=u.math.MULTIPLY.call(t,s[h-2],s[h]);break;case 23:this.$=u.math.DIVIDE.call(t,s[h-2],s[h]);break;case 24:this.$=u.math.POWER.call(t,s[h-2],s[h]);break;case 25:this.$=s[h]*-1;isNaN(this.$)&&(this.$=0);break;case 26:this.$=s[h]*1;isNaN(this.$)&&(this.$=0);break;case 27:this.$=Math.E;break;case 28:this.$=t.callFunction(s[h-2]);break;case 29:this.$=t.callFunction(s[h-3],s[h-1]);break;case 33:this.$=t.getCellValue(s[h]);break;case 34:this.$=t.getCellRangeValue(s[h-2],s[h]);break;case 35:this.$=t.getCellValue(s[h]);break;case 36:this.$=t.getCellRangeValue(s[h-2],s[h]);break;case 37:this.$=t.getRemoteCellValue(s[h-2],s[h]);break;case 38:this.$=t.getRemoteCellRangeValue(s[h-4],s[h-2],s[h]);break;case 39:this.$=t.getColumnRange(s[h]);break;case 40:this.$=t.getRemoteColumnRange(s[h-2],s[h]);break;case 41:this.$=[s[h]];break;case 42:s[h-2].push(s[h]);this.$=s[h-2];break;case 43:s[h-2].push(s[h]);this.$=s[h-2];break;case 44:this.$=[s[h]];break;case 45:this.$=n.isArray(s[h-2])?s[h-2]:[s[h-2]];this.$.push(s[h]);break;case 46:this.$=s[h]*1;break;case 47:this.$=(s[h-2]+"."+s[h])*1;break;case 48:this.$=s[h-1]*.01;break;case 49:this.$=s[h-2]+s[h-1]+s[h];break;case 50:this.$=s[h-2]+s[h-1]+s[h]}},table:[{2:18,3:1,4:2,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{1:[3]},{5:[1,26],14:[1,27],15:[1,28],16:[1,29],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36]},{5:[2,2],14:[2,2],15:[2,2],16:[2,2],18:[2,2],21:[2,2],22:[2,2],23:[2,2],24:[2,2],25:[2,2],26:[2,2],27:[2,2],28:[2,2],38:[2,2],39:[2,2],41:[1,37]},{5:[2,3],14:[2,3],15:[2,3],16:[2,3],18:[2,3],21:[2,3],22:[2,3],23:[2,3],24:[2,3],25:[2,3],26:[2,3],27:[2,3],28:[2,3],38:[2,3],39:[2,3]},{5:[2,4],14:[2,4],15:[2,4],16:[2,4],18:[2,4],21:[2,4],22:[2,4],23:[2,4],24:[2,4],25:[2,4],26:[2,4],27:[2,4],28:[2,4],38:[2,4],39:[2,4]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],18:[2,5],21:[2,5],22:[2,5],23:[2,5],24:[2,5],25:[2,5],26:[2,5],27:[2,5],28:[2,5],38:[2,5],39:[2,5]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],18:[2,6],21:[2,6],22:[2,6],23:[2,6],24:[2,6],25:[2,6],26:[2,6],27:[2,6],28:[2,6],38:[2,6],39:[2,6]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],18:[2,7],21:[2,7],22:[2,7],23:[2,7],24:[2,7],25:[2,7],26:[2,7],27:[2,7],28:[2,7],38:[2,7],39:[2,7]},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],18:[2,8],21:[2,8],22:[2,8],23:[2,8],24:[2,8],25:[2,8],26:[2,8],27:[2,8],28:[2,8],38:[2,8],39:[2,8],43:[1,38]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],18:[2,9],21:[2,9],22:[2,9],23:[2,9],24:[2,9],25:[2,9],26:[2,9],27:[2,9],28:[2,9],38:[2,9],39:[2,9]},{2:18,4:39,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:41,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],20:40,25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:42,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:43,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{5:[2,27],14:[2,27],15:[2,27],16:[2,27],18:[2,27],21:[2,27],22:[2,27],23:[2,27],24:[2,27],25:[2,27],26:[2,27],27:[2,27],28:[2,27],38:[2,27],39:[2,27]},{17:[1,44]},{5:[2,30],14:[2,30],15:[2,30],16:[2,30],18:[2,30],21:[2,30],22:[2,30],23:[2,30],24:[2,30],25:[2,30],26:[2,30],27:[2,30],28:[2,30],38:[2,30],39:[2,30]},{2:45,5:[2,31],14:[2,31],15:[2,31],16:[2,31],18:[2,31],21:[2,31],22:[2,31],23:[2,31],24:[2,31],25:[2,31],26:[2,31],27:[2,31],28:[2,31],38:[2,31],39:[2,31],40:[1,46],44:[1,25]},{5:[2,44],14:[2,44],15:[2,44],16:[2,44],18:[2,44],21:[2,44],22:[2,44],23:[2,44],24:[2,44],25:[2,44],26:[2,44],27:[2,44],28:[2,44],38:[2,44],39:[2,44],41:[2,44],44:[1,47]},{5:[2,46],14:[2,46],15:[2,46],16:[2,46],18:[2,46],21:[2,46],22:[2,46],23:[2,46],24:[2,46],25:[2,46],26:[2,46],27:[2,46],28:[2,46],38:[2,46],39:[2,46],41:[1,48],43:[2,46]},{5:[2,33],14:[2,33],15:[2,33],16:[2,33],18:[2,33],21:[2,33],22:[2,33],23:[2,33],24:[2,33],25:[2,33],26:[2,33],27:[2,33],28:[2,33],33:[1,49],38:[2,33],39:[2,33]},{5:[2,35],14:[2,35],15:[2,35],16:[2,35],18:[2,35],21:[2,35],22:[2,35],23:[2,35],24:[2,35],25:[2,35],26:[2,35],27:[2,35],28:[2,35],33:[1,50],38:[2,35],39:[2,35]},{36:[1,51]},{5:[2,39],14:[2,39],15:[2,39],16:[2,39],18:[2,39],21:[2,39],22:[2,39],23:[2,39],24:[2,39],25:[2,39],26:[2,39],27:[2,39],28:[2,39],38:[2,39],39:[2,39]},{40:[1,52]},{1:[2,1]},{2:18,4:53,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:54,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:55,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:58,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],15:[1,56],16:[1,14],17:[1,11],19:[1,12],23:[1,57],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:60,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],15:[1,59],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:61,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:62,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:63,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:64,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:65,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{40:[1,66]},{5:[2,48],14:[2,48],15:[2,48],16:[2,48],18:[2,48],21:[2,48],22:[2,48],23:[2,48],24:[2,48],25:[2,48],26:[2,48],27:[2,48],28:[2,48],38:[2,48],39:[2,48],43:[2,48]},{14:[1,27],15:[1,28],16:[1,29],18:[1,67],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36]},{21:[1,68],38:[1,69],39:[1,70]},{14:[1,27],15:[1,28],16:[1,29],18:[2,41],21:[2,41],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,41],39:[2,41]},{5:[2,25],14:[2,25],15:[2,25],16:[2,25],18:[2,25],21:[2,25],22:[2,25],23:[2,25],24:[2,25],25:[2,25],26:[1,34],27:[1,35],28:[1,36],38:[2,25],39:[2,25]},{5:[2,26],14:[2,26],15:[2,26],16:[2,26],18:[2,26],21:[2,26],22:[2,26],23:[2,26],24:[2,26],25:[2,26],26:[1,34],27:[1,35],28:[1,36],38:[2,26],39:[2,26]},{2:18,4:41,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],18:[1,71],19:[1,12],20:72,25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{5:[2,32],14:[2,32],15:[2,32],16:[2,32],18:[2,32],21:[2,32],22:[2,32],23:[2,32],24:[2,32],25:[2,32],26:[2,32],27:[2,32],28:[2,32],38:[2,32],39:[2,32]},{44:[1,47]},{40:[1,73]},{42:[1,74]},{32:[1,75]},{34:[1,76]},{34:[1,77],37:[1,78]},{36:[1,79]},{5:[2,10],14:[2,10],15:[2,10],16:[1,29],18:[2,10],21:[2,10],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,10],39:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[1,29],18:[2,11],21:[2,11],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,11],39:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12],21:[2,12],22:[2,12],23:[2,12],24:[2,12],25:[2,12],26:[1,34],27:[1,35],28:[1,36],38:[2,12],39:[2,12]},{2:18,4:80,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:81,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{5:[2,20],14:[2,20],15:[2,20],16:[1,29],18:[2,20],21:[2,20],22:[2,20],23:[2,20],24:[2,20],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,20],39:[2,20]},{2:18,4:82,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{5:[2,19],14:[2,19],15:[2,19],16:[1,29],18:[2,19],21:[2,19],22:[2,19],23:[2,19],24:[2,19],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,19],39:[2,19]},{5:[2,18],14:[2,18],15:[2,18],16:[1,29],18:[2,18],21:[2,18],22:[1,30],23:[1,31],24:[2,18],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,18],39:[2,18]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],18:[2,21],21:[2,21],22:[2,21],23:[2,21],24:[2,21],25:[2,21],26:[1,34],27:[1,35],28:[1,36],38:[2,21],39:[2,21]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],18:[2,22],21:[2,22],22:[2,22],23:[2,22],24:[2,22],25:[2,22],26:[2,22],27:[2,22],28:[1,36],38:[2,22],39:[2,22]},{5:[2,23],14:[2,23],15:[2,23],16:[2,23],18:[2,23],21:[2,23],22:[2,23],23:[2,23],24:[2,23],25:[2,23],26:[2,23],27:[2,23],28:[1,36],38:[2,23],39:[2,23]},{5:[2,24],14:[2,24],15:[2,24],16:[2,24],18:[2,24],21:[2,24],22:[2,24],23:[2,24],24:[2,24],25:[2,24],26:[2,24],27:[2,24],28:[2,24],38:[2,24],39:[2,24]},{5:[2,45],14:[2,45],15:[2,45],16:[2,45],18:[2,45],21:[2,45],22:[2,45],23:[2,45],24:[2,45],25:[2,45],26:[2,45],27:[2,45],28:[2,45],38:[2,45],39:[2,45],41:[2,45]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13],21:[2,13],22:[2,13],23:[2,13],24:[2,13],25:[2,13],26:[2,13],27:[2,13],28:[2,13],38:[2,13],39:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14],21:[2,14],22:[2,14],23:[2,14],24:[2,14],25:[2,14],26:[2,14],27:[2,14],28:[2,14],38:[2,14],39:[2,14]},{2:18,4:83,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{2:18,4:84,6:3,7:[1,4],8:[1,5],9:[1,6],10:[1,7],11:[1,8],12:9,13:[1,10],16:[1,14],17:[1,11],19:[1,12],25:[1,13],29:[1,15],30:[1,16],31:17,32:[1,21],34:[1,22],35:[1,23],37:[1,24],40:[1,19],42:[1,20],44:[1,25]},{5:[2,28],14:[2,28],15:[2,28],16:[2,28],18:[2,28],21:[2,28],22:[2,28],23:[2,28],24:[2,28],25:[2,28],26:[2,28],27:[2,28],28:[2,28],38:[2,28],39:[2,28]},{18:[1,85],38:[1,69],39:[1,70]},{36:[1,86]},{5:[2,47],14:[2,47],15:[2,47],16:[2,47],18:[2,47],21:[2,47],22:[2,47],23:[2,47],24:[2,47],25:[2,47],26:[2,47],27:[2,47],28:[2,47],38:[2,47],39:[2,47],43:[2,47]},{5:[2,34],14:[2,34],15:[2,34],16:[2,34],18:[2,34],21:[2,34],22:[2,34],23:[2,34],24:[2,34],25:[2,34],26:[2,34],27:[2,34],28:[2,34],38:[2,34],39:[2,34]},{5:[2,36],14:[2,36],15:[2,36],16:[2,36],18:[2,36],21:[2,36],22:[2,36],23:[2,36],24:[2,36],25:[2,36],26:[2,36],27:[2,36],28:[2,36],38:[2,36],39:[2,36]},{5:[2,37],14:[2,37],15:[2,37],16:[2,37],18:[2,37],21:[2,37],22:[2,37],23:[2,37],24:[2,37],25:[2,37],26:[2,37],27:[2,37],28:[2,37],33:[1,87],38:[2,37],39:[2,37]},{5:[2,40],14:[2,40],15:[2,40],16:[2,40],18:[2,40],21:[2,40],22:[2,40],23:[2,40],24:[2,40],25:[2,40],26:[2,40],27:[2,40],28:[2,40],38:[2,40],39:[2,40]},{5:[2,49],14:[2,49],15:[2,49],16:[2,49],18:[2,49],21:[2,49],22:[2,49],23:[2,49],24:[2,49],25:[2,49],26:[2,49],27:[2,49],28:[2,49],38:[2,49],39:[2,49],40:[2,49],44:[2,49]},{5:[2,15],14:[2,15],15:[2,15],16:[1,29],18:[2,15],21:[2,15],22:[2,15],23:[2,15],24:[2,15],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,15],39:[2,15]},{5:[2,17],14:[2,17],15:[2,17],16:[1,29],18:[2,17],21:[2,17],22:[2,17],23:[2,17],24:[2,17],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,17],39:[2,17]},{5:[2,16],14:[2,16],15:[2,16],16:[1,29],18:[2,16],21:[2,16],22:[2,16],23:[2,16],24:[2,16],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,16],39:[2,16]},{14:[1,27],15:[1,28],16:[1,29],18:[2,42],21:[2,42],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,42],39:[2,42]},{14:[1,27],15:[1,28],16:[1,29],18:[2,43],21:[2,43],22:[1,30],23:[1,31],24:[1,32],25:[1,33],26:[1,34],27:[1,35],28:[1,36],38:[2,43],39:[2,43]},{5:[2,29],14:[2,29],15:[2,29],16:[2,29],18:[2,29],21:[2,29],22:[2,29],23:[2,29],24:[2,29],25:[2,29],26:[2,29],27:[2,29],28:[2,29],38:[2,29],39:[2,29]},{5:[2,50],14:[2,50],15:[2,50],16:[2,50],18:[2,50],21:[2,50],22:[2,50],23:[2,50],24:[2,50],25:[2,50],26:[2,50],27:[2,50],28:[2,50],38:[2,50],39:[2,50],40:[2,50],44:[2,50]},{34:[1,88]},{5:[2,38],14:[2,38],15:[2,38],16:[2,38],18:[2,38],21:[2,38],22:[2,38],23:[2,38],24:[2,38],25:[2,38],26:[2,38],27:[2,38],28:[2,38],38:[2,38],39:[2,38]}],defaultActions:{26:[2,1]},parseError:function(n,t){if(t.recoverable)this.trace(n);else throw new Error(n);},parse:function(n){function st(n){r.length=r.length-2*n;e.length=e.length-n;t.length=t.length-n}function ut(){var n;return n=it.lexer.lex()||p,typeof n!="number"&&(n=it.symbols_[n]||n),n}var it=this,r=[0],e=[null],t=[],s=this.table,g="",a=0,nt=0,v=0,y=2,p=1,ot=t.slice.call(arguments,1),w,rt,i,c,f,u,tt,h,k,o,ft,d,b,l;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={}),w=this.lexer.yylloc,t.push(w),rt=this.lexer.options&&this.lexer.options.ranges,this.parseError=typeof this.yy.parseError=="function"?this.yy.parseError:Object.getPrototypeOf(this).parseError,h={};;){if(f=r[r.length-1],this.defaultActions[f]?u=this.defaultActions[f]:((i===null||typeof i=="undefined")&&(i=ut()),u=s[f]&&s[f][i]),typeof u=="undefined"||!u.length||!u[0]){l="";function et(n){for(var t=r.length-1,i=0;;){if(y.toString()in s[n])return i;if(n===0||t<2)return!1;t-=2;n=r[t];++i}}if(v)c!==p&&(b=et(f));else{b=et(f);d=[];for(k in s[f])this.terminals_[k]&&k>y&&d.push("'"+this.terminals_[k]+"'");l=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+d.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(a+1)+": Unexpected "+(i==p?"end of input":"'"+(this.terminals_[i]||i)+"'");this.parseError(l,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:w,expected:d,recoverable:b!==!1})}if(v==3){if(i===p||c===p)throw new Error(l||"Parsing halted while starting to recover from another error.");nt=this.lexer.yyleng;g=this.lexer.yytext;a=this.lexer.yylineno;w=this.lexer.yylloc;i=ut()}if(b===!1)throw new Error(l||"Parsing halted. No suitable error recovery rule available.");st(b);c=i==y?null:i;i=y;f=r[r.length-1];u=s[f]&&s[f][y];v=3}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+i);switch(u[0]){case 1:r.push(i);e.push(this.lexer.yytext);t.push(this.lexer.yylloc);r.push(u[1]);i=null;c?(i=c,c=null):(nt=this.lexer.yyleng,g=this.lexer.yytext,a=this.lexer.yylineno,w=this.lexer.yylloc,v>0&&v--);break;case 2:if(o=this.productions_[u[1]][1],h.$=e[e.length-o],h._$={first_line:t[t.length-(o||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(o||1)].first_column,last_column:t[t.length-1].last_column},rt&&(h._$.range=[t[t.length-(o||1)].range[0],t[t.length-1].range[1]]),tt=this.performAction.apply(h,[g,nt,a,this.yy,u[1],e,t].concat(ot)),typeof tt!="undefined")return tt;o&&(r=r.slice(0,-2*o),e=e.slice(0,-1*o),t=t.slice(0,-1*o));r.push(this.productions_[u[1]][0]);e.push(h.$);t.push(h._$);ft=s[r[r.length-2]][r[r.length-1]];r.push(ft);break;case 3:return!0}}return!0}},f=function(){return{EOF:1,parseError:function(n,t){"use strict";if(this.yy.parser)this.yy.parser.parseError(n,t);else throw new Error(n);},setInput:function(n){"use strict";return this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){"use strict";var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){"use strict";var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){"use strict";return this._more=!0,this},reject:function(){"use strict";if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){"use strict";this.unput(this.match.slice(n))},pastInput:function(){"use strict";var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){"use strict";var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){"use strict";var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},test_match:function(n,t){"use strict";var u,i,r,f;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),i=n[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],u=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(f in r)this[f]=r[f];return!1}return!1},next:function(){"use strict";var n,t,r,f,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length;i++)if(r=this._input.match(this.rules[u[i]]),r&&(!t||r[0].length>t[0].length))if(t=r,f=i,this.options.backtrack_lexer){if(n=this.test_match(r,u[i]),n!==!1)return n;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break;return t?(n=this.test_match(t,u[f]),n!==!1)?n:!1:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){"use strict";var n=this.next();return n?n:this.lex()},begin:function(n){"use strict";this.conditionStack.push(n)},popState:function(){"use strict";var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){"use strict";return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){"use strict";return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){"use strict";this.begin(n)},stateStackSize:function(){"use strict";return this.conditionStack.length},options:{},performAction:function(n,i,r,u){var f=u;switch(r){case 1:return 13;case 2:return 13;case 3:return 35;case 4:return 30;case 5:return 10;case 6:return 11;case 7:return t.obj.type=="cell"?32:40;case 8:return t.obj.type=="cell"?34:40;case 9:return 37;case 10:return 30;case 11:return 40;case 12:return 40;case 13:return 42;case 15:return" ";case 16:return 41;case 17:return 33;case 18:return 38;case 19:return 39;case 20:return 26;case 21:return 27;case 22:return 25;case 23:return 16;case 24:return 28;case 25:return 17;case 26:return 18;case 27:return 19;case 28:return 21;case 29:return 23;case 30:return 22;case 31:return 24;case 32:return"PI";case 33:return 29;case 34:return 7;case 35:return 8;case 36:return 9;case 37:return'"';case 38:return"'";case 39:return"!";case 40:return 15;case 41:return 43;case 42:return 44;case 43:return 14;case 44:return 5}},rules:[/^(?:\s+)/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:#[A-Za-z0-9_]+)/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+(?=[(]))/,/^(?:([0]?[1-9]|1[0-2])[:][0-5][0-9]([:][0-5][0-9])?[ ]?(AM|am|aM|Am|PM|pm|pM|Pm))/,/^(?:([0]?[0-9]|1[0-9]|2[0-3])[:][0-5][0-9]([:][0-5][0-9])?)/,/^(?:\$[A-Za-z]+\$[0-9]+)/,/^(?:[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z]+[:][A-Za-z]+)/,/^(?:[A-Za-z]+(?=[(]))/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,/^(?:[A-Za-z_]+)/,/^(?:[0-9]+)/,/^(?:\$)/,/^(?: )/,/^(?:[.])/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:>)/,/^(?:<)/,/^(?:NOT\b)/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:TRUE\b)/,/^(?:FALSE\b)/,/^(?:NULL\b)/,/^(?:")/,/^(?:')/,/^(?:!)/,/^(?:=)/,/^(?:%)/,/^(?:[#])/,/^(?:[&])/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!0}}}}();return i.lexer=f,r.prototype=i,i.Parser=r,new r}function h(t,i,r){this.sheet=t;this.value=null;this.formattedValue=null;this.computedValue=null;this.floatValue=null;this.affected=!1;this.processed=!1;this.dependencies={};this.dependant={};this.conditionalStyle=!1;this.address="";this.remoteDependency=!1;this.isCheckbox=!1;typeof i!="undefined"?this.el=n(i):(this.el=!1,this.address=typeof r!="undefined"?r:"");this.init()}function s(t,i,r){this.identifier=t;this.el=n(i);this.lang="en";this.cells={};this.variables={};this.config=n.extend({},c,r);this.counter=1;this.relatedSheet=!1;this.elementId=this.el.attr("id");this.dependant={};this.dependencies={};this.calculated=!1;this.calculating=!1;this.activeCell=null;this.totalCell=0;this.affectedCell=[];this.init()}var c,o;if(typeof n=="undefined")return!1;typeof Array.indexOf!="function"&&(Array.prototype.indexOf=function(n,t){for(var i=t||0;i<this.length;i++)if(this[i]==n)return i;return-1});typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=typeof"test".__proto__=="object"?function(n){return n.__proto__}:function(n){return n.constructor.prototype});c={autoCalculate:!0,autoCalculateTrigger:"blur",onBeforeCalculate:null,onAfterCalculate:null,onBeforeRender:null,onAfterRender:null,defaultFormat:!1,ajaxUrl:null,ajaxMethod:"get",graphHandler:"flot",checkCircularReference:!1,data:{}};var u={custom:{},date:{DATE:function(n,t,r){return typeof i=="undefined"?f.ERRKEY.momentRequired:typeof t=="undefined"?i(n):new Date(n,t-1,r)},DATEDIFF:function(n,t,r,u){return typeof i=="undefined"?f.ERRKEY.momentRequired:(u||(u=!1),i(t).diff(i.utc(n),r,u))},DATEFORMAT:function(n,t){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(n).format(t)},DATEVALUE:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:Math.ceil((i(n)-i("1900-1-1"))/864e5)+2},DAY:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).date()},DAYNAME:function(n){return f.DAY_NAME[u.date.WEEKDAY(n)-1]},DAYS:function(n,t){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).diff(i(new Date(t)),"days")},DAYS360:function(n,t,r){if(typeof i=="undefined")return f.ERRKEY.momentRequired;var o=i(new Date(n)),s=i(new Date(t)),h=31,c=31,u=o.date(),e=s.date();return r?(u=u===31?30:u,e=e===31?30:e):(o.month()===1&&(h=o.daysInMonth()),s.month()===1&&(c=s.daysInMonth()),u=u===h?30:u,(u===30||u===h)&&(e=e===c?30:e)),360*(s.year()-o.year())+30*(s.month()-o.month())+(e-u)},EDATE:function(n,t){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).add("months",t).toDate()},EOMONTH:function(n,t){if(typeof i=="undefined")return f.ERRKEY.momentRequired;var r=i(new Date(n)).add("months",t);return new Date(r.year(),r.month(),r.daysInMonth())},FROMNOW:function(n,t){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).fromNow(t)},HOUR:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:n<=1?Math.floor(24*n):i(new Date(n)).hours()},MINUTE:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:n<=1?Math.floor(1440*n)-60*Math.floor(24*n):i(new Date(n)).minutes()},ISOWEEKNUM:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).format("w")},MONTH:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).month()+1},NETWORKDAYS:function(n,t,i){return u.date.NETWORKDAYSINTL(n,t,1,i)},NETWORKDAYSINTL:function(n,t,r,u){var e,h;if(typeof i=="undefined")return f.ERRKEY.momentRequired;var y=typeof r=="undefined"?1:r,p=f.WEEKEND_TYPES[y],c=i(n),w=i(t),l=w.diff(c,"days")+1,s=l,a="",o=c,v=[];if(typeof u!="undefined")for(e=0;e<u.length;e++)v[e]=i(new Date(u[e])).format("MM-DD-YYYY");for(h=0;h<l;)a=o.format("d"),p.indexOf(parseInt(a,10))>=0?s--:v.indexOf(o.format("MM-DD-YYYY"))>=0&&s--,o=o.add("days",1),h++;return s},NOW:function(){return new Date},SECOND:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).seconds()},TIME:function(n,t,i){return(3600*n+60*t+i)/86400},TIMEVALUE:function(n){if(typeof i=="undefined")return f.ERRKEY.momentRequired;var t=i(new Date(n));return(3600*t.hours()+60*t.minutes()+t.seconds())/86400},TODAY:function(){return new Date},WEEKDAY:function(n,t){if(typeof i=="undefined")return f.ERRKEY.momentRequired;var r=i(new Date(n)).format("d"),u=typeof t=="undefined"?1:t;return f.WEEK_TYPES[u][r]},WEEKNUM:function(n,t){if(typeof i=="undefined")return f.ERRKEY.momentRequired;var o=i(new Date(n)),s=i(new Date(o.year(),0,1)),h=typeof t=="undefined"?1:t,r=f.WEEK_STARTS[h],e=s.format("d"),c=e<r?r-e+1:e-r;return h===21?u.date.ISOWEEKNUM(n):Math.floor(o.diff(s.subtract("days",c),"days")/7)+1},WORKDAY:function(n,t,i){return u.date.WORKDAYINTL(n,t,1,i)},WORKDAYINTL:function(n,t,r,u){var o,s;if(typeof i=="undefined")return f.ERRKEY.momentRequired;var l=typeof r=="undefined"?1:r,a=f.WEEKEND_TYPES[l],v=i(new Date(n)),e=v,h="",c=[];if(typeof u!="undefined")for(o=0;o<u.length;o++)c[o]=i(new Date(u[o])).format("MM-DD-YYYY");for(s=0;s<t;)e=e.add("days",1),h=e.format("d"),a.indexOf(parseInt(h,10))<0&&c.indexOf(e.format("MM-DD-YYYY"))<0&&s++;return e.toDate()},YEAR:function(n){return typeof i=="undefined"?f.ERRKEY.momentRequired:i(new Date(n)).year()},YEARFRAC:function(n,t,r){var u,e,y,v;if(typeof i=="undefined")return f.ERRKEY.momentRequired;if(r=typeof r=="undefined"?0:r,u=i(new Date(n)),e=i(new Date(t)),!u.isValid()||!e.isValid())return"#VALUE!";if([0,1,2,3,4].indexOf(r)===-1)return"#NUM!";if(u===e)return 0;u.diff(e)>0&&(e=i(new Date(n)),u=i(new Date(t)));var h=u.year(),l=u.month(),o=u.date(),c=e.year(),a=e.month(),s=e.date();switch(r){case 0:return o===31&&s===31?(o=30,s=30):o===31?o=30:o===30&&s===31?s=30:l===1&&a===1&&u.daysInMonth()===o&&e.daysInMonth()===s?(o=30,s=30):l===1&&u.daysInMonth()===o&&(o=30),(s+a*30+c*360-(o+l*30+h*360))/360;case 1:if(y=function(n,t){var u=i(new Date(n.year(),2,1)),r;return i([n.year()]).isLeapYear()&&n.diff(u)<0&&t.diff(u)>=0?!0:(r=i(new Date(t.year(),2,1)),i([t.year()]).isLeapYear()&&t.diff(r)>=0&&n.diff(r)<0)?!0:!1},v=365,h===c||h+1===c&&(l>a||l===a&&o>=s))return h===c&&i([h]).isLeapYear()?v=366:(y(u,e)||a===1&&s===29)&&(v=366),e.diff(u,"days")/v;var p=c-h+1,w=i(new Date(c+1,0,1)).diff(i(new Date(h,0,1)),"days"),b=w/p;return e.diff(u,"days")/b;case 2:return e.diff(u,"days")/360;case 3:return e.diff(u,"days")/365;case 4:return o===31&&(o=30),s===31&&(s=30),(s+a*30+c*360-(o+l*30+h*360))/360}}},math:{ABS:function(n){return Math.abs(n)},ACOS:function(n){return Math.acos(n)},ACOSH:function(n){return Math.log(n+Math.sqrt(n*n-1))},ACOT:function(n){return Math.atan(1/n)},ACOTH:function(n){return.5*Math.log((n+1)/(n-1))},AGGREGATE:function(n){for(var i=[],t=2;t<arguments.length;t++)switch(n){case 1:i[t-2]=u.statistic.AVERAGE(arguments[t]);break;case 2:i[t-2]=u.statistic.COUNT(arguments[t]);break;case 3:i[t-2]=u.statistic.COUNTA(arguments[t]);break;case 4:i[t-2]=u.statistic.MAX(arguments[t]);break;case 5:i[t-2]=u.statistic.MIN(arguments[t]);break;case 6:i[t-2]=u.statistic.PRODUCT(arguments[t]);break;case 7:i[t-2]=u.statistic.STDEVS(arguments[t]);break;case 8:i[t-2]=u.statistic.STDEVP(arguments[t]);break;case 9:i[t-2]=u.math.SUM(arguments[t]);break;case 10:i[t-2]=u.statistic.VARS(arguments[t]);break;case 11:i[t-2]=u.statistic.VARP(arguments[t]);break;case 12:i[t-2]=u.statistic.MEDIAN(arguments[t]);break;case 13:i[t-2]=u.statistic.MODESNGL(arguments[t]);break;case 14:i[t-2]=u.statistic.LARGE(arguments[t]);break;case 15:i[t-2]=u.statistic.SMALL(arguments[t]);break;case 16:i[t-2]=u.statistic.PERCENTILEINC(arguments[t]);break;case 17:i[t-2]=u.statistic.QUARTILEINC(arguments[t]);break;case 18:i[t-2]=u.statistic.PERCENTILEEXC(arguments[t]);break;case 19:i[t-2]=u.statistic.QUARTILEEXC(arguments[t])}return i},ARABIC:function(n){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(n))return"#VALUE!";var t=0;return n.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,function(n){t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[n]}),t},ASIN:function(n){return Math.asin(n)},ASINH:function(n){return Math.log(n+Math.sqrt(n*n+1))},ATAN:function(n){return Math.atan(n)},ATAN2:function(n,t){return Math.atan2(n,t)},ATANH:function(n){return Math.log((1+n)/(1-n))/2},BASE:function(n,t,i){i=typeof i=="undefined"?0:i;var r=n.toString(t);return new Array(Math.max(i+1-r.length,0)).join("0")+r},CEILING:function(n,t,i){if(t===0)return 0;t=typeof t=="undefined"?1:Math.abs(t);i=typeof i=="undefined"?0:i;var r=-Math.floor(Math.log(t)/Math.log(10));return n>=0?u.math.ROUND(Math.ceil(n/t)*t,r):i===0?-u.math.ROUND(Math.floor(Math.abs(n)/t)*t,r):-u.math.ROUND(Math.ceil(Math.abs(n)/t)*t,r)},CEILINGMATH:function(n,t,i){return u.math.CEILING(n,t,i)},CEILINGPRECISE:function(n,t,i){return u.math.CEILING(n,t,i)},COMBIN:function(n,t){return u.math.FACT(n)/(u.math.FACT(t)*u.math.FACT(n-t))},COMBINA:function(n,t){return n===0&&t===0?1:u.math.COMBIN(n+t-1,n-1)},COS:function(n){return Math.cos(n)},COSH:function(n){return(Math.exp(n)+Math.exp(-n))/2},COT:function(n){return 1/Math.tan(n)},COTH:function(n){var t=Math.exp(2*n);return(t+1)/(t-1)},CSC:function(n){return 1/Math.sin(n)},CSCH:function(n){return 2/(Math.exp(n)-Math.exp(-n))},DECIMAL:function(n,t){return parseInt(n,t)},DEGREES:function(n){return n*180/Math.PI},DIVIDE:function(n,t){return n===""||t===""?"":t==0?"#DIV/0":parseFloat(n)/parseFloat(t)},EVEN:function(n){return u.math.CEILING(n,-2,-1)},EXP:function(n){return Math.exp(n)},FACT:function(n){var t=Math.floor(n);return t===0||t===1?1:f.MEMOIZED_FACT[t]>0?f.MEMOIZED_FACT[t]:(f.MEMOIZED_FACT[t]=u.math.FACT(t-1)*t,f.MEMOIZED_FACT[t])},FACTDOUBLE:function(n){var t=Math.floor(n);return t<=0?1:t*u.math.FACTDOUBLE(t-2)},FLOOR:function(n,t,i){if(t===0)return 0;t=typeof t=="undefined"?1:Math.abs(t);i=typeof i=="undefined"?0:i;var r=-Math.floor(Math.log(t)/Math.log(10));return n>=0?u.math.ROUND(Math.floor(n/t)*t,r):i===0?-u.math.ROUND(Math.ceil(Math.abs(n)/t)*t,r):-u.math.ROUND(Math.floor(Math.abs(n)/t)*t,r)},FLOORMATH:function(n,t,i){return u.math.FLOOR(n,t,i)},FLOORPRECISE:function(n,t,i){return u.math.FLOOR(n,t,i)},GCD:function(){for(var r,t,i=arguments.length-1,n=arguments[i];i;)for(t=arguments[--i];r=t%n;t=n,n=r);return n},INT:function(n){return Math.floor(n)},ISEVEN:function(n){return Math.floor(Math.abs(n))&1?!1:!0},ISOCEILING:function(n,t,i){return u.math.CEILING(n,t,i)},ISODD:function(n){return Math.floor(Math.abs(n))&1?!0:!1},LCM:function(){for(var r=e.toArray(arguments),n,u,t,i,f=1;(t=r.pop())!==undefined;)while(t>1){if(t%2){for(n=3,u=Math.floor(Math.sqrt(t));n<=u&&t%n;n+=2);i=n<=u?n:t}else i=2;for(t/=i,f*=i,n=r.length;n;r[--n]%i==0&&(r[n]/=i)==1&&r.splice(n,1));}return f},LN:function(n){return Math.log(n)},LOG:function(n,t){return t=typeof t=="undefined"?10:t,Math.log(n)/Math.log(t)},LOG10:function(n){return Math.log(n)/Math.log(10)},MOD:function(n,t){var i=Math.abs(n%t);return t>0?i:-i},MROUND:function(n,t){if(n*t<0)throw new Error("Number and multiple must have the same sign.");return Math.round(n/t)*t},MULTINOMIAL:function(){for(var t=0,i=1,n=0;n<arguments.length;n++)t+=arguments[n],i*=u.math.FACT(arguments[n]);return u.math.FACT(t)/i},MULTIPLY:function(n,t){return n===""||t===""?"":(n=isNaN(parseFloat(n))?0:parseFloat(n),t=isNaN(parseFloat(t))?0:parseFloat(t),n*t)},ODD:function(n){var t=Math.ceil(Math.abs(n));return t=t&1?t:t+1,n>0?t:-t},PI:function(){return Math.PI},POWER:function(n,t){return Math.pow(n,t)},PRODUCT:function(){for(var t=1,n=0;n<arguments.length;n++)t*=arguments[n];return t},QUOTIENT:function(n,t){return(n/t).toFixed(0)},RADIANS:function(n){return n*Math.PI/180},RAND:function(){return Math.random()},RANDBETWEEN:function(n,t){return n+Math.ceil((t-n+1)*Math.random())-1},ROUND:function(n,t){return Math.round(n*Math.pow(10,t))/Math.pow(10,t)},ROUNDDOWN:function(n,t){var i=n>0?1:-1;return i*Math.floor(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)},ROUNDUP:function(n,t){var i=n>0?1:-1;return i*Math.ceil(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)},SERIESSUM:function(n,t,i,r){for(var f=r[0]*Math.pow(n,t),u=1;u<r.length;u++)f+=r[u]*Math.pow(n,t+u*i);return f},SEC:function(n){return 1/Math.cos(n)},SECH:function(n){return 2/(Math.exp(n)+Math.exp(-n))},SIGN:function(n){return n<0?-1:n===0?0:1},SIN:function(n){return Math.sin(n)},SINH:function(n){return(Math.exp(n)-Math.exp(-n))/2},SQRT:function(n){return Math.sqrt(n)},SQRTPI:function(n){return Math.sqrt(n*Math.PI)},SUBTOTAL:function(n){for(var i=[],t=1;t<arguments.length;t++)switch(n){case 1:i[t-1]=u.statistic.AVERAGE(arguments[t]);break;case 2:i[t-1]=u.statistic.COUNT(arguments[t]);break;case 3:i[t-1]=u.statistic.COUNTA(arguments[t]);break;case 4:i[t-1]=u.statistic.MAX(arguments[t]);break;case 5:i[t-1]=u.statistic.MIN(arguments[t]);break;case 6:i[t-1]=u.statistic.PRODUCT(arguments[t]);break;case 7:i[t-1]=u.statistic.STDEV(arguments[t]);break;case 8:i[t-1]=u.statistic.STDEVP(arguments[t]);break;case 9:i[t-1]=u.math.SUM(arguments[t]);break;case 10:i[t-1]=u.statistic.VAR(arguments[t]);break;case 11:i[t-1]=u.statistic.VARP(arguments[t])}return i},SUBTRACT:function(n,t){return n===""&&t===""?"":(n=isNaN(parseFloat(n))?0:parseFloat(n),t=isNaN(parseFloat(t))?0:parseFloat(t),n-t)},SUM:function(){for(var i,r,f="",u=0,t=0;t<arguments.length;t++)if(typeof arguments[t]=="object")for(i in arguments[t])f+=typeof arguments[t][i]!="undefined"?arguments[t][i]:"",r=isNaN(parseFloat(arguments[t][i],10))?0:parseFloat(arguments[t][i],10),u+=r;else f+=typeof arguments[t]!="undefined"?arguments[t]:"",r=isNaN(parseFloat(arguments[t],10))?0:parseFloat(arguments[t],10),u+=r;return u===0&&n.trim(f)===""?"":u},SUMIF:function(n,t,i){var u=0,r;for(n=e.objectToArray(n),i=typeof i=="undefined"?n:e.objectToArray(i),r=0;r<n.length;r++)this.evaluate(n[r]+t)&&(u+=i[r]);return u},SUMIFS:function(){for(var i,n,f,o,s=(arguments.length-1)/2,r=e.objectToArray(arguments[0]),u=0,t=0;t<r.length;t++){for(i=!0,n=0;n<s;n++)f=arguments[2*n+1],o=e.objectToArray(arguments[2*n+2]),i&&(i=this.evaluate(o[t]+f));u+=i?r[t]:0}return u},SUMPRODUCT:function(){var i,r,n,t;for(i in arguments)if(arguments[i]=e.objectToArray(arguments[i]),i>0&&arguments[i-1].length!==arguments[i].length)return"#VALUE!";for(r=[],n=0;n<arguments.length;n++)for(t=0;t<arguments[n].length;t++)r[t]=0==n?arguments[n][t]:u.math.MULTIPLY(r[t],arguments[n][t]);return u.math.SUM(r)},SUMSQ:function(){for(var i=e.toArray(arguments),r=0,t=0;t<i.length;t++)r+=n.isNumeric(i[t])?i[t]*i[t]:0;return r},SUMX2MY2:function(n,t){for(var r=0,i=0;i<n.length;i++)r+=n[i]*n[i]-t[i]*t[i];return r},SUMX2PY2:function(n,t){for(var r=0,i=0;i<n.length;i++)r+=n[i]*n[i]+t[i]*t[i];return r},SUMXMY2:function(n,t){for(var r=0,i=0;i<n.length;i++)r+=Math.pow(n[i]-t[i],2);return r},TAN:function(n){return Math.tan(n)},TANH:function(n){var t=Math.exp(2*n);return(t-1)/(t+1)},TRUNC:function(n,t){t=typeof t=="undefined"?0:t;var i=n>0?1:-1;return i*Math.floor(Math.abs(n)*Math.pow(10,t))/Math.pow(10,t)}},financial:{ACCRINT:function(n,t,r,f,e,o,s,h){if(typeof i=="undefined")return"#NAME?";if(!i(n).isValid()||!i(t).isValid()||!i(r).isValid())return"#VALUE!";if(f<=0||e<=0||[1,2,4].indexOf(o)===-1||[0,1,2,3,4].indexOf(s)===-1||i(n).diff(i(r))>=0)return"#NUM!";e=typeof e=="undefined"?0:e;s=typeof s=="undefined"?0:s;h=typeof h=="undefined"?!0:h;var c=0,l=i(new Date(n)),a=i(new Date(t)),v=i(new Date(r)),y=i([l.year()]).isLeapYear()?366:365;switch(s){case 0:c=u.date.YEARFRAC(n,r,s);break;case 1:c=u.date.YEARFRAC(n,r,s);break;case 2:c=u.date.YEARFRAC(n,r,s);break;case 3:c=u.date.YEARFRAC(n,r,s);break;case 4:c=u.date.YEARFRAC(n,r,s)}return e*f*c},ACCRINTM:function(){return},AMORDEGRC:function(){return},AMORLINC:function(){return},COUPDAYBS:function(){return},COUPDAYS:function(){return},COUPDAYSNC:function(){return},COUPNCD:function(){return},COUPNUM:function(){return},COUPPCD:function(){return},CUMIPMT:function(n,t,i,r,f,e){var s,h,o;if(n<=0||t<=0||i<=0||r<1||f<1||r>f||e!==0&&e!==1)return"#NUM!";for(s=u.financial.PMT(n,t,i,0,e),h=0,r===1&&e===0&&(h=-i,r++),o=r;o<=f;o++)h+=e===1?u.financial.FV(n,o-2,s,i,1)-s:u.financial.FV(n,o-1,s,i,0);return h*n},CUMPRINC:function(n,t,i,r,f,e){var o,h,s;if(n<=0||t<=0||i<=0||r<1||f<1||r>f||e!==0&&e!==1)return"#NUM!";for(o=u.financial.PMT(n,t,i,0,e),h=0,r===1&&(h=e===0?o+i*n:o,r++),s=r;s<=f;s++)h+=e>0?o-(u.financial.FV(n,s-2,o,i,1)-o)*n:o-u.financial.FV(n,s-1,o,i,0)*n;return h},DB:function(n,t,i,r,u){var s;if(u=typeof u=="undefined"?12:u,isNaN(n)||isNaN(t)||isNaN(i)||isNaN(r)||isNaN(u))return"#VALUE!";if(n<0||t<0||i<0||r<0||[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(u)===-1||r>i)return"#NUM!";if(t>=n)return 0;var f=(1-Math.pow(t/n,1/i)).toFixed(3),h=n*f*u/12,e=h,o=0,c=r===i?i-1:r;for(s=2;s<=c;s++)o=(n-e)*f,e+=o;return r===1?h:r===i?(n-e)*f:o},DDB:function(n,t,i,r,u){var f,e,o;if(u=typeof u=="undefined"?2:u,isNaN(n)||isNaN(t)||isNaN(i)||isNaN(r)||isNaN(u))return"#VALUE!";if(n<0||t<0||i<0||r<0||u<=0||r>i)return"#NUM!";if(t>=n)return 0;for(f=0,e=0,o=1;o<=r;o++)e=Math.min((n-f)*(u/i),n-t-f),f+=e;return e},DISC:function(){return},DOLLARDE:function(n,t){var i,r;return isNaN(n)||isNaN(t)?"#VALUE!":t<0?"#NUM!":t>=0&&t<1?"#DIV/0!":(t=parseInt(t,10),i=parseInt(n,10),i+=n%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t,r=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1),Math.round(i*r)/r)},DOLLARFR:function(n,t){if(isNaN(n)||isNaN(t))return"#VALUE!";if(t<0)return"#NUM!";if(t>=0&&t<1)return"#DIV/0!";t=parseInt(t,10);var i=parseInt(n,10);return i+n%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t},DURATION:function(){return},EFFECT:function(n,t){return isNaN(n)||isNaN(t)?"#VALUE!":n<=0||t<1?"#NUM!":(t=parseInt(t,10),Math.pow(1+n/t,t)-1)},FV:function(n,t,i,r,u){var e,f;return u=typeof u=="undefined"?0:u,n===0?e=r+i*t:(f=Math.pow(1+n,t),e=u===1?r*f+i*(1+n)*(f-1)/n:r*f+i*(f-1)/n),-e},FVSCHEDULE:function(n,t){for(var r=n,i=0;i<t.length;i++){if(isNaN(t[i]))return"#VALUE!";r*=1+t[i]}return r},INTRATE:function(){return},IPMT:function(n,t,i,r,f,e){e=typeof e=="undefined"?0:e;var o=u.financial.PMT(n,i,r,f,e),s;return s=t===1?e===1?0:-r:e===1?u.financial.FV(n,t-2,o,r,1)-o:u.financial.FV(n,t-1,o,r,0),s*n},IRR:function(n,t){var f,r=[],c,i;for(c in n)f=parseFloat(n[c],10),f=isNaN(f)?0:f,r.push(f);var p=function(n,t,i){for(var f=i+1,u=n[0],r=1;r<n.length;r++)u+=n[r]/Math.pow(f,(t[r]-t[0])/365);return u},w=function(n,t,i){for(var u,e=i+1,f=0,r=1;r<n.length;r++)u=(t[r]-t[0])/365,f-=u*n[r]/Math.pow(e,u+1);return f},e=[],l=!1,a=!1;for(i=0;i<r.length;i++)e[i]=i===0?0:e[i-1]+365,r[i]>0&&(l=!0),r[i]<0&&(a=!0);if(!l||!a)return"#NUM!";t=typeof t=="undefined"?.1:t;var u=t,v=1e-10,o,y,s,b=0,h=!0;do s=p(r,e,u),o=u-s/w(r,e,u),y=Math.abs(o-u),u=o,h=y>v&&Math.abs(s)>v;while(h&&++b<50);return h?"#NUM!":u},ISPMT:function(n,t,i,r){return r*n*(t/i-1)},MDURATION:function(){return},MIRR:function(n,t,i){var f=[],o,r,c,l;for(o in n)f.push(n[o]);var e=f.length,s=[],h=[];for(r=0;r<e;r++)f[r]<0?s.push(f[r]):h.push(f[r]);return c=-u.financial.NPV(i,h)*Math.pow(1+i,e-1),l=u.financial.NPV(t,s)*(1+t),Math.pow(c/l,1/(e-1))-1},NOMINAL:function(n,t){return isNaN(n)||isNaN(t)?"#VALUE!":n<=0||t<1?"#NUM!":(t=parseInt(t,10),(Math.pow(n+1,1/t)-1)*t)},NPER:function(n,t,i,r,u){u=typeof u=="undefined"?0:u;r=typeof r=="undefined"?0:r;var f=t*(1+n*u)-r*n,e=i*n+t*(1+n*u);return Math.log(f/e)/Math.log(1+n)},NPV:function(){for(var f,e,u,r,n,t=[],i=0;i<arguments.length;i++)if(typeof arguments[i]=="object")for(f in arguments[i])n=parseFloat(arguments[i][f],10),n=isNaN(n)?0:n,t=t.concat([n]);else n=parseFloat(arguments[i],10),n=isNaN(n)?0:n,t=t.concat([n]);for(e=t[0],u=0,r=1;r<t.length;r++)u+=t[r]/Math.pow(1+e,r);return u},ODDFPRICE:function(){return},ODDFYIELD:function(){return},ODDLPRICE:function(){return},ODDLYIELD:function(){return},PDURATION:function(n,t,i){return isNaN(n)||isNaN(t)||isNaN(i)?"#VALUE!":n<=0?"#NUM!":(Math.log(i)-Math.log(t))/Math.log(1+n)},PMT:function(n,t,i,r,u){var e,f;return u=typeof u=="undefined"?0:u,r=typeof r=="undefined"?0:r,n===0?e=(i+r)/t:(f=Math.pow(1+n,t),e=u===1?(r*n/(f-1)+i*n/(1-1/f))/(1+n):r*n/(f-1)+i*n/(1-1/f)),-e},PPMT:function(n,t,i,r,f,e){return u.financial.PMT(n,i,r,f,e)-u.financial.IPMT(n,t,i,r,f,e)},PRICE:function(){return},PRICEDISC:function(){return},PRICEMAT:function(){return},PV:function(n,t,i,r,u){return u=typeof u=="undefined"?0:u,r=typeof r=="undefined"?0:r,n===0?-i*t-r:((1-Math.pow(1+n,t))/n*i*(1+n*u)-r)/Math.pow(1+n,t)},RATE:function(n,t,i,r,u,f){f=typeof f=="undefined"?.01:f;r=typeof r=="undefined"?0:r;u=typeof u=="undefined"?0:u;var a=1e-10,h,c,s,v,l=0,o=0,y=0,e=f;for(Math.abs(e)<a?h=i*(1+n*e)+t*(1+e*u)*n+r:(o=Math.exp(n*Math.log(1+e)),h=i*o+t*(1/e+u)*(o-1)+r),c=i+t*n+r,s=i*o+t*(1/e+u)*(o-1)+r,y=v=0,l=e;Math.abs(c-s)>a&&y<50;)e=(s*v-c*l)/(s-c),v=l,l=e,Math.abs(e)<a?h=i*(1+n*e)+t*(1+e*u)*n+r:(o=Math.exp(n*Math.log(1+e)),h=i*o+t*(1/e+u)*(o-1)+r),c=s,s=h,++y;return e},RECEIVED:function(){return},RRI:function(n,t,i){return isNaN(n)||isNaN(t)||isNaN(i)?"#VALUE!":n===0||t===0?"#NUM!":Math.pow(i/t,1/n)-1},SLN:function(n,t,i){return isNaN(n)||isNaN(t)||isNaN(i)?"#VALUE!":i===0?"#NUM!":(n-t)/i},SYD:function(n,t,i,r){return isNaN(n)||isNaN(t)||isNaN(i)||isNaN(r)?"#VALUE!":i===0?"#NUM!":r<1||r>i?"#NUM!":(r=parseInt(r,10),(n-t)*(i-r+1)*2/(i*(i+1)))},TBILLEQ:function(n,t,r){return!i(n).isValid()||!i(t).isValid()?"#VALUE!":r<=0?"#NUM!":i(n).diff(i(t))>0?"#NUM!":i(t).diff(i(n),"years")>1?"#NUM!":365*r/(360-r*u.date.DAYS360(n,t))},TBILLPRICE:function(n,t,r){return!i(n).isValid()||!i(t).isValid()?"#VALUE!":r<=0?"#NUM!":i(n).diff(i(t))>0?"#NUM!":i(t).diff(i(n),"years")>1?"#NUM!":100*(1-r*u.date.DAYS360(n,t)/360)},TBILLYIELD:function(n,t,r){return!i(n).isValid()||!i(t).isValid()?"#VALUE!":r<=0?"#NUM!":i(n).diff(i(t))>0?"#NUM!":i(t).diff(i(n),"years")>1?"#NUM!":(100-r)*360/(r*u.date.DAYS360(n,t))},VDB:function(){return},XIRR:function(n,t,r){var u=[],c,e;for(c in n)u.push(n[c]);var p=function(n,t,r){for(var e=r+1,f=n[0],u=1;u<n.length;u++)f+=n[u]/Math.pow(e,i(t[u]).diff(i(t[0]),"days")/365);return f},w=function(n,t,r){for(var f,o=r+1,e=0,u=1;u<n.length;u++)f=i(t[u]).diff(i(t[0]),"days")/365,e-=f*n[u]/Math.pow(o,f+1);return e},l=!1,a=!1;for(e=0;e<u.length;e++)u[e]>0&&(l=!0),u[e]<0&&(a=!0);if(!l||!a)return"#NUM!";r=r||.1;var f=r,v=1e-10,o,y,s,b=0,h=!0;do s=p(u,t,f),o=f-s/w(u,t,f),y=Math.abs(o-f),f=o,h=y>v&&Math.abs(s)>v;while(h&&++b<50);return h?"#NUM!":f},XNPV:function(n,t,r){for(var f=0,u=0;u<t.length;u++)f+=t[u]/Math.pow(1+n,i(r[u]).diff(i(r[0]),"days")/365);return f},YIELD:function(){return},YIELDDISC:function(){return},YIELDMAT:function(){return}},statistic:{AVEDEV:function(){if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var n=e.arrayMerge(arguments);return r.sum(r(n).subtract(r.mean(n)).abs()[0])/n.length},AVERAGE:function(){for(var t=e.arrayMerge(arguments),f=t.length,r=0,u=0,i=0,n=0;n<f;n++)t[n]!==!0&&t[n]!==!1&&(i=parseFloat(t[n]),u+=isNaN(i)?0:i,r++);return u/r},AVERAGEA:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.mean(e.arrayMerge(arguments))},AVERAGEIF:function(n,t,i){var u,f,r;for(i=typeof i=="undefined"?n:i,u=0,f=0,r=0;r<n.length;r++)eval(n[r]+t)&&(f+=i[r],u++);return f/u},AVERAGEIFS:function(){for(var i,n,e=(arguments.length-1)/2,r=arguments[0],u=0,f=0,t=0;t<r.length;t++){for(i=!0,n=0;n<e;n++)eval(arguments[2*n+1][t]+arguments[2*n+2])||(i=!1);i&&(f+=r[t],u++)}return f/u},BETADIST:function(n,t,i,u,e,o){return typeof r=="undefined"?f.ERRKEY.jStatRequired:(e=typeof e=="undefined"?0:e,o=typeof o=="undefined"?1:o,n=(n-e)/(o-e),u?r.beta.cdf(n,t,i):r.beta.pdf(n,t,i))},BETAINV:function(n,t,i,u,e){return typeof r=="undefined"?f.ERRKEY.jStatRequired:(u=typeof u=="undefined"?0:u,e=typeof e=="undefined"?1:e,r.beta.inv(n,t,i)*(e-u)+u)},BINOMDIST:function(n,t,i,u){return typeof r=="undefined"?f.ERRKEY.jStatRequired:u?r.binomial.cdf(n,t,i):r.binomial.pdf(n,t,i)},BINOMDISTRANGE:function(n,t,i,r){var e,f;for(r=typeof r=="undefined"?i:r,e=0,f=i;f<=r;f++)e+=u.math.COMBIN(n,f)*Math.pow(t,f)*Math.pow(1-t,n-f);return e},BINOMINV:function(n,t,i){if(typeof r=="undefined")return f.ERRKEY.jStatRequired;for(var u=0;u<=n;){if(r.binomial.cdf(u,n,t)>=i)return u;u++}},CHISQDIST:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:i?r.chisquare.cdf(n,t):r.chisquare.pdf(n,t)},CHISQDISTRT:function(){return},CHISQINV:function(n,t){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.chisquare.inv(n,t)},CHISQINVRT:function(){return},CHISQTEST:function(){return},CONFIDENCENORM:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.normalci(1,n,t,i)[1]-1},CONFIDENCET:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.tci(1,n,t,i)[1]-1},CORREL:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.corrcoeff.apply(this,arguments)},COUNT:function(){return e.arrayMerge(arguments).length},COUNTA:function(){var n=e.arrayMerge(arguments);return n.length-u.statistic.COUNTBLANK(n)},COUNTBLANK:function(){for(var t=e.arrayMerge(arguments),i=0,n=0;n<t.length;n++)(t[n]===null||t[n]==="")&&i++;return i},COUNTIF:function(n,t){var i=0;for(var r in n)n[r].match(new RegExp(t))&&i++;return i},COUNTIFS:function(){var u=(arguments.length-1)/2,f=arguments[0],i=0,r,t,n;for(r in f){for(t=!0,n=0;n<u;n++)eval(arguments[2*n+1][r]+arguments[2*n+2])||(t=!1);i+=t?1:0}return i},COUNTUNIQUE:function(){return e.unique(e.arrayMerge(arguments)).length},COVARIANCEP:function(n,t){var i;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var o=r.mean(n),s=r.mean(t),u=0,e=n.length;for(i=0;i<e;i++)u+=(n[i]-o)*(t[i]-s);return u/e},COVARIANCES:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.covariance.apply(this,arguments)},DEVSQ:function(){var n;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),u=r.mean(t),i=0;for(n=0;n<t.length;n++)i+=Math.pow(t[n]-u,2);return i},EXPONDIST:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:i?r.exponential.cdf(n,t):r.exponential.pdf(n,t)},FDIST:function(n,t,i,u){return typeof r=="undefined"?f.ERRKEY.jStatRequired:u?r.centralF.cdf(n,t,i):r.centralF.pdf(n,t,i)},FDISTRT:function(){return},FINV:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.centralF.inv(n,t,i)},FINVRT:function(){return},FTEST:function(){return},FISHER:function(n){return Math.log((1+n)/(1-n))/2},FISHERINV:function(n){var t=Math.exp(2*n);return(t-1)/(t+1)},FORECAST:function(n,t,i){var u,o,l;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var e=r.mean(i),s=r.mean(t),a=i.length,h=0,c=0;for(u=0;u<a;u++)h+=(i[u]-e)*(t[u]-s),c+=Math.pow(i[u]-e,2);return o=h/c,l=s-o*e,l+o*n},FREQUENCY:function(n,t){for(var r,e=n.length,u=t.length,f=[],i=0;i<=u;i++)for(f[i]=0,r=0;r<e;r++)i===0?n[r]<=t[0]&&(f[0]+=1):i<u?n[r]>t[i-1]&&n[r]<=t[i]&&(f[i]+=1):i===u&&n[r]>t[u-1]&&(f[u]+=1);return f},GAMMA:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.gammafn.apply(this,arguments)},GAMMADIST:function(){return},GAMMAINV:function(){return},GAMMALN:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.gammaln.apply(this,arguments)},GAMMALNPRECISE:function(){return},GAUSS:function(n){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.normal.cdf(n,0,1)-.5},GEOMEAN:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.geomean(e.arrayMerge(arguments))},GROWTH:function(n,t,i,r){var u,o,a,l,v,y;if(typeof t=="undefined")for(t=[],u=1;u<=n.length;u++)t.push(u);if(typeof i=="undefined")for(i=[],u=1;u<=n.length;u++)i.push(u);typeof r=="undefined"&&(r=!0);var e=n.length,f=0,s=0,h=0,c=0;for(u=0;u<e;u++)o=t[u],a=Math.log(n[u]),f+=o,s+=a,h+=o*a,c+=o*o;for(f/=e,s/=e,h/=e,c/=e,r?(l=(h-f*s)/(c-f*f),v=s-l*f):(l=h/c,v=0),y=[],u=0;u<i.length;u++)y.push(Math.exp(v+l*i[u]));return y},HARMEAN:function(){for(var t=e.arrayMerge(arguments),i=t.length,r=0,n=0;n<i;n++)r+=1/t[n];return i/r},HYPGEOMDIST:function(n,t,i,r,f){function e(n,t,i,r){return u.math.COMBIN(i,n)*u.math.COMBIN(r-i,t-n)/u.math.COMBIN(r,t)}function o(n,t,i,r){for(var f=0,u=0;u<=n;u++)f+=e(u,t,i,r);return f}return f?o(n,t,i,r):e(n,t,i,r)},INTERCEPT:function(n,t){return u.statistic.FORECAST(0,n,t)},KURT:function(){var u;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),o=r.mean(t),n=t.length,i=0;for(u=0;u<n;u++)i+=Math.pow(t[u]-o,4);return i=i/Math.pow(r.stdev(t,!0),4),n*(n+1)/((n-1)*(n-2)*(n-3))*i-3*(n-1)*(n-1)/((n-2)*(n-3))},LARGE:function(n,t){return n=e.objectToArray(n),n.sort(function(n,t){return t-n})[t-1]},LINEST:function(n,t){var i,e,c;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var u=r.mean(t),o=r.mean(n),l=t.length,s=0,h=0;for(i=0;i<l;i++)s+=(t[i]-u)*(n[i]-o),h+=Math.pow(t[i]-u,2);return e=s/h,c=o-e*u,[e,c]},LOGEST:function(){return},LOGNORMDIST:function(n,t,i,u){return typeof r=="undefined"?f.ERRKEY.jStatRequired:u?r.lognormal.cdf(n,t,i):r.lognormal.pdf(n,t,i)},LOGNORMINV:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.lognormal.inv(n,t,i)},MAX:function(){for(var n=e.arrayMerge(arguments),r=n.length,i=r>0?n[0]:0,t=0;t<r;t++)i=n[t]>i&&n[t]!==!0&&n[t]!==!1?n[t]:i;return i},MAXA:function(){var n=e.arrayMerge(arguments);return n.length>0?Math.max.apply(Math,n):0},MEDIAN:function(){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.median(e.arrayMerge(arguments))},MIN:function(){for(var n=e.arrayMerge(arguments),r=n.length,i=r>0?n[0]:0,t=0;t<r;t++)i=n[t]<i&&n[t]!==!0&&n[t]!==!1?n[t]:i;return i},MINA:function(){var n=e.arrayMerge(arguments);return n.length>0?Math.min.apply(Math,n):0},MODEMULT:function(){for(var f=e.arrayMerge(arguments),o=f.length,t={},i=[],r=0,n,u=0;u<o;u++)n=f[u],t[n]=t[n]?t[n]+1:1,t[n]>r&&(r=t[n],i=[]),t[n]===r&&(i[i.length]=n);return i},MODESNGL:function(){return u.statistic.MODEMULT(e.arrayMerge(arguments)).sort(function(n,t){return n-t})[0]},NEGBINOMDIST:function(n,t,i,u){return typeof r=="undefined"?f.ERRKEY.jStatRequired:u?r.negbin.cdf(n,t,i):r.negbin.pdf(n,t,i)},NORMDIST:function(n,t,i,u){return typeof r=="undefined"?f.ERRKEY.jStatRequired:isNaN(n)||isNaN(t)||isNaN(i)?"#VALUE!":i<=0?"#NUM!":u?r.normal.cdf(n,t,i):r.normal.pdf(n,t,i)},NORMINV:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.normal.inv(n,t,i)},NORMSDIST:function(n,t){return typeof r=="undefined"?f.ERRKEY.jStatRequired:t?r.normal.cdf(n,0,1):r.normal.pdf(n,0,1)},NORMSINV:function(n){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.normal.inv(n,0,1)},PEARSON:function(n,t){var i;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var u=r.mean(n),e=r.mean(t),c=n.length,o=0,s=0,h=0;for(i=0;i<c;i++)o+=(n[i]-u)*(t[i]-e),s+=Math.pow(n[i]-u,2),h+=Math.pow(t[i]-e,2);return o/Math.sqrt(s*h)},PERCENTILEEXC:function(n,t){var u,r,i;return(n=n.sort(function(n,t){return n-t}),u=n.length,t<1/(u+1)||t>1-1/(u+1))?"#NUM!":(r=t*(u+1)-1,i=Math.floor(r),e.cleanFloat(r===i?n[r]:n[i]+(r-i)*(n[i+1]-n[i])))},PERCENTILEINC:function(n,t){n=n.sort(function(n,t){return n-t});var u=n.length,r=t*(u-1),i=Math.floor(r);return e.cleanFloat(r===i?n[r]:n[i]+(r-i)*(n[i+1]-n[i]))},PERCENTRANKEXC:function(n,t,i){n=n.sort(function(n,t){return n-t});var u=e.unique(n),s=n.length,h=u.length;i=typeof i=="undefined"?3:i;for(var c=Math.pow(10,i),f=0,o=!1,r=0;!o&&r<h;)t===u[r]?(f=(n.indexOf(u[r])+1)/(s+1),o=!0):t>=u[r]&&(t<u[r+1]||r===h-1)&&(f=(n.indexOf(u[r])+1+(t-u[r])/(u[r+1]-u[r]))/(s+1),o=!0),r++;return Math.floor(f*c)/c},PERCENTRANKINC:function(n,t,i){n=n.sort(function(n,t){return n-t});var u=e.unique(n),s=n.length,h=u.length;i=typeof i=="undefined"?3:i;for(var c=Math.pow(10,i),f=0,o=!1,r=0;!o&&r<h;)t===u[r]?(f=n.indexOf(u[r])/(s-1),o=!0):t>=u[r]&&(t<u[r+1]||r===h-1)&&(f=(n.indexOf(u[r])+(t-u[r])/(u[r+1]-u[r]))/(s-1),o=!0),r++;return Math.floor(f*c)/c},PERMUT:function(n,t){return u.math.FACT(n)/u.math.FACT(n-t)},PERMUTATIONA:function(n,t){return Math.pow(n,t)},PHI:function(n){return Math.exp(-.5*n*n)/f.SQRT2PI},POISSONDIST:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:i?r.poisson.cdf(n,t):r.poisson.pdf(n,t)},PROB:function(n,t,i,r){var u;if(typeof i=="undefined")return 0;if(r=typeof r=="undefined"?i:r,i===r)return n.indexOf(i)>=0?t[n.indexOf(i)]:0;var f=n.sort(function(n,t){return n-t}),o=f.length,e=0;for(u=0;u<o;u++)f[u]>=i&&f[u]<=r&&(e+=t[n.indexOf(f[u])]);return e},QUARTILEEXC:function(n,t){switch(t){case 1:return u.statistic.PERCENTILEEXC(n,.25);case 2:return u.statistic.PERCENTILEEXC(n,.5);case 3:return u.statistic.PERCENTILEEXC(n,.75);default:return"#NUM!"}},QUARTILEINC:function(n,t){switch(t){case 1:return u.statistic.PERCENTILEINC(n,.25);case 2:return u.statistic.PERCENTILEINC(n,.5);case 3:return u.statistic.PERCENTILEINC(n,.75);default:return"#NUM!"}},RANKAVG:function(n,t,i){var u,r;return i=typeof i=="undefined"?!1:i,u=i?function(n,t){return n-t}:function(n,t){return t-n},t=t.sort(u),r=e.countIn(t,n),r>1?(2*t.indexOf(n)+r+1)/2:t.indexOf(n)+1},RANKEQ:function(n,t,i){i=typeof i=="undefined"?!1:i;var r=i?function(n,t){return n-t}:function(n,t){return t-n};return t=t.sort(r),t.indexOf(n)+1},RSQ:function(n,t){return Math.pow(u.statistic.PEARSON(n,t),2)},SKEW:function(){var i;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var n=e.arrayMerge(arguments),o=r.mean(n),t=n.length,u=0;for(i=0;i<t;i++)u+=Math.pow(n[i]-o,3);return t*u/((t-1)*(t-2)*Math.pow(r.stdev(n,!0),3))},SKEWP:function(){var n;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),s=r.mean(t),o=t.length,i=0,u=0;for(n=0;n<o;n++)u+=Math.pow(t[n]-s,3),i+=Math.pow(t[n]-s,2);return u=u/o,i=i/o,u/Math.pow(i,3/2)},SLOPE:function(n,t){var i;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var u=r.mean(t),s=r.mean(n),h=t.length,e=0,o=0;for(i=0;i<h;i++)e+=(t[i]-u)*(n[i]-s),o+=Math.pow(t[i]-u,2);return e/o},SMALL:function(n,t){return n.sort(function(n,t){return n-t})[t-1]},STANDARDIZE:function(n,t,i){return(n-t)/i},STDEVA:function(){for(var n=e.arrayMerge(arguments),i=n.length,u=0,f=r.mean(n),t=0;t<i;t++)u+=Math.pow(n[t]-f,2);return Math.sqrt(u/(i-1))},STDEVP:function(){for(var n=e.arrayMerge(arguments),f=n.length,i=0,r=0,o=u.statistic.AVERAGE(n),t=0;t<f;t++)n[t]!==!0&&n[t]!==!1&&(i+=Math.pow(n[t]-o,2),r++);return Math.sqrt(i/r)},STDEVPA:function(){var n;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),i=t.length,u=0,o=r.mean(t);for(n=0;n<i;n++)u+=Math.pow(t[n]-o,2);return Math.sqrt(u/i)},STDEVS:function(){for(var n=e.arrayMerge(arguments),f=n.length,i=0,r=0,o=u.statistic.AVERAGE(n),t=0;t<f;t++)n[t]!==!0&&n[t]!==!1&&(i+=Math.pow(n[t]-o,2),r++);return Math.sqrt(i/(r-1))},STEYX:function(n,t){var i;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var e=r.mean(t),o=r.mean(n),s=t.length,h=0,u=0,c=0;for(i=0;i<s;i++)h+=Math.pow(n[i]-o,2),u+=(t[i]-e)*(n[i]-o),c+=Math.pow(t[i]-e,2);return Math.sqrt((h-u*u/c)/(s-2))},TDIST:function(n,t,i){return typeof r=="undefined"?f.ERRKEY.jStatRequired:i?r.studentt.cdf(n,t):r.studentt.pdf(n,t)},TDIST2T:function(){return},TDISTRT:function(){return},TINV:function(n,t){return typeof r=="undefined"?f.ERRKEY.jStatRequired:r.studentt.inv(n,t)},TINV2T:function(){return},TTEST:function(){return},TREND:function(){return},TRIMMEAN:function(n,t){if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var o=n.length,i=u.math.FLOOR(n.length*t,2)/2;return r.mean(e.initial(e.rest(n.sort(function(n,t){return n-t}),i),i))},VARA:function(){var n;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),i=t.length,u=0,o=r.mean(t);for(n=0;n<i;n++)u+=Math.pow(t[n]-o,2);return u/(i-1)},VARP:function(){for(var n=e.arrayMerge(arguments),f=n.length,i=0,r=0,o=u.statistic.AVERAGE(n),t=0;t<f;t++)n[t]!==!0&&n[t]!==!1&&(i+=Math.pow(n[t]-o,2),r++);return i/r},VARPA:function(){var n;if(typeof r=="undefined")return f.ERRKEY.jStatRequired;var t=e.arrayMerge(arguments),i=t.length,u=0,o=r.mean(t);for(n=0;n<i;n++)u+=Math.pow(t[n]-o,2);return u/i},VARS:function(){for(var n=e.arrayMerge(arguments),f=n.length,i=0,r=0,o=u.statistic.AVERAGE(n),t=0;t<f;t++)n[t]!==!0&&n[t]!==!1&&(i+=Math.pow(n[t]-o,2),r++);return i/(r-1)},WEIBULLDIST:function(n,t,i,r){return r?1-Math.exp(-Math.pow(n/i,t)):Math.pow(n,t-1)*Math.exp(-Math.pow(n/i,t))*t/Math.pow(i,t)},ZTEST:function(n,t,i){var r=n.length,f=typeof i=="undefined"?u.statistic.STDEVS(n):i;return 1-u.statistic.NORMSDIST((u.statistic.AVERAGE(n)-t)/(f/Math.sqrt(r)),u.logical.TRUE)}},logical:{AND:function(){for(var t=!0,n=0;n<arguments.length;n++)arguments[n]||(t=!1);return t},CHOOSE:function(){var n=arguments[0];return typeof arguments[n]=="undefined"?"#NUM!":arguments[n]},FALSE:function(){return!1},IF:function(n,t,i){return n?typeof t=="undefined"?!0:t:typeof i=="undefined"?!0:i},IFERROR:function(n,t){return f.ERROR.indexOf(n)>=0?t:n},IFNA:function(n,t){return n==="#N/A"?t:n},NOT:function(n){return!n},OR:function(){for(var t=!1,n=0;n<arguments.length;n++)arguments[n]&&(t=!0);return t},SWITCH:function(){var t,n;if(arguments.length>0){var e=arguments[0],i=arguments.length-1,r=Math.floor(i/2),u=!1,f=i%2==0?null:arguments[arguments.length-1];if(r)for(n=0;n<r;n++)if(e==arguments[n*2+1]){t=arguments[n*2+2];u=!0;break}!u&&f&&(t=f)}return t},TRUE:function(){return!0},XOR:function(){for(var t=0,n=0;n<arguments.length;n++)arguments[n]&&t++;return Math.floor(Math.abs(t))&1?!0:!1},NULL:function(){return null}},geometry:{},text:{CONCAT:function(){var t="";for(var n in arguments)t+=typeof arguments[n]=="object"?u.text.CONCAT.apply(this,arguments[n]):arguments[n];return t},CHAR:function(n){return String.fromCharCode(n)},CLEAN:function(n){return n.replace(/[\0-\x1F]/g,"")},CODE:function(n){return n.charCodeAt(0)},CONCATENATE:function(){for(var t="",n=0;n<arguments.length;n++)arguments[n]!==null&&arguments[n]!==undefined&&(t+=arguments[n]);return t},DOLLAR:function(n,i){if(typeof t=="undefined")return"#NAME?";i=typeof i=="undefined"?2:i;var r="";return i<=0?(n=Math.round(n*Math.pow(10,i))/Math.pow(10,i),r="($0,0)"):i>0&&(r="($0,0."+new Array(i+1).join("0")+")"),t(n).format(r)},EXACT:function(n,t){return n===t},FIND:function(n,t,i){return i=typeof i=="undefined"?0:i,t?t.indexOf(n,i-1)+1:null},FIXED:function(n,i,r){if(typeof t=="undefined")return"#NAME?";i=typeof i=="undefined"?2:i;r=typeof r=="undefined"?!1:r;var u=r?"0":"0,0";return i<=0?n=Math.round(n*Math.pow(10,i))/Math.pow(10,i):i>0&&(u+="."+new Array(i+1).join("0")),t(n).format(u)},HTML2TEXT:function(n){var t="";return n&&(n instanceof Array?n.forEach(function(n){t!==""&&(t+="\n");t+=n.replace(/<(?:.|\n)*?>/gm,"")}):t=n.replace(/<(?:.|\n)*?>/gm,"")),t},HUMANIZE:function(n){if(n instanceof Date){var t=i(n);return t.hours()||t.minutes()||t.seconds()?t.format("dddd, MMMM Do YYYY, h:mm:ss"):t.format("dddd, MMMM Do YYYY")}return n},JOIN:function(n,t){return n.join(t)},LEFT:function(n,t){return t=typeof t=="undefined"?1:t,n?n.substring(0,t):null},LEN:function(n){return(n+"").length},LOWER:function(n){return n?n.toLowerCase():n},MID:function(n,t,i){return n.substring(t-1,i)},NUMBERVALUE:function(n,t,i){return t=typeof t=="undefined"?".":t,i=typeof i=="undefined"?",":i,Number(n.replace(t,".").replace(i,""))},PROPER:function(n){return n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})},REGEXEXTRACT:function(n,t){var i=n.match(new RegExp(t));return i?i[0]:null},REGEXMATCH:function(n,t,i){var r=n.match(new RegExp(t));return i?r:n.match(new RegExp(t))?!0:!1},REGEXREPLACE:function(n,t,i){return n.replace(new RegExp(t),i)},REPLACE:function(n,t,i,r){return n.substr(0,t-1)+r+n.substr(t-1+i)},REPT:function(n,t){return new Array(t+1).join(n)},RIGHT:function(n,t){return t=typeof t=="undefined"?1:t,n?n.substring(n.length-t):null},ROMAN:function(n){for(var i=String(n).split(""),u=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],t="",r=3;r--;)t=(u[+i.pop()+r*10]||"")+t;return new Array(+i.join("")+1).join("M")+t},SEARCH:function(n,t,i){return i=typeof i=="undefined"?0:i,t.toLowerCase().indexOf(n.toLowerCase(),i-1)+1},SPLIT:function(t,i){return t=n.trim(t),(typeof i=="undefined"||i===null)&&(i=/\s+/),t.split(i)},SUBSTITUTE:function(n,t,i,r){if(n&&t&&i!==null&&typeof i!="undefined"){if(typeof r=="undefined")return n.replace(new RegExp(t,"g"),i);for(var u=0,f=0;n.indexOf(t,u)>0;)if(u=n.indexOf(t,u+1),f++,f===r)return n.substring(0,u)+i+n.substring(u+t.length)}else return n},T:function(n){return typeof n=="string"?n:null},TEXT:function(n,r){if(typeof t=="undefined")return"#NAME?";var u="";if(n)if(n instanceof Object)try{u=JSON.stringify(n)}catch(f){}else typeof n=="string"?u=r?r.indexOf("0")>=0?t(n).format(r):i(new Date(n)).format(r):n:n.toString&&typeof n.toString=="function"&&(u=n.toString());return u},TRIM:function(t){return n.trim(t)},UNICHAR:function(n){return u.text.CHAR(n)},UNICODE:function(n){return u.text.CODE(n)},UPPER:function(n){return n.toUpperCase()},VALUE:function(n){return typeof t=="undefined"?"#NAME?":t().unformat(n)}},trigonometry:{},general:{VLOOKUP:function(n,t,i,r){var u,c,a,f,s,v,l,o;if(typeof(t=="object")&&t.constructor.name=="Object"&&(t=e.rangeToTable(t)),c=t.length,a=t[0].length,i=i-1,r=typeof r=="undefined"?!1:r,i>a-1)return"#REF!";if(i<0)return"#VALUE!";if(!1==r){for(u=0;u<c;u++)if(n==t[u][0])return t[u][i];return"#N/A!"}for(f={},u=0;u<c;u++){if(n==t[u][0])return t[u][i];l=t[u][0]-n;l<0&&(f[u]=l)}var v=f.length,s=null,h=null;for(o in f)s==null?(s=f[o],h=o):(s=s>f[o]?s:f[o],h=s>f[o]?h:o);return h==null?"#N/A!":t[h][i]},HLOOKUP:function(n,t,i,r){return typeof(t=="object")&&(t=e.rangeToTable(t)),t=e.transposeTable(t),u.general.VLOOKUP(n,t,i,r)},LOOKUP:function(n,t,i){var r,o,l,u=[],s,f,h,c;if(i=typeof i=="undefined"?!1:i,typeof(t=="object")&&t.constructor.name=="Object"&&(t=e.objectToArray(t),o=t.length),typeof(i=="object")&&i.constructor.name=="Object"&&(i=e.objectToArray(i),l=i.length),n<Math.min.apply(Math,t))return"#N/A!";for(r=0;r<o;r++){if(n==t[r])return i?i[r]:t[r];u[r]=n-t[r]}for(s=u.length,h=Math.max.apply(Math,u),f=0;f<s;f++)u[f]<0&&(u[f]=h);return c=Math.min.apply(Math,u),r=u.indexOf(c),i?i[r]:t[r]},SERVER:function(){var r,u,i,t;if(this.config.ajaxUrl==null)return f.ERRKEY.ajaxUrlRequired;for(u=arguments[0],i={},t=1;t<arguments.length;t++)i["params["+t+"]"]=arguments[t];return i["function"]=u,n.ajax({url:this.config.ajaxUrl,method:this.config.ajaxMethod,data:i,"async":!1,success:function(n){r=n},error:function(){r=f.ERRKEY.sendRequestError}}),r},GRAPH:function(t,i){for(var y,l,s,o,t,c,r={},h=this.getActiveCell().el,f={},i=typeof i=="undefined"?[]:i,a,u,v=0;v<i.length;v++)a=i[v].split("="),r[a[0]]=a[1];h.height()||h.css("height","300px");h.width||h.css("width","300px");switch(r.type){case"bar":u=e.rangeToTable(t);typeof(r.reverse!="undefined")&&r.reverse=="true"&&u.reverse();f.series={bars:{show:!0,barWidth:.6,align:"center"},stack:!0};typeof r.bar_orientation!="undefined"&&r.bar_orientation=="horizontal"&&(f.series.bars.horizontal=!0);break;case"pie":u=e.objectToArray(t);f.series={pie:{show:!0,radius:.8}};f.legend={show:!1};break;case"doughnut":case"donut":u=e.objectToArray(t);f.series={pie:{show:!0,innerRadius:.5,radius:.8}};f.legend={show:!1};break;default:u=e.rangeToTable(t);typeof(r.reverse!="undefined")&&r.reverse=="true"&&u.reverse()}if(typeof r.orientation!="undefined"&&r.orientation=="vertical"&&(u=e.transposeTable(u)),typeof r.label!="undefined"){for(var p=this.evaluate(r.label),p=e.objectToArray(p),y=u.length,l,o,t,s=0;s<y;s++)for(l=u[s].length,o=0;o<l;o++)t=u[s][o],u[s][o]=[p[o],t];f.xaxis={mode:"categories",tickLength:0}}else for(y=u.length,s=0;s<y;s++)for(l=u[s].length,o=0;o<l;o++)t=u[s][o],u[s][o]=typeof r.bar_orientation!="undefined"&&r.bar_orientation=="horizontal"?[t,o]:[o,t];if(typeof r.legend!="undefined"){var w=this.evaluate(r.legend),w=e.objectToArray(w),b=[];for(c=0;c<u.length;c++)b.push({label:w[c],data:u[c]});u=b}return typeof r.show_x_axis!="undefined"&&r.show_x_axis=="false"&&(f.xaxis=f.xaxis||{},f.xaxis.show=!1),typeof r.show_y_axis!="undefined"&&r.show_y_axis=="false"&&(f.yaxis=f.yaxis||{},f.yaxis.show=!1),f.grid={backgroundColor:{colors:["#fff","#eee"]},borderWidth:{top:0,right:0,bottom:0,left:0}},setTimeout(function(){n.plot(h,u,f)},100),!1}},engineering:{BIN2DEC:function(n){if(!e.isValidBinary(n))return"#NUM!";var i=parseInt(n,2),t=n.toString();return t.length===10&&t.substring(0,1)==="1"?parseInt(t.substring(1),2)-512:i},BIN2HEX:function(n,t){var r,i;return e.isValidBinary(n)?(r=n.toString(),r.length===10&&r.substring(0,1)==="1")?(0xfffffffe00+parseInt(r.substring(1),2)).toString(16):(i=parseInt(n,2).toString(16),typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")):"#NUM!"},BIN2OCT:function(n,t){var r,i;return e.isValidBinary(n)?(r=n.toString(),r.length===10&&r.substring(0,1)==="1")?(1073741312+parseInt(r.substring(1),2)).toString(8):(i=parseInt(n,2).toString(8),typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")):"#NUM!"},BITAND:function(n,t){return(n=parseFloat(n,10),t=parseFloat(t,10),isNaN(n)||isNaN(t))?"#VALUE!":n<0||t<0?"#NUM!":Math.floor(n)!==n||Math.floor(t)!==t?"#NUM!":n>0xffffffffffff||t>0xffffffffffff?"#NUM!":n&t},BITLSHIFT:function(n,t){return(n=parseFloat(n,10),t=parseFloat(t,10),isNaN(n)||isNaN(t))?"#VALUE!":n<0?"#NUM!":Math.floor(n)!==n?"#NUM!":n>0xffffffffffff?"#NUM!":Math.abs(t)>53?"#NUM!":t>=0?n<<t:n>>-t},BITOR:function(n,t){return(n=parseFloat(n,10),t=parseFloat(t,10),isNaN(n)||isNaN(t))?"#VALUE!":n<0||t<0?"#NUM!":Math.floor(n)!==n||Math.floor(t)!==t?"#NUM!":n>0xffffffffffff||t>0xffffffffffff?"#NUM!":n|t},BITRSHIFT:function(n,t){return(n=parseFloat(n,10),t=parseFloat(t,10),isNaN(n)||isNaN(t))?"#VALUE!":n<0?"#NUM!":Math.floor(n)!==n?"#NUM!":n>0xffffffffffff?"#NUM!":Math.abs(t)>53?"#NUM!":t>=0?n>>t:n<<-t},BITXOR:function(n,t){return(n=parseFloat(n,10),t=parseFloat(t,10),isNaN(n)||isNaN(t))?"#VALUE!":n<0||t<0?"#NUM!":Math.floor(n)!==n||Math.floor(t)!==t?"#NUM!":n>0xffffffffffff||t>0xffffffffffff?"#NUM!":n^t},COMPLEX:function(n,t,i){if(isNaN(n)||isNaN(t)||(i=typeof i=="undefined"?"i":i,i!=="i"&&i!=="j"))return"#VALUE!";if(n===0&&t===0)return 0;if(n===0)return t===1?i:t.toString()+i;if(t===0)return n.toString();var r=t>0?"+":"";return n.toString()+r+(t===1?i:t.toString()+i)},CONVERT:function(n,t,i){var u,w,a,e,b,v,o;if(isNaN(n))return"#VALUE!";var r=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,758660370370369e-22],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,30856775814671900],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,.0001],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,.00064516],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,.0001],["stokes","St",null,"kinematic_viscosity",!1,!1,.0001],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],k={Yi:["yobi",80,1208925819614629174706176,"Yi","yotta"],Zi:["zebi",70,1180591620717411303424,"Zi","zetta"],Ei:["exbi",60,1152921504606846976,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},d={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},s=null,h=null,c=t,l=i,y=1,p=1,f;for(u=0;u<r.length;u++)f=r[u][2]===null?[]:r[u][2],(r[u][1]===c||f.indexOf(c)>=0)&&(s=r[u]),(r[u][1]===l||f.indexOf(l)>=0)&&(h=r[u]);if(s===null)for(w=k[t.substring(0,2)],a=d[t.substring(0,1)],t.substring(0,2)==="da"&&(a=["dekao",10,"da"]),w?(y=w[2],c=t.substring(2)):a&&(y=a[1],c=t.substring(a[2].length)),e=0;e<r.length;e++)f=r[e][2]===null?[]:r[e][2],(r[e][1]===c||f.indexOf(c)>=0)&&(s=r[e]);if(h===null)for(b=k[i.substring(0,2)],v=d[i.substring(0,1)],i.substring(0,2)==="da"&&(v=["dekao",10,"da"]),b?(p=b[2],l=i.substring(2)):v&&(p=v[1],l=i.substring(v[2].length)),o=0;o<r.length;o++)f=r[o][2]===null?[]:r[o][2],(r[o][1]===l||f.indexOf(l)>=0)&&(h=r[o]);return s===null||h===null?"#N/A":s[3]!==h[3]?"#N/A":n*s[6]*y/(h[6]*p)},DEC2BIN:function(n,t){if(isNaN(n))return"#VALUE!";if(!/^-?[0-9]{1,3}$/.test(n)||n<-512||n>511)return"#NUM!";if(n<0)return"1"+e.repeat("0",9-(512+n).toString(2).length)+(512+n).toString(2);var i=parseInt(n,10).toString(2);return typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")},DEC2HEX:function(n,t){if(isNaN(n))return"#VALUE!";if(!/^-?[0-9]{1,12}$/.test(n)||n<-549755813888||n>549755813887)return"#NUM!";if(n<0)return(1099511627776+n).toString(16);var i=parseInt(n,10).toString(16);return typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")},DEC2OCT:function(n,t){if(isNaN(n))return"#VALUE!";if(!/^-?[0-9]{1,9}$/.test(n)||n<-536870912||n>536870911)return"#NUM!";if(n<0)return(1073741824+n).toString(8);var i=parseInt(n,10).toString(8);return typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")},DELTA:function(n,t){return(t=typeof t=="undefined"?0:t,isNaN(n)||isNaN(t))?"#VALUE!":n===t?1:0},ERF:function(n,t){return(t=typeof t=="undefined"?0:t,isNaN(n)||isNaN(t))?"#VALUE!":r.erf(n)},ERFC:function(n){return isNaN(n)?"#VALUE!":r.erfc(n)},ERFCPRECISE:function(){return},ERFPRECISE:function(){return},GESTEP:function(n,t){return(t=typeof t=="undefined"?0:t,isNaN(n)||isNaN(t))?"#VALUE!":n>=t?1:0},HEX2BIN:function(n,t){var u,i,r;return/^[0-9A-Fa-f]{1,10}$/.test(n)?(u=n.length===10&&n.substring(0,1).toLowerCase()==="f"?!0:!1,i=u?parseInt(n,16)-1099511627776:parseInt(n,16),i<-512||i>511)?"#NUM!":u?"1"+e.repeat("0",9-(512+i).toString(2).length)+(512+i).toString(2):(r=i.toString(2),typeof t=="undefined"?r:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=r.length?e.repeat("0",t-r.length)+r:"#NUM!")):"#NUM!"},HEX2DEC:function(n){if(!/^[0-9A-Fa-f]{1,10}$/.test(n))return"#NUM!";var t=parseInt(n,16);return t>=549755813888?t-1099511627776:t},HEX2OCT:function(n,t){var i,r;return/^[0-9A-Fa-f]{1,10}$/.test(n)?(i=parseInt(n,16),i>536870911&&i<0xffe0000000)?"#NUM!":i>=0xffe0000000?(i-0xffc0000000).toString(8):(r=i.toString(8),typeof t=="undefined"?r:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=r.length?e.repeat("0",t-r.length)+r:"#NUM!")):"#NUM!"},IMABS:function(n){var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":Math.sqrt(Math.pow(t,2)+Math.pow(i,2))},IMAGINARY:function(n){var t,i,r,u;return n===0||n==="0"?0:["i","j"].indexOf(n)>=0?1:(n=n.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j"),t=n.indexOf("+"),i=n.indexOf("-"),t===0&&(t=n.indexOf("+",1)),i===0&&(i=n.indexOf("-",1)),r=n.substring(n.length-1,n.length),u=r==="i"||r==="j",t>=0||i>=0?u?t>=0?isNaN(n.substring(0,t))||isNaN(n.substring(t+1,n.length-1))?"#NUM!":Number(n.substring(t+1,n.length-1)):isNaN(n.substring(0,i))||isNaN(n.substring(i+1,n.length-1))?"#NUM!":-Number(n.substring(i+1,n.length-1)):"#NUM!":u?isNaN(n.substring(0,n.length-1))?"#NUM!":n.substring(0,n.length-1):isNaN(n)?"#NUM!":0)},IMARGUMENT:function(n){var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":t===0&&i===0?"#DIV/0!":t===0&&i>0?Math.PI/2:t===0&&i<0?-Math.PI/2:i===0&&t>0?0:i===0&&t<0?-Math.PI:t>0?Math.atan(i/t):t<0&&i>=0?Math.atan(i/t)+Math.PI:Math.atan(i/t)-Math.PI},IMCONJUGATE:function(n){var r=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n),t=n.substring(n.length-1);return(t=t==="i"||t==="j"?t:"i",r==="#NUM!"||i==="#NUM!")?"#NUM!":i!==0?u.engineering.COMPLEX(r,-i,t):n},IMCOS:function(n){if(n===!0||n===!1)return"#VALUE!";var r=u.engineering.IMREAL(n),t=u.engineering.IMAGINARY(n),i=n.substring(n.length-1);return(i=i==="i"||i==="j"?i:"i",r==="#NUM!"||t==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.cos(r)*(Math.exp(t)+Math.exp(-t))/2,-Math.sin(r)*(Math.exp(t)-Math.exp(-t))/2,i)},IMCOSH:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),i=n.substring(n.length-1);return(i=i==="i"||i==="j"?i:"i",t==="#NUM!"||r==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.cos(r)*(Math.exp(t)+Math.exp(-t))/2,Math.sin(r)*(Math.exp(t)-Math.exp(-t))/2,i)},IMCOT:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV(u.engineering.IMCOS(n),u.engineering.IMSIN(n))},IMCSC:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV("1",u.engineering.IMSIN(n))},IMCSCH:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV("1",u.engineering.IMSINH(n))},IMDIV:function(n,t){var f=u.engineering.IMREAL(n),e=u.engineering.IMAGINARY(n),i=u.engineering.IMREAL(t),r=u.engineering.IMAGINARY(t),h=n.substring(n.length-1),c=n.substring(n.length-1),o="i",s;return(h==="j"?o="j":c==="j"&&(o="j"),f==="#NUM!"||e==="#NUM!"||i==="#NUM!"||r==="#NUM!")?"#NUM!":i===0&&r===0?"#NUM!":(s=i*i+r*r,u.engineering.COMPLEX((f*i+e*r)/s,(e*i-f*r)/s,o))},IMEXP:function(n){var f=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n),t=n.substring(n.length-1),r;return(t=t==="i"||t==="j"?t:"i",f==="#NUM!"||i==="#NUM!")?"#NUM!":(r=Math.exp(f),u.engineering.COMPLEX(r*Math.cos(i),r*Math.sin(i),t))},IMLN:function(n){var i=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),t=n.substring(n.length-1);return(t=t==="i"||t==="j"?t:"i",i==="#NUM!"||r==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.log(Math.sqrt(i*i+r*r)),Math.atan(r/i),t)},IMLOG10:function(n){var i=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),t=n.substring(n.length-1);return(t=t==="i"||t==="j"?t:"i",i==="#NUM!"||r==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.log(Math.sqrt(i*i+r*r))/Math.log(10),Math.atan(r/i)/Math.log(10),t)},IMLOG2:function(n){var i=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),t=n.substring(n.length-1);return(t=t==="i"||t==="j"?t:"i",i==="#NUM!"||r==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.log(Math.sqrt(i*i+r*r))/Math.log(2),Math.atan(r/i)/Math.log(2),t)},IMPOWER:function(n,t){var r,f;if(isNaN(t))return"#VALUE!";var e=u.engineering.IMREAL(n),o=u.engineering.IMAGINARY(n),i=n.substring(n.length-1);return(i=i==="i"||i==="j"?i:"i",e==="#NUM!"||o==="#NUM!")?"#NUM!":(r=Math.pow(u.engineering.IMABS(n),t),f=u.engineering.IMARGUMENT(n),u.engineering.COMPLEX(r*Math.cos(t*f),r*Math.sin(t*f),i))},IMPRODUCT:function(){for(var n=arguments[0],t=1;t<arguments.length;t++){var i=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),f=u.engineering.IMREAL(arguments[t]),e=u.engineering.IMAGINARY(arguments[t]);if(i==="#NUM!"||r==="#NUM!"||f==="#NUM!"||e==="#NUM!")return"#NUM!";n=u.engineering.COMPLEX(i*f-r*e,i*e+r*f)}return n},IMREAL:function(n){var t,i,r,u;return n===0||n==="0"?0:["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(n)>=0?0:(t=n.indexOf("+"),i=n.indexOf("-"),t===0&&(t=n.indexOf("+",1)),i===0&&(i=n.indexOf("-",1)),r=n.substring(n.length-1,n.length),u=r==="i"||r==="j",t>=0||i>=0?u?t>=0?isNaN(n.substring(0,t))||isNaN(n.substring(t+1,n.length-1))?"#NUM!":Number(n.substring(0,t)):isNaN(n.substring(0,i))||isNaN(n.substring(i+1,n.length-1))?"#NUM!":Number(n.substring(0,i)):"#NUM!":u?isNaN(n.substring(0,n.length-1))?"#NUM!":0:isNaN(n)?"#NUM!":n)},IMSEC:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV("1",u.engineering.IMCOS(n))},IMSECH:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV("1",u.engineering.IMCOSH(n))},IMSIN:function(n){if(n===!0||n===!1)return"#VALUE!";var r=u.engineering.IMREAL(n),t=u.engineering.IMAGINARY(n),i=n.substring(n.length-1);return(i=i==="i"||i==="j"?i:"i",r==="#NUM!"||t==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.sin(r)*(Math.exp(t)+Math.exp(-t))/2,Math.cos(r)*(Math.exp(t)-Math.exp(-t))/2,i)},IMSINH:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),i=n.substring(n.length-1);return(i=i==="i"||i==="j"?i:"i",t==="#NUM!"||r==="#NUM!")?"#NUM!":u.engineering.COMPLEX(Math.cos(r)*(Math.exp(t)-Math.exp(-t))/2,Math.sin(r)*(Math.exp(t)+Math.exp(-t))/2,i)},IMSQRT:function(n){var f=u.engineering.IMREAL(n),e=u.engineering.IMAGINARY(n),t=n.substring(n.length-1),i,r;return(t=t==="i"||t==="j"?t:"i",f==="#NUM!"||e==="#NUM!")?"#NUM!":(i=Math.sqrt(u.engineering.IMABS(n)),r=u.engineering.IMARGUMENT(n),u.engineering.COMPLEX(i*Math.cos(r/2),i*Math.sin(r/2),t))},IMSUB:function(n,t){var r=u.engineering.IMREAL(n),f=u.engineering.IMAGINARY(n),e=u.engineering.IMREAL(t),o=u.engineering.IMAGINARY(t),s=n.substring(n.length-1),h=n.substring(n.length-1),i="i";return(s==="j"?i="j":h==="j"&&(i="j"),r==="#NUM!"||f==="#NUM!"||e==="#NUM!"||o==="#NUM!")?"#NUM!":u.engineering.COMPLEX(r-e,f-o,i)},IMSUM:function(){for(var n=arguments[0],t=1;t<arguments.length;t++){var i=u.engineering.IMREAL(n),r=u.engineering.IMAGINARY(n),f=u.engineering.IMREAL(arguments[t]),e=u.engineering.IMAGINARY(arguments[t]);if(i==="#NUM!"||r==="#NUM!"||f==="#NUM!"||e==="#NUM!")return"#NUM!";n=u.engineering.COMPLEX(i+f,r+e)}return n},IMTAN:function(n){if(n===!0||n===!1)return"#VALUE!";var t=u.engineering.IMREAL(n),i=u.engineering.IMAGINARY(n);return t==="#NUM!"||i==="#NUM!"?"#NUM!":u.engineering.IMDIV(u.engineering.IMSIN(n),u.engineering.IMCOS(n))},OCT2BIN:function(n,t){var u,i,r;return/^[0-7]{1,10}$/.test(n)?(u=n.length===10&&n.substring(0,1)==="7"?!0:!1,i=u?parseInt(n,8)-1073741824:parseInt(n,8),i<-512||i>511)?"#NUM!":u?"1"+e.repeat("0",9-(512+i).toString(2).length)+(512+i).toString(2):(r=i.toString(2),typeof t=="undefined"?r:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=r.length?e.repeat("0",t-r.length)+r:"#NUM!")):"#NUM!"},OCT2DEC:function(n){if(!/^[0-7]{1,10}$/.test(n))return"#NUM!";var t=parseInt(n,8);return t>=536870912?t-1073741824:t},OCT2HEX:function(n,t){var r,i;return/^[0-7]{1,10}$/.test(n)?(r=parseInt(n,8),r>=536870912)?"ff"+(r+3221225472).toString(16):(i=r.toString(16),typeof t=="undefined"?i:isNaN(t)?"#VALUE!":t<0?"#NUM!":(t=Math.floor(t),t>=i.length?e.repeat("0",t-i.length)+i:"#NUM!")):"#NUM!"}},user_defined:{}},e={toChr:function(n){var t="";for(n=n-1;n>=0;)t=String.fromCharCode(n%26+97)+t,n=Math.floor(n/26)-1;return t.toUpperCase()},toNum:function(n){n=n.split("");for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),u=0,t=0,i=n.length-1;t<n.length;t+=1,i-=1)u+=Math.pow(r.length,i)*(r.indexOf(n[t])+1);return u},cellRange:function(n,t){var c=/[A-Z]+/,l=/[0-9]+/,a=n.toUpperCase(),v=t.toUpperCase(),s=this.toNum(a.match(c)[0]),h=this.toNum(v.match(c)[0]),f=parseInt(a.match(l)[0],10),e=parseInt(v.match(l)[0],10),o=[],u,i,r;if(s<h)for(r=s;r<=h;r++)if(f<e)for(i=f;i<=e;i++)u=this.toChr(r)+i,o.push(u);else for(i=f;i>=e;i--)u=this.toChr(r)+i,o.push(u);else for(r=s;r>=h;r--)if(f<e)for(i=f;i<=e;i++)u=this.toChr(r)+i,o.push(u);else for(i=f;i>=e;i--)u=this.toChr(r)+i,o.push(u);return o},isValidBinary:function(n){return/^[01]{1,10}$/.test(n)},strRepeat:function(n,t){if(t<1)return"";for(var i="";t>0;)t&1&&(i+=n),t>>=1,n+=n;return i},repeat:function(n,t,i){if(n==null)return"";if(t=~~t,i==null)return this.strRepeat(String(n),t);for(var r=[];t>0;r[--t]=n);return r.join(i)},unique:function(n){return n.reduce(function(n,t){return n.indexOf(t)<0&&n.push(t),n},[])},initial:function(n,t,i){return Array.prototype.slice.call(n,0,Math.max(0,n.length-(t==null||i?1:t)))},rest:function(n,t,i){return Array.prototype.slice.call(n,t==null||i?1:t)},arrayMerge:function(n){for(var r,i=[],t=0;t<n.length;t++)if(typeof n[t]=="object")for(r in n[t])i=i.concat(n[t][r]);else i=i.concat(n[t]);return i},toArray:function(n){return Array.prototype.slice.call(n,0)},objectToArray:function(n){var t=[];for(var i in n)t.push(n[i]);return t},trimEmptyCell:function(t){var r={};for(var i in t)n.trim(t[i])!==""&&(r[i]=t[i]);return r},cleanFloat:function(n){var t=Math.pow(10,14);return Math.round(n*t)/t},countIn:function(n,t){for(var r=0,i=0;i<n.length;i++)n[i]===t&&r++;return r},rangeToTable:function(n){var f,r,t=0,i=[],e=[],u,o,s;for(f in n)r=this.toNum(f.match(/[A-Z]+/)[0])-1,t=parseInt(f.match(/[0-9]+/)[0],10)-1,typeof i[t]=="undefined"&&(i[t]=[]),i[t][r]=n[f];for(u=0,o=i.length,t=0;t<o;t++)if(typeof i[t]!="undefined"){for(s=i[t].length,typeof e[u]=="undefined"&&(e[u]=[]),r=0;r<s;r++)typeof i[t][r]!="undefined"&&e[u].push(i[t][r]);u++}return e},transposeTable:function(n){var i,t,u,f,r;for(u=n.length,r=[],i=0;i<u;i++)for(f=n[i].length,t=0;t<f;t++)typeof r[t]=="undefined"&&(r[t]=[]),r[t].push(n[i][t]);return r}},f={MEMOIZED_FACT:[],SQRT2PI:2.5066282746310002,WEEK_STARTS:[undefined,0,1,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,2,3,4,5,6,0],WEEK_TYPES:[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],WEEKEND_TYPES:[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],undefined,undefined,undefined,[0],[1],[2],[3],[4],[5],[6]],DAY_NAME:["Sunday","Monday","Thuesday","Wednesday","Thursday","Friday","Saturday"],ERROR:["#DIV/0!","#N/A","#NAME?","#NUM!","#NULL!","#REF!","#VALUE!","#ERROR!","#ERROR_MOMENT_JS_REQUIRED!","#ERROR_JSTAT_JS_REQUIRED!","#ERROR_AJAX_URL_REQUIRED!","#ERROR_SEND_REQUEST!","#UNDEFINED_VARIABLE!"],ERRKEY:{jStatRequired:"#ERROR_JSTAT_JS_REQUIRED!",momentRequired:"#ERROR_MOMENT_JS_REQUIRED!",ajaxUrlRequired:"#ERROR_AJAX_URL_REQUIRED!",sendRequestError:"#ERROR_SEND_REQUEST!"},VARIABLE:{},SELF_RENDER_FORMULA:["GRAPH"]};h.fx=h.prototype;h.fx.init=function(){var r=this.el?this.el.attr("data-cell"):this.address,e=this.el?this.el.attr("data-formula"):"",u=this.el?this.el.attr("data-format"):!1,i=this.el?this.el.val():null,s=this.el?this.el.prop("tagName").toLowerCase():"",o,f;r&&n.trim(r)!=""?r=r.toUpperCase():(r="CALX"+this.sheet.counter,this.el&&this.el.attr("data-cell",r),this.sheet.counter++);e=e&&n.trim(e)!=""?e.replace("&quot;",'"').replace("&#39;","'").replace("&#34;",'"'):!1;s=="input"&&(this.el.attr("type")=="checkbox"||this.el.attr("type")=="radio")&&(o=this.el.attr("data-unchecked"),o=typeof o=="undefined"?"":o,i=this.el.prop("checked")?this.el.val():o,this.isCheckbox=!0);this.el&&this.formTags.indexOf(s)==-1&&(i=this.el.text());(u===!1||typeof u=="undefined")&&(u=this.sheet.config.defaultFormat);this.formula=e;this.format=u;this.address=r;u==="string"?f=i:u&&typeof t!="undefined"&&n.trim(i)!==""?(f=t().unformat(i),u.indexOf("%")>-1&&i.indexOf("%")==-1&&(f=f/100)):f=n.isNumeric(i)?parseFloat(i):i;this.setValue(f);n.trim(i)!=""&&n.isNumeric(i)&&this.renderComputedValue()};h.fx.calculate=function(n,t){var i;n=typeof n=="undefined"?!0:n;t=typeof t=="undefined"?!0:t;this.sheet.clearAffectedCell();this.sheet.config.autoCalculate&&n&&typeof this.sheet.config.onBeforeCalculate=="function"&&this.sheet.config.onBeforeCalculate.call(this.sheet);o.isCalculating=!0;this.evaluateFormula();for(i in this.dependant)this.dependant[i].processDependant();for(i in this.sheet.dependant)this.sheet.dependant[i].calculate(!1,!1);if(o.isCalculating=!1,this.sheet.hasRelatedSheet())for(i in this.sheet.cells)this.sheet.cells[i].hasRemoteDependency()&&(this.sheet.cells[i].evaluateFormula(),this.sheet.cells[i].processDependant(),this.sheet.cells[i].renderComputedValue());return this.sheet.config.autoCalculate&&n&&typeof this.sheet.config.onAfterCalculate=="function"&&this.sheet.config.onAfterCalculate.call(this.sheet),this.sheet.config.autoCalculate&&n&&typeof this.sheet.config.onBeforeRender=="function"&&this.sheet.config.onBeforeRender.call(this.sheet),t&&this.renderComputedValue(),this.sheet.config.autoCalculate&&n&&typeof this.sheet.config.onAfterRender=="function"&&this.sheet.config.onAfterRender.call(this.sheet),this};h.fx.buildDependency=function(){var p={remoteCellRange:/\#[A-Za-z0-9_]+\s*!\s*[A-Za-z]+[0-9]+\s*:\s*[A-Za-z]+[0-9]+/g,remoteCell:/\#[A-Za-z0-9_]+\s*!\s*[A-Za-z]+[0-9]+/g,cellRange:/[A-Za-z]+[0-9]+\s*:\s*[A-Za-z]+[0-9]+/g,cell:/[A-Z]+[0-9]+/g},a=this.formula,w="#"+this.sheet.el.attr("id"),b=this.address,t,h,i,f,c,l,v,y,u,s,e,r;for(h in this.dependencies)h.indexOf("#")===-1?this.dependencies[h].removeDependant(b):this.dependencies[h].removeDependant(w+"!"+b),delete this.dependencies[h];if(a)for(h in p)if(s=a.match(p[h]),a=a.replace(p[h],""),null!==s)switch(h){case"remoteCellRange":for(i=0;i<s.length;i++){l=s[i].split("!");e=n.trim(l[0]);u=l[1].split(":");v=n.trim(u[0]);y=n.trim(u[1]);t=this.sheet.getRemoteCellRange(e,v,y);r=n(e).attr("data-calx-identifier");(typeof r=="undefined"||typeof o.sheetRegistry[r]=="undefined")&&(n(e).calx(),r=n(e).attr("data-calx-identifier"));typeof r!="undefined"&&typeof o.sheetRegistry[r]!="undefined"&&(o.sheetRegistry[r].registerDependant(this.sheet),this.sheet.registerDependency(o.sheetRegistry[r]));for(f in t)c=e+"!"+f,typeof this.dependencies[c]=="undefined"&&!1!==t[f]&&(this.hasRemoteDependency(!0),this.dependencies[c]=t[f],t[f].registerDependant(w+"!"+this.getAddress(),this))}break;case"remoteCell":for(i=0;i<s.length;i++)l=s[i].split("!"),e=n.trim(l[0]),u=n.trim(l[1]),t=this.sheet.getRemoteCell(e,u),r=n(e).attr("data-calx-identifier"),(typeof r=="undefined"||typeof o.sheetRegistry[r]=="undefined")&&n(e).calx(),typeof r!="undefined"&&typeof o.sheetRegistry[r]!="undefined"&&(o.sheetRegistry[r].registerDependant(this.sheet),this.sheet.registerDependency(o.sheetRegistry[r])),c=e+"!"+u,typeof this.dependencies[c]=="undefined"&&!1!==t&&(this.hasRemoteDependency(!0),this.dependencies[c]=t,t.registerDependant(w+"!"+this.getAddress(),this));break;case"cellRange":for(i=0;i<s.length;i++){u=s[i].split(":");v=n.trim(u[0]);y=n.trim(u[1]);t=this.sheet.getCellRange(v,y);for(f in t)typeof this.dependencies[f]=="undefined"&&!1!==t[f]&&(this.dependencies[f]=t[f],t[f].registerDependant(this.getAddress(),this))}break;case"cell":for(i=0;i<s.length;i++)u=s[i],t=this.sheet.getCell(u),typeof this.dependencies[u]=="undefined"&&!1!==t&&(this.dependencies[u]=t,t.registerDependant(this.getAddress(),this))}return this};h.fx.removeDependency=function(n){typeof this.dependencies[n]!="undefined"&&delete this.dependencies[n]};h.fx.processDependency=function(){if(!1==this.isProcessed()){for(var n in this.dependencies)!1==this.dependencies[n].isProcessed()&&this.dependencies[n].processDependency();this.evaluateFormula();this.setProcessed(!0);this.sheet.affectedCell.indexOf(this.address)==-1&&this.sheet.affectedCell.push(this.address)}};h.fx.registerDependant=function(n,t){typeof this.dependant[n]=="undefined"&&t&&(this.dependant[n]=t)};h.fx.removeDependant=function(n){typeof this.dependant[n]!="undefined"&&delete this.dependant[n]};h.fx.processDependant=function(){var n,t;if(!1===this.isProcessed()||!0===o.isCalculating){this.processDependency();for(t in this.dependant)if(!this.dependant[t].isProcessed()&&(n=this.dependant[t].processDependant(),!1===n))return n;this.setAffected(!1);this.setProcessed(!0);this.sheet.affectedCell.indexOf(this.address)==-1&&this.sheet.affectedCell.push(this.address)}else return!1};h.fx.hasRemoteDependency=function(n){if(typeof n=="undefined")return this.remoteDependency;this.remoteDependency=n};h.fx.renderComputedValue=function(){var u;if(this.formula&&this.formula.substring(0,5).toLowerCase()=="graph")return this;if(!1!==this.el){var r=this.el.prop("tagName").toLowerCase(),o=this.formTags.indexOf(r)>-1,i=this.formula?this.computedValue:this.value,e=this.format!=""&&this.format!=="string"&&typeof t!="undefined"&&i!==""&&i!==!1&&i!==null&&f.ERROR.indexOf(i)==-1&&n.isNumeric(i)?t(i).format(this.format):i;o?this.isCheckbox?this.el.prop("checked",i==this.el.val()):r=="select"?(this.el.val(i),this.el.trigger("input"),this.el.trigger("change")):(r=="input"||r=="textarea")&&(this.el.val(e),this.el.trigger("input"),this.el.trigger("change")):this.el.html(e)}return typeof this.conditionalStyle=="function"&&(u=this.conditionalStyle.apply(null,[this.getValue(),this.el]),typeof u=="object"&&this.el.css(u)),this};h.fx.resyncValue=function(){if(!1!==this.el){var t=this.el.prop("tagName").toLowerCase(),i=this.formTags.indexOf(t)>-1,n=i?this.el.val():this.el.text();this.isCheckbox&&!this.el.prop("checked")&&(n=this.el.attr("data-unchecked-value")||"");this.setValue(n)}};h.fx.resyncFormula=function(){this.el&&this.el.attr("data-formula")!=this.formula&&(this.formula=this.el.attr("data-formula"),this.buildDependency())};h.fx.checkCircularReference=function(n){var i,t=!1;if(typeof n=="undefined"&&(n=this.getAddress()),!1!==this.formula){for(i in this.dependencies)if(t=t||i==n,t)return!0;for(i in this.dependencies)if(t=t||this.dependencies[i].checkCircularReference(n),t)return!0}return t};h.fx.evaluateFormula=function(){if(this.formula)try{return this.sheet.setActiveCell(this),this.computedValue=this.sheet.evaluate(this.formula),this.computedValue}catch(n){return this.computedValue="#ERROR!",!1}return!1};h.fx.formTags=["input","select","textarea","button"];h.fx.setConditionalStyle=function(n){typeof n=="function"&&(this.conditionalStyle=n)};h.fx.setFormat=function(n){return this.format=n,!1!==this.el&&(this.el.attr("data-format",n),this.renderComputedValue()),this.sheet.affectedCell.indexOf(this.address)==-1&&this.sheet.affectedCell.push(this.address),this};h.fx.getFormat=function(){return this.format};h.fx.setFormula=function(n){return typeof n!="string"?!1:(this.formula=n,!1!==this.el&&this.el.attr("data-formula",n),this.buildDependency(),this.sheet.affectedCell.indexOf(this.address)==-1&&this.sheet.affectedCell.push(this.address),this)};h.fx.getFormula=function(){return this.formula};h.fx.getAddress=function(){return this.address};h.fx.getFormattedValue=function(){var i=this.formula?this.computedValue:this.value;return this.format!=""&&this.format!=="string"&&typeof t!="undefined"&&i!==""&&i!==!1&&i!==null&&f.ERROR.indexOf(i)==-1&&n.isNumeric(i)?t(i).format(this.format):i};h.fx.setValue=function(n){return this.value=n,this.sheet.affectedCell.indexOf(this.address)==-1&&this.sheet.affectedCell.push(this.address),this};h.fx.getValue=function(){return this.formula?this.computedValue:this.value};h.fx.setAffected=function(n){return n=typeof n=="undefined"?!0:n,this.affected=n,this};h.fx.isAffected=function(){return this.affected};h.fx.setProcessed=function(n){return this.processed=typeof n=="undefined"?!0:n,this};h.fx.isProcessed=function(){return this.processed};h.fx.highlightDependant=function(){for(var n in this.dependant)this.dependant[n].el.css("border","solid 1px blue")};h.fx.highlightDependency=function(){for(var n in this.dependencies)this.dependencies[n].el.css("border","solid 1px red")};s.fx=s.prototype;s.fx.init=function(){var r=this.el.find("[data-cell],[data-formula],[data-format]"),n=this,t,i;this.totalCell=r.length;this.parser=l(this);this.el.attr("data-calx-identifier",this.identifier);r.each(function(){t=new h(n,this);n.registerCell(t)});for(i in this.config.data)typeof this.cells[i]=="undefined"&&(t=new h(n,undefined,i),n.registerCell(t));n.attachEvent()};s.fx.checkCircularReference=function(){var t,n={isCircular:!1,cell:null};for(t in this.cells)if(n.isCircular=this.cells[t].checkCircularReference(),!0===n.isCircular)return n.cell=this.cells[t],n;return n};s.fx.clearProcessedFlag=function(){for(var n in this.cells)!1!==this.cells[n].formula?(this.cells[n].setProcessed(!1),this.cells[n].setAffected(!0)):(this.cells[n].setProcessed(!0),this.cells[n].setAffected(!1))};s.fx.buildCellDependency=function(){for(var n in this.cells)this.cells[n].buildDependency()};s.fx.renderComputedValue=function(){for(var n=0;n<this.affectedCell.length;n++)this.cells[this.affectedCell[n]].renderComputedValue();this.clearAffectedCell()};s.fx.clearAffectedCell=function(){this.affectedCell=[]};s.fx.hasRelatedSheet=function(){return this.relatedSheet};s.fx.clearCalculatedFlag=function(){for(var n in this.dependant)this.dependant[n].setCalculated(!1);for(n in this.dependencies)this.dependencies[n].setCalculated(!1)};s.fx.isCalculated=function(){return this.calculated};s.fx.setCalculated=function(n){n=typeof n=="undefined"?!0:n;this.calculated=n};s.fx.clearDependencies=function(){};s.fx.registerDependant=function(n){this.relatedSheet=!0;typeof this.dependant[n.identifier]=="undefined"&&(this.dependant[n.identifier]=n)};s.fx.registerDependency=function(n){this.relatedSheet=!0;typeof this.dependencies[n.identifier]=="undefined"&&(this.dependencies[n.identifier]=n)};s.fx.obj={type:"cell"};s.fx.comparator={greater:function(n,t){return n>t},greaterEqual:function(n,t){return n>=t},less:function(n,t){return n<t},lessEqual:function(n,t){return n<=t},equal:function(n,t){return n==t},notEqual:function(n,t){return n!=t}};s.fx.getVariable=function(n){var t=n[0],i=t.toUpperCase();return i=="TRUE"?!0:i=="FALSE"?!1:i=="NULL"?null:typeof this.variables[t]=="undefined"?typeof f.VARIABLE[t]=="undefined"?"#UNDEFINED_VARIABLE!":typeof f.VARIABLE[t]=="function"?f.VARIABLE[t].call(this):f.VARIABLE[t]:typeof this.variables[t]=="function"?this.variables[t].call(this):this.variables[t]};s.fx.time=function(n){var t=n.split(":"),i=new Date,r=typeof t[0]=="undefined"?0:t[0],u=typeof t[1]=="undefined"?0:t[1],f=typeof t[2]=="undefined"?0:t[2];return new Date(i.getFullYear(),i.getMonth(),i.getDate(),r,u,f)};s.fx.callFunction=function(n,t){var r,i;if(i=n.toUpperCase(),typeof u[i]=="function")return u[i].apply(this,t);for(r in u)if(typeof u[r][i]=="function")return u[r][i].apply(this,t);return"#NAME?"};s.fx.getRemoteCell=function(t,i){var r=n(t).attr("data-calx-identifier");return!r||typeof o.sheetRegistry[r]=="undefined"?!1:o.sheetRegistry[r].getCell(i)};s.fx.getRemoteCellRange=function(t,i,r){var u=n(t).attr("data-calx-identifier");return!u||typeof o.sheetRegistry[u]=="undefined"?!1:o.sheetRegistry[u].getCellRange(i,r)};s.fx.getRemoteCellValue=function(t,i){var r=n(t).attr("data-calx-identifier");return!r||typeof o.sheetRegistry[r]=="undefined"?!1:o.sheetRegistry[r].getCellValue(i)};s.fx.getRemoteCellRangeValue=function(t,i,r){var u=n(t).attr("data-calx-identifier");return!u||typeof o.sheetRegistry[u]=="undefined"?!1:o.sheetRegistry[u].getCellRangeValue(i,r)};s.fx.getCellRangeValue=function(n,t){n=n.toUpperCase();t=t.toUpperCase();for(var r=e.cellRange(n,t),f=r.length,u={},i=0;i<f;i++)u[r[i]]=this.getCellValue(r[i]);return u};s.fx.getCellValue=function(n){var t=n.toUpperCase();return typeof this.cells[t]=="undefined"?!1:this.cells[t].getValue()};s.fx.evaluate=function(n){return this.parser.parse(n)};s.fx.update=function(){var r=this.el.find("[data-cell],[data-formula],[data-format]"),t=this,u,i;this.totalCell=r.length;for(i in this.cells)this.cells[i].el&&!n.contains(document,this.cells[i].el[0])&&delete this.cells[i];r.each(function(){var i=n(this).attr("data-cell");i&&typeof t.cells[i]=="undefined"?(u=new h(t,this),t.registerCell(u)):(t.cells[i].resyncValue(),t.cells[i].resyncFormula())});this.buildCellDependency()};s.fx.calculate=function(){this.clearAffectedCell();typeof this.config.onBeforeCalculate=="function"&&this.config.onBeforeCalculate.call(this);var n;this.calculateDependency(this.identifier);this.clearProcessedFlag();for(n in this.cells)this.cells[n].processDependency();this.setCalculated();for(n in this.cells)this.cells[n].hasRemoteDependency()&&this.cells[n].evaluateFormula();return this.calculateDependant(this.identifier),typeof this.config.onAfterCalculate=="function"&&this.config.onAfterCalculate.call(this),typeof this.config.onBeforeRender=="function"&&this.config.onBeforeRender.call(this),this.renderComputedValue(),typeof this.config.onAfterRender=="function"&&this.config.onAfterRender.call(this),this};s.fx.calculateDependant=function(){};s.fx.calculateDependency=function(){};s.fx.registerCell=function(n){var i=n.getAddress(),t;this.cells[i]=n;typeof this.config.data[i]!="undefined"&&(t=this.config.data[i],typeof t.value!="undefined"&&(n.setValue(t.value),n.renderComputedValue()),typeof t.format!="undefined"&&n.setFormat(t.format),typeof t.formula!="undefined"&&n.setFormula(t.formula),typeof t.conditional_style!="undefined"&&n.setConditionalStyle(t.conditional_style));this.affectedCell.indexOf(n.getAddress())==-1&&this.affectedCell.push(n.getAddress())};s.fx.registerVariable=function(n,t){if(typeof n=="object")for(var i in n)this.variables[i]=n[i];else this.variables[n]=t};s.fx.getCell=function(n){return n=n.toUpperCase(),typeof this.cells[n]!="undefined"?this.cells[n]:!1};s.fx.getCellRange=function(n,t){n=n.toUpperCase();t=t.toUpperCase();for(var r=e.cellRange(n,t),f=r.length,u={},i=0;i<f;i++)u[r[i]]=this.getCell(r[i]);return u};s.fx.applyChange=function(){for(var n in this.cells)this.cells[n].processDependency(!1,!1);for(n in this.cells)this.cells[n].renderComputedValue();return this};s.fx.scan=function(){};s.fx.refresh=function(){var n=this.el.find("[data-cell],[data-formula],[data-format]"),t=this,i;this.totalCell=n.length;this.cells={};n.each(function(){i=new h(t,this);t.registerCell(i)});this.buildCellDependency()};s.fx.reset=function(){var n,t;n=this.el.prop("tagName").toLowerCase()=="form"?this.el:this.el.find("form");n.each(function(){this.reset()});for(t in this.cells)this.cells[t].resyncValue();this.calculate()};s.fx.setActiveCell=function(n){this.activeCell=n};s.fx.getActiveCell=function(){return this.activeCell};s.fx.attachEvent=function(){var i=this;this.el.on("calx.getValue","input[data-cell]",function(){var f=n(this).attr("data-cell"),t=i.cells[f],r=t.getValue(),u=t.getFormat();u&&u.indexOf("%")>=0&&(r=r*100+" %");t.isCheckbox||t.el.val(r)});this.el.on("calx.renderComputedValue","input[data-cell]",function(){var t=n(this).attr("data-cell"),r=i.cells[t];r.renderComputedValue()});this.el.on("calx.setValue","input[data-cell], select[data-cell]",function(){var o=n(this),s=o.attr("data-cell"),r=i.cells[s],h=r.getValue(),u=r.el.val(),e=r.getFormat(),f;r.isCheckbox&&r.el.attr("type")=="checkbox"?r.el.prop("checked")?r.setValue(u):(f=r.el.attr("data-unchecked"),f=typeof f=="undefined"?"":f,u=f,r.setValue(f)):r.isCheckbox&&r.el.attr("type")=="radio"?(r.setValue(u),i.el.find("[name="+r.el.attr("name")+"]").not(r.el).each(function(){var r=n(this),t=r.attr("data-unchecked"),u=r.attr("data-cell");t=typeof t=="undefined"?"":t;i.cells[u].setValue(t)})):(e==="string"?rawValue=u:e&&typeof t!="undefined"&&n.trim(u)!==""?(rawValue=t().unformat(u),e.indexOf("%")>-1&&u.indexOf("%")==-1&&(rawValue=rawValue/100)):rawValue=n.isNumeric(u)?parseFloat(u):u,r.setValue(rawValue));h!=u&&r.setAffected(!0)});this.el.on("calx.calculateSheet","input[data-cell]",function(){i.calculate()});this.el.on("calx.calculateCellDependant","input[data-cell], select[data-cell]",function(){var r=n(this).attr("data-cell"),t=i.cells[r];t.isAffected()&&(!0===o.isCalculating&&(o.isCalculating=!1),i.clearProcessedFlag(),t.calculate(!0,!1),i.hasRelatedSheet()?i.calculate():i.renderComputedValue())});this.el.on(i.config.autoCalculateTrigger,"input[data-cell]",function(){var t=n(this);t.attr("data-formula")||i.config.autoCalculate&&setTimeout(function(){t.trigger("calx.calculateCellDependant")},50)});this.el.on("blur","input[data-cell]",function(){n(this).trigger("calx.renderComputedValue")});this.el.on("change","select[data-cell]",function(){n(this).trigger("calx.setValue");i.config.autoCalculate&&n(this).trigger("calx.calculateCellDependant")});this.el.on("click","input[data-cell][type=checkbox], input[data-cell][type=radio]",function(){n(this).trigger("calx.setValue");i.config.autoCalculate&&n(this).trigger("calx.calculateCellDependant")});this.el.on("focus","input[data-cell]",function(){n(this).trigger("calx.getValue")});this.el.on("keyup","input[data-cell]",function(t){if(n(this).attr("data-formula"))return t.preventDefault(),!1;n(this).trigger("calx.setValue")})};s.fx.detachEvent=function(){this.el.off("calx.getValue");this.el.off("calx.setValue");this.el.off("calx.renderComputedValue");this.el.off("calx.calculateSheet");this.el.off("calx.calculateCellDependant")};o={isCalculating:!1,version:"2.2.7",sheetRegistry:{},init:function(t){var i,r,u;this.each(function(){i=n(this).attr("data-calx-identifier");i&&typeof o.sheetRegistry[i]!="undefined"?o.sheetRegistry[i].refresh():(i="CALX"+(new Date).valueOf(),o.sheetRegistry[i]=new s(i,this,t))});for(i in o.sheetRegistry)o.sheetRegistry[i].buildCellDependency();for(i in o.sheetRegistry)o.sheetRegistry[i].config.checkCircularReference&&(r=o.sheetRegistry[i].checkCircularReference(),r.isCircular&&(u="Circular reference detected, this may cause calx to stop working.\ncell : "+r.cell.getAddress()+"\nformula : "+r.cell.getFormula()+"\n\nPlease check each cells involved in the formula that has direct or indirect reference to "+r.cell.getAddress(),alert(u),n.error(u))),o.sheetRegistry[i].config.autoCalculate&&o.sheetRegistry[i].calculate(),o.sheetRegistry[i].renderComputedValue();return this},registerFunction:function(n,t,i){if(i=typeof i=="undefined"?!1:i,i)for(var r in u)typeof u[r][n]!="undefined"&&delete u[r][n];u.user_defined[n]=t},registerVariable:function(t,i,r){if(r=typeof r=="undefined"?!1:r,this.length===0&&(r=!0),r)if(typeof t=="object")for(var u in t)f.VARIABLE[u]=t[u];else f.VARIABLE[t]=i;else this.each(function(){var r=n(this).attr("data-calx-identifier");r&&typeof o.sheetRegistry[r]!="undefined"&&(o.sheetRegistry[r].registerVariable(t,i),o.sheetRegistry[r].calculate())});return this},refresh:function(){return this.each(function(){var t=n(this).attr("data-calx-identifier");t&&typeof o.sheetRegistry[t]!="undefined"&&o.sheetRegistry[t].refresh()})},update:function(){return this.each(function(){var t=n(this).attr("data-calx-identifier");t&&typeof o.sheetRegistry[t]!="undefined"&&o.sheetRegistry[t].update()})},getSheet:function(){var i=n(this),t=i.attr("data-calx-identifier");return typeof o.sheetRegistry[t]=="undefined"?!1:o.sheetRegistry[t]},getCell:function(t){var i=n(this),r=i.attr("data-calx-identifier"),u=o.sheetRegistry[r];return u.getCell(t)},getUtility:function(){return e},getFormula:function(){return u},evaluate:function(t){var i=n(this),r=i.attr("data-calx-identifier"),u=o.sheetRegistry[r];return u.evaluate(t)},destroy:function(){return this.each(function(){var i=n(this),t=i.attr("data-calx-identifier");i.removeAttr("data-calx-identifier");typeof o.sheetRegistry[t]!="undefined"&&(o.sheetRegistry[t].detachEvent(),o.sheetRegistry[t].clearDependencies(),delete o.sheetRegistry[t])}),this},reset:function(){return this.each(function(){var t=n(this).attr("data-calx-identifier");t&&typeof o.sheetRegistry[t]!="undefined"&&o.sheetRegistry[t].reset()})},calculate:function(){return this.each(function(){var t=n(this).attr("data-calx-identifier");t&&typeof o.sheetRegistry[t]!="undefined"&&o.sheetRegistry[t].calculate()})},setValue:function(t,i){var u=n(this),f=u.attr("data-calx-identifier"),r=o.sheetRegistry[f],e=r.getCell(t);e.setValue(i).renderComputedValue();r.config.autoCalculate&&r.calculate()}};n.fn.calx=function(t){if(o[t])return o[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||typeof t=="undefined")return o.init.apply(this,arguments);n.error("Method "+t+" does not exist on jQuery.calx")}}(jQuery,numeral,moment,jStat);;
var newCOUNTIF = function (range, criteria) {
	var matches = 0, i;
	for (i in range) {
		//If value is a number, evaluate instead of match
		var v = range[i];
		if ($.isNumeric(range[i])) {
			v = parseInt(range[i]);
		}
		if (typeof v === 'number') {
			if (this.evaluate(v + criteria)) {
				matches++;
			}
		} else if (typeof v === 'string') {
			if (v.match(new RegExp(criteria))) {
				matches++;
			}
		}
	}
	return matches;
}

var customISNULLOREMPTY = function (input) {
	return input == null || input == undefined || input == ''
}

var customCONCATENATECOLLECTION = function (input, separator) {
	if (typeof (numeral) == 'undefined') {
		return '#NAME?';
	}

	if (!separator) {
		seperator = ", ";
	}

	var values = [];
	for (var cell in input) {
		var value = input[cell];
		if (value === false) {
			// if the value is false
			// 1. calx couldn't find the cell
			// 2. the value was truely false, which should only happen when filled from connections directly
			//    and should be fixed in a later version to be converted to a string 'false', so would not match anymore
			continue;
		}
		values.push(value);
	}
	return values.join(separator);
}

var customFORMRANGE = function () {
	// this should've already been turned into a range in getFormula (resolveFormRanges)
	return '#FORMRANGE!'
}

if ($('#calx_form')) {
	// Overwrite COUNTIF with above formula
	$('#calx_form').calx('registerFunction', "COUNTIF", newCOUNTIF, true);
	$('#calx_form').calx('registerFunction', "ISNULLOREMPTY", customISNULLOREMPTY, false);
	$('#calx_form').calx('registerFunction', "FORMRANGE", customFORMRANGE, false);
	$('#calx_form').calx('registerFunction', "CONCATENATECOLLECTION", customCONCATENATECOLLECTION, false);
}
;
/*
 * angular-elastic v2.5.1
 * (c) 2014 Monospaced http://monospaced.com
 * License: MIT
 */

if (typeof module !== 'undefined' &&
	typeof exports !== 'undefined' &&
	module.exports === exports){
  module.exports = 'monospaced.elastic';
}

angular.module('monospaced.elastic', [])

  .constant('msdElasticConfig', {
	append: ''
  })

  .directive('msdElastic', [
	'$timeout', '$window', 'msdElasticConfig',
	function($timeout, $window, config) {
	  'use strict';

	  return {
		require: 'ngModel',
		restrict: 'A, C',
		link: function(scope, element, attrs, ngModel) {

		  // cache a reference to the DOM element
		  var ta = element[0],
			  $ta = element;

		  // ensure the element is a textarea, and browser is capable
		  if (ta.nodeName !== 'TEXTAREA' || !$window.getComputedStyle) {
			return;
		  }

		  // set these properties before measuring dimensions
		  $ta.css({
			'overflow': 'hidden',
			'overflow-y': 'hidden',
			'word-wrap': 'break-word'
		  });

		  // force text reflow
		  var text = ta.value;
		  ta.value = '';
		  ta.value = text;

		  var append = attrs.msdElastic ? attrs.msdElastic.replace(/\\n/g, '\n') : config.append,
			  $win = angular.element($window),
			  mirrorInitStyle = 'position: absolute; top: -999px; right: auto; bottom: auto;' +
								'left: 0; overflow: hidden; -webkit-box-sizing: content-box;' +
								'-moz-box-sizing: content-box; box-sizing: content-box;' +
								'min-height: 0 !important; height: 0 !important; padding: 0;' +
								'word-wrap: break-word; border: 0;',
			  $mirror = angular.element('<textarea aria-hidden="true" tabindex="-1" ' +
										'style="' + mirrorInitStyle + '"/>').data('elastic', true),
			  mirror = $mirror[0],
			  taStyle = getComputedStyle(ta),
			  resize = taStyle.getPropertyValue('resize'),
			  borderBox = taStyle.getPropertyValue('box-sizing') === 'border-box' ||
						  taStyle.getPropertyValue('-moz-box-sizing') === 'border-box' ||
						  taStyle.getPropertyValue('-webkit-box-sizing') === 'border-box',
			  boxOuter = !borderBox ? {width: 0, height: 0} : {
							width:  parseInt(taStyle.getPropertyValue('border-right-width'), 10) +
									parseInt(taStyle.getPropertyValue('padding-right'), 10) +
									parseInt(taStyle.getPropertyValue('padding-left'), 10) +
									parseInt(taStyle.getPropertyValue('border-left-width'), 10),
							height: parseInt(taStyle.getPropertyValue('border-top-width'), 10) +
									parseInt(taStyle.getPropertyValue('padding-top'), 10) +
									parseInt(taStyle.getPropertyValue('padding-bottom'), 10) +
									parseInt(taStyle.getPropertyValue('border-bottom-width'), 10)
						  },
			  minHeightValue = parseInt(taStyle.getPropertyValue('min-height'), 10),
			  heightValue = parseInt(taStyle.getPropertyValue('height'), 10),
			  minHeight = Math.max(minHeightValue, heightValue) - boxOuter.height,
			  maxHeight = parseInt(taStyle.getPropertyValue('max-height'), 10),
			  mirrored,
			  active,
			  copyStyle = ['font-family',
						   'font-size',
						   'font-weight',
						   'font-style',
						   'letter-spacing',
						   'line-height',
						   'text-transform',
						   'word-spacing',
						   'text-indent'];

		  // exit if elastic already applied (or is the mirror element)
		  if ($ta.data('elastic')) {
			return;
		  }

		  // Opera returns max-height of -1 if not set
		  maxHeight = maxHeight && maxHeight > 0 ? maxHeight : 9e4;

		  // append mirror to the DOM
		  if (mirror.parentNode !== document.body) {
			angular.element(document.body).append(mirror);
		  }

		  // set resize and apply elastic
		  $ta.css({
			'resize': (resize === 'none' || resize === 'vertical') ? 'none' : 'horizontal'
		  }).data('elastic', true);

		  /*
		   * methods
		   */

		  function initMirror() {
			var mirrorStyle = mirrorInitStyle;

			mirrored = ta;
			// copy the essential styles from the textarea to the mirror
			taStyle = getComputedStyle(ta);
			angular.forEach(copyStyle, function(val) {
			  mirrorStyle += val + ':' + taStyle.getPropertyValue(val) + ';';
			});
			mirror.setAttribute('style', mirrorStyle);
		  }

			function adjust() {
			
			var taHeight,
				taComputedStyleWidth,
				mirrorHeight,
				width,
				overflow;

			if (mirrored !== ta) {
			  initMirror();
			}

			// active flag prevents actions in function from calling adjust again
			if (!active) {
			  active = true;

			  mirror.value = ta.value + append; // optional whitespace to improve animation
			  mirror.style.overflowY = ta.style.overflowY;

			  taHeight = ta.style.height === '' ? 'auto' : parseInt(ta.style.height, 10);

			  taComputedStyleWidth = getComputedStyle(ta).getPropertyValue('width');

			  // ensure getComputedStyle has returned a readable 'used value' pixel width
			  if (taComputedStyleWidth.substr(taComputedStyleWidth.length - 2, 2) === 'px') {
				// update mirror width in case the textarea width has changed
				width = parseInt(taComputedStyleWidth, 10) - boxOuter.width;
				mirror.style.width = width + 'px';
			  }

			  mirrorHeight = mirror.scrollHeight;

			  if (mirrorHeight > maxHeight) {
				mirrorHeight = maxHeight;
				overflow = 'scroll';
			  } else if (mirrorHeight < minHeight) {
				mirrorHeight = minHeight;
			  }
			  mirrorHeight += boxOuter.height;
			  ta.style.overflowY = overflow || 'hidden';
			  if (taHeight !== mirrorHeight && !(scope.field && scope.field.isMaxRows)) {
				scope.$emit('elastic:resize', $ta, taHeight, mirrorHeight);
				ta.style.height = mirrorHeight + 'px';
			  }

			  // small delay to prevent an infinite loop
			  $timeout(function() {
				active = false;
			  }, 1, false);

			}
		  }

		  function forceAdjust() {
			active = false;
			adjust();
		  }

		  /*
		   * initialise
		   */

		  // listen
		  if ('onpropertychange' in ta && 'oninput' in ta) {
			// IE9
			ta['oninput'] = ta.onkeyup = adjust;
		  } else {
			ta['oninput'] = adjust;
		  }

		  $win.bind('resize', forceAdjust);

		  scope.$watch(function() {
			return ngModel.$modelValue;
		  }, function(newValue) {
			forceAdjust();
		  });

		  scope.$on('elastic:adjust', function() {
			initMirror();
			forceAdjust();
		  });

		  $timeout(adjust, 0, false);

		  /*
		   * destroy
		   */

		  scope.$on('$destroy', function() {
			$mirror.remove();
			$win.unbind('resize', forceAdjust);
		  });
		}
	  };
	}
  ]);
;
;(function(e){var t=60*1e3;var n=function(e){return e.toISOString().replace(/-|:|\.\d+/g,"")};var r=function(e){return e.end?n(e.end):n(new Date(e.start.getTime()+e.duration*t))};var i={google:function(e){var t=n(e.start);var i=r(e);var s=encodeURI(["https://www.google.com/calendar/render","?action=TEMPLATE","&text="+(e.title||""),"&dates="+(t||""),"/"+(i||""),"&details="+(e.description||""),"&location="+(e.address||""),"&sprop=&sprop=name:"].join(""));return'<a class="icon-google" target="_blank" href="'+s+'">Google Calendar</a>'},yahoo:function(e){var r=e.end?(e.end.getTime()-e.start.getTime())/t:e.duration;var i=r<600?"0"+Math.floor(r/60):Math.floor(r/60)+"";var s=r%60<10?"0"+r%60:r%60+"";var o=i+s;var u=n(new Date(e.start-e.start.getTimezoneOffset()*t))||"";var a=encodeURI(["http://calendar.yahoo.com/?v=60&view=d&type=20","&title="+(e.title||""),"&st="+u,"&dur="+(o||""),"&desc="+(e.description||""),"&in_loc="+(e.address||"")].join(""));return'<a class="icon-yahoo" target="_blank" href="'+a+'">Yahoo! Calendar</a>'},ics:function(e,t,i){var s=n(e.start);var o=r(e);var u=encodeURI("data:text/calendar;charset=utf8,"+["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","URL:"+document.URL,"DTSTART:"+(s||""),"DTEND:"+(o||""),"SUMMARY:"+(e.title||""),"DESCRIPTION:"+(e.description||""),"LOCATION:"+(e.address||""),"END:VEVENT","END:VCALENDAR"].join("\n"));return'<a class="'+t+'" target="_blank" href="'+u+'">'+i+" Calendar</a>"},ical:function(e){return this.ics(e,"icon-ical","iCal")},outlook:function(e){return this.ics(e,"icon-outlook","Outlook")}};var s=function(e){return{google:i.google(e),yahoo:i.yahoo(e),ical:i.ical(e),outlook:i.outlook(e)}};var o=function(){if(!document.getElementById("ouical-css")){document.getElementsByTagName("head")[0].appendChild(u())}};var u=function(){var e=document.createElement("style");e.id="ouical-css";e.innerHTML="#add-to-calendar-checkbox-label{cursor:pointer}.add-to-calendar-checkbox~a{display:none}.add-to-calendar-checkbox:checked~a{display:block;width:150px;margin-left:20px}input[type=checkbox].add-to-calendar-checkbox{position:absolute;top:-9999px;left:-9999px}.add-to-calendar-checkbox~a:before{width:16px;height:16px;display:inline-block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAQCAYAAACIoli7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MzJCRDU2NUE1MDIxMUUyOTY1Q0EwNTkxNEJDOUIwNCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0MzJCRDU2NkE1MDIxMUUyOTY1Q0EwNTkxNEJDOUIwNCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQzMkJENTYzQTUwMjExRTI5NjVDQTA1OTE0QkM5QjA0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQzMkJENTY0QTUwMjExRTI5NjVDQTA1OTE0QkM5QjA0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+1Gcb3QAACh1JREFUeNrEWAtwVNUZ/u7d9yvZJBtMIC8eBhIKMkQIhqIBKirWwpSW0dahCir1gQhWg2XKjNRqR7AjQ6QjglBFRIW20KmC0KRYjRYMCZGHGEjIY0Oy2U32lX3d3Xv6nxuSbEJCQNvpn/n33POfxz33u9//uBGaBQFcMhgrpGYC6ddk+zfiZKgxsvOG4buJMGATNtzcq4l+WStbsGgpvOiELpgBWetGQGNCstSGkKwH1Ek04oVNFUZQsEAjedCg0iBRVivrP737CL+H8Na7f7lpRFa2cOfMqdUn9n3ARGc7NLEYJj62Qle6Z3/ZlATt82mINV4QVPV33HVXmK/1bRgPvst60vzXgJzZZ84UlOfnV1L/YvwhBxk7Q7quZ3zZLrvSivRy+PtR0Y8oUit2P7+aWm5TifxahErVPWfd/JRBQaNVjA2CIhsecEwIubHzB3+CQWNDNBCCyuiEC6NgpV3agkCszYWknBTInjAMFh20HAo1/QQFVM7Kw9aly7D1ze2iJEemhbu8Mzf++rkVNGMkaS7puKadb0yubGscp/Wa3rc0nNXVJ6RsJvsaUhmXt5oyZv36e4o//hi1tbUonjWrYNTs2QXxhywuL+8bmzevoG7dOu3gj8Po2MIVZGIcAw6TcPma0YV4JfXYEBiy/rbeqZcv+i1tEbIgagzgOAWMerT5MvDuXgfOH6vAsRoRgVAqHOp2TMrX4dYfFmLhVAHTRqtgkn0QQ3W0anZK+UsvzJe/qflxi2d04a3u9iJWdngUHd/I33KEyJEoqBE2mqCxGBCqq//p8idWvPh66Wa35ZlzUIcAnez3w+n14uwDD8CalYWo293vYePH+Fy+Jn58289HKu2rpbux9KF7EY4yfHroAHKL5iv2w/v2Ye7CBfBHBLRWHYJ54rzrCQcsDtx+YA4MAbyTqjsHLfLIrWWcChjwu/XHUVnuxrGDC2G2AdwnnKQNXwOLHnwFH4da8VnZBpg0ZqgcOgJMfKa+oqJkTDQMX3or3GF/khgJQ9TroDInQENq9rjItaNwqUWkeDoy0wtmTKYt/8XPpg4wZpADARTt2YOJx45Bo9PBlZEBy86dvQedPGkSxmZnw5SQAD6Xrxns6XWmYO+1x3e+n52D2WM3Y96w6F0F1F4wBwsBprBEv+0wIQO7Xj2HC0ercLbiEdi0zYgyAk1OgFUQccONwP5dyxELNMCQ5Cfq0YZpekgCpMZgENPvmIc5KckEm4gL7+9BrL0d1rFjYSGGGkePgyWX4qU1CQW3zVG5ztV+n25aQRpVGBojkFpWroTBaAQ/TpD6eput3xOZzWaKEjL43IEM3frHLZD8XtyQasXhdzbDbNTCJjN89tftvfaW8jd67fPyzP3jRBzThGGYKgwxrcceM2eyYDQNG9+8iAMfHsaRXY/AouV4qRAS9NCrmmkjKxBKwOQsM8X0iQhQkpK1IUiiBxq1+oLfaPJJXo8lEOyCJtGKScsfhTYpGYItFTUXG9DY2oqQw4UnFi5SGF/2zfkialQcUJ66V7PrFL5mQhwgXGRZZjv+8ALzBGPM4YuyA9s3sFMtIUW5/Xx7hNU0+RU7X7OM5bFlJxSQ2ODR+ArlIUy5HDjW04y+t5UrC9J5Vm5tYxkz/s5YF3WiESYzP2MRmbmp6+EH9vuZxM9N9iBz0ViUHbclsPuX/GJ2SUnJeX+LnUW6/MqzHTp6lL29dy9rtLewx598kpWsWcPuu+8+Fo1GlfG9+/bZn1q1Kk1JzHQSlUxHjBL7rkX5XL5mMBQks7WvY0vvZ3d4pW63j7Nfo/QDfYCbs3iGa6UORYMUP/92qhoYE4VsdNCoDEEyUYqnhBIDEmJ8hZYenKdmETH6468pWa3GJbvdHpKiTWpio4YSz7Hjx7Hu2Wdx9KOPkDkyHaWbNiE/Lw+LFy+makWlHCInOyc9MyOTJ3JRzcEhnCHHYtf0dCJtwrrp3Suvv/UGvO4uWBLN2L9/N7xeFzyedrS43+q1F401DQdaP+8Vrg1ppcRS3t+DDVQe9dhFqF3JiHTaIYaTyL2jYIld8IsGWCQRTB+GoCcgiU5q2QCD6KNFdQjrM1FVXeUYd+PYxg6nE+np6ZiYn48dO3Zg7dq1iEQi0Gq1KKeqh1h82T2BURkZQlpa2kzqHuJ1qEph3zCAPnVyDao8X6EgeQowANDlSx7mfo9t772NBQt+pmT5T468jgmFS5TxiqPvdderLO+Kfcnte2X71G9VzCvjulhfZaJFFjJSrCj7/DjCqgh0VN6EvSIsCUAXndxPvDxf1w5t4gjoY1qEnAYUfI8SpuokOlyIBIPhC06nSwHUZDIhNzcXoVAIRF7k5OQoLc83/E1eutSKpuYmRKToLZs3l6Zzhqo5QyPR6FVPfcJZg2lFN6Py80q+kbp2WzLwUEe/OZ2Ovr4YU11przqL/5XoRH3fvakwmjFdQtlH4/FC6VdY/dRNVKEYeMqAUR3EiSo9Vj56As2+MKwGMx68fySm5o+HSeDh6FLM7/fVu1zO3v24axcUFJDneZX+SkrgXq8PlZUnEKKKwGpNgM/rmaLT66Z1uzwxVBoC0JKqtTjpPtVd8sQ8YJKM+g3W5Ze/HpZ3f9r0kahk5aq41b/st1c8A3uYOQQrr0uyFwep+ujrG6HHip/YsPvlTmz+7dcovnMGZk4gt6cYKXQFMWuyAV98+iOcpfB6e9HzFBvvoS87J9XfynKZWFnfbLfzbwOlmpEkCauffhpejxenvjqF7KxsdPF6PByCz+PH6dOnKVRUW8eMGX1LN0MJ0MgQLl/dVgNb8YjuAj/qRFJhMmYVzkkv/3NZAV6jJPS4W/gWGLDr/Ua/mkQMzQM2T4dN58Q/DxbizuIKLLjtHax7bhqWPJaLVJMWPsXpzah3SWj3n6GQMKf7/wAmP6/65fq6uubGpsaOFntLuqPdARe5v4fY2emi1uej/OBmjjan3+V2tfi8voZYLFoXlaJnjQZDhZoJgi7GXX4IQPNN+Th9sJuhmKuCWM5w5pvqNiSLlfg/yhcLx2PEqA+QqhR/wX5jHirrdbIJI24A/lG9Gqt/U45NWz7Ey9s/BzQ3QpUQQajdjMS0NixdtQhFxTfTGzVQDc6rFJ/85Zdfem6ePr29dMuWdGKi5PV6Ov2BQFMoFL5INXqtx+upd3d21rXY7Y5AIMBvTp8FCJeXl/nVBKNFRa7Ag+xgsnH2K0p79+474Ix1IJWy5qgXuw40MPb8dwFkOFfngA0nY9zqQe1WnrQtzQRSBgwGEXs2zqUHmXvFvCCFLwP/Lw6PdhQLjVqFVIwSkCRFIgdPVp+sI66d7ury1Xrc7saGhkZ7OBziAEpxGotXYYQg/J4CReZwh3fdriqM2IQkrZN1mg/H9joY+4DMvSyt+eQlTL71uf8a+65VfvVw5nDh5Jpl58NHMK5FCT88diaSGi4DFYnTHvDkgTUyl/8IMABtKh8piZwIuwAAAABJRU5ErkJggg==);margin-right:.5em;content:' '}.icon-ical:before{background-position:-68px 0}.icon-outlook:before{}.icon-yahoo:before{background-position:-36px +4px}.icon-google:before{background-position:-52px 0}";return e};var a=function(e){return e.data!==undefined&&e.data.start!==undefined&&(e.data.end!==undefined||e.data.duration!==undefined)};var f=function(e,t,n){var r=document.createElement("div");r.innerHTML='<label for="checkbox-for-'+n+'" class="add-to-calendar-checkbox">+ Add to my Calendar</label>';r.innerHTML+='<input name="add-to-calendar-checkbox" class="add-to-calendar-checkbox" id="checkbox-for-'+n+'" type="checkbox">';Object.keys(e).forEach(function(t){r.innerHTML+=e[t]});r.className="add-to-calendar";if(t!==undefined){r.className+=" "+t}o();r.id=n;return r};var l=function(e){if(e.options&&e.options.class){return e.options.class}};var c=function(e){return e.options&&e.options.id?e.options.id:Math.floor(Math.random()*1e6)};e.createCalendar=function(e){if(!a(e)){console.log("Event details missing.");return}return f(s(e.data),l(e),c(e))}})(this);;
!function (e) { function t(n) { if (a[n]) return a[n].exports; var s = a[n] = { i: n, l: !1, exports: {} }; return e[n].call(s.exports, s, s.exports, t), s.l = !0, s.exports } var a = {}; t.m = e, t.c = a, t.i = function (e) { return e }, t.d = function (e, a, n) { t.o(e, a) || Object.defineProperty(e, a, { configurable: !1, enumerable: !0, get: n }) }, t.n = function (e) { var a = e && e.__esModule ? function () { return e.default } : function () { return e }; return t.d(a, "a", a), a }, t.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t) }, t.p = "/", t(t.s = 123) }([function (e, t, a) { (function (e) { !function (t, a) { e.exports = a() }(0, function () { "use strict"; function t() { return pn.apply(null, arguments) } function n(e) { return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e) } function s(e) { return null != e && "[object Object]" === Object.prototype.toString.call(e) } function r(e) { var t; for (t in e) return !1; return !0 } function i(e) { return void 0 === e } function d(e) { return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e) } function _(e) { return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e) } function o(e, t) { var a, n = []; for (a = 0; a < e.length; ++a)n.push(t(e[a], a)); return n } function u(e, t) { return Object.prototype.hasOwnProperty.call(e, t) } function m(e, t) { for (var a in t) u(t, a) && (e[a] = t[a]); return u(t, "toString") && (e.toString = t.toString), u(t, "valueOf") && (e.valueOf = t.valueOf), e } function l(e, t, a, n) { return yt(e, t, a, n, !0).utc() } function c() { return { empty: !1, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: !1, invalidMonth: null, invalidFormat: !1, userInvalidated: !1, iso: !1, parsedDateParts: [], meridiem: null, rfc2822: !1, weekdayMismatch: !1 } } function M(e) { return null == e._pf && (e._pf = c()), e._pf } function h(e) { if (null == e._isValid) { var t = M(e), a = Dn.call(t.parsedDateParts, function (e) { return null != e }), n = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidMonth && !t.invalidWeekday && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && a); if (e._strict && (n = n && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour), null != Object.isFrozen && Object.isFrozen(e)) return n; e._isValid = n } return e._isValid } function L(e) { var t = l(NaN); return null != e ? m(M(t), e) : M(t).userInvalidated = !0, t } function f(e, t) { var a, n, s; if (i(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), i(t._i) || (e._i = t._i), i(t._f) || (e._f = t._f), i(t._l) || (e._l = t._l), i(t._strict) || (e._strict = t._strict), i(t._tzm) || (e._tzm = t._tzm), i(t._isUTC) || (e._isUTC = t._isUTC), i(t._offset) || (e._offset = t._offset), i(t._pf) || (e._pf = M(t)), i(t._locale) || (e._locale = t._locale), gn.length > 0) for (a = 0; a < gn.length; a++)n = gn[a], s = t[n], i(s) || (e[n] = s); return e } function Y(e) { f(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 === Tn && (Tn = !0, t.updateOffset(this), Tn = !1) } function y(e) { return e instanceof Y || null != e && null != e._isAMomentObject } function p(e) { return e < 0 ? Math.ceil(e) || 0 : Math.floor(e) } function k(e) { var t = +e, a = 0; return 0 !== t && isFinite(t) && (a = p(t)), a } function D(e, t, a) { var n, s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), i = 0; for (n = 0; n < s; n++)(a && e[n] !== t[n] || !a && k(e[n]) !== k(t[n])) && i++; return i + r } function g(e) { !1 === t.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e) } function T(e, a) { var n = !0; return m(function () { if (null != t.deprecationHandler && t.deprecationHandler(null, e), n) { for (var s, r = [], i = 0; i < arguments.length; i++) { if (s = "", "object" == typeof arguments[i]) { s += "\n[" + i + "] "; for (var d in arguments[0]) s += d + ": " + arguments[0][d] + ", "; s = s.slice(0, -2) } else s = arguments[i]; r.push(s) } g(e + "\nArguments: " + Array.prototype.slice.call(r).join("") + "\n" + (new Error).stack), n = !1 } return a.apply(this, arguments) }, a) } function w(e, a) { null != t.deprecationHandler && t.deprecationHandler(e, a), wn[e] || (g(a), wn[e] = !0) } function v(e) { return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e) } function S(e) { var t, a; for (a in e) t = e[a], v(t) ? this[a] = t : this["_" + a] = t; this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source) } function b(e, t) { var a, n = m({}, e); for (a in t) u(t, a) && (s(e[a]) && s(t[a]) ? (n[a] = {}, m(n[a], e[a]), m(n[a], t[a])) : null != t[a] ? n[a] = t[a] : delete n[a]); for (a in e) u(e, a) && !u(t, a) && s(e[a]) && (n[a] = m({}, n[a])); return n } function H(e) { null != e && this.set(e) } function j(e, t, a) { var n = this._calendar[e] || this._calendar.sameElse; return v(n) ? n.call(t, a) : n } function x(e) { var t = this._longDateFormat[e], a = this._longDateFormat[e.toUpperCase()]; return t || !a ? t : (this._longDateFormat[e] = a.replace(/MMMM|MM|DD|dddd/g, function (e) { return e.slice(1) }), this._longDateFormat[e]) } function O() { return this._invalidDate } function P(e) { return this._ordinal.replace("%d", e) } function W(e, t, a, n) { var s = this._relativeTime[a]; return v(s) ? s(e, t, a, n) : s.replace(/%d/i, e) } function E(e, t) { var a = this._relativeTime[e > 0 ? "future" : "past"]; return v(a) ? a(t) : a.replace(/%s/i, t) } function A(e, t) { var a = e.toLowerCase(); Pn[a] = Pn[a + "s"] = Pn[t] = e } function F(e) { return "string" == typeof e ? Pn[e] || Pn[e.toLowerCase()] : void 0 } function z(e) { var t, a, n = {}; for (a in e) u(e, a) && (t = F(a)) && (n[t] = e[a]); return n } function J(e, t) { Wn[e] = t } function R(e) { var t = []; for (var a in e) t.push({ unit: a, priority: Wn[a] }); return t.sort(function (e, t) { return e.priority - t.priority }), t } function N(e, a) { return function (n) { return null != n ? (C(this, e, n), t.updateOffset(this, a), this) : I(this, e) } } function I(e, t) { return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN } function C(e, t, a) { e.isValid() && e._d["set" + (e._isUTC ? "UTC" : "") + t](a) } function U(e) { return e = F(e), v(this[e]) ? this[e]() : this } function G(e, t) { if ("object" == typeof e) { e = z(e); for (var a = R(e), n = 0; n < a.length; n++)this[a[n].unit](e[a[n].unit]) } else if (e = F(e), v(this[e])) return this[e](t); return this } function V(e, t, a) { var n = "" + Math.abs(e), s = t - n.length; return (e >= 0 ? a ? "+" : "" : "-") + Math.pow(10, Math.max(0, s)).toString().substr(1) + n } function B(e, t, a, n) { var s = n; "string" == typeof n && (s = function () { return this[n]() }), e && (zn[e] = s), t && (zn[t[0]] = function () { return V(s.apply(this, arguments), t[1], t[2]) }), a && (zn[a] = function () { return this.localeData().ordinal(s.apply(this, arguments), e) }) } function $(e) { return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "") } function K(e) { var t, a, n = e.match(En); for (t = 0, a = n.length; t < a; t++)zn[n[t]] ? n[t] = zn[n[t]] : n[t] = $(n[t]); return function (t) { var s, r = ""; for (s = 0; s < a; s++)r += v(n[s]) ? n[s].call(t, e) : n[s]; return r } } function Z(e, t) { return e.isValid() ? (t = q(t, e.localeData()), Fn[t] = Fn[t] || K(t), Fn[t](e)) : e.localeData().invalidDate() } function q(e, t) { function a(e) { return t.longDateFormat(e) || e } var n = 5; for (An.lastIndex = 0; n >= 0 && An.test(e);)e = e.replace(An, a), An.lastIndex = 0, n -= 1; return e } function Q(e, t, a) { as[e] = v(t) ? t : function (e, n) { return e && a ? a : t } } function X(e, t) { return u(as, e) ? as[e](t._strict, t._locale) : new RegExp(ee(e)) } function ee(e) { return te(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (e, t, a, n, s) { return t || a || n || s })) } function te(e) { return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&") } function ae(e, t) { var a, n = t; for ("string" == typeof e && (e = [e]), d(t) && (n = function (e, a) { a[t] = k(e) }), a = 0; a < e.length; a++)ns[e[a]] = n } function ne(e, t) { ae(e, function (e, a, n, s) { n._w = n._w || {}, t(e, n._w, n, s) }) } function se(e, t, a) { null != t && u(ns, e) && ns[e](t, a._a, a, e) } function re(e, t) { return new Date(Date.UTC(e, t + 1, 0)).getUTCDate() } function ie(e, t) { return e ? n(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Ms).test(t) ? "format" : "standalone"][e.month()] : n(this._months) ? this._months : this._months.standalone } function de(e, t) { return e ? n(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Ms.test(t) ? "format" : "standalone"][e.month()] : n(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone } function _e(e, t, a) { var n, s, r, i = e.toLocaleLowerCase(); if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], n = 0; n < 12; ++n)r = l([2e3, n]), this._shortMonthsParse[n] = this.monthsShort(r, "").toLocaleLowerCase(), this._longMonthsParse[n] = this.months(r, "").toLocaleLowerCase(); return a ? "MMM" === t ? (s = cs.call(this._shortMonthsParse, i), -1 !== s ? s : null) : (s = cs.call(this._longMonthsParse, i), -1 !== s ? s : null) : "MMM" === t ? -1 !== (s = cs.call(this._shortMonthsParse, i)) ? s : (s = cs.call(this._longMonthsParse, i), -1 !== s ? s : null) : -1 !== (s = cs.call(this._longMonthsParse, i)) ? s : (s = cs.call(this._shortMonthsParse, i), -1 !== s ? s : null) } function oe(e, t, a) { var n, s, r; if (this._monthsParseExact) return _e.call(this, e, t, a); for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), n = 0; n < 12; n++) { if (s = l([2e3, n]), a && !this._longMonthsParse[n] && (this._longMonthsParse[n] = new RegExp("^" + this.months(s, "").replace(".", "") + "$", "i"), this._shortMonthsParse[n] = new RegExp("^" + this.monthsShort(s, "").replace(".", "") + "$", "i")), a || this._monthsParse[n] || (r = "^" + this.months(s, "") + "|^" + this.monthsShort(s, ""), this._monthsParse[n] = new RegExp(r.replace(".", ""), "i")), a && "MMMM" === t && this._longMonthsParse[n].test(e)) return n; if (a && "MMM" === t && this._shortMonthsParse[n].test(e)) return n; if (!a && this._monthsParse[n].test(e)) return n } } function ue(e, t) { var a; if (!e.isValid()) return e; if ("string" == typeof t) if (/^\d+$/.test(t)) t = k(t); else if (t = e.localeData().monthsParse(t), !d(t)) return e; return a = Math.min(e.date(), re(e.year(), t)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, a), e } function me(e) { return null != e ? (ue(this, e), t.updateOffset(this, !0), this) : I(this, "Month") } function le() { return re(this.year(), this.month()) } function ce(e) { return this._monthsParseExact ? (u(this, "_monthsRegex") || he.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (u(this, "_monthsShortRegex") || (this._monthsShortRegex = fs), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex) } function Me(e) { return this._monthsParseExact ? (u(this, "_monthsRegex") || he.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (u(this, "_monthsRegex") || (this._monthsRegex = Ys), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex) } function he() { function e(e, t) { return t.length - e.length } var t, a, n = [], s = [], r = []; for (t = 0; t < 12; t++)a = l([2e3, t]), n.push(this.monthsShort(a, "")), s.push(this.months(a, "")), r.push(this.months(a, "")), r.push(this.monthsShort(a, "")); for (n.sort(e), s.sort(e), r.sort(e), t = 0; t < 12; t++)n[t] = te(n[t]), s[t] = te(s[t]); for (t = 0; t < 24; t++)r[t] = te(r[t]); this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + n.join("|") + ")", "i") } function Le(e) { return fe(e) ? 366 : 365 } function fe(e) { return e % 4 == 0 && e % 100 != 0 || e % 400 == 0 } function Ye() { return fe(this.year()) } function ye(e, t, a, n, s, r, i) { var d = new Date(e, t, a, n, s, r, i); return e < 100 && e >= 0 && isFinite(d.getFullYear()) && d.setFullYear(e), d } function pe(e) { var t = new Date(Date.UTC.apply(null, arguments)); return e < 100 && e >= 0 && isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e), t } function ke(e, t, a) { var n = 7 + t - a; return -(7 + pe(e, 0, n).getUTCDay() - t) % 7 + n - 1 } function De(e, t, a, n, s) { var r, i, d = (7 + a - n) % 7, _ = ke(e, n, s), o = 1 + 7 * (t - 1) + d + _; return o <= 0 ? (r = e - 1, i = Le(r) + o) : o > Le(e) ? (r = e + 1, i = o - Le(e)) : (r = e, i = o), { year: r, dayOfYear: i } } function ge(e, t, a) { var n, s, r = ke(e.year(), t, a), i = Math.floor((e.dayOfYear() - r - 1) / 7) + 1; return i < 1 ? (s = e.year() - 1, n = i + Te(s, t, a)) : i > Te(e.year(), t, a) ? (n = i - Te(e.year(), t, a), s = e.year() + 1) : (s = e.year(), n = i), { week: n, year: s } } function Te(e, t, a) { var n = ke(e, t, a), s = ke(e + 1, t, a); return (Le(e) - n + s) / 7 } function we(e) { return ge(e, this._week.dow, this._week.doy).week } function ve() { return this._week.dow } function Se() { return this._week.doy } function be(e) { var t = this.localeData().week(this); return null == e ? t : this.add(7 * (e - t), "d") } function He(e) { var t = ge(this, 1, 4).week; return null == e ? t : this.add(7 * (e - t), "d") } function je(e, t) { return "string" != typeof e ? e : isNaN(e) ? (e = t.weekdaysParse(e), "number" == typeof e ? e : null) : parseInt(e, 10) } function xe(e, t) { return "string" == typeof e ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e } function Oe(e, t) { return e ? n(this._weekdays) ? this._weekdays[e.day()] : this._weekdays[this._weekdays.isFormat.test(t) ? "format" : "standalone"][e.day()] : n(this._weekdays) ? this._weekdays : this._weekdays.standalone } function Pe(e) { return e ? this._weekdaysShort[e.day()] : this._weekdaysShort } function We(e) { return e ? this._weekdaysMin[e.day()] : this._weekdaysMin } function Ee(e, t, a) { var n, s, r, i = e.toLocaleLowerCase(); if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], n = 0; n < 7; ++n)r = l([2e3, 1]).day(n), this._minWeekdaysParse[n] = this.weekdaysMin(r, "").toLocaleLowerCase(), this._shortWeekdaysParse[n] = this.weekdaysShort(r, "").toLocaleLowerCase(), this._weekdaysParse[n] = this.weekdays(r, "").toLocaleLowerCase(); return a ? "dddd" === t ? (s = cs.call(this._weekdaysParse, i), -1 !== s ? s : null) : "ddd" === t ? (s = cs.call(this._shortWeekdaysParse, i), -1 !== s ? s : null) : (s = cs.call(this._minWeekdaysParse, i), -1 !== s ? s : null) : "dddd" === t ? -1 !== (s = cs.call(this._weekdaysParse, i)) ? s : -1 !== (s = cs.call(this._shortWeekdaysParse, i)) ? s : (s = cs.call(this._minWeekdaysParse, i), -1 !== s ? s : null) : "ddd" === t ? -1 !== (s = cs.call(this._shortWeekdaysParse, i)) ? s : -1 !== (s = cs.call(this._weekdaysParse, i)) ? s : (s = cs.call(this._minWeekdaysParse, i), -1 !== s ? s : null) : -1 !== (s = cs.call(this._minWeekdaysParse, i)) ? s : -1 !== (s = cs.call(this._weekdaysParse, i)) ? s : (s = cs.call(this._shortWeekdaysParse, i), -1 !== s ? s : null) } function Ae(e, t, a) { var n, s, r; if (this._weekdaysParseExact) return Ee.call(this, e, t, a); for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), n = 0; n < 7; n++) { if (s = l([2e3, 1]).day(n), a && !this._fullWeekdaysParse[n] && (this._fullWeekdaysParse[n] = new RegExp("^" + this.weekdays(s, "").replace(".", ".?") + "$", "i"), this._shortWeekdaysParse[n] = new RegExp("^" + this.weekdaysShort(s, "").replace(".", ".?") + "$", "i"), this._minWeekdaysParse[n] = new RegExp("^" + this.weekdaysMin(s, "").replace(".", ".?") + "$", "i")), this._weekdaysParse[n] || (r = "^" + this.weekdays(s, "") + "|^" + this.weekdaysShort(s, "") + "|^" + this.weekdaysMin(s, ""), this._weekdaysParse[n] = new RegExp(r.replace(".", ""), "i")), a && "dddd" === t && this._fullWeekdaysParse[n].test(e)) return n; if (a && "ddd" === t && this._shortWeekdaysParse[n].test(e)) return n; if (a && "dd" === t && this._minWeekdaysParse[n].test(e)) return n; if (!a && this._weekdaysParse[n].test(e)) return n } } function Fe(e) { if (!this.isValid()) return null != e ? this : NaN; var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); return null != e ? (e = je(e, this.localeData()), this.add(e - t, "d")) : t } function ze(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") } function Je(e) { if (!this.isValid()) return null != e ? this : NaN; if (null != e) { var t = xe(e, this.localeData()); return this.day(this.day() % 7 ? t : t - 7) } return this.day() || 7 } function Re(e) { return this._weekdaysParseExact ? (u(this, "_weekdaysRegex") || Ce.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (u(this, "_weekdaysRegex") || (this._weekdaysRegex = Ts), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex) } function Ne(e) { return this._weekdaysParseExact ? (u(this, "_weekdaysRegex") || Ce.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (u(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = ws), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) } function Ie(e) { return this._weekdaysParseExact ? (u(this, "_weekdaysRegex") || Ce.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (u(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = vs), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) } function Ce() { function e(e, t) { return t.length - e.length } var t, a, n, s, r, i = [], d = [], _ = [], o = []; for (t = 0; t < 7; t++)a = l([2e3, 1]).day(t), n = this.weekdaysMin(a, ""), s = this.weekdaysShort(a, ""), r = this.weekdays(a, ""), i.push(n), d.push(s), _.push(r), o.push(n), o.push(s), o.push(r); for (i.sort(e), d.sort(e), _.sort(e), o.sort(e), t = 0; t < 7; t++)d[t] = te(d[t]), _[t] = te(_[t]), o[t] = te(o[t]); this._weekdaysRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + _.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + i.join("|") + ")", "i") } function Ue() { return this.hours() % 12 || 12 } function Ge() { return this.hours() || 24 } function Ve(e, t) { B(e, 0, 0, function () { return this.localeData().meridiem(this.hours(), this.minutes(), t) }) } function Be(e, t) { return t._meridiemParse } function $e(e) { return "p" === (e + "").toLowerCase().charAt(0) } function Ke(e, t, a) { return e > 11 ? a ? "pm" : "PM" : a ? "am" : "AM" } function Ze(e) { return e ? e.toLowerCase().replace("_", "-") : e } function qe(e) { for (var t, a, n, s, r = 0; r < e.length;) { for (s = Ze(e[r]).split("-"), t = s.length, a = Ze(e[r + 1]), a = a ? a.split("-") : null; t > 0;) { if (n = Qe(s.slice(0, t).join("-"))) return n; if (a && a.length >= t && D(s, a, !0) >= t - 1) break; t-- } r++ } return null } function Qe(t) { var n = null; if (!xs[t] && void 0 !== e && e && e.exports) try { n = Ss._abbr, a(125)("./" + t), Xe(n) } catch (e) { } return xs[t] } function Xe(e, t) { var a; return e && (a = i(t) ? at(e) : et(e, t)) && (Ss = a), Ss._abbr } function et(e, t) { if (null !== t) { var a = js; if (t.abbr = e, null != xs[e]) w("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."), a = xs[e]._config; else if (null != t.parentLocale) { if (null == xs[t.parentLocale]) return Os[t.parentLocale] || (Os[t.parentLocale] = []), Os[t.parentLocale].push({ name: e, config: t }), null; a = xs[t.parentLocale]._config } return xs[e] = new H(b(a, t)), Os[e] && Os[e].forEach(function (e) { et(e.name, e.config) }), Xe(e), xs[e] } return delete xs[e], null } function tt(e, t) { if (null != t) { var a, n = js; null != xs[e] && (n = xs[e]._config), t = b(n, t), a = new H(t), a.parentLocale = xs[e], xs[e] = a, Xe(e) } else null != xs[e] && (null != xs[e].parentLocale ? xs[e] = xs[e].parentLocale : null != xs[e] && delete xs[e]); return xs[e] } function at(e) { var t; if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return Ss; if (!n(e)) { if (t = Qe(e)) return t; e = [e] } return qe(e) } function nt() { return bn(xs) } function st(e) { var t, a = e._a; return a && -2 === M(e).overflow && (t = a[rs] < 0 || a[rs] > 11 ? rs : a[is] < 1 || a[is] > re(a[ss], a[rs]) ? is : a[ds] < 0 || a[ds] > 24 || 24 === a[ds] && (0 !== a[_s] || 0 !== a[os] || 0 !== a[us]) ? ds : a[_s] < 0 || a[_s] > 59 ? _s : a[os] < 0 || a[os] > 59 ? os : a[us] < 0 || a[us] > 999 ? us : -1, M(e)._overflowDayOfYear && (t < ss || t > is) && (t = is), M(e)._overflowWeeks && -1 === t && (t = ms), M(e)._overflowWeekday && -1 === t && (t = ls), M(e).overflow = t), e } function rt(e) { var t, a, n, s, r, i, d = e._i, _ = Ps.exec(d) || Ws.exec(d); if (_) { for (M(e).iso = !0, t = 0, a = As.length; t < a; t++)if (As[t][1].exec(_[1])) { s = As[t][0], n = !1 !== As[t][2]; break } if (null == s) return void (e._isValid = !1); if (_[3]) { for (t = 0, a = Fs.length; t < a; t++)if (Fs[t][1].exec(_[3])) { r = (_[2] || " ") + Fs[t][0]; break } if (null == r) return void (e._isValid = !1) } if (!n && null != r) return void (e._isValid = !1); if (_[4]) { if (!Es.exec(_[4])) return void (e._isValid = !1); i = "Z" } e._f = s + (r || "") + (i || ""), lt(e) } else e._isValid = !1 } function it(e) { var t, a, n, s, r, i, d, _, o = { " GMT": " +0000", " EDT": " -0400", " EST": " -0500", " CDT": " -0500", " CST": " -0600", " MDT": " -0600", " MST": " -0700", " PDT": " -0700", " PST": " -0800" }, u = "YXWVUTSRQPONZABCDEFGHIKLM"; if (t = e._i.replace(/\([^\)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s|\s$/g, ""), a = Js.exec(t)) { if (n = a[1] ? "ddd" + (5 === a[1].length ? ", " : " ") : "", s = "D MMM " + (a[2].length > 10 ? "YYYY " : "YY "), r = "HH:mm" + (a[4] ? ":ss" : ""), a[1]) { var m = new Date(a[2]), l = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"][m.getDay()]; if (a[1].substr(0, 3) !== l) return M(e).weekdayMismatch = !0, void (e._isValid = !1) } switch (a[5].length) { case 2: 0 === _ ? d = " +0000" : (_ = u.indexOf(a[5][1].toUpperCase()) - 12, d = (_ < 0 ? " -" : " +") + ("" + _).replace(/^-?/, "0").match(/..$/)[0] + "00"); break; case 4: d = o[a[5]]; break; default: d = o[" GMT"] }a[5] = d, e._i = a.splice(1).join(""), i = " ZZ", e._f = n + s + r + i, lt(e), M(e).rfc2822 = !0 } else e._isValid = !1 } function dt(e) { var a = zs.exec(e._i); if (null !== a) return void (e._d = new Date(+a[1])); rt(e), !1 === e._isValid && (delete e._isValid, it(e), !1 === e._isValid && (delete e._isValid, t.createFromInputFallback(e))) } function _t(e, t, a) { return null != e ? e : null != t ? t : a } function ot(e) { var a = new Date(t.now()); return e._useUTC ? [a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()] : [a.getFullYear(), a.getMonth(), a.getDate()] } function ut(e) { var t, a, n, s, r = []; if (!e._d) { for (n = ot(e), e._w && null == e._a[is] && null == e._a[rs] && mt(e), null != e._dayOfYear && (s = _t(e._a[ss], n[ss]), (e._dayOfYear > Le(s) || 0 === e._dayOfYear) && (M(e)._overflowDayOfYear = !0), a = pe(s, 0, e._dayOfYear), e._a[rs] = a.getUTCMonth(), e._a[is] = a.getUTCDate()), t = 0; t < 3 && null == e._a[t]; ++t)e._a[t] = r[t] = n[t]; for (; t < 7; t++)e._a[t] = r[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t]; 24 === e._a[ds] && 0 === e._a[_s] && 0 === e._a[os] && 0 === e._a[us] && (e._nextDay = !0, e._a[ds] = 0), e._d = (e._useUTC ? pe : ye).apply(null, r), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[ds] = 24) } } function mt(e) { var t, a, n, s, r, i, d, _; if (t = e._w, null != t.GG || null != t.W || null != t.E) r = 1, i = 4, a = _t(t.GG, e._a[ss], ge(pt(), 1, 4).year), n = _t(t.W, 1), ((s = _t(t.E, 1)) < 1 || s > 7) && (_ = !0); else { r = e._locale._week.dow, i = e._locale._week.doy; var o = ge(pt(), r, i); a = _t(t.gg, e._a[ss], o.year), n = _t(t.w, o.week), null != t.d ? ((s = t.d) < 0 || s > 6) && (_ = !0) : null != t.e ? (s = t.e + r, (t.e < 0 || t.e > 6) && (_ = !0)) : s = r } n < 1 || n > Te(a, r, i) ? M(e)._overflowWeeks = !0 : null != _ ? M(e)._overflowWeekday = !0 : (d = De(a, n, s, r, i), e._a[ss] = d.year, e._dayOfYear = d.dayOfYear) } function lt(e) { if (e._f === t.ISO_8601) return void rt(e); if (e._f === t.RFC_2822) return void it(e); e._a = [], M(e).empty = !0; var a, n, s, r, i, d = "" + e._i, _ = d.length, o = 0; for (s = q(e._f, e._locale).match(En) || [], a = 0; a < s.length; a++)r = s[a], n = (d.match(X(r, e)) || [])[0], n && (i = d.substr(0, d.indexOf(n)), i.length > 0 && M(e).unusedInput.push(i), d = d.slice(d.indexOf(n) + n.length), o += n.length), zn[r] ? (n ? M(e).empty = !1 : M(e).unusedTokens.push(r), se(r, n, e)) : e._strict && !n && M(e).unusedTokens.push(r); M(e).charsLeftOver = _ - o, d.length > 0 && M(e).unusedInput.push(d), e._a[ds] <= 12 && !0 === M(e).bigHour && e._a[ds] > 0 && (M(e).bigHour = void 0), M(e).parsedDateParts = e._a.slice(0), M(e).meridiem = e._meridiem, e._a[ds] = ct(e._locale, e._a[ds], e._meridiem), ut(e), st(e) } function ct(e, t, a) { var n; return null == a ? t : null != e.meridiemHour ? e.meridiemHour(t, a) : null != e.isPM ? (n = e.isPM(a), n && t < 12 && (t += 12), n || 12 !== t || (t = 0), t) : t } function Mt(e) { var t, a, n, s, r; if (0 === e._f.length) return M(e).invalidFormat = !0, void (e._d = new Date(NaN)); for (s = 0; s < e._f.length; s++)r = 0, t = f({}, e), null != e._useUTC && (t._useUTC = e._useUTC), t._f = e._f[s], lt(t), h(t) && (r += M(t).charsLeftOver, r += 10 * M(t).unusedTokens.length, M(t).score = r, (null == n || r < n) && (n = r, a = t)); m(e, a || t) } function ht(e) { if (!e._d) { var t = z(e._i); e._a = o([t.year, t.month, t.day || t.date, t.hour, t.minute, t.second, t.millisecond], function (e) { return e && parseInt(e, 10) }), ut(e) } } function Lt(e) { var t = new Y(st(ft(e))); return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t } function ft(e) { var t = e._i, a = e._f; return e._locale = e._locale || at(e._l), null === t || void 0 === a && "" === t ? L({ nullInput: !0 }) : ("string" == typeof t && (e._i = t = e._locale.preparse(t)), y(t) ? new Y(st(t)) : (_(t) ? e._d = t : n(a) ? Mt(e) : a ? lt(e) : Yt(e), h(e) || (e._d = null), e)) } function Yt(e) { var a = e._i; i(a) ? e._d = new Date(t.now()) : _(a) ? e._d = new Date(a.valueOf()) : "string" == typeof a ? dt(e) : n(a) ? (e._a = o(a.slice(0), function (e) { return parseInt(e, 10) }), ut(e)) : s(a) ? ht(e) : d(a) ? e._d = new Date(a) : t.createFromInputFallback(e) } function yt(e, t, a, i, d) { var _ = {}; return !0 !== a && !1 !== a || (i = a, a = void 0), (s(e) && r(e) || n(e) && 0 === e.length) && (e = void 0), _._isAMomentObject = !0, _._useUTC = _._isUTC = d, _._l = a, _._i = e, _._f = t, _._strict = i, Lt(_) } function pt(e, t, a, n) { return yt(e, t, a, n, !1) } function kt(e, t) { var a, s; if (1 === t.length && n(t[0]) && (t = t[0]), !t.length) return pt(); for (a = t[0], s = 1; s < t.length; ++s)t[s].isValid() && !t[s][e](a) || (a = t[s]); return a } function Dt() { return kt("isBefore", [].slice.call(arguments, 0)) } function gt() { return kt("isAfter", [].slice.call(arguments, 0)) } function Tt(e) { for (var t in e) if (-1 === Cs.indexOf(t) || null != e[t] && isNaN(e[t])) return !1; for (var a = !1, n = 0; n < Cs.length; ++n)if (e[Cs[n]]) { if (a) return !1; parseFloat(e[Cs[n]]) !== k(e[Cs[n]]) && (a = !0) } return !0 } function wt() { return this._isValid } function vt() { return Gt(NaN) } function St(e) { var t = z(e), a = t.year || 0, n = t.quarter || 0, s = t.month || 0, r = t.week || 0, i = t.day || 0, d = t.hour || 0, _ = t.minute || 0, o = t.second || 0, u = t.millisecond || 0; this._isValid = Tt(t), this._milliseconds = +u + 1e3 * o + 6e4 * _ + 1e3 * d * 60 * 60, this._days = +i + 7 * r, this._months = +s + 3 * n + 12 * a, this._data = {}, this._locale = at(), this._bubble() } function bt(e) { return e instanceof St } function Ht(e) { return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e) } function jt(e, t) { B(e, 0, 0, function () { var e = this.utcOffset(), a = "+"; return e < 0 && (e = -e, a = "-"), a + V(~~(e / 60), 2) + t + V(~~e % 60, 2) }) } function xt(e, t) { var a = (t || "").match(e); if (null === a) return null; var n = a[a.length - 1] || [], s = (n + "").match(Us) || ["-", 0, 0], r = 60 * s[1] + k(s[2]); return 0 === r ? 0 : "+" === s[0] ? r : -r } function Ot(e, a) { var n, s; return a._isUTC ? (n = a.clone(), s = (y(e) || _(e) ? e.valueOf() : pt(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), t.updateOffset(n, !1), n) : pt(e).local() } function Pt(e) { return 15 * -Math.round(e._d.getTimezoneOffset() / 15) } function Wt(e, a, n) { var s, r = this._offset || 0; if (!this.isValid()) return null != e ? this : NaN; if (null != e) { if ("string" == typeof e) { if (null === (e = xt(Xn, e))) return this } else Math.abs(e) < 16 && !n && (e *= 60); return !this._isUTC && a && (s = Pt(this)), this._offset = e, this._isUTC = !0, null != s && this.add(s, "m"), r !== e && (!a || this._changeInProgress ? Zt(this, Gt(e - r, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0, t.updateOffset(this, !0), this._changeInProgress = null)), this } return this._isUTC ? r : Pt(this) } function Et(e, t) { return null != e ? ("string" != typeof e && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset() } function At(e) { return this.utcOffset(0, e) } function Ft(e) { return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Pt(this), "m")), this } function zt() { if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); else if ("string" == typeof this._i) { var e = xt(Qn, this._i); null != e ? this.utcOffset(e) : this.utcOffset(0, !0) } return this } function Jt(e) { return !!this.isValid() && (e = e ? pt(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0) } function Rt() { return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset() } function Nt() { if (!i(this._isDSTShifted)) return this._isDSTShifted; var e = {}; if (f(e, this), e = ft(e), e._a) { var t = e._isUTC ? l(e._a) : pt(e._a); this._isDSTShifted = this.isValid() && D(e._a, t.toArray()) > 0 } else this._isDSTShifted = !1; return this._isDSTShifted } function It() { return !!this.isValid() && !this._isUTC } function Ct() { return !!this.isValid() && this._isUTC } function Ut() { return !!this.isValid() && (this._isUTC && 0 === this._offset) } function Gt(e, t) { var a, n, s, r = e, i = null; return bt(e) ? r = { ms: e._milliseconds, d: e._days, M: e._months } : d(e) ? (r = {}, t ? r[t] = e : r.milliseconds = e) : (i = Gs.exec(e)) ? (a = "-" === i[1] ? -1 : 1, r = { y: 0, d: k(i[is]) * a, h: k(i[ds]) * a, m: k(i[_s]) * a, s: k(i[os]) * a, ms: k(Ht(1e3 * i[us])) * a }) : (i = Vs.exec(e)) ? (a = "-" === i[1] ? -1 : 1, r = { y: Vt(i[2], a), M: Vt(i[3], a), w: Vt(i[4], a), d: Vt(i[5], a), h: Vt(i[6], a), m: Vt(i[7], a), s: Vt(i[8], a) }) : null == r ? r = {} : "object" == typeof r && ("from" in r || "to" in r) && (s = $t(pt(r.from), pt(r.to)), r = {}, r.ms = s.milliseconds, r.M = s.months), n = new St(r), bt(e) && u(e, "_locale") && (n._locale = e._locale), n } function Vt(e, t) { var a = e && parseFloat(e.replace(",", ".")); return (isNaN(a) ? 0 : a) * t } function Bt(e, t) { var a = { milliseconds: 0, months: 0 }; return a.months = t.month() - e.month() + 12 * (t.year() - e.year()), e.clone().add(a.months, "M").isAfter(t) && --a.months, a.milliseconds = +t - +e.clone().add(a.months, "M"), a } function $t(e, t) { var a; return e.isValid() && t.isValid() ? (t = Ot(t, e), e.isBefore(t) ? a = Bt(e, t) : (a = Bt(t, e), a.milliseconds = -a.milliseconds, a.months = -a.months), a) : { milliseconds: 0, months: 0 } } function Kt(e, t) { return function (a, n) { var s, r; return null === n || isNaN(+n) || (w(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), r = a, a = n, n = r), a = "string" == typeof a ? +a : a, s = Gt(a, n), Zt(this, s, e), this } } function Zt(e, a, n, s) { var r = a._milliseconds, i = Ht(a._days), d = Ht(a._months); e.isValid() && (s = null == s || s, r && e._d.setTime(e._d.valueOf() + r * n), i && C(e, "Date", I(e, "Date") + i * n), d && ue(e, I(e, "Month") + d * n), s && t.updateOffset(e, i || d)) } function qt(e, t) { var a = e.diff(t, "days", !0); return a < -6 ? "sameElse" : a < -1 ? "lastWeek" : a < 0 ? "lastDay" : a < 1 ? "sameDay" : a < 2 ? "nextDay" : a < 7 ? "nextWeek" : "sameElse" } function Qt(e, a) { var n = e || pt(), s = Ot(n, this).startOf("day"), r = t.calendarFormat(this, s) || "sameElse", i = a && (v(a[r]) ? a[r].call(this, n) : a[r]); return this.format(i || this.localeData().calendar(r, this, pt(n))) } function Xt() { return new Y(this) } function ea(e, t) { var a = y(e) ? e : pt(e); return !(!this.isValid() || !a.isValid()) && (t = F(i(t) ? "millisecond" : t), "millisecond" === t ? this.valueOf() > a.valueOf() : a.valueOf() < this.clone().startOf(t).valueOf()) } function ta(e, t) { var a = y(e) ? e : pt(e); return !(!this.isValid() || !a.isValid()) && (t = F(i(t) ? "millisecond" : t), "millisecond" === t ? this.valueOf() < a.valueOf() : this.clone().endOf(t).valueOf() < a.valueOf()) } function aa(e, t, a, n) { return n = n || "()", ("(" === n[0] ? this.isAfter(e, a) : !this.isBefore(e, a)) && (")" === n[1] ? this.isBefore(t, a) : !this.isAfter(t, a)) } function na(e, t) { var a, n = y(e) ? e : pt(e); return !(!this.isValid() || !n.isValid()) && (t = F(t || "millisecond"), "millisecond" === t ? this.valueOf() === n.valueOf() : (a = n.valueOf(), this.clone().startOf(t).valueOf() <= a && a <= this.clone().endOf(t).valueOf())) } function sa(e, t) { return this.isSame(e, t) || this.isAfter(e, t) } function ra(e, t) { return this.isSame(e, t) || this.isBefore(e, t) } function ia(e, t, a) { var n, s, r, i; return this.isValid() ? (n = Ot(e, this), n.isValid() ? (s = 6e4 * (n.utcOffset() - this.utcOffset()), t = F(t), "year" === t || "month" === t || "quarter" === t ? (i = da(this, n), "quarter" === t ? i /= 3 : "year" === t && (i /= 12)) : (r = this - n, i = "second" === t ? r / 1e3 : "minute" === t ? r / 6e4 : "hour" === t ? r / 36e5 : "day" === t ? (r - s) / 864e5 : "week" === t ? (r - s) / 6048e5 : r), a ? i : p(i)) : NaN) : NaN } function da(e, t) { var a, n, s = 12 * (t.year() - e.year()) + (t.month() - e.month()), r = e.clone().add(s, "months"); return t - r < 0 ? (a = e.clone().add(s - 1, "months"), n = (t - r) / (r - a)) : (a = e.clone().add(s + 1, "months"), n = (t - r) / (a - r)), -(s + n) || 0 } function _a() { return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ") } function oa() { if (!this.isValid()) return null; var e = this.clone().utc(); return e.year() < 0 || e.year() > 9999 ? Z(e, "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]") : v(Date.prototype.toISOString) ? this.toDate().toISOString() : Z(e, "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]") } function ua() { 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 a = "[" + e + '("]', n = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", s = t + '[")]'; return this.format(a + n + "-MM-DD[T]HH:mm:ss.SSS" + s) } function ma(e) { e || (e = this.isUtc() ? t.defaultFormatUtc : t.defaultFormat); var a = Z(this, e); return this.localeData().postformat(a) } function la(e, t) { return this.isValid() && (y(e) && e.isValid() || pt(e).isValid()) ? Gt({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate() } function ca(e) { return this.from(pt(), e) } function Ma(e, t) { return this.isValid() && (y(e) && e.isValid() || pt(e).isValid()) ? Gt({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate() } function ha(e) { return this.to(pt(), e) } function La(e) { var t; return void 0 === e ? this._locale._abbr : (t = at(e), null != t && (this._locale = t), this) } function fa() { return this._locale } function Ya(e) { switch (e = F(e)) { case "year": this.month(0); case "quarter": case "month": this.date(1); case "week": case "isoWeek": case "day": case "date": this.hours(0); case "hour": this.minutes(0); case "minute": this.seconds(0); case "second": this.milliseconds(0) }return "week" === e && this.weekday(0), "isoWeek" === e && this.isoWeekday(1), "quarter" === e && this.month(3 * Math.floor(this.month() / 3)), this } function ya(e) { return void 0 === (e = F(e)) || "millisecond" === e ? this : ("date" === e && (e = "day"), this.startOf(e).add(1, "isoWeek" === e ? "week" : e).subtract(1, "ms")) } function pa() { return this._d.valueOf() - 6e4 * (this._offset || 0) } function ka() { return Math.floor(this.valueOf() / 1e3) } function Da() { return new Date(this.valueOf()) } function ga() { var e = this; return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()] } function Ta() { var e = this; return { years: e.year(), months: e.month(), date: e.date(), hours: e.hours(), minutes: e.minutes(), seconds: e.seconds(), milliseconds: e.milliseconds() } } function wa() { return this.isValid() ? this.toISOString() : null } function va() { return h(this) } function Sa() { return m({}, M(this)) } function ba() { return M(this).overflow } function Ha() { return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict } } function ja(e, t) { B(0, [e, e.length], 0, t) } function xa(e) { return Ea.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy) } function Oa(e) { return Ea.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4) } function Pa() { return Te(this.year(), 1, 4) } function Wa() { var e = this.localeData()._week; return Te(this.year(), e.dow, e.doy) } function Ea(e, t, a, n, s) { var r; return null == e ? ge(this, n, s).year : (r = Te(e, n, s), t > r && (t = r), Aa.call(this, e, t, a, n, s)) } function Aa(e, t, a, n, s) { var r = De(e, t, a, n, s), i = pe(r.year, 0, r.dayOfYear); return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this } function Fa(e) { return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3) } function za(e) { var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1; return null == e ? t : this.add(e - t, "d") } function Ja(e, t) { t[us] = k(1e3 * ("0." + e)) } function Ra() { return this._isUTC ? "UTC" : "" } function Na() { return this._isUTC ? "Coordinated Universal Time" : "" } function Ia(e) { return pt(1e3 * e) } function Ca() { return pt.apply(null, arguments).parseZone() } function Ua(e) { return e } function Ga(e, t, a, n) { var s = at(), r = l().set(n, t); return s[a](r, e) } function Va(e, t, a) { if (d(e) && (t = e, e = void 0), e = e || "", null != t) return Ga(e, t, a, "month"); var n, s = []; for (n = 0; n < 12; n++)s[n] = Ga(e, n, a, "month"); return s } function Ba(e, t, a, n) { "boolean" == typeof e ? (d(t) && (a = t, t = void 0), t = t || "") : (t = e, a = t, e = !1, d(t) && (a = t, t = void 0), t = t || ""); var s = at(), r = e ? s._week.dow : 0; if (null != a) return Ga(t, (a + r) % 7, n, "day"); var i, _ = []; for (i = 0; i < 7; i++)_[i] = Ga(t, (i + r) % 7, n, "day"); return _ } function $a(e, t) { return Va(e, t, "months") } function Ka(e, t) { return Va(e, t, "monthsShort") } function Za(e, t, a) { return Ba(e, t, a, "weekdays") } function qa(e, t, a) { return Ba(e, t, a, "weekdaysShort") } function Qa(e, t, a) { return Ba(e, t, a, "weekdaysMin") } function Xa() { var e = this._data; return this._milliseconds = nr(this._milliseconds), this._days = nr(this._days), this._months = nr(this._months), e.milliseconds = nr(e.milliseconds), e.seconds = nr(e.seconds), e.minutes = nr(e.minutes), e.hours = nr(e.hours), e.months = nr(e.months), e.years = nr(e.years), this } function en(e, t, a, n) { var s = Gt(t, a); return e._milliseconds += n * s._milliseconds, e._days += n * s._days, e._months += n * s._months, e._bubble() } function tn(e, t) { return en(this, e, t, 1) } function an(e, t) { return en(this, e, t, -1) } function nn(e) { return e < 0 ? Math.floor(e) : Math.ceil(e) } function sn() { var e, t, a, n, s, r = this._milliseconds, i = this._days, d = this._months, _ = this._data; return r >= 0 && i >= 0 && d >= 0 || r <= 0 && i <= 0 && d <= 0 || (r += 864e5 * nn(dn(d) + i), i = 0, d = 0), _.milliseconds = r % 1e3, e = p(r / 1e3), _.seconds = e % 60, t = p(e / 60), _.minutes = t % 60, a = p(t / 60), _.hours = a % 24, i += p(a / 24), s = p(rn(i)), d += s, i -= nn(dn(s)), n = p(d / 12), d %= 12, _.days = i, _.months = d, _.years = n, this } function rn(e) { return 4800 * e / 146097 } function dn(e) { return 146097 * e / 4800 } function _n(e) { if (!this.isValid()) return NaN; var t, a, n = this._milliseconds; if ("month" === (e = F(e)) || "year" === e) return t = this._days + n / 864e5, a = this._months + rn(t), "month" === e ? a : a / 12; switch (t = this._days + Math.round(dn(this._months)), e) { case "week": return t / 7 + n / 6048e5; case "day": return t + n / 864e5; case "hour": return 24 * t + n / 36e5; case "minute": return 1440 * t + n / 6e4; case "second": return 86400 * t + n / 1e3; case "millisecond": return Math.floor(864e5 * t) + n; default: throw new Error("Unknown unit " + e) } } function on() { return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * k(this._months / 12) : NaN } function un(e) { return function () { return this.as(e) } } function mn(e) { return e = F(e), this.isValid() ? this[e + "s"]() : NaN } function ln(e) { return function () { return this.isValid() ? this._data[e] : NaN } } function cn() { return p(this.days() / 7) } function Mn(e, t, a, n, s) { return s.relativeTime(t || 1, !!a, e, n) } function hn(e, t, a) { var n = Gt(e).abs(), s = yr(n.as("s")), r = yr(n.as("m")), i = yr(n.as("h")), d = yr(n.as("d")), _ = yr(n.as("M")), o = yr(n.as("y")), u = s <= pr.ss && ["s", s] || s < pr.s && ["ss", s] || r <= 1 && ["m"] || r < pr.m && ["mm", r] || i <= 1 && ["h"] || i < pr.h && ["hh", i] || d <= 1 && ["d"] || d < pr.d && ["dd", d] || _ <= 1 && ["M"] || _ < pr.M && ["MM", _] || o <= 1 && ["y"] || ["yy", o]; return u[2] = t, u[3] = +e > 0, u[4] = a, Mn.apply(null, u) } function Ln(e) { return void 0 === e ? yr : "function" == typeof e && (yr = e, !0) } function fn(e, t) { return void 0 !== pr[e] && (void 0 === t ? pr[e] : (pr[e] = t, "s" === e && (pr.ss = t - 1), !0)) } function Yn(e) { if (!this.isValid()) return this.localeData().invalidDate(); var t = this.localeData(), a = hn(this, !e, t); return e && (a = t.pastFuture(+this, a)), t.postformat(a) } function yn() { if (!this.isValid()) return this.localeData().invalidDate(); var e, t, a, n = kr(this._milliseconds) / 1e3, s = kr(this._days), r = kr(this._months); e = p(n / 60), t = p(e / 60), n %= 60, e %= 60, a = p(r / 12), r %= 12; var i = a, d = r, _ = s, o = t, u = e, m = n, l = this.asSeconds(); return l ? (l < 0 ? "-" : "") + "P" + (i ? i + "Y" : "") + (d ? d + "M" : "") + (_ ? _ + "D" : "") + (o || u || m ? "T" : "") + (o ? o + "H" : "") + (u ? u + "M" : "") + (m ? m + "S" : "") : "P0D" } var pn, kn; kn = Array.prototype.some ? Array.prototype.some : function (e) { for (var t = Object(this), a = t.length >>> 0, n = 0; n < a; n++)if (n in t && e.call(this, t[n], n, t)) return !0; return !1 }; var Dn = kn, gn = t.momentProperties = [], Tn = !1, wn = {}; t.suppressDeprecationWarnings = !1, t.deprecationHandler = null; var vn; vn = Object.keys ? Object.keys : function (e) { var t, a = []; for (t in e) u(e, t) && a.push(t); return a }; var Sn, bn = vn, Hn = { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, jn = { 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" }, xn = /\d{1,2}/, On = { 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" }, Pn = {}, Wn = {}, En = /(\[[^\[]*\])|(\\)?([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, An = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Fn = {}, zn = {}, Jn = /\d/, Rn = /\d\d/, Nn = /\d{3}/, In = /\d{4}/, Cn = /[+-]?\d{6}/, Un = /\d\d?/, Gn = /\d\d\d\d?/, Vn = /\d\d\d\d\d\d?/, Bn = /\d{1,3}/, $n = /\d{1,4}/, Kn = /[+-]?\d{1,6}/, Zn = /\d+/, qn = /[+-]?\d+/, Qn = /Z|[+-]\d\d:?\d\d/gi, Xn = /Z|[+-]\d\d(?::?\d\d)?/gi, es = /[+-]?\d+(\.\d{1,3})?/, ts = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, as = {}, ns = {}, ss = 0, rs = 1, is = 2, ds = 3, _s = 4, os = 5, us = 6, ms = 7, ls = 8; Sn = Array.prototype.indexOf ? Array.prototype.indexOf : function (e) { var t; for (t = 0; t < this.length; ++t)if (this[t] === e) return t; return -1 }; var cs = Sn; B("M", ["MM", 2], "Mo", function () { return this.month() + 1 }), B("MMM", 0, 0, function (e) { return this.localeData().monthsShort(this, e) }), B("MMMM", 0, 0, function (e) { return this.localeData().months(this, e) }), A("month", "M"), J("month", 8), Q("M", Un), Q("MM", Un, Rn), Q("MMM", function (e, t) { return t.monthsShortRegex(e) }), Q("MMMM", function (e, t) { return t.monthsRegex(e) }), ae(["M", "MM"], function (e, t) { t[rs] = k(e) - 1 }), ae(["MMM", "MMMM"], function (e, t, a, n) { var s = a._locale.monthsParse(e, n, a._strict); null != s ? t[rs] = s : M(a).invalidMonth = e }); var Ms = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, hs = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), Ls = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), fs = ts, Ys = ts; B("Y", 0, 0, function () { var e = this.year(); return e <= 9999 ? "" + e : "+" + e }), B(0, ["YY", 2], 0, function () { return this.year() % 100 }), B(0, ["YYYY", 4], 0, "year"), B(0, ["YYYYY", 5], 0, "year"), B(0, ["YYYYYY", 6, !0], 0, "year"), A("year", "y"), J("year", 1), Q("Y", qn), Q("YY", Un, Rn), Q("YYYY", $n, In), Q("YYYYY", Kn, Cn), Q("YYYYYY", Kn, Cn), ae(["YYYYY", "YYYYYY"], ss), ae("YYYY", function (e, a) { a[ss] = 2 === e.length ? t.parseTwoDigitYear(e) : k(e) }), ae("YY", function (e, a) { a[ss] = t.parseTwoDigitYear(e) }), ae("Y", function (e, t) { t[ss] = parseInt(e, 10) }), t.parseTwoDigitYear = function (e) { return k(e) + (k(e) > 68 ? 1900 : 2e3) }; var ys = N("FullYear", !0); B("w", ["ww", 2], "wo", "week"), B("W", ["WW", 2], "Wo", "isoWeek"), A("week", "w"), A("isoWeek", "W"), J("week", 5), J("isoWeek", 5), Q("w", Un), Q("ww", Un, Rn), Q("W", Un), Q("WW", Un, Rn), ne(["w", "ww", "W", "WW"], function (e, t, a, n) { t[n.substr(0, 1)] = k(e) }); var ps = { dow: 0, doy: 6 }; B("d", 0, "do", "day"), B("dd", 0, 0, function (e) { return this.localeData().weekdaysMin(this, e) }), B("ddd", 0, 0, function (e) { return this.localeData().weekdaysShort(this, e) }), B("dddd", 0, 0, function (e) { return this.localeData().weekdays(this, e) }), B("e", 0, 0, "weekday"), B("E", 0, 0, "isoWeekday"), A("day", "d"), A("weekday", "e"), A("isoWeekday", "E"), J("day", 11), J("weekday", 11), J("isoWeekday", 11), Q("d", Un), Q("e", Un), Q("E", Un), Q("dd", function (e, t) { return t.weekdaysMinRegex(e) }), Q("ddd", function (e, t) { return t.weekdaysShortRegex(e) }), Q("dddd", function (e, t) { return t.weekdaysRegex(e) }), ne(["dd", "ddd", "dddd"], function (e, t, a, n) { var s = a._locale.weekdaysParse(e, n, a._strict); null != s ? t.d = s : M(a).invalidWeekday = e }), ne(["d", "e", "E"], function (e, t, a, n) { t[n] = k(e) }); var ks = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Ds = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), gs = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ts = ts, ws = ts, vs = ts; B("H", ["HH", 2], 0, "hour"), B("h", ["hh", 2], 0, Ue), B("k", ["kk", 2], 0, Ge), B("hmm", 0, 0, function () { return "" + Ue.apply(this) + V(this.minutes(), 2) }), B("hmmss", 0, 0, function () { return "" + Ue.apply(this) + V(this.minutes(), 2) + V(this.seconds(), 2) }), B("Hmm", 0, 0, function () { return "" + this.hours() + V(this.minutes(), 2) }), B("Hmmss", 0, 0, function () { return "" + this.hours() + V(this.minutes(), 2) + V(this.seconds(), 2) }), Ve("a", !0), Ve("A", !1), A("hour", "h"), J("hour", 13), Q("a", Be), Q("A", Be), Q("H", Un), Q("h", Un), Q("k", Un), Q("HH", Un, Rn), Q("hh", Un, Rn), Q("kk", Un, Rn), Q("hmm", Gn), Q("hmmss", Vn), Q("Hmm", Gn), Q("Hmmss", Vn), ae(["H", "HH"], ds), ae(["k", "kk"], function (e, t, a) { var n = k(e); t[ds] = 24 === n ? 0 : n }), ae(["a", "A"], function (e, t, a) { a._isPm = a._locale.isPM(e), a._meridiem = e }), ae(["h", "hh"], function (e, t, a) { t[ds] = k(e), M(a).bigHour = !0 }), ae("hmm", function (e, t, a) { var n = e.length - 2; t[ds] = k(e.substr(0, n)), t[_s] = k(e.substr(n)), M(a).bigHour = !0 }), ae("hmmss", function (e, t, a) { var n = e.length - 4, s = e.length - 2; t[ds] = k(e.substr(0, n)), t[_s] = k(e.substr(n, 2)), t[os] = k(e.substr(s)), M(a).bigHour = !0 }), ae("Hmm", function (e, t, a) { var n = e.length - 2; t[ds] = k(e.substr(0, n)), t[_s] = k(e.substr(n)) }), ae("Hmmss", function (e, t, a) { var n = e.length - 4, s = e.length - 2; t[ds] = k(e.substr(0, n)), t[_s] = k(e.substr(n, 2)), t[os] = k(e.substr(s)) }); var Ss, bs = /[ap]\.?m?\.?/i, Hs = N("Hours", !0), js = { calendar: Hn, longDateFormat: jn, invalidDate: "Invalid date", ordinal: "%d", dayOfMonthOrdinalParse: xn, relativeTime: On, months: hs, monthsShort: Ls, week: ps, weekdays: ks, weekdaysMin: gs, weekdaysShort: Ds, meridiemParse: bs }, xs = {}, Os = {}, Ps = /^\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)?)?$/, Ws = /^\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)?)?$/, Es = /Z|[+-]\d\d(?::?\d\d)?/, As = [["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}/]], Fs = [["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/]], zs = /^\/?Date\((\-?\d+)/i, Js = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/; t.createFromInputFallback = T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function (e) { e._d = new Date(e._i + (e._useUTC ? " UTC" : "")) }), t.ISO_8601 = function () { }, t.RFC_2822 = function () { }; var Rs = T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function () { var e = pt.apply(null, arguments); return this.isValid() && e.isValid() ? e < this ? this : e : L() }), Ns = T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function () { var e = pt.apply(null, arguments); return this.isValid() && e.isValid() ? e > this ? this : e : L() }), Is = function () { return Date.now ? Date.now() : +new Date }, Cs = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"]; jt("Z", ":"), jt("ZZ", ""), Q("Z", Xn), Q("ZZ", Xn), ae(["Z", "ZZ"], function (e, t, a) { a._useUTC = !0, a._tzm = xt(Xn, e) }); var Us = /([\+\-]|\d\d)/gi; t.updateOffset = function () { }; var Gs = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, Vs = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/; Gt.fn = St.prototype, Gt.invalid = vt; var Bs = Kt(1, "add"), $s = Kt(-1, "subtract"); t.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", t.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; var Ks = T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function (e) { return void 0 === e ? this.localeData() : this.locale(e) }); B(0, ["gg", 2], 0, function () { return this.weekYear() % 100 }), B(0, ["GG", 2], 0, function () { return this.isoWeekYear() % 100 }), ja("gggg", "weekYear"), ja("ggggg", "weekYear"), ja("GGGG", "isoWeekYear"), ja("GGGGG", "isoWeekYear"), A("weekYear", "gg"), A("isoWeekYear", "GG"), J("weekYear", 1), J("isoWeekYear", 1), Q("G", qn), Q("g", qn), Q("GG", Un, Rn), Q("gg", Un, Rn), Q("GGGG", $n, In), Q("gggg", $n, In), Q("GGGGG", Kn, Cn), Q("ggggg", Kn, Cn), ne(["gggg", "ggggg", "GGGG", "GGGGG"], function (e, t, a, n) { t[n.substr(0, 2)] = k(e) }), ne(["gg", "GG"], function (e, a, n, s) { a[s] = t.parseTwoDigitYear(e) }), B("Q", 0, "Qo", "quarter"), A("quarter", "Q"), J("quarter", 7), Q("Q", Jn), ae("Q", function (e, t) { t[rs] = 3 * (k(e) - 1) }), B("D", ["DD", 2], "Do", "date"), A("date", "D"), J("date", 9), Q("D", Un), Q("DD", Un, Rn), Q("Do", function (e, t) { return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient }), ae(["D", "DD"], is), ae("Do", function (e, t) { t[is] = k(e.match(Un)[0], 10) }); var Zs = N("Date", !0); B("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), A("dayOfYear", "DDD"), J("dayOfYear", 4), Q("DDD", Bn), Q("DDDD", Nn), ae(["DDD", "DDDD"], function (e, t, a) { a._dayOfYear = k(e) }), B("m", ["mm", 2], 0, "minute"), A("minute", "m"), J("minute", 14), Q("m", Un), Q("mm", Un, Rn), ae(["m", "mm"], _s); var qs = N("Minutes", !1); B("s", ["ss", 2], 0, "second"), A("second", "s"), J("second", 15), Q("s", Un), Q("ss", Un, Rn), ae(["s", "ss"], os); var Qs = N("Seconds", !1); B("S", 0, 0, function () { return ~~(this.millisecond() / 100) }), B(0, ["SS", 2], 0, function () { return ~~(this.millisecond() / 10) }), B(0, ["SSS", 3], 0, "millisecond"), B(0, ["SSSS", 4], 0, function () { return 10 * this.millisecond() }), B(0, ["SSSSS", 5], 0, function () { return 100 * this.millisecond() }), B(0, ["SSSSSS", 6], 0, function () { return 1e3 * this.millisecond() }), B(0, ["SSSSSSS", 7], 0, function () { return 1e4 * this.millisecond() }), B(0, ["SSSSSSSS", 8], 0, function () { return 1e5 * this.millisecond() }), B(0, ["SSSSSSSSS", 9], 0, function () { return 1e6 * this.millisecond() }), A("millisecond", "ms"), J("millisecond", 16), Q("S", Bn, Jn), Q("SS", Bn, Rn), Q("SSS", Bn, Nn); var Xs; for (Xs = "SSSS"; Xs.length <= 9; Xs += "S")Q(Xs, Zn); for (Xs = "S"; Xs.length <= 9; Xs += "S")ae(Xs, Ja); var er = N("Milliseconds", !1); B("z", 0, 0, "zoneAbbr"), B("zz", 0, 0, "zoneName"); var tr = Y.prototype; tr.add = Bs, tr.calendar = Qt, tr.clone = Xt, tr.diff = ia, tr.endOf = ya, tr.format = ma, tr.from = la, tr.fromNow = ca, tr.to = Ma, tr.toNow = ha, tr.get = U, tr.invalidAt = ba, tr.isAfter = ea, tr.isBefore = ta, tr.isBetween = aa, tr.isSame = na, tr.isSameOrAfter = sa, tr.isSameOrBefore = ra, tr.isValid = va, tr.lang = Ks, tr.locale = La, tr.localeData = fa, tr.max = Ns, tr.min = Rs, tr.parsingFlags = Sa, tr.set = G, tr.startOf = Ya, tr.subtract = $s, tr.toArray = ga, tr.toObject = Ta, tr.toDate = Da, tr.toISOString = oa, tr.inspect = ua, tr.toJSON = wa, tr.toString = _a, tr.unix = ka, tr.valueOf = pa, tr.creationData = Ha, tr.year = ys, tr.isLeapYear = Ye, tr.weekYear = xa, tr.isoWeekYear = Oa, tr.quarter = tr.quarters = Fa, tr.month = me, tr.daysInMonth = le, tr.week = tr.weeks = be, tr.isoWeek = tr.isoWeeks = He, tr.weeksInYear = Wa, tr.isoWeeksInYear = Pa, tr.date = Zs, tr.day = tr.days = Fe, tr.weekday = ze, tr.isoWeekday = Je, tr.dayOfYear = za, tr.hour = tr.hours = Hs, tr.minute = tr.minutes = qs, tr.second = tr.seconds = Qs, tr.millisecond = tr.milliseconds = er, tr.utcOffset = Wt, tr.utc = At, tr.local = Ft, tr.parseZone = zt, tr.hasAlignedHourOffset = Jt, tr.isDST = Rt, tr.isLocal = It, tr.isUtcOffset = Ct, tr.isUtc = Ut, tr.isUTC = Ut, tr.zoneAbbr = Ra, tr.zoneName = Na, tr.dates = T("dates accessor is deprecated. Use date instead.", Zs), tr.months = T("months accessor is deprecated. Use month instead", me), tr.years = T("years accessor is deprecated. Use year instead", ys), tr.zone = T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", Et), tr.isDSTShifted = T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", Nt); var ar = H.prototype; ar.calendar = j, ar.longDateFormat = x, ar.invalidDate = O, ar.ordinal = P, ar.preparse = Ua, ar.postformat = Ua, ar.relativeTime = W, ar.pastFuture = E, ar.set = S, ar.months = ie, ar.monthsShort = de, ar.monthsParse = oe, ar.monthsRegex = Me, ar.monthsShortRegex = ce, ar.week = we, ar.firstDayOfYear = Se, ar.firstDayOfWeek = ve, ar.weekdays = Oe, ar.weekdaysMin = We, ar.weekdaysShort = Pe, ar.weekdaysParse = Ae, ar.weekdaysRegex = Re, ar.weekdaysShortRegex = Ne, ar.weekdaysMinRegex = Ie, ar.isPM = $e, ar.meridiem = Ke, Xe("en", { dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function (e) { var t = e % 10; return e + (1 === k(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") } }), t.lang = T("moment.lang is deprecated. Use moment.locale instead.", Xe), t.langData = T("moment.langData is deprecated. Use moment.localeData instead.", at); var nr = Math.abs, sr = un("ms"), rr = un("s"), ir = un("m"), dr = un("h"), _r = un("d"), or = un("w"), ur = un("M"), mr = un("y"), lr = ln("milliseconds"), cr = ln("seconds"), Mr = ln("minutes"), hr = ln("hours"), Lr = ln("days"), fr = ln("months"), Yr = ln("years"), yr = Math.round, pr = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }, kr = Math.abs, Dr = St.prototype; return Dr.isValid = wt, Dr.abs = Xa, Dr.add = tn, Dr.subtract = an, Dr.as = _n, Dr.asMilliseconds = sr, Dr.asSeconds = rr, Dr.asMinutes = ir, Dr.asHours = dr, Dr.asDays = _r, Dr.asWeeks = or, Dr.asMonths = ur, Dr.asYears = mr, Dr.valueOf = on, Dr._bubble = sn, Dr.get = mn, Dr.milliseconds = lr, Dr.seconds = cr, Dr.minutes = Mr, Dr.hours = hr, Dr.days = Lr, Dr.weeks = cn, Dr.months = fr, Dr.years = Yr, Dr.humanize = Yn, Dr.toISOString = yn, Dr.toString = yn, Dr.toJSON = yn, Dr.locale = La, Dr.localeData = fa, Dr.toIsoString = T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", yn), Dr.lang = Ks, B("X", 0, 0, "unix"), B("x", 0, 0, "valueOf"), Q("x", qn), Q("X", es), ae("X", function (e, t, a) { a._d = new Date(1e3 * parseFloat(e, 10)) }), ae("x", function (e, t, a) { a._d = new Date(k(e)) }), t.version = "2.18.1", function (e) { pn = e }(pt), t.fn = tr, t.min = Dt, t.max = gt, t.now = Is, t.utc = l, t.unix = Ia, t.months = $a, t.isDate = _, t.locale = Xe, t.invalid = L, t.duration = Gt, t.isMoment = y, t.weekdays = Za, t.parseZone = Ca, t.localeData = at, t.isDuration = bt, t.monthsShort = Ka, t.weekdaysMin = Qa, t.defineLocale = et, t.updateLocale = tt, t.locales = nt, t.weekdaysShort = qa, t.normalizeUnits = F, t.relativeTimeRounding = Ln, t.relativeTimeThreshold = fn, t.calendarFormat = qt, t.prototype = tr, t }) }).call(t, a(126)(e)) }, function (e, t) { !function () { "use strict"; function e(e, t, a) { return { restrict: "A", link: function (n, s, r) { a(function () { function i(e) { var i, d, u, m, l, c; if (!angular.element(s).hasClass("ng-hide") && e && e.target) { for (d = e.target; d; d = d.parentNode) { if (d === s[0]) return; if (m = d.id, l = d.className, c = o.length, l && void 0 !== l.baseVal && (l = l.baseVal), l || m) for (i = 0; i < c; i++)if (u = new RegExp("\\b" + o[i] + "\\b"), void 0 !== m && m === o[i] || l && u.test(l)) return } a(function () { (_ = t(r.clickOutside))(n, { event: e }) }) } } function d() { return "ontouchstart" in window || navigator.maxTouchPoints } var _, o = void 0 !== r.outsideIfNot ? r.outsideIfNot.split(/[ ,]+/) : []; d() && e.on("touchstart", i), e.on("click", i), n.$on("$destroy", function () { d() && e.off("touchstart", i), e.off("click", i) }) }) } } } angular.module("angular-click-outside", []).directive("clickOutside", ["$document", "$parse", "$timeout", e]) }() }, function (e, t, a) {
	!function (t, a) { e.exports = a() }(0, function () {
		return function (e) { function t(n) { if (a[n]) return a[n].exports; var s = a[n] = { exports: {}, id: n, loaded: !1 }; return e[n].call(s.exports, s, s.exports, t), s.loaded = !0, s.exports } var a = {}; return t.m = e, t.c = a, t.p = "", t(0) }([function (e, t, a) { "use strict"; e.exports = "ngFileSaver", angular.module("ngFileSaver", []).factory("FileSaver", ["Blob", "SaveAs", "FileSaverUtils", a(1)]).factory("FileSaverUtils", [a(2)]).factory("Blob", ["$window", a(3)]).factory("SaveAs", [a(5)]) }, function (e, t) { "use strict"; e.exports = function (e, t, a) { function n(e, n, s) { try { t(e, n, s) } catch (e) { a.handleErrors(e.message) } } return { saveAs: function (e, t, s) { return a.isBlobInstance(e) || a.handleErrors("Data argument should be a blob instance"), a.isString(t) || a.handleErrors("Filename argument should be a string"), n(e, t, s) } } } }, function (e, t) { "use strict"; e.exports = function () { return { handleErrors: function (e) { throw new Error(e) }, isString: function (e) { return "string" == typeof e || e instanceof String }, isUndefined: function (e) { return void 0 === e }, isBlobInstance: function (e) { return e instanceof Blob } } } }, function (e, t, a) { "use strict"; a(4), e.exports = function (e) { return e.Blob } }, function (e, t) {/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
			!function (e) { "use strict"; if (e.URL = e.URL || e.webkitURL, e.Blob && e.URL) try { return void new Blob } catch (e) { } var t = e.BlobBuilder || e.WebKitBlobBuilder || e.MozBlobBuilder || function (e) { var t = function (e) { return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1] }, a = function () { this.data = [] }, n = function (e, t, a) { this.data = e, this.size = e.length, this.type = t, this.encoding = a }, s = a.prototype, r = n.prototype, i = e.FileReaderSync, d = function (e) { this.code = this[this.name = e] }, _ = "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "), o = _.length, u = e.URL || e.webkitURL || e, m = u.createObjectURL, l = u.revokeObjectURL, c = u, M = e.btoa, h = e.atob, L = e.ArrayBuffer, f = e.Uint8Array, Y = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/; for (n.fake = r.fake = !0; o--;)d.prototype[_[o]] = o + 1; return u.createObjectURL || (c = e.URL = function (e) { var t, a = document.createElementNS("http://www.w3.org/1999/xhtml", "a"); return a.href = e, "origin" in a || ("data:" === a.protocol.toLowerCase() ? a.origin = null : (t = e.match(Y), a.origin = t && t[1])), a }), c.createObjectURL = function (e) { var t, a = e.type; return null === a && (a = "application/octet-stream"), e instanceof n ? (t = "data:" + a, "base64" === e.encoding ? t + ";base64," + e.data : "URI" === e.encoding ? t + "," + decodeURIComponent(e.data) : M ? t + ";base64," + M(e.data) : t + "," + encodeURIComponent(e.data)) : m ? m.call(u, e) : void 0 }, c.revokeObjectURL = function (e) { "data:" !== e.substring(0, 5) && l && l.call(u, e) }, s.append = function (e) { var a = this.data; if (f && (e instanceof L || e instanceof f)) { for (var s = "", r = new f(e), _ = 0, o = r.length; _ < o; _++)s += String.fromCharCode(r[_]); a.push(s) } else if ("Blob" === t(e) || "File" === t(e)) { if (!i) throw new d("NOT_READABLE_ERR"); var u = new i; a.push(u.readAsBinaryString(e)) } else e instanceof n ? "base64" === e.encoding && h ? a.push(h(e.data)) : "URI" === e.encoding ? a.push(decodeURIComponent(e.data)) : "raw" === e.encoding && a.push(e.data) : ("string" != typeof e && (e += ""), a.push(unescape(encodeURIComponent(e)))) }, s.getBlob = function (e) { return arguments.length || (e = null), new n(this.data.join(""), e, "raw") }, s.toString = function () { return "[object BlobBuilder]" }, r.slice = function (e, t, a) { var s = arguments.length; return s < 3 && (a = null), new n(this.data.slice(e, s > 1 ? t : this.data.length), a, this.encoding) }, r.toString = function () { return "[object Blob]" }, r.close = function () { this.size = 0, delete this.data }, a }(e); e.Blob = function (e, a) { var n = a ? a.type || "" : "", s = new t; if (e) for (var r = 0, i = e.length; r < i; r++)Uint8Array && e[r] instanceof Uint8Array ? s.append(e[r].buffer) : s.append(e[r]); var d = s.getBlob(n); return !d.slice && d.webkitSlice && (d.slice = d.webkitSlice), d }; var a = Object.getPrototypeOf || function (e) { return e.__proto__ }; e.Blob.prototype = a(new e.Blob) }("undefined" != typeof self && self || "undefined" != typeof window && window || this.content || this)
		}, function (e, t, a) { "use strict"; e.exports = function () { return a(6).saveAs || function () { } } }, function (e, t, a) { var n, s = s || function (e) { "use strict"; if (!(void 0 === e || "undefined" != typeof navigator && /MSIE [1-9]\./.test(navigator.userAgent))) { var t = e.document, a = function () { return e.URL || e.webkitURL || e }, n = t.createElementNS("http://www.w3.org/1999/xhtml", "a"), s = "download" in n, r = function (e) { var t = new MouseEvent("click"); e.dispatchEvent(t) }, i = /constructor/i.test(e.HTMLElement) || e.safari, d = /CriOS\/[\d]+/.test(navigator.userAgent), _ = function (t) { (e.setImmediate || e.setTimeout)(function () { throw t }, 0) }, o = function (e) { var t = function () { "string" == typeof e ? a().revokeObjectURL(e) : e.remove() }; setTimeout(t, 4e4) }, u = function (e, t, a) { t = [].concat(t); for (var n = t.length; n--;) { var s = e["on" + t[n]]; if ("function" == typeof s) try { s.call(e, a || e) } catch (e) { _(e) } } }, m = function (e) { return /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob([String.fromCharCode(65279), e], { type: e.type }) : e }, l = function (t, _, l) { l || (t = m(t)); var c, M = this, h = t.type, L = "application/octet-stream" === h, f = function () { u(M, "writestart progress write writeend".split(" ")) }; if (M.readyState = M.INIT, s) return c = a().createObjectURL(t), void setTimeout(function () { n.href = c, n.download = _, r(n), f(), o(c), M.readyState = M.DONE }); !function () { if ((d || L && i) && e.FileReader) { var n = new FileReader; return n.onloadend = function () { var t = d ? n.result : n.result.replace(/^data:[^;]*;/, "data:attachment/file;"); e.open(t, "_blank") || (e.location.href = t), t = void 0, M.readyState = M.DONE, f() }, n.readAsDataURL(t), void (M.readyState = M.INIT) } if (c || (c = a().createObjectURL(t)), L) e.location.href = c; else { e.open(c, "_blank") || (e.location.href = c) } M.readyState = M.DONE, f(), o(c) }() }, c = l.prototype, M = function (e, t, a) { return new l(e, t || e.name || "download", a) }; return "undefined" != typeof navigator && navigator.msSaveOrOpenBlob ? function (e, t, a) { return t = t || e.name || "download", a || (e = m(e)), navigator.msSaveOrOpenBlob(e, t) } : (c.abort = function () { }, c.readyState = c.INIT = 0, c.WRITING = 1, c.DONE = 2, c.error = c.onwritestart = c.onprogress = c.onwrite = c.onabort = c.onerror = c.onwriteend = null, M) } }("undefined" != typeof self && self || "undefined" != typeof window && window || this.content); void 0 !== e && e.exports ? e.exports.saveAs = s : null !== a(7) && null !== a(8) && void 0 !== (n = function () { return s }.call(t, a, t, e)) && (e.exports = n) }, function (e, t) { e.exports = function () { throw new Error("define cannot be used indirect") } }, function (e, t) { (function (t) { e.exports = t }).call(t, {}) }])
	})
}, function (e, t, a) { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), t.default = { startDate: "@", endDate: "@", title: "@", description: "@", location: "@", btnText: "@", hoverText: "@", format: "@", className: "@", useCaret: "@", useBootstrap: "@", hideIcon: "=" } }, function (e, t, a) { "use strict"; function n(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(t, "__esModule", { value: !0 }); var s = function () { function e(e, t) { for (var a = 0; a < t.length; a++) { var n = t[a]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } } return function (t, a, n) { return a && e(t.prototype, a), n && e(t, n), t } }(), r = a(0), i = function (e) { return e && e.__esModule ? e : { default: e } }(r), d = function () { function e() { n(this, e) } return s(e, null, [{ key: "getMilitaryHours", value: function (e) { return e % 1 == .5 ? Math.floor(e) + "30" : Math.round(e) + "00" } }, { key: "getHoursDuration", value: function (e, t, a) { var n = new i.default(e), s = new i.default(t); a && (n.utcOffset(a), s.utcOffset(a)); var r = i.default.duration(s.diff(n)).asHours(); return this.getMilitaryHours(r) } }, { key: "formatIcsText", value: function (e, t) { return e ? (e = e.replace(/\n/g, "\\n"), e = e.substring(0, t)) : "" } }, { key: "toUniversalTime", value: function (e, t) { var a = (0, i.default)(e); return t && a.utcOffset(t), a.format("YYYYMMDDTHHmmss") } }, { key: "getIcsBlob", value: function (e) { return new Blob([e], { type: "text/calendar" }) } }, { key: "getIcsFileName", value: function (e) { return e ? e.replace(/[^\w ]+/g, "") + ".ics" : "event.ics" } }, { key: "getUid", value: function () { return Math.random().toString(36).substr(2) } }, { key: "getTimeCreated", value: function () { return (new i.default).format("YYYYMMDDTHHmmss") } }]), e }(); t.default = d }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("af", { months: "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"), monthsShort: "Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"), weekdays: "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"), weekdaysShort: "Son_Maa_Din_Woe_Don_Vry_Sat".split("_"), weekdaysMin: "So_Ma_Di_Wo_Do_Vr_Sa".split("_"), meridiemParse: /vm|nm/i, isPM: function (e) { return /^nm$/i.test(e) }, meridiem: function (e, t, a) { return e < 12 ? a ? "vm" : "VM" : a ? "nm" : "NM" }, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Vandag om] LT", nextDay: "[Môre om] LT", nextWeek: "dddd [om] LT", lastDay: "[Gister om] LT", lastWeek: "[Laas] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "oor %s", past: "%s gelede", s: "'n paar sekondes", m: "'n minuut", mm: "%d minute", h: "'n uur", hh: "%d ure", d: "'n dag", dd: "%d dae", M: "'n maand", MM: "%d maande", y: "'n jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function (e) { return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ar-dz", { months: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), monthsShort: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "أح_إث_ثلا_أر_خم_جم_سب".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[اليوم على الساعة] LT", nextDay: "[غدا على الساعة] LT", nextWeek: "dddd [على الساعة] LT", lastDay: "[أمس على الساعة] LT", lastWeek: "dddd [على الساعة] LT", sameElse: "L" }, relativeTime: { future: "في %s", past: "منذ %s", s: "ثوان", m: "دقيقة", mm: "%d دقائق", h: "ساعة", hh: "%d ساعات", d: "يوم", dd: "%d أيام", M: "شهر", MM: "%d أشهر", y: "سنة", yy: "%d سنوات" }, week: { dow: 0, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ar-kw", { months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), weekdays: "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[اليوم على الساعة] LT", nextDay: "[غدا على الساعة] LT", nextWeek: "dddd [على الساعة] LT", lastDay: "[أمس على الساعة] LT", lastWeek: "dddd [على الساعة] LT", sameElse: "L" }, relativeTime: { future: "في %s", past: "منذ %s", s: "ثوان", m: "دقيقة", mm: "%d دقائق", h: "ساعة", hh: "%d ساعات", d: "يوم", dd: "%d أيام", M: "شهر", MM: "%d أشهر", y: "سنة", yy: "%d سنوات" }, week: { dow: 0, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 0: "0" }, a = function (e) { return 0 === e ? 0 : 1 === e ? 1 : 2 === e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5 }, n = { s: ["أقل من ثانية", "ثانية واحدة", ["ثانيتان", "ثانيتين"], "%d ثوان", "%d ثانية", "%d ثانية"], m: ["أقل من دقيقة", "دقيقة واحدة", ["دقيقتان", "دقيقتين"], "%d دقائق", "%d دقيقة", "%d دقيقة"], h: ["أقل من ساعة", "ساعة واحدة", ["ساعتان", "ساعتين"], "%d ساعات", "%d ساعة", "%d ساعة"], d: ["أقل من يوم", "يوم واحد", ["يومان", "يومين"], "%d أيام", "%d يومًا", "%d يوم"], M: ["أقل من شهر", "شهر واحد", ["شهران", "شهرين"], "%d أشهر", "%d شهرا", "%d شهر"], y: ["أقل من عام", "عام واحد", ["عامان", "عامين"], "%d أعوام", "%d عامًا", "%d عام"] }, s = function (e) { return function (t, s, r, i) { var d = a(t), _ = n[e][a(t)]; return 2 === d && (_ = _[s ? 0 : 1]), _.replace(/%d/i, t) } }, r = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"]; return e.defineLocale("ar-ly", { months: r, monthsShort: r, weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/‏M/‏YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /ص|م/, isPM: function (e) { return "م" === e }, meridiem: function (e, t, a) { return e < 12 ? "ص" : "م" }, calendar: { sameDay: "[اليوم عند الساعة] LT", nextDay: "[غدًا عند الساعة] LT", nextWeek: "dddd [عند الساعة] LT", lastDay: "[أمس عند الساعة] LT", lastWeek: "dddd [عند الساعة] LT", sameElse: "L" }, relativeTime: { future: "بعد %s", past: "منذ %s", s: s("s"), m: s("m"), mm: s("m"), h: s("h"), hh: s("h"), d: s("d"), dd: s("d"), M: s("M"), MM: s("M"), y: s("y"), yy: s("y") }, preparse: function (e) { return e.replace(/\u200f/g, "").replace(/،/g, ",") }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }).replace(/,/g, "،") }, week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ar-ma", { months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), weekdays: "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[اليوم على الساعة] LT", nextDay: "[غدا على الساعة] LT", nextWeek: "dddd [على الساعة] LT", lastDay: "[أمس على الساعة] LT", lastWeek: "dddd [على الساعة] LT", sameElse: "L" }, relativeTime: { future: "في %s", past: "منذ %s", s: "ثوان", m: "دقيقة", mm: "%d دقائق", h: "ساعة", hh: "%d ساعات", d: "يوم", dd: "%d أيام", M: "شهر", MM: "%d أشهر", y: "سنة", yy: "%d سنوات" }, week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "١", 2: "٢", 3: "٣", 4: "٤", 5: "٥", 6: "٦", 7: "٧", 8: "٨", 9: "٩", 0: "٠" }, a = { "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "٠": "0" }; return e.defineLocale("ar-sa", { months: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), monthsShort: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /ص|م/, isPM: function (e) { return "م" === e }, meridiem: function (e, t, a) { return e < 12 ? "ص" : "م" }, calendar: { sameDay: "[اليوم على الساعة] LT", nextDay: "[غدا على الساعة] LT", nextWeek: "dddd [على الساعة] LT", lastDay: "[أمس على الساعة] LT", lastWeek: "dddd [على الساعة] LT", sameElse: "L" }, relativeTime: { future: "في %s", past: "منذ %s", s: "ثوان", m: "دقيقة", mm: "%d دقائق", h: "ساعة", hh: "%d ساعات", d: "يوم", dd: "%d أيام", M: "شهر", MM: "%d أشهر", y: "سنة", yy: "%d سنوات" }, preparse: function (e) { return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { return a[e] }).replace(/،/g, ",") }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }).replace(/,/g, "،") }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ar-tn", { months: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), monthsShort: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[اليوم على الساعة] LT", nextDay: "[غدا على الساعة] LT", nextWeek: "dddd [على الساعة] LT", lastDay: "[أمس على الساعة] LT", lastWeek: "dddd [على الساعة] LT", sameElse: "L" }, relativeTime: { future: "في %s", past: "منذ %s", s: "ثوان", m: "دقيقة", mm: "%d دقائق", h: "ساعة", hh: "%d ساعات", d: "يوم", dd: "%d أيام", M: "شهر", MM: "%d أشهر", y: "سنة", yy: "%d سنوات" }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "١", 2: "٢", 3: "٣", 4: "٤", 5: "٥", 6: "٦", 7: "٧", 8: "٨", 9: "٩", 0: "٠" }, a = { "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "٠": "0" }, n = function (e) { return 0 === e ? 0 : 1 === e ? 1 : 2 === e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5 }, s = { s: ["أقل من ثانية", "ثانية واحدة", ["ثانيتان", "ثانيتين"], "%d ثوان", "%d ثانية", "%d ثانية"], m: ["أقل من دقيقة", "دقيقة واحدة", ["دقيقتان", "دقيقتين"], "%d دقائق", "%d دقيقة", "%d دقيقة"], h: ["أقل من ساعة", "ساعة واحدة", ["ساعتان", "ساعتين"], "%d ساعات", "%d ساعة", "%d ساعة"], d: ["أقل من يوم", "يوم واحد", ["يومان", "يومين"], "%d أيام", "%d يومًا", "%d يوم"], M: ["أقل من شهر", "شهر واحد", ["شهران", "شهرين"], "%d أشهر", "%d شهرا", "%d شهر"], y: ["أقل من عام", "عام واحد", ["عامان", "عامين"], "%d أعوام", "%d عامًا", "%d عام"] }, r = function (e) { return function (t, a, r, i) { var d = n(t), _ = s[e][n(t)]; return 2 === d && (_ = _[a ? 0 : 1]), _.replace(/%d/i, t) } }, i = ["كانون الثاني يناير", "شباط فبراير", "آذار مارس", "نيسان أبريل", "أيار مايو", "حزيران يونيو", "تموز يوليو", "آب أغسطس", "أيلول سبتمبر", "تشرين الأول أكتوبر", "تشرين الثاني نوفمبر", "كانون الأول ديسمبر"]; return e.defineLocale("ar", { months: i, monthsShort: i, weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/‏M/‏YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /ص|م/, isPM: function (e) { return "م" === e }, meridiem: function (e, t, a) { return e < 12 ? "ص" : "م" }, calendar: { sameDay: "[اليوم عند الساعة] LT", nextDay: "[غدًا عند الساعة] LT", nextWeek: "dddd [عند الساعة] LT", lastDay: "[أمس عند الساعة] LT", lastWeek: "dddd [عند الساعة] LT", sameElse: "L" }, relativeTime: { future: "بعد %s", past: "منذ %s", s: r("s"), m: r("m"), mm: r("m"), h: r("h"), hh: r("h"), d: r("d"), dd: r("d"), M: r("M"), MM: r("M"), y: r("y"), yy: r("y") }, preparse: function (e) { return e.replace(/\u200f/g, "").replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { return a[e] }).replace(/،/g, ",") }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }).replace(/,/g, "،") }, week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "-inci", 5: "-inci", 8: "-inci", 70: "-inci", 80: "-inci", 2: "-nci", 7: "-nci", 20: "-nci", 50: "-nci", 3: "-üncü", 4: "-üncü", 100: "-üncü", 6: "-ncı", 9: "-uncu", 10: "-uncu", 30: "-uncu", 60: "-ıncı", 90: "-ıncı" }; return e.defineLocale("az", { months: "yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"), monthsShort: "yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"), weekdays: "Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"), weekdaysShort: "Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"), weekdaysMin: "Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[bugün saat] LT", nextDay: "[sabah saat] LT", nextWeek: "[gələn həftə] dddd [saat] LT", lastDay: "[dünən] LT", lastWeek: "[keçən həftə] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s sonra", past: "%s əvvəl", s: "birneçə saniyyə", m: "bir dəqiqə", mm: "%d dəqiqə", h: "bir saat", hh: "%d saat", d: "bir gün", dd: "%d gün", M: "bir ay", MM: "%d ay", y: "bir il", yy: "%d il" }, meridiemParse: /gecə|səhər|gündüz|axşam/, isPM: function (e) { return /^(gündüz|axşam)$/.test(e) }, meridiem: function (e, t, a) { return e < 4 ? "gecə" : e < 12 ? "səhər" : e < 17 ? "gündüz" : "axşam" }, dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, ordinal: function (e) { if (0 === e) return e + "-ıncı"; var a = e % 10, n = e % 100 - a, s = e >= 100 ? 100 : null; return e + (t[a] || t[n] || t[s]) }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t) { var a = e.split("_"); return t % 10 == 1 && t % 100 != 11 ? a[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? a[1] : a[2] } function a(e, a, n) { var s = { mm: a ? "хвіліна_хвіліны_хвілін" : "хвіліну_хвіліны_хвілін", hh: a ? "гадзіна_гадзіны_гадзін" : "гадзіну_гадзіны_гадзін", dd: "дзень_дні_дзён", MM: "месяц_месяцы_месяцаў", yy: "год_гады_гадоў" }; return "m" === n ? a ? "хвіліна" : "хвіліну" : "h" === n ? a ? "гадзіна" : "гадзіну" : e + " " + t(s[n], +e) } return e.defineLocale("be", { months: { format: "студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"), standalone: "студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_") }, monthsShort: "студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"), weekdays: { format: "нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"), standalone: "нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"), isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ }, weekdaysShort: "нд_пн_ат_ср_чц_пт_сб".split("_"), weekdaysMin: "нд_пн_ат_ср_чц_пт_сб".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY г.", LLL: "D MMMM YYYY г., HH:mm", LLLL: "dddd, D MMMM YYYY г., HH:mm" }, calendar: { sameDay: "[Сёння ў] LT", nextDay: "[Заўтра ў] LT", lastDay: "[Учора ў] LT", nextWeek: function () { return "[У] dddd [ў] LT" }, lastWeek: function () { switch (this.day()) { case 0: case 3: case 5: case 6: return "[У мінулую] dddd [ў] LT"; case 1: case 2: case 4: return "[У мінулы] dddd [ў] LT" } }, sameElse: "L" }, relativeTime: { future: "праз %s", past: "%s таму", s: "некалькі секунд", m: a, mm: a, h: a, hh: a, d: "дзень", dd: a, M: "месяц", MM: a, y: "год", yy: a }, meridiemParse: /ночы|раніцы|дня|вечара/, isPM: function (e) { return /^(дня|вечара)$/.test(e) }, meridiem: function (e, t, a) { return e < 4 ? "ночы" : e < 12 ? "раніцы" : e < 17 ? "дня" : "вечара" }, dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, ordinal: function (e, t) { switch (t) { case "M": case "d": case "DDD": case "w": case "W": return e % 10 != 2 && e % 10 != 3 || e % 100 == 12 || e % 100 == 13 ? e + "-ы" : e + "-і"; case "D": return e + "-га"; default: return e } }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("bg", { months: "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"), monthsShort: "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"), weekdays: "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"), weekdaysShort: "нед_пон_вто_сря_чет_пет_съб".split("_"), weekdaysMin: "нд_пн_вт_ср_чт_пт_сб".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "D.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[Днес в] LT", nextDay: "[Утре в] LT", nextWeek: "dddd [в] LT", lastDay: "[Вчера в] LT", lastWeek: function () { switch (this.day()) { case 0: case 3: case 6: return "[В изминалата] dddd [в] LT"; case 1: case 2: case 4: case 5: return "[В изминалия] dddd [в] LT" } }, sameElse: "L" }, relativeTime: { future: "след %s", past: "преди %s", s: "няколко секунди", m: "минута", mm: "%d минути", h: "час", hh: "%d часа", d: "ден", dd: "%d дни", M: "месец", MM: "%d месеца", y: "година", yy: "%d години" }, dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, ordinal: function (e) { var t = e % 10, a = e % 100; return 0 === e ? e + "-ев" : 0 === a ? e + "-ен" : a > 10 && a < 20 ? e + "-ти" : 1 === t ? e + "-ви" : 2 === t ? e + "-ри" : 7 === t || 8 === t ? e + "-ми" : e + "-ти" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "১", 2: "২", 3: "৩", 4: "৪", 5: "৫", 6: "৬", 7: "৭", 8: "৮", 9: "৯", 0: "০" }, a = { "১": "1", "২": "2", "৩": "3", "৪": "4", "৫": "5", "৬": "6", "৭": "7", "৮": "8", "৯": "9", "০": "0" }; return e.defineLocale("bn", { months: "জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"), monthsShort: "জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"), weekdays: "রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"), weekdaysShort: "রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"), weekdaysMin: "রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"), longDateFormat: { LT: "A h:mm সময়", LTS: "A h:mm:ss সময়", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm সময়", LLLL: "dddd, D MMMM YYYY, A h:mm সময়" }, calendar: { sameDay: "[আজ] LT", nextDay: "[আগামীকাল] LT", nextWeek: "dddd, LT", lastDay: "[গতকাল] LT", lastWeek: "[গত] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s পরে", past: "%s আগে", s: "কয়েক সেকেন্ড", m: "এক মিনিট", mm: "%d মিনিট", h: "এক ঘন্টা", hh: "%d ঘন্টা", d: "এক দিন", dd: "%d দিন", M: "এক মাস", MM: "%d মাস", y: "এক বছর", yy: "%d বছর" }, preparse: function (e) { return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "রাত" === t && e >= 4 || "দুপুর" === t && e < 5 || "বিকাল" === t ? e + 12 : e }, meridiem: function (e, t, a) { return e < 4 ? "রাত" : e < 10 ? "সকাল" : e < 17 ? "দুপুর" : e < 20 ? "বিকাল" : "রাত" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "༡", 2: "༢", 3: "༣", 4: "༤", 5: "༥", 6: "༦", 7: "༧", 8: "༨", 9: "༩", 0: "༠" }, a = { "༡": "1", "༢": "2", "༣": "3", "༤": "4", "༥": "5", "༦": "6", "༧": "7", "༨": "8", "༩": "9", "༠": "0" }; return e.defineLocale("bo", { months: "ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"), monthsShort: "ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"), weekdays: "གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"), weekdaysShort: "ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"), weekdaysMin: "ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[དི་རིང] LT", nextDay: "[སང་ཉིན] LT", nextWeek: "[བདུན་ཕྲག་རྗེས་མ], LT", lastDay: "[ཁ་སང] LT", lastWeek: "[བདུན་ཕྲག་མཐའ་མ] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s ལ་", past: "%s སྔན་ལ", s: "ལམ་སང", m: "སྐར་མ་གཅིག", mm: "%d སྐར་མ", h: "ཆུ་ཚོད་གཅིག", hh: "%d ཆུ་ཚོད", d: "ཉིན་གཅིག", dd: "%d ཉིན་", M: "ཟླ་བ་གཅིག", MM: "%d ཟླ་བ", y: "ལོ་གཅིག", yy: "%d ལོ" }, preparse: function (e) { return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "མཚན་མོ" === t && e >= 4 || "ཉིན་གུང" === t && e < 5 || "དགོང་དག" === t ? e + 12 : e }, meridiem: function (e, t, a) { return e < 4 ? "མཚན་མོ" : e < 10 ? "ཞོགས་ཀས" : e < 17 ? "ཉིན་གུང" : e < 20 ? "དགོང་དག" : "མཚན་མོ" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a) { return e + " " + s({ mm: "munutenn", MM: "miz", dd: "devezh" }[a], e) } function a(e) { switch (n(e)) { case 1: case 3: case 4: case 5: case 9: return e + " bloaz"; default: return e + " vloaz" } } function n(e) { return e > 9 ? n(e % 10) : e } function s(e, t) { return 2 === t ? r(e) : e } function r(e) { var t = { m: "v", b: "v", d: "z" }; return void 0 === t[e.charAt(0)] ? e : t[e.charAt(0)] + e.substring(1) } return e.defineLocale("br", { months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"), monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"), weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"), weekdaysShort: "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"), weekdaysMin: "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h[e]mm A", LTS: "h[e]mm:ss A", L: "DD/MM/YYYY", LL: "D [a viz] MMMM YYYY", LLL: "D [a viz] MMMM YYYY h[e]mm A", LLLL: "dddd, D [a viz] MMMM YYYY h[e]mm A" }, calendar: { sameDay: "[Hiziv da] LT", nextDay: "[Warc'hoazh da] LT", nextWeek: "dddd [da] LT", lastDay: "[Dec'h da] LT", lastWeek: "dddd [paset da] LT", sameElse: "L" }, relativeTime: { future: "a-benn %s", past: "%s 'zo", s: "un nebeud segondennoù", m: "ur vunutenn", mm: t, h: "un eur", hh: "%d eur", d: "un devezh", dd: t, M: "ur miz", MM: t, y: "ur bloaz", yy: a }, dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, ordinal: function (e) { return e + (1 === e ? "añ" : "vet") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a) { var n = e + " "; switch (a) { case "m": return t ? "jedna minuta" : "jedne minute"; case "mm": return n += 1 === e ? "minuta" : 2 === e || 3 === e || 4 === e ? "minute" : "minuta"; case "h": return t ? "jedan sat" : "jednog sata"; case "hh": return n += 1 === e ? "sat" : 2 === e || 3 === e || 4 === e ? "sata" : "sati"; case "dd": return n += 1 === e ? "dan" : "dana"; case "MM": return n += 1 === e ? "mjesec" : 2 === e || 3 === e || 4 === e ? "mjeseca" : "mjeseci"; case "yy": return n += 1 === e ? "godina" : 2 === e || 3 === e || 4 === e ? "godine" : "godina" } } return e.defineLocale("bs", { months: "januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function () { switch (this.day()) { case 0: return "[u] [nedjelju] [u] LT"; case 3: return "[u] [srijedu] [u] LT"; case 6: return "[u] [subotu] [u] LT"; case 1: case 2: case 4: case 5: return "[u] dddd [u] LT" } }, lastDay: "[jučer u] LT", lastWeek: function () { switch (this.day()) { case 0: case 3: return "[prošlu] dddd [u] LT"; case 6: return "[prošle] [subote] [u] LT"; case 1: case 2: case 4: case 5: return "[prošli] dddd [u] LT" } }, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "par sekundi", m: t, mm: t, h: t, hh: t, d: "dan", dd: t, M: "mjesec", MM: t, y: "godinu", yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ca", { months: { standalone: "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"), format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"), isFormat: /D[oD]?(\s)+MMMM/ }, monthsShort: "gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"), monthsParseExact: !0, weekdays: "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"), weekdaysShort: "dg._dl._dt._dc._dj._dv._ds.".split("_"), weekdaysMin: "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "[el] D MMMM [de] YYYY", ll: "D MMM YYYY", LLL: "[el] D MMMM [de] YYYY [a les] H:mm", lll: "D MMM YYYY, H:mm", LLLL: "[el] dddd D MMMM [de] YYYY [a les] H:mm", llll: "ddd D MMM YYYY, H:mm" }, calendar: { sameDay: function () { return "[avui a " + (1 !== this.hours() ? "les" : "la") + "] LT" }, nextDay: function () { return "[demà a " + (1 !== this.hours() ? "les" : "la") + "] LT" }, nextWeek: function () { return "dddd [a " + (1 !== this.hours() ? "les" : "la") + "] LT" }, lastDay: function () { return "[ahir a " + (1 !== this.hours() ? "les" : "la") + "] LT" }, lastWeek: function () { return "[el] dddd [passat a " + (1 !== this.hours() ? "les" : "la") + "] LT" }, sameElse: "L" }, relativeTime: { future: "d'aquí %s", past: "fa %s", s: "uns segons", m: "un minut", mm: "%d minuts", h: "una hora", hh: "%d hores", d: "un dia", dd: "%d dies", M: "un mes", MM: "%d mesos", y: "un any", yy: "%d anys" }, dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, ordinal: function (e, t) { var a = 1 === e ? "r" : 2 === e ? "n" : 3 === e ? "r" : 4 === e ? "t" : "è"; return "w" !== t && "W" !== t || (a = "a"), e + a }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { return e > 1 && e < 5 && 1 != ~~(e / 10) } function a(e, a, n, s) { var r = e + " "; switch (n) { case "s": return a || s ? "pár sekund" : "pár sekundami"; case "m": return a ? "minuta" : s ? "minutu" : "minutou"; case "mm": return a || s ? r + (t(e) ? "minuty" : "minut") : r + "minutami"; case "h": return a ? "hodina" : s ? "hodinu" : "hodinou"; case "hh": return a || s ? r + (t(e) ? "hodiny" : "hodin") : r + "hodinami"; case "d": return a || s ? "den" : "dnem"; case "dd": return a || s ? r + (t(e) ? "dny" : "dní") : r + "dny"; case "M": return a || s ? "měsíc" : "měsícem"; case "MM": return a || s ? r + (t(e) ? "měsíce" : "měsíců") : r + "měsíci"; case "y": return a || s ? "rok" : "rokem"; case "yy": return a || s ? r + (t(e) ? "roky" : "let") : r + "lety" } } var n = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"), s = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"); return e.defineLocale("cs", { months: n, monthsShort: s, monthsParse: function (e, t) { var a, n = []; for (a = 0; a < 12; a++)n[a] = new RegExp("^" + e[a] + "$|^" + t[a] + "$", "i"); return n }(n, s), shortMonthsParse: function (e) { var t, a = []; for (t = 0; t < 12; t++)a[t] = new RegExp("^" + e[t] + "$", "i"); return a }(s), longMonthsParse: function (e) { var t, a = []; for (t = 0; t < 12; t++)a[t] = new RegExp("^" + e[t] + "$", "i"); return a }(n), weekdays: "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"), weekdaysShort: "ne_po_út_st_čt_pá_so".split("_"), weekdaysMin: "ne_po_út_st_čt_pá_so".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd D. MMMM YYYY H:mm", l: "D. M. YYYY" }, calendar: { sameDay: "[dnes v] LT", nextDay: "[zítra v] LT", nextWeek: function () { switch (this.day()) { case 0: return "[v neděli v] LT"; case 1: case 2: return "[v] dddd [v] LT"; case 3: return "[ve středu v] LT"; case 4: return "[ve čtvrtek v] LT"; case 5: return "[v pátek v] LT"; case 6: return "[v sobotu v] LT" } }, lastDay: "[včera v] LT", lastWeek: function () { switch (this.day()) { case 0: return "[minulou neděli v] LT"; case 1: case 2: return "[minulé] dddd [v] LT"; case 3: return "[minulou středu v] LT"; case 4: case 5: return "[minulý] dddd [v] LT"; case 6: return "[minulou sobotu v] LT" } }, sameElse: "L" }, relativeTime: { future: "za %s", past: "před %s", s: a, m: a, mm: a, h: a, hh: a, d: a, dd: a, M: a, MM: a, y: a, yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("cv", { months: "кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"), monthsShort: "кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"), weekdays: "вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"), weekdaysShort: "выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"), weekdaysMin: "вр_тн_ыт_юн_кҫ_эр_шм".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]", LLL: "YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm", LLLL: "dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm" }, calendar: { sameDay: "[Паян] LT [сехетре]", nextDay: "[Ыран] LT [сехетре]", lastDay: "[Ӗнер] LT [сехетре]", nextWeek: "[Ҫитес] dddd LT [сехетре]", lastWeek: "[Иртнӗ] dddd LT [сехетре]", sameElse: "L" }, relativeTime: { future: function (e) { return e + (/сехет$/i.exec(e) ? "рен" : /ҫул$/i.exec(e) ? "тан" : "ран") }, past: "%s каялла", s: "пӗр-ик ҫеккунт", m: "пӗр минут", mm: "%d минут", h: "пӗр сехет", hh: "%d сехет", d: "пӗр кун", dd: "%d кун", M: "пӗр уйӑх", MM: "%d уйӑх", y: "пӗр ҫул", yy: "%d ҫул" }, dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, ordinal: "%d-мӗш", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("cy", { months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"), monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"), weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"), weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"), weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Heddiw am] LT", nextDay: "[Yfory am] LT", nextWeek: "dddd [am] LT", lastDay: "[Ddoe am] LT", lastWeek: "dddd [diwethaf am] LT", sameElse: "L" }, relativeTime: { future: "mewn %s", past: "%s yn ôl", s: "ychydig eiliadau", m: "munud", mm: "%d munud", h: "awr", hh: "%d awr", d: "diwrnod", dd: "%d diwrnod", M: "mis", MM: "%d mis", y: "blwyddyn", yy: "%d flynedd" }, dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, ordinal: function (e) { var t = e, a = "", n = ["", "af", "il", "ydd", "ydd", "ed", "ed", "ed", "fed", "fed", "fed", "eg", "fed", "eg", "eg", "fed", "eg", "eg", "fed", "eg", "fed"]; return t > 20 ? a = 40 === t || 50 === t || 60 === t || 80 === t || 100 === t ? "fed" : "ain" : t > 0 && (a = n[t]), e + a }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("da", { months: "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), weekdays: "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), weekdaysShort: "søn_man_tir_ons_tor_fre_lør".split("_"), weekdaysMin: "sø_ma_ti_on_to_fr_lø".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd [d.] D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[i dag kl.] LT", nextDay: "[i morgen kl.] LT", nextWeek: "på dddd [kl.] LT", lastDay: "[i går kl.] LT", lastWeek: "[i] dddd[s kl.] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s siden", s: "få sekunder", m: "et minut", mm: "%d minutter", h: "en time", hh: "%d timer", d: "en dag", dd: "%d dage", M: "en måned", MM: "%d måneder", y: "et år", yy: "%d år" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] }; return t ? s[a][0] : s[a][1] } return e.defineLocale("de-at", { months: "Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", m: t, mm: "%d Minuten", h: t, hh: "%d Stunden", d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] }; return t ? s[a][0] : s[a][1] } return e.defineLocale("de-ch", { months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH.mm", LLLL: "dddd, D. MMMM YYYY HH.mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", m: t, mm: "%d Minuten", h: t, hh: "%d Stunden", d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] }; return t ? s[a][0] : s[a][1] } return e.defineLocale("de", { months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", m: t, mm: "%d Minuten", h: t, hh: "%d Stunden", d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = ["ޖެނުއަރީ", "ފެބްރުއަރީ", "މާރިޗު", "އޭޕްރީލު", "މޭ", "ޖޫން", "ޖުލައި", "އޯގަސްޓު", "ސެޕްޓެމްބަރު", "އޮކްޓޯބަރު", "ނޮވެމްބަރު", "ޑިސެމްބަރު"], a = ["އާދިއްތަ", "ހޯމަ", "އަންގާރަ", "ބުދަ", "ބުރާސްފަތި", "ހުކުރު", "ހޮނިހިރު"]; return e.defineLocale("dv", { months: t, monthsShort: t, weekdays: a, weekdaysShort: a, weekdaysMin: "އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/M/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /މކ|މފ/, isPM: function (e) { return "މފ" === e }, meridiem: function (e, t, a) { return e < 12 ? "މކ" : "މފ" }, calendar: { sameDay: "[މިއަދު] LT", nextDay: "[މާދަމާ] LT", nextWeek: "dddd LT", lastDay: "[އިއްޔެ] LT", lastWeek: "[ފާއިތުވި] dddd LT", sameElse: "L" }, relativeTime: { future: "ތެރޭގައި %s", past: "ކުރިން %s", s: "ސިކުންތުކޮޅެއް", m: "މިނިޓެއް", mm: "މިނިޓު %d", h: "ގަޑިއިރެއް", hh: "ގަޑިއިރު %d", d: "ދުވަހެއް", dd: "ދުވަސް %d", M: "މަހެއް", MM: "މަސް %d", y: "އަހަރެއް", yy: "އަހަރު %d" }, preparse: function (e) { return e.replace(/،/g, ",") }, postformat: function (e) { return e.replace(/,/g, "،") }, week: { dow: 7, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e) } return e.defineLocale("el", { monthsNominativeEl: "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"), monthsGenitiveEl: "Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"), months: function (e, t) { return e ? /D/.test(t.substring(0, t.indexOf("MMMM"))) ? this._monthsGenitiveEl[e.month()] : this._monthsNominativeEl[e.month()] : this._monthsNominativeEl }, monthsShort: "Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"), weekdays: "Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"), weekdaysShort: "Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"), weekdaysMin: "Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"), meridiem: function (e, t, a) { return e > 11 ? a ? "μμ" : "ΜΜ" : a ? "πμ" : "ΠΜ" }, isPM: function (e) { return "μ" === (e + "").toLowerCase()[0] }, meridiemParse: /[ΠΜ]\.?Μ?\.?/i, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendarEl: { sameDay: "[Σήμερα {}] LT", nextDay: "[Αύριο {}] LT", nextWeek: "dddd [{}] LT", lastDay: "[Χθες {}] LT", lastWeek: function () { switch (this.day()) { case 6: return "[το προηγούμενο] dddd [{}] LT"; default: return "[την προηγούμενη] dddd [{}] LT" } }, sameElse: "L" }, calendar: function (e, a) { var n = this._calendarEl[e], s = a && a.hours(); return t(n) && (n = n.apply(a)), n.replace("{}", s % 12 == 1 ? "στη" : "στις") }, relativeTime: { future: "σε %s", past: "%s πριν", s: "λίγα δευτερόλεπτα", m: "ένα λεπτό", mm: "%d λεπτά", h: "μία ώρα", hh: "%d ώρες", d: "μία μέρα", dd: "%d μέρες", M: "ένας μήνας", MM: "%d μήνες", y: "ένας χρόνος", yy: "%d χρόνια" }, dayOfMonthOrdinalParse: /\d{1,2}η/, ordinal: "%dη", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("en-au", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few 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" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("en-ca", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "YYYY-MM-DD", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few 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" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("en-gb", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few 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" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("en-ie", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few 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" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("en-nz", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few 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" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("eo", { months: "januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"), weekdays: "dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"), weekdaysShort: "dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"), weekdaysMin: "di_lu_ma_me_ĵa_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D[-a de] MMMM, YYYY", LLL: "D[-a de] MMMM, YYYY HH:mm", LLLL: "dddd, [la] D[-a de] MMMM, YYYY HH:mm" }, meridiemParse: /[ap]\.t\.m/i, isPM: function (e) { return "p" === e.charAt(0).toLowerCase() }, meridiem: function (e, t, a) { return e > 11 ? a ? "p.t.m." : "P.T.M." : a ? "a.t.m." : "A.T.M." }, calendar: { sameDay: "[Hodiaŭ je] LT", nextDay: "[Morgaŭ je] LT", nextWeek: "dddd [je] LT", lastDay: "[Hieraŭ je] LT", lastWeek: "[pasinta] dddd [je] LT", sameElse: "L" }, relativeTime: { future: "post %s", past: "antaŭ %s", s: "sekundoj", m: "minuto", mm: "%d minutoj", h: "horo", hh: "%d horoj", d: "tago", dd: "%d tagoj", M: "monato", MM: "%d monatoj", y: "jaro", yy: "%d jaroj" }, dayOfMonthOrdinalParse: /\d{1,2}a/, ordinal: "%da", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), a = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"); return e.defineLocale("es-do", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function (e, n) { return e ? /-MMM-/.test(n) ? a[e.month()] : t[e.month()] : t }, monthsParseExact: !0, weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY h:mm A", LLLL: "dddd, D [de] MMMM [de] YYYY h:mm A" }, calendar: { sameDay: function () { return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, nextDay: function () { return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, nextWeek: function () { return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, lastDay: function () { return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, lastWeek: function () { return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), a = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"); return e.defineLocale("es", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function (e, n) { return e ? /-MMM-/.test(n) ? a[e.month()] : t[e.month()] : t }, monthsParseExact: !0, weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, calendar: { sameDay: function () { return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, nextDay: function () { return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, nextWeek: function () { return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, lastDay: function () { return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, lastWeek: function () { return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT" }, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { s: ["mõne sekundi", "mõni sekund", "paar sekundit"], m: ["ühe minuti", "üks minut"], mm: [e + " minuti", e + " minutit"], h: ["ühe tunni", "tund aega", "üks tund"], hh: [e + " tunni", e + " tundi"], d: ["ühe päeva", "üks päev"], M: ["kuu aja", "kuu aega", "üks kuu"], MM: [e + " kuu", e + " kuud"], y: ["ühe aasta", "aasta", "üks aasta"], yy: [e + " aasta", e + " aastat"] }; return t ? s[a][2] ? s[a][2] : s[a][1] : n ? s[a][0] : s[a][1] } return e.defineLocale("et", { months: "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"), monthsShort: "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"), weekdays: "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"), weekdaysShort: "P_E_T_K_N_R_L".split("_"), weekdaysMin: "P_E_T_K_N_R_L".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[Täna,] LT", nextDay: "[Homme,] LT", nextWeek: "[Järgmine] dddd LT", lastDay: "[Eile,] LT", lastWeek: "[Eelmine] dddd LT", sameElse: "L" }, relativeTime: { future: "%s pärast", past: "%s tagasi", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: "%d päeva", M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("eu", { months: "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"), monthsShort: "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"), monthsParseExact: !0, weekdays: "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"), weekdaysShort: "ig._al._ar._az._og._ol._lr.".split("_"), weekdaysMin: "ig_al_ar_az_og_ol_lr".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY[ko] MMMM[ren] D[a]", LLL: "YYYY[ko] MMMM[ren] D[a] HH:mm", LLLL: "dddd, YYYY[ko] MMMM[ren] D[a] HH:mm", l: "YYYY-M-D", ll: "YYYY[ko] MMM D[a]", lll: "YYYY[ko] MMM D[a] HH:mm", llll: "ddd, YYYY[ko] MMM D[a] HH:mm" }, calendar: { sameDay: "[gaur] LT[etan]", nextDay: "[bihar] LT[etan]", nextWeek: "dddd LT[etan]", lastDay: "[atzo] LT[etan]", lastWeek: "[aurreko] dddd LT[etan]", sameElse: "L" }, relativeTime: { future: "%s barru", past: "duela %s", s: "segundo batzuk", m: "minutu bat", mm: "%d minutu", h: "ordu bat", hh: "%d ordu", d: "egun bat", dd: "%d egun", M: "hilabete bat", MM: "%d hilabete", y: "urte bat", yy: "%d urte" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "۱", 2: "۲", 3: "۳", 4: "۴", 5: "۵", 6: "۶", 7: "۷", 8: "۸", 9: "۹", 0: "۰" }, a = { "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9", "۰": "0" }; return e.defineLocale("fa", { months: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"), monthsShort: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"), weekdays: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"), weekdaysShort: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"), weekdaysMin: "ی_د_س_چ_پ_ج_ش".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, meridiemParse: /قبل از ظهر|بعد از ظهر/, isPM: function (e) { return /بعد از ظهر/.test(e) }, meridiem: function (e, t, a) { return e < 12 ? "قبل از ظهر" : "بعد از ظهر" }, calendar: { sameDay: "[امروز ساعت] LT", nextDay: "[فردا ساعت] LT", nextWeek: "dddd [ساعت] LT", lastDay: "[دیروز ساعت] LT", lastWeek: "dddd [پیش] [ساعت] LT", sameElse: "L" }, relativeTime: { future: "در %s", past: "%s پیش", s: "چند ثانیه", m: "یک دقیقه", mm: "%d دقیقه", h: "یک ساعت", hh: "%d ساعت", d: "یک روز", dd: "%d روز", M: "یک ماه", MM: "%d ماه", y: "یک سال", yy: "%d سال" }, preparse: function (e) { return e.replace(/[۰-۹]/g, function (e) { return a[e] }).replace(/،/g, ",") }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }).replace(/,/g, "،") }, dayOfMonthOrdinalParse: /\d{1,2}م/, ordinal: "%dم", week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, n, s) { var r = ""; switch (n) { case "s": return s ? "muutaman sekunnin" : "muutama sekunti"; case "m": return s ? "minuutin" : "minuutti"; case "mm": r = s ? "minuutin" : "minuuttia"; break; case "h": return s ? "tunnin" : "tunti"; case "hh": r = s ? "tunnin" : "tuntia"; break; case "d": return s ? "päivän" : "päivä"; case "dd": r = s ? "päivän" : "päivää"; break; case "M": return s ? "kuukauden" : "kuukausi"; case "MM": r = s ? "kuukauden" : "kuukautta"; break; case "y": return s ? "vuoden" : "vuosi"; case "yy": r = s ? "vuoden" : "vuotta" }return r = a(e, s) + " " + r } function a(e, t) { return e < 10 ? t ? s[e] : n[e] : e } var n = "nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "), s = ["nolla", "yhden", "kahden", "kolmen", "neljän", "viiden", "kuuden", n[7], n[8], n[9]]; return e.defineLocale("fi", { months: "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"), monthsShort: "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"), weekdays: "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"), weekdaysShort: "su_ma_ti_ke_to_pe_la".split("_"), weekdaysMin: "su_ma_ti_ke_to_pe_la".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD.MM.YYYY", LL: "Do MMMM[ta] YYYY", LLL: "Do MMMM[ta] YYYY, [klo] HH.mm", LLLL: "dddd, Do MMMM[ta] YYYY, [klo] HH.mm", l: "D.M.YYYY", ll: "Do MMM YYYY", lll: "Do MMM YYYY, [klo] HH.mm", llll: "ddd, Do MMM YYYY, [klo] HH.mm" }, calendar: { sameDay: "[tänään] [klo] LT", nextDay: "[huomenna] [klo] LT", nextWeek: "dddd [klo] LT", lastDay: "[eilen] [klo] LT", lastWeek: "[viime] dddd[na] [klo] LT", sameElse: "L" }, relativeTime: { future: "%s päästä", past: "%s sitten", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("fo", { months: "januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), weekdays: "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"), weekdaysShort: "sun_mán_týs_mik_hós_frí_ley".split("_"), weekdaysMin: "su_má_tý_mi_hó_fr_le".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D. MMMM, YYYY HH:mm" }, calendar: { sameDay: "[Í dag kl.] LT", nextDay: "[Í morgin kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[Í gjár kl.] LT", lastWeek: "[síðstu] dddd [kl] LT", sameElse: "L" }, relativeTime: { future: "um %s", past: "%s síðani", s: "fá sekund", m: "ein minutt", mm: "%d minuttir", h: "ein tími", hh: "%d tímar", d: "ein dagur", dd: "%d dagar", M: "ein mánaði", MM: "%d mánaðir", y: "eitt ár", yy: "%d ár" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("fr-ca", { months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd’hui à] LT", nextDay: "[Demain à] LT", nextWeek: "dddd [à] LT", lastDay: "[Hier à] LT", lastWeek: "dddd [dernier à] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal: function (e, t) { switch (t) { default: case "M": case "Q": case "D": case "DDD": case "d": return e + (1 === e ? "er" : "e"); case "w": case "W": return e + (1 === e ? "re" : "e") } } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("fr-ch", { months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd’hui à] LT", nextDay: "[Demain à] LT", nextWeek: "dddd [à] LT", lastDay: "[Hier à] LT", lastWeek: "dddd [dernier à] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal: function (e, t) { switch (t) { default: case "M": case "Q": case "D": case "DDD": case "d": return e + (1 === e ? "er" : "e"); case "w": case "W": return e + (1 === e ? "re" : "e") } }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("fr", { months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd’hui à] LT", nextDay: "[Demain à] LT", nextWeek: "dddd [à] LT", lastDay: "[Hier à] LT", lastWeek: "dddd [dernier à] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|)/, ordinal: function (e, t) { switch (t) { case "D": return e + (1 === e ? "er" : ""); default: case "M": case "Q": case "DDD": case "d": return e + (1 === e ? "er" : "e"); case "w": case "W": return e + (1 === e ? "re" : "e") } }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = "jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"), a = "jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"); return e.defineLocale("fy", { months: "jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"), monthsShort: function (e, n) { return e ? /-MMM-/.test(n) ? a[e.month()] : t[e.month()] : t }, monthsParseExact: !0, weekdays: "snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"), weekdaysShort: "si._mo._ti._wo._to._fr._so.".split("_"), weekdaysMin: "Si_Mo_Ti_Wo_To_Fr_So".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[hjoed om] LT", nextDay: "[moarn om] LT", nextWeek: "dddd [om] LT", lastDay: "[juster om] LT", lastWeek: "[ôfrûne] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "oer %s", past: "%s lyn", s: "in pear sekonden", m: "ien minút", mm: "%d minuten", h: "ien oere", hh: "%d oeren", d: "ien dei", dd: "%d dagen", M: "ien moanne", MM: "%d moannen", y: "ien jier", yy: "%d jierren" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function (e) { return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = ["Am Faoilleach", "An Gearran", "Am Màrt", "An Giblean", "An Cèitean", "An t-Ògmhios", "An t-Iuchar", "An Lùnastal", "An t-Sultain", "An Dàmhair", "An t-Samhain", "An Dùbhlachd"], a = ["Faoi", "Gear", "Màrt", "Gibl", "Cèit", "Ògmh", "Iuch", "Lùn", "Sult", "Dàmh", "Samh", "Dùbh"], n = ["Didòmhnaich", "Diluain", "Dimàirt", "Diciadain", "Diardaoin", "Dihaoine", "Disathairne"], s = ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], r = ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"]; return e.defineLocale("gd", { months: t, monthsShort: a, monthsParseExact: !0, weekdays: n, weekdaysShort: s, weekdaysMin: r, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[An-diugh aig] LT", nextDay: "[A-màireach aig] LT", nextWeek: "dddd [aig] LT", lastDay: "[An-dè aig] LT", lastWeek: "dddd [seo chaidh] [aig] LT", sameElse: "L" }, relativeTime: { future: "ann an %s", past: "bho chionn %s", s: "beagan diogan", m: "mionaid", mm: "%d mionaidean", h: "uair", hh: "%d uairean", d: "latha", dd: "%d latha", M: "mìos", MM: "%d mìosan", y: "bliadhna", yy: "%d bliadhna" }, dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, ordinal: function (e) { return e + (1 === e ? "d" : e % 10 == 2 ? "na" : "mh") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("gl", { months: "xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"), monthsShort: "xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "domingo_luns_martes_mércores_xoves_venres_sábado".split("_"), weekdaysShort: "dom._lun._mar._mér._xov._ven._sáb.".split("_"), weekdaysMin: "do_lu_ma_mé_xo_ve_sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, calendar: { sameDay: function () { return "[hoxe " + (1 !== this.hours() ? "ás" : "á") + "] LT" }, nextDay: function () { return "[mañá " + (1 !== this.hours() ? "ás" : "á") + "] LT" }, nextWeek: function () { return "dddd [" + (1 !== this.hours() ? "ás" : "a") + "] LT" }, lastDay: function () { return "[onte " + (1 !== this.hours() ? "á" : "a") + "] LT" }, lastWeek: function () { return "[o] dddd [pasado " + (1 !== this.hours() ? "ás" : "a") + "] LT" }, sameElse: "L" }, relativeTime: { future: function (e) { return 0 === e.indexOf("un") ? "n" + e : "en " + e }, past: "hai %s", s: "uns segundos", m: "un minuto", mm: "%d minutos", h: "unha hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { s: ["thodde secondanim", "thodde second"], m: ["eka mintan", "ek minute"], mm: [e + " mintanim", e + " mintam"], h: ["eka horan", "ek hor"], hh: [e + " horanim", e + " hor"], d: ["eka disan", "ek dis"], dd: [e + " disanim", e + " dis"], M: ["eka mhoinean", "ek mhoino"], MM: [e + " mhoineanim", e + " mhoine"], y: ["eka vorsan", "ek voros"], yy: [e + " vorsanim", e + " vorsam"] }; return t ? s[a][0] : s[a][1] } return e.defineLocale("gom-latn", { months: "Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"), monthsShort: "Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"), weekdaysShort: "Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"), weekdaysMin: "Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "A h:mm [vazta]", LTS: "A h:mm:ss [vazta]", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY A h:mm [vazta]", LLLL: "dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]", llll: "ddd, D MMM YYYY, A h:mm [vazta]" }, calendar: { sameDay: "[Aiz] LT", nextDay: "[Faleam] LT", nextWeek: "[Ieta to] dddd[,] LT", lastDay: "[Kal] LT", lastWeek: "[Fatlo] dddd[,] LT", sameElse: "L" }, relativeTime: { future: "%s", past: "%s adim", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}(er)/, ordinal: function (e, t) { switch (t) { case "D": return e + "er"; default: case "M": case "Q": case "DDD": case "d": case "w": case "W": return e } }, week: { dow: 1, doy: 4 }, meridiemParse: /rati|sokalli|donparam|sanje/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "rati" === t ? e < 4 ? e : e + 12 : "sokalli" === t ? e : "donparam" === t ? e > 12 ? e : e + 12 : "sanje" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "rati" : e < 12 ? "sokalli" : e < 16 ? "donparam" : e < 20 ? "sanje" : "rati" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("he", { months: "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"), monthsShort: "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"), weekdays: "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"), weekdaysShort: "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"), weekdaysMin: "א_ב_ג_ד_ה_ו_ש".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [ב]MMMM YYYY", LLL: "D [ב]MMMM YYYY HH:mm", LLLL: "dddd, D [ב]MMMM YYYY HH:mm", l: "D/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, calendar: { sameDay: "[היום ב־]LT", nextDay: "[מחר ב־]LT", nextWeek: "dddd [בשעה] LT", lastDay: "[אתמול ב־]LT", lastWeek: "[ביום] dddd [האחרון בשעה] LT", sameElse: "L" }, relativeTime: { future: "בעוד %s", past: "לפני %s", s: "מספר שניות", m: "דקה", mm: "%d דקות", h: "שעה", hh: function (e) { return 2 === e ? "שעתיים" : e + " שעות" }, d: "יום", dd: function (e) { return 2 === e ? "יומיים" : e + " ימים" }, M: "חודש", MM: function (e) { return 2 === e ? "חודשיים" : e + " חודשים" }, y: "שנה", yy: function (e) { return 2 === e ? "שנתיים" : e % 10 == 0 && 10 !== e ? e + " שנה" : e + " שנים" } }, meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, isPM: function (e) { return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e) }, meridiem: function (e, t, a) { return e < 5 ? "לפנות בוקר" : e < 10 ? "בבוקר" : e < 12 ? a ? 'לפנה"צ' : "לפני הצהריים" : e < 18 ? a ? 'אחה"צ' : "אחרי הצהריים" : "בערב" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "१", 2: "२", 3: "३", 4: "४", 5: "५", 6: "६", 7: "७", 8: "८", 9: "९", 0: "०" }, a = { "१": "1", "२": "2", "३": "3", "४": "4", "५": "5", "६": "6", "७": "7", "८": "8", "९": "9", "०": "0" }; return e.defineLocale("hi", { months: "जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"), monthsShort: "जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"), monthsParseExact: !0, weekdays: "रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"), weekdaysShort: "रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"), weekdaysMin: "र_सो_मं_बु_गु_शु_श".split("_"), longDateFormat: { LT: "A h:mm बजे", LTS: "A h:mm:ss बजे", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm बजे", LLLL: "dddd, D MMMM YYYY, A h:mm बजे" }, calendar: { sameDay: "[आज] LT", nextDay: "[कल] LT", nextWeek: "dddd, LT", lastDay: "[कल] LT", lastWeek: "[पिछले] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s में", past: "%s पहले", s: "कुछ ही क्षण", m: "एक मिनट", mm: "%d मिनट", h: "एक घंटा", hh: "%d घंटे", d: "एक दिन", dd: "%d दिन", M: "एक महीने", MM: "%d महीने", y: "एक वर्ष", yy: "%d वर्ष" }, preparse: function (e) { return e.replace(/[१२३४५६७८९०]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /रात|सुबह|दोपहर|शाम/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "रात" === t ? e < 4 ? e : e + 12 : "सुबह" === t ? e : "दोपहर" === t ? e >= 10 ? e : e + 12 : "शाम" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "रात" : e < 10 ? "सुबह" : e < 17 ? "दोपहर" : e < 20 ? "शाम" : "रात" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a) { var n = e + " "; switch (a) { case "m": return t ? "jedna minuta" : "jedne minute"; case "mm": return n += 1 === e ? "minuta" : 2 === e || 3 === e || 4 === e ? "minute" : "minuta"; case "h": return t ? "jedan sat" : "jednog sata"; case "hh": return n += 1 === e ? "sat" : 2 === e || 3 === e || 4 === e ? "sata" : "sati"; case "dd": return n += 1 === e ? "dan" : "dana"; case "MM": return n += 1 === e ? "mjesec" : 2 === e || 3 === e || 4 === e ? "mjeseca" : "mjeseci"; case "yy": return n += 1 === e ? "godina" : 2 === e || 3 === e || 4 === e ? "godine" : "godina" } } return e.defineLocale("hr", { months: { format: "siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"), standalone: "siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_") }, monthsShort: "sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function () { switch (this.day()) { case 0: return "[u] [nedjelju] [u] LT"; case 3: return "[u] [srijedu] [u] LT"; case 6: return "[u] [subotu] [u] LT"; case 1: case 2: case 4: case 5: return "[u] dddd [u] LT" } }, lastDay: "[jučer u] LT", lastWeek: function () { switch (this.day()) { case 0: case 3: return "[prošlu] dddd [u] LT"; case 6: return "[prošle] [subote] [u] LT"; case 1: case 2: case 4: case 5: return "[prošli] dddd [u] LT" } }, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "par sekundi", m: t, mm: t, h: t, hh: t, d: "dan", dd: t, M: "mjesec", MM: t, y: "godinu", yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = e; switch (a) { case "s": return n || t ? "néhány másodperc" : "néhány másodperce"; case "m": return "egy" + (n || t ? " perc" : " perce"); case "mm": return s + (n || t ? " perc" : " perce"); case "h": return "egy" + (n || t ? " óra" : " órája"); case "hh": return s + (n || t ? " óra" : " órája"); case "d": return "egy" + (n || t ? " nap" : " napja"); case "dd": return s + (n || t ? " nap" : " napja"); case "M": return "egy" + (n || t ? " hónap" : " hónapja"); case "MM": return s + (n || t ? " hónap" : " hónapja"); case "y": return "egy" + (n || t ? " év" : " éve"); case "yy": return s + (n || t ? " év" : " éve") }return "" } function a(e) { return (e ? "" : "[múlt] ") + "[" + n[this.day()] + "] LT[-kor]" } var n = "vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" "); return e.defineLocale("hu", { months: "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"), monthsShort: "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"), weekdays: "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"), weekdaysShort: "vas_hét_kedd_sze_csüt_pén_szo".split("_"), weekdaysMin: "v_h_k_sze_cs_p_szo".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY. MMMM D.", LLL: "YYYY. MMMM D. H:mm", LLLL: "YYYY. MMMM D., dddd H:mm" }, meridiemParse: /de|du/i, isPM: function (e) { return "u" === e.charAt(1).toLowerCase() }, meridiem: function (e, t, a) { return e < 12 ? !0 === a ? "de" : "DE" : !0 === a ? "du" : "DU" }, calendar: { sameDay: "[ma] LT[-kor]", nextDay: "[holnap] LT[-kor]", nextWeek: function () { return a.call(this, !0) }, lastDay: "[tegnap] LT[-kor]", lastWeek: function () { return a.call(this, !1) }, sameElse: "L" }, relativeTime: { future: "%s múlva", past: "%s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("hy-am", { months: { format: "հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"), standalone: "հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_") }, monthsShort: "հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"), weekdays: "կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"), weekdaysShort: "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"), weekdaysMin: "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY թ.", LLL: "D MMMM YYYY թ., HH:mm", LLLL: "dddd, D MMMM YYYY թ., HH:mm" }, calendar: { sameDay: "[այսօր] LT", nextDay: "[վաղը] LT", lastDay: "[երեկ] LT", nextWeek: function () { return "dddd [օրը ժամը] LT" }, lastWeek: function () { return "[անցած] dddd [օրը ժամը] LT" }, sameElse: "L" }, relativeTime: { future: "%s հետո", past: "%s առաջ", s: "մի քանի վայրկյան", m: "րոպե", mm: "%d րոպե", h: "ժամ", hh: "%d ժամ", d: "օր", dd: "%d օր", M: "ամիս", MM: "%d ամիս", y: "տարի", yy: "%d տարի" }, meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, isPM: function (e) { return /^(ցերեկվա|երեկոյան)$/.test(e) }, meridiem: function (e) { return e < 4 ? "գիշերվա" : e < 12 ? "առավոտվա" : e < 17 ? "ցերեկվա" : "երեկոյան" }, dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, ordinal: function (e, t) { switch (t) { case "DDD": case "w": case "W": case "DDDo": return 1 === e ? e + "-ին" : e + "-րդ"; default: return e } }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("id", { months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"), monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"), weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"), weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"), weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|siang|sore|malam/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "pagi" === t ? e : "siang" === t ? e >= 11 ? e : e + 12 : "sore" === t || "malam" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 11 ? "pagi" : e < 15 ? "siang" : e < 19 ? "sore" : "malam" }, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Besok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kemarin pukul] LT", lastWeek: "dddd [lalu pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lalu", s: "beberapa detik", m: "semenit", mm: "%d menit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { return e % 100 == 11 || e % 10 != 1 } function a(e, a, n, s) { var r = e + " "; switch (n) { case "s": return a || s ? "nokkrar sekúndur" : "nokkrum sekúndum"; case "m": return a ? "mínúta" : "mínútu"; case "mm": return t(e) ? r + (a || s ? "mínútur" : "mínútum") : a ? r + "mínúta" : r + "mínútu"; case "hh": return t(e) ? r + (a || s ? "klukkustundir" : "klukkustundum") : r + "klukkustund"; case "d": return a ? "dagur" : s ? "dag" : "degi"; case "dd": return t(e) ? a ? r + "dagar" : r + (s ? "daga" : "dögum") : a ? r + "dagur" : r + (s ? "dag" : "degi"); case "M": return a ? "mánuður" : s ? "mánuð" : "mánuði"; case "MM": return t(e) ? a ? r + "mánuðir" : r + (s ? "mánuði" : "mánuðum") : a ? r + "mánuður" : r + (s ? "mánuð" : "mánuði"); case "y": return a || s ? "ár" : "ári"; case "yy": return t(e) ? r + (a || s ? "ár" : "árum") : r + (a || s ? "ár" : "ári") } } return e.defineLocale("is", { months: "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"), monthsShort: "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"), weekdays: "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"), weekdaysShort: "sun_mán_þri_mið_fim_fös_lau".split("_"), weekdaysMin: "Su_Má_Þr_Mi_Fi_Fö_La".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] H:mm", LLLL: "dddd, D. MMMM YYYY [kl.] H:mm" }, calendar: { sameDay: "[í dag kl.] LT", nextDay: "[á morgun kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[í gær kl.] LT", lastWeek: "[síðasta] dddd [kl.] LT", sameElse: "L" }, relativeTime: { future: "eftir %s", past: "fyrir %s síðan", s: a, m: a, mm: a, h: "klukkustund", hh: a, d: a, dd: a, M: a, MM: a, y: a, yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("it", { months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Oggi alle] LT", nextDay: "[Domani alle] LT", nextWeek: "dddd [alle] LT", lastDay: "[Ieri alle] LT", lastWeek: function () { switch (this.day()) { case 0: return "[la scorsa] dddd [alle] LT"; default: return "[lo scorso] dddd [alle] LT" } }, sameElse: "L" }, relativeTime: { future: function (e) { return (/^[0-9].+$/.test(e) ? "tra" : "in") + " " + e }, past: "%s fa", s: "alcuni secondi", m: "un minuto", mm: "%d minuti", h: "un'ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ja", { months: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays: "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"), weekdaysShort: "日_月_火_水_木_金_土".split("_"), weekdaysMin: "日_月_火_水_木_金_土".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日 HH:mm", LLLL: "YYYY年M月D日 HH:mm dddd", l: "YYYY/MM/DD", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日 HH:mm dddd" }, meridiemParse: /午前|午後/i, isPM: function (e) { return "午後" === e }, meridiem: function (e, t, a) { return e < 12 ? "午前" : "午後" }, calendar: { sameDay: "[今日] LT", nextDay: "[明日] LT", nextWeek: "[来週]dddd LT", lastDay: "[昨日] LT", lastWeek: "[前週]dddd LT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}日/, ordinal: function (e, t) { switch (t) { case "d": case "D": case "DDD": return e + "日"; default: return e } }, relativeTime: { future: "%s後", past: "%s前", s: "数秒", m: "1分", mm: "%d分", h: "1時間", hh: "%d時間", d: "1日", dd: "%d日", M: "1ヶ月", MM: "%dヶ月", y: "1年", yy: "%d年" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("jv", { months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"), monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"), weekdays: "Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"), weekdaysShort: "Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"), weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /enjing|siyang|sonten|ndalu/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "enjing" === t ? e : "siyang" === t ? e >= 11 ? e : e + 12 : "sonten" === t || "ndalu" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 11 ? "enjing" : e < 15 ? "siyang" : e < 19 ? "sonten" : "ndalu" }, calendar: { sameDay: "[Dinten puniko pukul] LT", nextDay: "[Mbenjang pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kala wingi pukul] LT", lastWeek: "dddd [kepengker pukul] LT", sameElse: "L" }, relativeTime: { future: "wonten ing %s", past: "%s ingkang kepengker", s: "sawetawis detik", m: "setunggal menit", mm: "%d menit", h: "setunggal jam", hh: "%d jam", d: "sedinten", dd: "%d dinten", M: "sewulan", MM: "%d wulan", y: "setaun", yy: "%d taun" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ka", { months: { standalone: "იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"), format: "იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_") }, monthsShort: "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"), weekdays: { standalone: "კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"), format: "კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"), isFormat: /(წინა|შემდეგ)/ }, weekdaysShort: "კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"), weekdaysMin: "კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[დღეს] LT[-ზე]", nextDay: "[ხვალ] LT[-ზე]", lastDay: "[გუშინ] LT[-ზე]", nextWeek: "[შემდეგ] dddd LT[-ზე]", lastWeek: "[წინა] dddd LT-ზე", sameElse: "L" }, relativeTime: { future: function (e) { return /(წამი|წუთი|საათი|წელი)/.test(e) ? e.replace(/ი$/, "ში") : e + "ში" }, past: function (e) { return /(წამი|წუთი|საათი|დღე|თვე)/.test(e) ? e.replace(/(ი|ე)$/, "ის უკან") : /წელი/.test(e) ? e.replace(/წელი$/, "წლის უკან") : void 0 }, s: "რამდენიმე წამი", m: "წუთი", mm: "%d წუთი", h: "საათი", hh: "%d საათი", d: "დღე", dd: "%d დღე", M: "თვე", MM: "%d თვე", y: "წელი", yy: "%d წელი" }, dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, ordinal: function (e) { return 0 === e ? e : 1 === e ? e + "-ლი" : e < 20 || e <= 100 && e % 20 == 0 || e % 100 == 0 ? "მე-" + e : e + "-ე" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 0: "-ші", 1: "-ші", 2: "-ші", 3: "-ші", 4: "-ші", 5: "-ші", 6: "-шы", 7: "-ші", 8: "-ші", 9: "-шы", 10: "-шы", 20: "-шы", 30: "-шы", 40: "-шы", 50: "-ші", 60: "-шы", 70: "-ші", 80: "-ші", 90: "-шы", 100: "-ші" }; return e.defineLocale("kk", { months: "қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"), monthsShort: "қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"), weekdays: "жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"), weekdaysShort: "жек_дүй_сей_сәр_бей_жұм_сен".split("_"), weekdaysMin: "жк_дй_сй_ср_бй_жм_сн".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Бүгін сағат] LT", nextDay: "[Ертең сағат] LT", nextWeek: "dddd [сағат] LT", lastDay: "[Кеше сағат] LT", lastWeek: "[Өткен аптаның] dddd [сағат] LT", sameElse: "L" }, relativeTime: { future: "%s ішінде", past: "%s бұрын", s: "бірнеше секунд", m: "бір минут", mm: "%d минут", h: "бір сағат", hh: "%d сағат", d: "бір күн", dd: "%d күн", M: "бір ай", MM: "%d ай", y: "бір жыл", yy: "%d жыл" }, dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, ordinal: function (e) { var a = e % 10, n = e >= 100 ? 100 : null; return e + (t[e] || t[a] || t[n]) }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("km", { months: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"), monthsShort: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"), weekdays: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"), weekdaysShort: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"), weekdaysMin: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[ថ្ងៃនេះ ម៉ោង] LT", nextDay: "[ស្អែក ម៉ោង] LT", nextWeek: "dddd [ម៉ោង] LT", lastDay: "[ម្សិលមិញ ម៉ោង] LT", lastWeek: "dddd [សប្តាហ៍មុន] [ម៉ោង] LT", sameElse: "L" }, relativeTime: { future: "%sទៀត", past: "%sមុន", s: "ប៉ុន្មានវិនាទី", m: "មួយនាទី", mm: "%d នាទី", h: "មួយម៉ោង", hh: "%d ម៉ោង", d: "មួយថ្ងៃ", dd: "%d ថ្ងៃ", M: "មួយខែ", MM: "%d ខែ", y: "មួយឆ្នាំ", yy: "%d ឆ្នាំ" }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "೧", 2: "೨", 3: "೩", 4: "೪", 5: "೫", 6: "೬", 7: "೭", 8: "೮", 9: "೯", 0: "೦" }, a = { "೧": "1", "೨": "2", "೩": "3", "೪": "4", "೫": "5", "೬": "6", "೭": "7", "೮": "8", "೯": "9", "೦": "0" }; return e.defineLocale("kn", { months: "ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"), monthsShort: "ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ".split("_"), monthsParseExact: !0, weekdays: "ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"), weekdaysShort: "ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"), weekdaysMin: "ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[ಇಂದು] LT", nextDay: "[ನಾಳೆ] LT", nextWeek: "dddd, LT", lastDay: "[ನಿನ್ನೆ] LT", lastWeek: "[ಕೊನೆಯ] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s ನಂತರ", past: "%s ಹಿಂದೆ", s: "ಕೆಲವು ಕ್ಷಣಗಳು", m: "ಒಂದು ನಿಮಿಷ", mm: "%d ನಿಮಿಷ", h: "ಒಂದು ಗಂಟೆ", hh: "%d ಗಂಟೆ", d: "ಒಂದು ದಿನ", dd: "%d ದಿನ", M: "ಒಂದು ತಿಂಗಳು", MM: "%d ತಿಂಗಳು", y: "ಒಂದು ವರ್ಷ", yy: "%d ವರ್ಷ" }, preparse: function (e) { return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "ರಾತ್ರಿ" === t ? e < 4 ? e : e + 12 : "ಬೆಳಿಗ್ಗೆ" === t ? e : "ಮಧ್ಯಾಹ್ನ" === t ? e >= 10 ? e : e + 12 : "ಸಂಜೆ" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "ರಾತ್ರಿ" : e < 10 ? "ಬೆಳಿಗ್ಗೆ" : e < 17 ? "ಮಧ್ಯಾಹ್ನ" : e < 20 ? "ಸಂಜೆ" : "ರಾತ್ರಿ" }, dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, ordinal: function (e) { return e + "ನೇ" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ko", { months: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), monthsShort: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), weekdays: "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"), weekdaysShort: "일_월_화_수_목_금_토".split("_"), weekdaysMin: "일_월_화_수_목_금_토".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "YYYY.MM.DD", LL: "YYYY년 MMMM D일", LLL: "YYYY년 MMMM D일 A h:mm", LLLL: "YYYY년 MMMM D일 dddd A h:mm", l: "YYYY.MM.DD", ll: "YYYY년 MMMM D일", lll: "YYYY년 MMMM D일 A h:mm", llll: "YYYY년 MMMM D일 dddd A h:mm" }, calendar: { sameDay: "오늘 LT", nextDay: "내일 LT", nextWeek: "dddd LT", lastDay: "어제 LT", lastWeek: "지난주 dddd LT", sameElse: "L" }, relativeTime: { future: "%s 후", past: "%s 전", s: "몇 초", ss: "%d초", m: "1분", mm: "%d분", h: "한 시간", hh: "%d시간", d: "하루", dd: "%d일", M: "한 달", MM: "%d달", y: "일 년", yy: "%d년" }, dayOfMonthOrdinalParse: /\d{1,2}일/, ordinal: "%d일", meridiemParse: /오전|오후/, isPM: function (e) { return "오후" === e }, meridiem: function (e, t, a) { return e < 12 ? "오전" : "오후" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 0: "-чү", 1: "-чи", 2: "-чи", 3: "-чү", 4: "-чү", 5: "-чи", 6: "-чы", 7: "-чи", 8: "-чи", 9: "-чу", 10: "-чу", 20: "-чы", 30: "-чу", 40: "-чы", 50: "-чү", 60: "-чы", 70: "-чи", 80: "-чи", 90: "-чу", 100: "-чү" }; return e.defineLocale("ky", { months: "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), monthsShort: "янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"), weekdays: "Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"), weekdaysShort: "Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"), weekdaysMin: "Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Бүгүн саат] LT", nextDay: "[Эртең саат] LT", nextWeek: "dddd [саат] LT", lastDay: "[Кече саат] LT", lastWeek: "[Өткен аптанын] dddd [күнү] [саат] LT", sameElse: "L" }, relativeTime: { future: "%s ичинде", past: "%s мурун", s: "бирнече секунд", m: "бир мүнөт", mm: "%d мүнөт", h: "бир саат", hh: "%d саат", d: "бир күн", dd: "%d күн", M: "бир ай", MM: "%d ай", y: "бир жыл", yy: "%d жыл" }, dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, ordinal: function (e) { var a = e % 10, n = e >= 100 ? 100 : null; return e + (t[e] || t[a] || t[n]) }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { m: ["eng Minutt", "enger Minutt"], h: ["eng Stonn", "enger Stonn"], d: ["een Dag", "engem Dag"], M: ["ee Mount", "engem Mount"], y: ["ee Joer", "engem Joer"] }; return t ? s[a][0] : s[a][1] } function a(e) { return s(e.substr(0, e.indexOf(" "))) ? "a " + e : "an " + e } function n(e) { return s(e.substr(0, e.indexOf(" "))) ? "viru " + e : "virun " + e } function s(e) { if (e = parseInt(e, 10), isNaN(e)) return !1; if (e < 0) return !0; if (e < 10) return 4 <= e && e <= 7; if (e < 100) { var t = e % 10, a = e / 10; return s(0 === t ? a : t) } if (e < 1e4) { for (; e >= 10;)e /= 10; return s(e) } return e /= 1e3, s(e) } return e.defineLocale("lb", { months: "Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"), weekdaysShort: "So._Mé._Dë._Më._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mé_Dë_Më_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm [Auer]", LTS: "H:mm:ss [Auer]", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm [Auer]", LLLL: "dddd, D. MMMM YYYY H:mm [Auer]" }, calendar: { sameDay: "[Haut um] LT", sameElse: "L", nextDay: "[Muer um] LT", nextWeek: "dddd [um] LT", lastDay: "[Gëschter um] LT", lastWeek: function () { switch (this.day()) { case 2: case 4: return "[Leschten] dddd [um] LT"; default: return "[Leschte] dddd [um] LT" } } }, relativeTime: { future: a, past: n, s: "e puer Sekonnen", m: t, mm: "%d Minutten", h: t, hh: "%d Stonnen", d: t, dd: "%d Deeg", M: t, MM: "%d Méint", y: t, yy: "%d Joer" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("lo", { months: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"), monthsShort: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"), weekdays: "ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"), weekdaysShort: "ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"), weekdaysMin: "ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "ວັນdddd D MMMM YYYY HH:mm" }, meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, isPM: function (e) { return "ຕອນແລງ" === e }, meridiem: function (e, t, a) { return e < 12 ? "ຕອນເຊົ້າ" : "ຕອນແລງ" }, calendar: { sameDay: "[ມື້ນີ້ເວລາ] LT", nextDay: "[ມື້ອື່ນເວລາ] LT", nextWeek: "[ວັນ]dddd[ໜ້າເວລາ] LT", lastDay: "[ມື້ວານນີ້ເວລາ] LT", lastWeek: "[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT", sameElse: "L" }, relativeTime: { future: "ອີກ %s", past: "%sຜ່ານມາ", s: "ບໍ່ເທົ່າໃດວິນາທີ", m: "1 ນາທີ", mm: "%d ນາທີ", h: "1 ຊົ່ວໂມງ", hh: "%d ຊົ່ວໂມງ", d: "1 ມື້", dd: "%d ມື້", M: "1 ເດືອນ", MM: "%d ເດືອນ", y: "1 ປີ", yy: "%d ປີ" }, dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, ordinal: function (e) { return "ທີ່" + e } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { return t ? "kelios sekundės" : n ? "kelių sekundžių" : "kelias sekundes" } function a(e, t, a, n) { return t ? s(a)[0] : n ? s(a)[1] : s(a)[2] } function n(e) { return e % 10 == 0 || e > 10 && e < 20 } function s(e) { return i[e].split("_") } function r(e, t, r, i) { var d = e + " "; return 1 === e ? d + a(e, t, r[0], i) : t ? d + (n(e) ? s(r)[1] : s(r)[0]) : i ? d + s(r)[1] : d + (n(e) ? s(r)[1] : s(r)[2]) } var i = { m: "minutė_minutės_minutę", mm: "minutės_minučių_minutes", h: "valanda_valandos_valandą", hh: "valandos_valandų_valandas", d: "diena_dienos_dieną", dd: "dienos_dienų_dienas", M: "mėnuo_mėnesio_mėnesį", MM: "mėnesiai_mėnesių_mėnesius", y: "metai_metų_metus", yy: "metai_metų_metus" }; return e.defineLocale("lt", { months: { format: "sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"), standalone: "sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"), isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ }, monthsShort: "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"), weekdays: { format: "sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"), standalone: "sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"), isFormat: /dddd HH:mm/ }, weekdaysShort: "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"), weekdaysMin: "S_P_A_T_K_Pn_Š".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY [m.] MMMM D [d.]", LLL: "YYYY [m.] MMMM D [d.], HH:mm [val.]", LLLL: "YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]", l: "YYYY-MM-DD", ll: "YYYY [m.] MMMM D [d.]", lll: "YYYY [m.] MMMM D [d.], HH:mm [val.]", llll: "YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]" }, calendar: { sameDay: "[Šiandien] LT", nextDay: "[Rytoj] LT", nextWeek: "dddd LT", lastDay: "[Vakar] LT", lastWeek: "[Praėjusį] dddd LT", sameElse: "L" }, relativeTime: { future: "po %s", past: "prieš %s", s: t, m: a, mm: r, h: a, hh: r, d: a, dd: r, M: a, MM: r, y: a, yy: r }, dayOfMonthOrdinalParse: /\d{1,2}-oji/, ordinal: function (e) { return e + "-oji" }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a) { return a ? t % 10 == 1 && t % 100 != 11 ? e[2] : e[3] : t % 10 == 1 && t % 100 != 11 ? e[0] : e[1] } function a(e, a, n) { return e + " " + t(r[n], e, a) } function n(e, a, n) { return t(r[n], e, a) } function s(e, t) { return t ? "dažas sekundes" : "dažām sekundēm" } var r = { m: "minūtes_minūtēm_minūte_minūtes".split("_"), mm: "minūtes_minūtēm_minūte_minūtes".split("_"), h: "stundas_stundām_stunda_stundas".split("_"), hh: "stundas_stundām_stunda_stundas".split("_"), d: "dienas_dienām_diena_dienas".split("_"), dd: "dienas_dienām_diena_dienas".split("_"), M: "mēneša_mēnešiem_mēnesis_mēneši".split("_"), MM: "mēneša_mēnešiem_mēnesis_mēneši".split("_"), y: "gada_gadiem_gads_gadi".split("_"), yy: "gada_gadiem_gads_gadi".split("_") }; return e.defineLocale("lv", { months: "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"), monthsShort: "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"), weekdays: "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"), weekdaysShort: "Sv_P_O_T_C_Pk_S".split("_"), weekdaysMin: "Sv_P_O_T_C_Pk_S".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY.", LL: "YYYY. [gada] D. MMMM", LLL: "YYYY. [gada] D. MMMM, HH:mm", LLLL: "YYYY. [gada] D. MMMM, dddd, HH:mm" }, calendar: { sameDay: "[Šodien pulksten] LT", nextDay: "[Rīt pulksten] LT", nextWeek: "dddd [pulksten] LT", lastDay: "[Vakar pulksten] LT", lastWeek: "[Pagājušā] dddd [pulksten] LT", sameElse: "L" }, relativeTime: { future: "pēc %s", past: "pirms %s", s: s, m: n, mm: a, h: n, hh: a, d: n, dd: a, M: n, MM: a, y: n, yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { words: { m: ["jedan minut", "jednog minuta"], mm: ["minut", "minuta", "minuta"], h: ["jedan sat", "jednog sata"], hh: ["sat", "sata", "sati"], dd: ["dan", "dana", "dana"], MM: ["mjesec", "mjeseca", "mjeseci"], yy: ["godina", "godine", "godina"] }, correctGrammaticalCase: function (e, t) { return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] }, translate: function (e, a, n) { var s = t.words[n]; return 1 === n.length ? a ? s[0] : s[1] : e + " " + t.correctGrammaticalCase(e, s) } }; return e.defineLocale("me", { months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sjutra u] LT", nextWeek: function () { switch (this.day()) { case 0: return "[u] [nedjelju] [u] LT"; case 3: return "[u] [srijedu] [u] LT"; case 6: return "[u] [subotu] [u] LT"; case 1: case 2: case 4: case 5: return "[u] dddd [u] LT" } }, lastDay: "[juče u] LT", lastWeek: function () { return ["[prošle] [nedjelje] [u] LT", "[prošlog] [ponedjeljka] [u] LT", "[prošlog] [utorka] [u] LT", "[prošle] [srijede] [u] LT", "[prošlog] [četvrtka] [u] LT", "[prošlog] [petka] [u] LT", "[prošle] [subote] [u] LT"][this.day()] }, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "nekoliko sekundi", m: t.translate, mm: t.translate, h: t.translate, hh: t.translate, d: "dan", dd: t.translate, M: "mjesec", MM: t.translate, y: "godinu", yy: t.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("mi", { months: "Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"), monthsShort: "Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"), monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, weekdays: "Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"), weekdaysShort: "Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"), weekdaysMin: "Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [i] HH:mm", LLLL: "dddd, D MMMM YYYY [i] HH:mm" }, calendar: { sameDay: "[i teie mahana, i] LT", nextDay: "[apopo i] LT", nextWeek: "dddd [i] LT", lastDay: "[inanahi i] LT", lastWeek: "dddd [whakamutunga i] LT", sameElse: "L" }, relativeTime: { future: "i roto i %s", past: "%s i mua", s: "te hēkona ruarua", m: "he meneti", mm: "%d meneti", h: "te haora", hh: "%d haora", d: "he ra", dd: "%d ra", M: "he marama", MM: "%d marama", y: "he tau", yy: "%d tau" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("mk", { months: "јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"), monthsShort: "јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"), weekdays: "недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"), weekdaysShort: "нед_пон_вто_сре_чет_пет_саб".split("_"), weekdaysMin: "нe_пo_вт_ср_че_пе_сa".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "D.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[Денес во] LT", nextDay: "[Утре во] LT", nextWeek: "[Во] dddd [во] LT", lastDay: "[Вчера во] LT", lastWeek: function () { switch (this.day()) { case 0: case 3: case 6: return "[Изминатата] dddd [во] LT"; case 1: case 2: case 4: case 5: return "[Изминатиот] dddd [во] LT" } }, sameElse: "L" }, relativeTime: { future: "после %s", past: "пред %s", s: "неколку секунди", m: "минута", mm: "%d минути", h: "час", hh: "%d часа", d: "ден", dd: "%d дена", M: "месец", MM: "%d месеци", y: "година", yy: "%d години" }, dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, ordinal: function (e) { var t = e % 10, a = e % 100; return 0 === e ? e + "-ев" : 0 === a ? e + "-ен" : a > 10 && a < 20 ? e + "-ти" : 1 === t ? e + "-ви" : 2 === t ? e + "-ри" : 7 === t || 8 === t ? e + "-ми" : e + "-ти" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ml", { months: "ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"), monthsShort: "ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"), monthsParseExact: !0, weekdays: "ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"), weekdaysShort: "ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"), weekdaysMin: "ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"), longDateFormat: { LT: "A h:mm -നു", LTS: "A h:mm:ss -നു", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm -നു", LLLL: "dddd, D MMMM YYYY, A h:mm -നു" }, calendar: { sameDay: "[ഇന്ന്] LT", nextDay: "[നാളെ] LT", nextWeek: "dddd, LT", lastDay: "[ഇന്നലെ] LT", lastWeek: "[കഴിഞ്ഞ] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s കഴിഞ്ഞ്", past: "%s മുൻപ്", s: "അൽപ നിമിഷങ്ങൾ", m: "ഒരു മിനിറ്റ്", mm: "%d മിനിറ്റ്", h: "ഒരു മണിക്കൂർ", hh: "%d മണിക്കൂർ", d: "ഒരു ദിവസം", dd: "%d ദിവസം", M: "ഒരു മാസം", MM: "%d മാസം", y: "ഒരു വർഷം", yy: "%d വർഷം" }, meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, meridiemHour: function (e, t) { return 12 === e && (e = 0), "രാത്രി" === t && e >= 4 || "ഉച്ച കഴിഞ്ഞ്" === t || "വൈകുന്നേരം" === t ? e + 12 : e }, meridiem: function (e, t, a) { return e < 4 ? "രാത്രി" : e < 12 ? "രാവിലെ" : e < 17 ? "ഉച്ച കഴിഞ്ഞ്" : e < 20 ? "വൈകുന്നേരം" : "രാത്രി" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = ""; if (t) switch (a) { case "s": s = "काही सेकंद"; break; case "m": s = "एक मिनिट"; break; case "mm": s = "%d मिनिटे"; break; case "h": s = "एक तास"; break; case "hh": s = "%d तास"; break; case "d": s = "एक दिवस"; break; case "dd": s = "%d दिवस"; break; case "M": s = "एक महिना"; break; case "MM": s = "%d महिने"; break; case "y": s = "एक वर्ष"; break; case "yy": s = "%d वर्षे" } else switch (a) { case "s": s = "काही सेकंदां"; break; case "m": s = "एका मिनिटा"; break; case "mm": s = "%d मिनिटां"; break; case "h": s = "एका तासा"; break; case "hh": s = "%d तासां"; break; case "d": s = "एका दिवसा"; break; case "dd": s = "%d दिवसां"; break; case "M": s = "एका महिन्या"; break; case "MM": s = "%d महिन्यां"; break; case "y": s = "एका वर्षा"; break; case "yy": s = "%d वर्षां" }return s.replace(/%d/i, e) } var a = { 1: "१", 2: "२", 3: "३", 4: "४", 5: "५", 6: "६", 7: "७", 8: "८", 9: "९", 0: "०" }, n = { "१": "1", "२": "2", "३": "3", "४": "4", "५": "5", "६": "6", "७": "7", "८": "8", "९": "9", "०": "0" }; return e.defineLocale("mr", { months: "जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"), monthsShort: "जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"), monthsParseExact: !0, weekdays: "रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"), weekdaysShort: "रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"), weekdaysMin: "र_सो_मं_बु_गु_शु_श".split("_"), longDateFormat: { LT: "A h:mm वाजता", LTS: "A h:mm:ss वाजता", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm वाजता", LLLL: "dddd, D MMMM YYYY, A h:mm वाजता" }, calendar: { sameDay: "[आज] LT", nextDay: "[उद्या] LT", nextWeek: "dddd, LT", lastDay: "[काल] LT", lastWeek: "[मागील] dddd, LT", sameElse: "L" }, relativeTime: { future: "%sमध्ये", past: "%sपूर्वी", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, preparse: function (e) { return e.replace(/[१२३४५६७८९०]/g, function (e) { return n[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return a[e] }) }, meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "रात्री" === t ? e < 4 ? e : e + 12 : "सकाळी" === t ? e : "दुपारी" === t ? e >= 10 ? e : e + 12 : "सायंकाळी" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "रात्री" : e < 10 ? "सकाळी" : e < 17 ? "दुपारी" : e < 20 ? "सायंकाळी" : "रात्री" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ms-my", { months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|tengahari|petang|malam/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "pagi" === t ? e : "tengahari" === t ? e >= 11 ? e : e + 12 : "petang" === t || "malam" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 11 ? "pagi" : e < 15 ? "tengahari" : e < 19 ? "petang" : "malam" }, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Esok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kelmarin pukul] LT", lastWeek: "dddd [lepas pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lepas", s: "beberapa saat", m: "seminit", mm: "%d minit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ms", { months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|tengahari|petang|malam/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "pagi" === t ? e : "tengahari" === t ? e >= 11 ? e : e + 12 : "petang" === t || "malam" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 11 ? "pagi" : e < 15 ? "tengahari" : e < 19 ? "petang" : "malam" }, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Esok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kelmarin pukul] LT", lastWeek: "dddd [lepas pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lepas", s: "beberapa saat", m: "seminit", mm: "%d minit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "၁", 2: "၂", 3: "၃", 4: "၄", 5: "၅", 6: "၆", 7: "၇", 8: "၈", 9: "၉", 0: "၀" }, a = { "၁": "1", "၂": "2", "၃": "3", "၄": "4", "၅": "5", "၆": "6", "၇": "7", "၈": "8", "၉": "9", "၀": "0" }; return e.defineLocale("my", { months: "ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"), monthsShort: "ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"), weekdays: "တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"), weekdaysShort: "နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"), weekdaysMin: "နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[ယနေ.] LT [မှာ]", nextDay: "[မနက်ဖြန်] LT [မှာ]", nextWeek: "dddd LT [မှာ]", lastDay: "[မနေ.က] LT [မှာ]", lastWeek: "[ပြီးခဲ့သော] dddd LT [မှာ]", sameElse: "L" }, relativeTime: { future: "လာမည့် %s မှာ", past: "လွန်ခဲ့သော %s က", s: "စက္ကန်.အနည်းငယ်", m: "တစ်မိနစ်", mm: "%d မိနစ်", h: "တစ်နာရီ", hh: "%d နာရီ", d: "တစ်ရက်", dd: "%d ရက်", M: "တစ်လ", MM: "%d လ", y: "တစ်နှစ်", yy: "%d နှစ်" }, preparse: function (e) { return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("nb", { months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"), monthsParseExact: !0, weekdays: "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), weekdaysShort: "sø._ma._ti._on._to._fr._lø.".split("_"), weekdaysMin: "sø_ma_ti_on_to_fr_lø".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] HH:mm", LLLL: "dddd D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[i dag kl.] LT", nextDay: "[i morgen kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[i går kl.] LT", lastWeek: "[forrige] dddd [kl.] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s siden", s: "noen sekunder", m: "ett minutt", mm: "%d minutter", h: "en time", hh: "%d timer", d: "en dag", dd: "%d dager", M: "en måned", MM: "%d måneder", y: "ett år", yy: "%d år" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "१", 2: "२", 3: "३", 4: "४", 5: "५", 6: "६", 7: "७", 8: "८", 9: "९", 0: "०" }, a = { "१": "1", "२": "2", "३": "3", "४": "4", "५": "5", "६": "6", "७": "7", "८": "8", "९": "9", "०": "0" }; return e.defineLocale("ne", { months: "जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"), monthsShort: "जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"), monthsParseExact: !0, weekdays: "आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"), weekdaysShort: "आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"), weekdaysMin: "आ._सो._मं._बु._बि._शु._श.".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "Aको h:mm बजे", LTS: "Aको h:mm:ss बजे", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, Aको h:mm बजे", LLLL: "dddd, D MMMM YYYY, Aको h:mm बजे" }, preparse: function (e) { return e.replace(/[१२३४५६७८९०]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /राति|बिहान|दिउँसो|साँझ/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "राति" === t ? e < 4 ? e : e + 12 : "बिहान" === t ? e : "दिउँसो" === t ? e >= 10 ? e : e + 12 : "साँझ" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 3 ? "राति" : e < 12 ? "बिहान" : e < 16 ? "दिउँसो" : e < 20 ? "साँझ" : "राति" }, calendar: { sameDay: "[आज] LT", nextDay: "[भोलि] LT", nextWeek: "[आउँदो] dddd[,] LT", lastDay: "[हिजो] LT", lastWeek: "[गएको] dddd[,] LT", sameElse: "L" }, relativeTime: { future: "%sमा", past: "%s अगाडि", s: "केही क्षण", m: "एक मिनेट", mm: "%d मिनेट", h: "एक घण्टा", hh: "%d घण्टा", d: "एक दिन", dd: "%d दिन", M: "एक महिना", MM: "%d महिना", y: "एक बर्ष", yy: "%d बर्ष" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"), a = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"), n = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i], s = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; return e.defineLocale("nl-be", { months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), monthsShort: function (e, n) { return e ? /-MMM-/.test(n) ? a[e.month()] : t[e.month()] : t }, monthsRegex: s, monthsShortRegex: s, monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, monthsParse: n, longMonthsParse: n, shortMonthsParse: n, weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"), weekdaysMin: "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[vandaag om] LT", nextDay: "[morgen om] LT", nextWeek: "dddd [om] LT", lastDay: "[gisteren om] LT", lastWeek: "[afgelopen] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", m: "één minuut", mm: "%d minuten", h: "één uur", hh: "%d uur", d: "één dag", dd: "%d dagen", M: "één maand", MM: "%d maanden", y: "één jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function (e) { return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"), a = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"), n = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i], s = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; return e.defineLocale("nl", { months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), monthsShort: function (e, n) { return e ? /-MMM-/.test(n) ? a[e.month()] : t[e.month()] : t }, monthsRegex: s, monthsShortRegex: s, monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, monthsParse: n, longMonthsParse: n, shortMonthsParse: n, weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"), weekdaysMin: "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[vandaag om] LT", nextDay: "[morgen om] LT", nextWeek: "dddd [om] LT", lastDay: "[gisteren om] LT", lastWeek: "[afgelopen] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", m: "één minuut", mm: "%d minuten", h: "één uur", hh: "%d uur", d: "één dag", dd: "%d dagen", M: "één maand", MM: "%d maanden", y: "één jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function (e) { return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("nn", { months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), weekdays: "sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"), weekdaysShort: "sun_mån_tys_ons_tor_fre_lau".split("_"), weekdaysMin: "su_må_ty_on_to_fr_lø".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] H:mm", LLLL: "dddd D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[I dag klokka] LT", nextDay: "[I morgon klokka] LT", nextWeek: "dddd [klokka] LT", lastDay: "[I går klokka] LT", lastWeek: "[Føregåande] dddd [klokka] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s sidan", s: "nokre sekund", m: "eit minutt", mm: "%d minutt", h: "ein time", hh: "%d timar", d: "ein dag", dd: "%d dagar", M: "ein månad", MM: "%d månader", y: "eit år", yy: "%d år" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "੧", 2: "੨", 3: "੩", 4: "੪", 5: "੫", 6: "੬", 7: "੭", 8: "੮", 9: "੯", 0: "੦" }, a = { "੧": "1", "੨": "2", "੩": "3", "੪": "4", "੫": "5", "੬": "6", "੭": "7", "੮": "8", "੯": "9", "੦": "0" }; return e.defineLocale("pa-in", { months: "ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"), monthsShort: "ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"), weekdays: "ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"), weekdaysShort: "ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"), weekdaysMin: "ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"), longDateFormat: { LT: "A h:mm ਵਜੇ", LTS: "A h:mm:ss ਵਜੇ", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm ਵਜੇ", LLLL: "dddd, D MMMM YYYY, A h:mm ਵਜੇ" }, calendar: { sameDay: "[ਅਜ] LT", nextDay: "[ਕਲ] LT", nextWeek: "dddd, LT", lastDay: "[ਕਲ] LT", lastWeek: "[ਪਿਛਲੇ] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s ਵਿੱਚ", past: "%s ਪਿਛਲੇ", s: "ਕੁਝ ਸਕਿੰਟ", m: "ਇਕ ਮਿੰਟ", mm: "%d ਮਿੰਟ", h: "ਇੱਕ ਘੰਟਾ", hh: "%d ਘੰਟੇ", d: "ਇੱਕ ਦਿਨ", dd: "%d ਦਿਨ", M: "ਇੱਕ ਮਹੀਨਾ", MM: "%d ਮਹੀਨੇ", y: "ਇੱਕ ਸਾਲ", yy: "%d ਸਾਲ" }, preparse: function (e) { return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "ਰਾਤ" === t ? e < 4 ? e : e + 12 : "ਸਵੇਰ" === t ? e : "ਦੁਪਹਿਰ" === t ? e >= 10 ? e : e + 12 : "ਸ਼ਾਮ" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "ਰਾਤ" : e < 10 ? "ਸਵੇਰ" : e < 17 ? "ਦੁਪਹਿਰ" : e < 20 ? "ਸ਼ਾਮ" : "ਰਾਤ" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1 } function a(e, a, n) { var s = e + " "; switch (n) { case "m": return a ? "minuta" : "minutę"; case "mm": return s + (t(e) ? "minuty" : "minut"); case "h": return a ? "godzina" : "godzinę"; case "hh": return s + (t(e) ? "godziny" : "godzin"); case "MM": return s + (t(e) ? "miesiące" : "miesięcy"); case "yy": return s + (t(e) ? "lata" : "lat") } } var n = "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"), s = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"); return e.defineLocale("pl", { months: function (e, t) { return e ? "" === t ? "(" + s[e.month()] + "|" + n[e.month()] + ")" : /D MMMM/.test(t) ? s[e.month()] : n[e.month()] : n }, monthsShort: "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), weekdays: "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"), weekdaysShort: "ndz_pon_wt_śr_czw_pt_sob".split("_"), weekdaysMin: "Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Dziś o] LT", nextDay: "[Jutro o] LT", nextWeek: "[W] dddd [o] LT", lastDay: "[Wczoraj o] LT", lastWeek: function () { switch (this.day()) { case 0: return "[W zeszłą niedzielę o] LT"; case 3: return "[W zeszłą środę o] LT"; case 6: return "[W zeszłą sobotę o] LT"; default: return "[W zeszły] dddd [o] LT" } }, sameElse: "L" }, relativeTime: { future: "za %s", past: "%s temu", s: "kilka sekund", m: a, mm: a, h: a, hh: a, d: "1 dzień", dd: "%d dni", M: "miesiąc", MM: a, y: "rok", yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("pt-br", { months: "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"), weekdays: "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"), weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, calendar: { sameDay: "[Hoje às] LT", nextDay: "[Amanhã às] LT", nextWeek: "dddd [às] LT", lastDay: "[Ontem às] LT", lastWeek: function () { return 0 === this.day() || 6 === this.day() ? "[Último] dddd [às] LT" : "[Última] dddd [às] LT" }, sameElse: "L" }, relativeTime: { future: "em %s", past: "%s atrás", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº" }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("pt", { months: "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"), weekdays: "Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"), weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY HH:mm" }, calendar: { sameDay: "[Hoje às] LT", nextDay: "[Amanhã às] LT", nextWeek: "dddd [às] LT", lastDay: "[Ontem às] LT", lastWeek: function () { return 0 === this.day() || 6 === this.day() ? "[Último] dddd [às] LT" : "[Última] dddd [às] LT" }, sameElse: "L" }, relativeTime: { future: "em %s", past: "há %s", s: "segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%dº", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a) { var n = { mm: "minute", hh: "ore", dd: "zile", MM: "luni", yy: "ani" }, s = " "; return (e % 100 >= 20 || e >= 100 && e % 100 == 0) && (s = " de "), e + s + n[a] } return e.defineLocale("ro", { months: "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"), monthsShort: "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"), weekdaysShort: "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"), weekdaysMin: "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[azi la] LT", nextDay: "[mâine la] LT", nextWeek: "dddd [la] LT", lastDay: "[ieri la] LT", lastWeek: "[fosta] dddd [la] LT", sameElse: "L" }, relativeTime: { future: "peste %s", past: "%s în urmă", s: "câteva secunde", m: "un minut", mm: t, h: "o oră", hh: t, d: "o zi", dd: t, M: "o lună", MM: t, y: "un an", yy: t }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t) { var a = e.split("_"); return t % 10 == 1 && t % 100 != 11 ? a[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? a[1] : a[2] } function a(e, a, n) { var s = { mm: a ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }; return "m" === n ? a ? "минута" : "минуту" : e + " " + t(s[n], +e) } var n = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; return e.defineLocale("ru", { months: { format: "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), standalone: "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_") }, monthsShort: { format: "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), standalone: "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_") }, weekdays: { standalone: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), format: "воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"), isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ }, weekdaysShort: "вс_пн_вт_ср_чт_пт_сб".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), monthsParse: n, longMonthsParse: n, shortMonthsParse: n, monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY г.", LLL: "D MMMM YYYY г., HH:mm", LLLL: "dddd, D MMMM YYYY г., HH:mm" }, calendar: { sameDay: "[Сегодня в] LT", nextDay: "[Завтра в] LT", lastDay: "[Вчера в] LT", nextWeek: function (e) { if (e.week() === this.week()) return 2 === this.day() ? "[Во] dddd [в] LT" : "[В] dddd [в] LT"; switch (this.day()) { case 0: return "[В следующее] dddd [в] LT"; case 1: case 2: case 4: return "[В следующий] dddd [в] LT"; case 3: case 5: case 6: return "[В следующую] dddd [в] LT" } }, lastWeek: function (e) { if (e.week() === this.week()) return 2 === this.day() ? "[Во] dddd [в] LT" : "[В] dddd [в] LT"; switch (this.day()) { case 0: return "[В прошлое] dddd [в] LT"; case 1: case 2: case 4: return "[В прошлый] dddd [в] LT"; case 3: case 5: case 6: return "[В прошлую] dddd [в] LT" } }, sameElse: "L" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: a, mm: a, h: "час", hh: a, d: "день", dd: a, M: "месяц", MM: a, y: "год", yy: a }, meridiemParse: /ночи|утра|дня|вечера/i, isPM: function (e) { return /^(дня|вечера)$/.test(e) }, meridiem: function (e, t, a) { return e < 4 ? "ночи" : e < 12 ? "утра" : e < 17 ? "дня" : "вечера" }, dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, ordinal: function (e, t) { switch (t) { case "M": case "d": case "DDD": return e + "-й"; case "D": return e + "-го"; case "w": case "W": return e + "-я"; default: return e } }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = ["جنوري", "فيبروري", "مارچ", "اپريل", "مئي", "جون", "جولاءِ", "آگسٽ", "سيپٽمبر", "آڪٽوبر", "نومبر", "ڊسمبر"], a = ["آچر", "سومر", "اڱارو", "اربع", "خميس", "جمع", "ڇنڇر"]; return e.defineLocale("sd", { months: t, monthsShort: t, weekdays: a, weekdaysShort: a, weekdaysMin: a, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd، D MMMM YYYY HH:mm" }, meridiemParse: /صبح|شام/, isPM: function (e) { return "شام" === e }, meridiem: function (e, t, a) { return e < 12 ? "صبح" : "شام" }, calendar: { sameDay: "[اڄ] LT", nextDay: "[سڀاڻي] LT", nextWeek: "dddd [اڳين هفتي تي] LT", lastDay: "[ڪالهه] LT", lastWeek: "[گزريل هفتي] dddd [تي] LT", sameElse: "L" }, relativeTime: { future: "%s پوء", past: "%s اڳ", s: "چند سيڪنڊ", m: "هڪ منٽ", mm: "%d منٽ", h: "هڪ ڪلاڪ", hh: "%d ڪلاڪ", d: "هڪ ڏينهن", dd: "%d ڏينهن", M: "هڪ مهينو", MM: "%d مهينا", y: "هڪ سال", yy: "%d سال" }, preparse: function (e) { return e.replace(/،/g, ",") }, postformat: function (e) { return e.replace(/,/g, "،") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("se", { months: "ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"), monthsShort: "ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"), weekdays: "sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"), weekdaysShort: "sotn_vuos_maŋ_gask_duor_bear_láv".split("_"), weekdaysMin: "s_v_m_g_d_b_L".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "MMMM D. [b.] YYYY", LLL: "MMMM D. [b.] YYYY [ti.] HH:mm", LLLL: "dddd, MMMM D. [b.] YYYY [ti.] HH:mm" }, calendar: { sameDay: "[otne ti] LT", nextDay: "[ihttin ti] LT", nextWeek: "dddd [ti] LT", lastDay: "[ikte ti] LT", lastWeek: "[ovddit] dddd [ti] LT", sameElse: "L" }, relativeTime: { future: "%s geažes", past: "maŋit %s", s: "moadde sekunddat", m: "okta minuhta", mm: "%d minuhtat", h: "okta diimmu", hh: "%d diimmut", d: "okta beaivi", dd: "%d beaivvit", M: "okta mánnu", MM: "%d mánut", y: "okta jahki", yy: "%d jagit" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("si", { months: "ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"), monthsShort: "ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"), weekdays: "ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"), weekdaysShort: "ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"), weekdaysMin: "ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "a h:mm", LTS: "a h:mm:ss", L: "YYYY/MM/DD", LL: "YYYY MMMM D", LLL: "YYYY MMMM D, a h:mm", LLLL: "YYYY MMMM D [වැනි] dddd, a h:mm:ss" }, calendar: { sameDay: "[අද] LT[ට]", nextDay: "[හෙට] LT[ට]", nextWeek: "dddd LT[ට]", lastDay: "[ඊයේ] LT[ට]", lastWeek: "[පසුගිය] dddd LT[ට]", sameElse: "L" }, relativeTime: { future: "%sකින්", past: "%sකට පෙර", s: "තත්පර කිහිපය", m: "මිනිත්තුව", mm: "මිනිත්තු %d", h: "පැය", hh: "පැය %d", d: "දිනය", dd: "දින %d", M: "මාසය", MM: "මාස %d", y: "වසර", yy: "වසර %d" }, dayOfMonthOrdinalParse: /\d{1,2} වැනි/, ordinal: function (e) { return e + " වැනි" }, meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, isPM: function (e) { return "ප.ව." === e || "පස් වරු" === e }, meridiem: function (e, t, a) { return e > 11 ? a ? "ප.ව." : "පස් වරු" : a ? "පෙ.ව." : "පෙර වරු" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { return e > 1 && e < 5 } function a(e, a, n, s) { var r = e + " "; switch (n) { case "s": return a || s ? "pár sekúnd" : "pár sekundami"; case "m": return a ? "minúta" : s ? "minútu" : "minútou"; case "mm": return a || s ? r + (t(e) ? "minúty" : "minút") : r + "minútami"; case "h": return a ? "hodina" : s ? "hodinu" : "hodinou"; case "hh": return a || s ? r + (t(e) ? "hodiny" : "hodín") : r + "hodinami"; case "d": return a || s ? "deň" : "dňom"; case "dd": return a || s ? r + (t(e) ? "dni" : "dní") : r + "dňami"; case "M": return a || s ? "mesiac" : "mesiacom"; case "MM": return a || s ? r + (t(e) ? "mesiace" : "mesiacov") : r + "mesiacmi"; case "y": return a || s ? "rok" : "rokom"; case "yy": return a || s ? r + (t(e) ? "roky" : "rokov") : r + "rokmi" } } var n = "január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"), s = "jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"); return e.defineLocale("sk", { months: n, monthsShort: s, weekdays: "nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"), weekdaysShort: "ne_po_ut_st_št_pi_so".split("_"), weekdaysMin: "ne_po_ut_st_št_pi_so".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd D. MMMM YYYY H:mm" }, calendar: { sameDay: "[dnes o] LT", nextDay: "[zajtra o] LT", nextWeek: function () { switch (this.day()) { case 0: return "[v nedeľu o] LT"; case 1: case 2: return "[v] dddd [o] LT"; case 3: return "[v stredu o] LT"; case 4: return "[vo štvrtok o] LT"; case 5: return "[v piatok o] LT"; case 6: return "[v sobotu o] LT" } }, lastDay: "[včera o] LT", lastWeek: function () { switch (this.day()) { case 0: return "[minulú nedeľu o] LT"; case 1: case 2: return "[minulý] dddd [o] LT"; case 3: return "[minulú stredu o] LT"; case 4: case 5: return "[minulý] dddd [o] LT"; case 6: return "[minulú sobotu o] LT" } }, sameElse: "L" }, relativeTime: { future: "za %s", past: "pred %s", s: a, m: a, mm: a, h: a, hh: a, d: a, dd: a, M: a, MM: a, y: a, yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = e + " "; switch (a) { case "s": return t || n ? "nekaj sekund" : "nekaj sekundami"; case "m": return t ? "ena minuta" : "eno minuto"; case "mm": return s += 1 === e ? t ? "minuta" : "minuto" : 2 === e ? t || n ? "minuti" : "minutama" : e < 5 ? t || n ? "minute" : "minutami" : t || n ? "minut" : "minutami"; case "h": return t ? "ena ura" : "eno uro"; case "hh": return s += 1 === e ? t ? "ura" : "uro" : 2 === e ? t || n ? "uri" : "urama" : e < 5 ? t || n ? "ure" : "urami" : t || n ? "ur" : "urami"; case "d": return t || n ? "en dan" : "enim dnem"; case "dd": return s += 1 === e ? t || n ? "dan" : "dnem" : 2 === e ? t || n ? "dni" : "dnevoma" : t || n ? "dni" : "dnevi"; case "M": return t || n ? "en mesec" : "enim mesecem"; case "MM": return s += 1 === e ? t || n ? "mesec" : "mesecem" : 2 === e ? t || n ? "meseca" : "mesecema" : e < 5 ? t || n ? "mesece" : "meseci" : t || n ? "mesecev" : "meseci"; case "y": return t || n ? "eno leto" : "enim letom"; case "yy": return s += 1 === e ? t || n ? "leto" : "letom" : 2 === e ? t || n ? "leti" : "letoma" : e < 5 ? t || n ? "leta" : "leti" : t || n ? "let" : "leti" } } return e.defineLocale("sl", { months: "januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"), monthsShort: "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"), weekdaysShort: "ned._pon._tor._sre._čet._pet._sob.".split("_"), weekdaysMin: "ne_po_to_sr_če_pe_so".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danes ob] LT", nextDay: "[jutri ob] LT", nextWeek: function () { switch (this.day()) { case 0: return "[v] [nedeljo] [ob] LT"; case 3: return "[v] [sredo] [ob] LT"; case 6: return "[v] [soboto] [ob] LT"; case 1: case 2: case 4: case 5: return "[v] dddd [ob] LT" } }, lastDay: "[včeraj ob] LT", lastWeek: function () { switch (this.day()) { case 0: return "[prejšnjo] [nedeljo] [ob] LT"; case 3: return "[prejšnjo] [sredo] [ob] LT"; case 6: return "[prejšnjo] [soboto] [ob] LT"; case 1: case 2: case 4: case 5: return "[prejšnji] dddd [ob] LT" } }, sameElse: "L" }, relativeTime: { future: "čez %s", past: "pred %s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("sq", { months: "Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"), monthsShort: "Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"), weekdays: "E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"), weekdaysShort: "Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"), weekdaysMin: "D_H_Ma_Më_E_P_Sh".split("_"), weekdaysParseExact: !0, meridiemParse: /PD|MD/, isPM: function (e) { return "M" === e.charAt(0) }, meridiem: function (e, t, a) { return e < 12 ? "PD" : "MD" }, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Sot në] LT", nextDay: "[Nesër në] LT", nextWeek: "dddd [në] LT", lastDay: "[Dje në] LT", lastWeek: "dddd [e kaluar në] LT", sameElse: "L" }, relativeTime: { future: "në %s", past: "%s më parë", s: "disa sekonda", m: "një minutë", mm: "%d minuta", h: "një orë", hh: "%d orë", d: "një ditë", dd: "%d ditë", M: "një muaj", MM: "%d muaj", y: "një vit", yy: "%d vite" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { words: { m: ["један минут", "једне минуте"], mm: ["минут", "минуте", "минута"], h: ["један сат", "једног сата"], hh: ["сат", "сата", "сати"], dd: ["дан", "дана", "дана"], MM: ["месец", "месеца", "месеци"], yy: ["година", "године", "година"] }, correctGrammaticalCase: function (e, t) { return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] }, translate: function (e, a, n) { var s = t.words[n]; return 1 === n.length ? a ? s[0] : s[1] : e + " " + t.correctGrammaticalCase(e, s) } }; return e.defineLocale("sr-cyrl", { months: "јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"), monthsShort: "јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"), monthsParseExact: !0, weekdays: "недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"), weekdaysShort: "нед._пон._уто._сре._чет._пет._суб.".split("_"), weekdaysMin: "не_по_ут_ср_че_пе_су".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[данас у] LT", nextDay: "[сутра у] LT", nextWeek: function () { switch (this.day()) { case 0: return "[у] [недељу] [у] LT"; case 3: return "[у] [среду] [у] LT"; case 6: return "[у] [суботу] [у] LT"; case 1: case 2: case 4: case 5: return "[у] dddd [у] LT" } }, lastDay: "[јуче у] LT", lastWeek: function () { return ["[прошле] [недеље] [у] LT", "[прошлог] [понедељка] [у] LT", "[прошлог] [уторка] [у] LT", "[прошле] [среде] [у] LT", "[прошлог] [четвртка] [у] LT", "[прошлог] [петка] [у] LT", "[прошле] [суботе] [у] LT"][this.day()] }, sameElse: "L" }, relativeTime: { future: "за %s", past: "пре %s", s: "неколико секунди", m: t.translate, mm: t.translate, h: t.translate, hh: t.translate, d: "дан", dd: t.translate, M: "месец", MM: t.translate, y: "годину", yy: t.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { words: { m: ["jedan minut", "jedne minute"], mm: ["minut", "minute", "minuta"], h: ["jedan sat", "jednog sata"], hh: ["sat", "sata", "sati"], dd: ["dan", "dana", "dana"], MM: ["mesec", "meseca", "meseci"], yy: ["godina", "godine", "godina"] }, correctGrammaticalCase: function (e, t) { return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2] }, translate: function (e, a, n) { var s = t.words[n]; return 1 === n.length ? a ? s[0] : s[1] : e + " " + t.correctGrammaticalCase(e, s) } }; return e.defineLocale("sr", { months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sre._čet._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function () { switch (this.day()) { case 0: return "[u] [nedelju] [u] LT"; case 3: return "[u] [sredu] [u] LT"; case 6: return "[u] [subotu] [u] LT"; case 1: case 2: case 4: case 5: return "[u] dddd [u] LT" } }, lastDay: "[juče u] LT", lastWeek: function () { return ["[prošle] [nedelje] [u] LT", "[prošlog] [ponedeljka] [u] LT", "[prošlog] [utorka] [u] LT", "[prošle] [srede] [u] LT", "[prošlog] [četvrtka] [u] LT", "[prošlog] [petka] [u] LT", "[prošle] [subote] [u] LT"][this.day()] }, sameElse: "L" }, relativeTime: { future: "za %s", past: "pre %s", s: "nekoliko sekundi", m: t.translate, mm: t.translate, h: t.translate, hh: t.translate, d: "dan", dd: t.translate, M: "mesec", MM: t.translate, y: "godinu", yy: t.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("ss", { months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"), monthsShort: "Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"), weekdays: "Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"), weekdaysShort: "Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"), weekdaysMin: "Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Namuhla nga] LT", nextDay: "[Kusasa nga] LT", nextWeek: "dddd [nga] LT", lastDay: "[Itolo nga] LT", lastWeek: "dddd [leliphelile] [nga] LT", sameElse: "L" }, relativeTime: { future: "nga %s", past: "wenteka nga %s", s: "emizuzwana lomcane", m: "umzuzu", mm: "%d emizuzu", h: "lihora", hh: "%d emahora", d: "lilanga", dd: "%d emalanga", M: "inyanga", MM: "%d tinyanga", y: "umnyaka", yy: "%d iminyaka" }, meridiemParse: /ekuseni|emini|entsambama|ebusuku/, meridiem: function (e, t, a) { return e < 11 ? "ekuseni" : e < 15 ? "emini" : e < 19 ? "entsambama" : "ebusuku" }, meridiemHour: function (e, t) { return 12 === e && (e = 0), "ekuseni" === t ? e : "emini" === t ? e >= 11 ? e : e + 12 : "entsambama" === t || "ebusuku" === t ? 0 === e ? 0 : e + 12 : void 0 }, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: "%d", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("sv", { months: "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), weekdays: "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"), weekdaysShort: "sön_mån_tis_ons_tor_fre_lör".split("_"), weekdaysMin: "sö_må_ti_on_to_fr_lö".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [kl.] HH:mm", LLLL: "dddd D MMMM YYYY [kl.] HH:mm", lll: "D MMM YYYY HH:mm", llll: "ddd D MMM YYYY HH:mm" }, calendar: { sameDay: "[Idag] LT", nextDay: "[Imorgon] LT", lastDay: "[Igår] LT", nextWeek: "[På] dddd LT", lastWeek: "[I] dddd[s] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "för %s sedan", s: "några sekunder", m: "en minut", mm: "%d minuter", h: "en timme", hh: "%d timmar", d: "en dag", dd: "%d dagar", M: "en månad", MM: "%d månader", y: "ett år", yy: "%d år" }, dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "e" : 1 === t ? "a" : 2 === t ? "a" : "e") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("sw", { months: "Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"), weekdays: "Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"), weekdaysShort: "Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"), weekdaysMin: "J2_J3_J4_J5_Al_Ij_J1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[leo saa] LT", nextDay: "[kesho saa] LT", nextWeek: "[wiki ijayo] dddd [saat] LT", lastDay: "[jana] LT", lastWeek: "[wiki iliyopita] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s baadaye", past: "tokea %s", s: "hivi punde", m: "dakika moja", mm: "dakika %d", h: "saa limoja", hh: "masaa %d", d: "siku moja", dd: "masiku %d", M: "mwezi mmoja", MM: "miezi %d", y: "mwaka mmoja", yy: "miaka %d" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "௧", 2: "௨", 3: "௩", 4: "௪", 5: "௫", 6: "௬", 7: "௭", 8: "௮", 9: "௯", 0: "௦" }, a = { "௧": "1", "௨": "2", "௩": "3", "௪": "4", "௫": "5", "௬": "6", "௭": "7", "௮": "8", "௯": "9", "௦": "0" }; return e.defineLocale("ta", { months: "ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"), monthsShort: "ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"), weekdays: "ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"), weekdaysShort: "ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"), weekdaysMin: "ஞா_தி_செ_பு_வி_வெ_ச".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, HH:mm", LLLL: "dddd, D MMMM YYYY, HH:mm" }, calendar: { sameDay: "[இன்று] LT", nextDay: "[நாளை] LT", nextWeek: "dddd, LT", lastDay: "[நேற்று] LT", lastWeek: "[கடந்த வாரம்] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s இல்", past: "%s முன்", s: "ஒரு சில விநாடிகள்", m: "ஒரு நிமிடம்", mm: "%d நிமிடங்கள்", h: "ஒரு மணி நேரம்", hh: "%d மணி நேரம்", d: "ஒரு நாள்", dd: "%d நாட்கள்", M: "ஒரு மாதம்", MM: "%d மாதங்கள்", y: "ஒரு வருடம்", yy: "%d ஆண்டுகள்" }, dayOfMonthOrdinalParse: /\d{1,2}வது/, ordinal: function (e) { return e + "வது" }, preparse: function (e) { return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (e) { return a[e] }) }, postformat: function (e) { return e.replace(/\d/g, function (e) { return t[e] }) }, meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, meridiem: function (e, t, a) { return e < 2 ? " யாமம்" : e < 6 ? " வைகறை" : e < 10 ? " காலை" : e < 14 ? " நண்பகல்" : e < 18 ? " எற்பாடு" : e < 22 ? " மாலை" : " யாமம்" }, meridiemHour: function (e, t) { return 12 === e && (e = 0), "யாமம்" === t ? e < 2 ? e : e + 12 : "வைகறை" === t || "காலை" === t ? e : "நண்பகல்" === t && e >= 10 ? e : e + 12 }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("te", { months: "జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"), monthsShort: "జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"), monthsParseExact: !0, weekdays: "ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"), weekdaysShort: "ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"), weekdaysMin: "ఆ_సో_మం_బు_గు_శు_శ".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[నేడు] LT", nextDay: "[రేపు] LT", nextWeek: "dddd, LT", lastDay: "[నిన్న] LT", lastWeek: "[గత] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s లో", past: "%s క్రితం", s: "కొన్ని క్షణాలు", m: "ఒక నిమిషం", mm: "%d నిమిషాలు", h: "ఒక గంట", hh: "%d గంటలు", d: "ఒక రోజు", dd: "%d రోజులు", M: "ఒక నెల", MM: "%d నెలలు", y: "ఒక సంవత్సరం", yy: "%d సంవత్సరాలు" }, dayOfMonthOrdinalParse: /\d{1,2}వ/, ordinal: "%dవ", meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "రాత్రి" === t ? e < 4 ? e : e + 12 : "ఉదయం" === t ? e : "మధ్యాహ్నం" === t ? e >= 10 ? e : e + 12 : "సాయంత్రం" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { return e < 4 ? "రాత్రి" : e < 10 ? "ఉదయం" : e < 17 ? "మధ్యాహ్నం" : e < 20 ? "సాయంత్రం" : "రాత్రి" }, week: { dow: 0, doy: 6 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("tet", { months: "Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"), weekdays: "Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"), weekdaysShort: "Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"), weekdaysMin: "Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Ohin iha] LT", nextDay: "[Aban iha] LT", nextWeek: "dddd [iha] LT", lastDay: "[Horiseik iha] LT", lastWeek: "dddd [semana kotuk] [iha] LT", sameElse: "L" }, relativeTime: { future: "iha %s", past: "%s liuba", s: "minutu balun", m: "minutu ida", mm: "minutus %d", h: "horas ida", hh: "horas %d", d: "loron ida", dd: "loron %d", M: "fulan ida", MM: "fulan %d", y: "tinan ida", yy: "tinan %d" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("th", { months: "มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"), monthsShort: "ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"), monthsParseExact: !0, weekdays: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"), weekdaysShort: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"), weekdaysMin: "อา._จ._อ._พ._พฤ._ศ._ส.".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY เวลา H:mm", LLLL: "วันddddที่ D MMMM YYYY เวลา H:mm" }, meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, isPM: function (e) { return "หลังเที่ยง" === e }, meridiem: function (e, t, a) { return e < 12 ? "ก่อนเที่ยง" : "หลังเที่ยง" }, calendar: { sameDay: "[วันนี้ เวลา] LT", nextDay: "[พรุ่งนี้ เวลา] LT", nextWeek: "dddd[หน้า เวลา] LT", lastDay: "[เมื่อวานนี้ เวลา] LT", lastWeek: "[วัน]dddd[ที่แล้ว เวลา] LT", sameElse: "L" }, relativeTime: { future: "อีก %s", past: "%sที่แล้ว", s: "ไม่กี่วินาที", m: "1 นาที", mm: "%d นาที", h: "1 ชั่วโมง", hh: "%d ชั่วโมง", d: "1 วัน", dd: "%d วัน", M: "1 เดือน", MM: "%d เดือน", y: "1 ปี", yy: "%d ปี" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("tl-ph", { months: "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"), monthsShort: "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"), weekdays: "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"), weekdaysShort: "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"), weekdaysMin: "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "MM/D/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY HH:mm", LLLL: "dddd, MMMM DD, YYYY HH:mm" }, calendar: { sameDay: "LT [ngayong araw]", nextDay: "[Bukas ng] LT", nextWeek: "LT [sa susunod na] dddd", lastDay: "LT [kahapon]", lastWeek: "LT [noong nakaraang] dddd", sameElse: "L" }, relativeTime: { future: "sa loob ng %s", past: "%s ang nakalipas", s: "ilang segundo", m: "isang minuto", mm: "%d minuto", h: "isang oras", hh: "%d oras", d: "isang araw", dd: "%d araw", M: "isang buwan", MM: "%d buwan", y: "isang taon", yy: "%d taon" }, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: function (e) { return e }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e) { var t = e; return t = -1 !== e.indexOf("jaj") ? t.slice(0, -3) + "leS" : -1 !== e.indexOf("jar") ? t.slice(0, -3) + "waQ" : -1 !== e.indexOf("DIS") ? t.slice(0, -3) + "nem" : t + " pIq" } function a(e) { var t = e; return t = -1 !== e.indexOf("jaj") ? t.slice(0, -3) + "Hu’" : -1 !== e.indexOf("jar") ? t.slice(0, -3) + "wen" : -1 !== e.indexOf("DIS") ? t.slice(0, -3) + "ben" : t + " ret" } function n(e, t, a, n) { var r = s(e); switch (a) { case "mm": return r + " tup"; case "hh": return r + " rep"; case "dd": return r + " jaj"; case "MM": return r + " jar"; case "yy": return r + " DIS" } } function s(e) { var t = Math.floor(e % 1e3 / 100), a = Math.floor(e % 100 / 10), n = e % 10, s = ""; return t > 0 && (s += r[t] + "vatlh"), a > 0 && (s += ("" !== s ? " " : "") + r[a] + "maH"), n > 0 && (s += ("" !== s ? " " : "") + r[n]), "" === s ? "pagh" : s } var r = "pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"); return e.defineLocale("tlh", { months: "tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"), monthsShort: "jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"), monthsParseExact: !0, weekdays: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), weekdaysShort: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), weekdaysMin: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[DaHjaj] LT", nextDay: "[wa’leS] LT", nextWeek: "LLL", lastDay: "[wa’Hu’] LT", lastWeek: "LLL", sameElse: "L" }, relativeTime: { future: t, past: a, s: "puS lup", m: "wa’ tup", mm: n, h: "wa’ rep", hh: n, d: "wa’ jaj", dd: n, M: "wa’ jar", MM: n, y: "wa’ DIS", yy: n }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = { 1: "'inci", 5: "'inci", 8: "'inci", 70: "'inci", 80: "'inci", 2: "'nci", 7: "'nci", 20: "'nci", 50: "'nci", 3: "'üncü", 4: "'üncü", 100: "'üncü", 6: "'ncı", 9: "'uncu", 10: "'uncu", 30: "'uncu", 60: "'ıncı", 90: "'ıncı" }; return e.defineLocale("tr", { months: "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"), monthsShort: "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"), weekdays: "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"), weekdaysShort: "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"), weekdaysMin: "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[bugün saat] LT", nextDay: "[yarın saat] LT", nextWeek: "[haftaya] dddd [saat] LT", lastDay: "[dün] LT", lastWeek: "[geçen hafta] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s sonra", past: "%s önce", s: "birkaç saniye", m: "bir dakika", mm: "%d dakika", h: "bir saat", hh: "%d saat", d: "bir gün", dd: "%d gün", M: "bir ay", MM: "%d ay", y: "bir yıl", yy: "%d yıl" }, dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, ordinal: function (e) { if (0 === e) return e + "'ıncı"; var a = e % 10, n = e % 100 - a, s = e >= 100 ? 100 : null; return e + (t[a] || t[n] || t[s]) }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t, a, n) { var s = { s: ["viensas secunds", "'iensas secunds"], m: ["'n míut", "'iens míut"], mm: [e + " míuts", e + " míuts"], h: ["'n þora", "'iensa þora"], hh: [e + " þoras", e + " þoras"], d: ["'n ziua", "'iensa ziua"], dd: [e + " ziuas", e + " ziuas"], M: ["'n mes", "'iens mes"], MM: [e + " mesen", e + " mesen"], y: ["'n ar", "'iens ar"], yy: [e + " ars", e + " ars"] }; return n ? s[a][0] : t ? s[a][0] : s[a][1] } return e.defineLocale("tzl", { months: "Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"), monthsShort: "Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"), weekdays: "Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"), weekdaysShort: "Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"), weekdaysMin: "Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD.MM.YYYY", LL: "D. MMMM [dallas] YYYY", LLL: "D. MMMM [dallas] YYYY HH.mm", LLLL: "dddd, [li] D. MMMM [dallas] YYYY HH.mm" }, meridiemParse: /d\'o|d\'a/i, isPM: function (e) { return "d'o" === e.toLowerCase() }, meridiem: function (e, t, a) { return e > 11 ? a ? "d'o" : "D'O" : a ? "d'a" : "D'A" }, calendar: { sameDay: "[oxhi à] LT", nextDay: "[demà à] LT", nextWeek: "dddd [à] LT", lastDay: "[ieiri à] LT", lastWeek: "[sür el] dddd [lasteu à] LT", sameElse: "L" }, relativeTime: { future: "osprei %s", past: "ja%s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("tzm-latn", { months: "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"), monthsShort: "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"), weekdays: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"), weekdaysShort: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"), weekdaysMin: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[asdkh g] LT", nextDay: "[aska g] LT", nextWeek: "dddd [g] LT", lastDay: "[assant g] LT", lastWeek: "dddd [g] LT", sameElse: "L" }, relativeTime: { future: "dadkh s yan %s", past: "yan %s", s: "imik", m: "minuḍ", mm: "%d minuḍ", h: "saɛa", hh: "%d tassaɛin", d: "ass", dd: "%d ossan", M: "ayowr", MM: "%d iyyirn", y: "asgas", yy: "%d isgasn" }, week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("tzm", { months: "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"), monthsShort: "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"), weekdays: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), weekdaysShort: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), weekdaysMin: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[ⴰⵙⴷⵅ ⴴ] LT", nextDay: "[ⴰⵙⴽⴰ ⴴ] LT", nextWeek: "dddd [ⴴ] LT", lastDay: "[ⴰⵚⴰⵏⵜ ⴴ] LT", lastWeek: "dddd [ⴴ] LT", sameElse: "L" }, relativeTime: { future: "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s", past: "ⵢⴰⵏ %s", s: "ⵉⵎⵉⴽ", m: "ⵎⵉⵏⵓⴺ", mm: "%d ⵎⵉⵏⵓⴺ", h: "ⵙⴰⵄⴰ", hh: "%d ⵜⴰⵙⵙⴰⵄⵉⵏ", d: "ⴰⵙⵙ", dd: "%d oⵙⵙⴰⵏ", M: "ⴰⵢoⵓⵔ", MM: "%d ⵉⵢⵢⵉⵔⵏ", y: "ⴰⵙⴳⴰⵙ", yy: "%d ⵉⵙⴳⴰⵙⵏ" }, week: { dow: 6, doy: 12 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; function t(e, t) { var a = e.split("_"); return t % 10 == 1 && t % 100 != 11 ? a[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? a[1] : a[2] } function a(e, a, n) { var s = { mm: a ? "хвилина_хвилини_хвилин" : "хвилину_хвилини_хвилин", hh: a ? "година_години_годин" : "годину_години_годин", dd: "день_дні_днів", MM: "місяць_місяці_місяців", yy: "рік_роки_років" }; return "m" === n ? a ? "хвилина" : "хвилину" : "h" === n ? a ? "година" : "годину" : e + " " + t(s[n], +e) } function n(e, t) { var a = { nominative: "неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"), accusative: "неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"), genitive: "неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_") }; return e ? a[/(\[[ВвУу]\]) ?dddd/.test(t) ? "accusative" : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t) ? "genitive" : "nominative"][e.day()] : a.nominative } function s(e) { return function () { return e + "о" + (11 === this.hours() ? "б" : "") + "] LT" } } return e.defineLocale("uk", { months: { format: "січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"), standalone: "січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_") }, monthsShort: "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"), weekdays: n, weekdaysShort: "нд_пн_вт_ср_чт_пт_сб".split("_"), weekdaysMin: "нд_пн_вт_ср_чт_пт_сб".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY р.", LLL: "D MMMM YYYY р., HH:mm", LLLL: "dddd, D MMMM YYYY р., HH:mm" }, calendar: { sameDay: s("[Сьогодні "), nextDay: s("[Завтра "), lastDay: s("[Вчора "), nextWeek: s("[У] dddd ["), lastWeek: function () { switch (this.day()) { case 0: case 3: case 5: case 6: return s("[Минулої] dddd [").call(this); case 1: case 2: case 4: return s("[Минулого] dddd [").call(this) } }, sameElse: "L" }, relativeTime: { future: "за %s", past: "%s тому", s: "декілька секунд", m: a, mm: a, h: "годину", hh: a, d: "день", dd: a, M: "місяць", MM: a, y: "рік", yy: a }, meridiemParse: /ночі|ранку|дня|вечора/, isPM: function (e) { return /^(дня|вечора)$/.test(e) }, meridiem: function (e, t, a) { return e < 4 ? "ночі" : e < 12 ? "ранку" : e < 17 ? "дня" : "вечора" }, dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, ordinal: function (e, t) { switch (t) { case "M": case "d": case "DDD": case "w": case "W": return e + "-й"; case "D": return e + "-го"; default: return e } }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; var t = ["جنوری", "فروری", "مارچ", "اپریل", "مئی", "جون", "جولائی", "اگست", "ستمبر", "اکتوبر", "نومبر", "دسمبر"], a = ["اتوار", "پیر", "منگل", "بدھ", "جمعرات", "جمعہ", "ہفتہ"]; return e.defineLocale("ur", { months: t, monthsShort: t, weekdays: a, weekdaysShort: a, weekdaysMin: a, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd، D MMMM YYYY HH:mm" }, meridiemParse: /صبح|شام/, isPM: function (e) { return "شام" === e }, meridiem: function (e, t, a) { return e < 12 ? "صبح" : "شام" }, calendar: { sameDay: "[آج بوقت] LT", nextDay: "[کل بوقت] LT", nextWeek: "dddd [بوقت] LT", lastDay: "[گذشتہ روز بوقت] LT", lastWeek: "[گذشتہ] dddd [بوقت] LT", sameElse: "L" }, relativeTime: { future: "%s بعد", past: "%s قبل", s: "چند سیکنڈ", m: "ایک منٹ", mm: "%d منٹ", h: "ایک گھنٹہ", hh: "%d گھنٹے", d: "ایک دن", dd: "%d دن", M: "ایک ماہ", MM: "%d ماہ", y: "ایک سال", yy: "%d سال" }, preparse: function (e) { return e.replace(/،/g, ",") }, postformat: function (e) { return e.replace(/,/g, "،") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("uz-latn", { months: "Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"), monthsShort: "Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"), weekdays: "Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"), weekdaysShort: "Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"), weekdaysMin: "Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "D MMMM YYYY, dddd HH:mm" }, calendar: { sameDay: "[Bugun soat] LT [da]", nextDay: "[Ertaga] LT [da]", nextWeek: "dddd [kuni soat] LT [da]", lastDay: "[Kecha soat] LT [da]", lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", sameElse: "L" }, relativeTime: { future: "Yaqin %s ichida", past: "Bir necha %s oldin", s: "soniya", m: "bir daqiqa", mm: "%d daqiqa", h: "bir soat", hh: "%d soat", d: "bir kun", dd: "%d kun", M: "bir oy", MM: "%d oy", y: "bir yil", yy: "%d yil" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("uz", { months: "январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"), monthsShort: "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"), weekdays: "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"), weekdaysShort: "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"), weekdaysMin: "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "D MMMM YYYY, dddd HH:mm" }, calendar: { sameDay: "[Бугун соат] LT [да]", nextDay: "[Эртага] LT [да]", nextWeek: "dddd [куни соат] LT [да]", lastDay: "[Кеча соат] LT [да]", lastWeek: "[Утган] dddd [куни соат] LT [да]", sameElse: "L" }, relativeTime: { future: "Якин %s ичида", past: "Бир неча %s олдин", s: "фурсат", m: "бир дакика", mm: "%d дакика", h: "бир соат", hh: "%d соат", d: "бир кун", dd: "%d кун", M: "бир ой", MM: "%d ой", y: "бир йил", yy: "%d йил" }, week: { dow: 1, doy: 7 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("vi", { months: "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"), monthsShort: "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"), monthsParseExact: !0, weekdays: "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"), weekdaysShort: "CN_T2_T3_T4_T5_T6_T7".split("_"), weekdaysMin: "CN_T2_T3_T4_T5_T6_T7".split("_"), weekdaysParseExact: !0, meridiemParse: /sa|ch/i, isPM: function (e) { return /^ch$/i.test(e) }, meridiem: function (e, t, a) { return e < 12 ? a ? "sa" : "SA" : a ? "ch" : "CH" }, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM [năm] YYYY", LLL: "D MMMM [năm] YYYY HH:mm", LLLL: "dddd, D MMMM [năm] YYYY HH:mm", l: "DD/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, calendar: { sameDay: "[Hôm nay lúc] LT", nextDay: "[Ngày mai lúc] LT", nextWeek: "dddd [tuần tới lúc] LT", lastDay: "[Hôm qua lúc] LT", lastWeek: "dddd [tuần rồi lúc] LT", sameElse: "L" }, relativeTime: { future: "%s tới", past: "%s trước", s: "vài giây", m: "một phút", mm: "%d phút", h: "một giờ", hh: "%d giờ", d: "một ngày", dd: "%d ngày", M: "một tháng", MM: "%d tháng", y: "một năm", yy: "%d năm" }, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: function (e) { return e }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("x-pseudo", { months: "J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"), monthsShort: "J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"), monthsParseExact: !0, weekdays: "S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"), weekdaysShort: "S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"), weekdaysMin: "S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[T~ódá~ý át] LT", nextDay: "[T~ómó~rró~w át] LT", nextWeek: "dddd [át] LT", lastDay: "[Ý~ést~érdá~ý át] LT", lastWeek: "[L~ást] dddd [át] LT", sameElse: "L" }, relativeTime: { future: "í~ñ %s", past: "%s á~gó", s: "á ~féw ~sécó~ñds", m: "á ~míñ~úté", mm: "%d m~íñú~tés", h: "á~ñ hó~úr", hh: "%d h~óúrs", d: "á ~dáý", dd: "%d d~áýs", M: "á ~móñ~th", MM: "%d m~óñt~hs", y: "á ~ýéár", yy: "%d ý~éárs" }, dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function (e) { var t = e % 10; return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th") }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("yo", { months: "Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"), monthsShort: "Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"), weekdays: "Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"), weekdaysShort: "Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"), weekdaysMin: "Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Ònì ni] LT", nextDay: "[Ọ̀la ni] LT", nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", lastDay: "[Àna ni] LT", lastWeek: "dddd [Ọsẹ̀ tólọ́] [ni] LT", sameElse: "L" }, relativeTime: { future: "ní %s", past: "%s kọjá", s: "ìsẹjú aayá die", m: "ìsẹjú kan", mm: "ìsẹjú %d", h: "wákati kan", hh: "wákati %d", d: "ọjọ́ kan", dd: "ọjọ́ %d", M: "osù kan", MM: "osù %d", y: "ọdún kan", yy: "ọdún %d" }, dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, ordinal: "ọjọ́ %d", week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("zh-cn", { months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY年MMMD日", LL: "YYYY年MMMD日", LLL: "YYYY年MMMD日Ah点mm分", LLLL: "YYYY年MMMD日ddddAh点mm分", l: "YYYY年MMMD日", ll: "YYYY年MMMD日", lll: "YYYY年MMMD日 HH:mm", llll: "YYYY年MMMD日dddd HH:mm" }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "凌晨" === t || "早上" === t || "上午" === t ? e : "下午" === t || "晚上" === t ? e + 12 : e >= 11 ? e : e + 12 }, meridiem: function (e, t, a) { var n = 100 * e + t; return n < 600 ? "凌晨" : n < 900 ? "早上" : n < 1130 ? "上午" : n < 1230 ? "中午" : n < 1800 ? "下午" : "晚上" }, calendar: { sameDay: "[今天]LT", nextDay: "[明天]LT", nextWeek: "[下]ddddLT", lastDay: "[昨天]LT", lastWeek: "[上]ddddLT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, ordinal: function (e, t) { switch (t) { case "d": case "D": case "DDD": return e + "日"; case "M": return e + "月"; case "w": case "W": return e + "周"; default: return e } }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, week: { dow: 1, doy: 4 } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("zh-hk", { months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY年MMMD日", LL: "YYYY年MMMD日", LLL: "YYYY年MMMD日 HH:mm", LLLL: "YYYY年MMMD日dddd HH:mm", l: "YYYY年MMMD日", ll: "YYYY年MMMD日", lll: "YYYY年MMMD日 HH:mm", llll: "YYYY年MMMD日dddd HH:mm" }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "凌晨" === t || "早上" === t || "上午" === t ? e : "中午" === t ? e >= 11 ? e : e + 12 : "下午" === t || "晚上" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { var n = 100 * e + t; return n < 600 ? "凌晨" : n < 900 ? "早上" : n < 1130 ? "上午" : n < 1230 ? "中午" : n < 1800 ? "下午" : "晚上" }, calendar: { sameDay: "[今天]LT", nextDay: "[明天]LT", nextWeek: "[下]ddddLT", lastDay: "[昨天]LT", lastWeek: "[上]ddddLT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, ordinal: function (e, t) { switch (t) { case "d": case "D": case "DDD": return e + "日"; case "M": return e + "月"; case "w": case "W": return e + "週"; default: return e } }, relativeTime: { future: "%s內", past: "%s前", s: "幾秒", m: "1 分鐘", mm: "%d 分鐘", h: "1 小時", hh: "%d 小時", d: "1 天", dd: "%d 天", M: "1 個月", MM: "%d 個月", y: "1 年", yy: "%d 年" } }) }) }, function (e, t, a) { !function (e, t) { t(a(0)) }(0, function (e) { "use strict"; return e.defineLocale("zh-tw", { months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY年MMMD日", LL: "YYYY年MMMD日", LLL: "YYYY年MMMD日 HH:mm", LLLL: "YYYY年MMMD日dddd HH:mm", l: "YYYY年MMMD日", ll: "YYYY年MMMD日", lll: "YYYY年MMMD日 HH:mm", llll: "YYYY年MMMD日dddd HH:mm" }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function (e, t) { return 12 === e && (e = 0), "凌晨" === t || "早上" === t || "上午" === t ? e : "中午" === t ? e >= 11 ? e : e + 12 : "下午" === t || "晚上" === t ? e + 12 : void 0 }, meridiem: function (e, t, a) { var n = 100 * e + t; return n < 600 ? "凌晨" : n < 900 ? "早上" : n < 1130 ? "上午" : n < 1230 ? "中午" : n < 1800 ? "下午" : "晚上" }, calendar: { sameDay: "[今天]LT", nextDay: "[明天]LT", nextWeek: "[下]ddddLT", lastDay: "[昨天]LT", lastWeek: "[上]ddddLT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, ordinal: function (e, t) { switch (t) { case "d": case "D": case "DDD": return e + "日"; case "M": return e + "月"; case "w": case "W": return e + "週"; default: return e } }, relativeTime: { future: "%s內", past: "%s前", s: "幾秒", m: "1 分鐘", mm: "%d 分鐘", h: "1 小時", hh: "%d 小時", d: "1 天", dd: "%d 天", M: "1 個月", MM: "%d 個月", y: "1 年", yy: "%d 年" } }) }) }, function (e, t, a) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function s(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(t, "__esModule", { value: !0 }); var r = function () { function e(e, t) { for (var a = 0; a < t.length; a++) { var n = t[a]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } } return function (t, a, n) { return a && e(t.prototype, a), n && e(t, n), t } }(); a(2), a(1); var i = a(4), d = n(i), _ = a(124), o = n(_), u = a(3), m = n(u), l = function () { function e(t, a) { s(this, e), this.FileSaver = a, this.dates = {}, this.init.call(this), this.watchAttrs.call(this, t) } return r(e, [{ key: "watchAttrs", value: function (e) { var t = this; Object.keys(e).forEach(function (a) { e.$observe(a, t.init.bind(t)) }) } }, { key: "setTimesFromFormat", value: function () { var e = this;["startDate", "endDate"].forEach(function (t) { e.dates[t] = d.default.toUniversalTime(e[t], e.timezone) }) } }, { key: "getSanitizedData", value: function () { var e = this, t = {}; return Object.keys(m.default).forEach(function (a) { t[a] = encodeURIComponent(e[a] || "") }), t } }, { key: "buildUrl", value: function () { var e = angular.extend(this.getSanitizedData.call(this), this.dates), t = angular.extend({}, this, this.dates); this.calendarUrl = { microsoft: o.default.getMicrosoftCalendarUrl(e), google: o.default.getGoogleCalendarUrl(e), yahoo: o.default.getYahooCalendarUrl(e), icalendar: o.default.getIcsCalendar(t), dlIcal: this.dlIcal.bind(this) } } }, { key: "dlIcal", value: function () { var e = d.default.getIcsFileName(this.title), t = this.calendarUrl.icalendar, a = d.default.getIcsBlob(t); this.FileSaver.saveAs(a, e) } }, { key: "toggleMenu", value: function (e) { this.isOpen = e } }, { key: "init", value: function () { this.setTimesFromFormat.call(this), this.buildUrl.call(this) } }]), e }(); t.default = l, l.$inject = ["$attrs", "FileSaver"] }, function (e, t) { }, function (e, t) { e.exports = '<div\n  class="{{ addtocalendar.useBootstrap ? \'\' : \'atc-\' }}btn-group {{ addtocalendar.className }}"\n  ng-class="{\n    active: addtocalendar.isOpen\n  }"\n  title="{{ addtocalendar.hoverText || addtocalendar.title }}"\n  click-outside="addtocalendar.toggleMenu(false)">\n  \n  <span\n    type="button"\n    ng-class="{\n      \'btn btn-default dropdown-toggle\': addtocalendar.useBootstrap\n    }"\n    ng-click="addtocalendar.toggleMenu(true)"\n  class="page-item" style="margin-top: -10px;"  data-toggle="dropdown">\n<span class="far fa-calendar-plus" ng-hide="addtocalendar.hideIcon === true"></span>&nbsp;{{ addtocalendar.btnText || \'Add to calendar\' }}\n    <span class="caret" ng-hide="addtocalendar.hideCaret"></span>\n  </span>\n\n  <ul\n    ng-show="addtocalendar.isOpen"\n    ng-class="{\n      \'dropdown-menu\': addtocalendar.useBootstrap,\n      \'atc-dropdown\': !addtocalendar.useBootstrap\n    }">\n    <li>\n      <a\n        ng-click="addtocalendar.calendarUrl.dlIcal()"\n    style="display:block;"    ng-if="addtocalendar.calendarUrl.dlIcal">\n        iCalendar\n      </a>\n    </li>\n    <li>\n      <a\n        href="{{addtocalendar.calendarUrl.google}}"\n   style="display:block;"     target="_blank">\n        Google Calendar\n      </a>\n    </li>\n    <li>\n      <a\n        ng-click="addtocalendar.calendarUrl.dlIcal()"\n   style="display:block;"     ng-if="addtocalendar.calendarUrl.dlIcal">\n        Outlook\n      </a>\n    </li>\n    <li>\n      <a\n        href="{{addtocalendar.calendarUrl.yahoo}}"\n    style="display:block;"    target="_blank">\n        Yahoo! Calendar\n      </a>\n    </li>\n    <li>\n      <a\n        href="{{addtocalendar.calendarUrl.microsoft}}"\n   style="display:block;"     target="_blank">\n        Microsoft Calendar\n      </a>\n    </li>\n  </ul>\n</div>' }, function (e, t, a) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } Object.defineProperty(t, "__esModule", { value: !0 }), a(2), a(1); var s = a(120), r = n(s), i = a(3), d = n(i), _ = a(122), o = n(_); a(121); var u = { template: o.default, controller: r.default, controllerAs: "addtocalendar", bindings: d.default }; angular.module("angular-atc", ["ngFileSaver", "angular-click-outside"]).controller("AddtocalendarCtrl", r.default).component("addtocalendar", u), t.default = "angular-atc" }, function (e, t, a) { "use strict"; function n(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } Object.defineProperty(t, "__esModule", { value: !0 }); var s = function () { function e(e, t) { for (var a = 0; a < t.length; a++) { var n = t[a]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n) } } return function (t, a, n) { return a && e(t.prototype, a), n && e(t, n), t } }(), r = a(4), i = function (e) { return e && e.__esModule ? e : { default: e } }(r), d = function () { function e() { n(this, e) } return s(e, null, [{ key: "getYahooCalendarUrl", value: function (e) { var t = "http://calendar.yahoo.com/?v=60&view=d&type=20", a = i.default.getHoursDuration(e.startDate, e.endDate); return t += "&TITLE=" + e.title, t += "&ST=" + e.startDate + "&DUR=" + a, t += "&DESC=" + e.description, t += "&in_loc=" + e.location } }, { key: "getMicrosoftCalendarUrl", value: function (e) { var t = "http://calendar.live.com/calendar/calendar.aspx?rru=addevent"; return t += "&summary=" + e.title, t += "&dtstart=" + e.startDate + "&dtend=" + e.endDate, t += "&description=" + e.description, t += "&location=" + e.location } }, { key: "getGoogleCalendarUrl", value: function (e) { var t = "https://www.google.com/calendar/render?action=TEMPLATE"; return t += "&text=" + e.title, t += "&dates=" + e.startDate + "/" + e.endDate, t += "&details=" + e.description, t += "&location=" + e.location } }, { key: "getIcsCalendar", value: function (e) { return ["BEGIN:VCALENDAR", "VERSION:2.0", "BEGIN:VEVENT", "CLASS:PUBLIC", "DESCRIPTION:" + i.default.formatIcsText(e.description, 62), "DTSTART:" + e.startDate, "DTEND:" + e.endDate, "LOCATION:" + i.default.formatIcsText(e.location, 64), "SUMMARY:" + i.default.formatIcsText(e.title, 66), "TRANSP:TRANSPARENT", "END:VEVENT", "END:VCALENDAR", "UID:" + i.default.getUid(), "DTSTAMP:" + i.default.getTimeCreated(), "PRODID:angular-addtocalendar"].join("\n") } }]), e }(); t.default = d }, function (e, t, a) { function n(e) { return a(s(e)) } function s(e) { var t = r[e]; if (!(t + 1)) throw new Error("Cannot find module '" + e + "'."); return t } var r = { "./af": 5, "./af.js": 5, "./ar": 12, "./ar-dz": 6, "./ar-dz.js": 6, "./ar-kw": 7, "./ar-kw.js": 7, "./ar-ly": 8, "./ar-ly.js": 8, "./ar-ma": 9, "./ar-ma.js": 9, "./ar-sa": 10, "./ar-sa.js": 10, "./ar-tn": 11, "./ar-tn.js": 11, "./ar.js": 12, "./az": 13, "./az.js": 13, "./be": 14, "./be.js": 14, "./bg": 15, "./bg.js": 15, "./bn": 16, "./bn.js": 16, "./bo": 17, "./bo.js": 17, "./br": 18, "./br.js": 18, "./bs": 19, "./bs.js": 19, "./ca": 20, "./ca.js": 20, "./cs": 21, "./cs.js": 21, "./cv": 22, "./cv.js": 22, "./cy": 23, "./cy.js": 23, "./da": 24, "./da.js": 24, "./de": 27, "./de-at": 25, "./de-at.js": 25, "./de-ch": 26, "./de-ch.js": 26, "./de.js": 27, "./dv": 28, "./dv.js": 28, "./el": 29, "./el.js": 29, "./en-au": 30, "./en-au.js": 30, "./en-ca": 31, "./en-ca.js": 31, "./en-gb": 32, "./en-gb.js": 32, "./en-ie": 33, "./en-ie.js": 33, "./en-nz": 34, "./en-nz.js": 34, "./eo": 35, "./eo.js": 35, "./es": 37, "./es-do": 36, "./es-do.js": 36, "./es.js": 37, "./et": 38, "./et.js": 38, "./eu": 39, "./eu.js": 39, "./fa": 40, "./fa.js": 40, "./fi": 41, "./fi.js": 41, "./fo": 42, "./fo.js": 42, "./fr": 45, "./fr-ca": 43, "./fr-ca.js": 43, "./fr-ch": 44, "./fr-ch.js": 44, "./fr.js": 45, "./fy": 46, "./fy.js": 46, "./gd": 47, "./gd.js": 47, "./gl": 48, "./gl.js": 48, "./gom-latn": 49, "./gom-latn.js": 49, "./he": 50, "./he.js": 50, "./hi": 51, "./hi.js": 51, "./hr": 52, "./hr.js": 52, "./hu": 53, "./hu.js": 53, "./hy-am": 54, "./hy-am.js": 54, "./id": 55, "./id.js": 55, "./is": 56, "./is.js": 56, "./it": 57, "./it.js": 57, "./ja": 58, "./ja.js": 58, "./jv": 59, "./jv.js": 59, "./ka": 60, "./ka.js": 60, "./kk": 61, "./kk.js": 61, "./km": 62, "./km.js": 62, "./kn": 63, "./kn.js": 63, "./ko": 64, "./ko.js": 64, "./ky": 65, "./ky.js": 65, "./lb": 66, "./lb.js": 66, "./lo": 67, "./lo.js": 67, "./lt": 68, "./lt.js": 68, "./lv": 69, "./lv.js": 69, "./me": 70, "./me.js": 70, "./mi": 71, "./mi.js": 71, "./mk": 72, "./mk.js": 72, "./ml": 73, "./ml.js": 73, "./mr": 74, "./mr.js": 74, "./ms": 76, "./ms-my": 75, "./ms-my.js": 75, "./ms.js": 76, "./my": 77, "./my.js": 77, "./nb": 78, "./nb.js": 78, "./ne": 79, "./ne.js": 79, "./nl": 81, "./nl-be": 80, "./nl-be.js": 80, "./nl.js": 81, "./nn": 82, "./nn.js": 82, "./pa-in": 83, "./pa-in.js": 83, "./pl": 84, "./pl.js": 84, "./pt": 86, "./pt-br": 85, "./pt-br.js": 85, "./pt.js": 86, "./ro": 87, "./ro.js": 87, "./ru": 88, "./ru.js": 88, "./sd": 89, "./sd.js": 89, "./se": 90, "./se.js": 90, "./si": 91, "./si.js": 91, "./sk": 92, "./sk.js": 92, "./sl": 93, "./sl.js": 93, "./sq": 94, "./sq.js": 94, "./sr": 96, "./sr-cyrl": 95, "./sr-cyrl.js": 95, "./sr.js": 96, "./ss": 97, "./ss.js": 97, "./sv": 98, "./sv.js": 98, "./sw": 99, "./sw.js": 99, "./ta": 100, "./ta.js": 100, "./te": 101, "./te.js": 101, "./tet": 102, "./tet.js": 102, "./th": 103, "./th.js": 103, "./tl-ph": 104, "./tl-ph.js": 104, "./tlh": 105, "./tlh.js": 105, "./tr": 106, "./tr.js": 106, "./tzl": 107, "./tzl.js": 107, "./tzm": 109, "./tzm-latn": 108, "./tzm-latn.js": 108, "./tzm.js": 109, "./uk": 110, "./uk.js": 110, "./ur": 111, "./ur.js": 111, "./uz": 113, "./uz-latn": 112, "./uz-latn.js": 112, "./uz.js": 113, "./vi": 114, "./vi.js": 114, "./x-pseudo": 115, "./x-pseudo.js": 115, "./yo": 116, "./yo.js": 116, "./zh-cn": 117, "./zh-cn.js": 117, "./zh-hk": 118, "./zh-hk.js": 118, "./zh-tw": 119, "./zh-tw.js": 119 }; n.keys = function () { return Object.keys(r) }, n.resolve = s, e.exports = n, n.id = 125 }, function (e, t) { e.exports = function (e) { return e.webpackPolyfill || (e.deprecate = function () { }, e.paths = [], e.children || (e.children = []), Object.defineProperty(e, "loaded", { enumerable: !0, get: function () { return e.l } }), Object.defineProperty(e, "id", { enumerable: !0, get: function () { return e.i } }), e.webpackPolyfill = 1), e } }]);
;
/******/ (function (modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if (installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
            /******/
};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
        /******/
}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
    /******/
})
/************************************************************************/
/******/([
/* 0 */
/***/ (function (module, exports, __webpack_require__) {

            // Generated by CoffeeScript 1.12.5
            'use strict';

            var IBAN;

            IBAN = __webpack_require__(1);

            angular.module('mm.iban', ['ng']).directive('ngIban', function () {
                return {
                    restrict: 'A',
                    require: 'ngModel',
                    scope: {
                        ngModel: '='
                    },
                    link: function link(scope, elem, attrs, ctrl) {
                        var isValidIban, parseIban;
                        parseIban = function parseIban(value) {
                            if (value != null) {
                                return IBAN.electronicFormat(value);
                            } else {
                                return void 0;
                            }
                        };
                        isValidIban = function isValidIban(value) {
                            var iban;
                            if (!(attrs.required || value)) {
                                return true;
                            }
                            iban = parseIban(value);
                            return IBAN.isValid(iban);
                        };
                        ctrl.$validators.ngIban = function (modelValue) {
                            return isValidIban(modelValue);
                        };
                        ctrl.$parsers.unshift(function (viewValue) {
                            var parsed, pretty, valid;
                            if (viewValue != null) {
                                valid = isValidIban(viewValue);
                                if (valid) {
                                    parsed = parseIban(viewValue);
                                    pretty = IBAN.printFormat(parsed);
                                    if (pretty !== viewValue) {
                                        ctrl.$setViewValue(pretty);
                                        ctrl.$render();
                                    }
                                    return parsed;
                                } else {
                                    return viewValue;
                                }
                            }
                        });
                        ctrl.$formatters.unshift(function (modelValue) {
                            var parsed, pretty, valid;
                            if (modelValue != null) {
                                valid = isValidIban(modelValue);
                                if (valid) {
                                    parsed = parseIban(modelValue);
                                    if (parsed !== modelValue) {
                                        scope.ngModel = parsed;
                                    }
                                    return pretty = IBAN.printFormat(parsed);
                                } else {
                                    return modelValue;
                                }
                            }
                        });
                    }
                };
            }).filter('iban', function () {
                return function (string, separator) {
                    var isValidIban, parseIban, valid;
                    parseIban = function parseIban(value) {
                        if (value != null) {
                            return value.toUpperCase().replace(/\s/g, '');
                        } else {
                            return void 0;
                        }
                    };
                    isValidIban = function isValidIban(value) {
                        var iban;
                        iban = parseIban(value);
                        return IBAN.isValid(iban);
                    };
                    valid = isValidIban(string);
                    if (valid) {
                        return IBAN.printFormat(string, separator);
                    } else {
                        return string;
                    }

					//console.log("iban-filter");
                };
            });

            /***/
}),
/* 1 */
/***/ (function (module, exports, __webpack_require__) {

            var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; (function (root, factory) {
                if (true) {
                    // AMD. Register as an anonymous module.
                    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
                } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
                    // CommonJS
                    factory(exports);
                } else {
                    // Browser globals
                    factory(root.IBAN = {});
                }
            }(this, function (exports) {

                // Array.prototype.map polyfill
                // code from https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map
                if (!Array.prototype.map) {
                    Array.prototype.map = function (fun /*, thisArg */) {
                        "use strict";

                        if (this === void 0 || this === null)
                            throw new TypeError();

                        var t = Object(this);
                        var len = t.length >>> 0;
                        if (typeof fun !== "function")
                            throw new TypeError();

                        var res = new Array(len);
                        var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
                        for (var i = 0; i < len; i++) {
                            // NOTE: Absolute correctness would demand Object.defineProperty
                            //       be used.  But this method is fairly new, and failure is
                            //       possible only if Object.prototype or Array.prototype
                            //       has a property |i| (very unlikely), so use a less-correct
                            //       but more portable alternative.
                            if (i in t)
                                res[i] = fun.call(thisArg, t[i], i, t);
                        }

                        return res;
                    };
                }

                var A = 'A'.charCodeAt(0),
                    Z = 'Z'.charCodeAt(0);

                /**
                 * Prepare an IBAN for mod 97 computation by moving the first 4 chars to the end and transforming the letters to
                 * numbers (A = 10, B = 11, ..., Z = 35), as specified in ISO13616.
                 *
                 * @param {string} iban the IBAN
                 * @returns {string} the prepared IBAN
                 */
                function iso13616Prepare(iban) {
                    iban = iban.toUpperCase();
                    iban = iban.substr(4) + iban.substr(0, 4);

                    return iban.split('').map(function (n) {
                        var code = n.charCodeAt(0);
                        if (code >= A && code <= Z) {
                            // A = 10, B = 11, ... Z = 35
                            return code - A + 10;
                        } else {
                            return n;
                        }
                    }).join('');
                }

                /**
                 * Calculates the MOD 97 10 of the passed IBAN as specified in ISO7064.
                 *
                 * @param iban
                 * @returns {number}
                 */
                function iso7064Mod97_10(iban) {
                    var remainder = iban,
                        block;

                    while (remainder.length > 2) {
                        block = remainder.slice(0, 9);
                        remainder = parseInt(block, 10) % 97 + remainder.slice(block.length);
                    }

                    return parseInt(remainder, 10) % 97;
                }

                /**
                 * Parse the BBAN structure used to configure each IBAN Specification and returns a matching regular expression.
                 * A structure is composed of blocks of 3 characters (one letter and 2 digits). Each block represents
                 * a logical group in the typical representation of the BBAN. For each group, the letter indicates which characters
                 * are allowed in this group and the following 2-digits number tells the length of the group.
                 *
                 * @param {string} structure the structure to parse
                 * @returns {RegExp}
                 */
                function parseStructure(structure) {
                    // split in blocks of 3 chars
                    var regex = structure.match(/(.{3})/g).map(function (block) {

                        // parse each structure block (1-char + 2-digits)
                        var format,
                            pattern = block.slice(0, 1),
                            repeats = parseInt(block.slice(1), 10);

                        switch (pattern) {
                            case "A": format = "0-9A-Za-z"; break;
                            case "B": format = "0-9A-Z"; break;
                            case "C": format = "A-Za-z"; break;
                            case "F": format = "0-9"; break;
                            case "L": format = "a-z"; break;
                            case "U": format = "A-Z"; break;
                            case "W": format = "0-9a-z"; break;
                        }

                        return '([' + format + ']{' + repeats + '})';
                    });

                    return new RegExp('^' + regex.join('') + '$');
                }

                /**
                 *
                 * @param iban
                 * @returns {string}
                 */
                function electronicFormat(iban) {
                    return iban.replace(NON_ALPHANUM, '').toUpperCase();
                }


                /**
                 * Create a new Specification for a valid IBAN number.
                 *
                 * @param countryCode the code of the country
                 * @param length the length of the IBAN
                 * @param structure the structure of the underlying BBAN (for validation and formatting)
                 * @param example an example valid IBAN
                 * @constructor
                 */
                function Specification(countryCode, length, structure, example) {

                    this.countryCode = countryCode;
                    this.length = length;
                    this.structure = structure;
                    this.example = example;
                }

                /**
                 * Lazy-loaded regex (parse the structure and construct the regular expression the first time we need it for validation)
                 */
                Specification.prototype._regex = function () {
                    return this._cachedRegex || (this._cachedRegex = parseStructure(this.structure))
                };

                /**
                 * Check if the passed iban is valid according to this specification.
                 *
                 * @param {String} iban the iban to validate
                 * @returns {boolean} true if valid, false otherwise
                 */
                Specification.prototype.isValid = function (iban) {
                    return this.length == iban.length
                        && this.countryCode === iban.slice(0, 2)
                        && this._regex().test(iban.slice(4))
                        && iso7064Mod97_10(iso13616Prepare(iban)) == 1;
                };

                /**
                 * Convert the passed IBAN to a country-specific BBAN.
                 *
                 * @param iban the IBAN to convert
                 * @param separator the separator to use between BBAN blocks
                 * @returns {string} the BBAN
                 */
                Specification.prototype.toBBAN = function (iban, separator) {
                    return this._regex().exec(iban.slice(4)).slice(1).join(separator);
                };

                /**
                 * Convert the passed BBAN to an IBAN for this country specification.
                 * Please note that <i>"generation of the IBAN shall be the exclusive responsibility of the bank/branch servicing the account"</i>.
                 * This method implements the preferred algorithm described in http://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits
                 *
                 * @param bban the BBAN to convert to IBAN
                 * @returns {string} the IBAN
                 */
                Specification.prototype.fromBBAN = function (bban) {
                    if (!this.isValidBBAN(bban)) {
                        throw new Error('Invalid BBAN');
                    }

                    var remainder = iso7064Mod97_10(iso13616Prepare(this.countryCode + '00' + bban)),
                        checkDigit = ('0' + (98 - remainder)).slice(-2);

                    return this.countryCode + checkDigit + bban;
                };

                /**
                 * Check of the passed BBAN is valid.
                 * This function only checks the format of the BBAN (length and matching the letetr/number specs) but does not
                 * verify the check digit.
                 *
                 * @param bban the BBAN to validate
                 * @returns {boolean} true if the passed bban is a valid BBAN according to this specification, false otherwise
                 */
                Specification.prototype.isValidBBAN = function (bban) {
                    return this.length - 4 == bban.length
                        && this._regex().test(bban);
                };

                var countries = {};

                function addSpecification(IBAN) {
                    countries[IBAN.countryCode] = IBAN;
                }

                addSpecification(new Specification("AD", 24, "F04F04A12", "AD1200012030200359100100"));
                addSpecification(new Specification("AE", 23, "F03F16", "AE070331234567890123456"));
                addSpecification(new Specification("AL", 28, "F08A16", "AL47212110090000000235698741"));
                addSpecification(new Specification("AT", 20, "F05F11", "AT611904300234573201"));
                addSpecification(new Specification("AZ", 28, "U04A20", "AZ21NABZ00000000137010001944"));
                addSpecification(new Specification("BA", 20, "F03F03F08F02", "BA391290079401028494"));
                addSpecification(new Specification("BE", 16, "F03F07F02", "BE68539007547034"));
                addSpecification(new Specification("BG", 22, "U04F04F02A08", "BG80BNBG96611020345678"));
                addSpecification(new Specification("BH", 22, "U04A14", "BH67BMAG00001299123456"));
                addSpecification(new Specification("BR", 29, "F08F05F10U01A01", "BR9700360305000010009795493P1"));
                addSpecification(new Specification("BY", 28, "A04F04A16", "BY13NBRB3600900000002Z00AB00"));
                addSpecification(new Specification("CH", 21, "F05A12", "CH9300762011623852957"));
                addSpecification(new Specification("CR", 22, "F04F14", "CR72012300000171549015"));
                addSpecification(new Specification("CY", 28, "F03F05A16", "CY17002001280000001200527600"));
                addSpecification(new Specification("CZ", 24, "F04F06F10", "CZ6508000000192000145399"));
                addSpecification(new Specification("DE", 22, "F08F10", "DE89370400440532013000"));
                addSpecification(new Specification("DK", 18, "F04F09F01", "DK5000400440116243"));
                addSpecification(new Specification("DO", 28, "U04F20", "DO28BAGR00000001212453611324"));
                addSpecification(new Specification("EE", 20, "F02F02F11F01", "EE382200221020145685"));
                addSpecification(new Specification("ES", 24, "F04F04F01F01F10", "ES9121000418450200051332"));
                addSpecification(new Specification("FI", 18, "F06F07F01", "FI2112345600000785"));
                addSpecification(new Specification("FO", 18, "F04F09F01", "FO6264600001631634"));
                addSpecification(new Specification("FR", 27, "F05F05A11F02", "FR1420041010050500013M02606"));
                addSpecification(new Specification("GB", 22, "U04F06F08", "GB29NWBK60161331926819"));
                addSpecification(new Specification("GE", 22, "U02F16", "GE29NB0000000101904917"));
                addSpecification(new Specification("GI", 23, "U04A15", "GI75NWBK000000007099453"));
                addSpecification(new Specification("GL", 18, "F04F09F01", "GL8964710001000206"));
                addSpecification(new Specification("GR", 27, "F03F04A16", "GR1601101250000000012300695"));
                addSpecification(new Specification("GT", 28, "A04A20", "GT82TRAJ01020000001210029690"));
                addSpecification(new Specification("HR", 21, "F07F10", "HR1210010051863000160"));
                addSpecification(new Specification("HU", 28, "F03F04F01F15F01", "HU42117730161111101800000000"));
                addSpecification(new Specification("IE", 22, "U04F06F08", "IE29AIBK93115212345678"));
                addSpecification(new Specification("IL", 23, "F03F03F13", "IL620108000000099999999"));
                addSpecification(new Specification("IS", 26, "F04F02F06F10", "IS140159260076545510730339"));
                addSpecification(new Specification("IT", 27, "U01F05F05A12", "IT60X0542811101000000123456"));
                addSpecification(new Specification("IQ", 23, "U04F03A12", "IQ98NBIQ850123456789012"));
                addSpecification(new Specification("JO", 30, "A04F22", "JO15AAAA1234567890123456789012"));
                addSpecification(new Specification("KW", 30, "U04A22", "KW81CBKU0000000000001234560101"));
                addSpecification(new Specification("KZ", 20, "F03A13", "KZ86125KZT5004100100"));
                addSpecification(new Specification("LB", 28, "F04A20", "LB62099900000001001901229114"));
                addSpecification(new Specification("LC", 32, "U04F24", "LC07HEMM000100010012001200013015"));
                addSpecification(new Specification("LI", 21, "F05A12", "LI21088100002324013AA"));
                addSpecification(new Specification("LT", 20, "F05F11", "LT121000011101001000"));
                addSpecification(new Specification("LU", 20, "F03A13", "LU280019400644750000"));
                addSpecification(new Specification("LV", 21, "U04A13", "LV80BANK0000435195001"));
                addSpecification(new Specification("MC", 27, "F05F05A11F02", "MC5811222000010123456789030"));
                addSpecification(new Specification("MD", 24, "U02A18", "MD24AG000225100013104168"));
                addSpecification(new Specification("ME", 22, "F03F13F02", "ME25505000012345678951"));
                addSpecification(new Specification("MK", 19, "F03A10F02", "MK07250120000058984"));
                addSpecification(new Specification("MR", 27, "F05F05F11F02", "MR1300020001010000123456753"));
                addSpecification(new Specification("MT", 31, "U04F05A18", "MT84MALT011000012345MTLCAST001S"));
                addSpecification(new Specification("MU", 30, "U04F02F02F12F03U03", "MU17BOMM0101101030300200000MUR"));
                addSpecification(new Specification("NL", 18, "U04F10", "NL91ABNA0417164300"));
                addSpecification(new Specification("NO", 15, "F04F06F01", "NO9386011117947"));
                addSpecification(new Specification("PK", 24, "U04A16", "PK36SCBL0000001123456702"));
                addSpecification(new Specification("PL", 28, "F08F16", "PL61109010140000071219812874"));
                addSpecification(new Specification("PS", 29, "U04A21", "PS92PALS000000000400123456702"));
                addSpecification(new Specification("PT", 25, "F04F04F11F02", "PT50000201231234567890154"));
                addSpecification(new Specification("QA", 29, "U04A21", "QA30AAAA123456789012345678901"));
                addSpecification(new Specification("RO", 24, "U04A16", "RO49AAAA1B31007593840000"));
                addSpecification(new Specification("RS", 22, "F03F13F02", "RS35260005601001611379"));
                addSpecification(new Specification("SA", 24, "F02A18", "SA0380000000608010167519"));
                addSpecification(new Specification("SC", 31, "U04F04F16U03", "SC18SSCB11010000000000001497USD"));
                addSpecification(new Specification("SE", 24, "F03F16F01", "SE4550000000058398257466"));
                addSpecification(new Specification("SI", 19, "F05F08F02", "SI56263300012039086"));
                addSpecification(new Specification("SK", 24, "F04F06F10", "SK3112000000198742637541"));
                addSpecification(new Specification("SM", 27, "U01F05F05A12", "SM86U0322509800000000270100"));
                addSpecification(new Specification("ST", 25, "F08F11F02", "ST68000100010051845310112"));
                addSpecification(new Specification("SV", 28, "U04F20", "SV62CENR00000000000000700025"));
                addSpecification(new Specification("TL", 23, "F03F14F02", "TL380080012345678910157"));
                addSpecification(new Specification("TN", 24, "F02F03F13F02", "TN5910006035183598478831"));
                addSpecification(new Specification("TR", 26, "F05F01A16", "TR330006100519786457841326"));
                addSpecification(new Specification("UA", 29, "F25", "UA511234567890123456789012345"));
                addSpecification(new Specification("VA", 22, "F18", "VA59001123000012345678"));
                addSpecification(new Specification("VG", 24, "U04F16", "VG96VPVG0000012345678901"));
                addSpecification(new Specification("XK", 20, "F04F10F02", "XK051212012345678906"));


                // The following countries are not included in the official IBAN registry but use the IBAN specification

                // Angola
                addSpecification(new Specification("AO", 25, "F21", "AO69123456789012345678901"));
                // Burkina
                addSpecification(new Specification("BF", 27, "F23", "BF2312345678901234567890123"));
                // Burundi
                addSpecification(new Specification("BI", 16, "F12", "BI41123456789012"));
                // Benin
                addSpecification(new Specification("BJ", 28, "F24", "BJ39123456789012345678901234"));
                // Ivory
                addSpecification(new Specification("CI", 28, "U02F22", "CI70CI1234567890123456789012"));
                // Cameron
                addSpecification(new Specification("CM", 27, "F23", "CM9012345678901234567890123"));
                // Cape Verde
                addSpecification(new Specification("CV", 25, "F21", "CV30123456789012345678901"));
                // Algeria
                addSpecification(new Specification("DZ", 24, "F20", "DZ8612345678901234567890"));
                // Iran
                addSpecification(new Specification("IR", 26, "F22", "IR861234568790123456789012"));
                // Madagascar
                addSpecification(new Specification("MG", 27, "F23", "MG1812345678901234567890123"));
                // Mali
                addSpecification(new Specification("ML", 28, "U01F23", "ML15A12345678901234567890123"));
                // Mozambique
                addSpecification(new Specification("MZ", 25, "F21", "MZ25123456789012345678901"));
                // Senegal
                addSpecification(new Specification("SN", 28, "U01F23", "SN52A12345678901234567890123"));

                var NON_ALPHANUM = /[^a-zA-Z0-9]/g,
                    EVERY_FOUR_CHARS = /(.{4})(?!$)/g;

                /**
                 * Utility function to check if a variable is a String.
                 *
                 * @param v
                 * @returns {boolean} true if the passed variable is a String, false otherwise.
                 */
                function isString(v) {
                    return (typeof v == 'string' || v instanceof String);
                }

                /**
                 * Check if an IBAN is valid.
                 *
                 * @param {String} iban the IBAN to validate.
                 * @returns {boolean} true if the passed IBAN is valid, false otherwise
                 */
                exports.isValid = function (iban) {
                    if (!isString(iban)) {
                        return false;
                    }
                    iban = electronicFormat(iban);
                    var countryStructure = countries[iban.slice(0, 2)];
                    return !!countryStructure && countryStructure.isValid(iban);
                };

                /**
                 * Convert an IBAN to a BBAN.
                 *
                 * @param iban
                 * @param {String} [separator] the separator to use between the blocks of the BBAN, defaults to ' '
                 * @returns {string|*}
                 */
                exports.toBBAN = function (iban, separator) {
                    if (typeof separator == 'undefined') {
                        separator = ' ';
                    }
                    iban = electronicFormat(iban);
                    var countryStructure = countries[iban.slice(0, 2)];
                    if (!countryStructure) {
                        throw new Error('No country with code ' + iban.slice(0, 2));
                    }
                    return countryStructure.toBBAN(iban, separator);
                };

                /**
                 * Convert the passed BBAN to an IBAN for this country specification.
                 * Please note that <i>"generation of the IBAN shall be the exclusive responsibility of the bank/branch servicing the account"</i>.
                 * This method implements the preferred algorithm described in http://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits
                 *
                 * @param countryCode the country of the BBAN
                 * @param bban the BBAN to convert to IBAN
                 * @returns {string} the IBAN
                 */
                exports.fromBBAN = function (countryCode, bban) {
                    var countryStructure = countries[countryCode];
                    if (!countryStructure) {
                        throw new Error('No country with code ' + countryCode);
                    }
                    return countryStructure.fromBBAN(electronicFormat(bban));
                };

                /**
                 * Check the validity of the passed BBAN.
                 *
                 * @param countryCode the country of the BBAN
                 * @param bban the BBAN to check the validity of
                 */
                exports.isValidBBAN = function (countryCode, bban) {
                    if (!isString(bban)) {
                        return false;
                    }
                    var countryStructure = countries[countryCode];
                    return countryStructure && countryStructure.isValidBBAN(electronicFormat(bban));
                };

                /**
                 *
                 * @param iban
                 * @param separator
                 * @returns {string}
                 */
                exports.printFormat = function (iban, separator) {
                    if (typeof separator == 'undefined') {
                        separator = ' ';
                    }
                    return electronicFormat(iban).replace(EVERY_FOUR_CHARS, "$1" + separator);
                };

                exports.electronicFormat = electronicFormat;
                /**
                 * An object containing all the known IBAN specifications.
                 */
                exports.countries = countries;

            }));


            /***/
})
/******/]);;
/*!
 * Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
 * (c) 2024 Szymon Nowak | Released under the MIT license
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SignaturePad=e()}(this,(function(){"use strict";class t{constructor(t,e,i,n){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=i||0,this.time=n||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class e{static fromPoints(t,i){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,s=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new e(t[1],n,s,t[2],i.start,i.end)}static calculateControlPoints(e,i,n){const s=e.x-i.x,o=e.y-i.y,r=i.x-n.x,h=i.y-n.y,a=(e.x+i.x)/2,c=(e.y+i.y)/2,d=(i.x+n.x)/2,l=(i.y+n.y)/2,u=Math.sqrt(s*s+o*o),v=Math.sqrt(r*r+h*h),_=u+v==0?0:v/(u+v),p=d+(a-d)*_,m=l+(c-l)*_,g=i.x-p,w=i.y-m;return{c1:new t(a+g,c+w),c2:new t(d+g,l+w)}}constructor(t,e,i,n,s,o){this.startPoint=t,this.control2=e,this.control1=i,this.endPoint=n,this.startWidth=s,this.endWidth=o}length(){let t,e,i=0;for(let n=0;n<=10;n+=1){const s=n/10,o=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){const n=o-t,s=r-e;i+=Math.sqrt(n*n+s*s)}t=o,e=r}return i}point(t,e,i,n,s){return e*(1-t)*(1-t)*(1-t)+3*i*(1-t)*(1-t)*t+3*n*(1-t)*t*t+s*t*t*t}}class i{constructor(){try{this._et=new EventTarget}catch(t){this._et=document}}addEventListener(t,e,i){this._et.addEventListener(t,e,i)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,i){this._et.removeEventListener(t,e,i)}}class n extends i{constructor(t,e={}){var i,s,o;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=t=>{this._isLeftButtonPressed(t,!0)&&!this._drawingStroke&&this._strokeBegin(this._pointerEventToSignatureEvent(t))},this._handleMouseMove=t=>{this._isLeftButtonPressed(t,!0)&&this._drawingStroke?this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t)):this._strokeEnd(this._pointerEventToSignatureEvent(t),!1)},this._handleMouseUp=t=>{this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))},this._handleTouchStart=t=>{1!==t.targetTouches.length||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))},this._handleTouchMove=t=>{1===t.targetTouches.length&&(t.cancelable&&t.preventDefault(),this._drawingStroke?this._strokeMoveUpdate(this._touchEventToSignatureEvent(t)):this._strokeEnd(this._touchEventToSignatureEvent(t),!1))},this._handleTouchEnd=t=>{0===t.targetTouches.length&&(t.cancelable&&t.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(t)))},this._handlePointerDown=t=>{t.isPrimary&&this._isLeftButtonPressed(t)&&!this._drawingStroke&&(t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))},this._handlePointerMove=t=>{t.isPrimary&&(this._isLeftButtonPressed(t,!0)&&this._drawingStroke?(t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))):this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))},this._handlePointerUp=t=>{t.isPrimary&&!this._isLeftButtonPressed(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=null!==(i=e.throttle)&&void 0!==i?i:16,this.minDistance=null!==(s=e.minDistance)&&void 0!==s?s:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=null!==(o=e.canvasContextOptions)&&void 0!==o?o:{},this._strokeMoveUpdate=this.throttle?function(t,e=250){let i,n,s,o=0,r=null;const h=()=>{o=Date.now(),r=null,i=t.apply(n,s),r||(n=null,s=[])};return function(...a){const c=Date.now(),d=e-(c-o);return n=this,s=a,d<=0||d>e?(r&&(clearTimeout(r),r=null),o=c,i=t.apply(n,s),r||(n=null,s=[])):r||(r=window.setTimeout(h,d)),i}}(n.prototype._strokeUpdate,this.throttle):n.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise(((i,n)=>{const s=new Image,o=e.ratio||window.devicePixelRatio||1,r=e.width||this.canvas.width/o,h=e.height||this.canvas.height/o,a=e.xOffset||0,c=e.yOffset||0;this._reset(this._getPointGroupOptions()),s.onload=()=>{this._ctx.drawImage(s,a,c,r,h),i()},s.onerror=t=>{n(t)},s.crossOrigin="anonymous",s.src=t,this._isEmpty=!1}))}toDataURL(t="image/png",e){return"image/svg+xml"===t?("object"!=typeof e&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`):("number"!=typeof e&&(e=void 0),this.canvas.toDataURL(t,e))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const e=window.document===this.canvas.ownerDocument?window:null!==(t=this.canvas.ownerDocument.defaultView)&&void 0!==t?t:this.canvas.ownerDocument;return{addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?1===t.buttons:!(1&~t.buttons)}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:e}=this._getListenerFunctions();switch(t.event.type){case"mousedown":e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp);break;case"touchstart":e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd);break;case"pointerdown":e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp)}this._drawingStroke=!0;const i=this._getPointGroupOptions(),n=Object.assign(Object.assign({},i),{points:[]});this._data.push(n),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(t);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=this._createPoint(t.x,t.y,t.pressure),i=this._data[this._data.length-1],n=i.points,s=n.length>0&&n[n.length-1],o=!!s&&e.distanceTo(s)<=this.minDistance,r=this._getPointGroupOptions(i);if(!s||!s||!o){const t=this._addPoint(e,r);s?t&&this._drawCurve(t,r):this._drawDot(e,r),n.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(e,i,n){const s=this.canvas.getBoundingClientRect();return new t(e-s.left,i-s.top,n,(new Date).getTime())}_addPoint(t,i){const{_lastPoints:n}=this;if(n.push(t),n.length>2){3===n.length&&n.unshift(n[0]);const t=this._calculateCurveWidths(n[1],n[2],i),s=e.fromPoints(n,t);return n.shift(),s}return null}_calculateCurveWidths(t,e,i){const n=i.velocityFilterWeight*e.velocityFrom(t)+(1-i.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(n,i),o={end:s,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=s,o}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,i){const n=this._ctx;n.moveTo(t,e),n.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const i=this._ctx,n=t.endWidth-t.startWidth,s=2*Math.ceil(t.length());i.beginPath(),i.fillStyle=e.penColor;for(let i=0;i<s;i+=1){const o=i/s,r=o*o,h=r*o,a=1-o,c=a*a,d=c*a;let l=d*t.startPoint.x;l+=3*c*o*t.control1.x,l+=3*a*r*t.control2.x,l+=h*t.endPoint.x;let u=d*t.startPoint.y;u+=3*c*o*t.control1.y,u+=3*a*r*t.control2.y,u+=h*t.endPoint.y;const v=Math.min(t.startWidth+h*n,e.maxWidth);this._drawCurveSegment(l,u,v)}i.closePath(),i.fill()}_drawDot(t,e){const i=this._ctx,n=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;i.beginPath(),this._drawCurveSegment(t.x,t.y,n),i.closePath(),i.fillStyle=e.penColor,i.fill()}_fromData(e,i,n){for(const s of e){const{points:e}=s,o=this._getPointGroupOptions(s);if(e.length>1)for(let n=0;n<e.length;n+=1){const s=e[n],r=new t(s.x,s.y,s.pressure,s.time);0===n&&this._reset(o);const h=this._addPoint(r,o);h&&i(h,o)}else this._reset(o),n(e[0],o)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,i=Math.max(window.devicePixelRatio||1,1),n=this.canvas.width/i,s=this.canvas.height/i,o=document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("viewBox",`0 0 ${n} ${s}`),o.setAttribute("width",n.toString()),o.setAttribute("height",s.toString()),t&&this.backgroundColor){const t=document.createElement("rect");t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("fill",this.backgroundColor),o.appendChild(t)}return this._fromData(e,((t,{penColor:e})=>{const i=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){const n=`M ${t.startPoint.x.toFixed(3)},${t.startPoint.y.toFixed(3)} C ${t.control1.x.toFixed(3)},${t.control1.y.toFixed(3)} ${t.control2.x.toFixed(3)},${t.control2.y.toFixed(3)} ${t.endPoint.x.toFixed(3)},${t.endPoint.y.toFixed(3)}`;i.setAttribute("d",n),i.setAttribute("stroke-width",(2.25*t.endWidth).toFixed(3)),i.setAttribute("stroke",e),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),o.appendChild(i)}}),((t,{penColor:e,dotSize:i,minWidth:n,maxWidth:s})=>{const r=document.createElement("circle"),h=i>0?i:(n+s)/2;r.setAttribute("r",h.toString()),r.setAttribute("cx",t.x.toString()),r.setAttribute("cy",t.y.toString()),r.setAttribute("fill",e),o.appendChild(r)})),o.outerHTML}}return n}));
//# sourceMappingURL=signature_pad.umd.min.js.map
;
/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.2.8 - 2019-11-18
 *  Desc: Include this file in any page being loaded into an iframe
 *        to force the iframe to resize to the content size.
 *  Requires: iframeResizer.min.js on host page.
 *  Copyright: (c) 2019 David J. Bradshaw - dave@bradshaw.net
 *  License: MIT
 */

!function(d){if("undefined"!=typeof window){var n=!0,o=10,i="",r=0,a="",t=null,u="",c=!1,s={resize:1,click:1},l=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},b=32,w=null,T=!1,E="[iFrameSizer]",O=E.length,S="",M={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",N=!0,A=window.parent,C="*",z=0,k=!1,e=null,R=16,x=1,L="scroll",F=L,P=window,D=function(){re("onMessage function not defined")},j=function(){},q=function(){},H={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},W={},B=!1;try{var J=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",ee,J),window.removeEventListener("test",ee,J)}catch(e){}var U,V,K,Q,X,Y,G=Date.now||function(){return(new Date).getTime()},Z={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),ve("bottom",we()))},taggedElement:function(){return be("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,ye($))},min:function(){return Math.min.apply(null,ye($))},rightMostElement:function(){return ve("right",we())},taggedElement:function(){return be("right","data-iframe-width")}},_=(U=Te,X=null,Y=0,function(){var e=G(),t=R-(e-(Y=Y||e));return V=this,K=arguments,t<=0||R<t?(X&&(clearTimeout(X),X=null),Y=e,Q=U.apply(V,K),X||(V=K=null)):X=X||setTimeout(Ee,t),Q});te(window,"message",function(t){var n={init:function(){v=t.data,A=t.source,ae(),f=!1,setTimeout(function(){p=!1},l)},reset:function(){p?ie("Page reset ignored by init"):(ie("Page size reset by host page"),Me("resetPage"))},resize:function(){Oe("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ie("PageInfoFromParent called from parent: "+e),q(JSON.parse(e)),ie(" --")},message:function(){var e=i();ie("onMessage called from parent: "+e),D(JSON.parse(e)),ie(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function e(){var e=o();e in n?n[e]():("undefined"==typeof module||!module.exports)&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||re("Unexpected message ("+t.data+")")}E===(""+t.data).substr(0,O)&&(!1===f?e():r()?n.init():ie('Ignored message of type "'+o()+'". Received before initialization.'))}),te(window,"readystatechange",Ae),Ae()}function ee(){}function te(e,t,n,o){e.addEventListener(t,n,!!B&&(o||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){return E+"["+S+"] "+e}function ie(e){T&&"object"==typeof window.console&&console.log(oe(e))}function re(e){"object"==typeof window.console&&console.warn(oe(e))}function ae(){!function(){function e(e){return"true"===e}var t=v.substr(O).split(":");S=t[0],r=d!==t[1]?Number(t[1]):r,c=d!==t[2]?e(t[2]):c,T=d!==t[3]?e(t[3]):T,b=d!==t[4]?Number(t[4]):b,n=d!==t[6]?e(t[6]):n,a=t[7],g=d!==t[8]?t[8]:g,i=t[9],u=t[10],z=d!==t[11]?Number(t[11]):z,y.enable=d!==t[12]&&e(t[12]),I=d!==t[13]?t[13]:I,F=d!==t[14]?t[14]:F}(),ie("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),H[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(function(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ue,e),D="onMessage"in e?e.onMessage:D,j="onReady"in e?e.onReady:j,C="targetOrigin"in e?e.targetOrigin:C,g="heightCalculationMethod"in e?e.heightCalculationMethod:g,F="widthCalculationMethod"in e?e.widthCalculationMethod:F}(),g=e(g,"height"),F=e(F,"width"));ie("TargetOrigin for parent set to: "+C)}(),function(){d===a&&(a=r+"px");ce("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",a))}(),ce("background",i),ce("padding",u),function(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}(),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),P.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,he()):!1===e&&!0===n&&(n=!1,de("remove"),null!==t&&t.disconnect(),clearInterval(w)),Ne(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ne(0,0,"close")},getId:function(){return S},getPageInfo:function(e){"function"==typeof e?(q=e,Ne(0,0,"pageInfo")):(q=function(){},Ne(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ne(t,e,"scrollTo")},scrollToOffset:function(e,t){Ne(t,e,"scrollToOffset")},sendMessage:function(e,t){Ne(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){g=e,fe()},setWidthCalculationMethod:function(e){F=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),C=e},size:function(e,t){Oe("size","parentIFrame.size("+((e||"")+(t?","+t:""))+")",e,t)}},he(),y=function(){function r(e){var t=e.getBoundingClientRect(),n={x:window.pageXOffset!==d?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==d?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(e){var t,n=e.split("#")[1]||e,o=decodeURIComponent(n),i=document.getElementById(o)||document.getElementsByName(o)[0];d!==i?(t=r(i),ie("Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),Ne(t.y,t.x,"scrollToOffset")):(ie("In page link (#"+n+") not found in iFrame, so sending to parent"),Ne(0,0,"inPageLink","#"+n))}function e(){""!==location.hash&&"#"!==location.hash&&t(location.href)}function n(){Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(e){"#"!==e.getAttribute("href")&&te(e,"click",function(e){e.preventDefault(),t(this.getAttribute("href"))})})}y.enable?Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),n(),te(window,"hashchange",e),setTimeout(e,l)):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ie("In page linking not enabled");return{findTarget:t}}(),Oe("init","Init message from host page"),j()}function ue(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ce(e,t){d!==t&&""!==t&&"null"!==t&&ie("Body "+e+' set to "'+(document.body.style[e]=t)+'"')}function se(n){var e={add:function(e){function t(){Oe(n.eventName,n.eventType)}W[e]=t,te(window,e,t,{passive:!0})},remove:function(e){var t=W[e];delete W[e],function(e,t,n){e.removeEventListener(t,n,!1)}(window,e,t)}};n.eventNames&&Array.prototype.map?(n.eventName=n.eventNames[0],n.eventNames.map(e[n.method])):e[n.method](n.eventName),ie(ne(n.method)+" event listener: "+n.eventType)}function de(e){se({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),se({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),se({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),se({method:e,eventType:"Input",eventName:"input"}),se({method:e,eventType:"Mouse Up",eventName:"mouseup"}),se({method:e,eventType:"Mouse Down",eventName:"mousedown"}),se({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),se({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),se({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),se({method:e,eventType:"Touch Start",eventName:"touchstart"}),se({method:e,eventType:"Touch End",eventName:"touchend"}),se({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),se({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),se({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),se({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===I&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,o){return t!==e&&(e in n||(re(e+" is not a valid option for "+o+"CalculationMethod."),e=t),ie(o+' calculation method set to "'+e+'"')),e}function fe(){g=le(g,h,Z,"height")}function me(){F=le(F,L,$,"width")}function he(){!0===n?(de("add"),function(){var e=b<0;window.MutationObserver||window.WebKitMutationObserver?e?ge():t=function(){function t(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),u.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function o(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),function(e){u.splice(u.indexOf(e),1)}(e)}function n(e,t,n){o(e.target),Oe(t,n+": "+e.target.src,d,d)}function i(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function a(e){Oe("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var u=[],c=window.MutationObserver||window.WebKitMutationObserver,s=function(){var e=document.querySelector("body");return s=new c(a),ie("Create body MutationObserver"),s.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),s}();return{disconnect:function(){"disconnect"in s&&(ie("Disconnect body MutationObserver"),s.disconnect(),u.forEach(o))}}}():(ie("MutationObserver not supported in this browser!"),ge())}()):ie("Auto Resize disabled")}function ge(){0!==b&&(ie("setInterval: "+b+"ms"),w=setInterval(function(){Oe("interval","setInterval: "+b)},Math.abs(b)))}function pe(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,o)}function ve(e,t){for(var n=t.length,o=0,i=0,r=ne(e),a=G(),u=0;u<n;u++)i<(o=t[u].getBoundingClientRect()[e]+pe("margin"+r,t[u]))&&(i=o);return a=G()-a,ie("Parsed "+n+" HTML elements"),ie("Element position calculated in "+a+"ms"),function(e){R/2<e&&ie("Event throttle increased to "+(R=2*e)+"ms")}(a),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function we(){return document.querySelectorAll("body *")}function Te(e,t,n,o){var i,r;function a(e,t){return!(Math.abs(e-t)<=z)}i=d!==n?n:Z[g](),r=d!==o?o:$[F](),a(m,i)||c&&a(x,r)||"init"===e?(Se(),Ne(m=i,x=r,e)):e in{init:1,interval:1,size:1}||!(g in M||c&&F in M)?e in{interval:1}||ie("No change in size detected"):Ie(t)}function Ee(){Y=G(),X=null,Q=U.apply(V,K),X||(V=K=null)}function Oe(e,t,n,o){k&&e in s?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),"init"===e?Te(e,t,n,o):_(e,t,n,o))}function Se(){k||(k=!0,ie("Trigger event lock on")),clearTimeout(e),e=setTimeout(function(){k=!1,ie("Trigger event lock off"),ie("--")},l)}function Me(e){m=Z[g](),x=$[F](),Ne(m,x,e)}function Ie(e){var t=g;g=h,ie("Reset trigger event: "+e),Se(),Me("reset"),g=t}function Ne(e,t,n,o,i){var r;!0===N&&(d===i?i=C:ie("Message targetOrigin: "+i),ie("Sending message to host page ("+(r=S+":"+(e+":"+t)+":"+n+(d!==o?":"+o:""))+")"),A.postMessage(E+r,i))}function Ae(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}();
//# sourceMappingURL=iframeResizer.contentWindow.map;
/*! angularjs-slider - v7.1.0 -  (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> -  https://github.com/angular-slider/angularjs-slider -  2022-05-26 */
!function(a,b){"use strict";if("function"==typeof define&&define.amd)define(["angular"],b);else if("object"==typeof module&&module.exports){var c=angular||require("angular");c&&c.module||"undefined"==typeof angular||(c=angular),module.exports=b(c)}else b(a.angular)}(this,function(a){"use strict";var b=a.module("rzSlider",[]).factory("RzSliderOptions",function(){var b={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},c={},d={};return d.options=function(b){a.extend(c,b)},d.getOptions=function(d){return a.extend({},b,c,d)},d}).factory("rzThrottle",["$timeout",function(a){return function(b,c,d){var e,f,g,h=Date.now||function(){return(new Date).getTime()},i=null,j=0;d=d||{};var k=function(){j=h(),i=null,g=b.apply(e,f),e=f=null};return function(){var l=h(),m=c-(l-j);return e=this,f=arguments,0>=m?(a.cancel(i),i=null,j=l,g=b.apply(e,f),e=f=null):i||d.trailing===!1||(i=a(k,m)),g}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(b,c,d,e,f,g){var h=function(a,b){this.scope=a,this.lowValue=0,this.highValue=0,this.sliderElem=b,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return h.prototype={init:function(){var b,c,e=this,f=function(){e.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",f),a.element(d).on("resize",f),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),b=g(function(){e.onLowHandleChange()},e.options.interval),c=g(function(){e.onHighHandleChange()},e.options.interval),this.scope.$on("rzSliderForceRender",function(){e.resetLabelsValue(),b(),e.range&&c(),e.resetSlider()}),this.scope.$watchCollection("rzSliderOptions()",function(a,b){a!==b&&(e.applyOptions(),e.syncLowValue(),e.range&&e.syncHighValue(),e.resetSlider())}),this.scope.$watch("rzSliderModel",function(a,c){e.internalChange||a!==c&&b()}),this.scope.$watch("rzSliderHigh",function(a,b){e.internalChange||a!==b&&(null!=a&&c(),(e.range&&null==a||!e.range&&null!=a)&&(e.applyOptions(),e.resetSlider()))}),this.scope.$on("$destroy",function(){e.unbindEvents(),a.element(d).off("resize",f),e.currentFocusElement=null})},findStepIndex:function(b){for(var c=0,d=0;d<this.options.stepsArray.length;d++){var e=this.options.stepsArray[d];if(e===b){c=d;break}if(a.isDate(e)){if(e.getTime()===b.getTime()){c=d;break}}else if(a.isObject(e)&&(a.isDate(e.value)&&e.value.getTime()===b.getTime()||e.value===b)){c=d;break}}return c},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(b){var c=this.options.stepsArray[b];return a.isDate(c)?c:a.isObject(c)?c.value:c},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var b;b=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=f.getOptions(b),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(a.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(a){return String(a)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(a){return this.options.bindIndexForStepsArray?this.getStepValue(a):a},this.getLegend=function(b){var c=this.options.stepsArray[b];return a.isObject(c)?c.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(b){var c=a.element(b);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=c;for(var d=b.parentElement,e=1;e<this.options.restrictedRange.length;e++){var f=document.createElement("span");f.setAttribute("class","rz-bar-wrapper"),f.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',d.appendChild(f),this.restrictedBar[e]=a.element(f)}}else b.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){a.forEach(this.sliderElem.children(),function(b,c){var d=a.element(b);switch(c){case 0:this.leftOutSelBar=d;break;case 1:this.rightOutSelBar=d;break;case 2:this.fullBar=d;break;case 3:this.selBar=d;break;case 4:this.ensureRestrictedBarIsArray(b);break;case 5:this.minH=d;break;case 6:this.maxH=d;break;case 7:this.flrLab=d;break;case 8:this.ceilLab=d;break;case 9:this.minLab=d;break;case 10:this.maxLab=d;break;case 11:this.cmbLab=d;break;case 12:this.ticks=d}},this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var a=this.options.showTicksValues&&!this.intermediateTicks;this.alwaysHide(this.minLab,a||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,a||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,a||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars);for(var b in this.restrictedBar)this.restrictedBar[b]&&this.alwaysHide(this.restrictedBar[b],!this.options.restrictedRange[b]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(a,b){a.rzAlwaysHide=b,b?this.hideEl(a):this.showEl(a)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(a,b,c,d){d=void 0===d?!0:d;var e="",f=!1,g=b.hasClass("no-label-injection");d?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(a=this.getStepValue(a)),e=String(this.customTrFn(a,this.options.id,c))):e=String(a),(void 0===b.rzsv||b.rzsv.length!==e.length||b.rzsv.length>0&&0===b.rzsd)&&(f=!0,b.rzsv=e),g||b.html(e),this.scope[c+"Label"]=e,f&&this.getDimension(b)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var a=this.getDimension(this.minH);if(this.handleHalfDim=a/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-a,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var c=this;b(function(){c.updateTicksScale()})}},updateTicksScale:function(){if(this.options.showTicks){var b=this.options.ticksArray||this.getTicksArray(),c=this.options.vertical?"translateY":"translateX",d=this;this.options.rightToLeft&&b.reverse(),this.scope.ticks=b.map(function(b){var e=null;a.isObject(b)&&(e=b.legend,b=b.value);var f=d.valueToPosition(b);d.options.vertical&&(f=d.maxPos-f);var g=c+"("+Math.round(f)+"px)",h={legend:e,selected:d.isTickSelected(b),style:{"-webkit-transform":g,"-moz-transform":g,"-o-transform":g,"-ms-transform":g,transform:g}};return h.selected&&d.options.getSelectionBarColor&&(h.style["background-color"]=d.getSelectionBarColor()),!h.selected&&d.options.getTickColor&&(h.style["background-color"]=d.getTickColor(b)),d.options.ticksTooltip&&(h.tooltip=d.options.ticksTooltip(b),h.tooltipPlacement=d.options.vertical?"right":"top"),(d.options.showTicksValues===!0||b%d.options.showTicksValues===0)&&(h.value=d.getDisplayValue(b,"tick-value"),d.options.ticksValuesTooltip&&(h.valueTooltip=d.options.ticksValuesTooltip(b),h.valueTooltipPlacement=d.options.vertical?"right":"top")),d.getLegend&&(e=d.getLegend(b,d.options.id),e&&(h.legend=e)),h})}},getTicksArray:function(){var a=this.step,b=[];this.intermediateTicks&&(a=this.options.showTicks);for(var c=this.minValue;c<=this.maxValue;c+=a)b.push(c);return b},isTickSelected:function(a){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var b=this.options.showSelectionBarFromValue;if(this.lowValue>b&&a>=b&&a<=this.lowValue)return!0;if(this.lowValue<b&&b>=a&&a>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(a>=this.lowValue)return!0}else if(this.options.showSelectionBar&&a<=this.lowValue)return!0;return this.range&&a>=this.lowValue&&a<=this.highValue?!0:!1},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var a=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,a)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var a=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,a)},updateHandles:function(a,b){"lowValue"===a?this.updateLowHandle(b):this.updateHighHandle(b),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(a,b){var c=this[a].rzsd,d=b-c/2+this.handleHalfDim,e=this.barDimension-c;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===a||!this.options.rightToLeft&&"maxLab"===a?Math.min(d,e):Math.min(Math.max(d,0),e):d},updateLowHandle:function(a){if(this.setPosition(this.minH,a),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",a)),this.options.getPointerColor){var b=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:b}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(a){if(this.setPosition(this.maxH,a),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",a)),this.options.getPointerColor){var b=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:b}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var a=!1,b=!1,c=this.isLabelBelowFloorLab(this.minLab),d=this.isLabelAboveCeilLab(this.minLab),e=this.isLabelAboveCeilLab(this.maxLab),f=this.isLabelBelowFloorLab(this.cmbLab),g=this.isLabelAboveCeilLab(this.cmbLab);if(c?(a=!0,this.hideEl(this.flrLab)):(a=!1,this.showEl(this.flrLab)),d?(b=!0,this.hideEl(this.ceilLab)):(b=!1,this.showEl(this.ceilLab)),this.range){var h=this.cmbLabelShown?g:e,i=this.cmbLabelShown?f:c;h?this.hideEl(this.ceilLab):b||this.showEl(this.ceilLab),i?this.hideEl(this.flrLab):a||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(a){var b=this.options.rightToLeft,c=a.rzsp,d=a.rzsd,e=this.flrLab.rzsp,f=this.flrLab.rzsd;return b?c+d>=e-2:e+f+2>=c},isLabelAboveCeilLab:function(a){var b=this.options.rightToLeft,c=a.rzsp,d=a.rzsd,e=this.ceilLab.rzsp,f=this.ceilLab.rzsd;return b?e+f+2>=c:c+d>=e-2},updateRestrictionBar:function(){var a=0,b=0;if(this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange];for(var c in this.options.restrictedRange){var d=this.valueToPosition(this.options.restrictedRange[c].from),e=this.valueToPosition(this.options.restrictedRange[c].to);b=Math.abs(e-d),a=this.options.rightToLeft?e+this.handleHalfDim:d+this.handleHalfDim,this.setDimension(this.restrictedBar[c],b),this.setPosition(this.restrictedBar[c],a)}}},updateSelectionBar:function(){var a=0,b=0,c=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,d=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)b=Math.abs(this.maxH.rzsp-this.minH.rzsp),a=d;else if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue,f=this.valueToPosition(e),g=this.options.rightToLeft?this.lowValue<=e:this.lowValue>e;g?(b=this.minH.rzsp-f,a=f+this.handleHalfDim):(b=f-this.minH.rzsp,a=this.minH.rzsp+this.handleHalfDim)}else c?(b=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,a=this.minH.rzsp+this.handleHalfDim):(b=this.minH.rzsp+this.handleHalfDim,a=0);if(this.setDimension(this.selBar,b),this.setPosition(this.selBar,a),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,a),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(a+b)),this.setPosition(this.leftOutSelBar,a+b)):(this.setDimension(this.leftOutSelBar,a),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(a+b)),this.setPosition(this.rightOutSelBar,a+b))),this.options.getSelectionBarColor){var h=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:h}}else if(this.options.selectionBarGradient){var i=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,j=i-a>0^c,k=this.options.vertical?j?"bottom":"top":j?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+k+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(i+b+a+(j?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=i-a+(j?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(a){return"max"===a?this.options.getPointerColor(this.scope.rzSliderHigh,a):this.options.getPointerColor(this.scope.rzSliderModel,a)},getTickColor:function(a){return this.options.getTickColor(a)},updateCmbLabel:function(){var a=null;if(a=this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var b=this.getDisplayValue(this.lowValue,"model"),c=this.getDisplayValue(this.highValue,"high"),d="";d=this.options.mergeRangeLabelsIfSame&&b===c?b:this.options.rightToLeft?c+this.options.labelOverlapSeparator+b:b+this.options.labelOverlapSeparator+c,this.translateFn(d,this.cmbLab,"cmb",!1);var e=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,e),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(a,b){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(a=this.getStepValue(a)),this.customTrFn(a,this.options.id,b)},roundStep:function(a,b){var c=b?b:this.step,d=parseFloat((a-this.minValue)/c).toPrecision(12);d=Math.round(+d)*c;var e=(this.minValue+d).toFixed(this.precision);return+e},hideEl:function(a){return a.css({visibility:"hidden"})},showEl:function(a){return a.rzAlwaysHide?a:a.css({visibility:"visible"})},setPosition:function(a,b){a.rzsp=b;var c={};return c[this.positionProperty]=Math.round(b)+"px",a.css(c),b},resetPosition:function(a){a.css({left:null,bottom:null})},getDimension:function(a){var b=a[0].getBoundingClientRect();return this.options.vertical?a.rzsd=(b.bottom-b.top)*this.options.scale:a.rzsd=(b.right-b.left)*this.options.scale,a.rzsd},setDimension:function(a,b){a.rzsd=b;var c={};return c[this.dimensionProperty]=Math.round(b)+"px",a.css(c),b},sanitizeValue:function(a){return Math.min(Math.max(a,this.minValue),this.maxValue)},valueToPosition:function(a){var b=this.linearValueToPosition;this.options.customValueToPosition?b=this.options.customValueToPosition:this.options.logScale&&(b=this.logValueToPosition),a=this.sanitizeValue(a);var c=b(a,this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(c=1-c),c*this.maxPos},linearValueToPosition:function(a,b,c){var d=c-b;return(a-b)/d},logValueToPosition:function(a,b,c){a=Math.log(a),b=Math.log(b),c=Math.log(c);var d=c-b;return(a-b)/d},positionToValue:function(a){var b=a/this.maxPos;this.options.rightToLeft&&(b=1-b);var c=this.linearPositionToValue;return this.options.customPositionToValue?c=this.options.customPositionToValue:this.options.logScale&&(c=this.logPositionToValue),c(b,this.minValue,this.maxValue)||0},linearPositionToValue:function(a,b,c){return a*(c-b)+b},logPositionToValue:function(a,b,c){b=Math.log(b),c=Math.log(c);var d=a*(c-b)+b;return Math.exp(d)},getEventAttr:function(a,b){return void 0===a.originalEvent?a[b]:a.originalEvent[b]},getEventXY:function(a,b){var c=this.options.vertical?"clientY":"clientX";if(void 0!==a[c])return a[c];var d=this.getEventAttr(a,"touches");if(void 0!==b)for(var e=0;e<d.length;e++)if(d[e].identifier===b)return d[e][c];return d[0][c]},getEventPosition:function(a,b){var c=this.sliderElem.rzsp,d=0;return d=this.options.vertical?-this.getEventXY(a,b)+c:this.getEventXY(a,b)-c,d*this.options.scale-this.handleHalfDim},getEventNames:function(a){var b={moveEvent:"",endEvent:""};return this.getEventAttr(a,"touches")?(b.moveEvent="touchmove",b.endEvent="touchend"):(b.moveEvent="mousemove",b.endEvent="mouseup"),b},getNearestHandle:function(a){if(!this.range)return this.minH;var b=this.getEventPosition(a),c=Math.abs(b-this.minH.rzsp),d=Math.abs(b-this.maxH.rzsp);return d>c?this.minH:c>d?this.maxH:this.options.rightToLeft?b>this.minH.rzsp?this.minH:this.maxH:b<this.minH.rzsp?this.minH:this.maxH},focusElement:function(a){var b=0;a[b].focus()},bindEvents:function(){var b,c,d;this.options.draggableRange?(b="rzSliderDrag",c=this.onDragStart,d=this.onDragMove):(b="lowValue",c=this.onStart,d=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",a.bind(this,c,null,b)),this.selBar.on("mousedown",a.bind(this,d,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",a.bind(this,c,null,b)),this.maxH.on("mousedown",a.bind(this,c,null,b))):(this.minH.on("mousedown",a.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",a.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",a.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",a.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",a.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",a.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",a.bind(this,c,null,b)),this.selBar.on("touchstart",a.bind(this,d,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",a.bind(this,c,null,b)),this.maxH.on("touchstart",a.bind(this,c,null,b))):(this.minH.on("touchstart",a.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",a.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",a.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",a.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",a.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",a.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",a.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",a.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(b,d,e){var f,g,h=this.getEventNames(e);e.stopPropagation(),e.preventDefault(),this.calcViewDimensions(),b?this.tracking=d:(b=this.getNearestHandle(e),this.tracking=b===this.minH?"lowValue":"highValue"),b.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(b),f=a.bind(this,this.dragging.active?this.onDragMove:this.onMove,b),g=a.bind(this,this.onEnd,f),c.on(h.moveEvent,f),c.on(h.endEvent,g),this.endHandlerToBeRemovedOnEnd=g,this.callOnStart();var i=this.getEventAttr(e,"changedTouches");i&&(this.touchId||(this.isDragging=!0,this.touchId=i[0].identifier))},onMove:function(b,c,d){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var e,f=this.getEventAttr(c,"changedTouches");if(f)for(var g=0;g<f.length;g++)if(f[g].identifier===this.touchId){e=f[g];break}if(!f||e){var h,i=this.getEventPosition(c,e?e.identifier:void 0),j=this.options.rightToLeft?this.minValue:this.maxValue,k=this.options.rightToLeft?this.maxValue:this.minValue;0>=i?h=k:i>=this.maxPos?h=j:(h=this.positionToValue(i),h=d&&a.isNumber(this.options.showTicks)?this.roundStep(h,this.options.showTicks):this.roundStep(h)),this.positionTrackingHandle(h)}},onEnd:function(a,b){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var d=this.getEventAttr(b,"changedTouches");if(!d||d[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var e=this.getEventNames(b);c.off(e.moveEvent,a),c.off(e.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(a,b){this.onMove(a,b,!0)},onPointerFocus:function(b,c){this.tracking=c,b.one("blur",a.bind(this,this.onPointerBlur,b)),b.on("keydown",a.bind(this,this.onKeyboardEvent)),b.on("keyup",a.bind(this,this.onKeyUp)),this.firstKeyDown=!0,b.addClass("rz-active"),this.currentFocusElement={pointer:b,ref:c}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(a){a.off("keydown"),a.off("keyup"),a.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(a,b){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var c in this.options.restrictedRange){var d=this.options.restrictedRange[c];if(0===d.from&&0===b&&[37,40].includes(a)||d.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&b>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(a))return b;d.to>b&&b>d.from&&(b=Math.abs(d.to-b)>Math.abs(d.from-b)?d.to:d.from)}return b},getKeyActions:function(a){var b=a+this.step,c=a-this.step,d=a+this.valueRange/10,e=a-this.valueRange/10;this.options.reversedControls&&(b=a-this.step,c=a+this.step,d=a-this.valueRange/10,e=a+this.valueRange/10);var f={UP:b,DOWN:c,LEFT:c,RIGHT:b,PAGEUP:d,PAGEDOWN:e,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(f.LEFT=b,f.RIGHT=c,this.options.vertical&&(f.UP=c,f.DOWN=b)),f},onKeyboardEvent:function(a){var c=a.keyCode||a.which,d=this[this.tracking],e={38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"},f=this.getKeyActions(d),g=e[c],h=f[g];if(null!=h&&""!==this.tracking){a.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var i=this;b(function(){var a=i.roundStep(i.sanitizeValue(h));if(a=i.options.skipRestrictedRangesWithArrowKeys?i.skipRestrictedRanges(c,a):a,i.options.draggableRangeOnly){var b,d,e=i.highValue-i.lowValue;"lowValue"===i.tracking?(b=a,d=a+e,d>i.maxValue&&(d=i.maxValue,b=d-e)):(d=a,b=a-e,b<i.minValue&&(b=i.minValue,d=b+e)),i.positionTrackingBar(b,d)}else i.positionTrackingHandle(a)})}},onDragStart:function(a,b,c){var d=this.getEventPosition(c);this.dragging={active:!0,value:this.positionToValue(d),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-d:d-this.minH.rzsp,highLimit:this.options.rightToLeft?d-this.maxH.rzsp:this.maxH.rzsp-d
},this.onStart(a,b,c)},getValue:function(a,b,c,d){var e=this.options.rightToLeft,f=null;return f="min"===a?c?d?e?this.minValue:this.maxValue-this.dragging.difference:e?this.maxValue-this.dragging.difference:this.minValue:e?this.positionToValue(b+this.dragging.lowLimit):this.positionToValue(b-this.dragging.lowLimit):c?d?e?this.minValue+this.dragging.difference:this.maxValue:e?this.maxValue:this.minValue+this.dragging.difference:e?this.positionToValue(b+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(b-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(f)},onDragMove:function(a,b){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var c,d,e,f,g,h,i,j,k=this.getEventPosition(b);if(this.options.rightToLeft?(e=this.dragging.lowLimit,f=this.dragging.highLimit,i=this.maxH,j=this.minH):(e=this.dragging.highLimit,f=this.dragging.lowLimit,i=this.minH,j=this.maxH),g=f>=k,h=k>=this.maxPos-e,g){if(0===i.rzsp)return;c=this.getValue("min",k,!0,!1),d=this.getValue("max",k,!0,!1)}else if(h){if(j.rzsp===this.maxPos)return;d=this.getValue("max",k,!0,!0),c=this.getValue("min",k,!0,!0)}else c=this.getValue("min",k,!1),d=this.getValue("max",k,!1);this.positionTrackingBar(c,d)},positionTrackingBar:function(a,b){null!=this.options.minLimit&&a<this.options.minLimit&&(a=this.options.minLimit,b=a+this.dragging.difference),null!=this.options.maxLimit&&b>this.options.maxLimit&&(b=this.options.maxLimit,a=b-this.dragging.difference),this.lowValue=a,this.highValue=b,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(a)),this.updateHandles("highValue",this.valueToPosition(b))},positionTrackingHandle:function(a){var b=!1;a=this.applyMinMaxLimit(a),a=this.applyRestrictedRange(a),this.range&&(this.options.pushRange?(a=this.applyPushRange(a),b=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&a>this.highValue?a=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&a<this.lowValue&&(a=this.applyMinMaxRange(this.lowValue))),a=this.applyMinMaxRange(a),"lowValue"===this.tracking&&a>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),b=!0):"highValue"===this.tracking&&a<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),b=!0))),this[this.tracking]!==a&&(this[this.tracking]=a,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(a)),this.updateAriaAttributes(),b=!0),b&&this.applyModel(!0)},applyMinMaxLimit:function(a){return null!=this.options.minLimit&&a<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&a>this.options.maxLimit?this.options.maxLimit:a},applyMinMaxRange:function(a){var b="lowValue"===this.tracking?this.highValue:this.lowValue,c=Math.abs(a-b);return null!=this.options.minRange&&c<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&c>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:a},applyRestrictedRange:function(a){for(var b in this.options.restrictedRange)if(null!=this.options.restrictedRange[b]&&a>this.options.restrictedRange[b].from&&a<this.options.restrictedRange[b].to){var c=(this.options.restrictedRange[b].to-this.options.restrictedRange[b].from)/2;if("lowValue"===this.tracking)return a>this.options.restrictedRange[b].from+c?this.options.restrictedRange[b].to:this.options.restrictedRange[b].from;if("highValue"===this.tracking)return a<this.options.restrictedRange[b].to-c?this.options.restrictedRange[b].from:this.options.restrictedRange[b].to}return a},applyPushRange:function(a){var b="lowValue"===this.tracking?this.highValue-a:a-this.lowValue,c=null!==this.options.minRange?this.options.minRange:this.options.step,d=this.options.maxRange;return c>b?("lowValue"===this.tracking?(this.highValue=Math.min(a+c,this.maxValue),a=this.highValue-c,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(a-c,this.minValue),a=this.lowValue+c,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==d&&b>d&&("lowValue"===this.tracking?(this.highValue=a+d,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=a-d,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),a},applyModel:function(a){this.internalChange=!0,this.scope.$apply(),a&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var a=this,b="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync(function(){a.options.onStart(a.options.id,a.scope.rzSliderModel,a.scope.rzSliderHigh,b)})}},callOnChange:function(){if(this.options.onChange){var a=this,b="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync(function(){a.options.onChange(a.options.id,a.scope.rzSliderModel,a.scope.rzSliderHigh,b)})}},callOnEnd:function(){if(this.options.onEnd){var a=this,b="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync(function(){a.options.onEnd(a.options.id,a.scope.rzSliderModel,a.scope.rzSliderHigh,b)})}this.scope.$emit("slideEnded")}},h}]).directive("rzslider",["RzSlider",function(a){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(a,b){return b.rzSliderTplUrl||"rzSliderTpl.html"},link:function(b,c){b.slider=new a(b,c)}}}]);return b.run(["$templateCache",function(a){a.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),b.name});;
/*! tether 1.2.3 */
(function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t(require,exports,module):n.Tether=t()})(this,function(){"use strict";function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function it(n){var e=getComputedStyle(n)||{},f=e.position,r=[],t,i;if(f==="fixed")return[n];for(t=n;t=t.parentNode;){i=undefined;try{i=getComputedStyle(t)}catch(c){}if(typeof i=="undefined"||i===null)return r.push(t),r;var u=i,o=u.overflow,s=u.overflowX,h=u.overflowY;/(auto|scroll)/.test(o+h+s)&&(f!=="absolute"||["relative","absolute","fixed"].indexOf(i.position)>=0)&&r.push(t)}return r.push(document.body),r}function i(n){var i=undefined,r,u;n===document?(i=document,n=document.documentElement):i=n.ownerDocument;var f=i.documentElement,t={},e=n.getBoundingClientRect();for(r in e)t[r]=e[r];return u=at(i),t.top-=u.top,t.left-=u.left,typeof t.width=="undefined"&&(t.width=document.body.scrollWidth-t.left-t.right),typeof t.height=="undefined"&&(t.height=document.body.scrollHeight-t.top-t.bottom),t.top=t.top-f.clientTop,t.left=t.left-f.clientLeft,t.right=i.body.clientWidth-t.width-t.left,t.bottom=i.body.clientHeight-t.height-t.top,t}function c(n){return n.offsetParent||document.documentElement}function p(){var t=document.createElement("div"),n,u,i,f;return t.style.width="100%",t.style.height="200px",n=document.createElement("div"),r(n.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(t),document.body.appendChild(n),u=t.offsetWidth,n.style.overflow="scroll",i=t.offsetWidth,u===i&&(i=n.clientWidth),document.body.removeChild(n),f=u-i,{width:f,height:f}}function r(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=t[i])}),n}function s(n,t){if(typeof n.classList!="undefined")t.split(" ").forEach(function(t){t.trim()&&n.classList.remove(t)});else{var i=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(n).replace(i," ");ut(n,r)}}function e(n,t){if(typeof n.classList!="undefined")t.split(" ").forEach(function(t){t.trim()&&n.classList.add(t)});else{s(n,t);var i=b(n)+(" "+t);ut(n,i)}}function w(n,t){if(typeof n.classList!="undefined")return n.classList.contains(t);var i=b(n);return new RegExp("(^| )"+t+"( |$)","gi").test(i)}function b(n){return n.className instanceof SVGAnimatedString?n.className.baseVal:n.className}function ut(n,t){n.setAttribute("class",t)}function u(n,t,i){i.forEach(function(i){t.indexOf(i)===-1&&w(n,i)&&s(n,i)});t.forEach(function(t){w(n,t)||e(n,t)})}function tt(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function yt(n,t){var i=arguments.length<=2||arguments[2]===undefined?1:arguments[2];return n+i>=t&&t>=n-i}function g(){return typeof performance!="undefined"&&typeof performance.now!="undefined"?performance.now():+new Date}function st(){for(var t={top:0,left:0},i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];return r.forEach(function(n){var i=n.top,r=n.left;typeof i=="string"&&(i=parseFloat(i,10));typeof r=="string"&&(r=parseFloat(r,10));t.top+=i;t.left+=r}),t}function v(n,t){return typeof n.left=="string"&&n.left.indexOf("%")!==-1&&(n.left=parseFloat(n.left,10)/100*t.width),typeof n.top=="string"&&n.top.indexOf("%")!==-1&&(n.top=parseFloat(n.top,10)/100*t.height),n}function dt(n,t){return t==="scrollParent"?t=n.scrollParents[0]:t==="window"&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),typeof t.nodeType!="undefined"&&function(){var r=i(t),n=r,u=getComputedStyle(t);t=[n.left,n.top,r.width+n.left,r.height+n.top];kt.forEach(function(n,i){n=n[0].toUpperCase()+n.substr(1);n==="Top"||n==="Left"?t[i]+=parseFloat(u["border"+n+"Width"]):t[i]-=parseFloat(u["border"+n+"Width"])})}(),t}var y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),t=undefined,lt,h;typeof t=="undefined"&&(t={modules:[]});var rt=function(){var n=0;return function(){return++n}}(),o={},at=function(n){var t=n._tetherZeroElement,i,u,e;if(typeof t=="undefined"&&(t=n.createElement("div"),t.setAttribute("data-tether-id",rt()),r(t.style,{top:0,left:0,position:"absolute"}),n.body.appendChild(t),n._tetherZeroElement=t),i=t.getAttribute("data-tether-id"),typeof o[i]=="undefined"){o[i]={};u=t.getBoundingClientRect();for(e in u)o[i][e]=u[e];f(function(){delete o[i]})}return o[i]};var ft=[],f=function(n){ft.push(n)},k=function(){for(var n=undefined;n=ft.pop();)n()},vt=function(){function n(){tt(this,n)}return y(n,[{key:"on",value:function(n,t,i){var r=arguments.length<=3||arguments[3]===undefined?!1:arguments[3];typeof this.bindings=="undefined"&&(this.bindings={});typeof this.bindings[n]=="undefined"&&(this.bindings[n]=[]);this.bindings[n].push({handler:t,ctx:i,once:r})}},{key:"once",value:function(n,t,i){this.on(n,t,i,!0)}},{key:"off",value:function(n,t){if(typeof this.bindings=="undefined"||typeof this.bindings[n]=="undefined")if(typeof t=="undefined")delete this.bindings[n];else for(var i=0;i<this.bindings[n].length;)this.bindings[n][i].handler===t?this.bindings[n].splice(i,1):++i}},{key:"trigger",value:function(n){var t;if(typeof this.bindings!="undefined"&&this.bindings[n]){t=0;for(var r=arguments.length,e=Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];while(t<this.bindings[n].length){var u=this.bindings[n][t],o=u.handler,s=u.ctx,h=u.once,f=s;typeof f=="undefined"&&(f=this);o.apply(f,e);h?this.bindings[n].splice(t,1):++t}}}}]),n}();if(t.Utils={getScrollParents:it,getBounds:i,getOffsetParent:c,extend:r,addClass:e,removeClass:s,hasClass:w,updateClasses:u,defer:f,flush:k,uniqueId:rt,Evented:vt,getScrollBarSize:p},h=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),typeof t=="undefined")throw new Error("You must include the utils.js file before tether.js");var n=t.Utils,it=n.getScrollParents,i=n.getBounds,c=n.getOffsetParent,r=n.extend,e=n.addClass,s=n.removeClass,u=n.updateClasses,f=n.defer,k=n.flush,p=n.getScrollBarSize;var d=function(){var r,t,n,i;if(typeof document=="undefined")return"";for(r=document.createElement("div"),t=["transform","webkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n)if(i=t[n],r.style[i]!==undefined)return i}(),l=[],et=function(){l.forEach(function(n){n.position(!1)});k()};(function(){var t=null,n=null,i=null,r=function r(){if(typeof n!="undefined"&&n>16){n=Math.min(n-16,250);i=setTimeout(r,250);return}typeof t!="undefined"&&g()-t<10||(typeof i!="undefined"&&(clearTimeout(i),i=null),t=g(),et(),n=g()-t)};typeof window!="undefined"&&typeof addEventListener!="undefined"&&["resize","scroll","touchmove"].forEach(function(n){window.addEventListener(n,r)})})();var pt={center:"center",left:"right",right:"left"},wt={middle:"middle",top:"bottom",bottom:"top"},a={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},bt=function(n,t){var i=n.left,r=n.top;return i==="auto"&&(i=pt[t.left]),r==="auto"&&(r=wt[t.top]),{left:i,top:r}},ot=function(n){var t=n.left,i=n.top;return typeof a[n.left]!="undefined"&&(t=a[n.left]),typeof a[n.top]!="undefined"&&(i=a[n.top]),{left:t,top:i}};var nt=function(n){var i=n.split(" "),t=h(i,2),r=t[0],u=t[1];return{top:r,left:u}},ht=nt,ct=function(){function n(i){var r=this;tt(this,n);this.position=this.position.bind(this);l.push(this);this.history=[];this.setOptions(i,!1);t.modules.forEach(function(n){typeof n.initialize!="undefined"&&n.initialize.call(r)});this.position()}return y(n,[{key:"getClass",value:function(){var n=arguments.length<=0||arguments[0]===undefined?"":arguments[0],t=this.options.classes;return typeof t!="undefined"&&t[n]?this.options.classes[n]:this.options.classPrefix?this.options.classPrefix+"-"+n:n}},{key:"setOptions",value:function(n){var t=this,u=arguments.length<=1||arguments[1]===undefined?!0:arguments[1];this.options=r({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},n);var i=this.options,f=i.element,o=i.target,s=i.targetModifier;if(this.element=f,this.target=o,this.targetModifier=s,this.target==="viewport"?(this.target=document.body,this.targetModifier="visible"):this.target==="scroll-handle"&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(n){if(typeof t[n]=="undefined")throw new Error("Tether Error: Both element and target must be defined");typeof t[n].jquery!="undefined"?t[n]=t[n][0]:typeof t[n]=="string"&&(t[n]=document.querySelector(t[n]))}),e(this.element,this.getClass("element")),this.options.addTargetClasses===!1||e(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=ht(this.options.targetAttachment);this.attachment=ht(this.options.attachment);this.offset=nt(this.options.offset);this.targetOffset=nt(this.options.targetOffset);typeof this.scrollParents!="undefined"&&this.disable();this.scrollParents=this.targetModifier==="scroll-handle"?[this.target]:it(this.target);this.options.enabled===!1||this.enable(u)}},{key:"getTargetBounds",value:function(){var n,t,r,s;if(typeof this.targetModifier!="undefined"){if(this.targetModifier==="visible")return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:(t=i(this.target),n={height:t.height,width:t.width,top:t.top,left:t.left},n.height=Math.min(n.height,t.height-(pageYOffset-t.top)),n.height=Math.min(n.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),n.height=Math.min(innerHeight,n.height),n.height-=2,n.width=Math.min(n.width,t.width-(pageXOffset-t.left)),n.width=Math.min(n.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),n.width=Math.min(innerWidth,n.width),n.width-=2,n.top<pageYOffset&&(n.top=pageYOffset),n.left<pageXOffset&&(n.left=pageXOffset),n);if(this.targetModifier==="scroll-handle"){t=undefined;r=this.target;r===document.body?(r=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=i(r);var f=getComputedStyle(r),h=r.scrollWidth>r.clientWidth||[f.overflow,f.overflowX].indexOf("scroll")>=0||this.target!==document.body,e=0;h&&(e=15);var u=t.height-parseFloat(f.borderTopWidth)-parseFloat(f.borderBottomWidth)-e,n={width:15,height:u*.975*(u/r.scrollHeight),left:t.left+t.width-parseFloat(f.borderLeftWidth)-15},o=0;return u<408&&this.target===document.body&&(o=-.00011*Math.pow(u,2)-.00727*u+22.58),this.target!==document.body&&(n.height=Math.max(n.height,24)),s=this.target.scrollTop/(r.scrollHeight-u),n.top=s*(u-n.height-o)+t.top+parseFloat(f.borderTopWidth),this.target===document.body&&(n.height=Math.max(n.height,24)),n}}else return i(this.target)}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(n,t){return typeof this._cache=="undefined"&&(this._cache={}),typeof this._cache[n]=="undefined"&&(this._cache[n]=t.call(this)),this._cache[n]}},{key:"enable",value:function(){var n=this,t=arguments.length<=0||arguments[0]===undefined?!0:arguments[0];this.options.addTargetClasses===!1||e(this.target,this.getClass("enabled"));e(this.element,this.getClass("enabled"));this.enabled=!0;this.scrollParents.forEach(function(t){t!==document&&t.addEventListener("scroll",n.position)});t&&this.position()}},{key:"disable",value:function(){var n=this;s(this.target,this.getClass("enabled"));s(this.element,this.getClass("enabled"));this.enabled=!1;typeof this.scrollParents!="undefined"&&this.scrollParents.forEach(function(t){t.removeEventListener("scroll",n.position)})}},{key:"destroy",value:function(){var n=this;this.disable();l.forEach(function(t,i){if(t===n){l.splice(i,1);return}})}},{key:"updateAttachClasses",value:function(n,t){var i=this,o,r,e;n=n||this.attachment;t=t||this.targetAttachment;o=["left","top","bottom","right","middle","center"];typeof this._addAttachClasses!="undefined"&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length);typeof this._addAttachClasses=="undefined"&&(this._addAttachClasses=[]);r=this._addAttachClasses;n.top&&r.push(this.getClass("element-attached")+"-"+n.top);n.left&&r.push(this.getClass("element-attached")+"-"+n.left);t.top&&r.push(this.getClass("target-attached")+"-"+t.top);t.left&&r.push(this.getClass("target-attached")+"-"+t.left);e=[];o.forEach(function(n){e.push(i.getClass("element-attached")+"-"+n);e.push(i.getClass("target-attached")+"-"+n)});f(function(){typeof i._addAttachClasses!="undefined"&&(u(i.element,i._addAttachClasses,e),i.options.addTargetClasses===!1||u(i.target,i._addAttachClasses,e),delete i._addAttachClasses)})}},{key:"position",value:function(){var h=this,ut=arguments.length<=0||arguments[0]===undefined?!0:arguments[0],y,g,f,e,b,rt,o,n,s;if(this.enabled){this.clearCache();y=bt(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,y);var d=this.cache("element-bounds",function(){return i(h.element)}),r=d.width,u=d.height;r===0&&u===0&&typeof this.lastSize!="undefined"?(g=this.lastSize,r=g.width,u=g.height):this.lastSize={width:r,height:u};var w=this.cache("target-bounds",function(){return h.getTargetBounds()}),nt=w,l=v(ot(this.attachment),{width:r,height:u}),a=v(ot(y),nt),tt=v(this.offset,{width:r,height:u}),it=v(this.targetOffset,nt);for(l=st(l,tt),a=st(a,it),f=w.left+a.left-l.left,e=w.top+a.top-l.top,b=0;b<t.modules.length;++b){if(rt=t.modules[b],o=rt.position.call(this,{left:f,top:e,targetAttachment:y,targetPos:w,elementPos:d,offset:l,targetOffset:a,manualOffset:tt,manualTargetOffset:it,scrollbarSize:s,attachment:this.attachment}),o===!1)return!1;if(typeof o=="undefined"||typeof o!="object")continue;else e=o.top,f=o.left}return n={page:{top:e,left:f},viewport:{top:e-pageYOffset,bottom:pageYOffset-e-u+innerHeight,left:f-pageXOffset,right:pageXOffset-f-r+innerWidth}},s=undefined,document.body.scrollWidth>window.innerWidth&&(s=this.cache("scrollbar-size",p),n.viewport.bottom-=s.height),document.body.scrollHeight>window.innerHeight&&(s=this.cache("scrollbar-size",p),n.viewport.right-=s.width),(["","static"].indexOf(document.body.style.position)===-1||["","static"].indexOf(document.body.parentElement.style.position)===-1)&&(n.page.bottom=document.body.scrollHeight-e-u,n.page.right=document.body.scrollWidth-f-r),typeof this.options.optimizations=="undefined"||this.options.optimizations.moveElement===!1||typeof this.targetModifier!="undefined"||function(){var u=h.cache("target-offsetparent",function(){return c(h.target)}),t=h.cache("target-offsetparent-bounds",function(){return i(u)}),s=getComputedStyle(u),f=t,r={},e,o;["Top","Left","Bottom","Right"].forEach(function(n){r[n.toLowerCase()]=parseFloat(s["border"+n+"Width"])});t.right=document.body.scrollWidth-t.left-f.width+r.right;t.bottom=document.body.scrollHeight-t.top-f.height+r.bottom;n.page.top>=t.top+r.top&&n.page.bottom>=t.bottom&&n.page.left>=t.left+r.left&&n.page.right>=t.right&&(e=u.scrollTop,o=u.scrollLeft,n.offset={top:n.page.top-t.top+e-r.top,left:n.page.left-t.left+o-r.left})}(),this.move(n),this.history.unshift(n),this.history.length>3&&this.history.pop(),ut&&k(),!0}}},{key:"move",value:function(n){var u=this,t,o,a,h,v,y,s,p,w,e,b,g;if(typeof this.element.parentNode!="undefined"){t={};for(o in n){t[o]={};for(e in n[o]){for(a=!1,h=0;h<this.history.length;++h)if(v=this.history[h],typeof v[o]!="undefined"&&!yt(v[o][e],n[o][e])){a=!0;break}a||(t[o][e]=!0)}}var i={top:"",left:"",right:"",bottom:""},l=function(n,t){var e=typeof u.options.optimizations!="undefined",o=e?u.options.optimizations.gpu:null,r,f;o!==!1?(r=undefined,f=undefined,n.top?(i.top=0,r=t.top):(i.bottom=0,r=-t.bottom),n.left?(i.left=0,f=t.left):(i.right=0,f=-t.right),i[d]="translateX("+Math.round(f)+"px) translateY("+Math.round(r)+"px)",d!=="msTransform"&&(i[d]+=" translateZ(0)")):(n.top?i.top=t.top+"px":i.bottom=t.bottom+"px",n.left?i.left=t.left+"px":i.right=t.right+"px")},k=!1;if((t.page.top||t.page.bottom)&&(t.page.left||t.page.right)?(i.position="absolute",l(t.page,n.page)):(t.viewport.top||t.viewport.bottom)&&(t.viewport.left||t.viewport.right)?(i.position="fixed",l(t.viewport,n.viewport)):typeof t.offset!="undefined"&&t.offset.top&&t.offset.left?function(){i.position="absolute";var r=u.cache("target-offsetparent",function(){return c(u.target)});c(u.element)!==r&&f(function(){u.element.parentNode.removeChild(u.element);r.appendChild(u.element)});l(t.offset,n.offset);k=!0}():(i.position="absolute",l({top:!0,left:!0},n.page)),!k){for(y=!0,s=this.element.parentNode;s&&s.tagName!=="BODY";){if(getComputedStyle(s).position!=="static"){y=!1;break}s=s.parentNode}y||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element))}p={};w=!1;for(e in i)b=i[e],g=this.element.style[e],g!==b&&(w=!0,p[e]=b);w&&f(function(){r(u.element.style,p)})}}}]),n}();ct.modules=[];t.position=et;lt=r(ct,t);"use strict";var h=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),n=t.Utils,i=n.getBounds,r=n.extend,u=n.updateClasses,f=n.defer,kt=["left","top","right","bottom"];t.modules.push({position:function(n){var a=this,e=n.top,o=n.left,b=n.targetAttachment,k;if(!this.options.constraints)return!0;var d=this.cache("element-bounds",function(){return i(a.element)}),c=d.height,l=d.width;l===0&&c===0&&typeof this.lastSize!="undefined"&&(k=this.lastSize,l=k.width,c=k.height);var g=this.cache("target-bounds",function(){return a.getTargetBounds()}),v=g.height,y=g.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(n){var t=n.outOfBoundsClass,i=n.pinnedClass;t&&p.push(t);i&&p.push(i)});p.forEach(function(n){["left","top","right","bottom"].forEach(function(t){p.push(n+"-"+t)})});var w=[],s=r({},b),t=r({},this.attachment);return this.options.constraints.forEach(function(n){var tt=n.to,d=n.attachment,r=n.pin,f,p,nt,g,i,u,k;typeof d=="undefined"&&(d="");f=undefined;p=undefined;d.indexOf(" ")>=0?(nt=d.split(" "),g=h(nt,2),p=g[0],f=g[1]):f=p=d;i=dt(a,tt);(p==="target"||p==="both")&&(e<i[1]&&s.top==="top"&&(e+=v,s.top="bottom"),e+c>i[3]&&s.top==="bottom"&&(e-=v,s.top="top"));p==="together"&&(s.top==="top"&&(t.top==="bottom"&&e<i[1]?(e+=v,s.top="bottom",e+=c,t.top="top"):t.top==="top"&&e+c>i[3]&&e-(c-v)>=i[1]&&(e-=c-v,s.top="bottom",t.top="bottom")),s.top==="bottom"&&(t.top==="top"&&e+c>i[3]?(e-=v,s.top="top",e-=c,t.top="bottom"):t.top==="bottom"&&e<i[1]&&e+(c*2-v)<=i[3]&&(e+=c-v,s.top="top",t.top="top")),s.top==="middle"&&(e+c>i[3]&&t.top==="top"?(e-=c,t.top="bottom"):e<i[1]&&t.top==="bottom"&&(e+=c,t.top="top")));(f==="target"||f==="both")&&(o<i[0]&&s.left==="left"&&(o+=y,s.left="right"),o+l>i[2]&&s.left==="right"&&(o-=y,s.left="left"));f==="together"&&(o<i[0]&&s.left==="left"?t.left==="right"?(o+=y,s.left="right",o+=l,t.left="left"):t.left==="left"&&(o+=y,s.left="right",o-=l,t.left="right"):o+l>i[2]&&s.left==="right"?t.left==="left"?(o-=y,s.left="left",o-=l,t.left="right"):t.left==="right"&&(o-=y,s.left="left",o+=l,t.left="left"):s.left==="center"&&(o+l>i[2]&&t.left==="left"?(o-=l,t.left="right"):o<i[0]&&t.left==="right"&&(o+=l,t.left="left")));(p==="element"||p==="both")&&(e<i[1]&&t.top==="bottom"&&(e+=c,t.top="top"),e+c>i[3]&&t.top==="top"&&(e-=c,t.top="bottom"));(f==="element"||f==="both")&&(o<i[0]&&(t.left==="right"?(o+=l,t.left="left"):t.left==="center"&&(o+=l/2,t.left="left")),o+l>i[2]&&(t.left==="left"?(o-=l,t.left="right"):t.left==="center"&&(o-=l/2,t.left="right")));typeof r=="string"?r=r.split(",").map(function(n){return n.trim()}):r===!0&&(r=["top","left","right","bottom"]);r=r||[];u=[];k=[];e<i[1]&&(r.indexOf("top")>=0?(e=i[1],u.push("top")):k.push("top"));e+c>i[3]&&(r.indexOf("bottom")>=0?(e=i[3]-c,u.push("bottom")):k.push("bottom"));o<i[0]&&(r.indexOf("left")>=0?(o=i[0],u.push("left")):k.push("left"));o+l>i[2]&&(r.indexOf("right")>=0?(o=i[2]-l,u.push("right")):k.push("right"));u.length&&function(){var n=undefined;n=typeof a.options.pinnedClass!="undefined"?a.options.pinnedClass:a.getClass("pinned");w.push(n);u.forEach(function(t){w.push(n+"-"+t)})}();k.length&&function(){var n=undefined;n=typeof a.options.outOfBoundsClass!="undefined"?a.options.outOfBoundsClass:a.getClass("out-of-bounds");w.push(n);k.forEach(function(t){w.push(n+"-"+t)})}();(u.indexOf("left")>=0||u.indexOf("right")>=0)&&(t.left=s.left=!1);(u.indexOf("top")>=0||u.indexOf("bottom")>=0)&&(t.top=s.top=!1);(s.top!==b.top||s.left!==b.left||t.top!==a.attachment.top||t.left!==a.attachment.left)&&a.updateAttachClasses(t,s)}),f(function(){a.options.addTargetClasses===!1||u(a.target,w,p);u(a.element,w,p)}),{top:e,left:o}}});"use strict";var n=t.Utils,i=n.getBounds,u=n.updateClasses,f=n.defer;return t.modules.push({position:function(n){var t=this,h=n.top,c=n.left,l=this.cache("element-bounds",function(){return i(t.element)}),y=l.height,p=l.width,r=this.getTargetBounds(),a=h+y,v=c+p,e=[];h<=r.bottom&&a>=r.top&&["left","right"].forEach(function(n){var t=r[n];(t===c||t===v)&&e.push(n)});c<=r.right&&v>=r.left&&["top","bottom"].forEach(function(n){var t=r[n];(t===h||t===a)&&e.push(n)});var o=[],s=[];return o.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(n){o.push(t.getClass("abutted")+"-"+n)}),e.length&&s.push(this.getClass("abutted")),e.forEach(function(n){s.push(t.getClass("abutted")+"-"+n)}),f(function(){t.options.addTargetClasses===!1||u(t.target,s,o);u(t.element,s,o)}),!0}}),h=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),t.modules.push({position:function(n){var u=n.top,f=n.left,t,i,r,o,e;if(this.options.shift)return t=this.options.shift,typeof this.options.shift=="function"&&(t=this.options.shift.call(this,{top:u,left:f})),i=undefined,r=undefined,typeof t=="string"?(t=t.split(" "),t[1]=t[1]||t[0],o=t,e=h(o,2),i=e[0],r=e[1],i=parseFloat(i,10),r=parseFloat(r,10)):(i=t.top,r=t.left),u+=i,f+=r,{top:u,left:f}}}),lt});;
/*!
 * Cropper.js v1.6.2
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2024-04-21T07:43:05.335Z
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Cropper=e()}(this,function(){"use strict";function C(e,t){var i,a=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)),a}function S(a){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){var e,i;e=a,i=n[t=t],(t=D(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function D(t){t=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=typeof(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:t+""}function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,D(a.key),a)}}function P(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var i;if(t)return"string"==typeof t?a(t,e):"Map"===(i="Object"===(i=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}var t="undefined"!=typeof window&&void 0!==window.document,h=t?window:{},e=!(!t||!h.document.documentElement)&&"ontouchstart"in h.document.documentElement,i=t&&"PointerEvent"in h,c="cropper",I="all",U="crop",q="move",$="zoom",B="e",k="w",O="s",T="n",E="ne",W="nw",H="se",N="sw",Q="".concat(c,"-crop"),K="".concat(c,"-disabled"),L="".concat(c,"-hidden"),Z="".concat(c,"-hide"),G="".concat(c,"-invisible"),n="".concat(c,"-modal"),V="".concat(c,"-move"),d="".concat(c,"Action"),m="".concat(c,"Preview"),F="crop",J="move",_="none",tt="crop",et="cropend",it="cropmove",at="cropstart",nt="dblclick",ot=i?"pointerdown":e?"touchstart":"mousedown",ht=i?"pointermove":e?"touchmove":"mousemove",rt=i?"pointerup pointercancel":e?"touchend touchcancel":"mouseup",st="zoom",ct="image/jpeg",dt=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,lt=/^data:/,pt=/^data:image\/jpeg;base64,/,mt=/^img|canvas$/i,ut={viewMode:0,dragMode:F,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},gt=Number.isNaN||h.isNaN;function p(t){return"number"==typeof t&&!gt(t)}function ft(t){return 0<t&&t<1/0}function vt(t){return void 0===t}function o(t){return"object"===j(t)&&null!==t}var wt=Object.prototype.hasOwnProperty;function u(t){if(!o(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&wt.call(i,"isPrototypeOf")}catch(t){return!1}}function l(t){return"function"==typeof t}var bt=Array.prototype.slice;function yt(t){return Array.from?Array.from(t):bt.call(t)}function z(i,a){return i&&l(a)&&(Array.isArray(i)||p(i.length)?yt(i).forEach(function(t,e){a.call(i,t,e,i)}):o(i)&&Object.keys(i).forEach(function(t){a.call(i,i[t],t,i)})),i}var g=Object.assign||function(i){for(var t=arguments.length,e=new Array(1<t?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];return o(i)&&0<e.length&&e.forEach(function(e){o(e)&&Object.keys(e).forEach(function(t){i[t]=e[t]})}),i},xt=/\.\d*(?:0|9){12}\d*$/;function Y(t,e){e=1<arguments.length&&void 0!==e?e:1e11;return xt.test(t)?Math.round(t*e)/e:t}var Mt=/^width|height|left|top|marginLeft|marginTop$/;function f(t,e){var i=t.style;z(e,function(t,e){Mt.test(e)&&p(t)&&(t="".concat(t,"px")),i[e]=t})}function v(t,e){var i;e&&(p(t.length)?z(t,function(t){v(t,e)}):t.classList?t.classList.add(e):(i=t.className.trim())?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e)}function X(t,e){e&&(p(t.length)?z(t,function(t){X(t,e)}):t.classList?t.classList.remove(e):0<=t.className.indexOf(e)&&(t.className=t.className.replace(e,"")))}function r(t,e,i){e&&(p(t.length)?z(t,function(t){r(t,e,i)}):(i?v:X)(t,e))}var Ct=/([a-z\d])([A-Z])/g;function Dt(t){return t.replace(Ct,"$1-$2").toLowerCase()}function Bt(t,e){return o(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Dt(e)))}function w(t,e,i){o(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(Dt(e)),i)}var kt,Ot,Tt=/\s\s*/,Et=(Ot=!1,t&&(kt=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return Ot=!0,kt},set:function(t){kt=t}}),h.addEventListener("test",i,e),h.removeEventListener("test",i,e)),Ot);function s(i,t,a,e){var n=3<arguments.length&&void 0!==e?e:{},o=a;t.trim().split(Tt).forEach(function(t){var e;Et||(e=i.listeners)&&e[t]&&e[t][a]&&(o=e[t][a],delete e[t][a],0===Object.keys(e[t]).length&&delete e[t],0===Object.keys(e).length)&&delete i.listeners,i.removeEventListener(t,o,n)})}function b(o,t,h,e){var r=3<arguments.length&&void 0!==e?e:{},s=h;t.trim().split(Tt).forEach(function(a){var t,n;r.once&&!Et&&(t=o.listeners,s=function(){delete n[a][h],o.removeEventListener(a,s,r);for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];h.apply(o,e)},(n=void 0===t?{}:t)[a]||(n[a]={}),n[a][h]&&o.removeEventListener(a,n[a][h],r),n[a][h]=s,o.listeners=n),o.addEventListener(a,s,r)})}function y(t,e,i){var a;return l(Event)&&l(CustomEvent)?a=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(a)}function Wt(t){t=t.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var Ht=h.location,Nt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Lt(t){t=t.match(Nt);return null!==t&&(t[1]!==Ht.protocol||t[2]!==Ht.hostname||t[3]!==Ht.port)}function zt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function x(t){var e=t.rotate,i=t.scaleX,a=t.scaleY,n=t.translateX,t=t.translateY,o=[],n=(p(n)&&0!==n&&o.push("translateX(".concat(n,"px)")),p(t)&&0!==t&&o.push("translateY(".concat(t,"px)")),p(e)&&0!==e&&o.push("rotate(".concat(e,"deg)")),p(i)&&1!==i&&o.push("scaleX(".concat(i,")")),p(a)&&1!==a&&o.push("scaleY(".concat(a,")")),o.length?o.join(" "):"none");return{WebkitTransform:n,msTransform:n,transform:n}}function M(t,e){var i=t.pageX,t=t.pageY,a={endX:i,endY:t};return e?a:S({startX:i,startY:t},a)}function R(t,e){var i,a=t.aspectRatio,n=t.height,t=t.width,e=1<arguments.length&&void 0!==e?e:"contain",o=ft(t),h=ft(n);return o&&h?(i=n*a,"contain"===e&&t<i||"cover"===e&&i<t?n=t/a:t=n*a):o?n=t/a:h&&(t=n*a),{width:t,height:n}}var Yt=String.fromCharCode;var Xt=/^data:.*,/;function Rt(t){var e,i,a,n,o,h,r,s=new DataView(t);try{if(255===s.getUint8(0)&&216===s.getUint8(1))for(var c=s.byteLength,d=2;d+1<c;){if(255===s.getUint8(d)&&225===s.getUint8(d+1)){i=d;break}d+=1}if(a=i&&(n=i+10,"Exif"===function(t,e,i){var a="";i+=e;for(var n=e;n<i;n+=1)a+=Yt(t.getUint8(n));return a}(s,i+4,4))&&((r=18761===(o=s.getUint16(n)))||19789===o)&&42===s.getUint16(n+2,r)&&8<=(h=s.getUint32(n+4,r))?n+h:a)for(var l,p=s.getUint16(a,r),m=0;m<p;m+=1)if(l=a+12*m+2,274===s.getUint16(l,r)){l+=8,e=s.getUint16(l,r),s.setUint16(l,1,r);break}}catch(t){e=1}return e}var t={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,a=this.cropper,n=Number(e.minContainerWidth),e=Number(e.minContainerHeight),n=(v(a,L),X(t,L),{width:Math.max(i.offsetWidth,0<=n?n:200),height:Math.max(i.offsetHeight,0<=e?e:100)});f(a,{width:(this.containerData=n).width,height:n.height}),v(t,L),X(a,L)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,a=Math.abs(e.rotate)%180==90,n=a?e.naturalHeight:e.naturalWidth,a=a?e.naturalWidth:e.naturalHeight,e=n/a,o=t.width,h=t.height,e=(t.height*e>t.width?3===i?o=t.height*e:h=t.width/e:3===i?h=t.width/e:o=t.height*e,{aspectRatio:e,naturalWidth:n,naturalHeight:a,width:o,height:h});this.canvasData=e,this.limited=1===i||2===i,this.limitCanvas(!0,!0),e.width=Math.min(Math.max(e.width,e.minWidth),e.maxWidth),e.height=Math.min(Math.max(e.height,e.minHeight),e.maxHeight),e.left=(t.width-e.width)/2,e.top=(t.height-e.height)/2,e.oldLeft=e.left,e.oldTop=e.top,this.initialCanvasData=g({},e)},limitCanvas:function(t,e){var i=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,h=i.viewMode,r=n.aspectRatio,s=this.cropped&&o;t&&(t=Number(i.minCanvasWidth)||0,i=Number(i.minCanvasHeight)||0,1<h?(t=Math.max(t,a.width),i=Math.max(i,a.height),3===h&&(t<i*r?t=i*r:i=t/r)):0<h&&(t?t=Math.max(t,s?o.width:0):i?i=Math.max(i,s?o.height:0):s&&((t=o.width)<(i=o.height)*r?t=i*r:i=t/r)),t=(r=R({aspectRatio:r,width:t,height:i})).width,i=r.height,n.minWidth=t,n.minHeight=i,n.maxWidth=1/0,n.maxHeight=1/0),e&&((s?0:1)<h?(r=a.width-n.width,t=a.height-n.height,n.minLeft=Math.min(0,r),n.minTop=Math.min(0,t),n.maxLeft=Math.max(0,r),n.maxTop=Math.max(0,t),s&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===h)&&(n.width>=a.width&&(n.minLeft=Math.min(0,r),n.maxLeft=Math.max(0,r)),n.height>=a.height)&&(n.minTop=Math.min(0,t),n.maxTop=Math.max(0,t))):(n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height))},renderCanvas:function(t,e){var i,a,n,o,h=this.canvasData,r=this.imageData;e&&(e={width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0},r=e.width,o=e.height,e=e.degree,i=90==(e=Math.abs(e)%180)?{width:o,height:r}:(a=e%90*Math.PI/180,i=Math.sin(a),n=r*(a=Math.cos(a))+o*i,r=r*i+o*a,90<e?{width:r,height:n}:{width:n,height:r}),a=h.width*((o=i.width)/h.naturalWidth),n=h.height*((e=i.height)/h.naturalHeight),h.left-=(a-h.width)/2,h.top-=(n-h.height)/2,h.width=a,h.height=n,h.aspectRatio=o/e,h.naturalWidth=o,h.naturalHeight=e,this.limitCanvas(!0,!1)),(h.width>h.maxWidth||h.width<h.minWidth)&&(h.left=h.oldLeft),(h.height>h.maxHeight||h.height<h.minHeight)&&(h.top=h.oldTop),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),this.limitCanvas(!1,!0),h.left=Math.min(Math.max(h.left,h.minLeft),h.maxLeft),h.top=Math.min(Math.max(h.top,h.minTop),h.maxTop),h.oldLeft=h.left,h.oldTop=h.top,f(this.canvas,g({width:h.width,height:h.height},x({translateX:h.left,translateY:h.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,a=i.naturalWidth*(e.width/e.naturalWidth),n=i.naturalHeight*(e.height/e.naturalHeight);g(i,{width:a,height:n,left:(e.width-a)/2,top:(e.height-n)/2}),f(this.image,g({width:i.width,height:i.height},x(g({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,t=Number(t.autoCropArea)||.8,a={width:e.width,height:e.height};i&&(e.height*i>e.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*t),a.height=Math.max(a.minHeight,a.height*t),a.left=e.left+(e.width-a.width)/2,a.top=e.top+(e.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=g({},a)},limitCropBox:function(t,e){var i,a,n=this.options,o=this.containerData,h=this.canvasData,r=this.cropBoxData,s=this.limited,c=n.aspectRatio;t&&(t=Number(n.minCropBoxWidth)||0,n=Number(n.minCropBoxHeight)||0,i=s?Math.min(o.width,h.width,h.width+h.left,o.width-h.left):o.width,a=s?Math.min(o.height,h.height,h.height+h.top,o.height-h.top):o.height,t=Math.min(t,o.width),n=Math.min(n,o.height),c&&(t&&n?t<n*c?n=t/c:t=n*c:t?n=t/c:n&&(t=n*c),i<a*c?a=i/c:i=a*c),r.minWidth=Math.min(t,i),r.minHeight=Math.min(n,a),r.maxWidth=i,r.maxHeight=a),e&&(s?(r.minLeft=Math.max(0,h.left),r.minTop=Math.max(0,h.top),r.maxLeft=Math.min(o.width,h.left+h.width)-r.width,r.maxTop=Math.min(o.height,h.top+h.height)-r.height):(r.minLeft=0,r.minTop=0,r.maxLeft=o.width-r.width,r.maxTop=o.height-r.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&w(this.face,d,i.width>=e.width&&i.height>=e.height?q:I),f(this.cropBox,g({width:i.width,height:i.height},x({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),y(this.element,tt,this.getData())}},i={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,a=i?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");i&&(o.crossOrigin=i),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,e&&("string"==typeof(o=e)?o=t.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),z(this.previews=o,function(t){var e=document.createElement("img");w(t,m,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),i&&(e.crossOrigin=i),e.src=a,e.alt=n,e.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(e)}))},resetPreview:function(){z(this.previews,function(e){var i=Bt(e,m),i=(f(e,{width:i.width,height:i.height}),e.innerHTML=i.html,e),e=m;if(o(i[e]))try{delete i[e]}catch(t){i[e]=void 0}else if(i.dataset)try{delete i.dataset[e]}catch(t){i.dataset[e]=void 0}else i.removeAttribute("data-".concat(Dt(e)))})},preview:function(){var h=this.imageData,t=this.canvasData,e=this.cropBoxData,r=e.width,s=e.height,c=h.width,d=h.height,l=e.left-t.left-h.left,p=e.top-t.top-h.top;this.cropped&&!this.disabled&&(f(this.viewBoxImage,g({width:c,height:d},x(g({translateX:-l,translateY:-p},h)))),z(this.previews,function(t){var e=Bt(t,m),i=e.width,e=e.height,a=i,n=e,o=1;r&&(n=s*(o=i/r)),s&&e<n&&(a=r*(o=e/s),n=e),f(t,{width:a,height:n}),f(t.getElementsByTagName("img")[0],g({width:c*o,height:d*o},x(g({translateX:-l*o,translateY:-p*o},h))))}))}},e={bind:function(){var t=this.element,e=this.options,i=this.cropper;l(e.cropstart)&&b(t,at,e.cropstart),l(e.cropmove)&&b(t,it,e.cropmove),l(e.cropend)&&b(t,et,e.cropend),l(e.crop)&&b(t,tt,e.crop),l(e.zoom)&&b(t,st,e.zoom),b(i,ot,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&b(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&b(i,nt,this.onDblclick=this.dblclick.bind(this)),b(t.ownerDocument,ht,this.onCropMove=this.cropMove.bind(this)),b(t.ownerDocument,rt,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&b(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;l(e.cropstart)&&s(t,at,e.cropstart),l(e.cropmove)&&s(t,it,e.cropmove),l(e.cropend)&&s(t,et,e.cropend),l(e.crop)&&s(t,tt,e.crop),l(e.zoom)&&s(t,st,e.zoom),s(i,ot,this.onCropStart),e.zoomable&&e.zoomOnWheel&&s(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&s(i,nt,this.onDblclick),s(t.ownerDocument,ht,this.onCropMove),s(t.ownerDocument,rt,this.onCropEnd),e.responsive&&s(window,"resize",this.onResize)}},St={resize:function(){var t,e,i,a,n,o,h;this.disabled||(t=this.options,a=this.container,e=this.containerData,i=a.offsetWidth/e.width,a=a.offsetHeight/e.height,1!=(n=Math.abs(i-1)>Math.abs(a-1)?i:a)&&(t.restore&&(o=this.getCanvasData(),h=this.getCropBoxData()),this.render(),t.restore)&&(this.setCanvasData(z(o,function(t,e){o[e]=t*n})),this.setCropBoxData(z(h,function(t,e){h[e]=t*n}))))},dblclick:function(){var t,e;this.disabled||this.options.dragMode===_||this.setDragMode((t=this.dragBox,e=Q,(t.classList?t.classList.contains(e):-1<t.className.indexOf(e))?J:F))},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),this.wheeling)||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?a=0<t.deltaY?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=0<t.detail?1:-1),this.zoom(-a*i,t))},cropStart:function(t){var e,i=t.buttons,a=t.button;this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(p(i)&&1!==i||p(a)&&0!==a||t.ctrlKey)||(i=this.options,e=this.pointers,t.changedTouches?z(t.changedTouches,function(t){e[t.identifier]=M(t)}):e[t.pointerId||0]=M(t),a=1<Object.keys(e).length&&i.zoomable&&i.zoomOnTouch?$:Bt(t.target,d),dt.test(a)&&!1!==y(this.element,at,{originalEvent:t,action:a})&&(t.preventDefault(),this.action=a,this.cropping=!1,a===U)&&(this.cropping=!0,v(this.dragBox,n)))},cropMove:function(t){var e,i=this.action;!this.disabled&&i&&(e=this.pointers,t.preventDefault(),!1!==y(this.element,it,{originalEvent:t,action:i}))&&(t.changedTouches?z(t.changedTouches,function(t){g(e[t.identifier]||{},M(t,!0))}):g(e[t.pointerId||0]||{},M(t,!0)),this.change(t))},cropEnd:function(t){var e,i;this.disabled||(e=this.action,i=this.pointers,t.changedTouches?z(t.changedTouches,function(t){delete i[t.identifier]}):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,r(this.dragBox,n,this.cropped&&this.options.modal)),y(this.element,et,{originalEvent:t,action:e})))}},jt={change:function(t){function e(t){switch(t){case B:f+D.x>y&&(D.x=y-f);break;case k:p+D.x<w&&(D.x=w-p);break;case T:m+D.y<b&&(D.y=b-m);break;case O:v+D.y>x&&(D.y=x-v)}}var i,a,o,n=this.options,h=this.canvasData,r=this.containerData,s=this.cropBoxData,c=this.pointers,d=this.action,l=n.aspectRatio,p=s.left,m=s.top,u=s.width,g=s.height,f=p+u,v=m+g,w=0,b=0,y=r.width,x=r.height,M=!0,C=(!l&&t.shiftKey&&(l=u&&g?u/g:1),this.limited&&(w=s.minLeft,b=s.minTop,y=w+Math.min(r.width,h.width,h.left+h.width),x=b+Math.min(r.height,h.height,h.top+h.height)),c[Object.keys(c)[0]]),D={x:C.endX-C.startX,y:C.endY-C.startY};switch(d){case I:p+=D.x,m+=D.y;break;case B:0<=D.x&&(y<=f||l&&(m<=b||x<=v))?M=!1:(e(B),(u+=D.x)<0&&(d=k,p-=u=-u),l&&(m+=(s.height-(g=u/l))/2));break;case T:D.y<=0&&(m<=b||l&&(p<=w||y<=f))?M=!1:(e(T),g-=D.y,m+=D.y,g<0&&(d=O,m-=g=-g),l&&(p+=(s.width-(u=g*l))/2));break;case k:D.x<=0&&(p<=w||l&&(m<=b||x<=v))?M=!1:(e(k),u-=D.x,p+=D.x,u<0&&(d=B,p-=u=-u),l&&(m+=(s.height-(g=u/l))/2));break;case O:0<=D.y&&(x<=v||l&&(p<=w||y<=f))?M=!1:(e(O),(g+=D.y)<0&&(d=T,m-=g=-g),l&&(p+=(s.width-(u=g*l))/2));break;case E:if(l){if(D.y<=0&&(m<=b||y<=f)){M=!1;break}e(T),g-=D.y,m+=D.y,u=g*l}else e(T),e(B),!(0<=D.x)||f<y?u+=D.x:D.y<=0&&m<=b&&(M=!1),(!(D.y<=0)||b<m)&&(g-=D.y,m+=D.y);u<0&&g<0?(d=N,m-=g=-g,p-=u=-u):u<0?(d=W,p-=u=-u):g<0&&(d=H,m-=g=-g);break;case W:if(l){if(D.y<=0&&(m<=b||p<=w)){M=!1;break}e(T),g-=D.y,m+=D.y,p+=s.width-(u=g*l)}else e(T),e(k),!(D.x<=0)||w<p?(u-=D.x,p+=D.x):D.y<=0&&m<=b&&(M=!1),(!(D.y<=0)||b<m)&&(g-=D.y,m+=D.y);u<0&&g<0?(d=H,m-=g=-g,p-=u=-u):u<0?(d=E,p-=u=-u):g<0&&(d=N,m-=g=-g);break;case N:if(l){if(D.x<=0&&(p<=w||x<=v)){M=!1;break}e(k),u-=D.x,p+=D.x,g=u/l}else e(O),e(k),!(D.x<=0)||w<p?(u-=D.x,p+=D.x):0<=D.y&&x<=v&&(M=!1),(!(0<=D.y)||v<x)&&(g+=D.y);u<0&&g<0?(d=E,m-=g=-g,p-=u=-u):u<0?(d=H,p-=u=-u):g<0&&(d=W,m-=g=-g);break;case H:if(l){if(0<=D.x&&(y<=f||x<=v)){M=!1;break}e(B),g=(u+=D.x)/l}else e(O),e(B),!(0<=D.x)||f<y?u+=D.x:0<=D.y&&x<=v&&(M=!1),(!(0<=D.y)||v<x)&&(g+=D.y);u<0&&g<0?(d=W,m-=g=-g,p-=u=-u):u<0?(d=N,p-=u=-u):g<0&&(d=E,m-=g=-g);break;case q:this.move(D.x,D.y),M=!1;break;case $:this.zoom((a=S({},i=c),o=0,z(i,function(n,t){delete a[t],z(a,function(t){var e=Math.abs(n.startX-t.startX),i=Math.abs(n.startY-t.startY),a=Math.abs(n.endX-t.endX),t=Math.abs(n.endY-t.endY),e=Math.sqrt(e*e+i*i),i=(Math.sqrt(a*a+t*t)-e)/e;Math.abs(i)>Math.abs(o)&&(o=i)})}),o),t),M=!1;break;case U:D.x&&D.y?(i=Wt(this.cropper),p=C.startX-i.left,m=C.startY-i.top,u=s.minWidth,g=s.minHeight,0<D.x?d=0<D.y?H:E:D.x<0&&(p-=u,d=0<D.y?N:W),D.y<0&&(m-=g),this.cropped||(X(this.cropBox,L),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))):M=!1}M&&(s.width=u,s.height=g,s.left=p,s.top=m,this.action=d,this.renderCropBox()),z(c,function(t){t.startX=t.endX,t.startY=t.endY})}},At={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&v(this.dragBox,n),X(this.cropBox,L),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=g({},this.initialImageData),this.canvasData=g({},this.initialCanvasData),this.cropBoxData=g({},this.initialCropBoxData),this.renderCanvas(),this.cropped)&&this.renderCropBox(),this},clear:function(){return this.cropped&&!this.disabled&&(g(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),X(this.dragBox,n),v(this.cropBox,L)),this},replace:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,z(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,X(this.cropper,K)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,v(this.cropper,K)),this},destroy:function(){var t=this.element;return t[c]&&(t[c]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=i.left,i=i.top;return this.moveTo(vt(t)?t:a+Number(t),vt(e)?e:i+Number(e))},moveTo:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(p(t)&&(i.left=t,a=!0),p(e)&&(i.top=e,a=!0),a)&&this.renderCanvas(!0),this},zoom:function(t,e){var i=this.canvasData;return t=Number(t),this.zoomTo(i.width*(t=t<0?1/(1-t):1+t)/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var a,n,o,h=this.options,r=this.canvasData,s=r.width,c=r.height,d=r.naturalWidth,l=r.naturalHeight;if(0<=(t=Number(t))&&this.ready&&!this.disabled&&h.zoomable){h=d*t,l=l*t;if(!1===y(this.element,st,{ratio:t,oldRatio:s/d,originalEvent:i}))return this;i?(t=this.pointers,d=Wt(this.cropper),t=t&&Object.keys(t).length?(o=n=a=0,z(t,function(t){var e=t.startX,t=t.startY;a+=e,n+=t,o+=1}),{pageX:a/=o,pageY:n/=o}):{pageX:i.pageX,pageY:i.pageY},r.left-=(h-s)*((t.pageX-d.left-r.left)/s),r.top-=(l-c)*((t.pageY-d.top-r.top)/c)):u(e)&&p(e.x)&&p(e.y)?(r.left-=(h-s)*((e.x-r.left)/s),r.top-=(l-c)*((e.y-r.top)/c)):(r.left-=(h-s)/2,r.top-=(l-c)/2),r.width=h,r.height=l,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return p(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,p(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(p(e)?e:1,t)},scale:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,a=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(p(t)&&(i.scaleX=t,a=!0),p(e)&&(i.scaleY=e,a=!0),a)&&this.renderCanvas(!0,!0),this},getData:function(){var i,a,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=this.options,n=this.imageData,o=this.canvasData,h=this.cropBoxData;return this.ready&&this.cropped?(i={x:h.left-o.left,y:h.top-o.top,width:h.width,height:h.height},a=n.width/n.naturalWidth,z(i,function(t,e){i[e]=t/a}),t&&(o=Math.round(i.y+i.height),h=Math.round(i.x+i.width),i.x=Math.round(i.x),i.y=Math.round(i.y),i.width=h-i.x,i.height=o-i.y)):i={x:0,y:0,width:0,height:0},e.rotatable&&(i.rotate=n.rotate||0),e.scalable&&(i.scaleX=n.scaleX||1,i.scaleY=n.scaleY||1),i},setData:function(t){var e,i=this.options,a=this.imageData,n=this.canvasData,o={};return this.ready&&!this.disabled&&u(t)&&(e=!1,i.rotatable&&p(t.rotate)&&t.rotate!==a.rotate&&(a.rotate=t.rotate,e=!0),i.scalable&&(p(t.scaleX)&&t.scaleX!==a.scaleX&&(a.scaleX=t.scaleX,e=!0),p(t.scaleY))&&t.scaleY!==a.scaleY&&(a.scaleY=t.scaleY,e=!0),e&&this.renderCanvas(!0,!0),i=a.width/a.naturalWidth,p(t.x)&&(o.left=t.x*i+n.left),p(t.y)&&(o.top=t.y*i+n.top),p(t.width)&&(o.width=t.width*i),p(t.height)&&(o.height=t.height*i),this.setCropBoxData(o)),this},getContainerData:function(){return this.ready?g({},this.containerData):{}},getImageData:function(){return this.sized?g({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,i={};return this.ready&&z(["left","top","width","height","naturalWidth","naturalHeight"],function(t){i[t]=e[t]}),i},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&u(t)&&(p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.width)?(e.width=t.width,e.height=t.width/i):p(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return(t=this.ready&&this.cropped?{left:e.left,top:e.top,width:e.width,height:e.height}:t)||{}},setCropBoxData:function(t){var e,i,a=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&u(t)&&(p(t.left)&&(a.left=t.left),p(t.top)&&(a.top=t.top),p(t.width)&&t.width!==a.width&&(e=!0,a.width=t.width),p(t.height)&&t.height!==a.height&&(i=!0,a.height=t.height),n&&(e?a.height=a.width/n:i&&(a.width=a.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var t,e,i,a,n,o,h,r,s,c,d,l,p,m,u,g,f,v,w,b,y,x,M,C,D,B,k,O=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.ready&&window.HTMLCanvasElement?(B=this.canvasData,u=this.image,l=this.imageData,a=B,v=O,g=l.aspectRatio,e=l.naturalWidth,n=l.naturalHeight,c=void 0===(c=l.rotate)?0:c,d=void 0===(d=l.scaleX)?1:d,l=void 0===(l=l.scaleY)?1:l,i=a.aspectRatio,r=a.naturalWidth,a=a.naturalHeight,h=void 0===(h=v.fillColor)?"transparent":h,p=void 0===(p=v.imageSmoothingEnabled)||p,m=void 0===(m=v.imageSmoothingQuality)?"low":m,o=void 0===(o=v.maxWidth)?1/0:o,k=void 0===(k=v.maxHeight)?1/0:k,t=void 0===(t=v.minWidth)?0:t,v=void 0===(v=v.minHeight)?0:v,w=document.createElement("canvas"),f=w.getContext("2d"),s=R({aspectRatio:i,width:o,height:k}),i=R({aspectRatio:i,width:t,height:v},"cover"),r=Math.min(s.width,Math.max(i.width,r)),s=Math.min(s.height,Math.max(i.height,a)),i=R({aspectRatio:g,width:o,height:k}),a=R({aspectRatio:g,width:t,height:v},"cover"),o=Math.min(i.width,Math.max(a.width,e)),k=Math.min(i.height,Math.max(a.height,n)),g=[-o/2,-k/2,o,k],w.width=Y(r),w.height=Y(s),f.fillStyle=h,f.fillRect(0,0,r,s),f.save(),f.translate(r/2,s/2),f.rotate(c*Math.PI/180),f.scale(d,l),f.imageSmoothingEnabled=p,f.imageSmoothingQuality=m,f.drawImage.apply(f,[u].concat(P(g.map(function(t){return Math.floor(Y(t))})))),f.restore(),t=w,this.cropped?(e=(v=this.getData(O.rounded)).x,i=v.y,a=v.width,n=v.height,1!=(o=t.width/Math.floor(B.naturalWidth))&&(e*=o,i*=o,a*=o,n*=o),h=R({aspectRatio:k=a/n,width:O.maxWidth||1/0,height:O.maxHeight||1/0}),r=R({aspectRatio:k,width:O.minWidth||0,height:O.minHeight||0},"cover"),c=(s=R({aspectRatio:k,width:O.width||(1!=o?t.width:a),height:O.height||(1!=o?t.height:n)})).width,d=s.height,c=Math.min(h.width,Math.max(r.width,c)),d=Math.min(h.height,Math.max(r.height,d)),p=(l=document.createElement("canvas")).getContext("2d"),l.width=Y(c),l.height=Y(d),p.fillStyle=O.fillColor||"transparent",p.fillRect(0,0,c,d),m=O.imageSmoothingEnabled,u=O.imageSmoothingQuality,p.imageSmoothingEnabled=void 0===m||m,u&&(p.imageSmoothingQuality=u),g=t.width,f=t.height,w=i,(v=e)<=-a||g<v?C=x=b=v=0:v<=0?(x=-v,v=0,C=b=Math.min(g,a+v)):v<=g&&(x=0,C=b=Math.min(a,g-v)),b<=0||w<=-n||f<w?D=M=y=w=0:w<=0?(M=-w,w=0,D=y=Math.min(f,n+w)):w<=f&&(M=0,D=y=Math.min(n,f-w)),B=[v,w,b,y],0<C&&0<D&&B.push(x*(k=c/a),M*k,C*k,D*k),p.drawImage.apply(p,[t].concat(P(B.map(function(t){return Math.floor(Y(t))})))),l):t):null},setAspectRatio:function(t){var e=this.options;return this.disabled||vt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped)&&this.renderCropBox()),this},setDragMode:function(t){var e,i,a=this.options,n=this.dragBox,o=this.face;return this.ready&&!this.disabled&&(i=a.movable&&t===J,a.dragMode=t=(e=t===F)||i?t:_,w(n,d,t),r(n,Q,e),r(n,V,i),a.cropBoxMovable||(w(o,d,t),r(o,Q,e),r(o,V,i))),this}},Pt=h.Cropper,It=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this,a=n;if(!(i instanceof a))throw new TypeError("Cannot call a class as a function");if(!t||!mt.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=g({},ut,u(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return t=n,i=[{key:"noConflict",value:function(){return window.Cropper=Pt,n}},{key:"setDefaults",value:function(t){g(ut,u(t)&&t)}}],(e=[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[c]){if(e[c]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",!(this.originalUrl=t))return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,i,a,n,o,h,r=this;t&&(this.url=t,this.imageData={},e=this.element,(i=this.options).rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer?lt.test(t)?pt.test(t)?this.read((h=(h=t).replace(Xt,""),a=atob(h),h=new ArrayBuffer(a.length),z(n=new Uint8Array(h),function(t,e){n[e]=a.charCodeAt(e)}),h)):this.clone():(o=new XMLHttpRequest,h=this.clone.bind(this),this.reloading=!0,(this.xhr=o).onabort=h,o.onerror=h,o.ontimeout=h,o.onprogress=function(){o.getResponseHeader("content-type")!==ct&&o.abort()},o.onload=function(){r.read(o.response)},o.onloadend=function(){r.reloading=!1,r.xhr=null},i.checkCrossOrigin&&Lt(t)&&e.crossOrigin&&(t=zt(t)),o.open("GET",t,!0),o.responseType="arraybuffer",o.withCredentials="use-credentials"===e.crossOrigin,o.send()):this.clone())}},{key:"read",value:function(t){var e=this.options,i=this.imageData,a=Rt(t),n=0,o=1,h=1;1<a&&(this.url=function(t,e){for(var i=[],a=new Uint8Array(t);0<a.length;)i.push(Yt.apply(null,yt(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,ct),n=(t=function(t){var e=0,i=1,a=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:a=-1;break;case 5:e=90,a=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:a}}(a)).rotate,o=t.scaleX,h=t.scaleY),e.rotatable&&(i.rotate=n),e.scalable&&(i.scaleX=o,i.scaleY=h),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,a=e,n=(this.options.checkCrossOrigin&&Lt(e)&&(i=i||"anonymous",a=zt(e)),this.crossOrigin=i,this.crossOriginUrl=a,document.createElement("img"));i&&(n.crossOrigin=i),n.src=a||e,n.alt=t.alt||"The image to crop",(this.image=n).onload=this.start.bind(this),n.onerror=this.stop.bind(this),v(n,Z),t.parentNode.insertBefore(n,t.nextSibling)}},{key:"start",value:function(){function t(t,e){g(a.imageData,{naturalWidth:t,naturalHeight:e,aspectRatio:t/e}),a.initialImageData=g({},a.imageData),a.sizing=!1,a.sized=!0,a.build()}var e,i,a=this,n=this.image,o=(n.onload=null,n.onerror=null,this.sizing=!0,h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent));n.naturalWidth&&!o?t(n.naturalWidth,n.naturalHeight):(e=document.createElement("img"),i=document.body||document.documentElement,(this.sizingImage=e).onload=function(){t(e.width,e.height),o||i.removeChild(e)},e.src=n.src,o||(e.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(e)))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){var t,e,i,a,n,o,h,r,s;this.sized&&!this.ready&&(t=this.element,e=this.options,i=this.image,a=t.parentNode,(n=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',o=(n=n.querySelector(".".concat(c,"-container"))).querySelector(".".concat(c,"-canvas")),h=n.querySelector(".".concat(c,"-drag-box")),s=(r=n.querySelector(".".concat(c,"-crop-box"))).querySelector(".".concat(c,"-face")),this.container=a,this.cropper=n,this.canvas=o,this.dragBox=h,this.cropBox=r,this.viewBox=n.querySelector(".".concat(c,"-view-box")),this.face=s,o.appendChild(i),v(t,L),a.insertBefore(n,t.nextSibling),X(i,Z),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,v(r,L),e.guides||v(r.getElementsByClassName("".concat(c,"-dashed")),L),e.center||v(r.getElementsByClassName("".concat(c,"-center")),L),e.background&&v(n,"".concat(c,"-bg")),e.highlight||v(s,G),e.cropBoxMovable&&(v(s,V),w(s,d,I)),e.cropBoxResizable||(v(r.getElementsByClassName("".concat(c,"-line")),L),v(r.getElementsByClassName("".concat(c,"-point")),L)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),l(e.ready)&&b(t,"ready",e.ready,{once:!0}),y(t,"ready"))}},{key:"unbuild",value:function(){var t;this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),(t=this.cropper.parentNode)&&t.removeChild(this.cropper),X(this.element,L))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&A(t.prototype,e),i&&A(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}();return g(It.prototype,t,i,e,St,jt,At),It});;
(function(n,t){n===undefined&&window!==undefined&&(n=window);typeof define=="function"&&define.amd?define([],function(){return n.jCaptcha=t()}):typeof module=="object"&&module.exports?module.exports=t():n.jCaptcha=t()})(this,function(){"use strict";var n=function(){this.num1=Math.round(Math.random()*8)+1;this.num2=Math.round(Math.random()*8)+1;this.sumNum=this.num1+this.num2},t=function(n,t,i){i||(this.$captchaEl=document.createElement("canvas"),this.$captchaEl.setAttribute("width",t.canvasStyle.width),this.$captchaEl.setAttribute("height",t.canvasStyle.height),this.$captchaEl.classList.add(t.canvasClass),n.parentNode.insertBefore(this.$captchaEl,n),this.$captchaTextContext=this.$captchaEl.getContext("2d"),this.$captchaTextContext=Object.assign(this.$captchaTextContext,t.canvasStyle));this.$captchaTextContext.clearRect(0,0,t.canvasStyle.width,t.canvasStyle.height);this.$captchaTextContext.fillText("".concat(this.num1," + ").concat(this.num2," ").concat(t.requiredValue),0,0)},i=function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.options=Object.assign({},{element:null,selector:".jCaptcha",canvasClass:"jCaptchaCanvas",requiredValue:"*",resetOnError:!0,focusOnError:!0,clearOnSubmit:!0,callback:null,canvasStyle:{}},n);this.sumNum;this.num1;this.num2;this.numberOfTries=0;this._init()};return i.prototype={_init:function(){this.$el=this.options.element||document.querySelector(this.options.selector);n.call(this);t.call(this,this.$el,this.options)},validate:function(){return this.numberOfTries++,this.callbackReceived=this.callbackReceived||typeof this.options.callback=="function",this.$el.value!=this.sumNum?(this.callbackReceived&&this.options.callback("error",this.$el,this.numberOfTries),this.options.resetOnError===!0&&this.reset(),this.options.focusOnError===!0&&this.$el.focus(),this.options.clearOnSubmit===!0&&(this.$el.value=""),!1):(this.callbackReceived&&this.options.callback("success",this.$el,this.numberOfTries),this.options.clearOnSubmit===!0&&(this.$el.value=""),!0)},reset:function(){n.call(this);t.call(this,this.$el,this.options,!0)}},i});;
(function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(n=typeof globalThis!="undefined"?globalThis:n||self,t(n.ZXing={}))})(this,function(n){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0
    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.
    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
function th(n,t){function i(){this.constructor=n}nh(n,t);n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function ih(n,t){var i=Object.setPrototypeOf;i?i(n,t):n.__proto__=t}function rh(n,t){t===void 0&&(t=n.constructor);var i=Error.captureStackTrace;i&&i(n,t)}function go(n){try{if(n.get(1))return new lf(n);if(!n.get(2))return new ge(n);let t=cf.extractNumericValueFromBitArray(n,1,4);switch(t){case 4:return new oh(n);case 5:return new sh(n)}let i=cf.extractNumericValueFromBitArray(n,1,5);switch(i){case 12:return new gr(n);case 13:return new rr(n)}let r=cf.extractNumericValueFromBitArray(n,1,7);switch(r){case 56:return new dt(n,"310","11");case 57:return new dt(n,"320","11");case 58:return new dt(n,"310","13");case 59:return new dt(n,"320","13");case 60:return new dt(n,"310","15");case 61:return new dt(n,"320","15");case 62:return new dt(n,"310","17");case 63:return new dt(n,"320","17")}}catch(t){console.log(t);throw new yr("unknown decoder: "+n);}}function as(){if(typeof window!="undefined")return window.BigInt||null;if(typeof global!="undefined")return global.BigInt||null;if(typeof self!="undefined")return self.BigInt||null;throw new Error("Can't search globals for BigInt!");}function uu(n){if(typeof oe=="undefined"&&(oe=as()),oe===null)throw new Error("BigInt is not supported!");return oe(n)}function tc(){let n=[];n[0]=uu(1);let t=uu(900);n[1]=t;for(let i=2;i<16;i++)n[i]=n[i-1]*t;return n}function sc(n,t,i){return new ks(n,t,i)}function pf(n,t,i){return new yf(n,t,i)}function lc(n){for(let t of n)li.fill(t,-1);return n[fu][br]=0,n[he][br]=0,n[he][fu]=28,n[ds][br]=0,n[ar][br]=0,n[ar][fu]=15,n}function ac(n){const t=b.getCharCode(" "),o=b.getCharCode("."),s=b.getCharCode(",");n[fu][t]=1;const h=b.getCharCode("Z"),r=b.getCharCode("A");for(let t=r;t<=h;t++)n[fu][t]=t-r+2;n[he][t]=1;const c=b.getCharCode("z"),u=b.getCharCode("a");for(let t=u;t<=c;t++)n[he][t]=t-u+2;n[ar][t]=1;const l=b.getCharCode("9"),f=b.getCharCode("0");for(let t=f;t<=l;t++)n[ar][t]=t-f+2;n[ar][s]=12;n[ar][o]=13;const e=["\x00"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\x0b","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~",""];for(let t=0;t<e.length;t++)n[ds][b.getCharCode(e[t])]=t;const i=["\x00","\r","\x00","\x00","\x00","\x00","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(let t=0;t<i.length;t++)b.getCharCode(i[t])>0&&(n[br][b.getCharCode(i[t])]=t);return n}var nh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},uh=function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return Object.defineProperty(i,"name",{value:r.name,enumerable:!1}),ih(i,r.prototype),rh(i),i}return th(t,n),t}(Error),ae,yt,st,bi,ve,v,ye,ei,yi,si,du,ci,lr,ct,ro,fi;class wi extends uh{constructor(n=undefined){super(n);this.message=n}getKind(){const n=this.constructor;return n.kind}}wi.kind="Exception";class ur extends wi{}ur.kind="ArgumentException";class c extends wi{}c.kind="IllegalArgumentException";class rf{constructor(n){if(this.binarizer=n,n===null)throw new c("Binarizer must be non-null.");}getWidth(){return this.binarizer.getWidth()}getHeight(){return this.binarizer.getHeight()}getBlackRow(n,t){return this.binarizer.getBlackRow(n,t)}getBlackMatrix(){return(this.matrix===null||this.matrix===undefined)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix}isCropSupported(){return this.binarizer.getLuminanceSource().isCropSupported()}crop(n,t,i,r){const u=this.binarizer.getLuminanceSource().crop(n,t,i,r);return new rf(this.binarizer.createBinarizer(u))}isRotateSupported(){return this.binarizer.getLuminanceSource().isRotateSupported()}rotateCounterClockwise(){const n=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new rf(this.binarizer.createBinarizer(n))}rotateCounterClockwise45(){const n=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new rf(this.binarizer.createBinarizer(n))}toString(){try{return this.getBlackMatrix().toString()}catch(n){return""}}}class ri extends wi{static getChecksumInstance(){return new ri}}ri.kind="ChecksumException";class co{constructor(n){this.source=n}getLuminanceSource(){return this.source}getWidth(){return this.source.getWidth()}getHeight(){return this.source.getHeight()}}class lt{static arraycopy(n,t,i,r,u){while(u--)i[r++]=n[t++]}static currentTimeMillis(){return Date.now()}}class wf extends wi{}wf.kind="IndexOutOfBoundsException";class le extends wf{constructor(n=undefined,t=undefined){super(t);this.index=n;this.message=t}}le.kind="ArrayIndexOutOfBoundsException";class li{static fill(n,t){for(let i=0,r=n.length;i<r;i++)n[i]=t}static fillWithin(n,t,i,r){li.rangeCheck(n.length,t,i);for(let u=t;u<i;u++)n[u]=r}static rangeCheck(n,t,i){if(t>i)throw new c("fromIndex("+t+") > toIndex("+i+")");if(t<0)throw new le(t);if(i>n)throw new le(i);}static asList(...n){return n}static create(n,t,i){let r=Array.from({length:n});return r.map(()=>Array.from({length:t}).fill(i))}static createInt32Array(n,t,i){let r=Array.from({length:n});return r.map(()=>Int32Array.from({length:t}).fill(i))}static equals(n,t){if(!n||!t||!n.length||!t.length||n.length!==t.length)return!1;for(let i=0,r=n.length;i<r;i++)if(n[i]!==t[i])return!1;return!0}static hashCode(n){if(n===null)return 0;let t=1;for(const i of n)t=31*t+i;return t}static fillUint8Array(n,t){for(let i=0;i!==n.length;i++)n[i]=t}static copyOf(n,t){return n.slice(0,t)}static copyOfUint8Array(n,t){if(n.length<=t){const i=new Uint8Array(t);return i.set(n),i}return n.slice(0,t)}static copyOfRange(n,t,i){const r=i-t,u=new Int32Array(r);return lt.arraycopy(n,t,u,0,r),u}static binarySearch(n,t,i){undefined===i&&(i=li.numberComparator);let r=0,u=n.length-1;while(r<=u){const f=u+r>>1,e=i(t,n[f]);if(e>0)r=f+1;else if(e<0)u=f-1;else return f}return-r-1}static numberComparator(n,t){return n-t}}class k{static numberOfTrailingZeros(n){let t;if(n===0)return 32;let i=31;return t=n<<16,t!==0&&(i-=16,n=t),t=n<<8,t!==0&&(i-=8,n=t),t=n<<4,t!==0&&(i-=4,n=t),t=n<<2,t!==0&&(i-=2,n=t),i-(n<<1>>>31)}static numberOfLeadingZeros(n){if(n===0)return 32;let t=1;return n>>>16==0&&(t+=16,n<<=16),n>>>24==0&&(t+=8,n<<=8),n>>>28==0&&(t+=4,n<<=4),n>>>30==0&&(t+=2,n<<=2),t-(n>>>31)}static toHexString(n){return n.toString(16)}static toBinaryString(n){return String(parseInt(String(n),2))}static bitCount(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),n=n+(n>>>4)&252645135,n=n+(n>>>8),n=n+(n>>>16),n&63}static truncDivision(n,t){return Math.trunc(n/t)}static parseInt(n,t=undefined){return parseInt(n,t)}}k.MIN_VALUE_32_BITS=-2147483648;k.MAX_VALUE=Number.MAX_SAFE_INTEGER;class kt{constructor(n,t){undefined===n?(this.size=0,this.bits=new Int32Array(1)):(this.size=n,this.bits=undefined===t||null===t?kt.makeArray(n):t)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(n){if(n>this.bits.length*32){const t=kt.makeArray(n);lt.arraycopy(this.bits,0,t,0,this.bits.length);this.bits=t}}get(n){return(this.bits[Math.floor(n/32)]&1<<(n&31))!=0}set(n){this.bits[Math.floor(n/32)]|=1<<(n&31)}flip(n){this.bits[Math.floor(n/32)]^=1<<(n&31)}getNextSet(n){const t=this.size;if(n>=t)return t;const u=this.bits;let i=Math.floor(n/32),r=u[i];r&=~((1<<(n&31))-1);const e=u.length;while(r===0){if(++i===e)return t;r=u[i]}const f=i*32+k.numberOfTrailingZeros(r);return f>t?t:f}getNextUnset(n){const t=this.size;if(n>=t)return t;const u=this.bits;let i=Math.floor(n/32),r=~u[i];r&=~((1<<(n&31))-1);const e=u.length;while(r===0){if(++i===e)return t;r=~u[i]}const f=i*32+k.numberOfTrailingZeros(r);return f>t?t:f}setBulk(n,t){this.bits[Math.floor(n/32)]=t}setRange(n,t){if(t<n||n<0||t>this.size)throw new c;if(t!==n){t--;const i=Math.floor(n/32),r=Math.floor(t/32),u=this.bits;for(let f=i;f<=r;f++){const e=f>i?0:n&31,o=f<r?31:t&31,s=(2<<o)-(1<<e);u[f]|=s}}}clear(){const n=this.bits.length,t=this.bits;for(let i=0;i<n;i++)t[i]=0}isRange(n,t,i){if(t<n||n<0||t>this.size)throw new c;if(t===n)return!0;t--;const r=Math.floor(n/32),u=Math.floor(t/32),f=this.bits;for(let e=r;e<=u;e++){const s=e>r?0:n&31,h=e<u?31:t&31,o=(2<<h)-(1<<s)&4294967295;if((f[e]&o)!==(i?o:0))return!1}return!0}appendBit(n){this.ensureCapacity(this.size+1);n&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31));this.size++}appendBits(n,t){if(t<0||t>32)throw new c("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(let i=t;i>0;i--)this.appendBit((n>>i-1&1)==1)}appendBitArray(n){const t=n.size;this.ensureCapacity(this.size+t);for(let i=0;i<t;i++)this.appendBit(n.get(i))}xor(n){if(this.size!==n.size)throw new c("Sizes don't match");const t=this.bits;for(let i=0,r=t.length;i<r;i++)t[i]^=n.bits[i]}toBytes(n,t,i,r){for(let u=0;u<r;u++){let r=0;for(let t=0;t<8;t++)this.get(n)&&(r|=1<<7-t),n++;t[i+u]=r}}getBitArray(){return this.bits}reverse(){const n=new Int32Array(this.bits.length),i=Math.floor((this.size-1)/32),t=i+1,r=this.bits;for(let u=0;u<t;u++){let t=r[u];t=t>>1&1431655765|(t&1431655765)<<1;t=t>>2&858993459|(t&858993459)<<2;t=t>>4&252645135|(t&252645135)<<4;t=t>>8&16711935|(t&16711935)<<8;t=t>>16&65535|(t&65535)<<16;n[i-u]=t}if(this.size!==t*32){const r=t*32-this.size;let i=n[0]>>>r;for(let u=1;u<t;u++){const t=n[u];i|=t<<32-r;n[u-1]=i;i=t>>>r}n[t-1]=i}this.bits=n}static makeArray(n){return new Int32Array(Math.floor((n+31)/32))}equals(n){if(!(n instanceof kt))return!1;const t=n;return this.size===t.size&&li.equals(this.bits,t.bits)}hashCode(){return 31*this.size+li.hashCode(this.bits)}toString(){let n="";for(let t=0,i=this.size;t<i;t++)(t&7)==0&&(n+=" "),n+=this.get(t)?"X":".";return n}clone(){return new kt(this.size,this.bits.slice())}}(function(n){n[n.OTHER=0]="OTHER";n[n.PURE_BARCODE=1]="PURE_BARCODE";n[n.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS";n[n.TRY_HARDER=3]="TRY_HARDER";n[n.CHARACTER_SET=4]="CHARACTER_SET";n[n.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS";n[n.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT";n[n.ASSUME_GS1=7]="ASSUME_GS1";n[n.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END";n[n.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK";n[n.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(ae||(ae={}));yt=ae;class o extends wi{static getFormatInstance(){return new o}}o.kind="FormatException",function(n){n[n.Cp437=0]="Cp437";n[n.ISO8859_1=1]="ISO8859_1";n[n.ISO8859_2=2]="ISO8859_2";n[n.ISO8859_3=3]="ISO8859_3";n[n.ISO8859_4=4]="ISO8859_4";n[n.ISO8859_5=5]="ISO8859_5";n[n.ISO8859_6=6]="ISO8859_6";n[n.ISO8859_7=7]="ISO8859_7";n[n.ISO8859_8=8]="ISO8859_8";n[n.ISO8859_9=9]="ISO8859_9";n[n.ISO8859_10=10]="ISO8859_10";n[n.ISO8859_11=11]="ISO8859_11";n[n.ISO8859_13=12]="ISO8859_13";n[n.ISO8859_14=13]="ISO8859_14";n[n.ISO8859_15=14]="ISO8859_15";n[n.ISO8859_16=15]="ISO8859_16";n[n.SJIS=16]="SJIS";n[n.Cp1250=17]="Cp1250";n[n.Cp1251=18]="Cp1251";n[n.Cp1252=19]="Cp1252";n[n.Cp1256=20]="Cp1256";n[n.UnicodeBigUnmarked=21]="UnicodeBigUnmarked";n[n.UTF8=22]="UTF8";n[n.ASCII=23]="ASCII";n[n.Big5=24]="Big5";n[n.GB18030=25]="GB18030";n[n.EUC_KR=26]="EUC_KR"}(st||(st={}));class e{constructor(n,t,i,...r){this.valueIdentifier=n;this.name=i;this.values=typeof t=="number"?Int32Array.from([t]):t;this.otherEncodingNames=r;e.VALUE_IDENTIFIER_TO_ECI.set(n,this);e.NAME_TO_ECI.set(i,this);const u=this.values;for(let n=0,t=u.length;n!==t;n++){const t=u[n];e.VALUES_TO_ECI.set(t,this)}for(const n of r)e.NAME_TO_ECI.set(n,this)}getValueIdentifier(){return this.valueIdentifier}getName(){return this.name}getValue(){return this.values[0]}static getCharacterSetECIByValue(n){if(n<0||n>=900)throw new o("incorect value");const t=e.VALUES_TO_ECI.get(n);if(undefined===t)throw new o("incorect value");return t}static getCharacterSetECIByName(n){const t=e.NAME_TO_ECI.get(n);if(undefined===t)throw new o("incorect value");return t}equals(n){if(!(n instanceof e))return!1;const t=n;return this.getName()===t.getName()}}e.VALUE_IDENTIFIER_TO_ECI=new Map;e.VALUES_TO_ECI=new Map;e.NAME_TO_ECI=new Map;e.Cp437=new e(st.Cp437,Int32Array.from([0,2]),"Cp437");e.ISO8859_1=new e(st.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1");e.ISO8859_2=new e(st.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2");e.ISO8859_3=new e(st.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3");e.ISO8859_4=new e(st.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4");e.ISO8859_5=new e(st.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5");e.ISO8859_6=new e(st.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6");e.ISO8859_7=new e(st.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7");e.ISO8859_8=new e(st.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8");e.ISO8859_9=new e(st.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9");e.ISO8859_10=new e(st.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10");e.ISO8859_11=new e(st.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11");e.ISO8859_13=new e(st.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13");e.ISO8859_14=new e(st.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14");e.ISO8859_15=new e(st.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15");e.ISO8859_16=new e(st.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16");e.SJIS=new e(st.SJIS,20,"SJIS","Shift_JIS");e.Cp1250=new e(st.Cp1250,21,"Cp1250","windows-1250");e.Cp1251=new e(st.Cp1251,22,"Cp1251","windows-1251");e.Cp1252=new e(st.Cp1252,23,"Cp1252","windows-1252");e.Cp1256=new e(st.Cp1256,24,"Cp1256","windows-1256");e.UnicodeBigUnmarked=new e(st.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig");e.UTF8=new e(st.UTF8,26,"UTF8","UTF-8");e.ASCII=new e(st.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII");e.Big5=new e(st.Big5,28,"Big5");e.GB18030=new e(st.GB18030,29,"GB18030","GB2312","EUC_CN","GBK");e.EUC_KR=new e(st.EUC_KR,30,"EUC_KR","EUC-KR");class pu extends wi{}pu.kind="UnsupportedOperationException";class fr{static decode(n,t){const i=this.encodingName(t);return this.customDecoder?this.customDecoder(n,i):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(i)?this.decodeFallback(n,i):new TextDecoder(i).decode(n)}static shouldDecodeOnFallback(n){return!fr.isBrowser()&&n==="ISO-8859-1"}static encode(n,t){const i=this.encodingName(t);return this.customEncoder?this.customEncoder(n,i):typeof TextEncoder=="undefined"?this.encodeFallback(n):(new TextEncoder).encode(n)}static isBrowser(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"}static encodingName(n){return typeof n=="string"?n:n.getName()}static encodingCharacterSet(n){return n instanceof e?n:e.getCharacterSetECIByName(n)}static decodeFallback(n,t){const i=this.encodingCharacterSet(t);if(fr.isDecodeFallbackSupported(i)){let t="";for(let i=0,r=n.length;i<r;i++){let r=n[i].toString(16);r.length<2&&(r="0"+r);t+="%"+r}return decodeURIComponent(t)}if(i.equals(e.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(n.buffer));throw new pu(`Encoding ${this.encodingName(t)} not supported by fallback.`);}static isDecodeFallbackSupported(n){return n.equals(e.UTF8)||n.equals(e.ISO8859_1)||n.equals(e.ASCII)}static encodeFallback(n){const r=btoa(unescape(encodeURIComponent(n))),t=r.split(""),i=[];for(let n=0;n<t.length;n++)i.push(t[n].charCodeAt(0));return new Uint8Array(i)}}class b{static castAsNonUtf8Char(n,t=null){const i=t?t.getName():this.ISO88591;return fr.decode(new Uint8Array([n]),i)}static guessEncoding(n,t){if(t!==null&&t!==undefined&&undefined!==t.get(yt.CHARACTER_SET))return t.get(yt.CHARACTER_SET).toString();const l=n.length;let f=!0,i=!0,r=!0,u=0,a=0,v=0,y=0,s=0,p=0,e=0,o=0,h=0,c=0,w=0;const k=n.length>3&&n[0]===239&&n[1]===187&&n[2]===191;for(let t=0;t<l&&(f||i||r);t++){const l=n[t]&255;r&&(u>0?(l&128)==0?r=!1:u--:(l&128)!=0&&((l&64)==0?r=!1:(u++,(l&32)==0?a++:(u++,(l&16)==0?v++:(u++,(l&8)==0?y++:r=!1)))));f&&(l>127&&l<160?f=!1:l>159&&(l<192||l===215||l===247)&&w++);i&&(s>0?l<64||l===127||l>252?i=!1:s--:l===128||l===160||l>239?i=!1:l>160&&l<224?(p++,o=0,e++,e>h&&(h=e)):l>127?(s++,e=0,o++,o>c&&(c=o)):(e=0,o=0))}return(r&&u>0&&(r=!1),i&&s>0&&(i=!1),r&&(k||a+v+y>0))?b.UTF8:i&&(b.ASSUME_SHIFT_JIS||h>=3||c>=3)?b.SHIFT_JIS:f&&i?h===2&&p===2||w*10>=l?b.SHIFT_JIS:b.ISO88591:f?b.ISO88591:i?b.SHIFT_JIS:r?b.UTF8:b.PLATFORM_DEFAULT_ENCODING}static format(n,...t){function r(n,r,u,f,e,o){if(n==="%%")return"%";if(t[++i]===undefined)return undefined;n=f?parseInt(f.substr(1)):undefined;let h=e?parseInt(e.substr(1)):undefined,s;switch(o){case"s":s=t[i];break;case"c":s=t[i][0];break;case"f":s=parseFloat(t[i]).toFixed(n);break;case"p":s=parseFloat(t[i]).toPrecision(n);break;case"e":s=parseFloat(t[i]).toExponential(n);break;case"x":s=parseInt(t[i]).toString(h?h:16);break;case"d":s=parseFloat(parseInt(t[i],h?h:10).toPrecision(n)).toFixed(0)}s=typeof s=="object"?JSON.stringify(s):(+s).toString(h);let l=parseInt(u),c=u&&u[0]+""=="0"?"0":" ";while(s.length<l)s=r!==undefined?s+c:c+s;return s}let i=-1;return n.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,r)}static getBytes(n,t){return fr.encode(n,t)}static getCharCode(n,t=0){return n.charCodeAt(t)}static getCharAt(n){return String.fromCharCode(n)}}b.SHIFT_JIS=e.SJIS.getName();b.GB2312="GB2312";b.ISO88591=e.ISO8859_1.getName();b.EUC_JP="EUC_JP";b.UTF8=e.UTF8.getName();b.PLATFORM_DEFAULT_ENCODING=b.UTF8;b.ASSUME_SHIFT_JIS=!1;class ht{constructor(n=""){this.value=n}enableDecoding(n){return this.encoding=n,this}append(n){return this.value+=typeof n=="string"?n.toString():this.encoding?b.castAsNonUtf8Char(n,this.encoding):String.fromCharCode(n),this}appendChars(n,t,i){for(let r=t;t<t+i;r++)this.append(n[r]);return this}length(){return this.value.length}charAt(n){return this.value.charAt(n)}deleteCharAt(n){this.value=this.value.substr(0,n)+this.value.substring(n+1)}setCharAt(n,t){this.value=this.value.substr(0,n)+t+this.value.substr(n+1)}substring(n,t){return this.value.substring(n,t)}setLengthToZero(){this.value=""}toString(){return this.value}insert(n,t){this.value=this.value.substr(0,n)+t+this.value.substr(n+t.length)}}class ai{constructor(n,t,i,r){if(this.width=n,this.height=t,this.rowSize=i,this.bits=r,(undefined===t||null===t)&&(t=n),this.height=t,n<1||t<1)throw new c("Both dimensions must be greater than 0");(undefined===i||null===i)&&(i=Math.floor((n+31)/32));this.rowSize=i;(undefined===r||null===r)&&(this.bits=new Int32Array(this.rowSize*this.height))}static parseFromBooleanArray(n){const t=n.length,i=n[0].length,r=new ai(i,t);for(let u=0;u<t;u++){const t=n[u];for(let n=0;n<i;n++)t[n]&&r.set(n,u)}return r}static parseFromString(n,t,i){if(n===null)throw new c("stringRepresentation cannot be null");const o=new Array(n.length);let r=0,e=0,f=-1,s=0,u=0;while(u<n.length)if(n.charAt(u)==="\n"||n.charAt(u)==="\r"){if(r>e){if(f===-1)f=r-e;else if(r-e!==f)throw new c("row lengths do not match");e=r;s++}u++}else if(n.substring(u,u+t.length)===t)u+=t.length,o[r]=!0,r++;else if(n.substring(u,u+i.length)===i)u+=i.length,o[r]=!1,r++;else throw new c("illegal character encountered: "+n.substring(u));if(r>e){if(f===-1)f=r-e;else if(r-e!==f)throw new c("row lengths do not match");s++}const h=new ai(f,s);for(let n=0;n<r;n++)o[n]&&h.set(Math.floor(n%f),Math.floor(n/f));return h}get(n,t){const i=t*this.rowSize+Math.floor(n/32);return(this.bits[i]>>>(n&31)&1)!=0}set(n,t){const i=t*this.rowSize+Math.floor(n/32);this.bits[i]|=1<<(n&31)&4294967295}unset(n,t){const i=t*this.rowSize+Math.floor(n/32);this.bits[i]&=~(1<<(n&31)&4294967295)}flip(n,t){const i=t*this.rowSize+Math.floor(n/32);this.bits[i]^=1<<(n&31)&4294967295}xor(n){if(this.width!==n.getWidth()||this.height!==n.getHeight()||this.rowSize!==n.getRowSize())throw new c("input matrix dimensions do not match");const i=new kt(Math.floor(this.width/32)+1),t=this.rowSize,r=this.bits;for(let u=0,f=this.height;u<f;u++){const f=u*t,e=n.getRow(u,i).getBitArray();for(let n=0;n<t;n++)r[f+n]^=e[n]}}clear(){const n=this.bits,t=n.length;for(let i=0;i<t;i++)n[i]=0}setRegion(n,t,i,r){if(t<0||n<0)throw new c("Left and top must be nonnegative");if(r<1||i<1)throw new c("Height and width must be at least 1");const u=n+i,f=t+r;if(f>this.height||u>this.width)throw new c("The region must fit inside the matrix");const e=this.rowSize,o=this.bits;for(let i=t;i<f;i++){const t=i*e;for(let i=n;i<u;i++)o[t+Math.floor(i/32)]|=1<<(i&31)&4294967295}}getRow(n,t){t===null||t===undefined||t.getSize()<this.width?t=new kt(this.width):t.clear();const i=this.rowSize,r=this.bits,u=n*i;for(let n=0;n<i;n++)t.setBulk(n*32,r[u+n]);return t}setRow(n,t){lt.arraycopy(t.getBitArray(),0,this.bits,n*this.rowSize,this.rowSize)}rotate180(){const r=this.getWidth(),i=this.getHeight();let n=new kt(r),t=new kt(r);for(let r=0,u=Math.floor((i+1)/2);r<u;r++)n=this.getRow(r,n),t=this.getRow(i-1-r,t),n.reverse(),t.reverse(),this.setRow(r,t),this.setRow(i-1-r,n)}getEnclosingRectangle(){const e=this.width,u=this.height,f=this.rowSize,o=this.bits;let n=e,t=u,i=-1,r=-1;for(let e=0;e<u;e++)for(let u=0;u<f;u++){const s=o[e*f+u];if(s!==0){if(e<t&&(t=e),e>r&&(r=e),u*32<n){let t=0;while((s<<31-t&4294967295)==0)t++;u*32+t<n&&(n=u*32+t)}if(u*32+31>i){let n=31;while(s>>>n==0)n--;u*32+n>i&&(i=u*32+n)}}}return i<n||r<t?null:Int32Array.from([n,t,i-n+1,r-t+1])}getTopLeftOnBit(){const r=this.rowSize,t=this.bits;let n=0;while(n<t.length&&t[n]===0)n++;if(n===t.length)return null;const f=n/r;let u=n%r*32;const e=t[n];let i=0;while((e<<31-i&4294967295)==0)i++;return u+=i,Int32Array.from([u,f])}getBottomRightOnBit(){const r=this.rowSize,t=this.bits;let n=t.length-1;while(n>=0&&t[n]===0)n--;if(n<0)return null;const f=Math.floor(n/r);let u=Math.floor(n%r)*32;const e=t[n];let i=31;while(e>>>i==0)i--;return u+=i,Int32Array.from([u,f])}getWidth(){return this.width}getHeight(){return this.height}getRowSize(){return this.rowSize}equals(n){if(!(n instanceof ai))return!1;const t=n;return this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&li.equals(this.bits,t.bits)}hashCode(){let n=this.width;return n=31*n+this.width,n=31*n+this.height,n=31*n+this.rowSize,31*n+li.hashCode(this.bits)}toString(n="X ",t="  ",i="\n"){return this.buildToString(n,t,i)}buildToString(n,t,i){let r=new ht;for(let u=0,f=this.height;u<f;u++){for(let i=0,f=this.width;i<f;i++)r.append(this.get(i,u)?n:t);r.append(i)}return r.toString()}clone(){return new ai(this.width,this.height,this.rowSize,this.bits.slice())}}class u extends wi{static getNotFoundInstance(){return new u}}u.kind="NotFoundException";class vi extends co{constructor(n){super(n);this.luminances=vi.EMPTY;this.buckets=new Int32Array(vi.LUMINANCE_BUCKETS)}getBlackRow(n,t){const u=this.getLuminanceSource(),i=u.getWidth();t===undefined||t===null||t.getSize()<i?t=new kt(i):t.clear();this.initArrays(i);const r=u.getRow(n,this.luminances),f=this.buckets;for(let n=0;n<i;n++)f[(r[n]&255)>>vi.LUMINANCE_SHIFT]++;const e=vi.estimateBlackPoint(f);if(i<3)for(let n=0;n<i;n++)(r[n]&255)<e&&t.set(n);else{let u=r[0]&255,n=r[1]&255;for(let f=1;f<i-1;f++){const i=r[f+1]&255;(n*4-u-i)/2<e&&t.set(f);u=n;n=i}}return t}getBlackMatrix(){const t=this.getLuminanceSource(),n=t.getWidth(),i=t.getHeight(),r=new ai(n,i);this.initArrays(n);const u=this.buckets;for(let r=1;r<5;r++){const f=Math.floor(i*r/5),e=t.getRow(f,this.luminances),o=Math.floor(n*4/5);for(let t=Math.floor(n/5);t<o;t++){const n=e[t]&255;u[n>>vi.LUMINANCE_SHIFT]++}}const f=vi.estimateBlackPoint(u),e=t.getMatrix();for(let t=0;t<i;t++){const i=t*n;for(let u=0;u<n;u++){const n=e[i+u]&255;n<f&&r.set(u,t)}}return r}createBinarizer(n){return new vi(n)}initArrays(n){this.luminances.length<n&&(this.luminances=new Uint8ClampedArray(n));const t=this.buckets;for(let n=0;n<vi.LUMINANCE_BUCKETS;n++)t[n]=0}static estimateBlackPoint(n){const r=n.length;let f=0,t=0,e=0;for(let i=0;i<r;i++)n[i]>e&&(t=i,e=n[i]),n[i]>f&&(f=n[i]);let i=0,o=0;for(let u=0;u<r;u++){const r=u-t,f=n[u]*r*r;f>o&&(i=u,o=f)}if(t>i){const n=t;t=i;i=n}if(i-t<=r/16)throw new u;let s=i-1,h=-1;for(let r=i-1;r>t;r--){const u=r-t,e=u*u*(i-r)*(f-n[r]);e>h&&(s=r,h=e)}return s<<vi.LUMINANCE_SHIFT}}vi.LUMINANCE_BITS=5;vi.LUMINANCE_SHIFT=8-vi.LUMINANCE_BITS;vi.LUMINANCE_BUCKETS=1<<vi.LUMINANCE_BITS;vi.EMPTY=Uint8ClampedArray.from([0]);class d extends vi{constructor(n){super(n);this.matrix=null}getBlackMatrix(){if(this.matrix!==null)return this.matrix;const i=this.getLuminanceSource(),n=i.getWidth(),t=i.getHeight();if(n>=d.MINIMUM_DIMENSION&&t>=d.MINIMUM_DIMENSION){const f=i.getMatrix();let r=n>>d.BLOCK_SIZE_POWER;(n&d.BLOCK_SIZE_MASK)!=0&&r++;let u=t>>d.BLOCK_SIZE_POWER;(t&d.BLOCK_SIZE_MASK)!=0&&u++;const o=d.calculateBlackPoints(f,r,u,n,t),e=new ai(n,t);d.calculateThresholdForBlock(f,r,u,n,t,o,e);this.matrix=e}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(n){return new d(n)}static calculateThresholdForBlock(n,t,i,r,u,f,e){const o=u-d.BLOCK_SIZE,s=r-d.BLOCK_SIZE;for(let u=0;u<i;u++){let h=u<<d.BLOCK_SIZE_POWER;h>o&&(h=o);const c=d.cap(u,2,i-3);for(let i=0;i<t;i++){let o=i<<d.BLOCK_SIZE_POWER;o>s&&(o=s);const u=d.cap(i,2,t-3);let l=0;for(let n=-2;n<=2;n++){const t=f[c+n];l+=t[u-2]+t[u-1]+t[u]+t[u+1]+t[u+2]}const a=l/25;d.thresholdBlock(n,o,h,a,r,e)}}}static cap(n,t,i){return n<t?t:n>i?i:n}static thresholdBlock(n,t,i,r,u,f){for(let e=0,o=i*u+t;e<d.BLOCK_SIZE;e++,o+=u)for(let u=0;u<d.BLOCK_SIZE;u++)(n[o+u]&255)<=r&&f.set(t+u,i+e)}static calculateBlackPoints(n,t,i,r,u){const e=u-d.BLOCK_SIZE,o=r-d.BLOCK_SIZE,f=new Array(i);for(let u=0;u<i;u++){f[u]=new Int32Array(t);let i=u<<d.BLOCK_SIZE_POWER;i>e&&(i=e);for(let e=0;e<t;e++){let h=e<<d.BLOCK_SIZE_POWER;h>o&&(h=o);let c=0,t=255,s=0;for(let u=0,f=i*r+h;u<d.BLOCK_SIZE;u++,f+=r){for(let i=0;i<d.BLOCK_SIZE;i++){const r=n[f+i]&255;c+=r;r<t&&(t=r);r>s&&(s=r)}if(s-t>d.MIN_DYNAMIC_RANGE)for(u++,f+=r;u<d.BLOCK_SIZE;u++,f+=r)for(let t=0;t<d.BLOCK_SIZE;t++)c+=n[f+t]&255}let l=c>>d.BLOCK_SIZE_POWER*2;if(s-t<=d.MIN_DYNAMIC_RANGE&&(l=t/2,u>0&&e>0)){const n=(f[u-1][e]+2*f[u][e-1]+f[u-1][e-1])/4;t<n&&(l=n)}f[u][e]=l}}return f}}d.BLOCK_SIZE_POWER=3;d.BLOCK_SIZE=1<<d.BLOCK_SIZE_POWER;d.BLOCK_SIZE_MASK=d.BLOCK_SIZE-1;d.MINIMUM_DIMENSION=d.BLOCK_SIZE*5;d.MIN_DYNAMIC_RANGE=24;class uf{constructor(n,t){this.width=n;this.height=t}getWidth(){return this.width}getHeight(){return this.height}isCropSupported(){return!1}crop(){throw new pu("This luminance source does not support cropping.");}isRotateSupported(){return!1}rotateCounterClockwise(){throw new pu("This luminance source does not support rotation by 90 degrees.");}rotateCounterClockwise45(){throw new pu("This luminance source does not support rotation by 45 degrees.");}toString(){const t=new Uint8ClampedArray(this.width);let n=new ht;for(let i=0;i<this.height;i++){const r=this.getRow(i,t);for(let t=0;t<this.width;t++){const i=r[t]&255;let u;u=i<64?"#":i<128?"+":i<192?".":" ";n.append(u)}n.append("\n")}return n.toString()}}class eu extends uf{constructor(n){super(n.getWidth(),n.getHeight());this.delegate=n}getRow(n,t){const i=this.delegate.getRow(n,t),r=this.getWidth();for(let n=0;n<r;n++)i[n]=255-(i[n]&255);return i}getMatrix(){const i=this.delegate.getMatrix(),n=this.getWidth()*this.getHeight(),t=new Uint8ClampedArray(n);for(let r=0;r<n;r++)t[r]=255-(i[r]&255);return t}isCropSupported(){return this.delegate.isCropSupported()}crop(n,t,i,r){return new eu(this.delegate.crop(n,t,i,r))}isRotateSupported(){return this.delegate.isRotateSupported()}invert(){return this.delegate}rotateCounterClockwise(){return new eu(this.delegate.rotateCounterClockwise())}rotateCounterClockwise45(){return new eu(this.delegate.rotateCounterClockwise45())}}class ou extends uf{constructor(n){super(n.width,n.height);this.canvas=n;this.tempCanvasElement=null;this.buffer=ou.makeBufferFromCanvasImageData(n)}static makeBufferFromCanvasImageData(n){const t=n.getContext("2d").getImageData(0,0,n.width,n.height);return ou.toGrayscaleBuffer(t.data,n.width,n.height)}static toGrayscaleBuffer(n,t,i){const r=new Uint8ClampedArray(t*i);for(let t=0,i=0,u=n.length;t<u;t+=4,i++){let u;const f=n[t+3];if(f===0)u=255;else{const i=n[t],r=n[t+1],f=n[t+2];u=306*i+601*r+117*f+512>>10}r[i]=u}return r}getRow(n,t){if(n<0||n>=this.getHeight())throw new c("Requested row is outside the image: "+n);const i=this.getWidth(),r=n*i;return t===null?t=this.buffer.slice(r,r+i):(t.length<i&&(t=new Uint8ClampedArray(i)),t.set(this.buffer.slice(r,r+i))),t}getMatrix(){return this.buffer}isCropSupported(){return!0}crop(n,t,i,r){return super.crop(n,t,i,r),this}isRotateSupported(){return!0}rotateCounterClockwise(){return this.rotate(-90),this}rotateCounterClockwise45(){return this.rotate(-45),this}getTempCanvasElement(){if(null===this.tempCanvasElement){const n=this.canvas.ownerDocument.createElement("canvas");n.width=this.canvas.width;n.height=this.canvas.height;this.tempCanvasElement=n}return this.tempCanvasElement}rotate(n){const i=this.getTempCanvasElement(),r=i.getContext("2d"),t=n*ou.DEGREE_TO_RADIANS,u=this.canvas.width,f=this.canvas.height,e=Math.ceil(Math.abs(Math.cos(t))*u+Math.abs(Math.sin(t))*f),o=Math.ceil(Math.abs(Math.sin(t))*u+Math.abs(Math.cos(t))*f);return i.width=e,i.height=o,r.translate(e/2,o/2),r.rotate(t),r.drawImage(this.canvas,u/-2,f/-2),this.buffer=ou.makeBufferFromCanvasImageData(i),this}invert(){return new eu(this)}}ou.DEGREE_TO_RADIANS=Math.PI/180;class lo{constructor(n,t,i){this.deviceId=n;this.label=t;this.kind="videoinput";this.groupId=i||undefined}toJSON(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}}}bi=(globalThis||global||self||window||undefined)&&(globalThis||global||self||window||undefined).__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})};class su{constructor(n,t=500,i){this.reader=n;this.timeBetweenScansMillis=t;this._hints=i;this._stopContinuousDecode=!1;this._stopAsyncDecode=!1;this._timeBetweenDecodingAttempts=0}get hasNavigator(){return typeof navigator!="undefined"}get isMediaDevicesSuported(){return this.hasNavigator&&!!navigator.mediaDevices}get canEnumerateDevices(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)}get timeBetweenDecodingAttempts(){return this._timeBetweenDecodingAttempts}set timeBetweenDecodingAttempts(n){this._timeBetweenDecodingAttempts=n<0?0:n}set hints(n){this._hints=n||null}get hints(){return this._hints}listVideoInputDevices(){return bi(this,void 0,void 0,function*(){if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");const t=yield navigator.mediaDevices.enumerateDevices(),n=[];for(const i of t){const t=i.kind==="video"?"videoinput":i.kind;if(t==="videoinput"){const r=i.deviceId||i.id,u=i.label||`Video device ${n.length+1}`,f=i.groupId,e={deviceId:r,label:u,kind:t,groupId:f};n.push(e)}}return n})}getVideoInputDevices(){return bi(this,void 0,void 0,function*(){const n=yield this.listVideoInputDevices();return n.map(n=>new lo(n.deviceId,n.label))})}findDeviceById(n){return bi(this,void 0,void 0,function*(){const t=yield this.listVideoInputDevices();return t?t.find(t=>t.deviceId===n):null})}decodeFromInputVideoDevice(n,t){return bi(this,void 0,void 0,function*(){return yield this.decodeOnceFromVideoDevice(n,t)})}decodeOnceFromVideoDevice(n,t){return bi(this,void 0,void 0,function*(){this.reset();let i;i=n?{deviceId:{exact:n}}:{facingMode:"environment"};const r={video:i};return yield this.decodeOnceFromConstraints(r,t)})}decodeOnceFromConstraints(n,t){return bi(this,void 0,void 0,function*(){const i=yield navigator.mediaDevices.getUserMedia(n);return yield this.decodeOnceFromStream(i,t)})}decodeOnceFromStream(n,t){return bi(this,void 0,void 0,function*(){this.reset();const i=yield this.attachStreamToVideo(n,t);return yield this.decodeOnce(i)})}decodeFromInputVideoDeviceContinuously(n,t,i){return bi(this,void 0,void 0,function*(){return yield this.decodeFromVideoDevice(n,t,i)})}decodeFromVideoDevice(n,t,i){return bi(this,void 0,void 0,function*(){let r;r=n?{deviceId:{exact:n}}:{facingMode:"environment"};const u={video:r};return yield this.decodeFromConstraints(u,t,i)})}decodeFromConstraints(n,t,i){return bi(this,void 0,void 0,function*(){const r=yield navigator.mediaDevices.getUserMedia(n);return yield this.decodeFromStream(r,t,i)})}decodeFromStream(n,t,i){return bi(this,void 0,void 0,function*(){this.reset();const r=yield this.attachStreamToVideo(n,t);return yield this.decodeContinuously(r,i)})}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(n,t){return bi(this,void 0,void 0,function*(){const i=this.prepareVideoElement(t);return this.addVideoSource(i,n),this.videoElement=i,this.stream=n,yield this.playVideoOnLoadAsync(i),i})}playVideoOnLoadAsync(n){return new Promise(t=>this.playVideoOnLoad(n,()=>t()))}playVideoOnLoad(n,t){this.videoEndedListener=()=>this.stopStreams();this.videoCanPlayListener=()=>this.tryPlayVideo(n);n.addEventListener("ended",this.videoEndedListener);n.addEventListener("canplay",this.videoCanPlayListener);n.addEventListener("playing",t);this.tryPlayVideo(n)}isVideoPlaying(n){return n.currentTime>0&&!n.paused&&!n.ended&&n.readyState>2}tryPlayVideo(n){return bi(this,void 0,void 0,function*(){if(this.isVideoPlaying(n)){console.warn("Trying to play video that is already playing.");return}try{yield n.play()}catch(t){console.warn("It was not possible to play the video.")}})}getMediaElement(n,t){const i=document.getElementById(n);if(!i)throw new ur(`element with id '${n}' not found`);if(i.nodeName.toLowerCase()!==t.toLowerCase())throw new ur(`element with id '${n}' must be an ${t} element`);return i}decodeFromImage(n,t){if(!n&&!t)throw new ur("either imageElement with a src set or an url must be provided");return t&&!n?this.decodeFromImageUrl(t):this.decodeFromImageElement(n)}decodeFromVideo(n,t){if(!n&&!t)throw new ur("Either an element with a src set or an URL must be provided");return t&&!n?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(n)}decodeFromVideoContinuously(n,t,i){if(undefined===n&&undefined===t)throw new ur("Either an element with a src set or an URL must be provided");return t&&!n?this.decodeFromVideoUrlContinuously(t,i):this.decodeFromVideoElementContinuously(n,i)}decodeFromImageElement(n){if(!n)throw new ur("An image element must be provided.");this.reset();const t=this.prepareImageElement(n);return this.imageElement=t,this.isImageLoaded(t)?this.decodeOnce(t,!1,!0):this._decodeOnLoadImage(t)}decodeFromVideoElement(n){const t=this._decodeFromVideoElementSetup(n);return this._decodeOnLoadVideo(t)}decodeFromVideoElementContinuously(n,t){const i=this._decodeFromVideoElementSetup(n);return this._decodeOnLoadVideoContinuously(i,t)}_decodeFromVideoElementSetup(n){if(!n)throw new ur("A video element must be provided.");this.reset();const t=this.prepareVideoElement(n);return this.videoElement=t,t}decodeFromImageUrl(n){if(!n)throw new ur("An URL must be provided.");this.reset();const t=this.prepareImageElement();this.imageElement=t;const i=this._decodeOnLoadImage(t);return t.src=n,i}decodeFromVideoUrl(n){if(!n)throw new ur("An URL must be provided.");this.reset();const t=this.prepareVideoElement(),i=this.decodeFromVideoElement(t);return t.src=n,i}decodeFromVideoUrlContinuously(n,t){if(!n)throw new ur("An URL must be provided.");this.reset();const i=this.prepareVideoElement(),r=this.decodeFromVideoElementContinuously(i,t);return i.src=n,r}_decodeOnLoadImage(n){return new Promise((t,i)=>{this.imageLoadedListener=()=>this.decodeOnce(n,!1,!0).then(t,i),n.addEventListener("load",this.imageLoadedListener)})}_decodeOnLoadVideo(n){return bi(this,void 0,void 0,function*(){return yield this.playVideoOnLoadAsync(n),yield this.decodeOnce(n)})}_decodeOnLoadVideoContinuously(n,t){return bi(this,void 0,void 0,function*(){yield this.playVideoOnLoadAsync(n);this.decodeContinuously(n,t)})}isImageLoaded(n){return n.complete?n.naturalWidth===0?!1:!0:!1}prepareImageElement(n){let t;return typeof n=="undefined"&&(t=document.createElement("img"),t.width=200,t.height=200),typeof n=="string"&&(t=this.getMediaElement(n,"img")),n instanceof HTMLImageElement&&(t=n),t}prepareVideoElement(n){let t;return n||typeof document=="undefined"||(t=document.createElement("video"),t.width=200,t.height=200),typeof n=="string"&&(t=this.getMediaElement(n,"video")),n instanceof HTMLVideoElement&&(t=n),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t}decodeOnce(n,t=true,i=true){this._stopAsyncDecode=!1;const r=(f,e)=>{if(this._stopAsyncDecode){e(new u("Video stream has ended before any code could be detected."));this._stopAsyncDecode=undefined;return}try{const t=this.decode(n);f(t)}catch(s){const n=t&&s instanceof u,h=s instanceof ri||s instanceof o,c=h&&i;if(n||c)return setTimeout(r,this._timeBetweenDecodingAttempts,f,e);e(s)}};return new Promise((n,t)=>r(n,t))}decodeContinuously(n,t){this._stopContinuousDecode=!1;const i=()=>{if(this._stopContinuousDecode){this._stopContinuousDecode=undefined;return}try{const r=this.decode(n);t(r,null);setTimeout(i,this.timeBetweenScansMillis)}catch(r){t(null,r);const n=r instanceof ri||r instanceof o,f=r instanceof u;(n||f)&&setTimeout(i,this._timeBetweenDecodingAttempts)}};i()}decode(n){const t=this.createBinaryBitmap(n);return this.decodeBitmap(t)}_isHTMLVideoElement(n){const t=n;return t.videoWidth!==0}createBinaryBitmap(n){const u=this.getCaptureCanvasContext(n);this._isHTMLVideoElement(n)?this.drawFrameOnCanvas(n):this.drawImageOnCanvas(n);const t=this.getCaptureCanvas(n),i=new ou(t),r=new d(i);return new rf(r)}getCaptureCanvasContext(n){if(!this.captureCanvasContext){const t=this.getCaptureCanvas(n),i=t.getContext("2d");this.captureCanvasContext=i}return this.captureCanvasContext}getCaptureCanvas(n){if(!this.captureCanvas){const t=this.createCaptureCanvas(n);this.captureCanvas=t}return this.captureCanvas}drawFrameOnCanvas(n,t={sx:0,sy:0,sWidth:n.videoWidth,sHeight:n.videoHeight,dx:0,dy:0,dWidth:n.videoWidth,dHeight:n.videoHeight},i=this.captureCanvasContext){i.drawImage(n,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)}drawImageOnCanvas(n,t={sx:0,sy:0,sWidth:n.naturalWidth,sHeight:n.naturalHeight,dx:0,dy:0,dWidth:n.naturalWidth,dHeight:n.naturalHeight},i=this.captureCanvasContext){i.drawImage(n,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)}decodeBitmap(n){return this.reader.decode(n,this._hints)}createCaptureCanvas(n){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;const t=document.createElement("canvas");let i,r;return typeof n!="undefined"&&(n instanceof HTMLVideoElement?(i=n.videoWidth,r=n.videoHeight):n instanceof HTMLImageElement&&(i=n.naturalWidth||n.width,r=n.naturalHeight||n.height)),t.style.width=i+"px",t.style.height=r+"px",t.width=i,t.height=r,t}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach(n=>n.stop()),this.stream=undefined);this._stopAsyncDecode===!1&&this.stopAsyncDecode();this._stopContinuousDecode===!1&&this.stopContinuousDecode()}reset(){this.stopStreams();this._destroyVideoElement();this._destroyImageElement();this._destroyCaptureCanvas()}_destroyVideoElement(){this.videoElement&&(typeof this.videoEndedListener!="undefined"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener!="undefined"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener!="undefined"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=undefined)}_destroyImageElement(){this.imageElement&&(undefined!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=undefined,this.imageElement.removeAttribute("src"),this.imageElement=undefined)}_destroyCaptureCanvas(){this.captureCanvasContext=undefined;this.captureCanvas=undefined}addVideoSource(n,t){try{n.srcObject=t}catch(i){n.src=URL.createObjectURL(t)}}cleanVideoSource(n){try{n.srcObject=null}catch(t){n.src=""}this.videoElement.removeAttribute("src")}}class gi{constructor(n,t,i=t==null?0:8*t.length,r,u,f=lt.currentTimeMillis()){this.text=n;this.rawBytes=t;this.numBits=i;this.resultPoints=r;this.format=u;this.timestamp=f;this.text=n;this.rawBytes=t;this.numBits=undefined===i||null===i?t===null||t===undefined?0:8*t.length:i;this.resultPoints=r;this.format=u;this.resultMetadata=null;this.timestamp=undefined===f||null===f?lt.currentTimeMillis():f}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(n,t){this.resultMetadata===null&&(this.resultMetadata=new Map);this.resultMetadata.set(n,t)}putAllMetadata(n){n!==null&&(this.resultMetadata=this.resultMetadata===null?n:new Map(n))}addResultPoints(n){const t=this.resultPoints;if(t===null)this.resultPoints=n;else if(n!==null&&n.length>0){const i=new Array(t.length+n.length);lt.arraycopy(t,0,i,0,t.length);lt.arraycopy(n,0,i,t.length,n.length);this.resultPoints=i}}getTimestamp(){return this.timestamp}toString(){return this.text}}(function(n){n[n.AZTEC=0]="AZTEC";n[n.CODABAR=1]="CODABAR";n[n.CODE_39=2]="CODE_39";n[n.CODE_93=3]="CODE_93";n[n.CODE_128=4]="CODE_128";n[n.DATA_MATRIX=5]="DATA_MATRIX";n[n.EAN_8=6]="EAN_8";n[n.EAN_13=7]="EAN_13";n[n.ITF=8]="ITF";n[n.MAXICODE=9]="MAXICODE";n[n.PDF_417=10]="PDF_417";n[n.QR_CODE=11]="QR_CODE";n[n.RSS_14=12]="RSS_14";n[n.RSS_EXPANDED=13]="RSS_EXPANDED";n[n.UPC_A=14]="UPC_A";n[n.UPC_E=15]="UPC_E";n[n.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(ve||(ve={}));v=ve,function(n){n[n.OTHER=0]="OTHER";n[n.ORIENTATION=1]="ORIENTATION";n[n.BYTE_SEGMENTS=2]="BYTE_SEGMENTS";n[n.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL";n[n.ISSUE_NUMBER=4]="ISSUE_NUMBER";n[n.SUGGESTED_PRICE=5]="SUGGESTED_PRICE";n[n.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY";n[n.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION";n[n.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA";n[n.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE";n[n.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(ye||(ye={}));ei=ye;class ff{constructor(n,t,i,r,u=-1,f=-1){this.rawBytes=n;this.text=t;this.byteSegments=i;this.ecLevel=r;this.structuredAppendSequenceNumber=u;this.structuredAppendParity=f;this.numBits=n===undefined||n===null?0:8*n.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(n){this.numBits=n}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(n){this.errorsCorrected=n}getErasures(){return this.erasures}setErasures(n){this.erasures=n}getOther(){return this.other}setOther(n){this.other=n}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class ef{exp(n){return this.expTable[n]}log(n){if(n===0)throw new c;return this.logTable[n]}static addOrSubtract(n,t){return n^t}}class er{constructor(n,t){if(t.length===0)throw new c;this.field=n;const i=t.length;if(i>1&&t[0]===0){let n=1;while(n<i&&t[n]===0)n++;n===i?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(i-n),lt.arraycopy(t,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return this.coefficients[0]===0}getCoefficient(n){return this.coefficients[this.coefficients.length-1-n]}evaluateAt(n){if(n===0)return this.getCoefficient(0);const i=this.coefficients;let t;if(n===1){t=0;for(let n=0,r=i.length;n!==r;n++){const r=i[n];t=ef.addOrSubtract(t,r)}return t}t=i[0];const r=i.length,u=this.field;for(let f=1;f<r;f++)t=ef.addOrSubtract(u.multiply(n,t),i[f]);return t}addOrSubtract(n){if(!this.field.equals(n.field))throw new c("GenericGFPolys do not have same GenericGF field");if(this.isZero())return n;if(n.isZero())return this;let i=this.coefficients,t=n.coefficients;if(i.length>t.length){const n=i;i=t;t=n}let r=new Int32Array(t.length);const u=t.length-i.length;lt.arraycopy(t,0,r,0,u);for(let n=u;n<t.length;n++)r[n]=ef.addOrSubtract(i[n-u],t[n]);return new er(this.field,r)}multiply(n){if(!this.field.equals(n.field))throw new c("GenericGFPolys do not have same GenericGF field");if(this.isZero()||n.isZero())return this.field.getZero();const i=this.coefficients,r=i.length,u=n.coefficients,f=u.length,t=new Int32Array(r+f-1),e=this.field;for(let n=0;n<r;n++){const r=i[n];for(let i=0;i<f;i++)t[n+i]=ef.addOrSubtract(t[n+i],e.multiply(r,u[i]))}return new er(e,t)}multiplyScalar(n){if(n===0)return this.field.getZero();if(n===1)return this;const t=this.coefficients.length,i=this.field,r=new Int32Array(t),u=this.coefficients;for(let f=0;f<t;f++)r[f]=i.multiply(u[f],n);return new er(i,r)}multiplyByMonomial(n,t){if(n<0)throw new c;if(t===0)return this.field.getZero();const i=this.coefficients,r=i.length,u=new Int32Array(r+n),f=this.field;for(let n=0;n<r;n++)u[n]=f.multiply(i[n],t);return new er(f,u)}divide(n){if(!this.field.equals(n.field))throw new c("GenericGFPolys do not have same GenericGF field");if(n.isZero())throw new c("Divide by 0");const i=this.field;let r=i.getZero(),t=this;const u=n.getCoefficient(n.getDegree()),f=i.inverse(u);while(t.getDegree()>=n.getDegree()&&!t.isZero()){const u=t.getDegree()-n.getDegree(),e=i.multiply(t.getCoefficient(t.getDegree()),f),o=n.multiplyByMonomial(u,e),s=i.buildMonomial(u,e);r=r.addOrSubtract(s);t=t.addOrSubtract(o)}return[r,t]}toString(){let n="";for(let t=this.getDegree();t>=0;t--){let i=this.getCoefficient(t);if(i!==0){if(i<0?(n+=" - ",i=-i):n.length>0&&(n+=" + "),t===0||i!==1){const t=this.field.log(i);t===0?n+="1":t===1?n+="a":(n+="a^",n+=t)}t!==0&&(t===1?n+="x":(n+="x^",n+=t))}}return n}}class bf extends wi{}bf.kind="ArithmeticException";class ut extends ef{constructor(n,t,i){super();this.primitive=n;this.size=t;this.generatorBase=i;const u=new Int32Array(t);let r=1;for(let i=0;i<t;i++)u[i]=r,r*=2,r>=t&&(r^=n,r&=t-1);this.expTable=u;const f=new Int32Array(t);for(let n=0;n<t-1;n++)f[u[n]]=n;this.logTable=f;this.zero=new er(this,Int32Array.from([0]));this.one=new er(this,Int32Array.from([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(n,t){if(n<0)throw new c;if(t===0)return this.zero;const i=new Int32Array(n+1);return i[0]=t,new er(this,i)}inverse(n){if(n===0)throw new bf;return this.expTable[this.size-this.logTable[n]-1]}multiply(n,t){return n===0||t===0?0:this.expTable[(this.logTable[n]+this.logTable[t])%(this.size-1)]}getSize(){return this.size}getGeneratorBase(){return this.generatorBase}toString(){return"GF(0x"+k.toHexString(this.primitive)+","+this.size+")"}equals(n){return n===this}}ut.AZTEC_DATA_12=new ut(4201,4096,1);ut.AZTEC_DATA_10=new ut(1033,1024,1);ut.AZTEC_DATA_6=new ut(67,64,1);ut.AZTEC_PARAM=new ut(19,16,1);ut.QR_CODE_FIELD_256=new ut(285,256,0);ut.DATA_MATRIX_FIELD_256=new ut(301,256,1);ut.AZTEC_DATA_8=ut.DATA_MATRIX_FIELD_256;ut.MAXICODE_FIELD_64=ut.AZTEC_DATA_6;class wu extends wi{}wu.kind="ReedSolomonException";class yr extends wi{}yr.kind="IllegalStateException";class sf{constructor(n){this.field=n}decode(n,t){const i=this.field,o=new er(i,n),r=new Int32Array(t);let f=!0;for(let n=0;n<t;n++){const t=o.evaluateAt(i.exp(n+i.getGeneratorBase()));r[r.length-1-n]=t;t!==0&&(f=!1)}if(!f){const s=new er(i,r),e=this.runEuclideanAlgorithm(i.buildMonomial(t,1),s,t),h=e[0],c=e[1],u=this.findErrorLocations(h),l=this.findErrorMagnitudes(c,u);for(let t=0;t<u.length;t++){const r=n.length-1-i.log(u[t]);if(r<0)throw new wu("Bad error location");n[r]=ut.addOrSubtract(n[r],l[t])}}}runEuclideanAlgorithm(n,t,i){if(n.getDegree()<t.getDegree()){const i=n;n=t;t=i}const f=this.field;let u=n,r=t,o=f.getZero(),e=f.getOne();while(r.getDegree()>=(i/2|0)){let t=u,i=o;if(u=r,o=e,u.isZero())throw new wu("r_{i-1} was zero");r=t;let n=f.getZero();const s=u.getCoefficient(u.getDegree()),h=f.inverse(s);while(r.getDegree()>=u.getDegree()&&!r.isZero()){const t=r.getDegree()-u.getDegree(),i=f.multiply(r.getCoefficient(r.getDegree()),h);n=n.addOrSubtract(f.buildMonomial(t,i));r=r.addOrSubtract(u.multiplyByMonomial(t,i))}if(e=n.multiply(o).addOrSubtract(i),r.getDegree()>=u.getDegree())throw new yr("Division algorithm failed to reduce polynomial?");}const s=e.getCoefficient(0);if(s===0)throw new wu("sigmaTilde(0) was zero");const h=f.inverse(s),c=e.multiplyScalar(h),l=r.multiplyScalar(h);return[c,l]}findErrorLocations(n){const t=n.getDegree();if(t===1)return Int32Array.from([n.getCoefficient(1)]);const r=new Int32Array(t);let i=0;const u=this.field;for(let f=1;f<u.getSize()&&i<t;f++)n.evaluateAt(f)===0&&(r[i]=u.inverse(f),i++);if(i!==t)throw new wu("Error locator degree does not match number of roots");return r}findErrorMagnitudes(n,t){const u=t.length,r=new Int32Array(u),i=this.field;for(let f=0;f<u;f++){const e=i.inverse(t[f]);let o=1;for(let n=0;n<u;n++)if(f!==n){const r=i.multiply(t[n],e),u=(r&1)==0?r|1:r&-2;o=i.multiply(o,u)}r[f]=i.multiply(n.evaluateAt(e),i.inverse(o));i.getGeneratorBase()!==0&&(r[f]=i.multiply(r[f],e))}return r}}(function(n){n[n.UPPER=0]="UPPER";n[n.LOWER=1]="LOWER";n[n.MIXED=2]="MIXED";n[n.DIGIT=3]="DIGIT";n[n.PUNCT=4]="PUNCT";n[n.BINARY=5]="BINARY"})(yi||(yi={}));class pt{decode(n){this.ddata=n;let r=n.getBits(),u=this.extractBits(r),t=this.correctBits(u),f=pt.convertBoolArrayToByteArray(t),e=pt.getEncodedData(t),i=new ff(f,e,null,null);return i.setNumBits(t.length),i}static highLevelDecode(n){return this.getEncodedData(n)}static getEncodedData(n){let r=n.length,u=yi.UPPER,i=yi.UPPER,f="",t=0;while(t<r)if(i===yi.BINARY){if(r-t<5)break;let e=pt.readCode(n,t,5);if(t+=5,e===0){if(r-t<11)break;e=pt.readCode(n,t,11)+31;t+=11}for(let i=0;i<e;i++){if(r-t<8){t=r;break}const i=pt.readCode(n,t,8);f+=b.castAsNonUtf8Char(i);t+=8}i=u}else{let o=i===yi.DIGIT?4:5;if(r-t<o)break;let s=pt.readCode(n,t,o);t+=o;let e=pt.getCharacter(i,s);e.startsWith("CTRL_")?(u=i,i=pt.getTable(e.charAt(5)),e.charAt(6)==="L"&&(u=i)):(f+=e,i=u)}return f}static getTable(n){switch(n){case"L":return yi.LOWER;case"P":return yi.PUNCT;case"M":return yi.MIXED;case"D":return yi.DIGIT;case"B":return yi.BINARY;case"U":default:return yi.UPPER}}static getCharacter(n,t){switch(n){case yi.UPPER:return pt.UPPER_TABLE[t];case yi.LOWER:return pt.LOWER_TABLE[t];case yi.MIXED:return pt.MIXED_TABLE[t];case yi.PUNCT:return pt.PUNCT_TABLE[t];case yi.DIGIT:return pt.DIGIT_TABLE[t];default:throw new yr("Bad table");}}correctBits(n){let i,t;this.ddata.getNbLayers()<=2?(t=6,i=ut.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(t=8,i=ut.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(t=10,i=ut.AZTEC_DATA_10):(t=12,i=ut.AZTEC_DATA_12);let r=this.ddata.getNbDatablocks(),u=n.length/t;if(u<r)throw new o;let c=n.length%t,f=new Int32Array(u);for(let i=0;i<u;i++,c+=t)f[i]=pt.readCode(n,c,t);try{let n=new sf(i);n.decode(f,u-r)}catch(a){throw new o(a);}let s=(1<<t)-1,l=0;for(let n=0;n<r;n++){let t=f[n];if(t===0||t===s)throw new o;else(t===1||t===s-1)&&l++}let h=new Array(r*t-l),e=0;for(let n=0;n<r;n++){let i=f[n];if(i===1||i===s-1)h.fill(i>1,e,e+t-1),e+=t-1;else for(let n=t-1;n>=0;--n)h[e++]=(i&1<<n)!=0}return h}extractBits(n){let u=this.ddata.isCompact(),f=this.ddata.getNbLayers(),i=(u?11:14)+f*4,t=new Int32Array(i),r=new Array(this.totalBitsInLayer(f,u));if(u)for(let n=0;n<t.length;n++)t[n]=n;else{let u=i+1+2*k.truncDivision(k.truncDivision(i,2)-1,15),n=i/2,r=k.truncDivision(u,2);for(let i=0;i<n;i++){let u=i+k.truncDivision(i,15);t[n-i-1]=r-u-1;t[n+i]=r+u+1}}for(let o=0,e=0;o<f;o++){let s=(f-o)*4+(u?9:12),h=o*2,c=i-1-h;for(let i=0;i<s;i++){let u=i*2;for(let f=0;f<2;f++)r[e+u+f]=n.get(t[h+f],t[h+i]),r[e+2*s+u+f]=n.get(t[h+i],t[c-f]),r[e+4*s+u+f]=n.get(t[c-f],t[c-i]),r[e+6*s+u+f]=n.get(t[c-i],t[h+f])}e+=s*8}return r}static readCode(n,t,i){let r=0;for(let u=t;u<t+i;u++)r<<=1,n[u]&&(r|=1);return r}static readByte(n,t){let i=n.length-t;return i>=8?pt.readCode(n,t,8):pt.readCode(n,t,i)<<8-i}static convertBoolArrayToByteArray(n){let t=new Uint8Array((n.length+7)/8);for(let i=0;i<t.length;i++)t[i]=pt.readByte(n,8*i);return t}totalBitsInLayer(n,t){return((t?88:112)+16*n)*n}}pt.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"];pt.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"];pt.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"];pt.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"];pt.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class it{constructor(){}static round(n){return NaN===n?0:n<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:n>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:n+(n<0?-.5:.5)|0}static distance(n,t,i,r){const u=n-i,f=t-r;return Math.sqrt(u*u+f*f)}static sum(n){let t=0;for(let i=0,r=n.length;i!==r;i++){const r=n[i];t+=r}return t}}class kf{static floatToIntBits(n){return n}}kf.MAX_VALUE=Number.MAX_SAFE_INTEGER;class l{constructor(n,t){this.x=n;this.y=t}getX(){return this.x}getY(){return this.y}equals(n){if(n instanceof l){const t=n;return this.x===t.x&&this.y===t.y}return!1}hashCode(){return 31*kf.floatToIntBits(this.x)+kf.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(n){const e=this.distance(n[0],n[1]),u=this.distance(n[1],n[2]),f=this.distance(n[0],n[2]);let t,r,i;if(u>=e&&u>=f?(r=n[0],t=n[1],i=n[2]):f>=u&&f>=e?(r=n[1],t=n[0],i=n[2]):(r=n[2],t=n[0],i=n[1]),this.crossProductZ(t,r,i)<0){const n=t;t=i;i=n}n[0]=t;n[1]=r;n[2]=i}static distance(n,t){return it.distance(n.x,n.y,t.x,t.y)}static crossProductZ(n,t,i){const r=t.x,u=t.y;return(i.x-r)*(n.y-u)-(i.y-u)*(n.x-r)}}class df{constructor(n,t){this.bits=n;this.points=t}getBits(){return this.bits}getPoints(){return this.points}}class ao extends df{constructor(n,t,i,r,u){super(n,t);this.compact=i;this.nbDatablocks=r;this.nbLayers=u}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class iu{constructor(n,t,i,r){this.image=n;this.height=n.getHeight();this.width=n.getWidth();(undefined===t||null===t)&&(t=iu.INIT_SIZE);(undefined===i||null===i)&&(i=n.getWidth()/2|0);(undefined===r||null===r)&&(r=n.getHeight()/2|0);const f=t/2|0;if(this.leftInit=i-f,this.rightInit=i+f,this.upInit=r-f,this.downInit=r+f,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new u;}detect(){let n=this.leftInit,t=this.rightInit,i=this.upInit,r=this.downInit,e=!1,f=!0,l=!1,o=!1,s=!1,h=!1,c=!1;const a=this.width,v=this.height;while(f){f=!1;let u=!0;while((u||!o)&&t<a)u=this.containsBlackPoint(i,r,t,!1),u?(t++,f=!0,o=!0):o||t++;if(t>=a){e=!0;break}let y=!0;while((y||!s)&&r<v)y=this.containsBlackPoint(n,t,r,!0),y?(r++,f=!0,s=!0):s||r++;if(r>=v){e=!0;break}let p=!0;while((p||!h)&&n>=0)p=this.containsBlackPoint(i,r,n,!1),p?(n--,f=!0,h=!0):h||n--;if(n<0){e=!0;break}let w=!0;while((w||!c)&&i>=0)w=this.containsBlackPoint(n,t,i,!0),w?(i--,f=!0,c=!0):c||i--;if(i<0){e=!0;break}f&&(l=!0)}if(!e&&l){const f=t-n;let e=null;for(let t=1;e===null&&t<f;t++)e=this.getBlackPointOnSegment(n,r-t,n+t,r);if(e==null)throw new u;let o=null;for(let t=1;o===null&&t<f;t++)o=this.getBlackPointOnSegment(n,i+t,n+t,i);if(o==null)throw new u;let s=null;for(let n=1;s===null&&n<f;n++)s=this.getBlackPointOnSegment(t,i+n,t-n,i);if(s==null)throw new u;let h=null;for(let n=1;h===null&&n<f;n++)h=this.getBlackPointOnSegment(t,r-n,t-n,r);if(h==null)throw new u;return this.centerEdges(h,e,s,o)}throw new u;}getBlackPointOnSegment(n,t,i,r){const u=it.round(it.distance(n,t,i,r)),f=(i-n)/u,e=(r-t)/u,o=this.image;for(let i=0;i<u;i++){const r=it.round(n+i*f),u=it.round(t+i*e);if(o.get(r,u))return new l(r,u)}return null}centerEdges(n,t,i,r){const f=n.getX(),e=n.getY(),o=t.getX(),s=t.getY(),h=i.getX(),c=i.getY(),a=r.getX(),v=r.getY(),u=iu.CORR;return f<this.width/2?[new l(a-u,v+u),new l(o+u,s+u),new l(h-u,c-u),new l(f+u,e-u)]:[new l(a+u,v+u),new l(o+u,s-u),new l(h-u,c+u),new l(f-u,e-u)]}containsBlackPoint(n,t,i,r){const u=this.image;if(r){for(let r=n;r<=t;r++)if(u.get(r,i))return!0}else for(let r=n;r<=t;r++)if(u.get(i,r))return!0;return!1}}iu.INIT_SIZE=10;iu.CORR=1;class pe{static checkAndNudgePoints(n,t){const r=n.getWidth(),f=n.getHeight();let i=!0;for(let n=0;n<t.length&&i;n+=2){const e=Math.floor(t[n]),o=Math.floor(t[n+1]);if(e<-1||e>r||o<-1||o>f)throw new u;i=!1;e===-1?(t[n]=0,i=!0):e===r&&(t[n]=r-1,i=!0);o===-1?(t[n+1]=0,i=!0):o===f&&(t[n+1]=f-1,i=!0)}i=!0;for(let n=t.length-2;n>=0&&i;n-=2){const e=Math.floor(t[n]),o=Math.floor(t[n+1]);if(e<-1||e>r||o<-1||o>f)throw new u;i=!1;e===-1?(t[n]=0,i=!0):e===r&&(t[n]=r-1,i=!0);o===-1?(t[n+1]=0,i=!0):o===f&&(t[n+1]=f-1,i=!0)}}}class pr{constructor(n,t,i,r,u,f,e,o,s){this.a11=n;this.a21=t;this.a31=i;this.a12=r;this.a22=u;this.a32=f;this.a13=e;this.a23=o;this.a33=s}static quadrilateralToQuadrilateral(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){const w=pr.quadrilateralToSquare(n,t,i,r,u,f,e,o),b=pr.squareToQuadrilateral(s,h,c,l,a,v,y,p);return b.times(w)}transformPoints(n){const t=n.length,i=this.a11,r=this.a12,u=this.a13,f=this.a21,e=this.a22,o=this.a23,s=this.a31,h=this.a32,c=this.a33;for(let l=0;l<t;l+=2){const t=n[l],a=n[l+1],v=u*t+o*a+c;n[l]=(i*t+f*a+s)/v;n[l+1]=(r*t+e*a+h)/v}}transformPointsWithValues(n,t){const i=this.a11,r=this.a12,u=this.a13,f=this.a21,e=this.a22,o=this.a23,s=this.a31,h=this.a32,c=this.a33,l=n.length;for(let a=0;a<l;a++){const l=n[a],v=t[a],y=u*l+o*v+c;n[a]=(i*l+f*v+s)/y;t[a]=(r*l+e*v+h)/y}}static squareToQuadrilateral(n,t,i,r,u,f,e,o){const s=n-i+u-e,h=t-r+f-o;if(s===0&&h===0)return new pr(i-n,u-i,n,r-t,f-r,t,0,0,1);else{const a=i-u,v=e-u,y=r-f,p=o-f,w=a*p-v*y,c=(s*p-v*h)/w,l=(a*h-s*y)/w;return new pr(i-n+c*i,e-n+l*e,n,r-t+c*r,o-t+l*o,t,c,l,1)}}static quadrilateralToSquare(n,t,i,r,u,f,e,o){return pr.squareToQuadrilateral(n,t,i,r,u,f,e,o).buildAdjoint()}buildAdjoint(){return new pr(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)}times(n){return new pr(this.a11*n.a11+this.a21*n.a12+this.a31*n.a13,this.a11*n.a21+this.a21*n.a22+this.a31*n.a23,this.a11*n.a31+this.a21*n.a32+this.a31*n.a33,this.a12*n.a11+this.a22*n.a12+this.a32*n.a13,this.a12*n.a21+this.a22*n.a22+this.a32*n.a23,this.a12*n.a31+this.a22*n.a32+this.a32*n.a33,this.a13*n.a11+this.a23*n.a12+this.a33*n.a13,this.a13*n.a21+this.a23*n.a22+this.a33*n.a23,this.a13*n.a31+this.a23*n.a32+this.a33*n.a33)}}class vo extends pe{sampleGrid(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){const d=pr.quadrilateralToQuadrilateral(r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k);return this.sampleGridWithTransform(n,t,i,d)}sampleGridWithTransform(n,t,i,r){if(t<=0||i<=0)throw new u;const e=new ai(t,i),f=new Float32Array(2*t);for(let t=0;t<i;t++){const i=f.length,o=t+.5;for(let n=0;n<i;n+=2)f[n]=n/2+.5,f[n+1]=o;r.transformPoints(f);pe.checkAndNudgePoints(n,f);try{for(let r=0;r<i;r+=2)n.get(Math.floor(f[r]),Math.floor(f[r+1]))&&e.set(r/2,t)}catch(s){throw new u;}}return e}}class hu{static setGridSampler(n){hu.gridSampler=n}static getInstance(){return hu.gridSampler}}hu.gridSampler=new vo;class nr{constructor(n,t){this.x=n;this.y=t}toResultPoint(){return new l(this.getX(),this.getY())}getX(){return this.x}getY(){return this.y}}class yo{constructor(n){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799,]);this.image=n}detect(){return this.detectMirror(!1)}detectMirror(n){let i=this.getMatrixCenter(),t=this.getBullsEyeCorners(i);if(n){let n=t[0];t[0]=t[2];t[2]=n}this.extractParameters(t);let r=this.sampleGrid(this.image,t[this.shift%4],t[(this.shift+1)%4],t[(this.shift+2)%4],t[(this.shift+3)%4]),u=this.getMatrixCornerPoints(t);return new ao(r,u,this.compact,this.nbDataBlocks,this.nbLayers)}extractParameters(n){if(!this.isValidPoint(n[0])||!this.isValidPoint(n[1])||!this.isValidPoint(n[2])||!this.isValidPoint(n[3]))throw new u;let t=2*this.nbCenterLayers,f=new Int32Array([this.sampleLine(n[0],n[1],t),this.sampleLine(n[1],n[2],t),this.sampleLine(n[2],n[3],t),this.sampleLine(n[3],n[0],t)]);this.shift=this.getRotation(f,t);let i=0;for(let n=0;n<4;n++){let t=f[(this.shift+n)%4];this.compact?(i<<=7,i+=t>>1&127):(i<<=10,i+=(t>>2&992)+(t>>1&31))}let r=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(r>>6)+1,this.nbDataBlocks=(r&63)+1):(this.nbLayers=(r>>11)+1,this.nbDataBlocks=(r&2047)+1)}getRotation(n,t){let i=0;n.forEach(n=>{let r=(n>>t-2<<1)+(n&1);i=(i<<3)+r});i=((i&1)<<11)+(i>>1);for(let n=0;n<4;n++)if(k.bitCount(i^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new u;}getCorrectedParameterData(n,t){let i,r;t?(i=7,r=2):(i=10,r=4);let o=i-r,f=new Int32Array(i);for(let t=i-1;t>=0;--t)f[t]=n&15,n>>=4;try{let n=new sf(ut.AZTEC_PARAM);n.decode(f,o)}catch(s){throw new u;}let e=0;for(let n=0;n<r;n++)e=(e<<4)+f[n];return e}getBullsEyeCorners(n){let i=n,f=n,e=n,r=n,t=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){let n=this.getFirstDifferent(i,t,1,-1),o=this.getFirstDifferent(f,t,1,1),s=this.getFirstDifferent(e,t,-1,1),u=this.getFirstDifferent(r,t,-1,-1);if(this.nbCenterLayers>2){let t=this.distancePoint(u,n)*this.nbCenterLayers/(this.distancePoint(r,i)*(this.nbCenterLayers+2));if(t<.75||t>1.25||!this.isWhiteOrBlackRectangle(n,o,s,u))break}i=n;f=o;e=s;r=u;t=!t}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new u;this.compact=this.nbCenterLayers===5;let o=new l(i.getX()+.5,i.getY()-.5),s=new l(f.getX()+.5,f.getY()+.5),h=new l(e.getX()-.5,e.getY()+.5),c=new l(r.getX()-.5,r.getY()-.5);return this.expandSquare([o,s,h,c],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let n,t,i,r;try{let u=new iu(this.image).detect();n=u[0];t=u[1];i=u[2];r=u[3]}catch(e){let u=this.image.getWidth()/2,f=this.image.getHeight()/2;n=this.getFirstDifferent(new nr(u+7,f-7),!1,1,-1).toResultPoint();t=this.getFirstDifferent(new nr(u+7,f+7),!1,1,1).toResultPoint();i=this.getFirstDifferent(new nr(u-7,f+7),!1,-1,1).toResultPoint();r=this.getFirstDifferent(new nr(u-7,f-7),!1,-1,-1).toResultPoint()}let u=it.round((n.getX()+r.getX()+t.getX()+i.getX())/4),f=it.round((n.getY()+r.getY()+t.getY()+i.getY())/4);try{let e=new iu(this.image,15,u,f).detect();n=e[0];t=e[1];i=e[2];r=e[3]}catch(e){n=this.getFirstDifferent(new nr(u+7,f-7),!1,1,-1).toResultPoint();t=this.getFirstDifferent(new nr(u+7,f+7),!1,1,1).toResultPoint();i=this.getFirstDifferent(new nr(u-7,f+7),!1,-1,1).toResultPoint();r=this.getFirstDifferent(new nr(u-7,f-7),!1,-1,-1).toResultPoint()}return u=it.round((n.getX()+r.getX()+t.getX()+i.getX())/4),f=it.round((n.getY()+r.getY()+t.getY()+i.getY())/4),new nr(u,f)}getMatrixCornerPoints(n){return this.expandSquare(n,2*this.nbCenterLayers,this.getDimension())}sampleGrid(n,t,i,r,u){let s=hu.getInstance(),f=this.getDimension(),e=f/2-this.nbCenterLayers,o=f/2+this.nbCenterLayers;return s.sampleGrid(n,f,f,e,e,o,e,o,o,e,o,t.getX(),t.getY(),i.getX(),i.getY(),r.getX(),r.getY(),u.getX(),u.getY())}sampleLine(n,t,i){let u=0,r=this.distanceResultPoint(n,t),f=r/i,e=n.getX(),o=n.getY(),s=f*(t.getX()-n.getX())/r,h=f*(t.getY()-n.getY())/r;for(let n=0;n<i;n++)this.image.get(it.round(e+n*s),it.round(o+n*h))&&(u|=1<<i-n-1);return u}isWhiteOrBlackRectangle(n,t,i,r){let u=3;n=new nr(n.getX()-u,n.getY()+u);t=new nr(t.getX()-u,t.getY()-u);i=new nr(i.getX()+u,i.getY()-u);r=new nr(r.getX()+u,r.getY()+u);let e=this.getColor(r,n);if(e===0)return!1;let f=this.getColor(n,t);return f!==e?!1:(f=this.getColor(t,i),f!==e)?!1:(f=this.getColor(i,r),f===e)}getColor(n,t){let i=this.distancePoint(n,t),s=(t.getX()-n.getX())/i,h=(t.getY()-n.getY())/i,u=0,f=n.getX(),e=n.getY(),o=this.image.get(n.getX(),n.getY()),c=Math.ceil(i);for(let n=0;n<c;n++)f+=s,e+=h,this.image.get(it.round(f),it.round(e))!==o&&u++;let r=u/i;return r>.1&&r<.9?0:r<=.1===o?1:-1}getFirstDifferent(n,t,i,r){let u=n.getX()+i,f=n.getY()+r;while(this.isValid(u,f)&&this.image.get(u,f)===t)u+=i,f+=r;for(u-=i,f-=r;this.isValid(u,f)&&this.image.get(u,f)===t;)u+=i;for(u-=i;this.isValid(u,f)&&this.image.get(u,f)===t;)f+=r;return f-=r,new nr(u,f)}expandSquare(n,t,i){let r=i/(2*t),u=n[0].getX()-n[2].getX(),f=n[0].getY()-n[2].getY(),e=(n[0].getX()+n[2].getX())/2,o=(n[0].getY()+n[2].getY())/2,s=new l(e+r*u,o+r*f),h=new l(e-r*u,o-r*f);u=n[1].getX()-n[3].getX();f=n[1].getY()-n[3].getY();e=(n[1].getX()+n[3].getX())/2;o=(n[1].getY()+n[3].getY())/2;let c=new l(e+r*u,o+r*f),a=new l(e-r*u,o-r*f);return[s,c,h,a]}isValid(n,t){return n>=0&&n<this.image.getWidth()&&t>0&&t<this.image.getHeight()}isValidPoint(n){let t=it.round(n.getX()),i=it.round(n.getY());return this.isValid(t,i)}distancePoint(n,t){return it.distance(n.getX(),n.getY(),t.getX(),t.getY())}distanceResultPoint(n,t){return it.distance(n.getX(),n.getY(),t.getX(),t.getY())}getDimension(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(k.truncDivision(this.nbLayers-4,8)+1)+15}}class gf{decode(n,t=null){let u=null,e=new yo(n.getBlackMatrix()),r=null,i=null;try{let n=e.detectMirror(!1);r=n.getPoints();this.reportFoundResultPoints(t,r);i=(new pt).decode(n)}catch(o){u=o}if(i==null)try{let n=e.detectMirror(!0);r=n.getPoints();this.reportFoundResultPoints(t,r);i=(new pt).decode(n)}catch(o){if(u!=null)throw u;throw o;}let f=new gi(i.getText(),i.getRawBytes(),i.getNumBits(),r,v.AZTEC,lt.currentTimeMillis()),s=i.getByteSegments();s!=null&&f.putMetadata(ei.BYTE_SEGMENTS,s);let h=i.getECLevel();return h!=null&&f.putMetadata(ei.ERROR_CORRECTION_LEVEL,h),f}reportFoundResultPoints(n,t){if(n!=null){let i=n.get(yt.NEED_RESULT_POINT_CALLBACK);i!=null&&t.forEach(n=>{i.foundPossibleResultPoint(n)})}}reset(){}}class fh extends su{constructor(n=500){super(new gf,n)}}class oi{decode(n,t){try{return this.doDecode(n,t)}catch(i){const r=t&&t.get(yt.TRY_HARDER)===!0;if(r&&n.isRotateSupported()){const e=n.rotateCounterClockwise(),r=this.doDecode(e,t),u=r.getResultMetadata();let f=270;u!==null&&u.get(ei.ORIENTATION)===!0&&(f=f+u.get(ei.ORIENTATION)%360);r.putMetadata(ei.ORIENTATION,f);const i=r.getResultPoints();if(i!==null){const n=e.getHeight();for(let t=0;t<i.length;t++)i[t]=new l(n-i[t].getY()-1,i[t].getX())}return r}throw new u;}}reset(){}doDecode(n,t){const f=n.getWidth(),i=n.getHeight();let r=new kt(f);const e=t&&t.get(yt.TRY_HARDER)===!0,s=Math.max(1,i>>(e?8:5));let o;o=e?i:15;const h=Math.trunc(i/2);for(let u=0;u<o;u++){const o=Math.trunc((u+1)/2),c=(u&1)==0,e=h+s*(c?o:-o);if(e<0||e>=i)break;try{r=n.getBlackRow(e,r)}catch(a){continue}for(let n=0;n<2;n++){if(n===1&&(r.reverse(),t&&t.get(yt.NEED_RESULT_POINT_CALLBACK)===!0)){const n=new Map;t.forEach((t,i)=>n.set(i,t));n.delete(yt.NEED_RESULT_POINT_CALLBACK);t=n}try{const i=this.decodeRow(e,r,t);if(n===1){i.putMetadata(ei.ORIENTATION,180);const n=i.getResultPoints();n!==null&&(n[0]=new l(f-n[0].getX()-1,n[0].getY()),n[1]=new l(f-n[1].getX()-1,n[1].getY()))}return i}catch(i){}}}throw new u;}static recordPattern(n,t,i){const f=i.length;for(let n=0;n<f;n++)i[n]=0;const o=n.getSize();if(t>=o)throw new u;let s=!n.get(t),r=0,e=t;while(e<o){if(n.get(e)!==s)i[r]++;else if(++r===f)break;else i[r]=1,s=!s;e++}if(!(r===f||r===f-1&&e===o))throw new u;}static recordPatternInReverse(n,t,i){let r=i.length,f=n.get(t);while(t>0&&r>=0)n.get(--t)!==f&&(r--,f=!f);if(r>=0)throw new u;oi.recordPattern(n,t+1,i)}static patternMatchVariance(n,t,i){const f=n.length;let r=0,u=0;for(let i=0;i<f;i++)r+=n[i],u+=t[i];if(r<u)return Number.POSITIVE_INFINITY;const e=r/u;i*=e;let o=0;for(let r=0;r<f;r++){const u=n[r],f=t[r]*e,s=u>f?u-f:f-u;if(s>i)return Number.POSITIVE_INFINITY;o+=s}return o/r}}class s extends oi{static findStartPattern(n){const o=n.getSize(),e=n.getNextSet(0);let i=0,t=Int32Array.from([0,0,0,0,0,0]),r=e,f=!1;const h=6;for(let u=e;u<o;u++)if(n.get(u)!==f)t[i]++;else{if(i===h-1){let e=s.MAX_AVG_VARIANCE,f=-1;for(let n=s.CODE_START_A;n<=s.CODE_START_C;n++){const i=oi.patternMatchVariance(t,s.CODE_PATTERNS[n],s.MAX_INDIVIDUAL_VARIANCE);i<e&&(e=i,f=n)}if(f>=0&&n.isRange(Math.max(0,r-(u-r)/2),r,!1))return Int32Array.from([r,u,f]);r+=t[0]+t[1];t=t.slice(2,t.length-1);t[i-1]=0;t[i]=0;i--}else i++;t[i]=1;f=!f}throw new u;}static decodeCode(n,t,i){oi.recordPattern(n,i,t);let f=s.MAX_AVG_VARIANCE,r=-1;for(let n=0;n<s.CODE_PATTERNS.length;n++){const u=s.CODE_PATTERNS[n],i=this.patternMatchVariance(t,u,s.MAX_INDIVIDUAL_VARIANCE);i<f&&(f=i,r=n)}if(r>=0)return r;throw new u;}decodeRow(n,t,i){const nt=i&&i.get(yt.ASSUME_GS1)===!0,y=s.findStartPattern(t),tt=y[2];let ft=0;const w=new Uint8Array(20);w[ft++]=tt;let h;switch(tt){case s.CODE_START_A:h=s.CODE_CODE_A;break;case s.CODE_START_B:h=s.CODE_CODE_B;break;case s.CODE_START_C:h=s.CODE_CODE_C;break;default:throw new o;}let b=!1,k=!1,f="",d=y[0],a=y[1];const et=Int32Array.from([0,0,0,0,0,0]);let it=0,r=0,rt=tt,ut=0,p=!0,c=!1,e=!1;while(!b){const n=k;k=!1;it=r;r=s.decodeCode(t,et,a);w[ft++]=r;r!==s.CODE_STOP&&(p=!0);r!==s.CODE_STOP&&(ut++,rt+=ut*r);d=a;a+=et.reduce((n,t)=>n+t,0);switch(r){case s.CODE_START_A:case s.CODE_START_B:case s.CODE_START_C:throw new o;}switch(h){case s.CODE_CODE_A:if(r<64)f+=e===c?String.fromCharCode(" ".charCodeAt(0)+r):String.fromCharCode(" ".charCodeAt(0)+r+128),e=!1;else if(r<96)f+=e===c?String.fromCharCode(r-64):String.fromCharCode(r+64),e=!1;else{r!==s.CODE_STOP&&(p=!1);switch(r){case s.CODE_FNC_1:nt&&(f+=f.length===0?"]C1":String.fromCharCode(29));break;case s.CODE_FNC_4_A:!c&&e?(c=!0,e=!1):c&&e?(c=!1,e=!1):e=!0;break;case s.CODE_SHIFT:k=!0;h=s.CODE_CODE_B;break;case s.CODE_CODE_B:h=s.CODE_CODE_B;break;case s.CODE_CODE_C:h=s.CODE_CODE_C;break;case s.CODE_STOP:b=!0}}break;case s.CODE_CODE_B:if(r<96)f+=e===c?String.fromCharCode(" ".charCodeAt(0)+r):String.fromCharCode(" ".charCodeAt(0)+r+128),e=!1;else{r!==s.CODE_STOP&&(p=!1);switch(r){case s.CODE_FNC_1:nt&&(f+=f.length===0?"]C1":String.fromCharCode(29));break;case s.CODE_FNC_4_B:!c&&e?(c=!0,e=!1):c&&e?(c=!1,e=!1):e=!0;break;case s.CODE_SHIFT:k=!0;h=s.CODE_CODE_A;break;case s.CODE_CODE_A:h=s.CODE_CODE_A;break;case s.CODE_CODE_C:h=s.CODE_CODE_C;break;case s.CODE_STOP:b=!0}}break;case s.CODE_CODE_C:if(r<100)r<10&&(f+="0"),f+=r;else{r!==s.CODE_STOP&&(p=!1);switch(r){case s.CODE_FNC_1:nt&&(f+=f.length===0?"]C1":String.fromCharCode(29));break;case s.CODE_CODE_A:h=s.CODE_CODE_A;break;case s.CODE_CODE_B:h=s.CODE_CODE_B;break;case s.CODE_STOP:b=!0}}}n&&(h=h===s.CODE_CODE_A?s.CODE_CODE_B:s.CODE_CODE_A)}const ht=a-d;if(a=t.getNextUnset(a),!t.isRange(a,Math.min(t.getSize(),a+(a-d)/2),!1))throw new u;if(rt-=ut*it,rt%103!==it)throw new ri;const g=f.length;if(g===0)throw new u;g>0&&p&&(f=h===s.CODE_CODE_C?f.substring(0,g-2):f.substring(0,g-1));const ct=(y[1]+y[0])/2,lt=d+ht/2,ot=w.length,st=new Uint8Array(ot);for(let n=0;n<ot;n++)st[n]=w[n];const at=[new l(ct,n),new l(lt,n)];return new gi(f,st,0,at,v.CODE_128,(new Date).getTime())}}s.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2]),];s.MAX_AVG_VARIANCE=.25;s.MAX_INDIVIDUAL_VARIANCE=.7;s.CODE_SHIFT=98;s.CODE_CODE_C=99;s.CODE_CODE_B=100;s.CODE_CODE_A=101;s.CODE_FNC_1=102;s.CODE_FNC_2=97;s.CODE_FNC_3=96;s.CODE_FNC_4_A=101;s.CODE_FNC_4_B=100;s.CODE_START_A=103;s.CODE_START_B=104;s.CODE_START_C=105;s.CODE_STOP=106;class hi extends oi{constructor(n=false,t=false){super();this.usingCheckDigit=n;this.extendedMode=t;this.decodeRowResult="";this.counters=new Int32Array(9)}decodeRow(n,t){let r=this.counters;r.fill(0);this.decodeRowResult="";let e=hi.findAsteriskPattern(t,r),i=t.getNextSet(e[1]),c=t.getSize(),o,s;do{hi.recordPattern(t,i,r);let n=hi.toNarrowWidePattern(r);if(n<0)throw new u;o=hi.patternToChar(n);this.decodeRowResult+=o;s=i;for(let n of r)i+=n;i=t.getNextSet(i)}while(o!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);let f=0;for(let n of r)f+=n;let a=i-s-f;if(i!==c&&a*2<f)throw new u;if(this.usingCheckDigit){let n=this.decodeRowResult.length-1,t=0;for(let i=0;i<n;i++)t+=hi.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(i));if(this.decodeRowResult.charAt(n)!==hi.ALPHABET_STRING.charAt(t%43))throw new ri;this.decodeRowResult=this.decodeRowResult.substring(0,n)}if(this.decodeRowResult.length===0)throw new u;let h;h=this.extendedMode?hi.decodeExtended(this.decodeRowResult):this.decodeRowResult;let y=(e[1]+e[0])/2,p=s+f/2;return new gi(h,null,0,[new l(y,n),new l(p,n)],v.CODE_39,(new Date).getTime())}static findAsteriskPattern(n,t){let o=n.getSize(),e=n.getNextSet(0),i=0,r=e,f=!1,s=t.length;for(let u=e;u<o;u++)if(n.get(u)!==f)t[i]++;else{if(i===s-1){if(this.toNarrowWidePattern(t)===hi.ASTERISK_ENCODING&&n.isRange(Math.max(0,r-Math.floor((u-r)/2)),r,!1))return[r,u];r+=t[0]+t[1];t.copyWithin(0,2,2+i-1);t[i-1]=0;t[i]=0;i--}else i++;t[i]=1;f=!f}throw new u;}static toNarrowWidePattern(n){let r=n.length,i=0,t;do{let u=2147483647;for(let t of n)t<u&&t>i&&(u=t);i=u;t=0;let f=0,e=0;for(let u=0;u<r;u++){let o=n[u];o>i&&(e|=1<<r-1-u,t++,f+=o)}if(t===3){for(let u=0;u<r&&t>0;u++){let r=n[u];if(r>i&&(t--,r*2>=f))return-1}return e}}while(t>3);return-1}static patternToChar(n){for(let t=0;t<hi.CHARACTER_ENCODINGS.length;t++)if(hi.CHARACTER_ENCODINGS[t]===n)return hi.ALPHABET_STRING.charAt(t);if(n===hi.ASTERISK_ENCODING)return"*";throw new u;}static decodeExtended(n){let i=n.length,t="";for(let r=0;r<i;r++){let i=n.charAt(r);if(i==="+"||i==="$"||i==="%"||i==="/"){let u=n.charAt(r+1),f='\0';switch(i){case"+":if(u>="A"&&u<="Z")f=String.fromCharCode(u.charCodeAt(0)+32);else throw new o;break;case"$":if(u>="A"&&u<="Z")f=String.fromCharCode(u.charCodeAt(0)-64);else throw new o;break;case"%":if(u>="A"&&u<="E")f=String.fromCharCode(u.charCodeAt(0)-38);else if(u>="F"&&u<="J")f=String.fromCharCode(u.charCodeAt(0)-11);else if(u>="K"&&u<="O")f=String.fromCharCode(u.charCodeAt(0)+16);else if(u>="P"&&u<="T")f=String.fromCharCode(u.charCodeAt(0)+43);else if(u==="U")f='\0';else if(u==="V")f="@";else if(u==="W")f="`";else if(u==="X"||u==="Y"||u==="Z")f="";else throw new o;break;case"/":if(u>="A"&&u<="O")f=String.fromCharCode(u.charCodeAt(0)-32);else if(u==="Z")f=":";else throw new o;}t+=f;r++}else t+=i}return t}}hi.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";hi.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42];hi.ASTERISK_ENCODING=148;class vt extends oi{constructor(){super(...arguments);this.narrowLineWidth=-1}decodeRow(n,t,i){let e=this.decodeStart(t),s=this.decodeEnd(t),h=new ht;vt.decodeMiddle(t,e[1],s[0],h);let c=h.toString(),r=null;i!=null&&(r=i.get(yt.ALLOWED_LENGTHS));r==null&&(r=vt.DEFAULT_ALLOWED_LENGTHS);let a=c.length,u=!1,f=0;for(let n of r){if(a===n){u=!0;break}n>f&&(f=n)}if(!u&&a>f&&(u=!0),!u)throw new o;const y=[new l(e[1],n),new l(s[0],n)];return new gi(c,null,0,y,v.ITF,(new Date).getTime())}static decodeMiddle(n,t,i,r){let u=new Int32Array(10),f=new Int32Array(5),e=new Int32Array(5);for(u.fill(0),f.fill(0),e.fill(0);t<i;){oi.recordPattern(n,t,u);for(let n=0;n<5;n++){let t=2*n;f[n]=u[t];e[n]=u[t+1]}let i=vt.decodeDigit(f);r.append(i.toString());i=this.decodeDigit(e);r.append(i.toString());u.forEach(function(n){t+=n})}}decodeStart(n){let i=vt.skipWhiteSpace(n),t=vt.findGuardPattern(n,i,vt.START_PATTERN);return this.narrowLineWidth=(t[1]-t[0])/4,this.validateQuietZone(n,t[0]),t}validateQuietZone(n,t){let i=this.narrowLineWidth*10;i=i<t?i:t;for(let r=t-1;i>0&&r>=0;r--){if(n.get(r))break;i--}if(i!==0)throw new u;}static skipWhiteSpace(n){const i=n.getSize(),t=n.getNextSet(0);if(t===i)throw new u;return t}decodeEnd(n){n.reverse();try{let i=vt.skipWhiteSpace(n),t;try{t=vt.findGuardPattern(n,i,vt.END_PATTERN_REVERSED[0])}catch(r){r instanceof u&&(t=vt.findGuardPattern(n,i,vt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(n,t[0]);let f=t[0];return t[0]=n.getSize()-t[1],t[1]=n.getSize()-f,t}finally{n.reverse()}}static findGuardPattern(n,t,i){let o=i.length,r=new Int32Array(o),h=n.getSize(),e=!1,f=0,s=t;r.fill(0);for(let u=t;u<h;u++)if(n.get(u)!==e)r[f]++;else{if(f===o-1){if(oi.patternMatchVariance(r,i,vt.MAX_INDIVIDUAL_VARIANCE)<vt.MAX_AVG_VARIANCE)return[s,u];s+=r[0]+r[1];lt.arraycopy(r,2,r,0,f-1);r[f-1]=0;r[f]=0;f--}else f++;r[f]=1;e=!e}throw new u;}static decodeDigit(n){let i=vt.MAX_AVG_VARIANCE,t=-1,r=vt.PATTERNS.length;for(let u=0;u<r;u++){let f=vt.PATTERNS[u],r=oi.patternMatchVariance(n,f,vt.MAX_INDIVIDUAL_VARIANCE);r<i?(i=r,t=u):r===i&&(t=-1)}if(t>=0)return t%10;throw new u;}}vt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])];vt.MAX_AVG_VARIANCE=.38;vt.MAX_INDIVIDUAL_VARIANCE=.5;vt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14];vt.START_PATTERN=Int32Array.from([1,1,1,1]);vt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class ni extends oi{constructor(){super(...arguments);this.decodeRowStringBuffer=""}static findStartGuardPattern(n){let r=!1,t,i=0,u=Int32Array.from([0,0,0]);while(!r){u=Int32Array.from([0,0,0]);t=ni.findGuardPattern(n,i,!1,this.START_END_PATTERN,u);let f=t[0];i=t[1];let e=f-(i-f);e>=0&&(r=n.isRange(e,f,!1))}return t}static checkChecksum(n){return ni.checkStandardUPCEANChecksum(n)}static checkStandardUPCEANChecksum(n){let t=n.length;if(t===0)return!1;let i=parseInt(n.charAt(t-1),10);return ni.getStandardUPCEANChecksum(n.substring(0,t-1))===i}static getStandardUPCEANChecksum(n){let i=n.length,t=0;for(let r=i-1;r>=0;r-=2){let i=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new o;t+=i}t*=3;for(let r=i-2;r>=0;r-=2){let i=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new o;t+=i}return(1e3-t)%10}static decodeEnd(n,t){return ni.findGuardPattern(n,t,!1,ni.START_END_PATTERN,new Int32Array(ni.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(n,t,i,r){return this.findGuardPattern(n,t,i,r,new Int32Array(r.length))}static findGuardPattern(n,t,i,r,f){let h=n.getSize();t=i?n.getNextUnset(t):n.getNextSet(t);let e=0,s=t,c=r.length,o=i;for(let i=t;i<h;i++)if(n.get(i)!==o)f[e]++;else{if(e===c-1){if(oi.patternMatchVariance(f,r,ni.MAX_INDIVIDUAL_VARIANCE)<ni.MAX_AVG_VARIANCE)return Int32Array.from([s,i]);s+=f[0]+f[1];let n=f.slice(2,f.length-1);for(let t=0;t<e-1;t++)f[t]=n[t];f[e-1]=0;f[e]=0;e--}else e++;f[e]=1;o=!o}throw new u;}static decodeDigit(n,t,i,r){this.recordPattern(n,i,t);let e=this.MAX_AVG_VARIANCE,f=-1,o=r.length;for(let n=0;n<o;n++){let u=r[n],i=oi.patternMatchVariance(t,u,ni.MAX_INDIVIDUAL_VARIANCE);i<e&&(e=i,f=n)}if(f>=0)return f;throw new u;}}ni.MAX_AVG_VARIANCE=.48;ni.MAX_INDIVIDUAL_VARIANCE=.7;ni.START_END_PATTERN=Int32Array.from([1,1,1]);ni.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]);ni.END_PATTERN=Int32Array.from([1,1,1,1,1,1]);ni.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2]),];class ne{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5];this.decodeMiddleCounters=Int32Array.from([0,0,0,0]);this.decodeRowStringBuffer=""}decodeRow(n,t,i){let r=this.decodeRowStringBuffer,o=this.decodeMiddle(t,i,r),u=r.toString(),f=ne.parseExtensionString(u),s=[new l((i[0]+i[1])/2,n),new l(o,n)],e=new gi(u,null,0,s,v.UPC_EAN_EXTENSION,(new Date).getTime());return f!=null&&e.putAllMetadata(f),e}decodeMiddle(n,t,i){let f=this.decodeMiddleCounters;f[0]=0;f[1]=0;f[2]=0;f[3]=0;let o=n.getSize(),r=t[1],e=0;for(let t=0;t<5&&r<o;t++){let u=ni.decodeDigit(n,f,r,ni.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+u%10);for(let n of f)r+=n;u>=10&&(e|=1<<4-t);t!==4&&(r=n.getNextSet(r),r=n.getNextUnset(r))}if(i.length!==5)throw new u;let s=this.determineCheckDigit(e);if(ne.extensionChecksum(i.toString())!==s)throw new u;return r}static extensionChecksum(n){let i=n.length,t=0;for(let r=i-2;r>=0;r-=2)t+=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);t*=3;for(let r=i-1;r>=0;r-=2)t+=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return t*=3,t%10}determineCheckDigit(n){for(let t=0;t<10;t++)if(n===this.CHECK_DIGIT_ENCODINGS[t])return t;throw new u;}static parseExtensionString(n){if(n.length!==5)return null;let t=ne.parseExtension5String(n);return t==null?null:new Map([[ei.SUGGESTED_PRICE,t]])}static parseExtension5String(n){let t;switch(n.charAt(0)){case"0":t="£";break;case"5":t="$";break;case"9":switch(n){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}t="";break;default:t=""}let r=parseInt(n.substring(1)),u=(r/100).toString(),i=r%100,f=i<10?"0"+i:i.toString();return t+u+"."+f}}class po{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]);this.decodeRowStringBuffer=""}decodeRow(n,t,i){let r=this.decodeRowStringBuffer,o=this.decodeMiddle(t,i,r),u=r.toString(),f=po.parseExtensionString(u),s=[new l((i[0]+i[1])/2,n),new l(o,n)],e=new gi(u,null,0,s,v.UPC_EAN_EXTENSION,(new Date).getTime());return f!=null&&e.putAllMetadata(f),e}decodeMiddle(n,t,i){let f=this.decodeMiddleCounters;f[0]=0;f[1]=0;f[2]=0;f[3]=0;let o=n.getSize(),r=t[1],e=0;for(let t=0;t<2&&r<o;t++){let u=ni.decodeDigit(n,f,r,ni.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+u%10);for(let n of f)r+=n;u>=10&&(e|=1<<1-t);t!==1&&(r=n.getNextSet(r),r=n.getNextUnset(r))}if(i.length!==2)throw new u;if(parseInt(i.toString())%4!==e)throw new u;return r}static parseExtensionString(n){return n.length!==2?null:new Map([[ei.ISSUE_NUMBER,parseInt(n)]])}}class wo{static decodeRow(n,t,i){let r=ni.findGuardPattern(t,i,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{let i=new ne;return i.decodeRow(n,t,r)}catch(u){let i=new po;return i.decodeRow(n,t,r)}}}wo.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class ft extends ni{constructor(){super();this.decodeRowStringBuffer="";ft.L_AND_G_PATTERNS=ft.L_PATTERNS.map(n=>Int32Array.from(n));for(let n=10;n<20;n++){let t=ft.L_PATTERNS[n-10],i=new Int32Array(t.length);for(let n=0;n<t.length;n++)i[n]=t[t.length-n-1];ft.L_AND_G_PATTERNS[n]=i}}decodeRow(n,t,i){let e=ft.findStartGuardPattern(t),f=i==null?null:i.get(yt.NEED_RESULT_POINT_CALLBACK);if(f!=null){const t=new l((e[0]+e[1])/2,n);f.foundPossibleResultPoint(t)}let y=this.decodeMiddle(t,e,this.decodeRowStringBuffer),p=y.rowOffset,d=y.resultString;if(f!=null){const t=new l(p,n);f.foundPossibleResultPoint(t)}let r=ft.decodeEnd(t,p);if(f!=null){const t=new l((r[0]+r[1])/2,n);f.foundPossibleResultPoint(t)}let h=r[1],w=h+(h-r[0]);if(w>=t.getSize()||!t.isRange(h,w,!1))throw new u;let c=d.toString();if(c.length<8)throw new o;if(!ft.checkChecksum(c))throw new ri;let g=(e[1]+e[0])/2,nt=(r[1]+r[0])/2,a=this.getBarcodeFormat(),tt=[new l(g,n),new l(nt,n)],s=new gi(c,null,0,tt,a,(new Date).getTime()),b=0;try{let i=wo.decodeRow(n,t,r[1]);s.putMetadata(ei.UPC_EAN_EXTENSION,i.getText());s.putAllMetadata(i.getResultMetadata());s.addResultPoints(i.getResultPoints());b=i.getText().length}catch(it){}let k=i==null?null:i.get(yt.ALLOWED_EAN_EXTENSIONS);if(k!=null){let n=!1;for(let t in k)if(b.toString()===t){n=!0;break}if(!n)throw new u;}return a===v.EAN_13||a===v.UPC_A,s}static checkChecksum(n){return ft.checkStandardUPCEANChecksum(n)}static checkStandardUPCEANChecksum(n){let t=n.length;if(t===0)return!1;let i=parseInt(n.charAt(t-1),10);return ft.getStandardUPCEANChecksum(n.substring(0,t-1))===i}static getStandardUPCEANChecksum(n){let i=n.length,t=0;for(let r=i-1;r>=0;r-=2){let i=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new o;t+=i}t*=3;for(let r=i-2;r>=0;r-=2){let i=n.charAt(r).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new o;t+=i}return(1e3-t)%10}static decodeEnd(n,t){return ft.findGuardPattern(n,t,!1,ft.START_END_PATTERN,new Int32Array(ft.START_END_PATTERN.length).fill(0))}}class bu extends ft{constructor(){super();this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(n,t,i){let u=this.decodeMiddleCounters;u[0]=0;u[1]=0;u[2]=0;u[3]=0;let f=n.getSize(),r=t[1],e=0;for(let t=0;t<6&&r<f;t++){let f=ft.decodeDigit(n,u,r,ft.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+f%10);for(let n of u)r+=n;f>=10&&(e|=1<<5-t)}i=bu.determineFirstDigit(i,e);let o=ft.findGuardPattern(n,r,!0,ft.MIDDLE_PATTERN,new Int32Array(ft.MIDDLE_PATTERN.length).fill(0));r=o[1];for(let t=0;t<6&&r<f;t++){let t=ft.decodeDigit(n,u,r,ft.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+t);for(let n of u)r+=n}return{rowOffset:r,resultString:i}}getBarcodeFormat(){return v.EAN_13}static determineFirstDigit(n,t){for(let i=0;i<10;i++)if(t===this.FIRST_DIGIT_ENCODINGS[i])return n=String.fromCharCode("0".charCodeAt(0)+i)+n;throw new u;}}bu.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26];class bo extends ft{constructor(){super();this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(n,t,i){const u=this.decodeMiddleCounters;u[0]=0;u[1]=0;u[2]=0;u[3]=0;let f=n.getSize(),r=t[1];for(let t=0;t<4&&r<f;t++){let t=ft.decodeDigit(n,u,r,ft.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+t);for(let n of u)r+=n}let e=ft.findGuardPattern(n,r,!0,ft.MIDDLE_PATTERN,new Int32Array(ft.MIDDLE_PATTERN.length).fill(0));r=e[1];for(let t=0;t<4&&r<f;t++){let t=ft.decodeDigit(n,u,r,ft.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+t);for(let n of u)r+=n}return{rowOffset:r,resultString:i}}getBarcodeFormat(){return v.EAN_8}}class ko extends ft{constructor(){super(...arguments);this.ean13Reader=new bu}getBarcodeFormat(){return v.UPC_A}decode(n){return this.maybeReturnResult(this.ean13Reader.decode(n))}decodeRow(n,t,i){return this.maybeReturnResult(this.ean13Reader.decodeRow(n,t,i))}decodeMiddle(n,t,i){return this.ean13Reader.decodeMiddle(n,t,i)}maybeReturnResult(n){let t=n.getText();if(t.charAt(0)==="0"){let i=new gi(t.substring(1),null,null,n.getResultPoints(),v.UPC_A);return n.getResultMetadata()!=null&&i.putAllMetadata(n.getResultMetadata()),i}throw new u;}reset(){this.ean13Reader.reset()}}class wr extends ft{constructor(){super();this.decodeMiddleCounters=new Int32Array(4)}decodeMiddle(n,t,i){const r=this.decodeMiddleCounters.map(n=>n);r[0]=0;r[1]=0;r[2]=0;r[3]=0;const e=n.getSize();let u=t[1],f=0;for(let t=0;t<6&&u<e;t++){const e=wr.decodeDigit(n,r,u,wr.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+e%10);for(let n of r)u+=n;e>=10&&(f|=1<<5-t)}return wr.determineNumSysAndCheckDigit(new ht(i),f),u}decodeEnd(n,t){return wr.findGuardPatternWithoutCounters(n,t,!0,wr.MIDDLE_END_PATTERN)}checkChecksum(n){return ft.checkChecksum(wr.convertUPCEtoUPCA(n))}static determineNumSysAndCheckDigit(n,t){for(let i=0;i<=1;i++)for(let r=0;r<10;r++)if(t===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][r]){n.insert(0,"0"+i);n.append("0"+r);return}throw u.getNotFoundInstance();}getBarcodeFormat(){return v.UPC_E}static convertUPCEtoUPCA(n){const i=n.slice(1,7).split("").map(n=>n.charCodeAt(0)),t=new ht;t.append(n.charAt(0));let r=i[5];switch(r){case 0:case 1:case 2:t.appendChars(i,0,2);t.append(r);t.append("0000");t.appendChars(i,2,3);break;case 3:t.appendChars(i,0,3);t.append("00000");t.appendChars(i,3,2);break;case 4:t.appendChars(i,0,4);t.append("00000");t.append(i[4]);break;default:t.appendChars(i,0,5);t.append("0000");t.append(r)}return n.length>=8&&t.append(n.charAt(7)),t.toString()}}wr.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]);wr.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1]),];class we extends oi{constructor(n){super();let i=n==null?null:n.get(yt.POSSIBLE_FORMATS),t=[];i!=null&&(i.indexOf(v.EAN_13)>-1&&t.push(new bu),i.indexOf(v.UPC_A)>-1&&t.push(new ko),i.indexOf(v.EAN_8)>-1&&t.push(new bo),i.indexOf(v.UPC_E)>-1&&t.push(new wr));t.length===0&&(t.push(new bu),t.push(new ko),t.push(new bo),t.push(new wr));this.readers=t}decodeRow(n,t,i){for(let r of this.readers)try{const u=r.decodeRow(n,t,i),e=u.getBarcodeFormat()===v.EAN_13&&u.getText().charAt(0)==="0",f=i==null?null:i.get(yt.POSSIBLE_FORMATS),o=f==null||f.includes(v.UPC_A);if(e&&o){const n=u.getRawBytes(),t=new gi(u.getText().substring(1),n,n?n.length:null,u.getResultPoints(),v.UPC_A);return t.putAllMetadata(u.getResultMetadata()),t}return u}catch(u){}throw new u;}reset(){for(let n of this.readers)n.reset()}}class tr extends oi{constructor(){super();this.decodeFinderCounters=new Int32Array(4);this.dataCharacterCounters=new Int32Array(8);this.oddRoundingErrors=new Array(4);this.evenRoundingErrors=new Array(4);this.oddCounts=new Array(this.dataCharacterCounters.length/2);this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(n,t){for(let i=0;i<t.length;i++)if(oi.patternMatchVariance(n,t[i],tr.MAX_INDIVIDUAL_VARIANCE)<tr.MAX_AVG_VARIANCE)return i;throw new u;}static count(n){return it.sum(new Int32Array(n))}static increment(n,t){let i=0,r=t[0];for(let u=1;u<n.length;u++)t[u]>r&&(r=t[u],i=u);n[i]++}static decrement(n,t){let i=0,r=t[0];for(let u=1;u<n.length;u++)t[u]<r&&(r=t[u],i=u);n[i]--}static isFinderPattern(n){let t=n[0]+n[1],r=t+n[2]+n[3],i=t/r;if(i>=tr.MIN_FINDER_PATTERN_RATIO&&i<=tr.MAX_FINDER_PATTERN_RATIO){let t=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;for(let r of n)r>i&&(i=r),r<t&&(t=r);return i<10*t}return!1}}tr.MAX_AVG_VARIANCE=.2;tr.MAX_INDIVIDUAL_VARIANCE=.45;tr.MIN_FINDER_PATTERN_RATIO=9.5/12;tr.MAX_FINDER_PATTERN_RATIO=12.5/14;class hf{constructor(n,t){this.value=n;this.checksumPortion=t}getValue(){return this.value}getChecksumPortion(){return this.checksumPortion}toString(){return this.value+"("+this.checksumPortion+")"}equals(n){if(!(n instanceof hf))return!1;const t=n;return this.value===t.value&&this.checksumPortion===t.checksumPortion}hashCode(){return this.value^this.checksumPortion}}class be{constructor(n,t,i,r,u){this.value=n;this.startEnd=t;this.value=n;this.startEnd=t;this.resultPoints=[];this.resultPoints.push(new l(i,u));this.resultPoints.push(new l(r,u))}getValue(){return this.value}getStartEnd(){return this.startEnd}getResultPoints(){return this.resultPoints}equals(n){if(!(n instanceof be))return!1;const t=n;return this.value===t.value}hashCode(){return this.value}}class kr{constructor(){}static getRSSvalue(n,t,i){let u=0;for(let t of n)u+=t;let e=0,f=0,r=n.length;for(let o=0;o<r-1;o++){let s;for(s=1,f|=1<<o;s<n[o];s++,f&=~(1<<o)){let n=kr.combins(u-s-1,r-o-2);if(i&&f===0&&u-s-(r-o-1)>=r-o-1&&(n-=kr.combins(u-s-(r-o),r-o-2)),r-o-1>1){let i=0;for(let n=u-s-(r-o-2);n>t;n--)i+=kr.combins(u-s-n-1,r-o-3);n-=i*(r-1-o)}else u-s>t&&n--;e+=n}u-=s}return e}static combins(n,t){let f,r;n-t>t?(r=t,f=n-t):(r=n-t,f=t);let u=1,i=1;for(let t=n;t>f;t--)u*=t,i<=r&&(u/=i,i++);while(i<=r)u/=i,i++;return u}}class eh{static buildBitArray(n){let r=n.length*2-1;n[n.length-1].getRightChar()==null&&(r-=1);let u=12*r,i=new kt(u),t=0,f=n[0],e=f.getRightChar().getValue();for(let n=11;n>=0;--n)(e&1<<n)!=0&&i.set(t),t++;for(let r=1;r<n.length;++r){let u=n[r],f=u.getLeftChar().getValue();for(let n=11;n>=0;--n)(f&1<<n)!=0&&i.set(t),t++;if(u.getRightChar()!=null){let n=u.getRightChar().getValue();for(let r=11;r>=0;--r)(n&1<<r)!=0&&i.set(t),t++}}return i}}class cu{constructor(n,t){t?this.decodedInformation=null:(this.finished=n,this.decodedInformation=t)}getDecodedInformation(){return this.decodedInformation}isFinished(){return this.finished}}class ke{constructor(n){this.newPosition=n}getNewPosition(){return this.newPosition}}class or extends ke{constructor(n,t){super(n);this.value=t}getValue(){return this.value}isFNC1(){return this.value===or.FNC1}}or.FNC1="$";class lu extends ke{constructor(n,t,i){super(n);i?(this.remaining=!0,this.remainingValue=this.remainingValue):(this.remaining=!1,this.remainingValue=0);this.newString=t}getNewString(){return this.newString}isRemaining(){return this.remaining}getRemainingValue(){return this.remainingValue}}class vr extends ke{constructor(n,t,i){if(super(n),t<0||t>10||i<0||i>10)throw new o;this.firstDigit=t;this.secondDigit=i}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return this.firstDigit*10+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===vr.FNC1}isSecondDigitFNC1(){return this.secondDigit===vr.FNC1}isAnyFNC1(){return this.firstDigit===vr.FNC1||this.secondDigit===vr.FNC1}}vr.FNC1=10;class h{constructor(){}static parseFieldsInGeneralPurpose(n){if(!n)return null;if(n.length<2)throw new u;let i=n.substring(0,2);for(let t of h.TWO_DIGIT_DATA_LENGTH)if(t[0]===i)return t[1]===h.VARIABLE_LENGTH?h.processVariableAI(2,t[2],n):h.processFixedAI(2,t[1],n);if(n.length<3)throw new u;let t=n.substring(0,3);for(let i of h.THREE_DIGIT_DATA_LENGTH)if(i[0]===t)return i[1]===h.VARIABLE_LENGTH?h.processVariableAI(3,i[2],n):h.processFixedAI(3,i[1],n);for(let i of h.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(i[0]===t)return i[1]===h.VARIABLE_LENGTH?h.processVariableAI(4,i[2],n):h.processFixedAI(4,i[1],n);if(n.length<4)throw new u;let r=n.substring(0,4);for(let t of h.FOUR_DIGIT_DATA_LENGTH)if(t[0]===r)return t[1]===h.VARIABLE_LENGTH?h.processVariableAI(4,t[2],n):h.processFixedAI(4,t[1],n);throw new u;}static processFixedAI(n,t,i){if(i.length<n)throw new u;let e=i.substring(0,n);if(i.length<n+t)throw new u;let o=i.substring(n,n+t),s=i.substring(n+t),r="("+e+")"+o,f=h.parseFieldsInGeneralPurpose(s);return f==null?r:r+f}static processVariableAI(n,t,i){let e=i.substring(0,n),r;r=i.length<n+t?i.length:n+t;let o=i.substring(n,r),s=i.substring(r),u="("+e+")"+o,f=h.parseFieldsInGeneralPurpose(s);return f==null?u:u+f}}h.VARIABLE_LENGTH=[];h.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",h.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",h.VARIABLE_LENGTH,20],["22",h.VARIABLE_LENGTH,29],["30",h.VARIABLE_LENGTH,8],["37",h.VARIABLE_LENGTH,8],["90",h.VARIABLE_LENGTH,30],["91",h.VARIABLE_LENGTH,30],["92",h.VARIABLE_LENGTH,30],["93",h.VARIABLE_LENGTH,30],["94",h.VARIABLE_LENGTH,30],["95",h.VARIABLE_LENGTH,30],["96",h.VARIABLE_LENGTH,30],["97",h.VARIABLE_LENGTH,3],["98",h.VARIABLE_LENGTH,30],["99",h.VARIABLE_LENGTH,30],];h.THREE_DIGIT_DATA_LENGTH=[["240",h.VARIABLE_LENGTH,30],["241",h.VARIABLE_LENGTH,30],["242",h.VARIABLE_LENGTH,6],["250",h.VARIABLE_LENGTH,30],["251",h.VARIABLE_LENGTH,30],["253",h.VARIABLE_LENGTH,17],["254",h.VARIABLE_LENGTH,20],["400",h.VARIABLE_LENGTH,30],["401",h.VARIABLE_LENGTH,30],["402",17],["403",h.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",h.VARIABLE_LENGTH,20],["421",h.VARIABLE_LENGTH,15],["422",3],["423",h.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3],];h.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",h.VARIABLE_LENGTH,15],["391",h.VARIABLE_LENGTH,18],["392",h.VARIABLE_LENGTH,15],["393",h.VARIABLE_LENGTH,18],["703",h.VARIABLE_LENGTH,30],];h.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",h.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",h.VARIABLE_LENGTH,20],["8003",h.VARIABLE_LENGTH,30],["8004",h.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",h.VARIABLE_LENGTH,30],["8008",h.VARIABLE_LENGTH,12],["8018",18],["8020",h.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",h.VARIABLE_LENGTH,70],["8200",h.VARIABLE_LENGTH,70],];class cf{constructor(n){this.buffer=new ht;this.information=n}decodeAllCodes(n,t){let i=t,r=null;do{let t=this.decodeGeneralPurposeField(i,r),u=h.parseFieldsInGeneralPurpose(t.getNewString());if(u!=null&&n.append(u),r=t.isRemaining()?""+t.getRemainingValue():null,i===t.getNewPosition())break;i=t.getNewPosition()}while(1);return n.toString()}isStillNumeric(n){if(n+7>this.information.getSize())return n+4<=this.information.getSize();for(let t=n;t<n+3;++t)if(this.information.get(t))return!0;return this.information.get(n+3)}decodeNumeric(n){if(n+7>this.information.getSize()){let t=this.extractNumericValueFromBitArray(n,4);return t===0?new vr(this.information.getSize(),vr.FNC1,vr.FNC1):new vr(this.information.getSize(),t-1,vr.FNC1)}let t=this.extractNumericValueFromBitArray(n,7),i=(t-8)/11,r=(t-8)%11;return new vr(n+7,i,r)}extractNumericValueFromBitArray(n,t){return cf.extractNumericValueFromBitArray(this.information,n,t)}static extractNumericValueFromBitArray(n,t,i){let r=0;for(let u=0;u<i;++u)n.get(t+u)&&(r|=1<<i-u-1);return r}decodeGeneralPurposeField(n,t){this.buffer.setLengthToZero();t!=null&&this.buffer.append(t);this.current.setPosition(n);let i=this.parseBlocks();return i!=null&&i.isRemaining()?new lu(this.current.getPosition(),this.buffer.toString(),i.getRemainingValue()):new lu(this.current.getPosition(),this.buffer.toString())}parseBlocks(){let t,n;do{let i=this.current.getPosition();this.current.isAlpha()?(n=this.parseAlphaBlock(),t=n.isFinished()):this.current.isIsoIec646()?(n=this.parseIsoIec646Block(),t=n.isFinished()):(n=this.parseNumericBlock(),t=n.isFinished());let r=i!==this.current.getPosition();if(!r&&!t)break}while(!t);return n.getDecodedInformation()}parseNumericBlock(){while(this.isStillNumeric(this.current.getPosition())){let n=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(n.getNewPosition()),n.isFirstDigitFNC1()){let t;return t=n.isSecondDigitFNC1()?new lu(this.current.getPosition(),this.buffer.toString()):new lu(this.current.getPosition(),this.buffer.toString(),n.getSecondDigit()),new cu(!0,t)}if(this.buffer.append(n.getFirstDigit()),n.isSecondDigitFNC1()){let n=new lu(this.current.getPosition(),this.buffer.toString());return new cu(!0,n)}this.buffer.append(n.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new cu(!1)}parseIsoIec646Block(){while(this.isStillIsoIec646(this.current.getPosition())){let n=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(n.getNewPosition()),n.isFNC1()){let n=new lu(this.current.getPosition(),this.buffer.toString());return new cu(!0,n)}this.buffer.append(n.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new cu(!1)}parseAlphaBlock(){while(this.isStillAlpha(this.current.getPosition())){let n=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(n.getNewPosition()),n.isFNC1()){let n=new lu(this.current.getPosition(),this.buffer.toString());return new cu(!0,n)}this.buffer.append(n.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new cu(!1)}isStillIsoIec646(n){if(n+5>this.information.getSize())return!1;let t=this.extractNumericValueFromBitArray(n,5);if(t>=5&&t<16)return!0;if(n+7>this.information.getSize())return!1;let i=this.extractNumericValueFromBitArray(n,7);if(i>=64&&i<116)return!0;if(n+8>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(n,8);return r>=232&&r<253}decodeIsoIec646(n){let r=this.extractNumericValueFromBitArray(n,5);if(r===15)return new or(n+5,or.FNC1);if(r>=5&&r<15)return new or(n+5,"0"+(r-5));let i=this.extractNumericValueFromBitArray(n,7);if(i>=64&&i<90)return new or(n+7,""+(i+1));if(i>=90&&i<116)return new or(n+7,""+(i+7));let u=this.extractNumericValueFromBitArray(n,8),t;switch(u){case 232:t="!";break;case 233:t='"';break;case 234:t="%";break;case 235:t="&";break;case 236:t="'";break;case 237:t="(";break;case 238:t=")";break;case 239:t="*";break;case 240:t="+";break;case 241:t=",";break;case 242:t="-";break;case 243:t=".";break;case 244:t="/";break;case 245:t=":";break;case 246:t=";";break;case 247:t="<";break;case 248:t="=";break;case 249:t=">";break;case 250:t="?";break;case 251:t="_";break;case 252:t=" ";break;default:throw new o;}return new or(n+8,t)}isStillAlpha(n){if(n+5>this.information.getSize())return!1;let t=this.extractNumericValueFromBitArray(n,5);if(t>=5&&t<16)return!0;if(n+6>this.information.getSize())return!1;let i=this.extractNumericValueFromBitArray(n,6);return i>=16&&i<63}decodeAlphanumeric(n){let r=this.extractNumericValueFromBitArray(n,5);if(r===15)return new or(n+5,or.FNC1);if(r>=5&&r<15)return new or(n+5,"0"+(r-5));let i=this.extractNumericValueFromBitArray(n,6);if(i>=32&&i<58)return new or(n+6,""+(i+33));let t;switch(i){case 58:t="*";break;case 59:t=",";break;case 60:t="-";break;case 61:t=".";break;case 62:t="/";break;default:throw new yr("Decoding invalid alphanumeric value: "+i);}return new or(n+6,t)}isAlphaTo646ToAlphaLatch(n){if(n+1>this.information.getSize())return!1;for(let t=0;t<5&&t+n<this.information.getSize();++t)if(t===2){if(!this.information.get(n+2))return!1}else if(this.information.get(n+t))return!1;return!0}isAlphaOr646ToNumericLatch(n){if(n+3>this.information.getSize())return!1;for(let t=n;t<n+3;++t)if(this.information.get(t))return!1;return!0}isNumericToAlphaNumericLatch(n){if(n+1>this.information.getSize())return!1;for(let t=0;t<4&&t+n<this.information.getSize();++t)if(this.information.get(n+t))return!1;return!0}}class de{constructor(n){this.information=n;this.generalDecoder=new cf(n)}getInformation(){return this.information}getGeneralDecoder(){return this.generalDecoder}}class sr extends de{constructor(n){super(n)}encodeCompressedGtin(n,t){n.append("(01)");let i=n.length();n.append("9");this.encodeCompressedGtinWithoutAI(n,t,i)}encodeCompressedGtinWithoutAI(n,t,i){for(let i=0;i<4;++i){let r=this.getGeneralDecoder().extractNumericValueFromBitArray(t+10*i,10);r/100==0&&n.append("0");r/10==0&&n.append("0");n.append(r)}sr.appendCheckDigit(n,i)}static appendCheckDigit(n,t){let i=0;for(let r=0;r<13;r++){let u=n.charAt(r+t).charCodeAt(0)-"0".charCodeAt(0);i+=(r&1)==0?3*u:u}i=10-i%10;i===10&&(i=0);n.append(i)}}sr.GTIN_SIZE=40;class lf extends sr{constructor(n){super(n)}parseInformation(){let n=new ht;n.append("(01)");let t=n.length(),i=this.getGeneralDecoder().extractNumericValueFromBitArray(lf.HEADER_SIZE,4);return n.append(i),this.encodeCompressedGtinWithoutAI(n,lf.HEADER_SIZE+4,t),this.getGeneralDecoder().decodeAllCodes(n,lf.HEADER_SIZE+44)}}lf.HEADER_SIZE=4;class ge extends de{constructor(n){super(n)}parseInformation(){let n=new ht;return this.getGeneralDecoder().decodeAllCodes(n,ge.HEADER_SIZE)}}ge.HEADER_SIZE=5;class te extends sr{constructor(n){super(n)}encodeCompressedWeight(n,t,i){let r=this.getGeneralDecoder().extractNumericValueFromBitArray(t,i);this.addWeightCode(n,r);let u=this.checkWeight(r),f=1e5;for(let t=0;t<5;++t)u/f==0&&n.append("0"),f/=10;n.append(u)}}class dr extends te{constructor(n){super(n)}parseInformation(){if(this.getInformation().getSize()!=dr.HEADER_SIZE+te.GTIN_SIZE+dr.WEIGHT_SIZE)throw new u;let n=new ht;return this.encodeCompressedGtin(n,dr.HEADER_SIZE),this.encodeCompressedWeight(n,dr.HEADER_SIZE+te.GTIN_SIZE,dr.WEIGHT_SIZE),n.toString()}}dr.HEADER_SIZE=5;dr.WEIGHT_SIZE=15;class oh extends dr{constructor(n){super(n)}addWeightCode(n){n.append("(3103)")}checkWeight(n){return n}}class sh extends dr{constructor(n){super(n)}addWeightCode(n,t){t<1e4?n.append("(3202)"):n.append("(3203)")}checkWeight(n){return n<1e4?n:n-1e4}}class gr extends sr{constructor(n){super(n)}parseInformation(){if(this.getInformation().getSize()<gr.HEADER_SIZE+sr.GTIN_SIZE)throw new u;let n=new ht;this.encodeCompressedGtin(n,gr.HEADER_SIZE);let t=this.getGeneralDecoder().extractNumericValueFromBitArray(gr.HEADER_SIZE+sr.GTIN_SIZE,gr.LAST_DIGIT_SIZE);n.append("(392");n.append(t);n.append(")");let i=this.getGeneralDecoder().decodeGeneralPurposeField(gr.HEADER_SIZE+sr.GTIN_SIZE+gr.LAST_DIGIT_SIZE,null);return n.append(i.getNewString()),n.toString()}}gr.HEADER_SIZE=8;gr.LAST_DIGIT_SIZE=2;class rr extends sr{constructor(n){super(n)}parseInformation(){if(this.getInformation().getSize()<rr.HEADER_SIZE+sr.GTIN_SIZE)throw new u;let n=new ht;this.encodeCompressedGtin(n,rr.HEADER_SIZE);let i=this.getGeneralDecoder().extractNumericValueFromBitArray(rr.HEADER_SIZE+sr.GTIN_SIZE,rr.LAST_DIGIT_SIZE);n.append("(393");n.append(i);n.append(")");let t=this.getGeneralDecoder().extractNumericValueFromBitArray(rr.HEADER_SIZE+sr.GTIN_SIZE+rr.LAST_DIGIT_SIZE,rr.FIRST_THREE_DIGITS_SIZE);t/100==0&&n.append("0");t/10==0&&n.append("0");n.append(t);let r=this.getGeneralDecoder().decodeGeneralPurposeField(rr.HEADER_SIZE+sr.GTIN_SIZE+rr.LAST_DIGIT_SIZE+rr.FIRST_THREE_DIGITS_SIZE,null);return n.append(r.getNewString()),n.toString()}}rr.HEADER_SIZE=8;rr.LAST_DIGIT_SIZE=2;rr.FIRST_THREE_DIGITS_SIZE=10;class dt extends te{constructor(n,t,i){super(n);this.dateCode=i;this.firstAIdigits=t}parseInformation(){if(this.getInformation().getSize()!=dt.HEADER_SIZE+dt.GTIN_SIZE+dt.WEIGHT_SIZE+dt.DATE_SIZE)throw new u;let n=new ht;return this.encodeCompressedGtin(n,dt.HEADER_SIZE),this.encodeCompressedWeight(n,dt.HEADER_SIZE+dt.GTIN_SIZE,dt.WEIGHT_SIZE),this.encodeCompressedDate(n,dt.HEADER_SIZE+dt.GTIN_SIZE+dt.WEIGHT_SIZE),n.toString()}encodeCompressedDate(n,t){let i=this.getGeneralDecoder().extractNumericValueFromBitArray(t,dt.DATE_SIZE);if(i!=38400){n.append("(");n.append(this.dateCode);n.append(")");let r=i%32;i/=32;let u=i%12+1;i/=12;let f=i;f/10==0&&n.append("0");n.append(f);u/10==0&&n.append("0");n.append(u);r/10==0&&n.append("0");n.append(r)}}addWeightCode(n,t){n.append("(");n.append(this.firstAIdigits);n.append(t/1e5);n.append(")")}checkWeight(n){return n%1e5}}dt.HEADER_SIZE=8;dt.WEIGHT_SIZE=20;dt.DATE_SIZE=16;class au{constructor(n,t,i,r){this.leftchar=n;this.rightchar=t;this.finderpattern=i;this.maybeLast=r}mayBeLast(){return this.maybeLast}getLeftChar(){return this.leftchar}getRightChar(){return this.rightchar}getFinderPattern(){return this.finderpattern}mustBeLast(){return this.rightchar==null}toString(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(this.finderpattern==null?"null":this.finderpattern.getValue())+" ]"}static equals(n,t){return(n instanceof au)?au.equalsOrNull(n.leftchar,t.leftchar)&&au.equalsOrNull(n.rightchar,t.rightchar)&&au.equalsOrNull(n.finderpattern,t.finderpattern):!1}static equalsOrNull(n,t){return n===null?t===null:au.equals(n,t)}hashCode(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()}}class ns{constructor(n,t,i){this.pairs=n;this.rowNumber=t;this.wasReversed=i}getPairs(){return this.pairs}getRowNumber(){return this.rowNumber}isReversed(){return this.wasReversed}isEquivalent(n){return this.checkEqualitity(this,n)}toString(){return"{ "+this.pairs+" }"}equals(n,t){return(n instanceof ns)?this.checkEqualitity(n,t)&&n.wasReversed===t.wasReversed:!1}checkEqualitity(n,t){if(n&&t){let i;return n.forEach(n=>{t.forEach(t=>{n.getLeftChar().getValue()===t.getLeftChar().getValue()&&n.getRightChar().getValue()===t.getRightChar().getValue()&&n.getFinderPatter().getValue()===t.getFinderPatter().getValue()&&(i=!0)})}),i}}}class f extends tr{constructor(){super(...arguments);this.pairs=new Array(f.MAX_PAIRS);this.rows=[];this.startEnd=[2]}decodeRow(n,t){this.pairs.length=0;this.startFromEven=!1;try{return f.constructResult(this.decodeRow2pairs(n,t))}catch(i){}return this.pairs.length=0,this.startFromEven=!0,f.constructResult(this.decodeRow2pairs(n,t))}reset(){this.pairs.length=0;this.rows.length=0}decodeRow2pairs(n,t){let i=!1;while(!i)try{this.pairs.push(this.retrieveNextPair(t,this.pairs,n))}catch(f){if(f instanceof u){if(!this.pairs.length)throw new u;i=!0}}if(this.checkChecksum())return this.pairs;let r;if(r=this.rows.length?!0:!1,this.storeRow(n,!1),r){let n=this.checkRowsBoolean(!1);if(n!=null||(n=this.checkRowsBoolean(!0),n!=null))return n}throw new u;}checkRowsBoolean(n){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0;n&&(this.rows=this.rows.reverse());let t=null;try{t=this.checkRows([],0)}catch(i){console.log(i)}return n&&(this.rows=this.rows.reverse()),t}checkRows(n,t){for(let i=t;i<this.rows.length;i++){let t=this.rows[i];this.pairs.length=0;for(let t of n)this.pairs.push(t.getPairs());if(this.pairs.push(t.getPairs()),f.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;let r=new Array(n);r.push(t);try{return this.checkRows(r,i+1)}catch(u){console.log(u)}}}throw new u;}static isValidSequence(n){for(let t of f.FINDER_PATTERN_SEQUENCES)if(!(n.length>t.length)){let i=!0;for(let r=0;r<n.length;r++)if(n[r].getFinderPattern().getValue()!=t[r]){i=!1;break}if(i)return!0}return!1}storeRow(n,t){let i=0,r=!1,u=!1;while(i<this.rows.length){let t=this.rows[i];if(t.getRowNumber()>n){u=t.isEquivalent(this.pairs);break}r=t.isEquivalent(this.pairs);i++}u||r||f.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new ns(this.pairs,n,t)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(n,t){for(let i of t)if(i.getPairs().length!==n.length)for(let t of i.getPairs())for(let i of n)if(au.equals(t,i))break}static isPartialRow(n,t){for(let i of t){let t=!0;for(let r of n){let n=!1;for(let t of i.getPairs())if(r.equals(t)){n=!0;break}if(!n){t=!1;break}}if(t)return!0}return!1}getRows(){return this.rows}static constructResult(n){let r=eh.buildBitArray(n),u=go(r),f=u.parseInformation(),t=n[0].getFinderPattern().getResultPoints(),i=n[n.length-1].getFinderPattern().getResultPoints(),e=[t[0],t[1],i[0],i[1]];return new gi(f,null,null,e,v.RSS_EXPANDED,null)}checkChecksum(){let i=this.pairs.get(0),u=i.getLeftChar(),r=i.getRightChar();if(r==null)return!1;let n=r.getChecksumPortion(),t=2;for(let i=1;i<this.pairs.size();++i){let r=this.pairs.get(i);n+=r.getLeftChar().getChecksumPortion();t++;let u=r.getRightChar();u!=null&&(n+=u.getChecksumPortion(),t++)}n%=211;let f=211*(t-4)+n;return f==u.getValue()}static getNextSecondBar(n,t){let i;return n.get(t)?(i=n.getNextUnset(t),i=n.getNextSet(i)):(i=n.getNextSet(t),i=n.getNextUnset(i)),i}retrieveNextPair(n,t,i){let r=t.length%2==0;this.startFromEven&&(r=!r);let e,s=!0,h=-1;do this.findNextPair(n,t,h),e=this.parseFoundFinderPattern(n,i,r),e==null?h=f.getNextSecondBar(n,this.startEnd[0]):s=!1;while(s);let c=this.decodeDataCharacter(n,e,r,!0);if(!this.isEmptyPair(t)&&t[t.length-1].mustBeLast())throw new u;let o;try{o=this.decodeDataCharacter(n,e,r,!1)}catch(l){o=null;console.log(l)}return new au(c,o,e,!0)}isEmptyPair(n){return n.length===0?!0:!1}findNextPair(n,t,i){let r=this.getDecodeFinderCounters();r[0]=0;r[1]=0;r[2]=0;r[3]=0;let c=n.getSize(),e;if(i>=0)e=i;else if(this.isEmptyPair(t))e=0;else{let n=t[t.length-1];e=n.getFinderPattern().getStartEnd()[1]}let h=t.length%2!=0;this.startFromEven&&(h=!h);let o=!1;while(e<c){if(o=!n.get(e),!o)break;e++}let s=0,l=e;for(let t=e;t<c;t++)if(n.get(t)!=o)r[s]++;else{if(s==3){if(h&&f.reverseCounters(r),f.isFinderPattern(r)){this.startEnd[0]=l;this.startEnd[1]=t;return}h&&f.reverseCounters(r);l+=r[0]+r[1];r[0]=r[2];r[1]=r[3];r[2]=0;r[3]=0;s--}else s++;r[s]=1;o=!o}throw new u;}static reverseCounters(n){let t=n.length;for(let i=0;i<t/2;++i){let r=n[i];n[i]=n[t-i-1];n[t-i-1]=r}}parseFoundFinderPattern(n,t,i){let o,e,r;if(i){let t=this.startEnd[0]-1;while(t>=0&&!n.get(t))t--;t++;o=this.startEnd[0]-t;e=t;r=this.startEnd[1]}else e=this.startEnd[0],r=n.getNextUnset(this.startEnd[1]+1),o=r-this.startEnd[1];let u=this.getDecodeFinderCounters();lt.arraycopy(u,0,u,1,u.length-1);u[0]=o;let s;try{s=this.parseFinderValue(u,f.FINDER_PATTERNS)}catch(h){return null}return new be(s,[e,r],e,r,t)}decodeDataCharacter(n,t,i,r){let e=this.getDataCharacterCounters();for(let n=0;n<e.length;n++)e[n]=0;if(r)f.recordPatternInReverse(n,t.getStartEnd()[0],e);else{f.recordPattern(n,t.getStartEnd()[1],e);for(let n=0,t=e.length-1;n<t;n++,t--){let i=e[n];e[n]=e[t];e[t]=i}}let l=17,a=it.sum(new Int32Array(e))/l,v=(t.getStartEnd()[1]-t.getStartEnd()[0])/15;if(Math.abs(a-v)/v>.3)throw new u;let o=this.getOddCounts(),h=this.getEvenCounts(),k=this.getOddRoundingErrors(),d=this.getEvenRoundingErrors();for(let n=0;n<e.length;n++){let i=1*e[n]/a,t=i+.5;if(t<1){if(i<.3)throw new u;t=1}else if(t>8){if(i>8.7)throw new u;t=8}let r=n/2;(n&1)==0?(o[r]=t,k[r]=i-t):(h[r]=t,d[r]=i-t)}this.adjustOddEvenCounts(l);let y=4*t.getValue()+(i?0:2)+(r?0:1)-1,s=0,p=0;for(let n=o.length-1;n>=0;n--){if(f.isNotA1left(t,i,r)){let t=f.WEIGHTS[y][2*n];p+=o[n]*t}s+=o[n]}let w=0;for(let n=h.length-1;n>=0;n--)if(f.isNotA1left(t,i,r)){let t=f.WEIGHTS[y][2*n+1];w+=h[n]*t}let g=p+w;if((s&1)!=0||s>13||s<4)throw new u;let c=(13-s)/2,b=f.SYMBOL_WIDEST[c],nt=9-b,tt=kr.getRSSvalue(o,b,!0),rt=kr.getRSSvalue(h,nt,!1),ut=f.EVEN_TOTAL_SUBSET[c],ft=f.GSUM[c],et=tt*ut+rt+ft;return new hf(et,g)}static isNotA1left(n,t,i){return!(n.getValue()==0&&t&&i)}adjustOddEvenCounts(n){let i=it.sum(new Int32Array(this.getOddCounts())),r=it.sum(new Int32Array(this.getEvenCounts())),s=!1,e=!1;i>13?e=!0:i<4&&(s=!0);let h=!1,o=!1;r>13?o=!0:r<4&&(h=!0);let c=i+r-n,l=(i&1)==1,t=(r&1)==0;if(c==1)if(l){if(t)throw new u;e=!0}else{if(!t)throw new u;o=!0}else if(c==-1)if(l){if(t)throw new u;s=!0}else{if(!t)throw new u;h=!0}else if(c==0){if(l){if(!t)throw new u;i<r?(s=!0,o=!0):(e=!0,h=!0)}else if(t)throw new u;}else throw new u;if(s){if(e)throw new u;f.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(e&&f.decrement(this.getOddCounts(),this.getOddRoundingErrors()),h){if(o)throw new u;f.increment(this.getEvenCounts(),this.getOddRoundingErrors())}o&&f.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}f.SYMBOL_WIDEST=[7,5,4,3,1];f.EVEN_TOTAL_SUBSET=[4,20,52,104,204];f.GSUM=[0,348,1388,2948,3988];f.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])];f.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]];f.FINDER_PAT_A=0;f.FINDER_PAT_B=1;f.FINDER_PAT_C=2;f.FINDER_PAT_D=3;f.FINDER_PAT_E=4;f.FINDER_PAT_F=5;f.FINDER_PATTERN_SEQUENCES=[[f.FINDER_PAT_A,f.FINDER_PAT_A],[f.FINDER_PAT_A,f.FINDER_PAT_B,f.FINDER_PAT_B],[f.FINDER_PAT_A,f.FINDER_PAT_C,f.FINDER_PAT_B,f.FINDER_PAT_D],[f.FINDER_PAT_A,f.FINDER_PAT_E,f.FINDER_PAT_B,f.FINDER_PAT_D,f.FINDER_PAT_C],[f.FINDER_PAT_A,f.FINDER_PAT_E,f.FINDER_PAT_B,f.FINDER_PAT_D,f.FINDER_PAT_D,f.FINDER_PAT_F],[f.FINDER_PAT_A,f.FINDER_PAT_E,f.FINDER_PAT_B,f.FINDER_PAT_D,f.FINDER_PAT_E,f.FINDER_PAT_F,f.FINDER_PAT_F],[f.FINDER_PAT_A,f.FINDER_PAT_A,f.FINDER_PAT_B,f.FINDER_PAT_B,f.FINDER_PAT_C,f.FINDER_PAT_C,f.FINDER_PAT_D,f.FINDER_PAT_D],[f.FINDER_PAT_A,f.FINDER_PAT_A,f.FINDER_PAT_B,f.FINDER_PAT_B,f.FINDER_PAT_C,f.FINDER_PAT_C,f.FINDER_PAT_D,f.FINDER_PAT_E,f.FINDER_PAT_E],[f.FINDER_PAT_A,f.FINDER_PAT_A,f.FINDER_PAT_B,f.FINDER_PAT_B,f.FINDER_PAT_C,f.FINDER_PAT_C,f.FINDER_PAT_D,f.FINDER_PAT_E,f.FINDER_PAT_F,f.FINDER_PAT_F],[f.FINDER_PAT_A,f.FINDER_PAT_A,f.FINDER_PAT_B,f.FINDER_PAT_B,f.FINDER_PAT_C,f.FINDER_PAT_D,f.FINDER_PAT_D,f.FINDER_PAT_E,f.FINDER_PAT_E,f.FINDER_PAT_F,f.FINDER_PAT_F],];f.MAX_PAIRS=11;class hh extends hf{constructor(n,t,i){super(n,t);this.count=0;this.finderPattern=i}getFinderPattern(){return this.finderPattern}getCount(){return this.count}incrementCount(){this.count++}}class ti extends tr{constructor(){super(...arguments);this.possibleLeftPairs=[];this.possibleRightPairs=[]}decodeRow(n,t,i){const r=this.decodePair(t,!1,n,i);ti.addOrTally(this.possibleLeftPairs,r);t.reverse();let f=this.decodePair(t,!0,n,i);ti.addOrTally(this.possibleRightPairs,f);t.reverse();for(let n of this.possibleLeftPairs)if(n.getCount()>1)for(let t of this.possibleRightPairs)if(t.getCount()>1&&ti.checkChecksum(n,t))return ti.constructResult(n,t);throw new u;}static addOrTally(n,t){if(t!=null){let i=!1;for(let r of n)if(r.getValue()===t.getValue()){r.incrementCount();i=!0;break}i||n.push(t)}}reset(){this.possibleLeftPairs.length=0;this.possibleRightPairs.length=0}static constructResult(n,t){let o=4537077*n.getValue()+t.getValue(),u=new String(o).toString(),r=new ht;for(let n=13-u.length;n>0;n--)r.append("0");r.append(u);let i=0;for(let n=0;n<13;n++){let t=r.charAt(n).charCodeAt(0)-"0".charCodeAt(0);i+=(n&1)==0?3*t:t}i=10-i%10;i===10&&(i=0);r.append(i.toString());let f=n.getFinderPattern().getResultPoints(),e=t.getFinderPattern().getResultPoints();return new gi(r.toString(),null,0,[f[0],f[1],e[0],e[1]],v.RSS_14,(new Date).getTime())}static checkChecksum(n,t){let r=(n.getChecksumPortion()+16*t.getChecksumPortion())%79,i=9*n.getFinderPattern().getValue()+t.getFinderPattern().getValue();return i>72&&i--,i>8&&i--,r===i}decodePair(n,t,i,r){try{let u=this.findFinderPattern(n,t),f=this.parseFoundFinderPattern(n,i,t,u),e=r==null?null:r.get(yt.NEED_RESULT_POINT_CALLBACK);if(e!=null){let r=(u[0]+u[1])/2;t&&(r=n.getSize()-1-r);e.foundPossibleResultPoint(new l(r,i))}let o=this.decodeDataCharacter(n,f,!0),s=this.decodeDataCharacter(n,f,!1);return new hh(1597*o.getValue()+s.getValue(),o.getChecksumPortion()+4*s.getChecksumPortion(),f)}catch(u){return null}}decodeDataCharacter(n,t,i){let r=this.getDataCharacterCounters();for(let n=0;n<r.length;n++)r[n]=0;if(i)oi.recordPatternInReverse(n,t.getStartEnd()[0],r);else{oi.recordPattern(n,t.getStartEnd()[1]+1,r);for(let n=0,t=r.length-1;n<t;n++,t--){let i=r[n];r[n]=r[t];r[t]=i}}let l=i?16:15,v=it.sum(new Int32Array(r))/l,f=this.getOddCounts(),e=this.getEvenCounts(),y=this.getOddRoundingErrors(),p=this.getEvenRoundingErrors();for(let n=0;n<r.length;n++){let u=r[n]/v,t=Math.floor(u+.5);t<1?t=1:t>8&&(t=8);let i=Math.floor(n/2);(n&1)==0?(f[i]=t,y[i]=u-t):(e[i]=t,p[i]=u-t)}this.adjustOddEvenCounts(i,l);let o=0,h=0;for(let n=f.length-1;n>=0;n--)h*=9,h+=f[n],o+=f[n];let c=0,s=0;for(let n=e.length-1;n>=0;n--)c*=9,c+=e[n],s+=e[n];let a=h+3*c;if(i){if((o&1)!=0||o>12||o<4)throw new u;let n=(12-o)/2,t=ti.OUTSIDE_ODD_WIDEST[n],i=9-t,r=kr.getRSSvalue(f,t,!1),s=kr.getRSSvalue(e,i,!0),h=ti.OUTSIDE_EVEN_TOTAL_SUBSET[n],c=ti.OUTSIDE_GSUM[n];return new hf(r*h+s+c,a)}else{if((s&1)!=0||s>10||s<4)throw new u;let n=(10-s)/2,t=ti.INSIDE_ODD_WIDEST[n],i=9-t,r=kr.getRSSvalue(f,t,!0),o=kr.getRSSvalue(e,i,!1),h=ti.INSIDE_ODD_TOTAL_SUBSET[n],c=ti.INSIDE_GSUM[n];return new hf(o*h+r+c,a)}}findFinderPattern(n,t){let i=this.getDecodeFinderCounters();i[0]=0;i[1]=0;i[2]=0;i[3]=0;let o=n.getSize(),r=!1,f=0;while(f<o){if(r=!n.get(f),t===r)break;f++}let e=0,s=f;for(let t=f;t<o;t++)if(n.get(t)!==r)i[e]++;else{if(e===3){if(tr.isFinderPattern(i))return[s,t];s+=i[0]+i[1];i[0]=i[2];i[1]=i[3];i[2]=0;i[3]=0;e--}else e++;i[e]=1;r=!r}throw new u;}parseFoundFinderPattern(n,t,i,r){let h=n.get(r[0]),u=r[0]-1;while(u>=0&&h!==n.get(u))u--;u++;const c=r[0]-u,f=this.getDecodeFinderCounters(),e=new Int32Array(f.length);lt.arraycopy(f,0,e,1,f.length-1);e[0]=c;const l=this.parseFinderValue(e,ti.FINDER_PATTERNS);let o=u,s=r[1];return i&&(o=n.getSize()-1-o,s=n.getSize()-1-s),new be(l,[u,r[1]],o,s,t)}adjustOddEvenCounts(n,t){let i=it.sum(new Int32Array(this.getOddCounts())),r=it.sum(new Int32Array(this.getEvenCounts())),s=!1,f=!1,h=!1,e=!1;n?(i>12?f=!0:i<4&&(s=!0),r>12?e=!0:r<4&&(h=!0)):(i>11?f=!0:i<5&&(s=!0),r>10?e=!0:r<4&&(h=!0));let c=i+r-t,l=(i&1)==(n?1:0),o=(r&1)==1;if(c===1)if(l){if(o)throw new u;f=!0}else{if(!o)throw new u;e=!0}else if(c===-1)if(l){if(o)throw new u;s=!0}else{if(!o)throw new u;h=!0}else if(c===0){if(l){if(!o)throw new u;i<r?(s=!0,e=!0):(f=!0,h=!0)}else if(o)throw new u;}else throw new u;if(s){if(f)throw new u;tr.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(f&&tr.decrement(this.getOddCounts(),this.getOddRoundingErrors()),h){if(e)throw new u;tr.increment(this.getEvenCounts(),this.getOddRoundingErrors())}e&&tr.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}ti.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126];ti.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81];ti.OUTSIDE_GSUM=[0,161,961,2015,2715];ti.INSIDE_GSUM=[0,336,1036,1516];ti.OUTSIDE_ODD_WIDEST=[8,6,4,3,1];ti.INSIDE_ODD_WIDEST=[2,4,6,8];ti.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1]),];class ku extends oi{constructor(n){super();this.readers=[];const t=n?n.get(yt.POSSIBLE_FORMATS):null,i=n&&n.get(yt.ASSUME_CODE_39_CHECK_DIGIT)!==undefined;t&&((t.includes(v.EAN_13)||t.includes(v.UPC_A)||t.includes(v.EAN_8)||t.includes(v.UPC_E))&&this.readers.push(new we(n)),t.includes(v.CODE_39)&&this.readers.push(new hi(i)),t.includes(v.CODE_128)&&this.readers.push(new s),t.includes(v.ITF)&&this.readers.push(new vt),t.includes(v.RSS_14)&&this.readers.push(new ti),t.includes(v.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),this.readers.push(new f)));this.readers.length===0&&(this.readers.push(new we(n)),this.readers.push(new hi),this.readers.push(new we(n)),this.readers.push(new s),this.readers.push(new vt),this.readers.push(new ti))}decodeRow(n,t,i){for(let r=0;r<this.readers.length;r++)try{return this.readers[r].decodeRow(n,t,i)}catch(u){}throw new u;}reset(){this.readers.forEach(n=>n.reset())}}class ch extends su{constructor(n=500,t){super(new ku(t),n,t)}}class ot{constructor(n,t,i){this.ecCodewords=n;this.ecBlocks=[t];i&&this.ecBlocks.push(i)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class et{constructor(n,t){this.count=n;this.dataCodewords=t}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class tt{constructor(n,t,i,r,u,f){this.versionNumber=n;this.symbolSizeRows=t;this.symbolSizeColumns=i;this.dataRegionSizeRows=r;this.dataRegionSizeColumns=u;this.ecBlocks=f;let e=0;const o=f.getECCodewords(),s=f.getECBlocks();for(let n of s)e+=n.getCount()*(n.getDataCodewords()+o);this.totalCodewords=e}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(n,t){if((n&1)!=0||(t&1)!=0)throw new o;for(let i of tt.VERSIONS)if(i.symbolSizeRows===n&&i.symbolSizeColumns===t)return i;throw new o;}toString(){return""+this.versionNumber}static buildVersions(){return[new tt(1,10,10,8,8,new ot(5,new et(1,3))),new tt(2,12,12,10,10,new ot(7,new et(1,5))),new tt(3,14,14,12,12,new ot(10,new et(1,8))),new tt(4,16,16,14,14,new ot(12,new et(1,12))),new tt(5,18,18,16,16,new ot(14,new et(1,18))),new tt(6,20,20,18,18,new ot(18,new et(1,22))),new tt(7,22,22,20,20,new ot(20,new et(1,30))),new tt(8,24,24,22,22,new ot(24,new et(1,36))),new tt(9,26,26,24,24,new ot(28,new et(1,44))),new tt(10,32,32,14,14,new ot(36,new et(1,62))),new tt(11,36,36,16,16,new ot(42,new et(1,86))),new tt(12,40,40,18,18,new ot(48,new et(1,114))),new tt(13,44,44,20,20,new ot(56,new et(1,144))),new tt(14,48,48,22,22,new ot(68,new et(1,174))),new tt(15,52,52,24,24,new ot(42,new et(2,102))),new tt(16,64,64,14,14,new ot(56,new et(2,140))),new tt(17,72,72,16,16,new ot(36,new et(4,92))),new tt(18,80,80,18,18,new ot(48,new et(4,114))),new tt(19,88,88,20,20,new ot(56,new et(4,144))),new tt(20,96,96,22,22,new ot(68,new et(4,174))),new tt(21,104,104,24,24,new ot(56,new et(6,136))),new tt(22,120,120,18,18,new ot(68,new et(6,175))),new tt(23,132,132,20,20,new ot(62,new et(8,163))),new tt(24,144,144,22,22,new ot(62,new et(8,156),new et(2,155))),new tt(25,8,18,6,16,new ot(7,new et(1,5))),new tt(26,8,32,6,14,new ot(11,new et(1,10))),new tt(27,12,26,10,24,new ot(14,new et(1,16))),new tt(28,12,36,10,16,new ot(18,new et(1,22))),new tt(29,16,36,14,16,new ot(24,new et(1,32))),new tt(30,16,48,14,22,new ot(28,new et(1,49)))]}}tt.VERSIONS=tt.buildVersions();class ts{constructor(n){const t=n.getHeight();if(t<8||t>144||(t&1)!=0)throw new o;this.version=ts.readVersion(n);this.mappingBitMatrix=this.extractDataRegion(n);this.readMappingMatrix=new ai(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(n){const t=n.getHeight(),i=n.getWidth();return tt.getVersionForDimensions(t,i)}readCodewords(){const u=new Int8Array(this.version.getTotalCodewords());let f=0,n=4,t=0;const i=this.mappingBitMatrix.getHeight(),r=this.mappingBitMatrix.getWidth();let e=!1,s=!1,h=!1,c=!1;do if(n!==i||t!==0||e)if(n!==i-2||t!==0||(r&3)==0||s)if(n!==i+4||t!==2||(r&7)!=0||h)if(n!==i-2||t!==0||(r&7)!=4||c){do n<i&&t>=0&&!this.readMappingMatrix.get(t,n)&&(u[f++]=this.readUtah(n,t,i,r)&255),n-=2,t+=2;while(n>=0&&t<r);n+=1;t+=3;do n>=0&&t<r&&!this.readMappingMatrix.get(t,n)&&(u[f++]=this.readUtah(n,t,i,r)&255),n+=2,t-=2;while(n<i&&t>=0);n+=3;t+=1}else u[f++]=this.readCorner4(i,r)&255,n-=2,t+=2,c=!0;else u[f++]=this.readCorner3(i,r)&255,n-=2,t+=2,h=!0;else u[f++]=this.readCorner2(i,r)&255,n-=2,t+=2,s=!0;else u[f++]=this.readCorner1(i,r)&255,n-=2,t+=2,e=!0;while(n<i||t<r);if(f!==this.version.getTotalCodewords())throw new o;return u}readModule(n,t,i,r){return n<0&&(n+=i,t+=4-(i+4&7)),t<0&&(t+=r,n+=4-(r+4&7)),this.readMappingMatrix.set(t,n),this.mappingBitMatrix.get(t,n)}readUtah(n,t,i,r){let u=0;return this.readModule(n-2,t-2,i,r)&&(u|=1),u<<=1,this.readModule(n-2,t-1,i,r)&&(u|=1),u<<=1,this.readModule(n-1,t-2,i,r)&&(u|=1),u<<=1,this.readModule(n-1,t-1,i,r)&&(u|=1),u<<=1,this.readModule(n-1,t,i,r)&&(u|=1),u<<=1,this.readModule(n,t-2,i,r)&&(u|=1),u<<=1,this.readModule(n,t-1,i,r)&&(u|=1),u<<=1,this.readModule(n,t,i,r)&&(u|=1),u}readCorner1(n,t){let i=0;return this.readModule(n-1,0,n,t)&&(i|=1),i<<=1,this.readModule(n-1,1,n,t)&&(i|=1),i<<=1,this.readModule(n-1,2,n,t)&&(i|=1),i<<=1,this.readModule(0,t-2,n,t)&&(i|=1),i<<=1,this.readModule(0,t-1,n,t)&&(i|=1),i<<=1,this.readModule(1,t-1,n,t)&&(i|=1),i<<=1,this.readModule(2,t-1,n,t)&&(i|=1),i<<=1,this.readModule(3,t-1,n,t)&&(i|=1),i}readCorner2(n,t){let i=0;return this.readModule(n-3,0,n,t)&&(i|=1),i<<=1,this.readModule(n-2,0,n,t)&&(i|=1),i<<=1,this.readModule(n-1,0,n,t)&&(i|=1),i<<=1,this.readModule(0,t-4,n,t)&&(i|=1),i<<=1,this.readModule(0,t-3,n,t)&&(i|=1),i<<=1,this.readModule(0,t-2,n,t)&&(i|=1),i<<=1,this.readModule(0,t-1,n,t)&&(i|=1),i<<=1,this.readModule(1,t-1,n,t)&&(i|=1),i}readCorner3(n,t){let i=0;return this.readModule(n-1,0,n,t)&&(i|=1),i<<=1,this.readModule(n-1,t-1,n,t)&&(i|=1),i<<=1,this.readModule(0,t-3,n,t)&&(i|=1),i<<=1,this.readModule(0,t-2,n,t)&&(i|=1),i<<=1,this.readModule(0,t-1,n,t)&&(i|=1),i<<=1,this.readModule(1,t-3,n,t)&&(i|=1),i<<=1,this.readModule(1,t-2,n,t)&&(i|=1),i<<=1,this.readModule(1,t-1,n,t)&&(i|=1),i}readCorner4(n,t){let i=0;return this.readModule(n-3,0,n,t)&&(i|=1),i<<=1,this.readModule(n-2,0,n,t)&&(i|=1),i<<=1,this.readModule(n-1,0,n,t)&&(i|=1),i<<=1,this.readModule(0,t-2,n,t)&&(i|=1),i<<=1,this.readModule(0,t-1,n,t)&&(i|=1),i<<=1,this.readModule(1,t-1,n,t)&&(i|=1),i<<=1,this.readModule(2,t-1,n,t)&&(i|=1),i<<=1,this.readModule(3,t-1,n,t)&&(i|=1),i}extractDataRegion(n){const r=this.version.getSymbolSizeRows(),o=this.version.getSymbolSizeColumns();if(n.getHeight()!==r)throw new c("Dimension of bitMatrix must match the version size");const t=this.version.getDataRegionSizeRows(),i=this.version.getDataRegionSizeColumns(),u=r/t|0,f=o/i|0,s=u*t,h=f*i,e=new ai(h,s);for(let r=0;r<u;++r){const u=r*t;for(let o=0;o<f;++o){const f=o*i;for(let s=0;s<t;++s){const h=r*(t+2)+1+s,c=u+s;for(let t=0;t<i;++t){const r=o*(i+2)+1+t;if(n.get(r,h)){const n=f+t;e.set(n,c)}}}}}return e}}class is{constructor(n,t){this.numDataCodewords=n;this.codewords=t}static getDataBlocks(n,t){const f=t.getECBlocks();let s=0;const h=f.getECBlocks();for(let n of h)s+=n.getCount();const i=new Array(s);let r=0;for(let n of h)for(let t=0;t<n.getCount();t++){const t=n.getDataCodewords(),u=f.getECCodewords()+t;i[r++]=new is(t,new Uint8Array(u))}const l=i[0].codewords.length,e=l-f.getECCodewords(),a=e-1;let u=0;for(let t=0;t<a;t++)for(let f=0;f<r;f++)i[f].codewords[t]=n[u++];const o=t.getVersionNumber()===24,v=o?8:r;for(let t=0;t<v;t++)i[t].codewords[e-1]=n[u++];const y=i[0].codewords.length;for(let t=e;t<y;t++)for(let f=0;f<r;f++){const e=o?(f+8)%r:f,s=o&&e>7?t-1:t;i[e].codewords[s]=n[u++]}if(u!==n.length)throw new c;return i}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class no{constructor(n){this.bytes=n;this.byteOffset=0;this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(n){if(n<1||n>32||n>this.available())throw new c(""+n);let i=0,t=this.bitOffset,r=this.byteOffset;const u=this.bytes;if(t>0){const e=8-t,f=n<e?n:e,o=e-f,s=255>>8-f<<o;i=(u[r]&s)>>o;n-=f;t+=f;t===8&&(t=0,r++)}if(n>0){while(n>=8)i=i<<8|u[r]&255,r++,n-=8;if(n>0){const f=8-n,e=255>>f<<f;i=i<<n|(u[r]&e)>>f;t+=n}}return this.bitOffset=t,this.byteOffset=r,i}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}(function(n){n[n.PAD_ENCODE=0]="PAD_ENCODE";n[n.ASCII_ENCODE=1]="ASCII_ENCODE";n[n.C40_ENCODE=2]="C40_ENCODE";n[n.TEXT_ENCODE=3]="TEXT_ENCODE";n[n.ANSIX12_ENCODE=4]="ANSIX12_ENCODE";n[n.EDIFACT_ENCODE=5]="EDIFACT_ENCODE";n[n.BASE256_ENCODE=6]="BASE256_ENCODE"})(si||(si={}));class ru{static decode(n){const i=new no(n),t=new ht,u=new ht,f=[];let r=si.ASCII_ENCODE;do if(r===si.ASCII_ENCODE)r=this.decodeAsciiSegment(i,t,u);else{switch(r){case si.C40_ENCODE:this.decodeC40Segment(i,t);break;case si.TEXT_ENCODE:this.decodeTextSegment(i,t);break;case si.ANSIX12_ENCODE:this.decodeAnsiX12Segment(i,t);break;case si.EDIFACT_ENCODE:this.decodeEdifactSegment(i,t);break;case si.BASE256_ENCODE:this.decodeBase256Segment(i,t,f);break;default:throw new o;}r=si.ASCII_ENCODE}while(r!==si.PAD_ENCODE&&i.available()>0);return u.length()>0&&t.append(u.toString()),new ff(n,t.toString(),f.length===0?null:f,null)}static decodeAsciiSegment(n,t,i){let r=!1;do{let u=n.readBits(8);if(u===0)throw new o;else{if(u<=128)return r&&(u+=128),t.append(String.fromCharCode(u-1)),si.ASCII_ENCODE;if(u===129)return si.PAD_ENCODE;if(u<=229){const n=u-130;n<10&&t.append("0");t.append(""+n)}else switch(u){case 230:return si.C40_ENCODE;case 231:return si.BASE256_ENCODE;case 232:t.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:r=!0;break;case 236:t.append("[)>\x1e05\x1d");i.insert(0,"\x1e\x04");break;case 237:t.append("[)>\x1e06\x1d");i.insert(0,"\x1e\x04");break;case 238:return si.ANSIX12_ENCODE;case 239:return si.TEXT_ENCODE;case 240:return si.EDIFACT_ENCODE;case 241:break;default:if(u!==254||n.available()!==0)throw new o;}}}while(n.available()>0);return si.ASCII_ENCODE}static decodeC40Segment(n,t){let i=!1;const u=[];let r=0;do{if(n.available()===8)return;const f=n.readBits(8);if(f===254)return;this.parseTwoBytes(f,n.readBits(8),u);for(let n=0;n<3;n++){const f=u[n];switch(r){case 0:if(f<3)r=f+1;else if(f<this.C40_BASIC_SET_CHARS.length){const n=this.C40_BASIC_SET_CHARS[f];i?(t.append(String.fromCharCode(n.charCodeAt(0)+128)),i=!1):t.append(n)}else throw new o;break;case 1:i?(t.append(String.fromCharCode(f+128)),i=!1):t.append(String.fromCharCode(f));r=0;break;case 2:if(f<this.C40_SHIFT2_SET_CHARS.length){const n=this.C40_SHIFT2_SET_CHARS[f];i?(t.append(String.fromCharCode(n.charCodeAt(0)+128)),i=!1):t.append(n)}else switch(f){case 27:t.append(String.fromCharCode(29));break;case 30:i=!0;break;default:throw new o;}r=0;break;case 3:i?(t.append(String.fromCharCode(f+224)),i=!1):t.append(String.fromCharCode(f+96));r=0;break;default:throw new o;}}}while(n.available()>0)}static decodeTextSegment(n,t){let i=!1,u=[],r=0;do{if(n.available()===8)return;const f=n.readBits(8);if(f===254)return;this.parseTwoBytes(f,n.readBits(8),u);for(let n=0;n<3;n++){const f=u[n];switch(r){case 0:if(f<3)r=f+1;else if(f<this.TEXT_BASIC_SET_CHARS.length){const n=this.TEXT_BASIC_SET_CHARS[f];i?(t.append(String.fromCharCode(n.charCodeAt(0)+128)),i=!1):t.append(n)}else throw new o;break;case 1:i?(t.append(String.fromCharCode(f+128)),i=!1):t.append(String.fromCharCode(f));r=0;break;case 2:if(f<this.TEXT_SHIFT2_SET_CHARS.length){const n=this.TEXT_SHIFT2_SET_CHARS[f];i?(t.append(String.fromCharCode(n.charCodeAt(0)+128)),i=!1):t.append(n)}else switch(f){case 27:t.append(String.fromCharCode(29));break;case 30:i=!0;break;default:throw new o;}r=0;break;case 3:if(f<this.TEXT_SHIFT3_SET_CHARS.length){const n=this.TEXT_SHIFT3_SET_CHARS[f];i?(t.append(String.fromCharCode(n.charCodeAt(0)+128)),i=!1):t.append(n);r=0}else throw new o;break;default:throw new o;}}}while(n.available()>0)}static decodeAnsiX12Segment(n,t){const i=[];do{if(n.available()===8)return;const r=n.readBits(8);if(r===254)return;this.parseTwoBytes(r,n.readBits(8),i);for(let n=0;n<3;n++){const r=i[n];switch(r){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(r<14)t.append(String.fromCharCode(r+44));else if(r<40)t.append(String.fromCharCode(r+51));else throw new o;}}}while(n.available()>0)}static parseTwoBytes(n,t,i){let u=(n<<8)+t-1,r=Math.floor(u/1600);i[0]=r;u-=r*1600;r=Math.floor(u/40);i[1]=r;i[2]=u-r*40}static decodeEdifactSegment(n,t){do{if(n.available()<=16)return;for(let i=0;i<4;i++){let i=n.readBits(6);if(i===31){const t=8-n.getBitOffset();t!==8&&n.readBits(t);return}(i&32)==0&&(i|=64);t.append(String.fromCharCode(i))}}while(n.available()>0)}static decodeBase256Segment(n,t,i){let f=1+n.getByteOffset();const r=this.unrandomize255State(n.readBits(8),f++);let u;if(u=r===0?n.available()/8|0:r<250?r:250*(r-249)+this.unrandomize255State(n.readBits(8),f++),u<0)throw new o;const e=new Uint8Array(u);for(let t=0;t<u;t++){if(n.available()<8)throw new o;e[t]=this.unrandomize255State(n.readBits(8),f++)}i.push(e);try{t.append(fr.decode(e,b.ISO88591))}catch(s){throw new yr("Platform does not support required encoding: "+s.message);}}static unrandomize255State(n,t){const r=149*t%255+1,i=n-r;return i>=0?i:i+256}}ru.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];ru.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"];ru.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];ru.TEXT_SHIFT2_SET_CHARS=ru.C40_SHIFT2_SET_CHARS;ru.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class lh{constructor(){this.rsDecoder=new sf(ut.DATA_MATRIX_FIELD_256)}decode(n){const i=new ts(n),e=i.getVersion(),o=i.readCodewords(),t=is.getDataBlocks(o,e);let r=0;for(let n of t)r+=n.getNumDataCodewords();const u=new Uint8Array(r),f=t.length;for(let n=0;n<f;n++){const i=t[n],r=i.getCodewords(),e=i.getNumDataCodewords();this.correctErrors(r,e);for(let t=0;t<e;t++)u[t*f+n]=r[t]}return ru.decode(u)}correctErrors(n,t){const i=new Int32Array(n);try{this.rsDecoder.decode(i,n.length-t)}catch(r){throw new ri;}for(let r=0;r<t;r++)n[r]=i[r]}}class ui{constructor(n){this.image=n;this.rectangleDetector=new iu(this.image)}detect(){const s=this.rectangleDetector.detect();let n=this.detectSolid1(s);if(n=this.detectSolid2(n),n[3]=this.correctTopRight(n),!n[3])throw new u;n=this.shiftToModuleCenter(n);const f=n[0],o=n[1],e=n[2],r=n[3];let t=this.transitionsBetween(f,r)+1,i=this.transitionsBetween(e,r)+1;(t&1)==1&&(t+=1);(i&1)==1&&(i+=1);4*t<7*i&&4*i<7*t&&(t=i=Math.max(t,i));let h=ui.sampleGrid(this.image,f,o,e,r,t,i);return new df(h,[f,o,e,r])}static shiftPoint(n,t,i){let r=(t.getX()-n.getX())/(i+1),u=(t.getY()-n.getY())/(i+1);return new l(n.getX()+r,n.getY()+u)}static moveAway(n,t,i){let r=n.getX(),u=n.getY();return r<t?r-=1:r+=1,u<i?u-=1:u+=1,new l(r,u)}detectSolid1(n){let i=n[0],r=n[1],u=n[3],f=n[2],h=this.transitionsBetween(i,r),o=this.transitionsBetween(r,u),s=this.transitionsBetween(u,f),c=this.transitionsBetween(f,i),e=h,t=[f,i,r,u];return e>o&&(e=o,t[0]=i,t[1]=r,t[2]=u,t[3]=f),e>s&&(e=s,t[0]=r,t[1]=u,t[2]=f,t[3]=i),e>c&&(t[0]=u,t[1]=f,t[2]=i,t[3]=r),t}detectSolid2(n){let t=n[0],i=n[1],r=n[2],u=n[3],f=this.transitionsBetween(t,u),e=ui.shiftPoint(i,r,(f+1)*4),o=ui.shiftPoint(r,i,(f+1)*4),s=this.transitionsBetween(e,t),h=this.transitionsBetween(o,u);return s<h?(n[0]=t,n[1]=i,n[2]=r,n[3]=u):(n[0]=i,n[1]=r,n[2]=u,n[3]=t),n}correctTopRight(n){let f=n[0],i=n[1],s=n[2],t=n[3],e=this.transitionsBetween(f,t),o=this.transitionsBetween(i,t),h=ui.shiftPoint(f,i,(o+1)*4),c=ui.shiftPoint(s,i,(e+1)*4);e=this.transitionsBetween(h,t);o=this.transitionsBetween(c,t);let u=new l(t.getX()+(s.getX()-i.getX())/(e+1),t.getY()+(s.getY()-i.getY())/(e+1)),r=new l(t.getX()+(f.getX()-i.getX())/(o+1),t.getY()+(f.getY()-i.getY())/(o+1));if(!this.isValid(u))return this.isValid(r)?r:null;if(!this.isValid(r))return u;let a=this.transitionsBetween(h,u)+this.transitionsBetween(c,u),v=this.transitionsBetween(h,r)+this.transitionsBetween(c,r);return a>v?u:r}shiftToModuleCenter(n){let i=n[0],r=n[1],u=n[2],t=n[3],f=this.transitionsBetween(i,t)+1,e=this.transitionsBetween(u,t)+1,o=ui.shiftPoint(i,r,e*4),s=ui.shiftPoint(u,r,f*4);f=this.transitionsBetween(o,t)+1;e=this.transitionsBetween(s,t)+1;(f&1)==1&&(f+=1);(e&1)==1&&(e+=1);let h=(i.getX()+r.getX()+u.getX()+t.getX())/4,c=(i.getY()+r.getY()+u.getY()+t.getY())/4;i=ui.moveAway(i,h,c);r=ui.moveAway(r,h,c);u=ui.moveAway(u,h,c);t=ui.moveAway(t,h,c);let l,a;return o=ui.shiftPoint(i,r,e*4),o=ui.shiftPoint(o,t,f*4),l=ui.shiftPoint(r,i,e*4),l=ui.shiftPoint(l,u,f*4),s=ui.shiftPoint(u,t,e*4),s=ui.shiftPoint(s,r,f*4),a=ui.shiftPoint(t,u,e*4),a=ui.shiftPoint(a,i,f*4),[o,l,s,a]}isValid(n){return n.getX()>=0&&n.getX()<this.image.getWidth()&&n.getY()>0&&n.getY()<this.image.getHeight()}static sampleGrid(n,t,i,r,u,f,e){const o=hu.getInstance();return o.sampleGrid(n,f,e,.5,.5,f-.5,.5,f-.5,e-.5,.5,e-.5,t.getX(),t.getY(),u.getX(),u.getY(),r.getX(),r.getY(),i.getX(),i.getY())}transitionsBetween(n,t){let i=Math.trunc(n.getX()),r=Math.trunc(n.getY()),u=Math.trunc(t.getX()),f=Math.trunc(t.getY()),e=Math.abs(f-r)>Math.abs(u-i);if(e){let n=i;i=r;r=n;n=u;u=f;f=n}let s=Math.abs(u-i),l=Math.abs(f-r),o=-s/2,a=r<f?1:-1,v=i<u?1:-1,h=0,c=this.image.get(e?r:i,e?i:r);for(let n=i,t=r;n!==u;n+=v){let i=this.image.get(e?t:n,e?n:t);if(i!==c&&(h++,c=i),o+=l,o>0){if(t===f)break;t+=a;o-=s}}return h}}class vu{constructor(){this.decoder=new lh}decode(n,t=null){let i,r;if(t!=null&&t.has(yt.PURE_BARCODE)){const t=vu.extractPureBits(n.getBlackMatrix());i=this.decoder.decode(t);r=vu.NO_POINTS}else{const t=new ui(n.getBlackMatrix()).detect();i=this.decoder.decode(t.getBits());r=t.getPoints()}const f=i.getRawBytes(),u=new gi(i.getText(),f,8*f.length,r,v.DATA_MATRIX,lt.currentTimeMillis()),e=i.getByteSegments();e!=null&&u.putMetadata(ei.BYTE_SEGMENTS,e);const o=i.getECLevel();return o!=null&&u.putMetadata(ei.ERROR_CORRECTION_LEVEL,o),u}reset(){}static extractPureBits(n){const i=n.getTopLeftOnBit(),r=n.getBottomRightOnBit();if(i==null||r==null)throw new u;const t=this.moduleSize(i,n);let f=i[1];const l=r[1];let e=i[0];const a=r[0],o=(a-e+1)/t,s=(l-f+1)/t;if(o<=0||s<=0)throw new u;const h=t/2;f+=h;e+=h;const c=new ai(o,s);for(let i=0;i<s;i++){const r=f+i*t;for(let u=0;u<o;u++)n.get(e+u*t,r)&&c.set(u,i)}return c}static moduleSize(n,t){const r=t.getWidth();let i=n[0];const e=n[1];while(i<r&&t.get(i,e))i++;if(i===r)throw new u;const f=i-n[0];if(f===0)throw new u;return f}}vu.NO_POINTS=[];class ah extends su{constructor(n=500){super(new vu,n)}}(function(n){n[n.L=0]="L";n[n.M=1]="M";n[n.Q=2]="Q";n[n.H=3]="H"})(du||(du={}));class wt{constructor(n,t,i){this.value=n;this.stringValue=t;this.bits=i;wt.FOR_BITS.set(i,this);wt.FOR_VALUE.set(n,this)}getValue(){return this.value}getBits(){return this.bits}static fromString(n){switch(n){case"L":return wt.L;case"M":return wt.M;case"Q":return wt.Q;case"H":return wt.H;default:throw new ur(n+"not available");}}toString(){return this.stringValue}equals(n){if(!(n instanceof wt))return!1;const t=n;return this.value===t.value}static forBits(n){if(n<0||n>=wt.FOR_BITS.size)throw new c;return wt.FOR_BITS.get(n)}}wt.FOR_BITS=new Map;wt.FOR_VALUE=new Map;wt.L=new wt(du.L,"L",1);wt.M=new wt(du.M,"M",0);wt.Q=new wt(du.Q,"Q",3);wt.H=new wt(du.H,"H",2);class ir{constructor(n){this.errorCorrectionLevel=wt.forBits(n>>3&3);this.dataMask=n&7}static numBitsDiffering(n,t){return k.bitCount(n^t)}static decodeFormatInformation(n,t){const i=ir.doDecodeFormatInformation(n,t);return i!==null?i:ir.doDecodeFormatInformation(n^ir.FORMAT_INFO_MASK_QR,t^ir.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(n,t){let i=Number.MAX_SAFE_INTEGER,r=0;for(const u of ir.FORMAT_INFO_DECODE_LOOKUP){const e=u[0];if(e===n||e===t)return new ir(u[1]);let f=ir.numBitsDiffering(n,e);f<i&&(r=u[1],i=f);n!==t&&(f=ir.numBitsDiffering(t,e),f<i&&(r=u[1],i=f))}return i<=3?new ir(r):null}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getDataMask(){return this.dataMask}hashCode(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask}equals(n){if(!(n instanceof ir))return!1;const t=n;return this.errorCorrectionLevel===t.errorCorrectionLevel&&this.dataMask===t.dataMask}}ir.FORMAT_INFO_MASK_QR=21522;ir.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31]),];class i{constructor(n,...t){this.ecCodewordsPerBlock=n;this.ecBlocks=t}getECCodewordsPerBlock(){return this.ecCodewordsPerBlock}getNumBlocks(){let n=0;const t=this.ecBlocks;for(const i of t)n+=i.getCount();return n}getTotalECCodewords(){return this.ecCodewordsPerBlock*this.getNumBlocks()}getECBlocks(){return this.ecBlocks}}class t{constructor(n,t){this.count=n;this.dataCodewords=t}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class a{constructor(n,t,...i){this.versionNumber=n;this.alignmentPatternCenters=t;this.ecBlocks=i;let r=0;const u=i[0].getECCodewordsPerBlock(),f=i[0].getECBlocks();for(const n of f)r+=n.getCount()*(n.getDataCodewords()+u);this.totalCodewords=r}getVersionNumber(){return this.versionNumber}getAlignmentPatternCenters(){return this.alignmentPatternCenters}getTotalCodewords(){return this.totalCodewords}getDimensionForVersion(){return 17+4*this.versionNumber}getECBlocksForLevel(n){return this.ecBlocks[n.getValue()]}static getProvisionalVersionForDimension(n){if(n%4!=1)throw new o;try{return this.getVersionForNumber((n-17)/4)}catch(t){throw new o;}}static getVersionForNumber(n){if(n<1||n>40)throw new c;return a.VERSIONS[n-1]}static decodeVersionInformation(n){let t=Number.MAX_SAFE_INTEGER,i=0;for(let r=0;r<a.VERSION_DECODE_INFO.length;r++){const u=a.VERSION_DECODE_INFO[r];if(u===n)return a.getVersionForNumber(r+7);const f=ir.numBitsDiffering(n,u);f<t&&(i=r+7,t=f)}return t<=3?a.getVersionForNumber(i):null}buildFunctionPattern(){const t=this.getDimensionForVersion(),n=new ai(t);n.setRegion(0,0,9,9);n.setRegion(t-8,0,8,9);n.setRegion(0,t-8,9,8);const i=this.alignmentPatternCenters.length;for(let t=0;t<i;t++){const r=this.alignmentPatternCenters[t]-2;for(let u=0;u<i;u++)(t!==0||u!==0&&u!==i-1)&&(t!==i-1||u!==0)&&n.setRegion(this.alignmentPatternCenters[u]-2,r,5,5)}return n.setRegion(6,9,1,t-17),n.setRegion(9,6,t-17,1),this.versionNumber>6&&(n.setRegion(t-11,0,3,6),n.setRegion(0,t-11,6,3)),n}toString(){return""+this.versionNumber}}a.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);a.VERSIONS=[new a(1,new Int32Array(0),new i(7,new t(1,19)),new i(10,new t(1,16)),new i(13,new t(1,13)),new i(17,new t(1,9))),new a(2,Int32Array.from([6,18]),new i(10,new t(1,34)),new i(16,new t(1,28)),new i(22,new t(1,22)),new i(28,new t(1,16))),new a(3,Int32Array.from([6,22]),new i(15,new t(1,55)),new i(26,new t(1,44)),new i(18,new t(2,17)),new i(22,new t(2,13))),new a(4,Int32Array.from([6,26]),new i(20,new t(1,80)),new i(18,new t(2,32)),new i(26,new t(2,24)),new i(16,new t(4,9))),new a(5,Int32Array.from([6,30]),new i(26,new t(1,108)),new i(24,new t(2,43)),new i(18,new t(2,15),new t(2,16)),new i(22,new t(2,11),new t(2,12))),new a(6,Int32Array.from([6,34]),new i(18,new t(2,68)),new i(16,new t(4,27)),new i(24,new t(4,19)),new i(28,new t(4,15))),new a(7,Int32Array.from([6,22,38]),new i(20,new t(2,78)),new i(18,new t(4,31)),new i(18,new t(2,14),new t(4,15)),new i(26,new t(4,13),new t(1,14))),new a(8,Int32Array.from([6,24,42]),new i(24,new t(2,97)),new i(22,new t(2,38),new t(2,39)),new i(22,new t(4,18),new t(2,19)),new i(26,new t(4,14),new t(2,15))),new a(9,Int32Array.from([6,26,46]),new i(30,new t(2,116)),new i(22,new t(3,36),new t(2,37)),new i(20,new t(4,16),new t(4,17)),new i(24,new t(4,12),new t(4,13))),new a(10,Int32Array.from([6,28,50]),new i(18,new t(2,68),new t(2,69)),new i(26,new t(4,43),new t(1,44)),new i(24,new t(6,19),new t(2,20)),new i(28,new t(6,15),new t(2,16))),new a(11,Int32Array.from([6,30,54]),new i(20,new t(4,81)),new i(30,new t(1,50),new t(4,51)),new i(28,new t(4,22),new t(4,23)),new i(24,new t(3,12),new t(8,13))),new a(12,Int32Array.from([6,32,58]),new i(24,new t(2,92),new t(2,93)),new i(22,new t(6,36),new t(2,37)),new i(26,new t(4,20),new t(6,21)),new i(28,new t(7,14),new t(4,15))),new a(13,Int32Array.from([6,34,62]),new i(26,new t(4,107)),new i(22,new t(8,37),new t(1,38)),new i(24,new t(8,20),new t(4,21)),new i(22,new t(12,11),new t(4,12))),new a(14,Int32Array.from([6,26,46,66]),new i(30,new t(3,115),new t(1,116)),new i(24,new t(4,40),new t(5,41)),new i(20,new t(11,16),new t(5,17)),new i(24,new t(11,12),new t(5,13))),new a(15,Int32Array.from([6,26,48,70]),new i(22,new t(5,87),new t(1,88)),new i(24,new t(5,41),new t(5,42)),new i(30,new t(5,24),new t(7,25)),new i(24,new t(11,12),new t(7,13))),new a(16,Int32Array.from([6,26,50,74]),new i(24,new t(5,98),new t(1,99)),new i(28,new t(7,45),new t(3,46)),new i(24,new t(15,19),new t(2,20)),new i(30,new t(3,15),new t(13,16))),new a(17,Int32Array.from([6,30,54,78]),new i(28,new t(1,107),new t(5,108)),new i(28,new t(10,46),new t(1,47)),new i(28,new t(1,22),new t(15,23)),new i(28,new t(2,14),new t(17,15))),new a(18,Int32Array.from([6,30,56,82]),new i(30,new t(5,120),new t(1,121)),new i(26,new t(9,43),new t(4,44)),new i(28,new t(17,22),new t(1,23)),new i(28,new t(2,14),new t(19,15))),new a(19,Int32Array.from([6,30,58,86]),new i(28,new t(3,113),new t(4,114)),new i(26,new t(3,44),new t(11,45)),new i(26,new t(17,21),new t(4,22)),new i(26,new t(9,13),new t(16,14))),new a(20,Int32Array.from([6,34,62,90]),new i(28,new t(3,107),new t(5,108)),new i(26,new t(3,41),new t(13,42)),new i(30,new t(15,24),new t(5,25)),new i(28,new t(15,15),new t(10,16))),new a(21,Int32Array.from([6,28,50,72,94]),new i(28,new t(4,116),new t(4,117)),new i(26,new t(17,42)),new i(28,new t(17,22),new t(6,23)),new i(30,new t(19,16),new t(6,17))),new a(22,Int32Array.from([6,26,50,74,98]),new i(28,new t(2,111),new t(7,112)),new i(28,new t(17,46)),new i(30,new t(7,24),new t(16,25)),new i(24,new t(34,13))),new a(23,Int32Array.from([6,30,54,78,102]),new i(30,new t(4,121),new t(5,122)),new i(28,new t(4,47),new t(14,48)),new i(30,new t(11,24),new t(14,25)),new i(30,new t(16,15),new t(14,16))),new a(24,Int32Array.from([6,28,54,80,106]),new i(30,new t(6,117),new t(4,118)),new i(28,new t(6,45),new t(14,46)),new i(30,new t(11,24),new t(16,25)),new i(30,new t(30,16),new t(2,17))),new a(25,Int32Array.from([6,32,58,84,110]),new i(26,new t(8,106),new t(4,107)),new i(28,new t(8,47),new t(13,48)),new i(30,new t(7,24),new t(22,25)),new i(30,new t(22,15),new t(13,16))),new a(26,Int32Array.from([6,30,58,86,114]),new i(28,new t(10,114),new t(2,115)),new i(28,new t(19,46),new t(4,47)),new i(28,new t(28,22),new t(6,23)),new i(30,new t(33,16),new t(4,17))),new a(27,Int32Array.from([6,34,62,90,118]),new i(30,new t(8,122),new t(4,123)),new i(28,new t(22,45),new t(3,46)),new i(30,new t(8,23),new t(26,24)),new i(30,new t(12,15),new t(28,16))),new a(28,Int32Array.from([6,26,50,74,98,122]),new i(30,new t(3,117),new t(10,118)),new i(28,new t(3,45),new t(23,46)),new i(30,new t(4,24),new t(31,25)),new i(30,new t(11,15),new t(31,16))),new a(29,Int32Array.from([6,30,54,78,102,126]),new i(30,new t(7,116),new t(7,117)),new i(28,new t(21,45),new t(7,46)),new i(30,new t(1,23),new t(37,24)),new i(30,new t(19,15),new t(26,16))),new a(30,Int32Array.from([6,26,52,78,104,130]),new i(30,new t(5,115),new t(10,116)),new i(28,new t(19,47),new t(10,48)),new i(30,new t(15,24),new t(25,25)),new i(30,new t(23,15),new t(25,16))),new a(31,Int32Array.from([6,30,56,82,108,134]),new i(30,new t(13,115),new t(3,116)),new i(28,new t(2,46),new t(29,47)),new i(30,new t(42,24),new t(1,25)),new i(30,new t(23,15),new t(28,16))),new a(32,Int32Array.from([6,34,60,86,112,138]),new i(30,new t(17,115)),new i(28,new t(10,46),new t(23,47)),new i(30,new t(10,24),new t(35,25)),new i(30,new t(19,15),new t(35,16))),new a(33,Int32Array.from([6,30,58,86,114,142]),new i(30,new t(17,115),new t(1,116)),new i(28,new t(14,46),new t(21,47)),new i(30,new t(29,24),new t(19,25)),new i(30,new t(11,15),new t(46,16))),new a(34,Int32Array.from([6,34,62,90,118,146]),new i(30,new t(13,115),new t(6,116)),new i(28,new t(14,46),new t(23,47)),new i(30,new t(44,24),new t(7,25)),new i(30,new t(59,16),new t(1,17))),new a(35,Int32Array.from([6,30,54,78,102,126,150]),new i(30,new t(12,121),new t(7,122)),new i(28,new t(12,47),new t(26,48)),new i(30,new t(39,24),new t(14,25)),new i(30,new t(22,15),new t(41,16))),new a(36,Int32Array.from([6,24,50,76,102,128,154]),new i(30,new t(6,121),new t(14,122)),new i(28,new t(6,47),new t(34,48)),new i(30,new t(46,24),new t(10,25)),new i(30,new t(2,15),new t(64,16))),new a(37,Int32Array.from([6,28,54,80,106,132,158]),new i(30,new t(17,122),new t(4,123)),new i(28,new t(29,46),new t(14,47)),new i(30,new t(49,24),new t(10,25)),new i(30,new t(24,15),new t(46,16))),new a(38,Int32Array.from([6,32,58,84,110,136,162]),new i(30,new t(4,122),new t(18,123)),new i(28,new t(13,46),new t(32,47)),new i(30,new t(48,24),new t(14,25)),new i(30,new t(42,15),new t(32,16))),new a(39,Int32Array.from([6,26,54,82,110,138,166]),new i(30,new t(20,117),new t(4,118)),new i(28,new t(40,47),new t(7,48)),new i(30,new t(43,24),new t(22,25)),new i(30,new t(10,15),new t(67,16))),new a(40,Int32Array.from([6,30,58,86,114,142,170]),new i(30,new t(19,118),new t(6,119)),new i(28,new t(18,47),new t(31,48)),new i(30,new t(34,24),new t(34,25)),new i(30,new t(20,15),new t(61,16)))],function(n){n[n.DATA_MASK_000=0]="DATA_MASK_000";n[n.DATA_MASK_001=1]="DATA_MASK_001";n[n.DATA_MASK_010=2]="DATA_MASK_010";n[n.DATA_MASK_011=3]="DATA_MASK_011";n[n.DATA_MASK_100=4]="DATA_MASK_100";n[n.DATA_MASK_101=5]="DATA_MASK_101";n[n.DATA_MASK_110=6]="DATA_MASK_110";n[n.DATA_MASK_111=7]="DATA_MASK_111"}(ci||(ci={}));class cr{constructor(n,t){this.value=n;this.isMasked=t}unmaskBitMatrix(n,t){for(let i=0;i<t;i++)for(let r=0;r<t;r++)this.isMasked(i,r)&&n.flip(r,i)}}cr.values=new Map([[ci.DATA_MASK_000,new cr(ci.DATA_MASK_000,(n,t)=>(n+t&1)==0)],[ci.DATA_MASK_001,new cr(ci.DATA_MASK_001,n=>(n&1)==0)],[ci.DATA_MASK_010,new cr(ci.DATA_MASK_010,(n,t)=>t%3==0)],[ci.DATA_MASK_011,new cr(ci.DATA_MASK_011,(n,t)=>(n+t)%3==0)],[ci.DATA_MASK_100,new cr(ci.DATA_MASK_100,(n,t)=>(Math.floor(n/2)+Math.floor(t/3)&1)==0)],[ci.DATA_MASK_101,new cr(ci.DATA_MASK_101,(n,t)=>n*t%6==0)],[ci.DATA_MASK_110,new cr(ci.DATA_MASK_110,(n,t)=>n*t%6<3)],[ci.DATA_MASK_111,new cr(ci.DATA_MASK_111,(n,t)=>(n+t+n*t%3&1)==0)],]);class vh{constructor(n){const t=n.getHeight();if(t<21||(t&3)!=1)throw new o;this.bitMatrix=n}readFormatInformation(){if(this.parsedFormatInfo!==null&&this.parsedFormatInfo!==undefined)return this.parsedFormatInfo;let n=0;for(let t=0;t<6;t++)n=this.copyBit(t,8,n);n=this.copyBit(7,8,n);n=this.copyBit(8,8,n);n=this.copyBit(8,7,n);for(let t=5;t>=0;t--)n=this.copyBit(8,t,n);const i=this.bitMatrix.getHeight();let t=0;const r=i-7;for(let n=i-1;n>=r;n--)t=this.copyBit(8,n,t);for(let n=i-8;n<i;n++)t=this.copyBit(n,8,t);if(this.parsedFormatInfo=ir.decodeFormatInformation(n,t),this.parsedFormatInfo!==null)return this.parsedFormatInfo;throw new o;}readVersion(){if(this.parsedVersion!==null&&this.parsedVersion!==undefined)return this.parsedVersion;const i=this.bitMatrix.getHeight(),r=Math.floor((i-17)/4);if(r<=6)return a.getVersionForNumber(r);let t=0;const u=i-11;for(let n=5;n>=0;n--)for(let r=i-9;r>=u;r--)t=this.copyBit(r,n,t);let n=a.decodeVersionInformation(t);if(n!==null&&n.getDimensionForVersion()===i)return this.parsedVersion=n,n;t=0;for(let n=5;n>=0;n--)for(let r=i-9;r>=u;r--)t=this.copyBit(n,r,t);if(n=a.decodeVersionInformation(t),n!==null&&n.getDimensionForVersion()===i)return this.parsedVersion=n,n;throw new o;}copyBit(n,t,i){const r=this.isMirror?this.bitMatrix.get(t,n):this.bitMatrix.get(n,t);return r?i<<1|1:i<<1}readCodewords(){const s=this.readFormatInformation(),i=this.readVersion(),h=cr.values.get(s.getDataMask()),n=this.bitMatrix.getHeight();h.unmaskBitMatrix(this.bitMatrix,n);const c=i.buildFunctionPattern();let r=!0;const f=new Uint8Array(i.getTotalCodewords());let e=0,t=0,u=0;for(let i=n-1;i>0;i-=2){i===6&&i--;for(let o=0;o<n;o++){const s=r?n-1-o:o;for(let n=0;n<2;n++)c.get(i-n,s)||(u++,t<<=1,this.bitMatrix.get(i-n,s)&&(t|=1),u===8&&(f[e++]=t,u=0,t=0))}r=!r}if(e!==i.getTotalCodewords())throw new o;return f}remask(){if(this.parsedFormatInfo!==null){const n=cr.values[this.parsedFormatInfo.getDataMask()],t=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,t)}}setMirror(n){this.parsedVersion=null;this.parsedFormatInfo=null;this.isMirror=n}mirror(){const n=this.bitMatrix;for(let t=0,i=n.getWidth();t<i;t++)for(let i=t+1,r=n.getHeight();i<r;i++)n.get(t,i)!==n.get(i,t)&&(n.flip(i,t),n.flip(t,i))}}class rs{constructor(n,t){this.numDataCodewords=n;this.codewords=t}static getDataBlocks(n,t,i){if(n.length!==t.getTotalCodewords())throw new c;const e=t.getECBlocksForLevel(i);let h=0;const l=e.getECBlocks();for(const n of l)h+=n.getCount();const r=new Array(h);let f=0;for(const n of l)for(let t=0;t<n.getCount();t++){const t=n.getDataCodewords(),i=e.getECCodewordsPerBlock()+t;r[f++]=new rs(t,new Uint8Array(i))}const a=r[0].codewords.length;let u=r.length-1;while(u>=0){const n=r[u].codewords.length;if(n===a)break;u--}u++;const o=a-e.getECCodewordsPerBlock();let s=0;for(let t=0;t<o;t++)for(let i=0;i<f;i++)r[i].codewords[t]=n[s++];for(let t=u;t<f;t++)r[t].codewords[o]=n[s++];const v=r[0].codewords.length;for(let t=o;t<v;t++)for(let i=0;i<f;i++){const f=i<u?t:t+1;r[i].codewords[f]=n[s++]}return r}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}(function(n){n[n.TERMINATOR=0]="TERMINATOR";n[n.NUMERIC=1]="NUMERIC";n[n.ALPHANUMERIC=2]="ALPHANUMERIC";n[n.STRUCTURED_APPEND=3]="STRUCTURED_APPEND";n[n.BYTE=4]="BYTE";n[n.ECI=5]="ECI";n[n.KANJI=6]="KANJI";n[n.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION";n[n.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION";n[n.HANZI=9]="HANZI"})(lr||(lr={}));class y{constructor(n,t,i,r){this.value=n;this.stringValue=t;this.characterCountBitsForVersions=i;this.bits=r;y.FOR_BITS.set(r,this);y.FOR_VALUE.set(n,this)}static forBits(n){const t=y.FOR_BITS.get(n);if(undefined===t)throw new c;return t}getCharacterCountBits(n){const t=n.getVersionNumber();let i;return i=t<=9?0:t<=26?1:2,this.characterCountBitsForVersions[i]}getValue(){return this.value}getBits(){return this.bits}equals(n){if(!(n instanceof y))return!1;const t=n;return this.value===t.value}toString(){return this.stringValue}}y.FOR_BITS=new Map;y.FOR_VALUE=new Map;y.TERMINATOR=new y(lr.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0);y.NUMERIC=new y(lr.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1);y.ALPHANUMERIC=new y(lr.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2);y.STRUCTURED_APPEND=new y(lr.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3);y.BYTE=new y(lr.BYTE,"BYTE",Int32Array.from([8,16,16]),4);y.ECI=new y(lr.ECI,"ECI",Int32Array.from([0,0,0]),7);y.KANJI=new y(lr.KANJI,"KANJI",Int32Array.from([8,10,12]),8);y.FNC1_FIRST_POSITION=new y(lr.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5);y.FNC1_SECOND_POSITION=new y(lr.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9);y.HANZI=new y(lr.HANZI,"HANZI",Int32Array.from([8,10,12]),13);class gt{static decode(n,t,i,r){const u=new no(n);let f=new ht;const s=[];let h=-1,c=-1;try{let i=null,l=!1,n;do{if(u.available()<4)n=y.TERMINATOR;else{const t=u.readBits(4);n=y.forBits(t)}switch(n){case y.TERMINATOR:break;case y.FNC1_FIRST_POSITION:case y.FNC1_SECOND_POSITION:l=!0;break;case y.STRUCTURED_APPEND:if(u.available()<16)throw new o;h=u.readBits(8);c=u.readBits(8);break;case y.ECI:const v=gt.parseECIValue(u);if(i=e.getCharacterSetECIByValue(v),i===null)throw new o;break;case y.HANZI:const p=u.readBits(4),w=u.readBits(n.getCharacterCountBits(t));p===gt.GB2312_SUBSET&&gt.decodeHanziSegment(u,f,w);break;default:const a=u.readBits(n.getCharacterCountBits(t));switch(n){case y.NUMERIC:gt.decodeNumericSegment(u,f,a);break;case y.ALPHANUMERIC:gt.decodeAlphanumericSegment(u,f,a,l);break;case y.BYTE:gt.decodeByteSegment(u,f,a,i,s,r);break;case y.KANJI:gt.decodeKanjiSegment(u,f,a);break;default:throw new o;}}}while(n!==y.TERMINATOR)}catch(l){throw new o;}return new ff(n,f.toString(),s.length===0?null:s,i===null?null:i.toString(),h,c)}static decodeHanziSegment(n,t,i){if(i*13>n.available())throw new o;const r=new Uint8Array(2*i);let u=0;while(i>0){const f=n.readBits(13);let t=f/96<<8&4294967295|f%96;t+=t<959?41377:42657;r[u]=t>>8&255;r[u+1]=t&255;u+=2;i--}try{t.append(fr.decode(r,b.GB2312))}catch(f){throw new o(f);}}static decodeKanjiSegment(n,t,i){if(i*13>n.available())throw new o;const r=new Uint8Array(2*i);let u=0;while(i>0){const f=n.readBits(13);let t=f/192<<8&4294967295|f%192;t+=t<7936?33088:49472;r[u]=t>>8;r[u+1]=t;u+=2;i--}try{t.append(fr.decode(r,b.SHIFT_JIS))}catch(f){throw new o(f);}}static decodeByteSegment(n,t,i,r,u,f){if(8*i>n.available())throw new o;const e=new Uint8Array(i);for(let t=0;t<i;t++)e[t]=n.readBits(8);let s;s=r===null?b.guessEncoding(e,f):r.getName();try{t.append(fr.decode(e,s))}catch(h){throw new o(h);}u.push(e)}static toAlphaNumericChar(n){if(n>=gt.ALPHANUMERIC_CHARS.length)throw new o;return gt.ALPHANUMERIC_CHARS[n]}static decodeAlphanumericSegment(n,t,i,r){const u=t.length();while(i>1){if(n.available()<11)throw new o;const r=n.readBits(11);t.append(gt.toAlphaNumericChar(Math.floor(r/45)));t.append(gt.toAlphaNumericChar(r%45));i-=2}if(i===1){if(n.available()<6)throw new o;t.append(gt.toAlphaNumericChar(n.readBits(6)))}if(r)for(let n=u;n<t.length();n++)t.charAt(n)==="%"&&(n<t.length()-1&&t.charAt(n+1)==="%"?t.deleteCharAt(n+1):t.setCharAt(n,String.fromCharCode(29)))}static decodeNumericSegment(n,t,i){while(i>=3){if(n.available()<10)throw new o;const r=n.readBits(10);if(r>=1e3)throw new o;t.append(gt.toAlphaNumericChar(Math.floor(r/100)));t.append(gt.toAlphaNumericChar(Math.floor(r/10)%10));t.append(gt.toAlphaNumericChar(r%10));i-=3}if(i===2){if(n.available()<7)throw new o;const i=n.readBits(7);if(i>=100)throw new o;t.append(gt.toAlphaNumericChar(Math.floor(i/10)));t.append(gt.toAlphaNumericChar(i%10))}else if(i===1){if(n.available()<4)throw new o;const i=n.readBits(4);if(i>=10)throw new o;t.append(gt.toAlphaNumericChar(i))}}static parseECIValue(n){const t=n.readBits(8);if((t&128)==0)return t&127;if((t&192)==128){const i=n.readBits(8);return(t&63)<<8&4294967295|i}if((t&224)==192){const i=n.readBits(16);return(t&31)<<16&4294967295|i}throw new o;}}gt.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";gt.GB2312_SUBSET=1;class us{constructor(n){this.mirrored=n}isMirrored(){return this.mirrored}applyMirroredCorrection(n){if(this.mirrored&&n!==null&&!(n.length<3)){const t=n[0];n[0]=n[2];n[2]=t}}}class yh{constructor(){this.rsDecoder=new sf(ut.QR_CODE_FIELD_256)}decodeBooleanArray(n,t){return this.decodeBitMatrix(ai.parseFromBooleanArray(n),t)}decodeBitMatrix(n,t){const i=new vh(n);let r=null;try{return this.decodeBitMatrixParser(i,t)}catch(u){r=u}try{i.remask();i.setMirror(!0);i.readVersion();i.readFormatInformation();i.mirror();const n=this.decodeBitMatrixParser(i,t);return n.setOther(new us(!0)),n}catch(u){if(r!==null)throw r;throw u;}}decodeBitMatrixParser(n,t){const i=n.readVersion(),r=n.readFormatInformation().getErrorCorrectionLevel(),o=n.readCodewords(),u=rs.getDataBlocks(o,i,r);let f=0;for(const n of u)f+=n.getNumDataCodewords();const e=new Uint8Array(f);let s=0;for(const n of u){const t=n.getCodewords(),i=n.getNumDataCodewords();this.correctErrors(t,i);for(let n=0;n<i;n++)e[s++]=t[n]}return gt.decode(e,i,r,t)}correctErrors(n,t){const i=new Int32Array(n);try{this.rsDecoder.decode(i,n.length-t)}catch(r){throw new ri;}for(let r=0;r<t;r++)n[r]=i[r]}}class fs extends l{constructor(n,t,i){super(n,t);this.estimatedModuleSize=i}aboutEquals(n,t,i){if(Math.abs(t-this.getY())<=n&&Math.abs(i-this.getX())<=n){const t=Math.abs(n-this.estimatedModuleSize);return t<=1||t<=this.estimatedModuleSize}return!1}combineEstimate(n,t,i){const r=(this.getX()+t)/2,u=(this.getY()+n)/2,f=(this.estimatedModuleSize+i)/2;return new fs(r,u,f)}}class to{constructor(n,t,i,r,u,f,e){this.image=n;this.startX=t;this.startY=i;this.width=r;this.height=u;this.moduleSize=f;this.resultPointCallback=e;this.possibleCenters=[];this.crossCheckStateCount=new Int32Array(3)}find(){const i=this.startX,r=this.height,e=this.width,t=i+e,o=this.startY+r/2,n=new Int32Array(3),f=this.image;for(let u=0;u<r;u++){const s=o+((u&1)==0?Math.floor((u+1)/2):-Math.floor((u+1)/2));n[0]=0;n[1]=0;n[2]=0;let r=i;while(r<t&&!f.get(r,s))r++;let e=0;while(r<t){if(f.get(r,s))if(e===1)n[1]++;else if(e===2){if(this.foundPatternCross(n)){const t=this.handlePossibleCenter(n,s,r);if(t!==null)return t}n[0]=n[2];n[1]=1;n[2]=0;e=1}else n[++e]++;else e===1&&e++,n[e]++;r++}if(this.foundPatternCross(n)){const i=this.handlePossibleCenter(n,s,t);if(i!==null)return i}}if(this.possibleCenters.length!==0)return this.possibleCenters[0];throw new u;}static centerFromEnd(n,t){return t-n[2]-n[1]/2}foundPatternCross(n){const t=this.moduleSize,i=t/2;for(let r=0;r<3;r++)if(Math.abs(t-n[r])>=i)return!1;return!0}crossCheckVertical(n,t,i,r){const e=this.image,o=e.getHeight(),u=this.crossCheckStateCount;u[0]=0;u[1]=0;u[2]=0;let f=n;while(f>=0&&e.get(t,f)&&u[1]<=i)u[1]++,f--;if(f<0||u[1]>i)return NaN;while(f>=0&&!e.get(t,f)&&u[0]<=i)u[0]++,f--;if(u[0]>i)return NaN;for(f=n+1;f<o&&e.get(t,f)&&u[1]<=i;)u[1]++,f++;if(f===o||u[1]>i)return NaN;while(f<o&&!e.get(t,f)&&u[2]<=i)u[2]++,f++;if(u[2]>i)return NaN;const s=u[0]+u[1]+u[2];return 5*Math.abs(s-r)>=2*r?NaN:this.foundPatternCross(u)?to.centerFromEnd(u,f):NaN}handlePossibleCenter(n,t,i){const f=n[0]+n[1]+n[2],r=to.centerFromEnd(n,i),u=this.crossCheckVertical(t,r,2*n[1],f);if(!isNaN(u)){const t=(n[0]+n[1]+n[2])/3;for(const n of this.possibleCenters)if(n.aboutEquals(t,u,r))return n.combineEstimate(u,r,t);const i=new fs(r,u,t);this.possibleCenters.push(i);this.resultPointCallback!==null&&this.resultPointCallback!==undefined&&this.resultPointCallback.foundPossibleResultPoint(i)}return null}}class es extends l{constructor(n,t,i,r){super(n,t);this.estimatedModuleSize=i;this.count=r;undefined===r&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(n,t,i){if(Math.abs(t-this.getY())<=n&&Math.abs(i-this.getX())<=n){const t=Math.abs(n-this.estimatedModuleSize);return t<=1||t<=this.estimatedModuleSize}return!1}combineEstimate(n,t,i){const r=this.count+1,u=(this.count*this.getX()+t)/r,f=(this.count*this.getY()+n)/r,e=(this.count*this.estimatedModuleSize+i)/r;return new es(u,f,e,r)}}class ph{constructor(n){this.bottomLeft=n[0];this.topLeft=n[1];this.topRight=n[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class pi{constructor(n,t){this.image=n;this.resultPointCallback=t;this.possibleCenters=[];this.crossCheckStateCount=new Int32Array(5);this.resultPointCallback=t}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(n){const h=n!==null&&n!==undefined&&undefined!==n.get(yt.TRY_HARDER),e=n!==null&&n!==undefined&&undefined!==n.get(yt.PURE_BARCODE),r=this.image,o=r.getHeight(),u=r.getWidth();let i=Math.floor(3*o/(4*pi.MAX_MODULES));(i<pi.MIN_SKIP||h)&&(i=pi.MIN_SKIP);let f=!1;const t=new Int32Array(5);for(let n=i-1;n<o&&!f;n+=i){t[0]=0;t[1]=0;t[2]=0;t[3]=0;t[4]=0;let o=0;for(let s=0;s<u;s++)if(r.get(s,n))(o&1)==1&&o++,t[o]++;else if((o&1)==0)if(o===4)if(pi.foundPatternCross(t)){const r=this.handlePossibleCenter(t,n,s,e);if(r===!0)if(i=2,this.hasSkipped===!0)f=this.haveMultiplyConfirmedCenters();else{const r=this.findRowSkip();r>t[2]&&(n+=r-t[2]-i,s=u-1)}else{t[0]=t[2];t[1]=t[3];t[2]=t[4];t[3]=1;t[4]=0;o=3;continue}o=0;t[0]=0;t[1]=0;t[2]=0;t[3]=0;t[4]=0}else t[0]=t[2],t[1]=t[3],t[2]=t[4],t[3]=1,t[4]=0,o=3;else t[++o]++;else t[o]++;if(pi.foundPatternCross(t)){const r=this.handlePossibleCenter(t,n,u,e);r===!0&&(i=t[0],this.hasSkipped&&(f=this.haveMultiplyConfirmedCenters()))}}const s=this.selectBestPatterns();return l.orderBestPatterns(s),new ph(s)}static centerFromEnd(n,t){return t-n[4]-n[3]-n[2]/2}static foundPatternCross(n){let r=0;for(let t=0;t<5;t++){const i=n[t];if(i===0)return!1;r+=i}if(r<7)return!1;const t=r/7,i=t/2;return Math.abs(t-n[0])<i&&Math.abs(t-n[1])<i&&Math.abs(3*t-n[2])<3*i&&Math.abs(t-n[3])<i&&Math.abs(t-n[4])<i}getCrossCheckStateCount(){const n=this.crossCheckStateCount;return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n}crossCheckDiagonal(n,t,i,r){const f=this.getCrossCheckStateCount();let u=0;const e=this.image;while(n>=u&&t>=u&&e.get(t-u,n-u))f[2]++,u++;if(n<u||t<u)return!1;while(n>=u&&t>=u&&!e.get(t-u,n-u)&&f[1]<=i)f[1]++,u++;if(n<u||t<u||f[1]>i)return!1;while(n>=u&&t>=u&&e.get(t-u,n-u)&&f[0]<=i)f[0]++,u++;if(f[0]>i)return!1;const o=e.getHeight(),s=e.getWidth();for(u=1;n+u<o&&t+u<s&&e.get(t+u,n+u);)f[2]++,u++;if(n+u>=o||t+u>=s)return!1;while(n+u<o&&t+u<s&&!e.get(t+u,n+u)&&f[3]<i)f[3]++,u++;if(n+u>=o||t+u>=s||f[3]>=i)return!1;while(n+u<o&&t+u<s&&e.get(t+u,n+u)&&f[4]<i)f[4]++,u++;if(f[4]>=i)return!1;const h=f[0]+f[1]+f[2]+f[3]+f[4];return Math.abs(h-r)<2*r&&pi.foundPatternCross(f)}crossCheckVertical(n,t,i,r){const e=this.image,o=e.getHeight(),f=this.getCrossCheckStateCount();let u=n;while(u>=0&&e.get(t,u))f[2]++,u--;if(u<0)return NaN;while(u>=0&&!e.get(t,u)&&f[1]<=i)f[1]++,u--;if(u<0||f[1]>i)return NaN;while(u>=0&&e.get(t,u)&&f[0]<=i)f[0]++,u--;if(f[0]>i)return NaN;for(u=n+1;u<o&&e.get(t,u);)f[2]++,u++;if(u===o)return NaN;while(u<o&&!e.get(t,u)&&f[3]<i)f[3]++,u++;if(u===o||f[3]>=i)return NaN;while(u<o&&e.get(t,u)&&f[4]<i)f[4]++,u++;if(f[4]>=i)return NaN;const s=f[0]+f[1]+f[2]+f[3]+f[4];return 5*Math.abs(s-r)>=2*r?NaN:pi.foundPatternCross(f)?pi.centerFromEnd(f,u):NaN}crossCheckHorizontal(n,t,i,r){const e=this.image,o=e.getWidth(),f=this.getCrossCheckStateCount();let u=n;while(u>=0&&e.get(u,t))f[2]++,u--;if(u<0)return NaN;while(u>=0&&!e.get(u,t)&&f[1]<=i)f[1]++,u--;if(u<0||f[1]>i)return NaN;while(u>=0&&e.get(u,t)&&f[0]<=i)f[0]++,u--;if(f[0]>i)return NaN;for(u=n+1;u<o&&e.get(u,t);)f[2]++,u++;if(u===o)return NaN;while(u<o&&!e.get(u,t)&&f[3]<i)f[3]++,u++;if(u===o||f[3]>=i)return NaN;while(u<o&&e.get(u,t)&&f[4]<i)f[4]++,u++;if(f[4]>=i)return NaN;const s=f[0]+f[1]+f[2]+f[3]+f[4];return 5*Math.abs(s-r)>=r?NaN:pi.foundPatternCross(f)?pi.centerFromEnd(f,u):NaN}handlePossibleCenter(n,t,i,r){const e=n[0]+n[1]+n[2]+n[3]+n[4];let u=pi.centerFromEnd(n,i),f=this.crossCheckVertical(t,Math.floor(u),n[2],e);if(!isNaN(f)&&(u=this.crossCheckHorizontal(Math.floor(u),Math.floor(f),n[2],e),!isNaN(u)&&(!r||this.crossCheckDiagonal(Math.floor(f),Math.floor(u),n[2],e)))){const t=e/7;let i=!1;const n=this.possibleCenters;for(let r=0,e=n.length;r<e;r++){const e=n[r];if(e.aboutEquals(t,f,u)){n[r]=e.combineEstimate(f,u,t);i=!0;break}}if(!i){const i=new es(u,f,t);n.push(i);this.resultPointCallback!==null&&this.resultPointCallback!==undefined&&this.resultPointCallback.foundPossibleResultPoint(i)}return!0}return!1}findRowSkip(){const t=this.possibleCenters.length;if(t<=1)return 0;let n=null;for(const t of this.possibleCenters)if(t.getCount()>=pi.CENTER_QUORUM)if(n==null)n=t;else return this.hasSkipped=!0,Math.floor((Math.abs(n.getX()-t.getX())-Math.abs(n.getY()-t.getY()))/2);return 0}haveMultiplyConfirmedCenters(){let t=0,n=0;const r=this.possibleCenters.length;for(const i of this.possibleCenters)i.getCount()>=pi.CENTER_QUORUM&&(t++,n+=i.getEstimatedModuleSize());if(t<3)return!1;const u=n/r;let i=0;for(const n of this.possibleCenters)i+=Math.abs(n.getEstimatedModuleSize()-u);return i<=.05*n}selectBestPatterns(){const i=this.possibleCenters.length;if(i<3)throw new u;const n=this.possibleCenters;let t;if(i>3){let r=0,u=0;for(const n of this.possibleCenters){const t=n.getEstimatedModuleSize();r+=t;u+=t*t}t=r/i;let f=Math.sqrt(u/i-t*t);n.sort((n,i)=>{const r=Math.abs(i.getEstimatedModuleSize()-t),u=Math.abs(n.getEstimatedModuleSize()-t);return r<u?-1:r>u?1:0});const e=Math.max(.2*t,f);for(let i=0;i<n.length&&n.length>3;i++){const r=n[i];Math.abs(r.getEstimatedModuleSize()-t)>e&&(n.splice(i,1),i--)}}if(n.length>3){let i=0;for(const t of n)i+=t.getEstimatedModuleSize();t=i/n.length;n.sort((n,i)=>{if(i.getCount()===n.getCount()){const r=Math.abs(i.getEstimatedModuleSize()-t),u=Math.abs(n.getEstimatedModuleSize()-t);return r<u?1:r>u?-1:0}return i.getCount()-n.getCount()});n.splice(3)}return[n[0],n[1],n[2]]}}pi.CENTER_QUORUM=2;pi.MIN_SKIP=3;pi.MAX_MODULES=57;class ie{constructor(n){this.image=n}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(n){this.resultPointCallback=n===null||n===undefined?null:n.get(yt.NEED_RESULT_POINT_CALLBACK);const t=new pi(this.image,this.resultPointCallback),i=t.find(n);return this.processFinderPatternInfo(i)}processFinderPatternInfo(n){const t=n.getTopLeft(),i=n.getTopRight(),r=n.getBottomLeft(),e=this.calculateModuleSize(t,i,r);if(e<1)throw new u("No pattern found in proccess finder.");const o=ie.computeDimension(t,i,r,e),s=a.getProvisionalVersionForDimension(o),c=s.getDimensionForVersion()-7;let f=null;if(s.getAlignmentPatternCenters().length>0){const o=i.getX()-t.getX()+r.getX(),s=i.getY()-t.getY()+r.getY(),n=1-3/c,h=Math.floor(t.getX()+n*(o-t.getX())),l=Math.floor(t.getY()+n*(s-t.getY()));for(let n=4;n<=16;n<<=1)try{f=this.findAlignmentInRegion(e,h,l,n);break}catch(t){if(!(t instanceof u))throw t;}}const l=ie.createTransform(t,i,r,f,o),v=ie.sampleGrid(this.image,l,o);let h;return h=f===null?[r,t,i]:[r,t,i,f],new df(v,h)}static createTransform(n,t,i,r,u){const f=u-3.5;let o,s,e,h;return r!==null?(o=r.getX(),s=r.getY(),e=f-3,h=e):(o=t.getX()-n.getX()+i.getX(),s=t.getY()-n.getY()+i.getY(),e=f,h=f),pr.quadrilateralToQuadrilateral(3.5,3.5,f,3.5,e,h,3.5,f,n.getX(),n.getY(),t.getX(),t.getY(),o,s,i.getX(),i.getY())}static sampleGrid(n,t,i){const r=hu.getInstance();return r.sampleGridWithTransform(n,i,i,t)}static computeDimension(n,t,i,r){const e=it.round(l.distance(n,t)/r),o=it.round(l.distance(n,i)/r);let f=Math.floor((e+o)/2)+7;switch(f&3){case 0:f++;break;case 2:f--;break;case 3:throw new u("Dimensions could be not found.");}return f}calculateModuleSize(n,t,i){return(this.calculateModuleSizeOneWay(n,t)+this.calculateModuleSizeOneWay(n,i))/2}calculateModuleSizeOneWay(n,t){const i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(n.getX()),Math.floor(n.getY()),Math.floor(t.getX()),Math.floor(t.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(n.getX()),Math.floor(n.getY()));return isNaN(i)?r/7:isNaN(r)?i/7:(i+r)/14}sizeOfBlackWhiteBlackRunBothWays(n,t,i,r){let o=this.sizeOfBlackWhiteBlackRun(n,t,i,r),f=1,u=n-(i-n);u<0?(f=n/(n-u),u=0):u>=this.image.getWidth()&&(f=(this.image.getWidth()-1-n)/(u-n),u=this.image.getWidth()-1);let e=Math.floor(t-(r-t)*f);return f=1,e<0?(f=t/(t-e),e=0):e>=this.image.getHeight()&&(f=(this.image.getHeight()-1-t)/(e-t),e=this.image.getHeight()-1),u=Math.floor(n+(u-n)*f),o+=this.sizeOfBlackWhiteBlackRun(n,t,u,e),o-1}sizeOfBlackWhiteBlackRun(n,t,i,r){const f=Math.abs(r-t)>Math.abs(i-n);if(f){let u=n;n=t;t=u;u=i;i=r;r=u}const s=Math.abs(i-n),h=Math.abs(r-t);let e=-s/2;const o=n<i?1:-1,c=t<r?1:-1;let u=0;const l=i+o;for(let i=n,a=t;i!==l;i+=o){const o=f?a:i,l=f?i:a;if(u===1===this.image.get(o,l)){if(u===2)return it.distance(i,a,n,t);u++}if(e+=h,e>0){if(a===r)break;a+=c;e-=s}}return u===2?it.distance(i+o,r,n,t):NaN}findAlignmentInRegion(n,t,i,r){const f=Math.floor(r*n),e=Math.max(0,t-f),s=Math.min(this.image.getWidth()-1,t+f);if(s-e<n*3)throw new u("Alignment top exceeds estimated module size.");const o=Math.max(0,i-f),h=Math.min(this.image.getHeight()-1,i+f);if(h-o<n*3)throw new u("Alignment bottom exceeds estimated module size.");const c=new to(this.image,e,o,s-e,h-o,n,this.resultPointCallback);return c.find()}}class yu{constructor(){this.decoder=new yh}getDecoder(){return this.decoder}decode(n,t){let i,u;if(t!==undefined&&t!==null&&undefined!==t.get(yt.PURE_BARCODE)){const r=yu.extractPureBits(n.getBlackMatrix());i=this.decoder.decodeBitMatrix(r,t);u=yu.NO_POINTS}else{const r=new ie(n.getBlackMatrix()).detect(t);i=this.decoder.decodeBitMatrix(r.getBits(),t);u=r.getPoints()}i.getOther()instanceof us&&i.getOther().applyMirroredCorrection(u);const r=new gi(i.getText(),i.getRawBytes(),undefined,u,v.QR_CODE,undefined),f=i.getByteSegments();f!==null&&r.putMetadata(ei.BYTE_SEGMENTS,f);const e=i.getECLevel();return e!==null&&r.putMetadata(ei.ERROR_CORRECTION_LEVEL,e),i.hasStructuredAppend()&&(r.putMetadata(ei.STRUCTURED_APPEND_SEQUENCE,i.getStructuredAppendSequenceNumber()),r.putMetadata(ei.STRUCTURED_APPEND_PARITY,i.getStructuredAppendParity())),r}reset(){}static extractPureBits(n){const h=n.getTopLeftOnBit(),l=n.getBottomRightOnBit();if(h===null||l===null)throw new u;const r=this.moduleSize(h,n);let t=h[1],e=l[1],i=h[0],f=l[0];if(i>=f||t>=e)throw new u;if(e-t!=f-i&&(f=i+(e-t),f>=n.getWidth()))throw new u;const o=Math.round((f-i+1)/r),s=Math.round((e-t+1)/r);if(o<=0||s<=0)throw new u;if(s!==o)throw new u;const c=Math.floor(r/2);t+=c;i+=c;const a=i+Math.floor((o-1)*r)-f;if(a>0){if(a>c)throw new u;i-=a}const v=t+Math.floor((s-1)*r)-e;if(v>0){if(v>c)throw new u;t-=v}const y=new ai(o,s);for(let u=0;u<s;u++){const f=t+Math.floor(u*r);for(let t=0;t<o;t++)n.get(i+Math.floor(t*r),f)&&y.set(t,u)}return y}static moduleSize(n,t){const e=t.getHeight(),o=t.getWidth();let i=n[0],r=n[1],f=!0,s=0;while(i<o&&r<e){if(f!==t.get(i,r)){if(++s==5)break;f=!f}i++;r++}if(i===o||r===e)throw new u;return(i-n[0])/7}}yu.NO_POINTS=[];class w{PDF417Common(){}static getBitCountSum(n){return it.sum(n)}static toIntArray(n){if(n==null||!n.length)return w.EMPTY_INT_ARRAY;const t=new Int32Array(n.length);let i=0;for(const r of n)t[i++]=r;return t}static getCodeword(n){const t=li.binarySearch(w.SYMBOL_TABLE,n&262143);return t<0?-1:(w.CODEWORD_TABLE[t]-1)%w.NUMBER_OF_CODEWORDS}}w.NUMBER_OF_CODEWORDS=929;w.MAX_CODEWORDS_IN_BARCODE=w.NUMBER_OF_CODEWORDS-1;w.MIN_ROWS_IN_BARCODE=3;w.MAX_ROWS_IN_BARCODE=90;w.MODULES_IN_CODEWORD=17;w.MODULES_IN_STOP_PATTERN=18;w.BARS_IN_MODULE=8;w.EMPTY_INT_ARRAY=new Int32Array([]);w.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]);w.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]);class wh{constructor(n,t){this.bits=n;this.points=t}getBits(){return this.bits}getPoints(){return this.points}}class g{static detectMultiple(n,t,i){let r=n.getBlackMatrix(),u=g.detect(i,r);return u.length||(r=r.clone(),r.rotate180(),u=g.detect(i,r)),new wh(r,u)}static detect(n,t){const u=[];let i=0,r=0,f=!1;while(i<t.getHeight()){const e=g.findVertices(t,i,r);if(e[0]==null&&e[3]==null){if(!f)break;f=!1;r=0;for(const n of u)n[1]!=null&&(i=Math.trunc(Math.max(i,n[1].getY()))),n[3]!=null&&(i=Math.max(i,Math.trunc(n[3].getY())));i+=g.ROW_STEP;continue}if(f=!0,u.push(e),!n)break;e[2]!=null?(r=Math.trunc(e[2].getX()),i=Math.trunc(e[2].getY())):(r=Math.trunc(e[4].getX()),i=Math.trunc(e[4].getY()))}return u}static findVertices(n,t,i){const u=n.getHeight(),f=n.getWidth(),r=new Array(8);return g.copyToResult(r,g.findRowsWithPattern(n,u,f,t,i,g.START_PATTERN),g.INDEXES_START_PATTERN),r[4]!=null&&(i=Math.trunc(r[4].getX()),t=Math.trunc(r[4].getY())),g.copyToResult(r,g.findRowsWithPattern(n,u,f,t,i,g.STOP_PATTERN),g.INDEXES_STOP_PATTERN),r}static copyToResult(n,t,i){for(let r=0;r<i.length;r++)n[i[r]]=t[r]}static findRowsWithPattern(n,t,i,r,u,f){const e=new Array(4);let h=!1;const s=new Int32Array(f.length);for(;r<t;r+=g.ROW_STEP){let t=g.findGuardPattern(n,u,r,i,!1,f,s);if(t!=null){while(r>0){const e=g.findGuardPattern(n,u,--r,i,!1,f,s);if(e!=null)t=e;else{r++;break}}e[0]=new l(t[0],r);e[1]=new l(t[1],r);h=!0;break}}let o=r+1;if(h){let u=0,r=Int32Array.from([Math.trunc(e[0].getX()),Math.trunc(e[1].getX())]);for(;o<t;o++){const t=g.findGuardPattern(n,r[0],o,i,!1,f,s);if(t!=null&&Math.abs(r[0]-t[0])<g.MAX_PATTERN_DRIFT&&Math.abs(r[1]-t[1])<g.MAX_PATTERN_DRIFT)r=t,u=0;else if(u>g.SKIPPED_ROW_COUNT_MAX)break;else u++}o-=u+1;e[2]=new l(r[0],o);e[3]=new l(r[1],o)}return o-r<g.BARCODE_MIN_HEIGHT&&li.fill(e,null),e}static findGuardPattern(n,t,i,r,u,f,e){li.fillWithin(e,0,e.length,0);let s=t,l=0;while(n.get(s,i)&&s>0&&l++<g.MAX_PIXEL_DRIFT)s--;let h=s,o=0,c=f.length;for(let t=u;h<r;h++){let r=n.get(h,i);if(r!==t)e[o]++;else{if(o===c-1){if(g.patternMatchVariance(e,f,g.MAX_INDIVIDUAL_VARIANCE)<g.MAX_AVG_VARIANCE)return new Int32Array([s,h]);s+=e[0]+e[1];lt.arraycopy(e,2,e,0,o-1);e[o-1]=0;e[o]=0;o--}else o++;e[o]=1;t=!t}}return o===c-1&&g.patternMatchVariance(e,f,g.MAX_INDIVIDUAL_VARIANCE)<g.MAX_AVG_VARIANCE?new Int32Array([s,h-1]):null}static patternMatchVariance(n,t,i){let f=n.length,r=0,u=0;for(let i=0;i<f;i++)r+=n[i],u+=t[i];if(r<u)return Infinity;let e=r/u;i*=e;let o=0;for(let r=0;r<f;r++){let u=n[r],f=t[r]*e,s=u>f?u-f:f-u;if(s>i)return Infinity;o+=s}return o/r}}g.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]);g.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]);g.MAX_AVG_VARIANCE=.42;g.MAX_INDIVIDUAL_VARIANCE=.8;g.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]);g.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]);g.MAX_PIXEL_DRIFT=3;g.MAX_PATTERN_DRIFT=5;g.SKIPPED_ROW_COUNT_MAX=25;g.ROW_STEP=5;g.BARCODE_MIN_HEIGHT=10;class ki{constructor(n,t){if(t.length===0)throw new c;this.field=n;let i=t.length;if(i>1&&t[0]===0){let n=1;while(n<i&&t[n]===0)n++;n===i?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(i-n),lt.arraycopy(t,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return this.coefficients[0]===0}getCoefficient(n){return this.coefficients[this.coefficients.length-1-n]}evaluateAt(n){if(n===0)return this.getCoefficient(0);if(n===1){let n=0;for(let t of this.coefficients)n=this.field.add(n,t);return n}let t=this.coefficients[0],i=this.coefficients.length;for(let r=1;r<i;r++)t=this.field.add(this.field.multiply(n,t),this.coefficients[r]);return t}add(n){if(!this.field.equals(n.field))throw new c("ModulusPolys do not have same ModulusGF field");if(this.isZero())return n;if(n.isZero())return this;let i=this.coefficients,t=n.coefficients;if(i.length>t.length){let n=i;i=t;t=n}let r=new Int32Array(t.length),u=t.length-i.length;lt.arraycopy(t,0,r,0,u);for(let n=u;n<t.length;n++)r[n]=this.field.add(i[n-u],t[n]);return new ki(this.field,r)}subtract(n){if(!this.field.equals(n.field))throw new c("ModulusPolys do not have same ModulusGF field");return n.isZero()?this:this.add(n.negative())}multiply(n){return n instanceof ki?this.multiplyOther(n):this.multiplyScalar(n)}multiplyOther(n){if(!this.field.equals(n.field))throw new c("ModulusPolys do not have same ModulusGF field");if(this.isZero()||n.isZero())return new ki(this.field,new Int32Array([0]));let i=this.coefficients,r=i.length,u=n.coefficients,f=u.length,t=new Int32Array(r+f-1);for(let n=0;n<r;n++){let r=i[n];for(let i=0;i<f;i++)t[n+i]=this.field.add(t[n+i],this.field.multiply(r,u[i]))}return new ki(this.field,t)}negative(){let n=this.coefficients.length,t=new Int32Array(n);for(let i=0;i<n;i++)t[i]=this.field.subtract(0,this.coefficients[i]);return new ki(this.field,t)}multiplyScalar(n){if(n===0)return new ki(this.field,new Int32Array([0]));if(n===1)return this;let t=this.coefficients.length,i=new Int32Array(t);for(let r=0;r<t;r++)i[r]=this.field.multiply(this.coefficients[r],n);return new ki(this.field,i)}multiplyByMonomial(n,t){if(n<0)throw new c;if(t===0)return new ki(this.field,new Int32Array([0]));let i=this.coefficients.length,r=new Int32Array(i+n);for(let n=0;n<i;n++)r[n]=this.field.multiply(this.coefficients[n],t);return new ki(this.field,r)}toString(){let n=new ht;for(let t=this.getDegree();t>=0;t--){let i=this.getCoefficient(t);i!==0&&(i<0?(n.append(" - "),i=-i):n.length()>0&&n.append(" + "),(t===0||i!==1)&&n.append(i),t!==0&&(t===1?n.append("x"):(n.append("x^"),n.append(t))))}return n.toString()}}class bh{add(n,t){return(n+t)%this.modulus}subtract(n,t){return(this.modulus+n-t)%this.modulus}exp(n){return this.expTable[n]}log(n){if(n===0)throw new c;return this.logTable[n]}inverse(n){if(n===0)throw new bf;return this.expTable[this.modulus-this.logTable[n]-1]}multiply(n,t){return n===0||t===0?0:this.expTable[(this.logTable[n]+this.logTable[t])%(this.modulus-1)]}getSize(){return this.modulus}equals(n){return n===this}}class io extends bh{constructor(n,t){super();this.modulus=n;this.expTable=new Int32Array(n);this.logTable=new Int32Array(n);let i=1;for(let r=0;r<n;r++)this.expTable[r]=i,i=i*t%n;for(let t=0;t<n-1;t++)this.logTable[this.expTable[t]]=t;this.zero=new ki(this,new Int32Array([0]));this.one=new ki(this,new Int32Array([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(n,t){if(n<0)throw new c;if(t===0)return this.zero;let i=new Int32Array(n+1);return i[0]=t,new ki(this,i)}}io.PDF417_GF=new io(w.NUMBER_OF_CODEWORDS,3);class os{constructor(){this.field=io.PDF417_GF}decode(n,t,i){let h=new ki(this.field,n),u=new Int32Array(t),f=!1;for(let n=t;n>0;n--){let i=h.evaluateAt(this.field.exp(n));u[t-n]=i;i!==0&&(f=!0)}if(!f)return 0;let e=this.field.getOne();if(i!=null)for(const t of i){let i=this.field.exp(n.length-1-t),r=new ki(this.field,new Int32Array([this.field.subtract(0,i),1]));e=e.multiply(r)}let c=new ki(this.field,u),o=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),c,t),s=o[0],l=o[1],r=this.findErrorLocations(s),a=this.findErrorMagnitudes(l,s,r);for(let t=0;t<r.length;t++){let i=n.length-1-this.field.log(r[t]);if(i<0)throw ri.getChecksumInstance();n[i]=this.field.subtract(n[i],a[t])}return r.length}runEuclideanAlgorithm(n,t,i){if(n.getDegree()<t.getDegree()){let i=n;n=t;t=i}let u=n,r=t,e=this.field.getZero(),f=this.field.getOne();while(r.getDegree()>=Math.round(i/2)){let t=u,i=e;if(u=r,e=f,u.isZero())throw ri.getChecksumInstance();r=t;let n=this.field.getZero(),o=u.getCoefficient(u.getDegree()),s=this.field.inverse(o);while(r.getDegree()>=u.getDegree()&&!r.isZero()){let t=r.getDegree()-u.getDegree(),i=this.field.multiply(r.getCoefficient(r.getDegree()),s);n=n.add(this.field.buildMonomial(t,i));r=r.subtract(u.multiplyByMonomial(t,i))}f=n.multiply(e).subtract(i).negative()}let o=f.getCoefficient(0);if(o===0)throw ri.getChecksumInstance();let s=this.field.inverse(o),h=f.multiply(s),c=r.multiply(s);return[h,c]}findErrorLocations(n){let i=n.getDegree(),r=new Int32Array(i),t=0;for(let u=1;u<this.field.getSize()&&t<i;u++)n.evaluateAt(u)===0&&(r[t]=this.field.inverse(u),t++);if(t!==i)throw ri.getChecksumInstance();return r}findErrorMagnitudes(n,t,i){let r=t.getDegree(),u=new Int32Array(r);for(let n=1;n<=r;n++)u[r-n]=this.field.multiply(n,t.getCoefficient(n));let o=new ki(this.field,u),f=i.length,e=new Int32Array(f);for(let t=0;t<f;t++){let r=this.field.inverse(i[t]),u=this.field.subtract(0,n.evaluateAt(r)),f=this.field.inverse(o.evaluateAt(r));e[t]=this.field.multiply(u,f)}return e}}class gu{constructor(n,t,i,r,u){n instanceof gu?this.constructor_2(n):this.constructor_1(n,t,i,r,u)}constructor_1(n,t,i,r,f){const e=t==null||i==null,o=r==null||f==null;if(e&&o)throw new u;e?(t=new l(0,r.getY()),i=new l(0,f.getY())):o&&(r=new l(n.getWidth()-1,t.getY()),f=new l(n.getWidth()-1,i.getY()));this.image=n;this.topLeft=t;this.bottomLeft=i;this.topRight=r;this.bottomRight=f;this.minX=Math.trunc(Math.min(t.getX(),i.getX()));this.maxX=Math.trunc(Math.max(r.getX(),f.getX()));this.minY=Math.trunc(Math.min(t.getY(),r.getY()));this.maxY=Math.trunc(Math.max(i.getY(),f.getY()))}constructor_2(n){this.image=n.image;this.topLeft=n.getTopLeft();this.bottomLeft=n.getBottomLeft();this.topRight=n.getTopRight();this.bottomRight=n.getBottomRight();this.minX=n.getMinX();this.maxX=n.getMaxX();this.minY=n.getMinY();this.maxY=n.getMaxY()}static merge(n,t){return n==null?t:t==null?n:new gu(n.image,n.topLeft,n.bottomLeft,t.topRight,t.bottomRight)}addMissingRows(n,t,i){let r=this.topLeft,u=this.bottomLeft,f=this.topRight,e=this.bottomRight;if(n>0){let u=i?this.topLeft:this.topRight,t=Math.trunc(u.getY()-n);t<0&&(t=0);let e=new l(u.getX(),t);i?r=e:f=e}if(t>0){let r=i?this.bottomLeft:this.bottomRight,n=Math.trunc(r.getY()+t);n>=this.image.getHeight()&&(n=this.image.getHeight()-1);let f=new l(r.getX(),n);i?u=f:e=f}return new gu(this.image,r,u,f,e)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class kh{constructor(n,t,i,r){this.columnCount=n;this.errorCorrectionLevel=r;this.rowCountUpperPart=t;this.rowCountLowerPart=i;this.rowCount=t+i}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class re{constructor(){this.buffer=""}static form(n,t){function r(n,r,u,f,e,o){if(n==="%%")return"%";if(t[++i]===undefined)return undefined;n=f?parseInt(f.substr(1)):undefined;let h=e?parseInt(e.substr(1)):undefined,s;switch(o){case"s":s=t[i];break;case"c":s=t[i][0];break;case"f":s=parseFloat(t[i]).toFixed(n);break;case"p":s=parseFloat(t[i]).toPrecision(n);break;case"e":s=parseFloat(t[i]).toExponential(n);break;case"x":s=parseInt(t[i]).toString(h?h:16);break;case"d":s=parseFloat(parseInt(t[i],h?h:10).toPrecision(n)).toFixed(0)}s=typeof s=="object"?JSON.stringify(s):(+s).toString(h);let l=parseInt(u),c=u&&u[0]+""=="0"?"0":" ";while(s.length<l)s=r!==undefined?s+c:c+s;return s}let i=-1;return n.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,r)}format(n,...t){this.buffer+=re.form(n,t)}toString(){return this.buffer}}class ue{constructor(n){this.boundingBox=new gu(n);this.codewords=new Array(n.getMaxY()-n.getMinY()+1)}getCodewordNearby(n){let t=this.getCodeword(n);if(t!=null)return t;for(let i=1;i<ue.MAX_NEARBY_DISTANCE;i++){let r=this.imageRowToCodewordIndex(n)-i;if(r>=0&&(t=this.codewords[r],t!=null)||(r=this.imageRowToCodewordIndex(n)+i,r<this.codewords.length&&(t=this.codewords[r],t!=null)))return t}return null}imageRowToCodewordIndex(n){return n-this.boundingBox.getMinY()}setCodeword(n,t){this.codewords[this.imageRowToCodewordIndex(n)]=t}getCodeword(n){return this.codewords[this.imageRowToCodewordIndex(n)]}getBoundingBox(){return this.boundingBox}getCodewords(){return this.codewords}toString(){const n=new re;let t=0;for(const i of this.codewords){if(i==null){n.format("%3d:    |   %n",t++);continue}n.format("%3d: %3d|%3d%n",t++,i.getRowNumber(),i.getValue())}return n.toString()}}ue.MAX_NEARBY_DISTANCE=5;class af{constructor(){this.values=new Map}setValue(n){n=Math.trunc(n);let t=this.values.get(n);t==null&&(t=0);t++;this.values.set(n,t)}getValue(){let t=-1,n=[];for(const[i,r]of this.values.entries()){const u={getKey:()=>i,getValue:()=>r};u.getValue()>t?(t=u.getValue(),n=[],n.push(u.getKey())):u.getValue()===t&&n.push(u.getKey())}return w.toIntArray(n)}getConfidence(n){return this.values.get(n)}}class ss extends ue{constructor(n,t){super(n);this._isLeft=t}setRowNumbers(){for(let n of this.getCodewords())n!=null&&n.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(n){let t=this.getCodewords();this.setRowNumbers();this.removeIncorrectCodewords(t,n);let i=this.getBoundingBox(),e=this._isLeft?i.getTopLeft():i.getTopRight(),o=this._isLeft?i.getBottomLeft():i.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(e.getY())),h=this.imageRowToCodewordIndex(Math.trunc(o.getY())),f=-1,r=1,u=0;for(let i=s;i<h;i++)if(t[i]!=null){let o=t[i],e=o.getRowNumber()-f;if(e===0)u++;else if(e===1)r=Math.max(r,u),u=1,f=o.getRowNumber();else if(e<0||o.getRowNumber()>=n.getRowCount()||e>i)t[i]=null;else{let n;n=r>2?(r-2)*e:e;let s=n>=i;for(let r=1;r<=n&&!s;r++)s=t[i-r]!=null;s?t[i]=null:(f=o.getRowNumber(),u=1)}}}getRowHeights(){let n=this.getBarcodeMetadata();if(n==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);let t=new Int32Array(n.getRowCount());for(let n of this.getCodewords())if(n!=null){let i=n.getRowNumber();if(i>=t.length)continue;t[i]++}return t}adjustIncompleteIndicatorColumnRowNumbers(n){let t=this.getBoundingBox(),u=this._isLeft?t.getTopLeft():t.getTopRight(),f=this._isLeft?t.getBottomLeft():t.getBottomRight(),e=this.imageRowToCodewordIndex(Math.trunc(u.getY())),o=this.imageRowToCodewordIndex(Math.trunc(f.getY())),i=this.getCodewords(),r=-1;for(let t=e;t<o;t++)if(i[t]!=null){let u=i[t];u.setRowNumberAsRowIndicatorColumn();let f=u.getRowNumber()-r;f===0||(f===1?r=u.getRowNumber():u.getRowNumber()>=n.getRowCount()?i[t]=null:r=u.getRowNumber())}}getBarcodeMetadata(){let u=this.getCodewords(),i=new af,n=new af,t=new af,r=new af;for(let f of u)if(f!=null){f.setRowNumberAsRowIndicatorColumn();let u=f.getValue()%30,e=f.getRowNumber();this._isLeft||(e+=2);switch(e%3){case 0:n.setValue(u*3+1);break;case 1:r.setValue(u/3);t.setValue(u%3);break;case 2:i.setValue(u+1)}}if(i.getValue().length===0||n.getValue().length===0||t.getValue().length===0||r.getValue().length===0||i.getValue()[0]<1||n.getValue()[0]+t.getValue()[0]<w.MIN_ROWS_IN_BARCODE||n.getValue()[0]+t.getValue()[0]>w.MAX_ROWS_IN_BARCODE)return null;let f=new kh(i.getValue()[0],n.getValue()[0],t.getValue()[0],r.getValue()[0]);return this.removeIncorrectCodewords(u,f),f}removeIncorrectCodewords(n,t){for(let i=0;i<n.length;i++){let f=n[i];if(n[i]!=null){let r=f.getValue()%30,u=f.getRowNumber();if(u>t.getRowCount()){n[i]=null;continue}this._isLeft||(u+=2);switch(u%3){case 0:r*3+1!==t.getRowCountUpperPart()&&(n[i]=null);break;case 1:(Math.trunc(r/3)!==t.getErrorCorrectionLevel()||r%3!==t.getRowCountLowerPart())&&(n[i]=null);break;case 2:r+1!==t.getColumnCount()&&(n[i]=null)}}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+"\n"+super.toString()}}class fe{constructor(n,t){this.ADJUST_ROW_NUMBER_SKIP=2;this.barcodeMetadata=n;this.barcodeColumnCount=n.getColumnCount();this.boundingBox=t;this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]);this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let n=w.MAX_CODEWORDS_IN_BARCODE,t;do t=n,n=this.adjustRowNumbersAndGetCount();while(n>0&&n<t);return this.detectionResultColumns}adjustIndicatorColumnRowNumbers(n){n!=null&&n.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)}adjustRowNumbersAndGetCount(){let n=this.adjustRowNumbersByRow();if(n===0)return 0;for(let n=1;n<this.barcodeColumnCount+1;n++){let t=this.detectionResultColumns[n].getCodewords();for(let i=0;i<t.length;i++)t[i]!=null&&(t[i].hasValidRowNumber()||this.adjustRowNumbers(n,i,t))}return n}adjustRowNumbersByRow(){this.adjustRowNumbersFromBothRI();let n=this.adjustRowNumbersFromLRI();return n+this.adjustRowNumbersFromRRI()}adjustRowNumbersFromBothRI(){if(this.detectionResultColumns[0]!=null&&this.detectionResultColumns[this.barcodeColumnCount+1]!=null){let n=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let i=0;i<n.length;i++)if(n[i]!=null&&t[i]!=null&&n[i].getRowNumber()===t[i].getRowNumber())for(let t=1;t<=this.barcodeColumnCount;t++){let r=this.detectionResultColumns[t].getCodewords()[i];r!=null&&(r.setRowNumber(n[i].getRowNumber()),r.hasValidRowNumber()||(this.detectionResultColumns[t].getCodewords()[i]=null))}}}adjustRowNumbersFromRRI(){if(this.detectionResultColumns[this.barcodeColumnCount+1]==null)return 0;let t=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let i=0;i<n.length;i++)if(n[i]!=null){let u=n[i].getRowNumber(),r=0;for(let n=this.barcodeColumnCount+1;n>0&&r<this.ADJUST_ROW_NUMBER_SKIP;n--){let f=this.detectionResultColumns[n].getCodewords()[i];f!=null&&(r=fe.adjustRowNumberIfValid(u,r,f),f.hasValidRowNumber()||t++)}}return t}adjustRowNumbersFromLRI(){if(this.detectionResultColumns[0]==null)return 0;let t=0,n=this.detectionResultColumns[0].getCodewords();for(let i=0;i<n.length;i++)if(n[i]!=null){let u=n[i].getRowNumber(),r=0;for(let n=1;n<this.barcodeColumnCount+1&&r<this.ADJUST_ROW_NUMBER_SKIP;n++){let f=this.detectionResultColumns[n].getCodewords()[i];f!=null&&(r=fe.adjustRowNumberIfValid(u,r,f),f.hasValidRowNumber()||t++)}}return t}static adjustRowNumberIfValid(n,t,i){return i==null?t:(i.hasValidRowNumber()||(i.isValidRowNumber(n)?(i.setRowNumber(n),t=0):++t),t)}adjustRowNumbers(n,t,i){if(this.detectionResultColumns[n-1]!=null){let e=i[t],u=this.detectionResultColumns[n-1].getCodewords(),f=u;this.detectionResultColumns[n+1]!=null&&(f=this.detectionResultColumns[n+1].getCodewords());let r=new Array(14);r[2]=u[t];r[3]=f[t];t>0&&(r[0]=i[t-1],r[4]=u[t-1],r[5]=f[t-1]);t>1&&(r[8]=i[t-2],r[10]=u[t-2],r[11]=f[t-2]);t<i.length-1&&(r[1]=i[t+1],r[6]=u[t+1],r[7]=f[t+1]);t<i.length-2&&(r[9]=i[t+2],r[12]=u[t+2],r[13]=f[t+2]);for(let n of r)if(fe.adjustRowNumber(e,n))return}}static adjustRowNumber(n,t){return t==null?!1:t.hasValidRowNumber()&&t.getBucket()===n.getBucket()?(n.setRowNumber(t.getRowNumber()),!0):!1}getBarcodeColumnCount(){return this.barcodeColumnCount}getBarcodeRowCount(){return this.barcodeMetadata.getRowCount()}getBarcodeECLevel(){return this.barcodeMetadata.getErrorCorrectionLevel()}setBoundingBox(n){this.boundingBox=n}getBoundingBox(){return this.boundingBox}setDetectionResultColumn(n,t){this.detectionResultColumns[n]=t}getDetectionResultColumn(n){return this.detectionResultColumns[n]}toString(){let t=this.detectionResultColumns[0];t==null&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);let n=new re;for(let i=0;i<t.getCodewords().length;i++){n.format("CW %3d:",i);for(let t=0;t<this.barcodeColumnCount+2;t++){if(this.detectionResultColumns[t]==null){n.format("    |   ");continue}let r=this.detectionResultColumns[t].getCodewords()[i];if(r==null){n.format("    |   ");continue}n.format(" %3d|%3d",r.getRowNumber(),r.getValue())}n.format("%n")}return n.toString()}}class ee{constructor(n,t,i,r){this.rowNumber=ee.BARCODE_ROW_UNKNOWN;this.startX=Math.trunc(n);this.endX=Math.trunc(t);this.bucket=Math.trunc(i);this.value=Math.trunc(r)}hasValidRowNumber(){return this.isValidRowNumber(this.rowNumber)}isValidRowNumber(n){return n!==ee.BARCODE_ROW_UNKNOWN&&this.bucket===n%3*3}setRowNumberAsRowIndicatorColumn(){this.rowNumber=Math.trunc(Math.trunc(this.value/30)*3+Math.trunc(this.bucket/3))}getWidth(){return this.endX-this.startX}getStartX(){return this.startX}getEndX(){return this.endX}getBucket(){return this.bucket}getValue(){return this.value}getRowNumber(){return this.rowNumber}setRowNumber(n){this.rowNumber=n}toString(){return this.rowNumber+"|"+this.value}}ee.BARCODE_ROW_UNKNOWN=-1;class hr{static initialize(){for(let n=0;n<w.SYMBOL_TABLE.length;n++){let t=w.SYMBOL_TABLE[n],i=t&1;for(let r=0;r<w.BARS_IN_MODULE;r++){let u=0;while((t&1)===i)u+=1,t>>=1;i=t&1;hr.RATIOS_TABLE[n]||(hr.RATIOS_TABLE[n]=new Array(w.BARS_IN_MODULE));hr.RATIOS_TABLE[n][w.BARS_IN_MODULE-r-1]=Math.fround(u/w.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(n){let t=hr.getDecodedCodewordValue(hr.sampleBitCounts(n));return t!==-1?t:hr.getClosestDecodedValue(n)}static sampleBitCounts(n){let i=it.sum(n),r=new Int32Array(w.BARS_IN_MODULE),t=0,u=0;for(let f=0;f<w.MODULES_IN_CODEWORD;f++){let e=i/(2*w.MODULES_IN_CODEWORD)+f*i/w.MODULES_IN_CODEWORD;u+n[t]<=e&&(u+=n[t],t++);r[t]++}return r}static getDecodedCodewordValue(n){let t=hr.getBitValue(n);return w.getCodeword(t)===-1?-1:t}static getBitValue(n){let t=0;for(let i=0;i<n.length;i++)for(let r=0;r<n[i];r++)t=t<<1|(i%2==0?1:0);return Math.trunc(t)}static getClosestDecodedValue(n){let r=it.sum(n),t=new Array(w.BARS_IN_MODULE);if(r>1)for(let i=0;i<t.length;i++)t[i]=Math.fround(n[i]/r);let i=kf.MAX_VALUE,u=-1;this.bSymbolTableReady||hr.initialize();for(let n=0;n<hr.RATIOS_TABLE.length;n++){let r=0,f=hr.RATIOS_TABLE[n];for(let n=0;n<w.BARS_IN_MODULE;n++){let u=Math.fround(f[n]-t[n]);if(r+=Math.fround(u*u),r>=i)break}r<i&&(i=r,u=w.SYMBOL_TABLE[n])}return u}}hr.bSymbolTableReady=!1;hr.RATIOS_TABLE=new Array(w.SYMBOL_TABLE.length).map(n=>n=new Array(w.BARS_IN_MODULE));class hs{constructor(){this.segmentCount=-1;this.fileSize=-1;this.timestamp=-1;this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(n){this.segmentIndex=n}getFileId(){return this.fileId}setFileId(n){this.fileId=n}getOptionalData(){return this.optionalData}setOptionalData(n){this.optionalData=n}isLastSegment(){return this.lastSegment}setLastSegment(n){this.lastSegment=n}getSegmentCount(){return this.segmentCount}setSegmentCount(n){this.segmentCount=n}getSender(){return this.sender||null}setSender(n){this.sender=n}getAddressee(){return this.addressee||null}setAddressee(n){this.addressee=n}getFileName(){return this.fileName}setFileName(n){this.fileName=n}getFileSize(){return this.fileSize}setFileSize(n){this.fileSize=n}getChecksum(){return this.checksum}setChecksum(n){this.checksum=n}getTimestamp(){return this.timestamp}setTimestamp(n){this.timestamp=n}}class cs{static parseLong(n,t=undefined){return parseInt(n,t)}}class ls extends wi{}ls.kind="NullPointerException";class dh{writeBytes(n){this.writeBytesOffset(n,0,n.length)}writeBytesOffset(n,t,i){if(n==null)throw new ls;else if(t<0||t>n.length||i<0||t+i>n.length||t+i<0)throw new wf;else if(i===0)return;for(let r=0;r<i;r++)this.write(n[t+r])}flush(){}close(){}}class gh extends wi{}class nc extends dh{constructor(n=32){if(super(),this.count=0,n<0)throw new c("Negative initial size: "+n);this.buf=new Uint8Array(n)}ensureCapacity(n){n-this.buf.length>0&&this.grow(n)}grow(n){let i=this.buf.length,t=i<<1;if(t-n<0&&(t=n),t<0){if(n<0)throw new gh;t=k.MAX_VALUE}this.buf=li.copyOfUint8Array(this.buf,t)}write(n){this.ensureCapacity(this.count+1);this.buf[this.count]=n;this.count+=1}writeBytesOffset(n,t,i){if(t<0||t>n.length||i<0||t+i-n.length>0)throw new wf;this.ensureCapacity(this.count+i);lt.arraycopy(n,t,this.buf,this.count,i);this.count+=i}writeTo(n){n.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return li.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(n){return n?typeof n=="string"?this.toString_string(n):this.toString_number(n):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(){return new String(this.buf).toString()}toString_number(){return new String(this.buf).toString()}close(){}}(function(n){n[n.ALPHA=0]="ALPHA";n[n.LOWER=1]="LOWER";n[n.MIXED=2]="MIXED";n[n.PUNCT=3]="PUNCT";n[n.ALPHA_SHIFT=4]="ALPHA_SHIFT";n[n.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(ct||(ct={}));let oe;class r{static decode(n,t){let u=new ht(""),s=e.ISO8859_1;u.enableDecoding(s);let i=1,f=n[i++],h=new hs;while(i<n[0]){switch(f){case r.TEXT_COMPACTION_MODE_LATCH:i=r.textCompaction(n,i,u);break;case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:i=r.byteCompaction(f,n,s,i,u);break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(n[i++]);break;case r.NUMERIC_COMPACTION_MODE_LATCH:i=r.numericCompaction(n,i,u);break;case r.ECI_CHARSET:let t=e.getCharacterSetECIByValue(n[i++]);break;case r.ECI_GENERAL_PURPOSE:i+=2;break;case r.ECI_USER_DEFINED:i++;break;case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:i=r.decodeMacroBlock(n,i,h);break;case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:throw new o;default:i--;i=r.textCompaction(n,i,u)}if(i<n.length)f=n[i++];else throw o.getFormatInstance();}if(u.length()===0)throw o.getFormatInstance();let c=new ff(null,u.toString(),null,t);return c.setOther(h),c}static decodeMacroBlock(n,t,i){if(t+r.NUMBER_OF_SEQUENCE_CODEWORDS>n[0])throw o.getFormatInstance();let f=new Int32Array(r.NUMBER_OF_SEQUENCE_CODEWORDS);for(let i=0;i<r.NUMBER_OF_SEQUENCE_CODEWORDS;i++,t++)f[i]=n[t];i.setSegmentIndex(k.parseInt(r.decodeBase900toBase10(f,r.NUMBER_OF_SEQUENCE_CODEWORDS)));let e=new ht;t=r.textCompaction(n,t,e);i.setFileId(e.toString());let u=-1;for(n[t]===r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(u=t+1);t<n[0];)switch(n[t]){case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:t++;switch(n[t]){case r.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:let u=new ht;t=r.textCompaction(n,t+1,u);i.setFileName(u.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_SENDER:let f=new ht;t=r.textCompaction(n,t+1,f);i.setSender(f.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:let e=new ht;t=r.textCompaction(n,t+1,e);i.setAddressee(e.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:let s=new ht;t=r.numericCompaction(n,t+1,s);i.setSegmentCount(k.parseInt(s.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:let h=new ht;t=r.numericCompaction(n,t+1,h);i.setTimestamp(cs.parseLong(h.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:let c=new ht;t=r.numericCompaction(n,t+1,c);i.setChecksum(k.parseInt(c.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:let l=new ht;t=r.numericCompaction(n,t+1,l);i.setFileSize(cs.parseLong(l.toString()));break;default:throw o.getFormatInstance();}break;case r.MACRO_PDF417_TERMINATOR:t++;i.setLastSegment(!0);break;default:throw o.getFormatInstance();}if(u!==-1){let r=t-u;i.isLastSegment()&&r--;i.setOptionalData(li.copyOfRange(n,u,u+r))}return t}static textCompaction(n,t,i){let f=new Int32Array((n[0]-t)*2),e=new Int32Array((n[0]-t)*2),u=0,o=!1;while(t<n[0]&&!o){let i=n[t++];if(i<r.TEXT_COMPACTION_MODE_LATCH)f[u]=i/30,f[u+1]=i%30,u+=2;else switch(i){case r.TEXT_COMPACTION_MODE_LATCH:f[u++]=r.TEXT_COMPACTION_MODE_LATCH;break;case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:t--;o=!0;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:f[u]=r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE;i=n[t++];e[u]=i;u++}}return r.decodeTextCompaction(f,e,u,i),t}static decodeTextCompaction(n,t,i,u){let f=ct.ALPHA,o=ct.ALPHA,e=0;while(e<i){let i=n[e],s="";switch(f){case ct.ALPHA:if(i<26)s=String.fromCharCode(65+i);else switch(i){case 26:s=" ";break;case r.LL:f=ct.LOWER;break;case r.ML:f=ct.MIXED;break;case r.PS:o=f;f=ct.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(t[e]);break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}break;case ct.LOWER:if(i<26)s=String.fromCharCode(97+i);else switch(i){case 26:s=" ";break;case r.AS:o=f;f=ct.ALPHA_SHIFT;break;case r.ML:f=ct.MIXED;break;case r.PS:o=f;f=ct.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(t[e]);break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}break;case ct.MIXED:if(i<r.PL)s=r.MIXED_CHARS[i];else switch(i){case r.PL:f=ct.PUNCT;break;case 26:s=" ";break;case r.LL:f=ct.LOWER;break;case r.AL:f=ct.ALPHA;break;case r.PS:o=f;f=ct.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(t[e]);break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}break;case ct.PUNCT:if(i<r.PAL)s=r.PUNCT_CHARS[i];else switch(i){case r.PAL:f=ct.ALPHA;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(t[e]);break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}break;case ct.ALPHA_SHIFT:if(f=o,i<26)s=String.fromCharCode(65+i);else switch(i){case 26:s=" ";break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}break;case ct.PUNCT_SHIFT:if(f=o,i<r.PAL)s=r.PUNCT_CHARS[i];else switch(i){case r.PAL:f=ct.ALPHA;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(t[e]);break;case r.TEXT_COMPACTION_MODE_LATCH:f=ct.ALPHA}}s!==""&&u.append(s);e++}}static byteCompaction(n,t,i,u,f){let s=new nc,e=0,o=0,h=!1;switch(n){case r.BYTE_COMPACTION_MODE_LATCH:let i=new Int32Array(6),n=t[u++];while(u<t[0]&&!h){i[e++]=n;o=900*o+n;n=t[u++];switch(n){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:u--;h=!0;break;default:if(e%5==0&&e>0){for(let n=0;n<6;++n)s.write(Number(uu(o)>>uu(8*(5-n))));o=0;e=0}}}u===t[0]&&n<r.TEXT_COMPACTION_MODE_LATCH&&(i[e++]=n);for(let n=0;n<e;n++)s.write(i[n]);break;case r.BYTE_COMPACTION_MODE_LATCH_6:while(u<t[0]&&!h){let n=t[u++];if(n<r.TEXT_COMPACTION_MODE_LATCH)e++,o=900*o+n;else switch(n){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:u--;h=!0}if(e%5==0&&e>0){for(let n=0;n<6;++n)s.write(Number(uu(o)>>uu(8*(5-n))));o=0;e=0}}}return f.append(fr.decode(s.toByteArray(),i)),u}static numericCompaction(n,t,i){let u=0,f=!1,e=new Int32Array(r.MAX_NUMERIC_CODEWORDS);while(t<n[0]&&!f){let o=n[t++];if(t===n[0]&&(f=!0),o<r.TEXT_COMPACTION_MODE_LATCH)e[u]=o,u++;else switch(o){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:t--;f=!0}(u%r.MAX_NUMERIC_CODEWORDS==0||o===r.NUMERIC_COMPACTION_MODE_LATCH||f)&&u>0&&(i.append(r.decodeBase900toBase10(e,u)),u=0)}return t}static decodeBase900toBase10(n,t){let i=uu(0);for(let u=0;u<t;u++)i+=r.EXP900[t-u-1]*uu(n[u]);let u=i.toString();if(u.charAt(0)!=="1")throw new o;return u.substring(1)}}r.TEXT_COMPACTION_MODE_LATCH=900;r.BYTE_COMPACTION_MODE_LATCH=901;r.NUMERIC_COMPACTION_MODE_LATCH=902;r.BYTE_COMPACTION_MODE_LATCH_6=924;r.ECI_USER_DEFINED=925;r.ECI_GENERAL_PURPOSE=926;r.ECI_CHARSET=927;r.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928;r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923;r.MACRO_PDF417_TERMINATOR=922;r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913;r.MAX_NUMERIC_CODEWORDS=15;r.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0;r.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1;r.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2;r.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3;r.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4;r.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5;r.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6;r.PL=25;r.LL=27;r.AS=27;r.ML=28;r.AL=28;r.PS=29;r.PAL=29;r.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'";r.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^";r.EXP900=as()?tc():[];r.NUMBER_OF_SEQUENCE_CODEWORDS=2;class nt{constructor(){}static decode(n,t,i,r,f,e,o){let s=new gu(n,t,i,r,f),c=null,a=null,h;for(let i=!0;;i=!1){if(t!=null&&(c=nt.getRowIndicatorColumn(n,s,t,!0,e,o)),r!=null&&(a=nt.getRowIndicatorColumn(n,s,r,!1,e,o)),h=nt.merge(c,a),h==null)throw u.getNotFoundInstance();let f=h.getBoundingBox();if(i&&f!=null&&(f.getMinY()<s.getMinY()||f.getMaxY()>s.getMaxY()))s=f;else break}h.setBoundingBox(s);let l=h.getBarcodeColumnCount()+1;h.setDetectionResultColumn(0,c);h.setDetectionResultColumn(l,a);let v=c!=null;for(let t=1;t<=l;t++){let r=v?t:l-t;if(h.getDetectionResultColumn(r)===undefined){let u;u=r===0||r===l?new ss(s,r===0):new ue(s);h.setDetectionResultColumn(r,u);let i=-1,f=i;for(let t=s.getMinY();t<=s.getMaxY();t++){if(i=nt.getStartColumn(h,r,t,v),i<0||i>s.getMaxX()){if(f===-1)continue;i=f}let c=nt.detectCodeword(n,s.getMinX(),s.getMaxX(),v,i,t,e,o);c!=null&&(u.setCodeword(t,c),f=i,e=Math.min(e,c.getWidth()),o=Math.max(o,c.getWidth()))}}}return nt.createDecoderResult(h)}static merge(n,t){if(n==null&&t==null)return null;let i=nt.getBarcodeMetadata(n,t);if(i==null)return null;let r=gu.merge(nt.adjustBoundingBox(n),nt.adjustBoundingBox(t));return new fe(i,r)}static adjustBoundingBox(n){if(n==null)return null;let t=n.getRowHeights();if(t==null)return null;let f=nt.getMax(t),i=0;for(let n of t)if(i+=f-n,n>0)break;let u=n.getCodewords();for(let n=0;i>0&&u[n]==null;n++)i--;let r=0;for(let n=t.length-1;n>=0;n--)if(r+=f-t[n],t[n]>0)break;for(let n=u.length-1;r>0&&u[n]==null;n--)r--;return n.getBoundingBox().addMissingRows(i,r,n.isLeft())}static getMax(n){let t=-1;for(let i of n)t=Math.max(t,i);return t}static getBarcodeMetadata(n,t){let i;if(n==null||(i=n.getBarcodeMetadata())==null)return t==null?null:t.getBarcodeMetadata();let r;return t==null||(r=t.getBarcodeMetadata())==null?i:i.getColumnCount()!==r.getColumnCount()&&i.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&i.getRowCount()!==r.getRowCount()?null:i}static getRowIndicatorColumn(n,t,i,r,u,f){let e=new ss(t,r);for(let o=0;o<2;o++){let h=o===0?1:-1,s=Math.trunc(Math.trunc(i.getX()));for(let o=Math.trunc(Math.trunc(i.getY()));o<=t.getMaxY()&&o>=t.getMinY();o+=h){let t=nt.detectCodeword(n,0,n.getWidth(),r,s,o,u,f);t!=null&&(e.setCodeword(o,t),s=r?t.getStartX():t.getEndX())}}return e}static adjustCodewordCount(n,t){let r=t[0][1],f=r.getValue(),i=n.getBarcodeColumnCount()*n.getBarcodeRowCount()-nt.getNumberOfECCodeWords(n.getBarcodeECLevel());if(f.length===0){if(i<1||i>w.MAX_CODEWORDS_IN_BARCODE)throw u.getNotFoundInstance();r.setValue(i)}else f[0]!==i&&r.setValue(i)}static createDecoderResult(n){let r=nt.createBarcodeMatrix(n);nt.adjustCodewordCount(n,r);let u=[],f=new Int32Array(n.getBarcodeRowCount()*n.getBarcodeColumnCount()),t=[],e=[];for(let i=0;i<n.getBarcodeRowCount();i++)for(let o=0;o<n.getBarcodeColumnCount();o++){let s=r[i][o+1].getValue(),h=i*n.getBarcodeColumnCount()+o;s.length===0?u.push(h):s.length===1?f[h]=s[0]:(e.push(h),t.push(s))}let i=new Array(t.length);for(let n=0;n<i.length;n++)i[n]=t[n];return nt.createDecoderResultFromAmbiguousValues(n.getBarcodeECLevel(),f,w.toIntArray(u),w.toIntArray(e),i)}static createDecoderResultFromAmbiguousValues(n,t,i,r,u){let f=new Int32Array(r.length),o=100;while(o-->0){for(let n=0;n<f.length;n++)t[r[n]]=u[n][f[n]];try{return nt.decodeCodewords(t,n,i)}catch(e){let n=e instanceof ri;if(!n)throw e;}if(f.length===0)throw ri.getChecksumInstance();for(let n=0;n<f.length;n++)if(f[n]<u[n].length-1){f[n]++;break}else if(f[n]=0,n===f.length-1)throw ri.getChecksumInstance();}throw ri.getChecksumInstance();}static createBarcodeMatrix(n){let t=Array.from({length:n.getBarcodeRowCount()},()=>new Array(n.getBarcodeColumnCount()+2));for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]=new af;let i=0;for(let r of n.getDetectionResultColumns()){if(r!=null)for(let n of r.getCodewords())if(n!=null){let r=n.getRowNumber();if(r>=0){if(r>=t.length)continue;t[r][i].setValue(n.getValue())}}i++}return t}static isValidBarcodeColumn(n,t){return t>=0&&t<=n.getBarcodeColumnCount()+1}static getStartColumn(n,t,i,r){let f=r?1:-1,u=null;if(nt.isValidBarcodeColumn(n,t-f)&&(u=n.getDetectionResultColumn(t-f).getCodeword(i)),u!=null)return r?u.getEndX():u.getStartX();if(u=n.getDetectionResultColumn(t).getCodewordNearby(i),u!=null)return r?u.getStartX():u.getEndX();if(nt.isValidBarcodeColumn(n,t-f)&&(u=n.getDetectionResultColumn(t-f).getCodewordNearby(i)),u!=null)return r?u.getEndX():u.getStartX();let e=0;while(nt.isValidBarcodeColumn(n,t-f)){t-=f;for(let i of n.getDetectionResultColumn(t).getCodewords())if(i!=null)return(r?i.getEndX():i.getStartX())+f*e*(i.getEndX()-i.getStartX());e++}return r?n.getBoundingBox().getMinX():n.getBoundingBox().getMaxX()}static detectCodeword(n,t,i,r,u,f,e,o){u=nt.adjustCodewordStartColumn(n,t,i,r,u,f);let s=nt.getModuleBitCount(n,t,i,r,u,f);if(s==null)return null;let h,c=it.sum(s);if(r)h=u+c;else{for(let n=0;n<s.length/2;n++){let t=s[n];s[n]=s[s.length-1-n];s[s.length-1-n]=t}h=u;u=h-c}if(!nt.checkCodewordSkew(c,e,o))return null;let l=hr.getDecodedValue(s),a=w.getCodeword(l);return a===-1?null:new ee(u,h,nt.getCodewordBucketNumber(l),a)}static getModuleBitCount(n,t,i,r,u,f){let e=u,o=new Int32Array(8),s=0,c=r?1:-1,h=r;while((r?e<i:e>=t)&&s<o.length)n.get(e,f)===h?(o[s]++,e+=c):(s++,h=!h);return s===o.length||e===(r?i:t)&&s===o.length-1?o:null}static getNumberOfECCodeWords(n){return 2<<n}static adjustCodewordStartColumn(n,t,i,r,u,f){let e=u,o=r?-1:1;for(let s=0;s<2;s++){while((r?e>=t:e<i)&&r===n.get(e,f)){if(Math.abs(u-e)>nt.CODEWORD_SKEW_SIZE)return u;e+=o}o=-o;r=!r}return e}static checkCodewordSkew(n,t,i){return t-nt.CODEWORD_SKEW_SIZE<=n&&n<=i+nt.CODEWORD_SKEW_SIZE}static decodeCodewords(n,t,i){if(n.length===0)throw o.getFormatInstance();let f=1<<t+1,e=nt.correctErrors(n,i,f);nt.verifyCodewordCount(n,f);let u=r.decode(n,""+t);return u.setErrorsCorrected(e),u.setErasures(i.length),u}static correctErrors(n,t,i){if(t!=null&&t.length>i/2+nt.MAX_ERRORS||i<0||i>nt.MAX_EC_CODEWORDS)throw ri.getChecksumInstance();return nt.errorCorrection.decode(n,i,t)}static verifyCodewordCount(n,t){if(n.length<4)throw o.getFormatInstance();let i=n[0];if(i>n.length)throw o.getFormatInstance();if(i===0)if(t<n.length)n[0]=n.length-t;else throw o.getFormatInstance();}static getBitCountForCodeword(n){let t=new Int32Array(8),r=0,i=t.length-1;for(;;){if((n&1)!==r&&(r=n&1,i--,i<0))break;t[i]++;n>>=1}return t}static getCodewordBucketNumber(n){return n instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(n):this.getCodewordBucketNumber_number(n)}static getCodewordBucketNumber_number(n){return nt.getCodewordBucketNumber(nt.getBitCountForCodeword(n))}static getCodewordBucketNumber_Int32Array(n){return(n[0]-n[2]+n[4]-n[6]+9)%9}static toString(n){let t=new re;for(let i=0;i<n.length;i++){t.format("Row %2d: ",i);for(let r=0;r<n[i].length;r++){let u=n[i][r];u.getValue().length===0?t.format("        ",null):t.format("%4d(%2d)",u.getValue()[0],u.getConfidence(u.getValue()[0]))}t.format("%n")}return t.toString()}}nt.CODEWORD_SKEW_SIZE=2;nt.MAX_ERRORS=3;nt.MAX_EC_CODEWORDS=512;nt.errorCorrection=new os;class di{decode(n,t=null){let i=di.decode(n,t,!1);if(i==null||i.length===0||i[0]==null)throw u.getNotFoundInstance();return i[0]}decodeMultiple(n,t=null){try{return di.decode(n,t,!0)}catch(i){if(i instanceof o||i instanceof ri)throw u.getNotFoundInstance();throw i;}}static decode(n,t,i){const r=[],u=g.detectMultiple(n,t,i);for(const n of u.getPoints()){const t=nt.decode(u.getBits(),n[4],n[5],n[6],n[7],di.getMinCodewordWidth(n),di.getMaxCodewordWidth(n)),i=new gi(t.getText(),t.getRawBytes(),undefined,n,v.PDF_417);i.putMetadata(ei.ERROR_CORRECTION_LEVEL,t.getECLevel());const f=t.getOther();f!=null&&i.putMetadata(ei.PDF417_EXTRA_METADATA,f);r.push(i)}return r.map(n=>n)}static getMaxWidth(n,t){return n==null||t==null?0:Math.trunc(Math.abs(n.getX()-t.getX()))}static getMinWidth(n,t){return n==null||t==null?k.MAX_VALUE:Math.trunc(Math.abs(n.getX()-t.getX()))}static getMaxCodewordWidth(n){return Math.floor(Math.max(Math.max(di.getMaxWidth(n[0],n[4]),di.getMaxWidth(n[6],n[2])*w.MODULES_IN_CODEWORD/w.MODULES_IN_STOP_PATTERN),Math.max(di.getMaxWidth(n[1],n[5]),di.getMaxWidth(n[7],n[3])*w.MODULES_IN_CODEWORD/w.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(n){return Math.floor(Math.min(Math.min(di.getMinWidth(n[0],n[4]),di.getMinWidth(n[6],n[2])*w.MODULES_IN_CODEWORD/w.MODULES_IN_STOP_PATTERN),Math.min(di.getMinWidth(n[1],n[5]),di.getMinWidth(n[7],n[3])*w.MODULES_IN_CODEWORD/w.MODULES_IN_STOP_PATTERN)))}reset(){}}class se extends wi{}se.kind="ReaderException";class vs{decode(n,t){return this.setHints(t),this.decodeInternal(n)}decodeWithState(n){return(this.readers===null||this.readers===undefined)&&this.setHints(null),this.decodeInternal(n)}setHints(n){this.hints=n;const r=n!==null&&n!==undefined&&undefined!==n.get(yt.TRY_HARDER),i=n===null||n===undefined?null:n.get(yt.POSSIBLE_FORMATS),t=[];if(i!==null&&i!==undefined){const u=i.some(n=>n===v.UPC_A||n===v.UPC_E||n===v.EAN_13||n===v.EAN_8||n===v.CODABAR||n===v.CODE_39||n===v.CODE_93||n===v.CODE_128||n===v.ITF||n===v.RSS_14||n===v.RSS_EXPANDED);u&&!r&&t.push(new ku(n));i.includes(v.QR_CODE)&&t.push(new yu);i.includes(v.DATA_MATRIX)&&t.push(new vu);i.includes(v.AZTEC)&&t.push(new gf);i.includes(v.PDF_417)&&t.push(new di);u&&r&&t.push(new ku(n))}t.length===0&&(r||t.push(new ku(n)),t.push(new yu),t.push(new vu),t.push(new gf),t.push(new di),r&&t.push(new ku(n)));this.readers=t}reset(){if(this.readers!==null)for(const n of this.readers)n.reset()}decodeInternal(n){if(this.readers===null)throw new se("No readers where selected, nothing can be read.");for(const t of this.readers)try{return t.decode(n,this.hints)}catch(i){if(i instanceof se)continue}throw new u("No MultiFormat Readers were able to detect the code.");}}class ic extends su{constructor(n=null,t=500){const i=new vs;i.setHints(n);super(i,t)}decodeBitmap(n){return this.reader.decodeWithState(n)}}class rc extends su{constructor(n=500){super(new di,n)}}class uc extends su{constructor(n=500){super(new yu,n)}}(function(n){n[n.ERROR_CORRECTION=0]="ERROR_CORRECTION";n[n.CHARACTER_SET=1]="CHARACTER_SET";n[n.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE";n[n.MIN_SIZE=3]="MIN_SIZE";n[n.MAX_SIZE=4]="MAX_SIZE";n[n.MARGIN=5]="MARGIN";n[n.PDF417_COMPACT=6]="PDF417_COMPACT";n[n.PDF417_COMPACTION=7]="PDF417_COMPACTION";n[n.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS";n[n.AZTEC_LAYERS=9]="AZTEC_LAYERS";n[n.QR_VERSION=10]="QR_VERSION"})(ro||(ro={}));fi=ro;class uo{constructor(n){this.field=n;this.cachedGenerators=[];this.cachedGenerators.push(new er(n,Int32Array.from([1])))}buildGenerator(n){const t=this.cachedGenerators;if(n>=t.length){let r=t[t.length-1];const i=this.field;for(let u=t.length;u<=n;u++){const n=r.multiply(new er(i,Int32Array.from([1,i.exp(u-1+i.getGeneratorBase())])));t.push(n);r=n}}return t[n]}encode(n,t){if(t===0)throw new c("No error correction bytes");const i=n.length-t;if(i<=0)throw new c("No data bytes provided");const o=this.buildGenerator(t),f=new Int32Array(i);lt.arraycopy(n,0,f,0,i);let r=new er(this.field,f);r=r.multiplyByMonomial(t,1);const s=r.divide(o)[1],u=s.getCoefficients(),e=t-u.length;for(let t=0;t<e;t++)n[i+t]=0;lt.arraycopy(u,0,n,i+e,u.length)}}class ii{constructor(){}static applyMaskPenaltyRule1(n){return ii.applyMaskPenaltyRule1Internal(n,!0)+ii.applyMaskPenaltyRule1Internal(n,!1)}static applyMaskPenaltyRule2(n){let i=0;const t=n.getArray(),r=n.getWidth(),u=n.getHeight();for(let n=0;n<u-1;n++){const u=t[n];for(let f=0;f<r-1;f++){const r=u[f];r===u[f+1]&&r===t[n+1][f]&&r===t[n+1][f+1]&&i++}}return ii.N2*i}static applyMaskPenaltyRule3(n){let i=0;const t=n.getArray(),r=n.getWidth(),u=n.getHeight();for(let n=0;n<u;n++)for(let f=0;f<r;f++){const e=t[n];f+6<r&&e[f]===1&&e[f+1]===0&&e[f+2]===1&&e[f+3]===1&&e[f+4]===1&&e[f+5]===0&&e[f+6]===1&&(ii.isWhiteHorizontal(e,f-4,f)||ii.isWhiteHorizontal(e,f+7,f+11))&&i++;n+6<u&&t[n][f]===1&&t[n+1][f]===0&&t[n+2][f]===1&&t[n+3][f]===1&&t[n+4][f]===1&&t[n+5][f]===0&&t[n+6][f]===1&&(ii.isWhiteVertical(t,f,n-4,n)||ii.isWhiteVertical(t,f,n+7,n+11))&&i++}return i*ii.N3}static isWhiteHorizontal(n,t,i){t=Math.max(t,0);i=Math.min(i,n.length);for(let r=t;r<i;r++)if(n[r]===1)return!1;return!0}static isWhiteVertical(n,t,i,r){i=Math.max(i,0);r=Math.min(r,n.length);for(let u=i;u<r;u++)if(n[u][t]===1)return!1;return!0}static applyMaskPenaltyRule4(n){let t=0;const r=n.getArray(),u=n.getWidth(),f=n.getHeight();for(let n=0;n<f;n++){const i=r[n];for(let n=0;n<u;n++)i[n]===1&&t++}const i=n.getHeight()*n.getWidth(),e=Math.floor(Math.abs(t*2-i)*10/i);return e*ii.N4}static getDataMaskBit(n,t,i){let r,u;switch(n){case 0:r=i+t&1;break;case 1:r=i&1;break;case 2:r=t%3;break;case 3:r=(i+t)%3;break;case 4:r=Math.floor(i/2)+Math.floor(t/3)&1;break;case 5:u=i*t;r=(u&1)+u%3;break;case 6:u=i*t;r=(u&1)+u%3&1;break;case 7:u=i*t;r=u%3+(i+t&1)&1;break;default:throw new c("Invalid mask pattern: "+n);}return r===0}static applyMaskPenaltyRule1Internal(n,t){let i=0;const u=t?n.getHeight():n.getWidth(),f=t?n.getWidth():n.getHeight(),r=n.getArray();for(let n=0;n<u;n++){let u=0,e=-1;for(let o=0;o<f;o++){const f=t?r[n][o]:r[o][n];f===e?u++:(u>=5&&(i+=ii.N1+(u-5)),u=1,e=f)}u>=5&&(i+=ii.N1+(u-5))}return i}}ii.N1=3;ii.N2=3;ii.N3=40;ii.N4=10;class fo{constructor(n,t){this.width=n;this.height=t;const i=new Array(t);for(let r=0;r!==t;r++)i[r]=new Uint8Array(n);this.bytes=i}getHeight(){return this.height}getWidth(){return this.width}get(n,t){return this.bytes[t][n]}getArray(){return this.bytes}setNumber(n,t,i){this.bytes[t][n]=i}setBoolean(n,t,i){this.bytes[t][n]=i?1:0}clear(n){for(const t of this.bytes)li.fill(t,n)}equals(n){if(!(n instanceof fo))return!1;const t=n;if(this.width!==t.width||this.height!==t.height)return!1;for(let n=0,i=this.height;n<i;++n){const i=this.bytes[n],r=t.bytes[n];for(let n=0,t=this.width;n<t;++n)if(i[n]!==r[n])return!1}return!0}toString(){const n=new ht;for(let t=0,i=this.height;t<i;++t){const i=this.bytes[t];for(let t=0,r=this.width;t<r;++t)switch(i[t]){case 0:n.append(" 0");break;case 1:n.append(" 1");break;default:n.append("  ")}n.append("\n")}return n.toString()}}class nf{constructor(){this.maskPattern=-1}getMode(){return this.mode}getECLevel(){return this.ecLevel}getVersion(){return this.version}getMaskPattern(){return this.maskPattern}getMatrix(){return this.matrix}toString(){const n=new ht;return n.append("<<\n"),n.append(" mode: "),n.append(this.mode?this.mode.toString():"null"),n.append("\n ecLevel: "),n.append(this.ecLevel?this.ecLevel.toString():"null"),n.append("\n version: "),n.append(this.version?this.version.toString():"null"),n.append("\n maskPattern: "),n.append(this.maskPattern.toString()),this.matrix?(n.append("\n matrix:\n"),n.append(this.matrix.toString())):n.append("\n matrix: null\n"),n.append(">>\n"),n.toString()}setMode(n){this.mode=n}setECLevel(n){this.ecLevel=n}setVersion(n){this.version=n}setMaskPattern(n){this.maskPattern=n}setMatrix(n){this.matrix=n}static isValidMaskPattern(n){return n>=0&&n<nf.NUM_MASK_PATTERNS}}nf.NUM_MASK_PATTERNS=8;class at extends wi{}at.kind="WriterException";class p{constructor(){}static clearMatrix(n){n.clear(255)}static buildMatrix(n,t,i,r,u){p.clearMatrix(u);p.embedBasicPatterns(i,u);p.embedTypeInfo(t,r,u);p.maybeEmbedVersionInfo(i,u);p.embedDataBits(n,r,u)}static embedBasicPatterns(n,t){p.embedPositionDetectionPatternsAndSeparators(t);p.embedDarkDotAtLeftBottomCorner(t);p.maybeEmbedPositionAdjustmentPatterns(n,t);p.embedTimingPatterns(t)}static embedTypeInfo(n,t,i){const r=new kt;p.makeTypeInfoBits(n,t,r);for(let n=0,t=r.getSize();n<t;++n){const t=r.get(r.getSize()-1-n),u=p.TYPE_INFO_COORDINATES[n],f=u[0],e=u[1];if(i.setBoolean(f,e,t),n<8){const r=i.getWidth()-n-1;i.setBoolean(r,8,t)}else{const r=i.getHeight()-7+(n-8);i.setBoolean(8,r,t)}}}static maybeEmbedVersionInfo(n,t){if(!(n.getVersionNumber()<7)){const i=new kt;p.makeVersionInfoBits(n,i);let r=17;for(let n=0;n<6;++n)for(let u=0;u<3;++u){const f=i.get(r);r--;t.setBoolean(n,t.getHeight()-11+u,f);t.setBoolean(t.getHeight()-11+u,n,f)}}}static embedDataBits(n,t,i){let u=0,e=-1,f=i.getWidth()-1,r=i.getHeight()-1;while(f>0){for(f===6&&(f-=1);r>=0&&r<i.getHeight();){for(let e=0;e<2;++e){const s=f-e;if(p.isEmpty(i.get(s,r))){let o;u<n.getSize()?(o=n.get(u),++u):o=!1;t!==255&&ii.getDataMaskBit(t,s,r)&&(o=!o);i.setBoolean(s,r,o)}}r+=e}e=-e;r+=e;f-=2}if(u!==n.getSize())throw new at("Not all bits consumed: "+u+"/"+n.getSize());}static findMSBSet(n){return 32-k.numberOfLeadingZeros(n)}static calculateBCHCode(n,t){if(t===0)throw new c("0 polynomial");const i=p.findMSBSet(t);for(n<<=i-1;p.findMSBSet(n)>=i;)n^=t<<p.findMSBSet(n)-i;return n}static makeTypeInfoBits(n,t,i){if(!nf.isValidMaskPattern(t))throw new at("Invalid mask pattern");const r=n.getBits()<<3|t;i.appendBits(r,5);const f=p.calculateBCHCode(r,p.TYPE_INFO_POLY);i.appendBits(f,10);const u=new kt;if(u.appendBits(p.TYPE_INFO_MASK_PATTERN,15),i.xor(u),i.getSize()!==15)throw new at("should not happen but we got: "+i.getSize());}static makeVersionInfoBits(n,t){t.appendBits(n.getVersionNumber(),6);const i=p.calculateBCHCode(n.getVersionNumber(),p.VERSION_INFO_POLY);if(t.appendBits(i,12),t.getSize()!==18)throw new at("should not happen but we got: "+t.getSize());}static isEmpty(n){return n===255}static embedTimingPatterns(n){for(let t=8;t<n.getWidth()-8;++t){const i=(t+1)%2;p.isEmpty(n.get(t,6))&&n.setNumber(t,6,i);p.isEmpty(n.get(6,t))&&n.setNumber(6,t,i)}}static embedDarkDotAtLeftBottomCorner(n){if(n.get(8,n.getHeight()-8)===0)throw new at;n.setNumber(8,n.getHeight()-8,1)}static embedHorizontalSeparationPattern(n,t,i){for(let r=0;r<8;++r){if(!p.isEmpty(i.get(n+r,t)))throw new at;i.setNumber(n+r,t,0)}}static embedVerticalSeparationPattern(n,t,i){for(let r=0;r<7;++r){if(!p.isEmpty(i.get(n,t+r)))throw new at;i.setNumber(n,t+r,0)}}static embedPositionAdjustmentPattern(n,t,i){for(let r=0;r<5;++r){const u=p.POSITION_ADJUSTMENT_PATTERN[r];for(let f=0;f<5;++f)i.setNumber(n+f,t+r,u[f])}}static embedPositionDetectionPattern(n,t,i){for(let r=0;r<7;++r){const u=p.POSITION_DETECTION_PATTERN[r];for(let f=0;f<7;++f)i.setNumber(n+f,t+r,u[f])}}static embedPositionDetectionPatternsAndSeparators(n){const r=p.POSITION_DETECTION_PATTERN[0].length;p.embedPositionDetectionPattern(0,0,n);p.embedPositionDetectionPattern(n.getWidth()-r,0,n);p.embedPositionDetectionPattern(0,n.getWidth()-r,n);const t=8;p.embedHorizontalSeparationPattern(0,t-1,n);p.embedHorizontalSeparationPattern(n.getWidth()-t,t-1,n);p.embedHorizontalSeparationPattern(0,n.getWidth()-t,n);const i=7;p.embedVerticalSeparationPattern(i,0,n);p.embedVerticalSeparationPattern(n.getHeight()-i-1,0,n);p.embedVerticalSeparationPattern(i,n.getHeight()-i,n)}static maybeEmbedPositionAdjustmentPatterns(n,t){if(!(n.getVersionNumber()<2)){const r=n.getVersionNumber()-1,i=p.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r];for(let n=0,r=i.length;n!==r;n++){const u=i[n];if(u>=0)for(let n=0;n!==r;n++){const r=i[n];r>=0&&p.isEmpty(t.get(r,u))&&p.embedPositionAdjustmentPattern(r-2,u-2,t)}}}}}p.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1]),]);p.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1]),]);p.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170]),]);p.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8]),]);p.VERSION_INFO_POLY=7973;p.TYPE_INFO_POLY=1335;p.TYPE_INFO_MASK_PATTERN=21522;class fc{constructor(n,t){this.dataBytes=n;this.errorCorrectionBytes=t}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class bt{constructor(){}static calculateMaskPenalty(n){return ii.applyMaskPenaltyRule1(n)+ii.applyMaskPenaltyRule2(n)+ii.applyMaskPenaltyRule3(n)+ii.applyMaskPenaltyRule4(n)}static encode(n,t,i=null){let o=bt.DEFAULT_BYTE_MODE_ENCODING;const v=i!==null&&undefined!==i.get(fi.CHARACTER_SET);v&&(o=i.get(fi.CHARACTER_SET).toString());const u=this.chooseMode(n,o),s=new kt;if(u===y.BYTE&&(v||bt.DEFAULT_BYTE_MODE_ENCODING!==o)){const n=e.getCharacterSetECIByName(o);n!==undefined&&this.appendECI(n,s)}this.appendModeInfo(u,s);const h=new kt;this.appendBytes(n,u,h,o);let r;if(i!==null&&undefined!==i.get(fi.QR_VERSION)){const n=Number.parseInt(i.get(fi.QR_VERSION).toString(),10);r=a.getVersionForNumber(n);const f=this.calculateBitsNeeded(u,s,h,r);if(!this.willFit(f,r,t))throw new at("Data too big for requested version");}else r=this.recommendVersion(t,u,s,h);const c=new kt;c.appendBitArray(s);const nt=u===y.BYTE?h.getSizeInBytes():n.length;this.appendLengthInfo(nt,r,u,c);c.appendBitArray(h);const w=r.getECBlocksForLevel(t),b=r.getTotalCodewords()-w.getTotalECCodewords();this.terminateBits(b,c);const k=this.interleaveWithECBytes(c,r.getTotalCodewords(),b,w.getNumBlocks()),f=new nf;f.setECLevel(t);f.setMode(u);f.setVersion(r);const d=r.getDimensionForVersion(),l=new fo(d,d),g=this.chooseMaskPattern(k,t,r,l);return f.setMaskPattern(g),p.buildMatrix(k,t,r,g,l),f.setMatrix(l),f}static recommendVersion(n,t,i,r){const u=this.calculateBitsNeeded(t,i,r,a.getVersionForNumber(1)),f=this.chooseVersion(u,n),e=this.calculateBitsNeeded(t,i,r,f);return this.chooseVersion(e,n)}static calculateBitsNeeded(n,t,i,r){return t.getSize()+n.getCharacterCountBits(r)+i.getSize()}static getAlphanumericCode(n){return n<bt.ALPHANUMERIC_TABLE.length?bt.ALPHANUMERIC_TABLE[n]:-1}static chooseMode(n,t=null){if(e.SJIS.getName()===t&&this.isOnlyDoubleByteKanji(n))return y.KANJI;let i=!1,r=!1;for(let t=0,u=n.length;t<u;++t){const u=n.charAt(t);if(bt.isDigit(u))i=!0;else if(this.getAlphanumericCode(u.charCodeAt(0))!==-1)r=!0;else return y.BYTE}return r?y.ALPHANUMERIC:i?y.NUMERIC:y.BYTE}static isOnlyDoubleByteKanji(n){let t;try{t=fr.encode(n,e.SJIS)}catch(r){return!1}const i=t.length;if(i%2!=0)return!1;for(let n=0;n<i;n+=2){const i=t[n]&255;if((i<129||i>159)&&(i<224||i>235))return!1}return!0}static chooseMaskPattern(n,t,i,r){let u=Number.MAX_SAFE_INTEGER,f=-1;for(let e=0;e<nf.NUM_MASK_PATTERNS;e++){p.buildMatrix(n,t,i,e,r);let o=this.calculateMaskPenalty(r);o<u&&(u=o,f=e)}return f}static chooseVersion(n,t){for(let i=1;i<=40;i++){const r=a.getVersionForNumber(i);if(bt.willFit(n,r,t))return r}throw new at("Data too big");}static willFit(n,t,i){const r=t.getTotalCodewords(),u=t.getECBlocksForLevel(i),f=u.getTotalECCodewords(),e=r-f,o=(n+7)/8;return e>=o}static terminateBits(n,t){const i=n*8;if(t.getSize()>i)throw new at("data bits cannot fit in the QR Code"+t.getSize()+" > "+i);for(let n=0;n<4&&t.getSize()<i;++n)t.appendBit(!1);const r=t.getSize()&7;if(r>0)for(let n=r;n<8;n++)t.appendBit(!1);const u=n-t.getSizeInBytes();for(let n=0;n<u;++n)t.appendBits((n&1)==0?236:17,8);if(t.getSize()!==i)throw new at("Bits size does not equal capacity");}static getNumDataBytesAndNumECBytesForBlockID(n,t,i,r,u,f){if(r>=i)throw new at("Block ID too large");const o=n%i,s=i-o,a=Math.floor(n/i),v=a+1,e=Math.floor(t/i),h=e+1,c=a-e,l=v-h;if(c!==l)throw new at("EC bytes mismatch");if(i!==s+o)throw new at("RS blocks mismatch");if(n!==(e+c)*s+(h+l)*o)throw new at("Total bytes mismatch");r<s?(u[0]=e,f[0]=c):(u[0]=h,f[0]=l)}static interleaveWithECBytes(n,t,i,r){if(n.getSizeInBytes()!==i)throw new at("Number of bits and data bytes does not match");let f=0,e=0,o=0;const s=[];for(let u=0;u<r;++u){const h=new Int32Array(1),a=new Int32Array(1);bt.getNumDataBytesAndNumECBytesForBlockID(t,i,r,u,h,a);const c=h[0],l=new Uint8Array(c);n.toBytes(8*f,l,0,c);const v=bt.generateECBytes(l,a[0]);s.push(new fc(l,v));e=Math.max(e,c);o=Math.max(o,v.length);f+=h[0]}if(i!==f)throw new at("Data bytes does not match offset");const u=new kt;for(let n=0;n<e;++n)for(const t of s){const i=t.getDataBytes();n<i.length&&u.appendBits(i[n],8)}for(let n=0;n<o;++n)for(const t of s){const i=t.getErrorCorrectionBytes();n<i.length&&u.appendBits(i[n],8)}if(t!==u.getSizeInBytes())throw new at("Interleaving error: "+t+" and "+u.getSizeInBytes()+" differ.");return u}static generateECBytes(n,t){const i=n.length,r=new Int32Array(i+t);for(let t=0;t<i;t++)r[t]=n[t]&255;new uo(ut.QR_CODE_FIELD_256).encode(r,t);const u=new Uint8Array(t);for(let n=0;n<t;n++)u[n]=r[i+n];return u}static appendModeInfo(n,t){t.appendBits(n.getBits(),4)}static appendLengthInfo(n,t,i,r){const u=i.getCharacterCountBits(t);if(n>=1<<u)throw new at(n+" is bigger than "+((1<<u)-1));r.appendBits(n,u)}static appendBytes(n,t,i,r){switch(t){case y.NUMERIC:bt.appendNumericBytes(n,i);break;case y.ALPHANUMERIC:bt.appendAlphanumericBytes(n,i);break;case y.BYTE:bt.append8BitBytes(n,i,r);break;case y.KANJI:bt.appendKanjiBytes(n,i);break;default:throw new at("Invalid mode: "+t);}}static getDigit(n){return n.charCodeAt(0)-48}static isDigit(n){const t=bt.getDigit(n);return t>=0&&t<=9}static appendNumericBytes(n,t){const r=n.length;let i=0;while(i<r){const u=bt.getDigit(n.charAt(i));if(i+2<r){const r=bt.getDigit(n.charAt(i+1)),f=bt.getDigit(n.charAt(i+2));t.appendBits(u*100+r*10+f,10);i+=3}else if(i+1<r){const r=bt.getDigit(n.charAt(i+1));t.appendBits(u*10+r,7);i+=2}else t.appendBits(u,4),i++}}static appendAlphanumericBytes(n,t){const r=n.length;let i=0;while(i<r){const u=bt.getAlphanumericCode(n.charCodeAt(i));if(u===-1)throw new at;if(i+1<r){const r=bt.getAlphanumericCode(n.charCodeAt(i+1));if(r===-1)throw new at;t.appendBits(u*45+r,11);i+=2}else t.appendBits(u,6),i++}}static append8BitBytes(n,t,i){let r;try{r=fr.encode(n,i)}catch(u){throw new at(u);}for(let n=0,i=r.length;n!==i;n++){const i=r[n];t.appendBits(i,8)}}static appendKanjiBytes(n,t){let i;try{i=fr.encode(n,e.SJIS)}catch(r){throw new at(r);}const u=i.length;for(let n=0;n<u;n+=2){const f=i[n]&255,e=i[n+1]&255,r=f<<8&4294967295|e;let u=-1;if(r>=33088&&r<=40956?u=r-33088:r>=57408&&r<=60351&&(u=r-49472),u===-1)throw new at("Invalid byte sequence");const o=(u>>8)*192+(u&255);t.appendBits(o,13)}}static appendECI(n,t){t.appendBits(y.ECI.getBits(),4);t.appendBits(n.getValue(),8)}}bt.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1,]);bt.DEFAULT_BYTE_MODE_ENCODING=e.UTF8.getName();class tf{write(n,t,i,r=null){if(n.length===0)throw new c("Found empty contents");if(t<0||i<0)throw new c("Requested dimensions are too small: "+t+"x"+i);let u=wt.L,f=tf.QUIET_ZONE_SIZE;r!==null&&(undefined!==r.get(fi.ERROR_CORRECTION)&&(u=wt.fromString(r.get(fi.ERROR_CORRECTION).toString())),undefined!==r.get(fi.MARGIN)&&(f=Number.parseInt(r.get(fi.MARGIN).toString(),10)));const e=bt.encode(n,u,r);return this.renderResult(e,t,i,f)}writeToDom(n,t,i,r,u=null){typeof n=="string"&&(n=document.querySelector(n));const f=this.write(t,i,r,u);n&&n.appendChild(f)}renderResult(n,t,i,r){const f=n.getMatrix();if(f===null)throw new yr;const e=f.getWidth(),o=f.getHeight(),c=e+r*2,l=o+r*2,s=Math.max(t,c),h=Math.max(i,l),u=Math.min(Math.floor(s/c),Math.floor(h/l)),v=Math.floor((s-e*u)/2),y=Math.floor((h-o*u)/2),a=this.createSVGElement(s,h);for(let n=0,t=y;n<o;n++,t+=u)for(let i=0,r=v;i<e;i++,r+=u)if(f.get(i,n)===1){const n=this.createSvgRectElement(r,t,u,u);a.appendChild(n)}return a}createSVGElement(n,t){const i=document.createElementNS(tf.SVG_NS,"svg");return i.setAttributeNS(null,"height",n.toString()),i.setAttributeNS(null,"width",t.toString()),i}createSvgRectElement(n,t,i,r){const u=document.createElementNS(tf.SVG_NS,"rect");return u.setAttributeNS(null,"x",n.toString()),u.setAttributeNS(null,"y",t.toString()),u.setAttributeNS(null,"height",i.toString()),u.setAttributeNS(null,"width",r.toString()),u.setAttributeNS(null,"fill","#000000"),u}}tf.QUIET_ZONE_SIZE=4;tf.SVG_NS="http://www.w3.org/2000/svg";class vf{encode(n,t,i,r,u){if(n.length===0)throw new c("Found empty contents");if(t!==v.QR_CODE)throw new c("Can only encode QR_CODE, but got "+t);if(i<0||r<0)throw new c(`Requested dimensions are too small: ${i}x${r}`);let f=wt.L,e=vf.QUIET_ZONE_SIZE;u!==null&&(undefined!==u.get(fi.ERROR_CORRECTION)&&(f=wt.fromString(u.get(fi.ERROR_CORRECTION).toString())),undefined!==u.get(fi.MARGIN)&&(e=Number.parseInt(u.get(fi.MARGIN).toString(),10)));const o=bt.encode(n,f,u);return vf.renderResult(o,i,r,e)}static renderResult(n,t,i,r){const f=n.getMatrix();if(f===null)throw new yr;const e=f.getWidth(),o=f.getHeight(),c=e+r*2,l=o+r*2,s=Math.max(t,c),h=Math.max(i,l),u=Math.min(Math.floor(s/c),Math.floor(h/l)),v=Math.floor((s-e*u)/2),y=Math.floor((h-o*u)/2),a=new ai(s,h);for(let n=0,t=y;n<o;n++,t+=u)for(let i=0,r=v;i<e;i++,r+=u)f.get(i,n)===1&&a.setRegion(r,t,u,u);return a}}vf.QUIET_ZONE_SIZE=4;class ec{encode(n,t,i,r,u){let f;switch(t){case v.QR_CODE:f=new vf;break;default:throw new c("No encoder available for format "+t);}return f.encode(n,t,i,r,u)}}class nu extends uf{constructor(n,t,i,r,u,f,e,o){if(super(f,e),this.yuvData=n,this.dataWidth=t,this.dataHeight=i,this.left=r,this.top=u,r+f>t||u+e>i)throw new c("Crop rectangle does not fit within image data.");o&&this.reverseHorizontal(f,e)}getRow(n,t){if(n<0||n>=this.getHeight())throw new c("Requested row is outside the image: "+n);const i=this.getWidth();(t===null||t===undefined||t.length<i)&&(t=new Uint8ClampedArray(i));const r=(n+this.top)*this.dataWidth+this.left;return lt.arraycopy(this.yuvData,r,t,0,i),t}getMatrix(){const n=this.getWidth(),i=this.getHeight();if(n===this.dataWidth&&i===this.dataHeight)return this.yuvData;const u=n*i,t=new Uint8ClampedArray(u);let r=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return lt.arraycopy(this.yuvData,r,t,0,u),t;for(let u=0;u<i;u++){const i=u*n;lt.arraycopy(this.yuvData,r,t,i,n);r+=this.dataWidth}return t}isCropSupported(){return!0}crop(n,t,i,r){return new nu(this.yuvData,this.dataWidth,this.dataHeight,this.left+n,this.top+t,i,r,!1)}renderThumbnail(){const n=this.getWidth()/nu.THUMBNAIL_SCALE_FACTOR,t=this.getHeight()/nu.THUMBNAIL_SCALE_FACTOR,i=new Int32Array(n*t),u=this.yuvData;let r=this.top*this.dataWidth+this.left;for(let f=0;f<t;f++){const t=f*n;for(let f=0;f<n;f++){const n=u[r+f*nu.THUMBNAIL_SCALE_FACTOR]&255;i[t+f]=4278190080|n*65793}r+=this.dataWidth*nu.THUMBNAIL_SCALE_FACTOR}return i}getThumbnailWidth(){return this.getWidth()/nu.THUMBNAIL_SCALE_FACTOR}getThumbnailHeight(){return this.getHeight()/nu.THUMBNAIL_SCALE_FACTOR}reverseHorizontal(n,t){const i=this.yuvData;for(let u=0,r=this.top*this.dataWidth+this.left;u<t;u++,r+=this.dataWidth){const t=r+n/2;for(let u=r,f=r+n-1;u<t;u++,f--){const n=i[u];i[u]=i[f];i[f]=n}}}invert(){return new eu(this)}}nu.THUMBNAIL_SCALE_FACTOR=2;class ys extends uf{constructor(n,t,i,r,u,f,e){if(super(t,i),this.dataWidth=r,this.dataHeight=u,this.left=f,this.top=e,n.BYTES_PER_ELEMENT===4){const r=t*i,u=new Uint8ClampedArray(r);for(let t=0;t<r;t++){const i=n[t],r=i>>16&255,f=i>>7&510,e=i&255;u[t]=(r+f+e)/4&255}this.luminances=u}else this.luminances=n;if(undefined===r&&(this.dataWidth=t),undefined===u&&(this.dataHeight=i),undefined===f&&(this.left=0),undefined===e&&(this.top=0),this.left+t>this.dataWidth||this.top+i>this.dataHeight)throw new c("Crop rectangle does not fit within image data.");}getRow(n,t){if(n<0||n>=this.getHeight())throw new c("Requested row is outside the image: "+n);const i=this.getWidth();(t===null||t===undefined||t.length<i)&&(t=new Uint8ClampedArray(i));const r=(n+this.top)*this.dataWidth+this.left;return lt.arraycopy(this.luminances,r,t,0,i),t}getMatrix(){const n=this.getWidth(),i=this.getHeight();if(n===this.dataWidth&&i===this.dataHeight)return this.luminances;const u=n*i,t=new Uint8ClampedArray(u);let r=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return lt.arraycopy(this.luminances,r,t,0,u),t;for(let u=0;u<i;u++){const i=u*n;lt.arraycopy(this.luminances,r,t,i,n);r+=this.dataWidth}return t}isCropSupported(){return!0}crop(n,t,i,r){return new ys(this.luminances,i,r,this.dataWidth,this.dataHeight,this.left+n,this.top+t)}invert(){return new eu(this)}}class ps extends e{static forName(n){return this.getCharacterSetECIByName(n)}}class eo{}eo.ISO_8859_1=e.ISO8859_1;class ws{isCompact(){return this.compact}setCompact(n){this.compact=n}getSize(){return this.size}setSize(n){this.size=n}getLayers(){return this.layers}setLayers(n){this.layers=n}getCodeWords(){return this.codeWords}setCodeWords(n){this.codeWords=n}getMatrix(){return this.matrix}setMatrix(n){this.matrix=n}}class bs{static singletonList(n){return[n]}static min(n,t){return n.sort(t)[0]}}class oc{constructor(n){this.previous=n}getPrevious(){return this.previous}}class yf extends oc{constructor(n,t,i){super(n);this.value=t;this.bitCount=i}appendTo(n){n.appendBits(this.value,this.bitCount)}add(n,t){return new yf(this,n,t)}addBinaryShift(n,t){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new yf(this,n,t)}toString(){let n=this.value&(1<<this.bitCount)-1;return n|=1<<this.bitCount,"<"+k.toBinaryString(n|1<<this.bitCount).substring(1)+">"}}class ks extends yf{constructor(n,t,i){super(n,0,0);this.binaryShiftStart=t;this.binaryShiftByteCount=i}appendTo(n,t){for(let i=0;i<this.binaryShiftByteCount;i++)(i===0||i===31&&this.binaryShiftByteCount<=62)&&(n.appendBits(31,5),this.binaryShiftByteCount>62?n.appendBits(this.binaryShiftByteCount-31,16):i===0?n.appendBits(Math.min(this.binaryShiftByteCount,31),5):n.appendBits(this.binaryShiftByteCount-31,5)),n.appendBits(t[this.binaryShiftStart+i],8)}addBinaryShift(n,t){return new ks(this,n,t)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}const hc=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],fu=0,he=1,ar=2,ds=3,br=4,cc=new yf(null,0,0),oo=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])];const gs=lc(li.createInt32Array(6,6));class tu{constructor(n,t,i,r){this.token=n;this.mode=t;this.binaryShiftByteCount=i;this.bitCount=r}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(n,t){let r=this.bitCount,i=this.token;if(n!==this.mode){let t=oo[this.mode][n];i=pf(i,t&65535,t>>16);r+=t>>16}let u=n===ar?4:5;return i=pf(i,t,u),new tu(i,n,0,r+u)}shiftAndAppend(n,t){let i=this.token,r=this.mode===ar?4:5;return i=pf(i,gs[this.mode][n],r),i=pf(i,t,5),new tu(i,this.mode,0,this.bitCount+r+5)}addBinaryShiftChar(n){let i=this.token,r=this.mode,u=this.bitCount;if(this.mode===br||this.mode===ar){let n=oo[r][fu];i=pf(i,n&65535,n>>16);u+=n>>16;r=fu}let f=this.binaryShiftByteCount===0||this.binaryShiftByteCount===31?18:this.binaryShiftByteCount===62?9:8,t=new tu(i,r,this.binaryShiftByteCount+1,u+f);return t.binaryShiftByteCount===2078&&(t=t.endBinaryShift(n+1)),t}endBinaryShift(n){if(this.binaryShiftByteCount===0)return this;let t=this.token;return t=sc(t,n-this.binaryShiftByteCount,this.binaryShiftByteCount),new tu(t,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(n){let t=this.bitCount+(oo[this.mode][n.mode]>>16);return this.binaryShiftByteCount<n.binaryShiftByteCount?t+=tu.calculateBinaryShiftCost(n)-tu.calculateBinaryShiftCost(this):this.binaryShiftByteCount>n.binaryShiftByteCount&&n.binaryShiftByteCount>0&&(t+=10),t<=n.bitCount}toBitArray(n){let t=[];for(let i=this.endBinaryShift(n.length).token;i!==null;i=i.getPrevious())t.unshift(i);let i=new kt;for(const r of t)r.appendTo(i,n);return i}toString(){return b.format("%s bits=%d bytes=%d",hc[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(n){return n.binaryShiftByteCount>62?21:n.binaryShiftByteCount>31?20:n.binaryShiftByteCount>0?10:0}}tu.INITIAL_STATE=new tu(cc,fu,0,0);const so=ac(li.createInt32Array(5,256));class ce{constructor(n){this.text=n}encode(){const t=b.getCharCode(" "),i=b.getCharCode("\n");let n=bs.singletonList(tu.INITIAL_STATE);for(let r=0;r<this.text.length;r++){let u,f=r+1<this.text.length?this.text[r+1]:0;switch(this.text[r]){case b.getCharCode("\r"):u=f===i?2:0;break;case b.getCharCode("."):u=f===t?3:0;break;case b.getCharCode(","):u=f===t?4:0;break;case b.getCharCode(":"):u=f===t?5:0;break;default:u=0}u>0?(n=ce.updateStateListForPair(n,r,u),r++):n=this.updateStateListForChar(n,r)}const r=bs.min(n,(n,t)=>n.getBitCount()-t.getBitCount());return r.toBitArray(this.text)}updateStateListForChar(n,t){const i=[];for(let r of n)this.updateStateForChar(r,t,i);return ce.simplifyStates(i)}updateStateForChar(n,t,i){let u=this.text[t]&255,f=so[n.getMode()][u]>0,r=null;for(let e=0;e<=br;e++){let o=so[e][u];if(o>0){if(r==null&&(r=n.endBinaryShift(t)),!f||e===n.getMode()||e===ar){const n=r.latchAndAppend(e,o);i.push(n)}if(!f&&gs[n.getMode()][e]>=0){const n=r.shiftAndAppend(e,o);i.push(n)}}}if(n.getBinaryShiftByteCount()>0||so[n.getMode()][u]===0){let r=n.addBinaryShiftChar(t);i.push(r)}}static updateStateListForPair(n,t,i){const r=[];for(let u of n)this.updateStateForPair(u,t,i,r);return this.simplifyStates(r)}static updateStateForPair(n,t,i,r){let u=n.endBinaryShift(t);if(r.push(u.latchAndAppend(br,i)),n.getMode()!==br&&r.push(u.shiftAndAppend(br,i)),i===3||i===4){let n=u.latchAndAppend(ar,16-i).latchAndAppend(ar,1);r.push(n)}if(n.getBinaryShiftByteCount()>0){let i=n.addBinaryShiftChar(t).addBinaryShiftChar(t+1);r.push(i)}}static simplifyStates(n){let t=[];for(const i of n){let n=!0;for(const r of t){if(r.isBetterThanOrEqualTo(i)){n=!1;break}i.isBetterThanOrEqualTo(r)&&(t=t.filter(n=>n!==r))}n&&t.push(i)}return t}}class rt{constructor(){}static encodeBytes(n){return rt.encode(n,rt.DEFAULT_EC_PERCENT,rt.DEFAULT_AZTEC_LAYERS)}static encode(n,t,i){let y=new ce(n).encode(),w=k.truncDivision(y.getSize()*t,100)+11,g=y.getSize()+w,r,f,a,e,h;if(i!==rt.DEFAULT_AZTEC_LAYERS){if(r=i<0,f=Math.abs(i),f>(r?rt.MAX_NB_BITS_COMPACT:rt.MAX_NB_BITS))throw new c(b.format("Illegal value %s for layers",i));a=rt.totalBitsInLayer(f,r);e=rt.WORD_SIZE[f];let n=a-a%e;if(h=rt.stuffBits(y,e),h.getSize()+w>n)throw new c("Data to large for user specified layer");if(r&&h.getSize()>e*64)throw new c("Data to large for user specified layer");}else{e=0;h=null;for(let n=0;;n++){if(n>rt.MAX_NB_BITS)throw new c("Data too large for an Aztec code");if(r=n<=3,f=r?n+1:n,a=rt.totalBitsInLayer(f,r),!(g>a)){(h==null||e!==rt.WORD_SIZE[f])&&(e=rt.WORD_SIZE[f],h=rt.stuffBits(y,e));let t=a-a%e;if((!r||!(h.getSize()>e*64))&&h.getSize()+w<=t)break}}}let p=rt.generateCheckWords(h,a,e),d=h.getSize()/e,nt=rt.generateModeMessage(r,f,d),l=(r?11:14)+f*4,o=new Int32Array(l),u;if(r){u=l;for(let n=0;n<o.length;n++)o[n]=n}else{u=l+1+2*k.truncDivision(k.truncDivision(l,2)-1,15);let n=k.truncDivision(l,2),t=k.truncDivision(u,2);for(let i=0;i<n;i++){let r=i+k.truncDivision(i,15);o[n-i-1]=t-r-1;o[n+i]=t+r+1}}let s=new ai(u);for(let n=0,t=0;n<f;n++){let i=(f-n)*4+(r?9:12);for(let r=0;r<i;r++){let u=r*2;for(let f=0;f<2;f++)p.get(t+u+f)&&s.set(o[n*2+f],o[n*2+r]),p.get(t+i*2+u+f)&&s.set(o[n*2+r],o[l-1-n*2-f]),p.get(t+i*4+u+f)&&s.set(o[l-1-n*2-f],o[l-1-n*2-r]),p.get(t+i*6+u+f)&&s.set(o[l-1-n*2-r],o[n*2+f])}t+=i*8}if(rt.drawModeMessage(s,r,u,nt),r)rt.drawBullsEye(s,k.truncDivision(u,2),5);else{rt.drawBullsEye(s,k.truncDivision(u,2),7);for(let t=0,n=0;t<k.truncDivision(l,2)-1;t+=15,n+=16)for(let t=k.truncDivision(u,2)&1;t<u;t+=2)s.set(k.truncDivision(u,2)-n,t),s.set(k.truncDivision(u,2)+n,t),s.set(t,k.truncDivision(u,2)-n),s.set(t,k.truncDivision(u,2)+n)}let v=new ws;return v.setCompact(r),v.setSize(u),v.setLayers(f),v.setCodeWords(d),v.setMatrix(s),v}static drawBullsEye(n,t,i){for(let r=0;r<i;r+=2)for(let i=t-r;i<=t+r;i++)n.set(i,t-r),n.set(i,t+r),n.set(t-r,i),n.set(t+r,i);n.set(t-i,t-i);n.set(t-i+1,t-i);n.set(t-i,t-i+1);n.set(t+i,t-i);n.set(t+i,t-i+1);n.set(t+i,t+i-1)}static generateModeMessage(n,t,i){let r=new kt;return n?(r.appendBits(t-1,2),r.appendBits(i-1,6),r=rt.generateCheckWords(r,28,4)):(r.appendBits(t-1,5),r.appendBits(i-1,11),r=rt.generateCheckWords(r,40,4)),r}static drawModeMessage(n,t,i,r){let u=k.truncDivision(i,2);if(t)for(let t=0;t<7;t++){let i=u-3+t;r.get(t)&&n.set(i,u-5);r.get(t+7)&&n.set(u+5,i);r.get(20-t)&&n.set(i,u+5);r.get(27-t)&&n.set(u-5,i)}else for(let t=0;t<10;t++){let i=u-5+t+k.truncDivision(t,5);r.get(t)&&n.set(i,u-7);r.get(t+10)&&n.set(u+7,i);r.get(29-t)&&n.set(i,u+7);r.get(39-t)&&n.set(u-7,i)}}static generateCheckWords(n,t,i){let e=n.getSize()/i,o=new uo(rt.getGF(i)),u=k.truncDivision(t,i),f=rt.bitsToWords(n,i,u);o.encode(f,u-e);let s=t%i,r=new kt;r.appendBits(0,s);for(const n of Array.from(f))r.appendBits(n,i);return r}static bitsToWords(n,t,i){let u=new Int32Array(i),r,f;for(r=0,f=n.getSize()/t;r<f;r++){let i=0;for(let u=0;u<t;u++)i|=n.get(r*t+u)?1<<t-u-1:0;u[r]=i}return u}static getGF(n){switch(n){case 4:return ut.AZTEC_PARAM;case 6:return ut.AZTEC_DATA_6;case 8:return ut.AZTEC_DATA_8;case 10:return ut.AZTEC_DATA_10;case 12:return ut.AZTEC_DATA_12;default:throw new c("Unsupported word size "+n);}}static stuffBits(n,t){let i=new kt,u=n.getSize(),r=(1<<t)-2;for(let f=0;f<u;f+=t){let e=0;for(let i=0;i<t;i++)(f+i>=u||n.get(f+i))&&(e|=1<<t-1-i);(e&r)===r?(i.appendBits(e&r,t),f--):(e&r)==0?(i.appendBits(e|1,t),f--):i.appendBits(e,t)}return i}static totalBitsInLayer(n,t){return((t?88:112)+16*n)*n}}rt.DEFAULT_EC_PERCENT=33;rt.DEFAULT_AZTEC_LAYERS=0;rt.MAX_NB_BITS=32;rt.MAX_NB_BITS_COMPACT=4;rt.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]);class ho{encode(n,t,i,r){return this.encodeWithHints(n,t,i,r,null)}encodeWithHints(n,t,i,r,u){let f=eo.ISO_8859_1,e=rt.DEFAULT_EC_PERCENT,o=rt.DEFAULT_AZTEC_LAYERS;return u!=null&&(u.has(fi.CHARACTER_SET)&&(f=ps.forName(u.get(fi.CHARACTER_SET).toString())),u.has(fi.ERROR_CORRECTION)&&(e=k.parseInt(u.get(fi.ERROR_CORRECTION).toString())),u.has(fi.AZTEC_LAYERS)&&(o=k.parseInt(u.get(fi.AZTEC_LAYERS).toString()))),ho.encodeLayers(n,t,i,r,f,e,o)}static encodeLayers(n,t,i,r,u,f,e){if(t!==v.AZTEC)throw new c("Can only encode AZTEC, but got "+t);let o=rt.encode(b.getBytes(n,u),f,e);return ho.renderResult(o,i,r)}static renderResult(n,t,i){let u=n.getMatrix();if(u==null)throw new yr;let f=u.getWidth(),e=u.getHeight(),o=Math.max(t,f),s=Math.max(i,e),r=Math.min(o/f,s/e),c=(o-f*r)/2,l=(s-e*r)/2,h=new ai(o,s);for(let n=0,t=l;n<e;n++,t+=r)for(let i=0,e=c;i<f;i++,e+=r)u.get(i,n)&&h.setRegion(e,t,r,r);return h}}n.AbstractExpandedDecoder=de;n.ArgumentException=ur;n.ArithmeticException=bf;n.AztecCode=ws;n.AztecCodeReader=gf;n.AztecCodeWriter=ho;n.AztecDecoder=pt;n.AztecDetector=yo;n.AztecDetectorResult=ao;n.AztecEncoder=rt;n.AztecHighLevelEncoder=ce;n.AztecPoint=nr;n.BarcodeFormat=v;n.Binarizer=co;n.BinaryBitmap=rf;n.BitArray=kt;n.BitMatrix=ai;n.BitSource=no;n.BrowserAztecCodeReader=fh;n.BrowserBarcodeReader=ch;n.BrowserCodeReader=su;n.BrowserDatamatrixCodeReader=ah;n.BrowserMultiFormatReader=ic;n.BrowserPDF417Reader=rc;n.BrowserQRCodeReader=uc;n.BrowserQRCodeSvgWriter=tf;n.CharacterSetECI=e;n.ChecksumException=ri;n.Code128Reader=s;n.Code39Reader=hi;n.DataMatrixDecodedBitStreamParser=ru;n.DataMatrixReader=vu;n.DecodeHintType=yt;n.DecoderResult=ff;n.DefaultGridSampler=vo;n.DetectorResult=df;n.EAN13Reader=bu;n.EncodeHintType=fi;n.Exception=wi;n.FormatException=o;n.GenericGF=ut;n.GenericGFPoly=er;n.GlobalHistogramBinarizer=vi;n.GridSampler=pe;n.GridSamplerInstance=hu;n.HTMLCanvasElementLuminanceSource=ou;n.HybridBinarizer=d;n.ITFReader=vt;n.IllegalArgumentException=c;n.IllegalStateException=yr;n.InvertedLuminanceSource=eu;n.LuminanceSource=uf;n.MathUtils=it;n.MultiFormatOneDReader=ku;n.MultiFormatReader=vs;n.MultiFormatWriter=ec;n.NotFoundException=u;n.OneDReader=oi;n.PDF417DecodedBitStreamParser=r;n.PDF417DecoderErrorCorrection=os;n.PDF417Reader=di;n.PDF417ResultMetadata=hs;n.PerspectiveTransform=pr;n.PlanarYUVLuminanceSource=nu;n.QRCodeByteMatrix=fo;n.QRCodeDataMask=cr;n.QRCodeDecodedBitStreamParser=gt;n.QRCodeDecoderErrorCorrectionLevel=wt;n.QRCodeDecoderFormatInformation=ir;n.QRCodeEncoder=bt;n.QRCodeEncoderQRCode=nf;n.QRCodeMaskUtil=ii;n.QRCodeMatrixUtil=p;n.QRCodeMode=y;n.QRCodeReader=yu;n.QRCodeVersion=a;n.QRCodeWriter=vf;n.RGBLuminanceSource=ys;n.RSS14Reader=ti;n.RSSExpandedReader=f;n.ReaderException=se;n.ReedSolomonDecoder=sf;n.ReedSolomonEncoder=uo;n.ReedSolomonException=wu;n.Result=gi;n.ResultMetadataType=ei;n.ResultPoint=l;n.StringUtils=b;n.UnsupportedOperationException=pu;n.VideoInputDevice=lo;n.WhiteRectangleDetector=iu;n.WriterException=at;n.ZXingArrays=li;n.ZXingCharset=ps;n.ZXingInteger=k;n.ZXingStandardCharsets=eo;n.ZXingStringBuilder=ht;n.ZXingStringEncoding=fr;n.ZXingSystem=lt;n.createAbstractExpandedDecoder=go;Object.defineProperty(n,"__esModule",{value:!0})});;
