/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function hr(n,t,i){t=t||f;var r,u=t.createElement("script");if(u.text=n,i)for(r in ne)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?bt[or.call(n)]||"object":typeof n}function hi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return u(n)||tt(n)?!1:i==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return wt.call(t,n)>-1!==r}):i.filter(t,n,r)}function kr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ie(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}function ut(n){return n}function dt(n){throw n;}function dr(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(undefined,[n].slice(r))}catch(n){i.apply(undefined,[n])}}function ni(){f.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function fe(n,t){return t.toUpperCase()}function y(n){return n.replace(re,"ms-").replace(ue,fe)}function at(){this.expando=i.expando+at.uid++}function se(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:ee.test(n)?JSON.parse(n):n}function nu(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(oe,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=se(i)}catch(u){}o.set(n,t,i)}else i=undefined;return i}function ru(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||e!=="px"&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o=o/2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f=f/h;f=f*2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function he(n){var r,f=n.ownerDocument,u=n.nodeName,t=ai[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),ai[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&ti(u)&&(f[i]=he(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&v(n,t))?i.merge([n],r):r}function vi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function su(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(it(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(ou.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(fu.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);o=h.firstChild;o.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&vi(o),r)for(v=0;e=o[v++];)eu.test(e.type||"")&&r.push(e)}return h}function ri(){return!0}function et(){return!1}function cu(){try{return f.activeElement}catch(n){}}function yi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)yi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=et;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function lu(n,t){return v(n,"table")&&v(t.nodeType!==11?t:t.firstChild,"tr")?i(n).children("tbody")[0]||n:n}function we(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function be(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function au(n,t){var f,c,e,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(e in u)for(f=0,c=u[e].length;f<c;f++)i.event.add(t,e,u[e][f])}o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ke(n,t){var i=t.nodeName.toLowerCase();i==="input"&&uu.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function ot(n,t,f,o){t=er.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&typeof p=="string"&&!e.checkClone&&ye.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(a=su(t,n[0].ownerDocument,!1,n,o),w=a.firstChild,a.childNodes.length===1&&(a=w),w||o)){for(l=i.map(s(a,"script"),we),v=l.length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,be),c=0;c<v;c++)h=l[c],eu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&(h.type||"").toLowerCase()!=="module"?i._evalUrl&&i._evalUrl(h.src):hr(h.textContent.replace(pe,""),b,h))}return n}function vu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&vi(s(u,"script")),u.parentNode.removeChild(u));return n}function yt(n,t,r){var o,s,h,u,f=n.style;return r=r||ui(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!e.pixelBoxStyles()&&pi.test(u)&&de.test(t)&&(o=f.width,s=f.minWidth,h=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=o,f.minWidth=s,f.maxWidth=h)),u!==undefined?u+"":u}function yu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function to(n){if(n in ku)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=bu.length;t--;)if(n=bu[t]+i,n in ku)return n}function du(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=to(n)||n),t}function gu(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wi(n,t,r,u,f,e){var o=t==="width"?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)r==="margin"&&(s+=i.css(n,r+w[o],!0,f)),u?(r==="content"&&(s-=i.css(n,"padding"+w[o],!0,f)),r!=="margin"&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),r!=="padding"?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function nf(n,t,r){var f=ui(n),u=yt(n,t,f),s=i.css(n,"boxSizing",!1,f)==="border-box",o=s;if(pi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),u!=="auto"&&(parseFloat(u)||i.css(n,"display",!1,f)!=="inline")||(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),u=parseFloat(u)||0,u+wi(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function bi(){fi&&(f.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(bi):n.setTimeout(bi,i.fx.interval),i.fx.tick())}function uf(){return n.setTimeout(function(){st=undefined}),st=Date.now()}function ei(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function ff(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function io(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&ti(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],tf.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){a||ft([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=ff(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function ro(n,t){var r,f,e,u,o;for(r in n)if(f=y(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||uf(),t=Math.max(0,f.startTime+f.duration-o),h=t/f.duration||0,i=1-h,r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return(e.notifyWith(n,[f,i,t]),i<1&&u)?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:st||uf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(ro(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts),o)return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,ff,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){var t=n.match(l)||[];return t.join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function ki(n){return Array.isArray(n)?n:typeof n=="string"?n.match(l)||[]:[]}function tr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||uo.test(n)?u(n,i):tr(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||it(t)!=="object")u(n,t);else for(f in t)tr(n+"["+f+"]",t[f],r,u)}function yf(n){return function(t,i){typeof t!="string"&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])r[0]==="+"?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function pf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===ir;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ur(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var k=[],f=n.document,df=Object.getPrototypeOf,d=k.slice,er=k.concat,si=k.push,wt=k.indexOf,bt={},or=bt.toString,kt=bt.hasOwnProperty,sr=kt.toString,gf=sr.call(Object),e={},u=function(n){return typeof n=="function"&&typeof n.nodeType!="number"},tt=function(n){return n!=null&&n===n.window},ne={type:!0,src:!0,noModule:!0},cr="3.3.1",i=function(n,t){return new i.fn.init(n,t)},te=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ci,vr,yr,pr,wr,br,l,gr,gt,lt,ai,ou,st,fi,tf,rf,ef,ht,of,sf,hf,di,gi,wf,ct,fr,oi,bf,kf;i.fn=i.prototype={jquery:cr,constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return n==null?d.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:si,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,r,t,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[f]||{},f++),typeof n=="object"||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if((o=arguments[f])!=null)for(e in o)(r=n[e],t=o[e],n!==t)&&(c&&t&&(i.isPlainObject(t)||(s=Array.isArray(t)))?(s?(s=!1,h=r&&Array.isArray(r)?r:[]):h=r&&i.isPlainObject(r)?r:{},n[e]=i.extend(c,h,t)):t!==undefined&&(n[e]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!n||or.call(n)!=="[object Object]"?!1:(t=df(n),!t)?!0:(i=kt.call(t,"constructor")&&t.constructor,typeof i=="function"&&sr.call(i)===gf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n){hr(n)},each:function(n,t){var r,i=0;if(hi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(te,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(hi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):si.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:wt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(hi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return er.apply([],f)},guid:1,support:e});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(i,r,u,s){try{var l,d,a,v,g,p,nt,w=r&&r.ownerDocument,y=r?r.nodeType:9;u=u||[];try{t===t}catch(tt){t=n.document}if(typeof i!="string"||!i||y!==1&&y!==9&&y!==11)return u;if(!s&&((r?r.ownerDocument||r:c)!==t&&b(r),r=r||t,h)){if(y!==11&&(g=cr.exec(i)))if(l=g[1]){if(y===9)if(a=r.getElementById(l)){if(a.id===l)return u.push(a),u}else return u;else if(w&&(a=w.getElementById(l))&&et(r,a)&&a.id===l)return u.push(a),u}else{if(g[2])return k.apply(u,r.getElementsByTagName(i)),u;if((l=g[3])&&e.getElementsByClassName&&r.getElementsByClassName)return k.apply(u,r.getElementsByClassName(l)),u}if(e.qsa&&!lt[i+" "]&&(!o||!o.test(i))){if(y!==1)w=r,nt=i;else if(r.nodeName.toLowerCase()!=="object"){for((v=r.getAttribute("id"))?v=v.replace(vi,yi):r.setAttribute("id",v=f),p=ft(i),d=p.length;d--;)p[d]="#"+v+" "+yt(p[d]);nt=p.join(",");w=ni.test(i)&&ri(r.parentNode)||r}if(nt)try{return k.apply(u,w.querySelectorAll(nt)),u}catch(it){}finally{v===f&&r.removeAttribute("id")}}}return si(i.replace(at,"$1"),r,u,s)}catch(rt){t=n.document}}function ti(){function n(r,u){return t.push(r+" ")>i.cacheLength&&delete n[t.shift()],n[r+" "]=u}var t=[];return n}function l(n){return n[f]=!0,n}function a(n){var i=t.createElement("fieldset");try{return!!n(i)}catch(r){return!1}finally{i.parentNode&&i.parentNode.removeChild(i);i=null}}function ii(n,t){for(var r=n.split("|"),u=r.length;u--;)i.attrHandle[r[u]]=t}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=i.relative[n[0].type],c=h||i.relative[" "],t=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];t<s;t++)if(u=i.relative[n[t].type])e=[pt(ui(e),u)];else{if(u=i.filter[n[t].type].apply(null,n[t].matches),u[f]){for(r=++t;r<s;r++)if(i.relative[n[r].type])break;return fi(t>1&&ui(e),t>1&&yt(n.slice(0,t-1).concat({value:n[t-2].type===" "?"*":""})).replace(at,"$1"),u,t<r&&ei(n.slice(t,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&i.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===t||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===t||(b(y),c=!h);d=n[nt++];)if(d(y,s||t,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,i,st,oi,ft,bt,si,ht,w,ut,b,t,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===t||l.nodeType!==9||!l.documentElement?t:(t=l,s=t.documentElement,h=!oi(t),c!==t&&(u=t.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(t.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(t.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!t.getElementsByName||!t.getElementsByName(f).length}),e.getById?(i.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},i.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(i.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},i.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),i.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},i.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(t.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var i=t.createElement("input");i.setAttribute("type","hidden");n.appendChild(i).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,i){if(n===i)return ut=!0,0;var r=!n.compareDocumentPosition-!i.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(i.ownerDocument||i)?n.compareDocumentPosition(i):1,r&1||!e.sortDetached&&i.compareDocumentPosition(n)===r)?n===t||n.ownerDocument===c&&et(c,n)?-1:i===t||i.ownerDocument===c&&et(c,i)?1:w?nt(w,n)-nt(w,i):0:r&4?-1:1}:function(n,i){if(n===i)return ut=!0,0;var r,u=0,o=n.parentNode,s=i.parentNode,f=[n],e=[i];if(o&&s){if(o===s)return wi(n,i)}else return n===t?-1:i===t?1:o?-1:s?1:w?nt(w,n)-nt(w,i):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=i;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},t)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,i){if((n.ownerDocument||n)!==t&&b(n),i=i.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[i+" "]&&(!d||!d.test(i))&&(!o||!o.test(i)))try{var r=ct.call(n,i);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(i,t,null,[n]).length>0};u.contains=function(n,i){return(n.ownerDocument||n)!==t&&b(n),et(n,i)};u.attr=function(n,r){(n.ownerDocument||n)!==t&&b(n);var f=i.attrHandle[r.toLowerCase()],u=f&&gi.call(i.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};i=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var e,r=i.pseudos[n]||i.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(t):r.length>1?(e=[n,n,"",t],i.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,i){for(var u,f=r(n,t),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(i[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!i.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};i.pseudos.nth=i.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})i.pseudos[rt]=vr(rt);return ki.prototype=i.filters=i.pseudos,i.setFilters=new ki,ft=u.tokenize=function(n,t){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return t?0:l.slice(0);for(r=n,h=[],c=i.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in i.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return t?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,t,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&t.nodeType===9&&h&&i.relative[f[1].type]){if(t=(i.find.ID(e.matches[0].replace(y,p),t)||[])[0],t)c&&(t=t.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],i.relative[l=e.type])break;if((a=i.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(t.parentNode)||t))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,t,!h,r,!t||ni.test(n)&&ri(t.parentNode)||t),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(t.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext;ci=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(li(this,n||[],!1))},not:function(n){return this.pushStack(li(this,n||[],!0))},is:function(n){return!!li(this,typeof n=="string"&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;pr=i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||vr,typeof n=="string"){if(e=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:yr.exec(n),e&&(e[1]||!t)){if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),ci.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return o=f.getElementById(e[2]),o&&(this[0]=o,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};pr.prototype=i.fn;vr=i(f);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!ar.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?wt.call(i(n),this[0]):wt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(br[n]||i.uniqueSort(f),wr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ie(n):i.extend({},n);var o,r,c,f,t=[],s=[],e=-1,l=function(){for(f=f||n.once,c=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)t[e].apply(r[0],r[1])===!1&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},h={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&it(r)!=="string"&&f(r)})}(arguments),r&&!o&&l()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],s.push(t),o||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if(n=f.apply(h,c),n===r.promise())throw new TypeError("Thenable self-resolution");i=n&&(typeof n=="object"||typeof n=="function")&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,dt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,dt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=undefined,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==dt&&(h=undefined,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:dt))}).promise()},promise:function(n){return n!=null?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(dr(n,r.done(s(t)).resolve,r.reject,!e),r.state()==="pending"||u(f[t]&&f[t].then)))return r.then();while(t--)dr(f[t],s(t),r.reject);return r.promise()}});gr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&gr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};gt=i.Deferred();i.fn.ready=function(n){return gt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||gt.resolveWith(f,[i])}});i.ready.then=gt.then;f.readyState!=="complete"&&(f.readyState==="loading"||f.documentElement.doScroll)?(f.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni)):n.setTimeout(i.ready);var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=r==null;if(it(r)==="object"){e=!0;for(h in r)p(n,t,h,r[h],!0,o,s)}else if(f!==undefined&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},re=/^-ms-/,ue=/-([a-z])/g;lt=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(y):(t=y(t),t=t in r?[t]:t.match(l)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new at,o=new at,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(n===undefined){if(this.length&&(e=o.get(i),i.nodeType===1&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&(u=s[f].name,u.indexOf("data-")===0&&(u=y(u.slice(5)),nu(i,u,e[u])));r.set(i,"hasDataAttrs",!0)}return e}return typeof n=="object"?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&t===undefined)return(r=o.get(i,n),r!==undefined)?r:(r=nu(i,n),r!==undefined)?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var tu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+tu+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ti=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},iu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ai={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ti(this)?i(this).show():i(this).hide()})}});var uu=/^(?:checkbox|radio)$/i,fu=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,eu=/^$|^module$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;ou=/<|&#?\w+;/,function(){var i=f.createDocumentFragment(),n=i.appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var ii=f.documentElement,ce=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,h,s,c,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(ii,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(l)||[""],b=t.length;b--;)(w=hu.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(c=p[o])||(c=p[o]=[],c.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,h,v,p,s,c,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(l)||[""],p=t.length;p--;){if(h=hu.exec(t[p])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(c=i.event.special[o]||{},o=(f?c.delegateType:c.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!h||h.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,c.remove&&c.remove.call(n,s));k&&!a.length&&(c.teardown&&c.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===cu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?ri:et,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ri;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ri;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ri;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&ce.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&le.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return yi(this,n,t,i,r)},one:function(n,t,i,r){return yi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ve=/<script|<style|<link/i,ye=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ae,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!e.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=s(h),o=s(n),u=0,c=o.length;u<c;u++)ke(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)au(o[u],f[u]);else au(n,h);return f=s(h,"script"),f.length>0&&vi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;(t=n[e])!==undefined;e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[o.expando]&&(t[o.expando]=undefined)}}});i.fn.extend({detach:function(n){return vu(this,n,!0)},remove:function(n){return vu(this,n)},text:function(n){return p(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.appendChild(n)}})},prepend:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!ve.test(n)&&!c[(fu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),si.apply(f,u.get());return this.pushStack(f)}});var pi=new RegExp("^("+tu+")(?!px)[a-z%]+$","i"),ui=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},de=new RegExp(w.join("|"),"i");(function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ii.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s=i.top!=="1%";a=u(i.marginLeft)===12;t.style.right="60%";l=u(i.right)===36;h=u(i.width)===36;t.style.position="absolute";c=t.offsetWidth===36||"absolute";ii.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=t.style.backgroundClip==="content-box",i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))})();var ge=/^(none|table(?!-c[ea]).+)/,pu=/^--/,no={position:"absolute",visibility:"hidden",display:"block"},wu={letterSpacing:"0",fontWeight:"400"},bu=["Webkit","Moz","ms"],ku=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=yt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var f,s,o,c=y(t),l=pu.test(t),h=n.style;if(l||(t=du(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(f=vt.exec(r))&&f[1]&&(r=ru(n,t,f),s="number"),r==null||r!==r)return;s==="number"&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px"));e.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(f=o.get(n,!1,u))!==undefined?f:h[t]}},css:function(n,t,r,u){var f,o,e,s=y(t),h=pu.test(t);return(h||(t=du(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=yt(n,t,u)),f==="normal"&&t in wu&&(f=wu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ge.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?iu(n,no,function(){return nf(n,t,u)}):nf(n,t,u)},set:function(n,r,u){var s,f=ui(n),h=i.css(n,"boxSizing",!1,f)==="border-box",o=u&&wi(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-wi(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),gu(n,r,o)}}});i.cssHooks.marginLeft=yu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(yt(n,"marginLeft"))||n.getBoundingClientRect().left-iu(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};n!=="margin"&&(i.cssHooks[n+t].set=gu)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ui(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};h.propHooks.scrollTop=h.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=h.prototype.init;i.fx.step={};tf=/^(?:toggle|show|hide)$/;rf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,vt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[io],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:typeof f.duration!="number"&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ti).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&rf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ei(t,!0),n,i,u)}});i.each({slideDown:ei("show"),slideUp:ei("hide"),slideToggle:ei("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(st=Date.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){fi||(fi=!0,bi())};i.fx.stop=function(){fi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select"),i=t.appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=n.value!=="";e.optSelected=i.selected;n=f.createElement("input");n.value="t";n.type="radio";e.radioValue=n.value==="t"}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?ef:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&t==="radio"&&v(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=r(n,t,i)!=null?u:null,ht[u]=e),f}});of=/^(?:input|select|textarea|button)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},removeClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)while(t.indexOf(" "+o+" ")>-1)t=t.replace(" "+o+" "," ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},toggleClass:function(n,t){var f=typeof n,e=f==="string"||Array.isArray(n);return typeof t=="boolean"&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ki(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(n===undefined||f==="boolean")&&(t=nt(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});hf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;this.nodeType===1&&(u=e?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(f,"value"))!==undefined)?r:(r=f.value,typeof r=="string")?r.replace(hf,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});e.focusin="onfocusin"in n;di=/^(?:focusinfocus|focusoutblur)$/;gi=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,w,b=[o||f],h=kt.call(t,"type")?t.type:t,p=kt.call(t,"namespace")?t.namespace.split("."):[];if((c=w=l=o=o||f,o.nodeType!==3&&o.nodeType!==8)&&!di.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(p=h.split("."),h=p.shift(),p.sort()),v=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=o),e=e==null?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||a.trigger.apply(o,e)!==!1)){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,di.test(d+h)||(c=c.parentNode);c;c=c.parentNode)b.push(c),l=c;l===(o.ownerDocument||f)&&b.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=b[k++])&&!t.isPropagationStopped();)w=c,t.type=k>1?d:a.bindType||h,y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"),y&&y.apply(c,e),y=v&&c[v],y&&y.apply&&lt(c)&&(t.result=y.apply(c,e),t.result===!1&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||(!a._default||a._default.apply(b.pop(),e)===!1)&&lt(o)&&v&&u(o[h])&&!tt(o)&&(l=o[v],l&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&w.addEventListener(h,gi),o[h](),t.isPropagationStopped()&&w.removeEventListener(h,gi),i.event.triggered=undefined,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var pt=n.location,cf=Date.now(),nr=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var uo=/\[\]$/,lf=/\r?\n/g,fo=/^(?:submit|button|image|reset|file)$/i,eo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(i==null?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)tr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&eo.test(this.nodeName)&&!fo.test(n)&&(this.checked||!uu.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(lf,"\r\n")}}):{name:t.name,value:r.replace(lf,"\r\n")}}).get()}});var oo=/%20/g,so=/#.*$/,ho=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)$/mg,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,af={},ir={},vf="*/".concat("*"),rr=f.createElement("a");return rr.href=pt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ur(ur(n,i.ajaxSettings),t):ur(i.ajaxSettings,n)},ajaxPrefilter:yf(af),ajaxTransport:yf(ir),ajax:function(t,r){function b(t,r,f,l){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),c=undefined,k=l||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,f&&(p=vo(u,e,f)),p=yo(u,p,e,y),y?(u.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||u.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(h,[rt,a,e]):tt.rejectWith(h,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,u,y?rt:g]),it.fireWith(h,[e,a]),v&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var c,o,k,y,d,a,s,v,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=co.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return c&&c.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||pt.href)+"").replace(ao,pt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],u.crossDomain==null){a=f.createElement("a");try{a.href=u.url;a.href=a.href;u.crossDomain=rr.protocol+"//"+rr.host!=a.protocol+"//"+a.host}catch(et){u.crossDomain=!0}}if(u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),pf(af,u,r,e),s)return e;v=i.event&&u.global;v&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!lo.test(u.type);o=u.url.replace(so,"");u.hasContent?u.data&&u.processData&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(u.data=u.data.replace(oo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||typeof u.data=="string")&&(o+=(nr.test(o)?"&":"?")+u.data,delete u.data),u.cache===!1&&(o=o.replace(ho,"$1"),p=(nr.test(o)?"&":"?")+"_="+cf+++p),u.url=o+p);u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType);e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+vf+"; q=0.01":""):u.accepts["*"]);for(g in u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(u.beforeSend.call(h,e,u)===!1||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),c=pf(ir,u,r,e),c){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;c.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},wf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(wf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}}),fr=[],oi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fr.pop()||i.expando+"_"+cf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=t.jsonp!==!1&&(oi.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&oi.test(t.data)&&"data");if(h||t.dataTypes[0]==="jsonp")return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(oi,"$1"+e):t.jsonp!==!1&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){o===undefined?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,fr.push(e));s&&u(o)&&o(s[0]);s=o=undefined}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,u,o;return(t||(e.createHTMLDocument?(t=f.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=f.location.href,t.head.appendChild(s)):t=f),u=ci.exec(n),o=!r&&[],u)?[t.createElement(u[1])]:(u=su([n],t,o),o&&o.length&&i(o).remove(),i.merge([],u.childNodes))},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var o,s,h,c,f,l,y,a=i.css(n,"position"),v=i(n),e={};a==="static"&&(n.style.position="relative");f=v.offset();h=i.css(n,"top");l=i.css(n,"left");y=(a==="absolute"||a==="fixed")&&(h+l).indexOf("auto")>-1;y?(o=v.position(),c=o.top,s=o.left):(c=parseFloat(h)||0,s=parseFloat(l)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));t.top!=null&&(e.top=t.top-f.top+c);t.left!=null&&(e.left=t.left-f.left+s);"using"in t?t.using.call(n,e):v.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t&&t.getClientRects)return t.getClientRects==undefined||typeof t.getClientRects!="function"||!t.getClientRects().length?{top:0,left:0}:(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset})},position:function(){if(this[0]){var n,u,f,t=this[0],r={top:0,left:0};if(i.css(t,"position")==="fixed")u=t.getBoundingClientRect();else{for(u=this.offset(),f=t.ownerDocument,n=t.offsetParent||f.documentElement;n&&(n===f.body||n===f.documentElement)&&i.css(n,"position")==="static";)n=n.parentNode;n&&n!==t&&n.nodeType===1&&(r=i(n).offset(),r.top+=i.css(n,"borderTopWidth",!0),r.left+=i.css(n,"borderLeftWidth",!0))}return{top:u.top-r.top-i.css(t,"marginTop",!0),left:u.left-r.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ii})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:n.nodeType===9&&(f=n.defaultView),u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=yu(e.pixelPosition,function(n,r){if(r)return r=yt(n,t),pi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var f,e,r;return(typeof t=="string"&&(f=n[t],t=n,n=f),!u(n))?undefined:(e=d.call(arguments,2),r=function(){return n.apply(t||this,e.concat(d.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),bf=n.jQuery,kf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=kf),t&&n.jQuery===i&&(n.jQuery=bf),i},t||(n.jQuery=n.$=i),i})/** 
 * Copyright 2018 Telerik AD                                                                                                                                                                            
 *                                                                                                                                                                                                      
 * 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                                                                                                                                                       
 *                                                                                                                                                                                                      
 * Unless required by applicable law or agreed to in writing, software                                                                                                                                  
 * distributed under the License is distributed on an "AS IS" BASIS,                                                                                                                                    
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.                                                                                                                             
 * See the License for the specific language governing permissions and                                                                                                                                  
 * limitations under the License.                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(e,define){define("kendo.core.min",["jquery"],e)}(function(){return function(e,t,n){function i(){}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),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+$kendoHtmlEncode("+i+")+":";"+e+";$kendoOutput+="}function r(e,t,n){return e+="",t=t||2,n=t-e.length,n?W[t].substring(0,n)+e:e}function a(e){var t=e.css(ve.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(Fe)||[0,0,0,0,0]:[0,0,0,0,0],i=xe.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(t,n){var i,o,r,s,l,u,c,d,p=Te.browser,h="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(c=t.parent(".k-animation-container"),d=c[0].style,c.is(":hidden")&&c.show(),i=Se.test(d.width)||Se.test(d.height),i||c.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})):(o=a(t),r=t[0].style.width,s=t[0].style.height,l=Se.test(r),u=Se.test(s),p.opera&&(o.left=o.right=o.bottom=5),i=l||u,!l&&(!n||n&&r)&&(r=t.outerWidth()),!u&&(!n||n&&s)&&(s=t.outerHeight()),t.wrap(e("<div/>").addClass("k-animation-container").css({width:r,height:s,marginLeft:o.left*(h?1:-1),paddingLeft:o.left,paddingRight:o.right,paddingBottom:o.bottom})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),p.msie&&xe.floor(p.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function l(e){var t=1,n=arguments.length;for(t=1;n>t;t++)u(e,arguments[t]);return e}function u(e,t){var n,i,o,r,a,s=ve.data.ObservableArray,l=ve.data.LazyObservableArray,c=ve.data.DataSource,d=ve.data.HierarchicalDataSource;for(n in t)i=t[n],o=typeof i,r=o===Me&&null!==i?i.constructor:null,r&&r!==Array&&r!==s&&r!==l&&r!==c&&r!==d?i instanceof Date?e[n]=new Date(i.getTime()):A(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===Me?a||{}:{},u(e[n],i)):o!==ze&&(e[n]=i);return e}function c(e,t,i){for(var o in t)if(t.hasOwnProperty(o)&&t[o].test(e))return o;return i!==n?i:e}function d(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 h(t,n){var i,o={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){o[t]=i[p(t)]})),ve.size(o)||(o=i),o}function f(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=h(e,["overflow"]).overflow;return"auto"==t||"scroll"==t}function m(t,i){var o,r=Te.browser.webkit,a=Te.browser.mozilla,s=t instanceof e?t[0]:t;if(t)return o=Te.isRtl(t),i===n?o&&r?s.scrollWidth-s.clientWidth-s.scrollLeft:Math.abs(s.scrollLeft):(s.scrollLeft=o&&r?s.scrollWidth-s.clientWidth-i:o&&a?-i:i,n)}function g(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function v(e,n,i){n||(n="offset");var o=e[n]();return Te.browser.msie&&(Te.pointers||Te.msPointers)&&!i&&(o.top-=t.pageYOffset-document.documentElement.scrollTop,o.left-=t.pageXOffset-document.documentElement.scrollLeft),o}function _(e){var t={};return be("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function b(e){return new ve.effects.Element(e)}function w(e,t,n,i){return typeof e===Pe&&(A(t)&&(i=t,t=400,n=!1),A(n)&&(i=n,n=!1),typeof t===Oe&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),_e({effects:{},duration:400,reverse:!1,init:ye,teardown:ye,hide:!1},e,{completeCallback:e.complete,complete:ye})}function k(t,n,i,o,r){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){j.promise(a,w(n,i,o,r))});return t}function y(e,t,n,i){return t&&(t=t.split(" "),be(t,function(t,n){e.toggleClass(n,i)})),e}function x(e){return(""+e).replace(q,"&amp;").replace($,"&lt;").replace(Q,"&gt;").replace(G,"&quot;").replace(Y,"&#39;")}function C(e,t){var i;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(oe,"-$1"),i=e.getAttribute("data-"+ve.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:Ee.test(i)?i=parseFloat(i):ne.test(i)&&!ie.test(i)&&(i=Function("return ("+i+")")()),i}function T(t,i){var o,r,a={};for(o in i)r=C(t,o),r!==n&&(te.test(o)&&(r=ve.template(e("#"+r).html())),a[o]=r);return a}function S(t,n){return e.contains(t,n)?-1:1}function D(){var t=e(this);return e.inArray(t.attr("data-"+ve.ns+"role"),["slider","rangeslider"])>-1||t.is(":visible")}function F(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.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function I(e,t){return new I.fn.init(e,t)}var P,A,M,H,O,z,V,B,L,R,N,W,U,j,q,$,G,Y,Q,K,J,X,Z,ee,te,ne,ie,oe,re,ae,se,le,ue,ce,de,pe,he,fe,me,ge,ve=t.kendo=t.kendo||{cultures:{}},_e=e.extend,be=e.each,we=e.isArray,ke=e.proxy,ye=e.noop,xe=Math,Ce=t.JSON||{},Te={},Se=/%/,De=/\{(\d+)(:[^\}]+)?\}/g,Fe=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,Ee=/^(\+|-?)\d+(\.?)\d*$/,Ie="function",Pe="string",Ae="number",Me="object",He="null",Oe="boolean",ze="undefined",Ve={},Be={},Le=[].slice;ve.version="2016.2.714".replace(/^\s+|\s+$/g,""),i.extend=function(e){var t,n,i=function(){},o=this,r=e&&e.init?e.init:function(){o.apply(this,arguments)};i.prototype=o.prototype,n=r.fn=r.prototype=new i;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?_e(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=r,r.extend=o.extend,r},i.prototype._initOptions=function(e){this.options=l({},this.options,e)},A=ve.isFunction=function(e){return"function"==typeof e},M=function(){this._defaultPrevented=!0},H=function(){return this._defaultPrevented===!0},O=i.extend({init:function(){this._events={}},bind:function(e,t,i){var o,r,a,s,l,u=this,c=typeof e===Pe?[e]:e,d=typeof t===Ie;if(t===n){for(o in e)u.bind(o,e[o]);return u}for(o=0,r=c.length;r>o;o++)e=c[o],s=d?t:t[e],s&&(i&&(a=s,s=function(){u.unbind(e,s),a.apply(u,arguments)},s.original=a),l=u._events[e]=u._events[e]||[],l.push(s));return u},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,o,r,a=this,s=typeof e===Pe?[e]:e,l=typeof t===Ie;for(n=0,i=s.length;i>n;n++)e=s[n],o=l?t:t[e],o&&(r=a._events[e]=a._events[e]||[],r.unshift(o));return a},trigger:function(e,t){var n,i,o=this,r=o._events[e];if(r){for(t=t||{},t.sender=o,t._defaultPrevented=!1,t.preventDefault=M,t.isDefaultPrevented=H,r=r.slice(),n=0,i=r.length;i>n;n++)r[n].call(o,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var i,o=this,r=o._events[e];if(e===n)o._events={};else if(r)if(t)for(i=r.length-1;i>=0;i--)(r[i]===t||r[i].original===t)&&r.splice(i,1);else o._events[e]=[];return o}}),z=/^\w+/,V=/\$\{([^}]*)\}/g,B=/\\\}/g,L=/__CURLY__/g,R=/\\#/g,N=/__SHARP__/g,W=["","0","00","000","0000"],P={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,o="";for(n=0,i=t.length;i>n;n++)o+=e(t[n]);return o},compile:function(e,t){var n,i,r,a=_e({},this,t),s=a.paramName,l=s.match(z)[0],u=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(A(e))return e;for(c+=u?"with("+s+"){":"",c+="$kendoOutput=",i=e.replace(B,"__CURLY__").replace(V,"#=$kendoHtmlEncode($1)#").replace(L,"}").replace(R,"__SHARP__").split("#"),r=0;i.length>r;r++)c+=o(i[r],r%2===0);c+=u?";}":";",c+="return $kendoOutput;",c=c.replace(N,"#");try{return n=Function(l,c),n._slotCount=Math.floor(i.length/2),n}catch(d){throw Error(ve.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===Pe?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(r,a){var s,u,c,d,p,h,f=n,m=a[r];if(m&&typeof m===Me&&typeof m.toJSON===Ie&&(m=m.toJSON(r)),typeof o===Ie&&(m=o.call(a,r,m)),h=typeof m,h===Pe)return e(m);if(h===Ae)return isFinite(m)?m+"":He;if(h===Oe||h===He)return m+"";if(h===Me){if(!m)return He;if(n+=i,p=[],"[object Array]"===l.apply(m)){for(d=m.length,s=0;d>s;s++)p[s]=t(s,m)||He;return c=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+f+"]":"["+p.join(",")+"]",n=f,c}if(o&&typeof o===Me)for(d=o.length,s=0;d>s;s++)typeof o[s]===Pe&&(u=o[s],c=t(u,m),c&&p.push(e(u)+(n?": ":":")+c));else for(u in m)Object.hasOwnProperty.call(m,u)&&(c=t(u,m),c&&p.push(e(u)+(n?": ":":")+c));return c=0===p.length?"{}":n?"{\n"+n+p.join(",\n"+n)+"\n"+f+"}":"{"+p.join(",")+"}",n=f,c}}var n,i,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","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l={}.toString;typeof Date.prototype.toJSON!==Ie&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?r(e.getUTCFullYear(),4)+"-"+r(e.getUTCMonth()+1)+"-"+r(e.getUTCDate())+"T"+r(e.getUTCHours())+":"+r(e.getUTCMinutes())+":"+r(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof Ce.stringify!==Ie&&(Ce.stringify=function(e,r,a){var s;if(n="",i="",typeof a===Ae)for(s=0;a>s;s+=1)i+=" ";else typeof a===Pe&&(i=a);if(o=r,r&&typeof r!==Ie&&(typeof r!==Me||typeof r.length!==Ae))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function e(e){if(e){if(e.numberFormat)return e;if(typeof e===Pe){var t=ve.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function t(t){return t&&(t=e(t)),t||ve.cultures.current}function i(e,i,o){o=t(o);var a=o.calendars.standard,s=a.days,l=a.months;return i=a.patterns[i]||i,i.replace(u,function(t){var i,o,u;return"d"===t?o=e.getDate():"dd"===t?o=r(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=r(e.getMonth()+1):"MMM"===t?o=l.namesAbbr[e.getMonth()]:"MMMM"===t?o=l.names[e.getMonth()]:"yy"===t?o=r(e.getFullYear()%100):"yyyy"===t?o=r(e.getFullYear(),4):"h"===t?o=e.getHours()%12||12:"hh"===t?o=r(e.getHours()%12||12):"H"===t?o=e.getHours():"HH"===t?o=r(e.getHours()):"m"===t?o=e.getMinutes():"mm"===t?o=r(e.getMinutes()):"s"===t?o=e.getSeconds():"ss"===t?o=r(e.getSeconds()):"f"===t?o=xe.floor(e.getMilliseconds()/100):"ff"===t?(o=e.getMilliseconds(),o>99&&(o=xe.floor(o/10)),o=r(o)):"fff"===t?o=r(e.getMilliseconds(),3):"tt"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(i=e.getTimezoneOffset(),u=0>i,o=(""+xe.abs(i/60)).split(".")[0],i=xe.abs(i)-60*o,o=(u?"+":"-")+r(o),o+=":"+r(i)):("zz"===t||"z"===t)&&(o=e.getTimezoneOffset()/60,u=0>o,o=(""+xe.abs(o)).split(".")[0],o=(u?"+":"-")+("zz"===t?r(o):o)),o!==n?o:t.slice(1,t.length-1)})}function o(e,i,o){o=t(o);var r,l,u,b,w,k,y,x,C,T,S,D,F,E,I,P,A,M,H,O,z,V,B,L=o.numberFormat,R=L[f],N=L.decimals,W=L.pattern[0],U=[],j=0>e,q=h,$=h,G=-1;if(e===n)return h;if(!isFinite(e))return e;if(!i)return o.name.length?e.toLocaleString():""+e;if(w=c.exec(i)){if(i=w[1].toLowerCase(),l="c"===i,u="p"===i,(l||u)&&(L=l?L.currency:L.percent,R=L[f],N=L.decimals,r=L.symbol,W=L.pattern[j?0:1]),b=w[2],b&&(N=+b),"e"===i)return b?e.toExponential(N):e.toExponential();if(u&&(e*=100),e=s(e,N),j=0>e,e=e.split(f),k=e[0],y=e[1],j&&(k=k.substring(1)),$=a(k,0,k.length,L),y&&($+=R+y),"n"===i&&!j)return $;for(e=h,T=0,S=W.length;S>T;T++)D=W.charAt(T),e+="n"===D?$:"$"===D||"%"===D?r:D;return e}if(j&&(e=-e),(i.indexOf("'")>-1||i.indexOf('"')>-1||i.indexOf("\\")>-1)&&(i=i.replace(d,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return U.push(n),_})),i=i.split(";"),j&&i[1])i=i[1],E=!0;else if(0===e){if(i=i[2]||i[0],-1==i.indexOf(g)&&-1==i.indexOf(v))return i}else i=i[0];if(O=i.indexOf("%"),z=i.indexOf("$"),u=-1!=O,l=-1!=z,u&&(e*=100),l&&"\\"===i[z-1]&&(i=i.split("\\").join(""),l=!1),(l||u)&&(L=l?L.currency:L.percent,R=L[f],N=L.decimals,r=L.symbol),F=i.indexOf(m)>-1,F&&(i=i.replace(p,h)),I=i.indexOf(f),S=i.length,-1!=I?(y=(""+e).split("e"),y=y[1]?s(e,Math.abs(y[1])):y[0],y=y.split(f)[1]||h,A=i.lastIndexOf(v)-I,P=i.lastIndexOf(g)-I,M=A>-1,H=P>-1,T=y.length,M||H||(i=i.substring(0,I)+i.substring(I+1),S=i.length,I=-1,T=0),M&&A>P?T=A:P>A&&(H&&T>P?T=P:M&&A>T&&(T=A)),T>-1&&(e=s(e,T))):e=s(e),P=i.indexOf(g),V=A=i.indexOf(v),G=-1==P&&-1!=A?A:-1!=P&&-1==A?P:P>A?A:P,P=i.lastIndexOf(g),A=i.lastIndexOf(v),B=-1==P&&-1!=A?A:-1!=P&&-1==A?P:P>A?P:A,G==S&&(B=G),-1!=G){for($=(""+e).split(f),k=$[0],y=$[1]||h,x=k.length,C=y.length,j&&-1*e>=0&&(j=!1),e=i.substring(0,G),j&&!E&&(e+="-"),T=G;S>T;T++){if(D=i.charAt(T),-1==I){if(x>B-T){e+=k;break}}else if(-1!=A&&T>A&&(q=h),x>=I-T&&I-T>-1&&(e+=k,T=I),I===T){e+=(y?R:h)+y,T+=B-I+1;continue}D===v?(e+=D,q=D):D===g&&(e+=q)}if(F&&(e=a(e,G+(j?1:0),Math.max(B,x+G),L)),B>=G&&(e+=i.substring(B+1)),l||u){for($=h,T=0,S=e.length;S>T;T++)D=e.charAt(T),$+="$"===D||"%"===D?r:D;e=$}if(S=U.length)for(T=0;S>T;T++)e=e.replace(_,U[T])}return e}var a,s,l,u=/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,c=/^(n|c|p|e)(\d*)$/i,d=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,h="",f=".",m=",",g="#",v="0",_="??",b="en-US",w={}.toString;ve.cultures["en-US"]={name:b,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}}},ve.culture=function(t){var i,o=ve.cultures;return t===n?o.current:(i=e(t)||o[b],i.calendar=i.calendars.standard,o.current=i,n)},ve.findCulture=e,ve.getCulture=t,ve.culture(b),a=function(e,t,i,o){var r,a,s,l,u,c,d=e.indexOf(o[f]),p=o.groupSize.slice(),h=p.shift();if(i=-1!==d?d:i+1,r=e.substring(t,i),a=r.length,a>=h){for(s=a,l=[];s>-1;)if(u=r.substring(s-h,s),u&&l.push(u),s-=h,c=p.shift(),h=c!==n?c:h,0===h){l.push(r.substring(0,s));break}r=l.reverse().join(o[m]),e=e.substring(0,t)+r+e.substring(i)}return e},s=function(e,t){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},l=function(e,t,r){if(t){if("[object Date]"===w.call(e))return i(e,t,r);if(typeof e===Ae)return o(e,t,r)}return e!==n?e:""},ve.format=function(e){var t=arguments;return e.replace(De,function(e,n,i){var o=t[parseInt(n,10)+1];return l(o,i?i.substring(1):"")})},ve._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},ve._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},ve._round=s,ve.toString=l}(),function(){function t(e,t,n){return!(e>=t&&n>=e)}function i(e){return e.charAt(0)}function o(t){return e.map(t,i)}function r(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];n>t;t++)i[t]=(e[t]+"").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a){if(!e)return null;var l,u,c,d,p,m,g,v,_,w,k,y,x,C=function(e){for(var t=0;i[z]===e;)t++,z++;return t>0&&(z-=1),t},T=function(t){var n=b[t]||RegExp("^\\d{1,"+t+"}"),i=e.substr(V,t).match(n);return i?(i=i[0],V+=i.length,parseInt(i,10)):null},S=function(t,n){for(var i,o,r,a=0,s=t.length,l=0,u=0;s>a;a++)i=t[a],o=i.length,r=e.substr(V,o),n&&(r=r.toLowerCase()),r==i&&o>l&&(l=o,u=a);return l?(V+=l,u+1):null},D=function(){var t=!1;return e.charAt(V)===i[z]&&(V++,t=!0),t},F=a.calendars.standard,E=null,I=null,P=null,A=null,M=null,H=null,O=null,z=0,V=0,B=!1,L=new Date,R=F.twoDigitYearMax||2029,N=L.getFullYear();for(i||(i="d"),d=F.patterns[i],d&&(i=d),i=i.split(""),c=i.length;c>z;z++)if(l=i[z],B)"'"===l?B=!1:D();else if("d"===l){if(u=C("d"),F._lowerDays||(F._lowerDays=s(F.days)),null!==P&&u>2)continue;if(P=3>u?T(2):S(F._lowerDays[3==u?"namesAbbr":"names"],!0),null===P||t(P,1,31))return null}else if("M"===l){if(u=C("M"),F._lowerMonths||(F._lowerMonths=s(F.months)),I=3>u?T(2):S(F._lowerMonths[3==u?"namesAbbr":"names"],!0),null===I||t(I,1,12))return null;I-=1}else if("y"===l){if(u=C("y"),E=T(u),null===E)return null;2==u&&("string"==typeof R&&(R=N+parseInt(R,10)),E=N-N%100+E,E>R&&(E-=100))}else if("h"===l){if(C("h"),A=T(2),12==A&&(A=0),null===A||t(A,0,11))return null}else if("H"===l){if(C("H"),A=T(2),null===A||t(A,0,23))return null}else if("m"===l){if(C("m"),M=T(2),null===M||t(M,0,59))return null}else if("s"===l){if(C("s"),H=T(2),null===H||t(H,0,59))return null}else if("f"===l){if(u=C("f"),x=e.substr(V,u).match(b[3]),O=T(u),null!==O&&(O=parseFloat("0."+x[0],10),O=ve._round(O,3),O*=1e3),null===O||t(O,0,999))return null}else if("t"===l){if(u=C("t"),v=F.AM,_=F.PM,1===u&&(v=o(v),_=o(_)),p=S(_),!p&&!S(v))return null}else if("z"===l){if(m=!0,u=C("z"),"Z"===e.substr(V,1)){D();continue}if(g=e.substr(V,6).match(u>2?f:h),!g)return null;if(g=g[0].split(":"),w=g[0],k=g[1],!k&&w.length>3&&(V=w.length-2,k=w.substring(V),w=w.substring(0,V)),w=parseInt(w,10),t(w,-12,13))return null;if(u>2&&(k=parseInt(k,10),isNaN(k)||t(k,0,59)))return null}else if("'"===l)B=!0,D();else if(!D())return null;return y=null!==A||null!==M||H||null,null===E&&null===I&&null===P&&y?(E=N,I=L.getMonth(),P=L.getDate()):(null===E&&(E=N),null===P&&(P=1)),p&&12>A&&(A+=12),m?(w&&(A+=-w),k&&(M+=-k),e=new Date(Date.UTC(E,I,P,A,M,H,O))):(e=new Date(E,I,P,A,M,H,O),r(e,A)),100>E&&e.setFullYear(E),e.getDate()!==P&&m===n?null:e}function u(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,i,o=xe.max(v.length,_.length),r=e.calendar.patterns,a=[];for(i=0;o>i;i++){for(t=v[i],n=0;t.length>n;n++)a.push(r[t[n]]);a=a.concat(_[i])}return a}var d=/\u00A0/g,p=/[eE][\-+]?[0-9]+/,h=/[+|\-]\d{1,2}/,f=/[+|\-]\d{1,2}:?\d{2}/,m=/^\/Date\((.*?)\)\/$/,g=/[+-]\d*/,v=[[],["G","g","F"],["D","d","y","m","T","t"]],_=[["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"]],b={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},w={}.toString;ve.parseDate=function(e,t,n){var i,o,r,a;if("[object Date]"===w.call(e))return e;if(i=0,o=null,e&&0===e.indexOf("/D")&&(o=m.exec(e)))return o=o[1],a=g.exec(o.substring(1)),o=new Date(parseInt(o,10)),a&&(a=u(a[0]),o=ve.timezone.apply(o,0),o=ve.timezone.convert(o,0,-1*a)),o;for(n=ve.getCulture(n),t||(t=c(n)),t=we(t)?t:[t],r=t.length;r>i;i++)if(o=l(e,t[i],n))return o;return o},ve.parseInt=function(e,t){var n=ve.parseFloat(e,t);return n&&(n=0|n),n},ve.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Ae)return e;e=""+e,t=ve.getCulture(t);var i,o,r=t.numberFormat,a=r.percent,s=r.currency,l=s.symbol,u=a.symbol,c=e.indexOf("-");return p.test(e)?(e=parseFloat(e.replace(r["."],".")),isNaN(e)&&(e=null),e):c>0?null:(c=c>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf("c")>-1?(r=s,i=r.pattern[0].replace("$",l).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),c=!0)):e.indexOf(u)>-1&&(o=!0,r=a,l=u),e=e.replace("-","").replace(l,"").replace(d," ").split(r[","].replace(d," ")).join("").replace(r["."],"."),e=parseFloat(e),isNaN(e)?e=null:c&&(e*=-1),e&&o&&(e/=100),e)}}(),function(){var i,o,r,a,s,l,u;Te._scrollbar=n,Te.scrollbar=function(e){if(isNaN(Te._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),Te._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Te._scrollbar},Te.isRtl=function(t){return e(t).closest(".k-rtl").length>0},i=document.createElement("table");try{i.innerHTML="<tr><td></td></tr>",Te.tbodyInnerHtml=!0}catch(d){Te.tbodyInnerHtml=!1}Te.touch="ontouchstart"in t,Te.msPointers=t.MSPointerEvent,Te.pointers=t.PointerEvent,o=Te.transitions=!1,r=Te.transforms=!1,a="HTMLElement"in t?HTMLElement.prototype:[],Te.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,be(["Moz","webkit","O","ms"],function(){var e,t=""+this,a=typeof i.style[t+"Transition"]===Pe;return a||typeof i.style[t+"Transform"]===Pe?(e=t.toLowerCase(),r={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},a&&(o=r,o.event=o.event?o.event+"TransitionEnd":"transitionend"),!1):n}),i=null,Te.transforms=r,Te.transitions=o,Te.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Te.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Te.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(d){Te.screenWidth=t.screen.availWidth,Te.screenHeight=t.screen.availHeight}Te.detectOS=function(e){var n,i,o=!1,r=[],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/},l={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/},u={tablet:/playbook|ipad|fire/i},d={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(i in s)if(s.hasOwnProperty(i)&&(r=e.match(s[i]))){if("windows"==i&&"plugins"in navigator)return!1;o={},o.device=i,o.tablet=c(i,u,!1),o.browser=c(e,d,"default"),o.name=c(i,l),o[o.name]=!0,o.majorVersion=r[2],o.minorVersion=r[3].replace("_","."),n=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+n+Array(3-(3>n.length?n.length:2)).join("0"),o.cordova=typeof t.PhoneGap!==ze||typeof t.cordova!==ze,o.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||o.cordova,o.android&&(1.5>Te.devicePixelRatio&&400>o.flatVersion||a)&&(Te.screenWidth>800||Te.screenHeight>800)&&(o.tablet=i);break}return o},s=Te.mobileOS=Te.detectOS(navigator.userAgent),Te.wpDevicePixelRatio=s.wp?screen.width/320:0,Te.kineticScrollNeeded=s&&(Te.touch||Te.msPointers||Te.pointers),Te.hasNativeScrolling=!1,(s.ios||s.android&&s.majorVersion>2||s.wp)&&(Te.hasNativeScrolling=s),Te.delayedClick=function(){if(Te.touch){if(s.ios)return!0;if(s.android)return Te.browser.chrome?32>Te.browser.version?!1:!(e("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i):!0}return!1},Te.mouseAndTouchPresent=Te.touch&&!(Te.mobileOS.ios||Te.mobileOS.android),Te.detectBrowser=function(e){var t,n=!1,i=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\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)&&(i=e.match(o[t]))){n={},n[t]=!0,n[i[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},Te.browser=Te.detectBrowser(navigator.userAgent),Te.detectClipboardAccess=function(){var e={copy:document.queryCommandSupported?document.queryCommandSupported("copy"):!1,cut:document.queryCommandSupported?document.queryCommandSupported("cut"):!1,paste:document.queryCommandSupported?document.queryCommandSupported("paste"):!1};return Te.browser.chrome&&(e.paste=!1,Te.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},Te.clipboard=Te.detectClipboardAccess(),Te.zoomLevel=function(){var e,n,i;try{return e=Te.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!Te.touch&&(n=Te.scrollbar()),Te.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(o){return 1}},Te.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(Te.browser.msie&&8>Te.browser.version),function(t){var n="",i=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),Te.mobileOS&&(n+=" k-mobile"),i.addClass(n)}(Te.browser),Te.eventCapture=document.documentElement.addEventListener,l=document.createElement("input"),Te.placeholder="placeholder"in l,Te.propertyChangeEvent="onpropertychange"in l,Te.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,i="test",o={},r=0;n>r;r++)e=t[r],l.setAttribute("type",e),l.value=i,o[e.replace("-","")]="text"!==l.type&&l.value!==i;return o}(),l.style.cssText="float:left;",Te.cssFloat=!!l.style.cssFloat,l=null,Te.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;t>e;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:t.field>e.field?-1:0}),1===n[0].index}(),Te.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||a.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},Te.pushState=t.history&&t.history.pushState,u=document.documentMode,Te.hashChange="onhashchange"in t&&!(Te.browser.msie&&(!u||8>=u)),Te.customElements="registerElement"in t.document}(),U={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},j={},e.extend(j,{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}}),j.promiseShim=j.promise,"kendoAnimate"in e.fn||_e(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return k(this,e,t,n,i)},kendoAddClass:function(e,t){return ve.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return ve.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return ve.toggleClass(this,e,t,n)}}),q=/&/g,$=/</g,G=/"/g,Y=/'/g,Q=/>/g,K=function(e){return e.target},Te.touch&&(K=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},be(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Te.touch?Te.mobileOS?(Te.mousedown="touchstart",Te.mouseup="touchend",Te.mousemove="touchmove",Te.mousecancel="touchcancel",Te.click="touchend",Te.resize="orientationchange"):(Te.mousedown="mousedown touchstart",Te.mouseup="mouseup touchend",Te.mousemove="mousemove touchmove",Te.mousecancel="mouseleave touchcancel",Te.click="click",Te.resize="resize"):Te.pointers?(Te.mousemove="pointermove",Te.mousedown="pointerdown",Te.mouseup="pointerup",Te.mousecancel="pointercancel",Te.click="pointerup",Te.resize="orientationchange resize"):Te.msPointers?(Te.mousemove="MSPointerMove",Te.mousedown="MSPointerDown",Te.mouseup="MSPointerUp",Te.mousecancel="MSPointerCancel",Te.click="MSPointerUp",Te.resize="orientationchange resize"):(Te.mousemove="mousemove",Te.mousedown="mousedown",Te.mouseup="mouseup",Te.mousecancel="mouseleave",Te.click="click",Te.resize="resize"),J=function(e,t){var n,i,o,r,a=t||"d",s=1;for(i=0,o=e.length;o>i;i++)r=e[i],""!==r&&(n=r.indexOf("["),0!==n&&(-1==n?r="."+r:(s++,r="."+r.substring(0,n)+" || {})"+r.substring(n))),s++,a+=r+(o-1>i?" || {})":")"));return Array(s).join("(")+a},X=/^([a-z]+:)?\/\//i,_e(ve,{widgets:[],_widgetRegisteredCallbacks:[],ui:ve.ui||{},fx:ve.fx||b,effects:ve.effects||j,mobile:ve.mobile||{},data:ve.data||{},dataviz:ve.dataviz||{},drawing:ve.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:ve.support||Te,animate:ve.animate||k,ns:"",attr:function(e){return"data-"+ve.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:h,webComponents:ve.webComponents||[],isScrollable:f,scrollLeft:m,size:g,toCamelCase:p,toHyphens:d,getOffset:ve.getOffset||v,parseEffects:ve.parseEffects||_,toggleClass:ve.toggleClass||y,directions:ve.directions||U,Observable:O,Class:i,Template:P,template:ke(P.compile,P),render:ke(P.render,P),stringify:ke(Ce.stringify,Ce),eventTarget:K,htmlEncode:x,isLocalUrl:function(e){return e&&!X.test(e)},expr:function(e,t,n){return e=e||"",typeof t==Pe&&(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=J(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return Ve[n]=Ve[n]||Function("d","return "+ve.expr(e,t))},setter:function(e){return Be[e]=Be[e]||Function("d,value",ve.expr(e)+"=value")},accessor:function(e){return{get:ve.getter(e),set:ve.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=16*xe.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,"["+ve.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;n.length>t;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=ve.widgets.length;n>t;t++)e(ve.widgets[t]);ve._widgetRegisteredCallbacks.push(e)},logToConsole:function(e,i){var o=t.console;!ve.suppressLog&&n!==o&&o.log&&o[i||"log"](e)}}),Z=O.extend({init:function(e,t){var n,i=this;i.element=ve.jQuery(e).handler(i),i.angular("init",t),O.fn.init.call(i),n=t?t.dataSource:null,n&&(t=_e({},t,{dataSource:{}})),t=i.options=_e(!0,{},i.options,t),n&&(t.dataSource=n),i.element.attr(ve.attr("role"))||i.element.attr(ve.attr("role"),(t.name||"").toLowerCase()),
i.element.data("kendo"+t.prefix+t.name,i),i.bind(i.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",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,i=0,o=n.events.length;o>i;i++)t=n.events[i],n.options[t]&&e[t]&&n.unbind(t,n.options[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 ve.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}}),ee=Z.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}})}})}}),ve.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},ve.notify=ye,te=/template$/i,ne=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,ie=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,oe=/([A-Z])/g,ve.initWidget=function(i,o,r){var a,s,l,u,c,d,p,h,f,m,g,v,_;if(r?r.roles&&(r=r.roles):r=ve.ui.roles,i=i.nodeType?i:i[0],d=i.getAttribute("data-"+ve.ns+"role")){f=-1===d.indexOf("."),l=f?r[d]:ve.getter(d)(t),g=e(i).data(),v=l?"kendo"+l.fn.options.prefix+l.fn.options.name:"",m=f?RegExp("^kendo.*"+d+"$","i"):RegExp("^"+v+"$","i");for(_ in g)if(_.match(m)){if(_!==v)return g[_];a=g[_]}if(l){for(h=C(i,"dataSource"),o=e.extend({},T(i,l.fn.options),o),h&&(o.dataSource=typeof h===Pe?ve.getter(h)(t):h),u=0,c=l.fn.events.length;c>u;u++)s=l.fn.events[u],p=C(i,s),p!==n&&(o[s]=ve.getter(p)(t));return a?e.isEmptyObject(o)||a.setOptions(o):a=new l(i,o),a}}},ve.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[ve.ui,ve.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return _e.apply(null,[{}].concat(i.reverse()))},ve.init=function(t){var n=ve.rolesFromNamespaces(Le.call(arguments,1));e(t).find("[data-"+ve.ns+"role]").addBack().each(function(){ve.initWidget(this,{},n)})},ve.destroy=function(t){e(t).find("[data-"+ve.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Ie&&n[t].destroy()})},ve.resize=function(t,n){var i,o=e(t).find("[data-"+ve.ns+"role]").addBack().filter(D);o.length&&(i=e.makeArray(o),i.sort(S),e.each(i,function(){var t=ve.widgetInstance(e(this));t&&t.resize(n)}))},ve.parseOptions=T,_e(ve.ui,{Widget:Z,DataBoundWidget:ee,roles:{},progress:function(t,n){var i,o,r,a,s=t.find(".k-loading-mask"),l=ve.support,u=l.browser;n?s.length||(i=l.isRtl(t),o=i?"right":"left",a=t.scrollLeft(),r=u.webkit&&i?t[0].scrollWidth-t.width()-2*a:0,s=e("<div class='k-loading-mask'><span class='k-loading-text'>"+ve.ui.progress.messages.loading+"</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").css("top",t.scrollTop()).css(o,Math.abs(a)+r).prependTo(t)):s&&s.remove()},plugin:function(t,i,o){var r,a,s,l,u=t.fn.options.name;for(i=i||ve.ui,o=o||"",i[u]=t,i.roles[u.toLowerCase()]=t,r="getKendo"+o+u,u="kendo"+o+u,a={name:u,widget:t,prefix:o||""},ve.widgets.push(a),s=0,l=ve._widgetRegisteredCallbacks.length;l>s;s++)ve._widgetRegisteredCallbacks[s](a);e.fn[u]=function(i){var o,r=this;return typeof i===Pe?(o=Le.call(arguments,1),this.each(function(){var t,a,s=e.data(this,u);if(!s)throw Error(ve.format("Cannot call method '{0}' of {1} before it is initialized",i,u));if(t=s[i],typeof t!==Ie)throw Error(ve.format("Cannot find method '{0}' of {1}",i,u));return a=t.apply(s,o),a!==n?(r=a,!1):n})):this.each(function(){return new t(this,i)}),r},e.fn[u].widget=t,e.fn[r]=function(){return this.data(u)}}}),ve.ui.progress.messages={loading:"Loading..."},re={bind:function(){return this},nullObject:!0,options:{}},ae=Z.extend({init:function(e,t){Z.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){Z.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(ve.roleSelector("view splitview modalview drawer"));return ve.widgetInstance(e,ve.mobile.ui)||re},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(ve.roleSelector("view layout modalview drawer splitview"));return ve.widgetInstance(e.eq(0),ve.mobile.ui)||re}}),_e(ve.mobile,{init:function(e){ve.init(e,ve.mobile.ui,ve.ui,ve.dataviz.ui)},appLevelNativeScrolling:function(){return ve.mobile.application&&ve.mobile.application.options&&ve.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ae,DataBoundWidget:ee.extend(ae.prototype),roles:{},plugin:function(e){ve.ui.plugin(e,ve.mobile.ui,"Mobile")}}}),l(ve.dataviz,{init:function(e){ve.init(e,ve.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){ve.ui.plugin(e,ve.dataviz.ui)}},roles:{}}),ve.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map(function(t,i){return i=e(i),Te.kineticScrollNeeded&&ve.mobile.ui.Scroller&&!i.data("kendoMobileScroller")?(i.kendoMobileScroller(n),i.data("kendoMobileScroller")):!1})[0]},ve.preventDefault=function(e){e.preventDefault()},ve.widgetInstance=function(e,n){var i,o,r,a,s=e.data(ve.ns+"role"),l=[];if(s){if("content"===s&&(s="scroller"),n)if(n[0])for(i=0,o=n.length;o>i;i++)l.push(n[i].roles[s]);else l.push(n.roles[s]);else l=[ve.ui.roles[s],ve.dataviz.ui.roles[s],ve.mobile.ui.roles[s]];for(s.indexOf(".")>=0&&(l=[ve.getter(s)(t)]),i=0,o=l.length;o>i;i++)if(r=l[i],r&&(a=e.data("kendo"+r.fn.options.prefix+r.fn.options.name)))return a}},ve.onResize=function(n){var i=n;return Te.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(Te.resize,i),i},ve.unbindResize=function(n){e(t).off(Te.resize,n)},ve.attrValue=function(e,t){return e.data(ve.ns+t)},ve.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr[":"],{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return F(t,!isNaN(n)&&n>-1)}}),se=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],le="label, input, [data-rel=external]",ue={setupMouseMute:function(){var t,n=0,i=se.length,o=document.documentElement;if(!ue.mouseTrap&&Te.eventCapture)for(ue.mouseTrap=!0,ue.bustClick=!1,ue.captureMouse=!1,t=function(t){ue.captureMouse&&("click"===t.type?ue.bustClick&&!e(t.target).is(le)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};i>n;n++)o.addEventListener(se[n],t,!0)},muteMouse:function(e){ue.captureMouse=!0,e.data.bustClick&&(ue.bustClick=!0),clearTimeout(ue.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(ue.mouseTrapTimeoutID),ue.mouseTrapTimeoutID=setTimeout(function(){ue.captureMouse=!1,ue.bustClick=!1},400)}},ce={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},Te.touch&&(Te.mobileOS.ios||Te.mobileOS.android)?ce={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:Te.pointers?ce={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:Te.msPointers&&(ce={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!Te.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 i,o=this,r=t.relatedTarget,a=t.handleObj;return(!r||r!==o&&!e.contains(o,r))&&(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),de=function(e){return ce[e]||e},pe=/([^ ]+)/g,ve.applyEventMap=function(e,t){return e=e.replace(pe,de),t&&(e=e.replace(pe,"$1."+t)),e},he=e.fn.on,_e(!0,I,e),I.fn=I.prototype=new e,I.fn.constructor=I,I.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof I)&&(n=I(n)),e.fn.init.call(this,t,n,fe)},I.fn.init.prototype=I.fn,fe=I(document),_e(I.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||ve.guid()),this},on:function(){var e,t,n,i,o,r,a=this,s=a.data("kendoNS");return 1===arguments.length?he.call(a,arguments[0]):(e=a,t=Le.call(arguments),typeof t[t.length-1]===ze&&t.pop(),n=t[t.length-1],i=ve.applyEventMap(t[0],s),Te.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(ue.setupMouseMute(),o=2===t.length?null:t[1],r=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,he.call(this,{touchstart:ue.muteMouse,touchend:ue.unMuteMouse},o,{bustClick:r})),typeof n===Pe&&(e=a.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,he.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),ve.jQuery=I,ve.eventMap=ce,ve.timezone=function(){function e(e,t){var n,i,o,r=t[3],a=t[4],s=t[5],l=t[8];return l||(t[8]=l={}),l[e]?l[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,c[r]+1,1,s[0]-24,s[1],s[2],0)),i=d[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o-(i>o?7:0))):a.indexOf(">=")>=0&&(n=new Date(Date.UTC(e,c[r],a.substr(5),s[0],s[1],s[2],0)),i=d[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o+(o>i?7:0))):n=new Date(Date.UTC(e,c[r],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var o,r,a,s;return(n=n[i])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return a>=t&&(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=i.split(":"),r=0,o.length>1&&(r=60*o[0]+ +o[1]),[-1e6,"max","-","Jan",1,[0,0,0],r,"-"])}function n(e,t,n){var i,o,r,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(i=a.length-1;i>=0&&(o=a[i][3],!(o&&e>o));i--);if(r=a[i+1],!r)throw Error('Timezone "'+n+'" not found on '+e+".");return r}function i(e,i,o,r){typeof e!=Ae&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,r);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,r;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,ve.parseFloat(r?o[0]-r[6]:o[0]))}function r(e,t){var n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,a=o[2];return a.indexOf("/")>=0?a.split("/")[r&&+r[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",r&&"-"!=r[7]?r[7]:""):a}function a(e,t,n){var i,o;return typeof t==Pe&&(t=this.offset(e,t)),typeof n==Pe&&(n=this.offset(e,n)),i=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),o=e.getTimezoneOffset(),new Date(e.getTime()+6e4*(o-i))}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function u(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:l,abbr:r,toLocalDate:u}}(),ve.date=function(){function e(e,t){return 0===t&&23===e.getHours()?(e.setHours(e.getHours()+2),!0):!1}function t(t,n,i){var o=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,o)}function n(e,n,i){return e=new Date(e),t(e,n,i),e}function i(e){return new Date(e.getFullYear(),e.getMonth(),1)}function o(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=i(e),o=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return o&&t.setHours(n.getHours()+o/60),t}function r(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function a(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function s(e){return e.getTime()-r(e)}function l(e,t,n){var i,o=s(t),r=s(n);return e&&o!=r?(t>=n&&(n+=v),i=s(e),o>i&&(i+=v),o>r&&(r+=v),i>=o&&r>=i):!0}function u(e,t,n){var i,o=t.getTime(),r=n.getTime();return o>=r&&(r+=v),i=e.getTime(),i>=o&&r>=i}function c(t,n){var i=t.getHours();return t=new Date(t),d(t,n*v),e(t,i),t}function d(e,t,n){var i,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-o,e.setTime(e.getTime()+i*g))}function p(t,n){return t=new Date(ve.date.getDate(t).getTime()+ve.date.getMilliseconds(n)),e(t,n.getHours()),t}function h(){return r(new Date)}function f(e){return r(e).getTime()==h().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}var g=6e4,v=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:r,isInDateRange:u,isInTimeRange:l,isToday:f,nextDay:function(e){return c(e,1)},previousDay:function(e){return c(e,-1)},toUtcTime:a,MS_PER_DAY:v,MS_PER_HOUR:60*g,MS_PER_MINUTE:g,setTime:d,setHours:p,addDays:c,today:h,toInvariantTime:m,firstDayOfMonth:i,lastDayOfMonth:o,getMilliseconds:s}}(),ve.stripWhitespace=function(e){var t,n,i;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;e.childNodes.length>n;n++)i=e.childNodes[n],3!=i.nodeType||/\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&&ve.stripWhitespace(i)},me=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},ve.animationFrame=function(e){me.call(t,e)},ge=[],ve.queueAnimation=function(e){ge[ge.length]=e,1===ge.length&&ve.runNextAnimation()},ve.runNextAnimation=function(){ve.animationFrame(function(){ge[0]&&(ge.shift()(),ge[0]&&ve.runNextAnimation())})},ve.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},i=t.split(/&|=/),o=i.length,r=0;o>r;r+=2)""!==i[r]&&(n[decodeURIComponent(i[r])]=decodeURIComponent(i[r+1]));return n},ve.elementUnderCursor=function(e){return n!==e.x.client?document.elementFromPoint(e.x.client,e.y.client):n},ve.wheelDeltaY=function(e){var t,i=e.originalEvent,o=i.wheelDeltaY;return i.wheelDelta?(o===n||o)&&(t=i.wheelDelta):i.detail&&i.axis===i.VERTICAL_AXIS&&(t=10*-i.detail),t},ve.throttle=function(e,t){var i,o,r=0;return!t||0>=t?e:(o=function(){function o(){e.apply(a,l),r=+new Date}var a=this,s=+new Date-r,l=arguments;return r?(i&&clearTimeout(i),s>t?o():i=setTimeout(o,t-s),n):o()},o.cancel=function(){clearTimeout(i)},o)},ve.caret=function(t,i,o){var r,a,s,l,u=i!==n;if(o===n&&(o=i),t[0]&&(t=t[0]),!u||!t.disabled){try{t.selectionStart!==n?u?(t.focus(),t.setSelectionRange(i,o)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),r=t.createTextRange(),u?(r.collapse(!0),r.moveStart("character",i),r.moveEnd("character",o-i),r.select()):(a=r.duplicate(),r.moveToBookmark(document.selection.createRange().getBookmark()),a.setEndPoint("EndToStart",r),s=a.text.length,l=s+r.text.length,i=[s,l]))}catch(c){i=[]}return i}},ve.compileMobileDirective=function(e,n){var i=t.angular;return e.attr("data-"+ve.ns+"role",e[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),i.element(e).injector().invoke(["$compile",function(t){t(e)(n),/^\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),ve.widgetInstance(e,ve.mobile.ui)},ve.antiForgeryTokens=function(){var t={},i=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&&i!==n&&(t[o]=i),t},ve.cycleForm=function(e){function t(e){var t=ve.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find("input, .k-widget").first(),i=e.find("button, .k-button").last();i.on("keydown",function(e){e.keyCode!=ve.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on("keydown",function(e){e.keyCode==ve.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(i))})},function(){function n(t,n,i,o){var r,a,s=e("<form>").attr({action:i,method:"POST",target:o}),l=ve.antiForgeryTokens();l.fileName=n,r=t.split(";base64,"),l.contentType=r[0].replace("data:",""),l.base64=r[1];for(a in l)l.hasOwnProperty(a)&&e("<input>").attr({value:l[a],name:a,type:"hidden"}).appendTo(s);s.appendTo("body").submit().remove()}function i(e,t){var n,i,o,r,a,s=e;if("string"==typeof e){for(n=e.split(";base64,"),i=n[0],o=atob(n[1]),r=new Uint8Array(o.length),a=0;o.length>a;a++)r[a]=o.charCodeAt(a);s=new Blob([r.buffer],{type:i})}navigator.msSaveBlob(s,t)}function o(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),r.download=n,r.href=e;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(i),setTimeout(function(){URL.revokeObjectURL(e)})}var r=document.createElement("a"),a="download"in r&&!ve.support.browser.edge;ve.saveAs=function(e){var t=n;e.forceProxy||(a?t=o:navigator.msSaveBlob&&(t=i)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}(),ve.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}}(jQuery,window),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.router.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t){if(!t)return e;e+"/"===t&&(e=t);var n=RegExp("^"+t,"i");return n.test(e)||(e=t+"/"+e),h.protocol+"//"+(h.host+"/"+e).replace(/\/\/+/g,"/")}function i(e){return e?"#!":"#"}function o(e){var t=h.href;return"#!"===e&&t.indexOf("#")>-1&&t.indexOf("#!")<0?null:t.split(e)[1]||""}function r(e,t){return 0===t.indexOf(e)?t.substr(e.length).replace(/\/\//g,"/"):t}function a(e){return e.replace(/^(#)?/,"#")}function s(e){return e.replace(/^(#(!)?)?/,"#!")}var l=window.kendo,u="change",c="back",d="same",p=l.support,h=window.location,f=window.history,m=50,g=l.support.browser.msie,v=/^#*/,_=window.document,b=l.Class.extend({back:function(){g?setTimeout(function(){f.back()}):f.back()},forward:function(){g?setTimeout(function(){f.forward()}):f.forward()},length:function(){return f.length},replaceLocation:function(e){h.replace(e)}}),w=b.extend({init:function(e){this.root=e},navigate:function(e){f.pushState({},_.title,n(e,this.root))},replace:function(e){f.replaceState({},_.title,n(e,this.root))},normalize:function(e){return r(this.root,e)},current:function(){var e=h.pathname;return h.search&&(e+=h.search),r(this.root,e)},change:function(t){e(window).bind("popstate.kendo",t)},stop:function(){e(window).unbind("popstate.kendo")},normalizeCurrent:function(e){var t,r=e.root,a=h.pathname,s=o(i(e.hashBang));r===a+"/"&&(t=r),r===a&&s&&(t=n(s.replace(v,""),r)),t&&f.pushState({},_.title,t)}}),k=b.extend({init:function(e){this._id=l.guid(),this.prefix=i(e),this.fix=e?s:a},navigate:function(e){h.hash=this.fix(e)},replace:function(e){this.replaceLocation(this.fix(e))},normalize:function(e){return e.indexOf(this.prefix)<0?e:e.split(this.prefix)[1]},change:function(t){p.hashChange?e(window).on("hashchange."+this._id,t):this._interval=setInterval(t,m)},stop:function(){e(window).off("hashchange."+this._id),clearInterval(this._interval)},current:function(){return o(this.prefix)},normalizeCurrent:function(e){var t=h.pathname,n=e.root;return e.pushState&&n!==t?(this.replaceLocation(n+this.prefix+r(n,t)),!0):!1}}),y=l.Observable.extend({start:function(t){if(t=t||{},this.bind([u,c,d],t),!this._started){this._started=!0,t.root=t.root||"/";var n,i=this.createAdapter(t);i.normalizeCurrent(t)||(n=i.current(),e.extend(this,{adapter:i,root:t.root,historyLength:i.length(),current:n,locations:[n]}),i.change(e.proxy(this,"_checkUrl")))}},createAdapter:function(e){return p.pushState&&e.pushState?new w(e.root):new k(e.hashBang)},stop:function(){this._started&&(this.adapter.stop(),this.unbind(u),this._started=!1)},change:function(e){this.bind(u,e)},replace:function(e,t){this._navigate(e,t,function(t){t.replace(e),this.locations[this.locations.length-1]=this.current})},navigate:function(e,n){return"#:back"===e?(this.backCalled=!0,this.adapter.back(),t):(this._navigate(e,n,function(t){t.navigate(e),this.locations.push(this.current)}),t)},_navigate:function(e,n,i){var o=this.adapter;return e=o.normalize(e),this.current===e||this.current===decodeURIComponent(e)?(this.trigger(d),t):((n||!this.trigger(u,{url:e}))&&(this.current=e,i.call(this,o),this.historyLength=o.length()),t)},_checkUrl:function(){var e=this.adapter,n=e.current(),i=e.length(),o=this.historyLength===i,r=n===this.locations[this.locations.length-2]&&o,a=this.backCalled,s=this.current;return null===n||this.current===n||this.current===decodeURIComponent(n)?!0:(this.historyLength=i,this.backCalled=!1,this.current=n,r&&this.trigger("back",{url:s,to:n})?(e.forward(),this.current=s,t):this.trigger(u,{url:n,backButtonPressed:!a})?(r?e.forward():(e.back(),this.historyLength--),this.current=s,t):(r?this.locations.pop():this.locations.push(n),t))}});l.History=y,l.History.HistoryAdapter=b,l.History.HashAdapter=k,l.History.PushStateAdapter=w,l.absoluteURL=n,l.history=new y}(window.kendo.jQuery),function(){function e(e,t){return t?e:"([^/]+)"}function t(t,n){return RegExp("^"+t.replace(f,"\\$&").replace(d,"(?:$1)?").replace(p,e).replace(h,"(.*?)")+"$",n?"i":"")}function n(e){return e.replace(/(\?.*)|(#.*)/g,"")}var i=window.kendo,o=i.history,r=i.Observable,a="init",s="routeMissing",l="change",u="back",c="same",d=/\((.*?)\)/g,p=/(\(\?)?:\w+/g,h=/\*\w+/g,f=/[\-{}\[\]+?.,\\\^$|#\s]/g,m=i.Class.extend({init:function(e,n,i){e instanceof RegExp||(e=t(e,i)),this.route=e,this._callback=n},callback:function(e,t){var o,r,a=0,s=i.parseQueryStringParams(e);for(s._back=t,e=n(e),o=this.route.exec(e).slice(1),r=o.length;r>a;a++)void 0!==o[a]&&(o[a]=decodeURIComponent(o[a]));o.push(s),this._callback.apply(null,o)},worksWith:function(e,t){return this.route.test(n(e))?(this.callback(e,t),!0):!1}}),g=r.extend({init:function(e){e||(e={}),r.fn.init.call(this),this.routes=[],this.pushState=e.pushState,this.hashBang=e.hashBang,this.root=e.root,this.ignoreCase=e.ignoreCase!==!1,this.bind([a,s,l,c],e)},destroy:function(){o.unbind(l,this._urlChangedProxy),o.unbind(c,this._sameProxy),o.unbind(u,this._backProxy),this.unbind()},start:function(){var e,t=this,n=function(){t._same()},i=function(e){t._back(e)},r=function(e){t._urlChanged(e)};o.start({same:n,change:r,back:i,pushState:t.pushState,hashBang:t.hashBang,root:t.root}),e={url:o.current||"/",preventDefault:$.noop},t.trigger(a,e)||t._urlChanged(e),this._urlChangedProxy=r,this._backProxy=i},route:function(e,t){this.routes.push(new m(e,t,this.ignoreCase))},navigate:function(e,t){i.history.navigate(e,t)},replace:function(e,t){i.history.replace(e,t)},_back:function(e){this.trigger(u,{url:e.url,to:e.to})&&e.preventDefault()},_same:function(){this.trigger(c)},_urlChanged:function(e){var t,n,o,r,a=e.url,u=e.backButtonPressed;if(a||(a="/"),this.trigger(l,{url:e.url,params:i.parseQueryStringParams(e.url),backButtonPressed:u}))return void e.preventDefault();for(t=0,n=this.routes,r=n.length;r>t;t++)if(o=n[t],o.worksWith(a,u))return;this.trigger(s,{url:a,params:i.parseQueryStringParams(a),backButtonPressed:u})&&e.preventDefault()}});i.Router=g}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),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,a=n-o,s=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(a*a+s*s)}}function i(e){var t,n,i,o=[],r=e.originalEvent,s=e.currentTarget,l=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;t>l;l++)i=n[l],o.push({location:i,event:e,target:i.target,currentTarget:s,id:i.identifier,type:"touch"});else o.push(a.pointers||a.msPointers?{location:r,event:e,target:e.target,currentTarget:s,id:r.pointerId,type:"pointer"}:{id:1,event:e,target:e.target,currentTarget:s,location:e,type:"mouse"});return o}function o(e){for(var t=r.eventMap.up.split(" "),n=0,i=t.length;i>n;n++)e(t[n])}var r=window.kendo,a=r.support,s=window.document,l=r.Class,u=r.Observable,c=e.now,d=e.extend,p=a.mobileOS,h=p&&p.android,f=800,m=a.browser.msie?5:0,g="press",v="hold",_="select",b="start",w="move",k="end",y="cancel",x="tap",C="release",T="gesturestart",S="gesturechange",D="gestureend",F="gesturetap",E={api:0,touch:0,mouse:9,pointer:9},I=!a.touch||a.mouseAndTouchPresent,P=l.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=c()},move:function(e){var t=this,n=e["page"+t.axis],i=c(),o=i-t.timeStamp||1;(n||!h)&&(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]}}),A=l.extend({init:function(e,t,n){d(this,{x:new P("X",n.location),y:new P("Y",n.location),type:n.type,useClickAsTap:e.useClickAsTap,threshold:e.threshold||E[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,"_hold"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_hold:function(){this._trigger(v,this.pressEvent)},move:function(e){var t=this;if(!t._finished){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(M.current&&M.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(w,e)}},end:function(e){this.endTime=c(),this._finished||(this._finished=!0,this._trigger(C,e),this._moved?this._trigger(k,e):this.useClickAsTap||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=c(),this._moved=!0,this._trigger(b,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}}),M=u.extend({init:function(t,n){var i,l,c,p=this,h=r.guid();n=n||{},i=p.filter=n.filter,p.threshold=n.threshold||m,p.minHold=n.minHold||f,p.touches=[],p._maxTouches=n.multiTouch?2:1,p.allowSelection=n.allowSelection,p.captureUpIfMoved=n.captureUpIfMoved,p.useClickAsTap=!n.fastTap&&!a.delayedClick(),p.eventNS=h,t=e(t).handler(p),u.fn.init.call(p),d(p,{element:t,surface:e(n.global&&I?s.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),p.surface.handler(p).on(r.applyEventMap("move",h),"_move").on(r.applyEventMap("up cancel",h),"_end"),t.on(r.applyEventMap("down",h),i,"_start"),p.useClickAsTap&&t.on(r.applyEventMap("click",h),i,"_click"),(a.pointers||a.msPointers)&&(11>a.browser.version?t.css("-ms-touch-action","pinch-zoom double-tap-zoom"):t.css("touch-action",n.touchAction||"none")),n.preventDragEvent&&t.on(r.applyEventMap("dragstart",h),r.preventDefault),t.on(r.applyEventMap("mousedown",h),i,{root:t},"_select"),p.captureUpIfMoved&&a.eventCapture&&(l=p.surface[0],c=e.proxy(p.preventIfMoving,p),o(function(e){l.addEventListener(e,c,!0)})),p.bind([g,v,x,b,w,k,C,y,T,S,D,F,_],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e,t=this;t._destroyed||(t._destroyed=!0,t.captureUpIfMoved&&a.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(){M.current=this},cancel:function(){this._disposeAll(),this.trigger(y)},notify:function(e,t){var i=this,o=i.touches;if(this._isMultiTouch()){switch(e){case w:e=S;break;case k:e=D;break;case x:e=F}d(t,{touches:o},n(o[0],o[1]))}return this.trigger(e,d(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(_,{event:e}))&&e.preventDefault()},_start:function(t){var n,o,r=this,a=0,s=r.filter,l=i(t),u=l.length,c=t.which;if(!(c&&c>1||r._maxTouchesReached()))for(M.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();u>a&&!r._maxTouchesReached();a++)o=l[a],n=s?e(o.currentTarget):r.element,n.length&&(o=new A(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:c(),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,a,s=this,l={},u=i(t),c=s.touches;for(n=0;c.length>n;n++)o=c[n],l[o.id]=o;for(n=0;u.length>n;n++)r=u[n],a=l[r.id],a&&a[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})}});M.defaultThreshold=function(e){m=e},M.minHold=function(e){f=e},r.getTouches=i,r.touchDelta=n,r.UserEvents=M}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.touch.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.proxy,r=Math.abs,a=20,s=i.extend({init:function(e,t){function r(e){return function(t){s._triggerTouch(e,t)}}function a(e){return function(t){s.trigger(e,{touches:t.touches,distance:t.distance,center:t.center,event:t.event})}}var s=this;i.fn.init.call(s,e,t),t=s.options,e=s.element,s.wrapper=e,s.events=new n.UserEvents(e,{filter:t.filter,surface:t.surface,minHold:t.minHold,multiTouch:t.multiTouch,allowSelection:!0,fastTap:t.fastTap,press:r("touchstart"),hold:r("hold"),tap:o(s,"_tap"),gesturestart:a("gesturestart"),gesturechange:a("gesturechange"),gestureend:a("gestureend")}),t.enableSwipe?(s.events.bind("start",o(s,"_swipestart")),s.events.bind("move",o(s,"_swipemove"))):(s.events.bind("start",o(s,"_dragstart")),s.events.bind("move",r("drag")),s.events.bind("end",r("dragend"))),n.notify(s)},events:["touchstart","dragstart","drag","dragend","tap","doubletap","hold","swipe","gesturestart","gesturechange","gestureend"],
options:{name:"Touch",surface:null,global:!1,fastTap:!1,filter:null,multiTouch:!1,enableSwipe:!1,minXDelta:30,maxYDelta:20,maxDuration:1e3,minHold:800,doubleTapTimeout:800},cancel:function(){this.events.cancel()},destroy:function(){this.events.destroy()},_triggerTouch:function(e,t){this.trigger(e,{touch:t.touch,event:t.event})&&t.preventDefault()},_tap:function(e){var t=this,i=t.lastTap,o=e.touch;i&&t.options.doubleTapTimeout>o.endTime-i.endTime&&n.touchDelta(o,i).distance<a?(t._triggerTouch("doubletap",e),t.lastTap=null):(t._triggerTouch("tap",e),t.lastTap=o)},_dragstart:function(e){this._triggerTouch("dragstart",e)},_swipestart:function(e){2*r(e.x.velocity)>=r(e.y.velocity)&&e.sender.capture()},_swipemove:function(e){var t=this,n=t.options,i=e.touch,o=e.event.timeStamp-i.startTime,a=i.x.initialDelta>0?"right":"left";r(i.x.initialDelta)>=n.minXDelta&&r(i.y.initialDelta)<n.maxYDelta&&n.maxDuration>o&&(t.trigger("swipe",{direction:a,touch:e.touch}),i.cancel())}});n.ui.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.odata.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(i,r){var l,u,c,d,p,h,f,m,g=[],v=i.logic||"and",_=i.filters;for(l=0,u=_.length;u>l;l++)i=_[l],c=i.field,f=i.value,h=i.operator,i.filters?i=n(i,r):(m=i.ignoreCase,c=c.replace(/\./g,"/"),i=a[h],r&&(i=s[h]),"isnull"===h||"isnotnull"===h?i=o.format("{0} {1} null",c,i):"isempty"===h||"isnotempty"===h?i=o.format("{0} {1} ''",c,i):i&&f!==t&&(d=e.type(f),"string"===d?(p="'{1}'",f=f.replace(/'/g,"''"),m===!0&&(c="tolower("+c+")")):p="date"===d?r?"{1:yyyy-MM-ddTHH:mm:ss+00:00}":"datetime'{1:yyyy-MM-ddTHH:mm:ss}'":"{1}",i.length>3?"substringof"!==i?p="{0}({2},"+p+")":(p="{0}("+p+",{2})","doesnotcontain"===h&&(r?(p="{0}({2},'{1}') eq -1",i="indexof"):p+=" eq false")):p="{2} {0} "+p,i=o.format(p,i,f,c))),g.push(i);return i=g.join(" "+v+" "),g.length>1&&(i="("+i+")"),i}function i(e){for(var t in e)0===t.indexOf("@odata")&&delete e[t]}var o=window.kendo,r=e.extend,a={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith",isnull:"eq",isnotnull:"ne",isempty:"eq",isnotempty:"ne"},s=r({},a,{contains:"contains"}),l={pageSize:e.noop,page:e.noop,filter:function(e,t,i){t&&(t=n(t,i),t&&(e.$filter=t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir&&(t+=" desc"),t}).join(",");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},u={read:{dataType:"jsonp"}};r(!0,o.data,{schemas:{odata:{type:"json",data:function(e){return e.d.results||[e.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t,n){var i,r,a,s;if(e=e||{},t=t||"read",s=(this.options||u)[t],s=s?s.dataType:"json","read"===t){i={$inlinecount:"allpages"},"json"!=s&&(i.$format="json");for(a in e)l[a]?l[a](i,e[a],n):i[a]=e[a]}else{if("json"!==s)throw Error("Only json dataType can be used for "+t+" operation.");if("destroy"!==t){for(a in e)r=e[a],"number"==typeof r&&(e[a]=r+"");i=o.stringify(e)}}return i}}}}),r(!0,o.data,{schemas:{"odata-v4":{type:"json",data:function(t){return t=e.extend({},t),i(t),t.value?t.value:[t]},total:function(e){return e["@odata.count"]}}},transports:{"odata-v4":{read:{cache:!0,dataType:"json"},update:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t){var n=o.data.transports.odata.parameterMap(e,t,!0);return"read"==t&&(n.$count=!0,delete n.$inlinecount),n}}}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.xml.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=e.isArray,o=e.isPlainObject,r=e.map,a=e.each,s=e.extend,l=n.getter,u=n.Class,c=u.extend({init:function(t){var l,u,c,d,p=this,h=t.total,f=t.model,m=t.parse,g=t.errors,v=t.serialize,_=t.data;f&&(o(f)&&(l=t.modelBase||n.data.Model,f.fields&&a(f.fields,function(t,n){o(n)&&n.field?e.isFunction(n.field)||(n=s(n,{field:p.getter(n.field)})):n={field:p.getter(n)},f.fields[t]=n}),u=f.id,u&&(c={},c[p.xpathToMember(u,!0)]={field:p.getter(u)},f.fields=s(c,f.fields),f.id=p.xpathToMember(u)),f=l.define(f)),p.model=f),h&&("string"==typeof h?(h=p.getter(h),p.total=function(e){return parseInt(h(e),10)}):"function"==typeof h&&(p.total=h)),g&&("string"==typeof g?(g=p.getter(g),p.errors=function(e){return g(e)||null}):"function"==typeof g&&(p.errors=g)),_&&("string"==typeof _?(_=p.xpathToMember(_),p.data=function(e){var t,n=p.evaluate(e,_);return n=i(n)?n:[n],p.model&&f.fields?(t=new p.model,r(n,function(e){if(e){var n,i={};for(n in f.fields)i[n]=t._parse(n,f.fields[n].field(e));return i}})):n}):"function"==typeof _&&(p.data=_)),"function"==typeof m&&(d=p.parse,p.parse=function(e){var t=m.call(p,e);return d.call(p,t)}),"function"==typeof v&&(p.serialize=v)},total:function(e){return this.data(e).length},errors:function(e){return e?e.errors:null},serialize:function(e){return e},parseDOM:function(e){var n,o,r,a,s,l,u,c={},d=e.attributes,p=d.length;for(u=0;p>u;u++)l=d[u],c["@"+l.nodeName]=l.nodeValue;for(o=e.firstChild;o;o=o.nextSibling)r=o.nodeType,3===r||4===r?c["#text"]=o.nodeValue:1===r&&(n=this.parseDOM(o),a=o.nodeName,s=c[a],i(s)?s.push(n):s=s!==t?[s,n]:n,c[a]=s);return c},evaluate:function(e,t){for(var n,o,r,a,s,l=t.split(".");n=l.shift();)if(e=e[n],i(e)){for(o=[],t=l.join("."),s=0,r=e.length;r>s;s++)a=this.evaluate(e[s],t),a=i(a)?a:[a],o.push.apply(o,a);return o}return e},parse:function(t){var n,i,o={};return n=t.documentElement||e.parseXML(t).documentElement,i=this.parseDOM(n),o[n.nodeName]=i,o},xpathToMember:function(e,t){return e?(e=e.replace(/^\//,"").replace(/\//g,"."),e.indexOf("@")>=0?e.replace(/\.?(@.*)/,t?"$1":'["$1"]'):e.indexOf("text()")>=0?e.replace(/(\.?text\(\))/,t?"#text":'["#text"]'):e):""},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:c,readers:{xml:c}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),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 n(e,t,n,i){return function(o){var r,a={};for(r in o)a[r]=o[r];a.field=i?n+"."+o.field:n,t==Fe&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(t,n){if(t===n)return!0;var o,r=e.type(t),a=e.type(n);if(r!==a)return!1;if("date"===r)return t.getTime()===n.getTime();if("object"!==r&&"array"!==r)return!1;for(o in t)if(!i(t[o],n[o]))return!1;return!0}function o(e,t){var n,i;for(i in e){if(n=e[i],de(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function r(e){this.data=e||[]}function a(e,n){if(e){var i=typeof e===ye?{field:e,dir:n}:e,o=he(i)?i:i!==t?[i]:[];return fe(o,function(e){return!!e.dir})}}function s(e){var t,n,i,o,r=e.filters;if(r)for(t=0,n=r.length;n>t;t++)i=r[t],o=i.operator,o&&typeof o===ye&&(i.operator=J[o.toLowerCase()]||o),s(i)}function l(e){return e&&!pe(e)?((he(e)||!e.filters)&&(e={logic:"and",filters:he(e)?e:[e]}),s(e),e):t}function u(e,t){return e.logic||t.logic?!1:e.field===t.field&&e.value===t.value&&e.operator===t.operator}function c(e){return e=e||{},pe(e)?{logic:"and",filters:[]}:l(e)}function d(e,t){return t.logic||e.field>t.field?1:t.field>e.field?-1:0}function p(e,t){var n,i,o,r,a;if(e=c(e),t=c(t),e.logic!==t.logic)return!1;if(o=(e.filters||[]).slice(),r=(t.filters||[]).slice(),o.length!==r.length)return!1;for(o=o.sort(d),r=r.sort(d),a=0;o.length>a;a++)if(n=o[a],i=r[a],n.logic&&i.logic){if(!p(n,i))return!1}else if(!u(n,i))return!1;return!0}function h(e){return he(e)?e:[e]}function f(e,n){var i=typeof e===ye?{field:e,dir:n}:e,o=he(i)?i:i!==t?[i]:[];return W(o,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates}})}function m(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function g(e,t,n,i,o,r){var a,s,l,u,c;for(t=t||[],u=t.length,a=0;u>a;a++)s=t[a],l=s.aggregate,c=s.field,e[c]=e[c]||{},r[c]=r[c]||{},r[c][l]=r[c][l]||{},e[c][l]=X[l.toLowerCase()](e[c][l],n,_e.accessor(c),i,o,r[c][l])}function v(e){return"number"==typeof e&&!isNaN(e)}function _(e){return e&&e.getTime}function b(e){var t,n=e.length,i=Array(n);for(t=0;n>t;t++)i[t]=e[t].toJSON();return i}function w(e,t,n,i,o){var r,a,s,l,u,c={};for(l=0,u=e.length;u>l;l++){r=e[l];for(a in t)s=o[a],s&&s!==a&&(c[s]||(c[s]=_e.setter(s)),c[s](r,t[a](r)),delete r[a])}}function k(e,t,n,i,o){var r,a,s,l,u;for(l=0,u=e.length;u>l;l++){r=e[l];for(a in t)r[a]=n._parse(a,t[a](r)),s=o[a],s&&s!==a&&delete r[s]}}function y(e,t,n,i,o){var r,a,s,l;for(a=0,l=e.length;l>a;a++)r=e[a],s=i[r.field],s&&s!=r.field&&(r.field=s),r.value=n._parse(r.field,r.value),r.hasSubgroups?y(r.items,t,n,i,o):k(r.items,t,n,i,o)}function x(e,t,n,i,o,r){return function(a){return a=e(a),a&&!pe(i)&&("[object Array]"===Ge.call(a)||a instanceof Xe||(a=[a]),n(a,i,new t,o,r)),a||[]}}function C(e,t,n,i){for(var o,r,a,s=0;t.length&&i&&(o=t[s],r=o.items,a=r.length,e&&e.field===o.field&&e.value===o.value?(e.hasSubgroups&&e.items.length?C(e.items[e.items.length-1],o.items,n,i):(r=r.slice(n,n+i),e.items=e.items.concat(r)),t.splice(s--,1)):o.hasSubgroups&&r.length?(C(o,r,n,i),o.items.length||t.splice(s--,1)):(r=r.slice(n,n+i),o.items=r,o.items.length||t.splice(s--,1)),0===r.length?n-=a:(n=0,i-=r.length),!(++s>=t.length)););t.length>s&&t.splice(s,t.length-s)}function T(e){var t,n,i,o,r,a=[];for(t=0,n=e.length;n>t;t++)if(r=e.at(t),r.hasSubgroups)a=a.concat(T(r.items));else for(i=r.items,o=0;i.length>o;o++)a.push(i.at(o));return a}function S(e,t){var n,i,o;if(t)for(n=0,i=e.length;i>n;n++)o=e.at(n),o.hasSubgroups?S(o.items,t):o.items=new U(o.items,t)}function D(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n].hasSubgroups){if(D(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function F(e,t,n,i){for(var o=0;e.length>o&&e[o].data!==t&&!E(e[o].data,n,i);o++);}function E(e,t,n){for(var i=0,o=e.length;o>i;i++){if(e[i]&&e[i].hasSubgroups)return E(e[i].items,t,n);if(e[i]===t||e[i]===n)return e[i]=n,!0}}function I(e,n,i,o,r){var a,s,l,u;for(a=0,s=e.length;s>a;a++)if(l=e[a],l&&!(l instanceof o))if(l.hasSubgroups===t||r){for(u=0;n.length>u;u++)if(n[u]===l){e[a]=n.at(u),F(i,n,l,e[a]);break}}else I(l.items,n,i,o,r)}function P(e,t){var n,i,o;for(n=0,i=e.length;i>n;n++)if(o=e.at(n),o.uid==t.uid)return e.splice(n,1),o}function A(e,t){return t?H(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function M(e,t){return t?H(e,function(e){return e.uid==t.uid}):-1}function H(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(t(e[n]))return n;return-1}function O(e,t){var n,i;return e&&!pe(e)?(n=e[t],i=de(n)?n.from||n.field||t:e[t]||t,be(i)?t:i):t}function z(e,t){var n,i,o,r={};for(o in e)"filters"!==o&&(r[o]=e[o]);if(e.filters)for(r.filters=[],n=0,i=e.filters.length;i>n;n++)r.filters[n]=z(e.filters[n],t);else r.field=O(t.fields,r.field);return r}function V(e,t){var n,i,o,r,a,s=[];for(n=0,i=e.length;i>n;n++){o={},r=e[n];for(a in r)o[a]=r[a];o.field=O(t.fields,o.field),o.aggregates&&he(o.aggregates)&&(o.aggregates=V(o.aggregates,t)),s.push(o)}return s}function B(t,n){var i,o,r,a,s,l,u,c,d,p;for(t=e(t)[0],i=t.options,o=n[0],r=n[1],a=[],s=0,l=i.length;l>s;s++)d={},c=i[s],u=c.parentNode,u===t&&(u=null),c.disabled||u&&u.disabled||(u&&(d.optgroup=u.label),d[o.field]=c.text,p=c.attributes.value,p=p&&p.specified?c.value:c.text,d[r.field]=p,a.push(d));return a}function L(t,n){var i,o,r,a,s,l,u,c=e(t)[0].tBodies[0],d=c?c.rows:[],p=n.length,h=[];for(i=0,o=d.length;o>i;i++){for(s={},u=!0,a=d[i].cells,r=0;p>r;r++)l=a[r],"th"!==l.nodeName.toLowerCase()&&(u=!1,s[n[r].field]=l.innerHTML);u||h.push(s)}return h}function R(e){return function(){var t=this._data,n=ie.fn[e].apply(this,qe.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),n}}function N(t,n){function i(e,t){return e.filter(t).add(e.find(t))}var o,r,a,s,l,u,c,d,p=e(t).children(),h=[],f=n[0].field,m=n[1]&&n[1].field,g=n[2]&&n[2].field,v=n[3]&&n[3].field;for(o=0,r=p.length;r>o;o++)a={_loaded:!0},s=p.eq(o),u=s[0].firstChild,d=s.children(),t=d.filter("ul"),d=d.filter(":not(ul)"),l=s.attr("data-id"),l&&(a.id=l),u&&(a[f]=3==u.nodeType?u.nodeValue:d.text()),m&&(a[m]=i(d,"a").attr("href")),v&&(a[v]=i(d,"img").attr("src")),g&&(c=i(d,".k-sprite").prop("className"),a[g]=c&&e.trim(c.replace("k-sprite",""))),t.length&&(a.items=N(t.eq(0),n)),"true"==s.attr("data-hasChildren")&&(a.hasChildren=!0),h.push(a);return h}var W,U,j,q,$,G,Y,Q,K,J,X,Z,ee,te,ne,ie,oe,re,ae,se,le,ue=e.extend,ce=e.proxy,de=e.isPlainObject,pe=e.isEmptyObject,he=e.isArray,fe=e.grep,me=e.ajax,ge=e.each,ve=e.noop,_e=window.kendo,be=_e.isFunction,we=_e.Observable,ke=_e.Class,ye="string",xe="function",Ce="create",Te="read",Se="update",De="destroy",Fe="change",Ee="sync",Ie="get",Pe="error",Ae="requestStart",Me="progress",He="requestEnd",Oe=[Ce,Te,Se,De],ze=function(e){return e},Ve=_e.getter,Be=_e.stringify,Le=Math,Re=[].push,Ne=[].join,We=[].pop,Ue=[].splice,je=[].shift,qe=[].slice,$e=[].unshift,Ge={}.toString,Ye=_e.support.stableSort,Qe=/^\/Date\((.*?)\)\/$/,Ke=/(\r+|\n+)/g,Je=/(?=['\\])/g,Xe=we.extend({init:function(e,t){var n=this;n.type=t||j,we.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},at:function(e){return this[e]},toJSON:function(){var e,t,n=this.length,i=Array(n);for(e=0;n>e;e++)t=this[e],t instanceof j&&(t=t.toJSON()),i[e]=t;return i},parent:ve,wrapAll:function(e,t){var n,i,o=this,r=function(){return o};for(t=t||[],n=0,i=e.length;i>n;n++)t[n]=o.wrap(e[n],r);return t},wrap:function(e,t){var n,i=this;return null!==e&&"[object Object]"===Ge.call(e)&&(n=e instanceof i.type||e instanceof G,n||(e=e instanceof j?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(Fe,function(e){i.trigger(Fe,{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,n=this.wrapAll(arguments);return e=Re.apply(this,n),this.trigger(Fe,{action:"add",index:t,items:n}),e},slice:qe,sort:[].sort,join:Ne,pop:function(){var e=this.length,t=We.apply(this);return e&&this.trigger(Fe,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,o,r,a=this.wrapAll(qe.call(arguments,2));if(i=Ue.apply(this,[e,t].concat(a)),i.length)for(this.trigger(Fe,{action:"remove",index:e,items:i}),o=0,r=i.length;r>o;o++)i[o]&&i[o].children&&i[o].unbind(Fe);return n&&this.trigger(Fe,{action:"add",index:e,items:a}),i},shift:function(){var e=this.length,t=je.apply(this);return e&&this.trigger(Fe,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=$e.apply(this,t),this.trigger(Fe,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1},forEach:function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)},map:function(e){for(var t=0,n=[],i=this.length;i>t;t++)n[t]=e(this[t],t,this);return n},reduce:function(e){var t,n=0,i=this.length;for(2==arguments.length?t=arguments[1]:i>n&&(t=this[n++]);i>n;n++)t=e(t,this[n],n,this);return t},reduceRight:function(e){var t,n=this.length-1;for(2==arguments.length?t=arguments[1]:n>0&&(t=this[n--]);n>=0;n--)t=e(t,this[n],n,this);return t},filter:function(e){for(var t,n=0,i=[],o=this.length;o>n;n++)t=this[n],e(t,n,this)&&(i[i.length]=t);return i},find:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return t},every:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],!e(t,n,this))return!1;return!0},some:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);-1!==t&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}});"undefined"!=typeof Symbol&&Symbol.iterator&&!Xe.prototype[Symbol.iterator]&&(Xe.prototype[Symbol.iterator]=[][Symbol.iterator]),U=Xe.extend({init:function(e,t){we.fn.init.call(this),this.type=t||j;for(var n=0;e.length>n;n++)this[n]=e[n];this.length=n,this._parent=ce(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}}),j=we.extend({init:function(e){var t,n,i=this,o=function(){return i};we.fn.init.call(this),this._handlers={};for(n in e)t=e[n],"object"==typeof t&&t&&!t.getTime&&"_"!=n.charAt(0)&&(t=i.wrap(t,n,o)),i[n]=t;i.uid=_e.guid()},shouldSerialize:function(e){return this.hasOwnProperty(e)&&"_handlers"!==e&&"_events"!==e&&typeof this[e]!==xe&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(){var e,t,n={};for(t in this)this.shouldSerialize(t)&&(e=this[t],(e instanceof j||e instanceof Xe)&&(e=e.toJSON()),n[t]=e);return n},get:function(e){var t,n=this;return n.trigger(Ie,{field:e}),t="this"===e?n:_e.getter(e,!0)(n)},_set:function(e,t){var n,i,o,r=this,a=e.indexOf(".")>=0;if(a)for(n=e.split("."),i="";n.length>1;){if(i+=n.shift(),o=_e.getter(i,!0)(r),o instanceof j)return o.set(n.join("."),t),a;i+="."}return _e.setter(e)(r,t),a},set:function(e,t){var n=this,i=!1,o=e.indexOf(".")>=0,r=_e.getter(e,!0)(n);return r!==t&&(r instanceof we&&this._handlers[e]&&(this._handlers[e].get&&r.unbind(Ie,this._handlers[e].get),r.unbind(Fe,this._handlers[e].change)),i=n.trigger("set",{field:e,value:t}),i||(o||(t=n.wrap(t,e,function(){return n})),(!n._set(e,t)||e.indexOf("(")>=0||e.indexOf("[")>=0)&&n.trigger(Fe,{field:e}))),i},parent:ve,wrap:function(e,t,i){var o,r,a,s,l=this,u=Ge.call(e);return null==e||"[object Object]"!==u&&"[object Array]"!==u||(a=e instanceof Xe,s=e instanceof ie,"[object Object]"!==u||s||a?("[object Array]"===u||a||s)&&(a||s||(e=new Xe(e)),r=n(l,Fe,t,!1),e.bind(Fe,r),l._handlers[t]={change:r}):(e instanceof j||(e=new j(e)),o=n(l,Ie,t,!0),e.bind(Ie,o),r=n(l,Fe,t,!0),e.bind(Fe,r),l._handlers[t]={get:o,change:r}),e.parent=i),e}}),q={number:function(e){return _e.parseFloat(e)},date:function(e){return _e.parseDate(e)},"boolean":function(e){return typeof e===ye?"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return null!=e?e+"":e},"default":function(e){return e}},$={string:"",number:0,date:new Date,"boolean":!1,"default":""},G=j.extend({init:function(n){var i,o,r=this;if((!n||e.isEmptyObject(n))&&(n=e.extend({},r.defaults,n),r._initializers))for(i=0;r._initializers.length>i;i++)o=r._initializers[i],n[o]=r.defaults[o]();j.fn.init.call(r,n),r.dirty=!1,r.idField&&(r.id=r.get(r.idField),r.id===t&&(r.id=r._defaultId))},shouldSerialize:function(e){return j.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"_accessors"!==e},_parse:function(e,t){var n,i=this,r=e,a=i.fields||{};return e=a[e],e||(e=o(a,r)),e&&(n=e.parse,!n&&e.type&&(n=q[e.type.toLowerCase()])),n?n(t):t},_notifyChange:function(e){var t=e.action;("add"==t||"remove"==t)&&(this.dirty=!0)},editable:function(e){return e=(this.fields||{})[e],e?e.editable!==!1:!0},set:function(e,t,n){var o=this,r=o.dirty;o.editable(e)&&(t=o._parse(e,t),i(t,o.get(e))||(o.dirty=!0,j.fn.set.call(o,e,t,n)&&!r&&(o.dirty=r)))},accept:function(e){var t,n,i=this,o=function(){return i};for(t in e)n=e[t],"_"!=t.charAt(0)&&(n=i.wrap(e[t],t,o)),i._set(t,n);i.idField&&(i.id=i.get(i.idField)),i.dirty=!1},isNew:function(){return this.id===this._defaultId}}),G.define=function(e,n){n===t&&(n=e,e=G);var i,o,r,a,s,l,u,c,d=ue({defaults:{}},n),p={},h=d.id,f=[];if(h&&(d.idField=h),d.id&&delete d.id,h&&(d.defaults[h]=d._defaultId=""),"[object Array]"===Ge.call(d.fields)){for(l=0,u=d.fields.length;u>l;l++)r=d.fields[l],typeof r===ye?p[r]={}:r.field&&(p[r.field]=r);d.fields=p}for(o in d.fields)r=d.fields[o],a=r.type||"default",s=null,c=o,o=typeof r.field===ye?r.field:o,r.nullable||(s=d.defaults[c!==o?c:o]=r.defaultValue!==t?r.defaultValue:$[a.toLowerCase()],"function"==typeof s&&f.push(o)),n.id===o&&(d._defaultId=s),d.defaults[c!==o?c:o]=s,r.parse=r.parse||q[a];return f.length>0&&(d._initializers=f),i=e.extend(d),i.define=function(e){return G.define(i,e)},d.fields&&(i.fields=d.fields,i.idField=d.idField),i},Y={selector:function(e){return be(e)?e:Ve(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:n>e?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,n){return t(n,e,!0)}:t},combine:function(e){return function(t,n){var i,o,r=e[0](t,n);for(i=1,o=e.length;o>i;i++)r=r||e[i](t,n);return r}}},Q=ue({},Y,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),o=t(n);return i&&i.getTime&&o&&o.getTime&&(i=i.getTime(),o=o.getTime()),i===o?e.__position-n.__position:null==i?-1:null==o?1:i.localeCompare?i.localeCompare(o):i>o?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),o=t(n);return i&&i.getTime&&o&&o.getTime&&(i=i.getTime(),o=o.getTime()),i===o?e.__position-n.__position:null==i?1:null==o?-1:o.localeCompare?o.localeCompare(i):o>i?1:-1}},create:function(e){return this[e.dir](e.field)}}),W=function(e,t){var n,i=e.length,o=Array(i);for(n=0;i>n;n++)o[n]=t(e[n],n,e);return o},K=function(){function e(e){return e.replace(Je,"\\").replace(Ke,"")}function t(t,n,i,o){var r;return null!=i&&(typeof i===ye&&(i=e(i),r=Qe.exec(i),r?i=new Date(+r[1]):o?(i="'"+i.toLowerCase()+"'",n="(("+n+" || '')+'').toLowerCase()"):i="'"+i+"'"),i.getTime&&(n="("+n+"&&"+n+".getTime?"+n+".getTime():"+n+")",i=i.getTime())),n+" "+t+" "+i}return{quote:function(t){return t&&t.getTime?"new Date("+t.getTime()+")":"string"==typeof t?"'"+e(t)+"'":""+t},eq:function(e,n,i){return t("==",e,n,i)},neq:function(e,n,i){return t("!=",e,n,i)},gt:function(e,n,i){return t(">",e,n,i)},gte:function(e,n,i){return t(">=",e,n,i)},lt:function(e,n,i){return t("<",e,n,i)},lte:function(e,n,i){return t("<=",e,n,i)},startswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".lastIndexOf('"+n+"', 0) == 0"},doesnotstartwith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".lastIndexOf('"+n+"', 0) == -1"},endswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"', "+t+".length - "+(n||"").length+") >= 0"},doesnotendwith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"', "+t+".length - "+(n||"").length+") < 0"},contains:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') >= 0"},doesnotcontain:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') == -1"},isempty:function(e){return e+" === ''"},isnotempty:function(e){return e+" !== ''"},isnull:function(e){return"("+e+" === null || "+e+" === undefined)"},isnotnull:function(e){return"("+e+" !== null && "+e+" !== undefined)"}}}(),r.filterExpr=function(e){var n,i,o,a,s,l,u=[],c={and:" && ",or:" || "},d=[],p=[],h=e.filters;for(n=0,i=h.length;i>n;n++)o=h[n],s=o.field,l=o.operator,o.filters?(a=r.filterExpr(o),o=a.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(p.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(d.length+t)+"]"}),p.push.apply(p,a.operators),d.push.apply(d,a.fields)):(typeof s===xe?(a="__f["+d.length+"](d)",d.push(s)):a=_e.expr(s),typeof l===xe?(o="__o["+p.length+"]("+a+", "+K.quote(o.value)+")",p.push(l)):o=K[(l||"eq").toLowerCase()](a,o.value,o.ignoreCase!==t?o.ignoreCase:!0)),u.push(o);return{expression:"("+u.join(c[e.logic])+")",fields:d,operators:p}},J={"==":"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"},r.normalizeFilter=l,r.compareFilters=p,r.prototype={toArray:function(){return this.data},range:function(e,t){return new r(this.data.slice(e,e+t))},skip:function(e){return new r(this.data.slice(e))},take:function(e){return new r(this.data.slice(0,e))},select:function(e){return new r(W(this.data,e))},order:function(e,t){var n={dir:t};return e&&(e.compare?n.compare=e.compare:n.field=e),new r(this.data.slice(0).sort(Y.create(n)))},orderBy:function(e){return this.order(e,"asc")},orderByDescending:function(e){return this.order(e,"desc")},sort:function(e,t,n){var i,o,r=a(e,t),s=[];if(n=n||Y,r.length){for(i=0,o=r.length;o>i;i++)s.push(n.create(r[i]));return this.orderBy({compare:n.combine(s)})}return this},filter:function(e){var t,n,i,o,a,s,u,c,d=this.data,p=[];if(e=l(e),!e||0===e.filters.length)return this;for(o=r.filterExpr(e),s=o.fields,u=o.operators,a=c=Function("d, __f, __o","return "+o.expression),(s.length||u.length)&&(c=function(e){return a(e,s,u)}),t=0,i=d.length;i>t;t++)n=d[t],c(n)&&p.push(n);return new r(p)},group:function(e,t){e=f(e||[]),t=t||this.data;var n,i=this,o=new r(i.data);return e.length>0&&(n=e[0],o=o.groupBy(n).select(function(i){var o=new r(t).filter([{field:i.field,operator:"eq",value:i.value,ignoreCase:!1}]);return{field:i.field,value:i.value,items:e.length>1?new r(i.items).group(e.slice(1),o.toArray()).toArray():i.items,hasSubgroups:e.length>1,aggregates:o.aggregate(n.aggregates)}})),o},groupBy:function(e){if(pe(e)||!this.data.length)return new r([]);var t,n,i,o,a=e.field,s=this._sortForGrouping(a,e.dir||"asc"),l=_e.accessor(a),u=l.get(s[0],a),c={field:a,value:u,items:[]},d=[c];for(i=0,o=s.length;o>i;i++)t=s[i],n=l.get(t,a),m(u,n)||(u=n,c={field:a,value:u,items:[]},d.push(c)),c.items.push(t);return new r(d)},_sortForGrouping:function(e,t){var n,i,o=this.data;if(!Ye){for(n=0,i=o.length;i>n;n++)o[n].__position=n;for(o=new r(o).sort(e,t,Q).toArray(),n=0,i=o.length;i>n;n++)delete o[n].__position;return o}return this.sort(e,t).toArray()},aggregate:function(e){var t,n,i={},o={};if(e&&e.length)for(t=0,n=this.data.length;n>t;t++)g(i,e,this.data[t],t,n,o);return i}},X={sum:function(e,t,n){var i=n.get(t);return v(e)?v(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,n,i,o,r,a){var s=i.get(n);return a.count===t&&(a.count=0),v(e)?v(s)&&(e+=s):e=s,v(s)&&a.count++,o==r-1&&v(e)&&(e/=a.count),e},max:function(e,t,n){var i=n.get(t);return v(e)||_(e)||(e=i),i>e&&(v(i)||_(i))&&(e=i),e},min:function(e,t,n){var i=n.get(t);return v(e)||_(e)||(e=i),e>i&&(v(i)||_(i))&&(e=i),e}},r.process=function(e,n){n=n||{};var i,o=new r(e),s=n.group,l=f(s||[]).concat(a(n.sort||[])),u=n.filterCallback,c=n.filter,d=n.skip,p=n.take;return c&&(o=o.filter(c),u&&(o=u(o)),i=o.toArray().length),l&&(o=o.sort(l),s&&(e=o.toArray())),d!==t&&p!==t&&(o=o.range(d,p)),s&&(o=o.group(s,e)),{total:i,data:o.toArray()}},Z=ke.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)}}),ee=ke.extend({init:function(e){var t,n=this;e=n.options=ue({},n.options,e),ge(Oe,function(t,n){typeof e[n]===ye&&(e[n]={url:e[n]})}),n.cache=e.cache?te.create(e.cache):{find:ve,add:ve},t=e.parameterMap,be(e.push)&&(n.push=e.push),n.push||(n.push=ze),n.parameterMap=be(t)?t:function(e){var n={};return ge(e,function(e,i){e in t&&(e=t[e],de(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:ze},create:function(e){return me(this.setup(e,Ce))},read:function(n){var i,o,r,a=this,s=a.cache;n=a.setup(n,Te),i=n.success||ve,o=n.error||ve,r=s.find(n.data),r!==t?i(r):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return me(this.setup(e,Se))},destroy:function(e){return me(this.setup(e,De))},setup:function(e,t){e=e||{};var n,i=this,o=i.options[t],r=be(o.data)?o.data(e.data):o.data;return e=ue(!0,{},o,e),n=ue(!0,{},r,e.data),e.data=i.parameterMap(n,t),be(e.url)&&(e.url=e.url(n)),e}}),te=ke.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[Be(e)]=n)},find:function(e){return this._store[Be(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[Be(e)]}}),te.create=function(e){var t={inmemory:function(){return new te}};return de(e)&&be(e.find)?e:e===!0?new te:t[e]()},ne=ke.extend({init:function(e){var t,n,i,o,r,a,s,l,u,c,d,p,h,f=this;e=e||{};for(t in e)n=e[t],f[t]=typeof n===ye?Ve(n):n;o=e.modelBase||G,de(f.model)&&(f.model=i=o.define(f.model)),r=ce(f.data,f),f._dataAccessFunction=r,f.model&&(a=ce(f.groups,f),s=ce(f.serialize,f),l={},u={},c={},d={},p=!1,i=f.model,i.fields&&(ge(i.fields,function(e,t){var n;h=e,de(t)&&t.field?h=t.field:typeof t===ye&&(h=t),de(t)&&t.from&&(n=t.from),p=p||n&&n!==e||h!==e,u[e]=Ve(n||h),c[e]=Ve(e),l[n||h]=e,d[e]=n||h}),!e.serialize&&p&&(f.serialize=x(s,i,w,c,l,d))),f._dataAccessFunction=r,f.data=x(r,i,k,u,l,d),f.groups=x(a,i,y,u,l,d))},errors:function(e){return e?e.errors:null},parse:ze,data:ze,total:function(e){return e.length},groups:ze,aggregates:function(){return{}},serialize:function(e){return e}}),ie=we.extend({init:function(e){var n,i,o,r=this;e&&(i=e.data),e=r.options=ue({},r.options,e),r._map={},r._prefetch={},r._data=[],r._pristineData=[],r._ranges=[],r._view=[],r._pristineTotal=0,r._destroyed=[],r._pageSize=e.pageSize,r._page=e.page||(e.pageSize?1:t),r._sort=a(e.sort),r._filter=l(e.filter),r._group=f(e.group),r._aggregate=e.aggregate,r._total=e.total,r._shouldDetachObservableParents=!0,we.fn.init.call(r),r.transport=oe.create(e,i,r),be(r.transport.push)&&r.transport.push({pushCreate:ce(r._pushCreate,r),pushUpdate:ce(r._pushUpdate,r),pushDestroy:ce(r._pushDestroy,r)}),null!=e.offlineStorage&&("string"==typeof e.offlineStorage?(o=e.offlineStorage,r._storage={getItem:function(){return JSON.parse(localStorage.getItem(o))},setItem:function(e){localStorage.setItem(o,Be(r.reader.serialize(e)))}}):r._storage=e.offlineStorage),r.reader=new _e.data.readers[e.schema.type||"json"](e.schema),n=r.reader.model||{},r._detachObservableParents(),r._data=r._observe(r._data),r._online=!0,r.bind(["push",Pe,Fe,Ae,Ee,He,Me],e)},options:{data:null,schema:{modelBase:G},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1},clone:function(){return this},online:function(n){return n!==t?this._online!=n&&(this._online=n,n)?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},_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 n=this._readData(e);n||(n=e),this[t](n)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return T(e);if(!t)for(var n=0;e.length>n;n++)e.at(n)}return e},parent:ve,get:function(e){var t,n,i=this._flatData(this._data);for(t=0,n=i.length;n>t;t++)if(i[t].id==e)return i[t]},getByUid:function(e){var t,n,i=this._flatData(this._data);if(i)for(t=0,n=i.length;n>t;t++)if(i[t].uid==e)return i[t]},indexOf:function(e){return M(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var n,i=this;if(e===t){
if(i._data)for(n=0;i._data.length>n;n++)i._data.at(n);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,n=this;return I(e,n._data,n._ranges,n.reader.model||j,n._isServerGrouped()),t=new U(e,n.reader.model),t.parent=function(){return n.parent()},t},flatView:function(){var e=this.group()||[];return e.length?T(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 j?e:new j(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof G||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),t},pushCreate:function(e){var t,n,i,o,r,a;he(e)||(e=[e]),t=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(i=0;e.length>i;i++)o=e[i],r=this.add(o),t.push(r),a=r.toJSON(),this._isServerGrouped()&&(a=this._wrapInEmptyGroup(a)),this._pristineData.push(a)}finally{this.options.autoSync=n}t.length&&this.trigger("push",{type:"create",items:t})},pushUpdate:function(e){var t,n,i,o,r;for(he(e)||(e=[e]),t=[],n=0;e.length>n;n++)i=e[n],o=this._createNewModel(i),r=this.get(o.id),r?(t.push(r),r.accept(i),r.trigger(Fe),this._updatePristineForModel(r,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){var t,n,i,o,r,a;he(e)||(e=[e]),t=[],n=this.options.autoSync,this.options.autoSync=!1;try{for(i=0;e.length>i;i++)o=e[i],r=this._createNewModel(o),a=!1,this._eachItem(this._data,function(e){var n,i;for(n=0;e.length>n;n++)if(i=e.at(n),i.id===r.id){t.push(i),e.splice(n,1),a=!0;break}}),a&&(this._removePristineForModel(r),this._destroyed.pop())}finally{this.options.autoSync=n}return t},remove:function(e){var n,i=this,o=i._isServerGrouped();return this._eachItem(i._data,function(r){return n=P(r,e),n&&o?(n.isNew&&n.isNew()||i._destroyed.push(n),!0):t}),this._removeModelFromRanges(e),this._updateRangesLength(),e},destroyed:function(){return this._destroyed},created:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&i[e].isNew()&&n.push(i[e]);return n},updated:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&n.push(i[e]);return n},sync:function(){var t,n=this,i=[],o=[],r=n._destroyed,a=e.Deferred().resolve().promise();if(n.online()){if(!n.reader.model)return a;i=n.created(),o=n.updated(),t=[],n.options.batch&&n.transport.submit?t=n._sendSubmit(i,o,r):(t.push.apply(t,n._send("create",i)),t.push.apply(t,n._send("update",o)),t.push.apply(t,n._send("destroy",r))),a=e.when.apply(null,t).then(function(){var e,t;for(e=0,t=arguments.length;t>e;e++)n._accept(arguments[e]);n._storeData(!0),n._change({action:"sync"}),n.trigger(Ee)})}else n._storeData(!0),n._change({action:"sync"});return a},cancelChanges:function(e){var t=this;e instanceof _e.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),t._change(),t._markOfflineUpdatesAsDirty())},_markOfflineUpdatesAsDirty:function(){var e=this;null!=e.options.offlineStorage&&e._eachItem(e._data,function(e){var t,n;for(t=0;e.length>t;t++)n=e.at(t),("update"==n.__state__||"create"==n.__state__)&&(n.dirty=!0)})},hasChanges:function(){var e,t,n=this._flatData(this._data);if(this._destroyed.length)return!0;for(e=0,t=n.length;t>e;e++)if(n[e].isNew&&n[e].isNew()||n[e].dirty)return!0;return!1},_accept:function(t){var n,i=this,o=t.models,r=t.response,a=0,s=i._isServerGrouped(),l=i._pristineData,u=t.type;if(i.trigger(He,{response:r,type:u}),r&&!pe(r)){if(r=i.reader.parse(r),i._handleCustomErrors(r))return;r=i.reader.data(r),he(r)||(r=[r])}else r=e.map(o,function(e){return e.toJSON()});for("destroy"===u&&(i._destroyed=[]),a=0,n=o.length;n>a;a++)"destroy"!==u?(o[a].accept(r[a]),"create"===u?l.push(s?i._wrapInEmptyGroup(o[a]):r[a]):"update"===u&&i._updatePristineForModel(o[a],r[a])):i._removePristineForModel(o[a])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,n){_e.deepExtend(n[e],t)})},_executeOnPristineForModel:function(e,n){this._eachPristineItem(function(i){var o=A(i,e);return o>-1?(n(o,i),!0):t})},_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){this._eachItem(this._pristineData,e)},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?D(e,t):t(e))},_pristineForModel:function(e){var n,i,o=function(o){return i=A(o,e),i>-1?(n=o[i],!0):t};return this._eachPristineItem(o),n},_cancelModel:function(e){var t=this._pristineForModel(e);this._eachItem(this._data,function(n){var i=M(n,e);i>=0&&(!t||e.isNew()&&!t.__state__?n.splice(i,1):(n[i].accept(t),"update"==t.__state__&&(n[i].dirty=!0)))})},_submit:function(t,n){var i=this;i.trigger(Ae,{type:"submit"}),i.transport.submit(ue({success:function(n,i){var o=e.grep(t,function(e){return e.type==i})[0];o&&o.resolve({response:n,models:o.models,type:i})},error:function(e,n,o){for(var r=0;t.length>r;r++)t[r].reject(e);i.error(e,n,o)}},n))},_sendSubmit:function(t,n,i){var o=this,r=[];return o.options.batch&&(t.length&&r.push(e.Deferred(function(e){e.type="create",e.models=t})),n.length&&r.push(e.Deferred(function(e){e.type="update",e.models=n})),i.length&&r.push(e.Deferred(function(e){e.type="destroy",e.models=i})),o._submit(r,{data:{created:o.reader.serialize(b(t)),updated:o.reader.serialize(b(n)),destroyed:o.reader.serialize(b(i))}})),r},_promise:function(t,n,i){var o=this;return e.Deferred(function(e){o.trigger(Ae,{type:i}),o.transport[i].call(o.transport,ue({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),o.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,o=this,r=[],a=o.reader.serialize(b(t));if(o.options.batch)t.length&&r.push(o._promise({data:{models:a}},t,e));else for(n=0,i=t.length;i>n;n++)r.push(o._promise({data:a[n]},[t[n]],e));return r},read:function(t){var n=this,i=n._params(t),o=e.Deferred();return n._queueRequest(i,function(){var e=n.trigger(Ae,{type:"read"});e?(n._dequeueRequest(),o.resolve(e)):(n.trigger(Me),n._ranges=[],n.trigger("reset"),n.online()?n.transport.read({data:i,success:function(e){n._ranges=[],n.success(e,i),o.resolve()},error:function(){var e=qe.call(arguments);n.error.apply(n,e),o.reject.apply(o,e)}}):null!=n.options.offlineStorage&&(n.success(n.offlineData(),i),o.resolve()))}),o.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var n,i,o,r,a,s,l,u,c=this,d=c.options;if(c.trigger(He,{response:e,type:"read"}),c.online()){if(e=c.reader.parse(e),c._handleCustomErrors(e))return c._dequeueRequest(),t;c._total=c.reader.total(e),c._aggregate&&d.serverAggregates&&(c._aggregateResult=c._readAggregates(e)),e=c._readData(e),c._destroyed=[]}else{for(e=c._readData(e),n=[],i={},o=c.reader.model,r=o?o.idField:"id",a=0;this._destroyed.length>a;a++)s=this._destroyed[a][r],i[s]=s;for(a=0;e.length>a;a++)l=e[a],u=l.__state__,"destroy"==u?i[l[r]]||this._destroyed.push(this._createNewModel(l)):n.push(l);e=n,c._total=e.length}c._pristineTotal=c._total,c._pristineData=e.slice(0),c._detachObservableParents(),c._data=c._observe(e),c._markOfflineUpdatesAsDirty(),c._storeData(),c._addRange(c._data),c._process(c._data),c._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;this._data.length>e;e++)this._data[e].parent&&(this._data[e].parent=ve)},_storeData:function(e){function t(e){var n,i,o,r=[];for(n=0;e.length>n;n++)i=e.at(n),o=i.toJSON(),a&&i.items?o.items=t(i.items):(o.uid=i.uid,s&&(i.isNew()?o.__state__="create":i.dirty&&(o.__state__="update"))),r.push(o);return r}var n,i,o,r,a=this._isServerGrouped(),s=this.reader.model;if(null!=this.options.offlineStorage){for(n=t(this._data),i=[],o=0;this._destroyed.length>o;o++)r=this._destroyed[o].toJSON(),r.__state__="destroy",i.push(r);this.offlineData(n.concat(i)),e&&(this._pristineData=this._readData(n))}},_addRange:function(e){var t=this,n=t._skip||0,i=n+t._flatData(e,!0).length;t._ranges.push({start:n,end:i,data:e,timestamp:(new Date).getTime()}),t._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,n){this._dequeueRequest(),this.trigger(He,{}),this.trigger(Pe,{xhr:e,status:t,errorThrown:n})},_params:function(e){var t=this,n=ue({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping?t.reader.model&&n.group&&(n.group=V(n.group,t.reader.model)):delete n.group,t.options.serverFiltering?t.reader.model&&n.filter&&(n.filter=z(n.filter,t.reader.model)):delete n.filter,t.options.serverSorting?t.reader.model&&n.sort&&(n.sort=V(n.sort,t.reader.model)):delete n.sort,t.options.serverAggregates?t.reader.model&&n.aggregate&&(n.aggregate=V(n.aggregate,t.reader.model)):delete n.aggregate,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={callback:ce(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_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(Pe,{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):!1},_observe:function(e){var t,n=this,i=n.reader.model;return n._shouldDetachObservableParents=!0,e instanceof Xe?(n._shouldDetachObservableParents=!1,n._shouldWrap(e)&&(e.type=n.reader.model,e.wrapAll(e,e))):(t=n.pageSize()&&!n.options.serverPaging?U:Xe,e=new t(e,n.reader.model),e.parent=function(){return n.parent()}),n._isServerGrouped()&&S(e,i),n._changeHandler&&n._data&&n._data instanceof Xe?n._data.unbind(Fe,n._changeHandler):n._changeHandler=ce(n._change,n),e.bind(Fe,n._changeHandler)},_updateTotalForAction:function(e,t){var n=this,i=parseInt(n._total,10);v(n._total)||(i=parseInt(n._pristineTotal,10)),"add"===e?i+=t.length:"remove"===e?i-=t.length:"itemchange"===e||"sync"===e||n.options.serverPaging?"sync"===e&&(i=n._pristineTotal=parseInt(n._total,10)):i=n._pristineTotal,n._total=i},_change:function(e){var t,n,i,o=this,r=e?e.action:"";if("remove"===r)for(t=0,n=e.items.length;n>t;t++)e.items[t].isNew&&e.items[t].isNew()||o._destroyed.push(e.items[t]);!o.options.autoSync||"add"!==r&&"remove"!==r&&"itemchange"!==r?(o._updateTotalForAction(r,e?e.items:[]),o._process(o._data,e)):(i=function(t){"sync"===t.action&&(o.unbind("change",i),o._updateTotalForAction(r,e.items))},o.first("change",i),o.sync())},_calculateAggregates:function(e,t){t=t||{};var n=new r(e),i=t.aggregate,o=t.filter;return o&&(n=n.filter(o)),n.aggregate(i)},_process:function(e,n){var i,o=this,r={};o.options.serverPaging!==!0&&(r.skip=o._skip,r.take=o._take||o._pageSize,r.skip===t&&o._page!==t&&o._pageSize!==t&&(r.skip=(o._page-1)*o._pageSize)),o.options.serverSorting!==!0&&(r.sort=o._sort),o.options.serverFiltering!==!0&&(r.filter=o._filter),o.options.serverGrouping!==!0&&(r.group=o._group),o.options.serverAggregates!==!0&&(r.aggregate=o._aggregate,o._aggregateResult=o._calculateAggregates(e,r)),i=o._queryProcess(e,r),o.view(i.data),i.total===t||o.options.serverFiltering||(o._total=i.total),n=n||{},n.items=n.items||o._view,o.trigger(Fe,n)},_queryProcess:function(e,t){return r.process(e,t)},_mergeState:function(e){var n=this;return e!==t&&(n._pageSize=e.pageSize,n._page=e.page,n._sort=e.sort,n._filter=e.filter,n._group=e.group,n._aggregate=e.aggregate,n._skip=n._currentRangeStart=e.skip,n._take=e.take,n._skip===t&&(n._skip=n._currentRangeStart=n.skip(),e.skip=n.skip()),n._take===t&&n._pageSize!==t&&(n._take=n._pageSize,e.take=n._take),e.sort&&(n._sort=e.sort=a(e.sort)),e.filter&&(n._filter=e.filter=l(e.filter)),e.group&&(n._group=e.group=f(e.group)),e.aggregate&&(n._aggregate=e.aggregate=h(e.aggregate))),e},query:function(n){var i,o,r=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return r||(this._data===t||0===this._data.length)&&!this._destroyed.length?this.read(this._mergeState(n)):(o=this.trigger(Ae,{type:"read"}),o||(this.trigger(Me),i=this._queryProcess(this._data,this._mergeState(n)),this.options.serverFiltering||(this._total=i.total!==t?i.total:this._data.length),this._aggregateResult=this._calculateAggregates(this._data,n),this.view(i.data),this.trigger(He,{type:"read"}),this.trigger(Fe,{items:i.data})),e.Deferred().resolve(o).promise())},fetch:function(e){var t=this,n=function(n){n!==!0&&be(e)&&e.call(t)};return this._query().then(n)},_query:function(e){var t=this;return t.query(ue({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var n=this,i=n.page(),o=n.total();return e=e||{},!i||o&&i+1>n.totalPages()?t:(n._skip=n._currentRangeStart=i*n.take(),i+=1,e.page=i,n._query(e),i)},prev:function(e){var n=this,i=n.page();return e=e||{},i&&1!==i?(n._skip=n._currentRangeStart=n._skip-n.take(),i-=1,e.page=i,n._query(e),i):t},page:function(e){var n,i=this;return e!==t?(e=Le.max(Le.min(Le.max(e,1),i.totalPages()),1),i._query({page:e}),t):(n=i.skip(),n!==t?Le.round((n||0)/(i.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query({pageSize:e,page:1}),t):n.take()},sort:function(e){var n=this;return e!==t?(n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n.trigger("reset"),n._query({filter:e,page:1}),t)},group:function(e){var n=this;return e!==t?(n._query({group:e}),t):n._group},total:function(){return parseInt(this._total||0,10)},aggregate:function(e){var n=this;return e!==t?(n._query({aggregate:e}),t):n._aggregate},aggregates:function(){var e=this._aggregateResult;return pe(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t,n,i={};if(!pe(e))for(t={},he(e)||(e=[e]),n=0;e.length>n;n++)t[e[n].aggregate]=0,i[e[n].field]=t;return i},_wrapInEmptyGroup:function(e){var t,n,i,o,r=this.group();for(i=r.length-1,o=0;i>=o;i--)n=r[i],t={value:e.get(n.field),field:n.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(n.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total();return Le.ceil((e.total()||0)/t)},inRange:function(e,t){var n=this,i=Le.min(e+t,n.total());return!n.options.serverPaging&&n._data.length>0?!0:n._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,n){var i,o,r,a,s,l,u,c;if(this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,e=Le.min(e||0,this.total()),i=this,o=Le.max(Le.floor(e/n),0)*n,r=Le.min(o+n,i.total()),a=i._findRange(e,Le.min(e+n,i.total())),a.length){i._pending=t,i._skip=e>i.skip()?Le.min(r,(i.totalPages()-1)*i.take()):o,i._currentRangeStart=e,i._take=n,s=i.options.serverPaging,l=i.options.serverSorting,u=i.options.serverFiltering,c=i.options.serverAggregates;try{i.options.serverPaging=!0,i._isServerGrouped()||i.group()&&i.group().length||(i.options.serverSorting=!0),i.options.serverFiltering=!0,i.options.serverPaging=!0,i.options.serverAggregates=!0,s&&(i._detachObservableParents(),i._data=a=i._observe(a)),i._process(a)}finally{i.options.serverPaging=s,i.options.serverSorting=l,i.options.serverFiltering=u,i.options.serverAggregates=c}}else n!==t&&(i._rangeExists(o,r)?e>o&&i.prefetch(r,n,function(){i.range(e,n)}):i.prefetch(o,n,function(){e>o&&r<i.total()&&!i._rangeExists(r,Le.min(r+n,i.total()))?i.prefetch(r,n,function(){i.range(e,n)}):i.range(e,n)}))},_findRange:function(e,n){var i,o,r,s,l,u,c,d,p,h,m,g,v=this,_=v._ranges,b=[],w=v.options,k=w.serverSorting||w.serverPaging||w.serverFiltering||w.serverGrouping||w.serverAggregates;for(o=0,m=_.length;m>o;o++)if(i=_[o],e>=i.start&&i.end>=e){for(h=0,r=o;m>r;r++)if(i=_[r],p=v._flatData(i.data,!0),p.length&&e+h>=i.start&&(u=i.data,c=i.end,k||(g=f(v.group()||[]).concat(a(v.sort()||[])),d=v._queryProcess(i.data,{sort:g,filter:v.filter()}),p=u=d.data,d.total!==t&&(c=d.total)),s=0,e+h>i.start&&(s=e+h-i.start),l=p.length,c>n&&(l-=c-n),h+=l-s,b=v._mergeGroups(b,u,s,l),i.end>=n&&h==n-e))return b;break}return[]},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var o,r=t.toJSON();return e.length&&(o=e[e.length-1]),C(o,r,n,i),e.concat(r)}return e.concat(t.slice(n,i))},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,n,i){var o=this,r=o._timeStamp();return function(a){var s,l,u,c=!1,d={start:e,end:t,data:[],timestamp:o._timeStamp()};if(o._dequeueRequest(),o.trigger(He,{response:a,type:"read"}),a=o.reader.parse(a),u=o._readData(a),u.length){for(s=0,l=o._ranges.length;l>s;s++)if(o._ranges[s].start===e){c=!0,d=o._ranges[s];break}c||o._ranges.push(d)}d.data=o._observe(u),d.end=d.start+o._flatData(d.data,!0).length,o._ranges.sort(function(e,t){return e.start-t.start}),o._total=o.reader.total(a),(i||r>=o._currentRequestTimeStamp||!o._skipRequestsInProgress)&&(n&&u.length?n():o.trigger(Fe,{}))}},prefetch:function(e,t,n){var i=this,o=Le.min(e+t,i.total()),r={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,o)?n&&n():(clearTimeout(i._timeout),i._timeout=setTimeout(function(){i._queueRequest(r,function(){i.trigger(Ae,{type:"read"})?i._dequeueRequest():i.transport.read({data:i._params(r),success:i._prefetchSuccessHandler(e,o,n),error:function(){var e=qe.call(arguments);i.error.apply(i,e)}})})},100))},_multiplePrefetch:function(e,t,n){var i=this,o=Le.min(e+t,i.total()),r={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,o)?n&&n():i.trigger(Ae,{type:"read"})||i.transport.read({data:i._params(r),success:i._prefetchSuccessHandler(e,o,n,!0)})},_rangeExists:function(e,t){var n,i,o=this,r=o._ranges;for(n=0,i=r.length;i>n;n++)if(e>=r[n].start&&r[n].end>=t)return!0;return!1},_removeModelFromRanges:function(e){var t,n,i,o,r;for(o=0,r=this._ranges.length;r>o&&(i=this._ranges[o],this._eachItem(i.data,function(i){t=P(i,e),t&&(n=!0)}),!n);o++);},_updateRangesLength:function(){var e,t,n,i,o=0;for(n=0,i=this._ranges.length;i>n;n++)e=this._ranges[n],e.start=e.start-o,t=this._flatData(e.data,!0).length,o=e.end-t,e.end=e.start+t}}),oe={},oe.create=function(t,n,i){var o,r=t.transport?e.extend({},t.transport):null;return r?(r.read=typeof r.read===ye?{url:r.read}:r.read,"jsdo"===t.type&&(r.dataSource=i),t.type&&(_e.data.transports=_e.data.transports||{},_e.data.schemas=_e.data.schemas||{},_e.data.transports[t.type]?de(_e.data.transports[t.type])?r=ue(!0,{},_e.data.transports[t.type],r):o=new _e.data.transports[t.type](ue(r,{data:n})):_e.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=ue(!0,{},_e.data.schemas[t.type],t.schema)),o||(o=be(r.read)?r:new ee(r))):o=new Z({data:t.data||[]}),o},ie.create=function(e){(he(e)||e instanceof Xe)&&(e={data:e});var n,i,o,r=e||{},a=r.data,s=r.fields,l=r.table,u=r.select,c={};if(a||!s||r.transport||(l?a=L(l,s):u&&(a=B(u,s),r.group===t&&a[0]&&a[0].optgroup!==t&&(r.group="optgroup"))),_e.data.Model&&s&&(!r.schema||!r.schema.model)){for(n=0,i=s.length;i>n;n++)o=s[n],o.type&&(c[o.field]=o);pe(c)||(r.schema=ue(!0,r.schema,{model:{fields:c}}))}return r.data=a,u=null,r.select=null,l=null,r.table=null,r instanceof ie?r:new ie(r)},re=G.define({idField:"id",init:function(e){var t=this,n=t.hasChildren||e&&e.hasChildren,i="items",o={};_e.data.Model.fn.init.call(t,e),typeof t.children===ye&&(i=t.children),o={schema:{data:i,model:{hasChildren:n,id:t.idField,fields:t.fields}}},typeof t.children!==ye&&ue(o,t.children),o.data=e,n||(n=o.schema.data),typeof n===ye&&(n=_e.getter(n)),be(n)&&(t.hasChildren=!!n.call(t,t)),t._childrenOptions=o,t.hasChildren&&t._initChildren(),t._loaded=!(!e||!e._loaded)},_initChildren:function(){var e,t,n,i=this;i.children instanceof ae||(e=i.children=new ae(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||"id"]=i.id,n&&(e=n(e,t)),e},e.parent=function(){return i},e.bind(Fe,function(e){e.node=e.node||i,i.trigger(Fe,e)}),e.bind(Pe,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(Pe,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 n,i,o={},r="_query";return this.hasChildren?(this._initChildren(),n=this.children,o[this.idField||"id"]=this.id,this._loaded||(n._data=t,r="read"),n.one(Fe,ce(this._childrenLoaded,this)),i=n[r](o)):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 G.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),ae=ie.extend({init:function(e){var t=re.define({children:e});ie.fn.init.call(this,ue(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(Pe,function(t){e.trigger(Pe,t)})},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=ie.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:R("success"),data:R("data"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),ie.fn.insert.call(this,e,t)},_find:function(e,t){var n,i,o,r,a=this._data;if(a){if(o=ie.fn[e].call(this,t))return o;for(a=this._flatData(this._data),n=0,i=a.length;i>n;n++)if(r=a[n].children,r instanceof ae&&(o=r[e](t)))return o}},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}}),ae.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,o=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||o&&(n=N(o,i)),t.data=n,t instanceof ae?t:new ae(t))},se=_e.Observable.extend({init:function(e,t,n){_e.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!n;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 n=this.pageSize,i=!0;return e>=this.total()?(this.trigger("endreached",{index:e}),null):this.useRanges?this.useRanges?((this.dataOffset>e||e>=this.skip+n)&&(i=this.range(Math.floor(e/n)*n)),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,n=e.skip-e.viewSize+t,i=Le.max(Le.floor(n/t),0)*t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e,t){if(this.offset===e)return!0;var n=this,i=this.pageSize,o=Le.max(Le.floor(e/i),0)*i,r=this.dataSource;return t&&(o+=i),r.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):this.prefetch?(r.prefetch(o,i,function(){n.offset=e,n._recalculate(),n._goToRange(e,!0)}),!1):!0},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:n,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,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),le=_e.Observable.extend({init:function(e,t){var n=this;_e.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new se(e,3*t),this.buffer.bind({endreached:function(e){n.trigger("endreached",{index:e.index})},prefetching:function(e){n.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger("reset")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger("resize",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,n,i=this.buffer,o=e*this.batchSize,r=this.batchSize,a=[];for(i.offset>o&&i.at(i.offset-1),n=0;r>n&&(t=i.at(o+n),null!==t);n++)a.push(t);return a},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}}),ue(!0,_e.data,{readers:{json:ne},Query:r,DataSource:ie,HierarchicalDataSource:ae,Node:re,ObservableObject:j,ObservableArray:Xe,LazyObservableArray:U,LocalTransport:Z,RemoteTransport:ee,Cache:te,DataReader:ne,Model:G,Buffer:se,BatchBuffer:le})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.binder.min",["kendo.core.min","kendo.data.min"],e)}(function(){return function(e,t){function n(t,n,i){return v.extend({init:function(e,t,n){var i=this;v.fn.init.call(i,e.element[0],t,n),i.widget=e,i._dataBinding=P(i.dataBinding,i),i._dataBound=P(i.dataBound,i),i._itemChange=P(i.itemChange,i)},itemChange:function(e){a(e.item[0],e.data,this._ns(e.ns),[e.data].concat(this.bindings[t]._parents()))},dataBinding:function(e){var t,n,i=this.widget,o=e.removedItems||i.items();for(t=0,n=o.length;n>t;t++)u(o[t],!1)},_ns:function(t){t=t||C.ui;var n=[C.ui,C.dataviz.ui,C.mobile.ui];return n.splice(e.inArray(t,n),1),n.unshift(t),C.rolesFromNamespaces(n)},dataBound:function(e){var i,o,r,s,l=this.widget,u=e.addedItems||l.items(),c=l[n],d=C.data.HierarchicalDataSource;if(!(d&&c instanceof d)&&u.length)for(r=e.addedDataItems||c.flatView(),s=this.bindings[t]._parents(),i=0,o=r.length;o>i;i++)a(u[i],r[i],this._ns(e.ns),[r[i]].concat(s))},refresh:function(e){var o,r,a,s=this,l=s.widget;e=e||{},e.action||(s.destroy(),l.bind("dataBinding",s._dataBinding),l.bind("dataBound",s._dataBound),l.bind("itemChange",s._itemChange),o=s.bindings[t].get(),l[n]instanceof C.data.DataSource&&l[n]!=o&&(o instanceof C.data.DataSource?l[i](o):o&&o._dataSource?l[i](o._dataSource):(l[n].data(o),r=C.ui.Select&&l instanceof C.ui.Select,a=C.ui.MultiSelect&&l instanceof C.ui.MultiSelect,s.bindings.value&&(r||a)&&l.value(h(s.bindings.value.get(),l.options.dataValueField)))))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}})}function i(e,n){var i=C.initWidget(e,{},n);return i?new k(i):t}function o(e){var t,n,i,r,a,s,l,u={};for(l=e.match(y),t=0,n=l.length;n>t;t++)i=l[t],r=i.indexOf(":"),a=i.substring(0,r),s=i.substring(r+1),"{"==s.charAt(0)&&(s=o(s)),u[a]=s;return u}function r(e,t,n){var i,o={};for(i in e)o[i]=new n(t,e[i]);return o}function a(e,t,n,s){var u,c,d,p,h=e.getAttribute("data-"+C.ns+"role"),v=e.getAttribute("data-"+C.ns+"bind"),_=[],b=!0,k={};if(s=s||[t],(h||v)&&l(e,!1),h&&(d=i(e,n)),v&&(v=o(v.replace(x,"")),d||(k=C.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:L,valuePrimitive:!1,autoBind:!0}),k.roles=n,d=new w(e,k)),d.source=t,c=r(v,s,f),k.template&&(c.template=new g(s,"",k.template)),c.click&&(v.events=v.events||{},v.events.click=v.click,c.click.destroy(),delete c.click),c.source&&(b=!1),v.attr&&(c.attr=r(v.attr,s,f)),v.style&&(c.style=r(v.style,s,f)),v.events&&(c.events=r(v.events,s,m)),v.css&&(c.css=r(v.css,s,f)),d.bind(c)),d&&(e.kendoBindingTarget=d),p=e.children,b&&p){for(u=0;p.length>u;u++)_[u]=p[u];for(u=0;_.length>u;u++)a(_[u],t,n,s)}}function s(t,n){var i,o,r,s=C.rolesFromNamespaces([].slice.call(arguments,2));for(n=C.observable(n),t=e(t),i=0,o=t.length;o>i;i++)r=t[i],1===r.nodeType&&a(r,n,s)}function l(t,n){var i,o=t.kendoBindingTarget;o&&(o.destroy(),V?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null),n&&(i=C.widgetInstance(e(t)),i&&typeof i.destroy===B&&i.destroy())}function u(e,t){l(e,t),c(e,t)}function c(e,t){var n,i,o=e.children;if(o)for(n=0,i=o.length;i>n;n++)u(o[n],t)}function d(t){var n,i;for(t=e(t),n=0,i=t.length;i>n;n++)u(t[n],!1)}function p(e,t){var n=e.element,i=n[0].kendoBindingTarget;i&&s(n,i.source,t)}function h(e,t){var n,i,o=[],r=0;if(!t)return e;if(e instanceof D){for(n=e.length;n>r;r++)i=e[r],o[r]=i.get?i.get(t):i[t];e=o}else e instanceof S&&(e=e.get(t));return e}var f,m,g,v,_,b,w,k,y,x,C=window.kendo,T=C.Observable,S=C.data.ObservableObject,D=C.data.ObservableArray,F={}.toString,E={},I=C.Class,P=e.proxy,A="value",M="source",H="events",O="checked",z="css",V=!0,B="function",L="change";!function(){var e=document.createElement("a");try{delete e.test}catch(t){V=!1}}(),f=T.extend({init:function(e,t){var n=this;T.fn.init.call(n),n.source=e[0],n.parents=e,n.path=t,n.dependencies={},n.dependencies[t]=!0,n.observable=n.source instanceof T,n._access=function(e){n.dependencies[e.field]=!0},n.observable&&(n._change=function(e){n.change(e)},n.source.bind(L,n._change))},_parents:function(){var t,n=this.parents,i=this.get();
return i&&"function"==typeof i.parent&&(t=i.parent(),e.inArray(t,n)<0&&(n=[t].concat(n))),n},change:function(e){var t,n,i=e.field,o=this;if("this"===o.path)o.trigger(L,e);else for(t in o.dependencies)if(0===t.indexOf(i)&&(n=t.charAt(i.length),!n||"."===n||"["===n)){o.trigger(L,e);break}},start:function(e){e.bind("get",this._access)},stop:function(e){e.unbind("get",this._access)},get:function(){var e=this,n=e.source,i=0,o=e.path,r=n;if(!e.observable)return r;for(e.start(e.source),r=n.get(o);r===t&&n;)n=e.parents[++i],n instanceof S&&(r=n.get(o));if(r===t)for(n=e.source;r===t&&n;)n=n.parent(),n instanceof S&&(r=n.get(o));return"function"==typeof r&&(i=o.lastIndexOf("."),i>0&&(n=n.get(o.substring(0,i))),e.start(n),r=n!==e.source?r.call(n,e.source):r.call(n),e.stop(n)),n&&n!==e.source&&(e.currentSource=n,n.unbind(L,e._change).bind(L,e._change)),e.stop(e.source),r},set:function(e){var t=this.currentSource||this.source,n=C.getter(this.path)(t);"function"==typeof n?t!==this.source?n.call(t,this.source,e):n.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(L,this._change),this.currentSource&&this.currentSource.unbind(L,this._change)),this.unbind()}}),m=f.extend({get:function(){var e,t=this.source,n=this.path,i=0;for(e=t.get(n);!e&&t;)t=this.parents[++i],t instanceof S&&(e=t.get(n));return P(e,t)}}),g=f.extend({init:function(e,t,n){var i=this;f.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),v=I.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(L,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}}),_=v.extend({dataType:function(){var e=this.element.getAttribute("data-type")||this.element.type||"text";return e.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(e,t){return"date"==t?e=C.parseDate(e,"yyyy-MM-dd"):"datetime-local"==t?e=C.parseDate(e,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t?e=C.parseFloat(e):"boolean"==t&&(e=e.toLowerCase(),e=null!==C.parseFloat(e)?!!C.parseFloat(e):"true"===e.toLowerCase()),e}}),E.attr=v.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),E.css=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.classes={}},refresh:function(t){var n=e(this.element),i=this.bindings.css[t],o=this.classes[t]=i.get();o?n.addClass(t):n.removeClass(t)}}),E.style=v.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||""}}),E.enabled=v.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),E.readonly=v.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),E.disabled=v.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),E.events=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],o=this.handlers[t];o&&n.off(t,o),o=this.handlers[t]=i.get(),n.on(t,i.source,o)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),E.text=v.extend({refresh:function(){var t=this.bindings.text.get(),n=this.element.getAttribute("data-format")||"";null==t&&(t=""),e(this.element).text(C.toString(t,n))}}),E.visible=v.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),E.invisible=v.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),E.html=v.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),E.value=_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=P(this.change,this),this.eventName=i.valueUpdate||L,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=L,this.bindings[A].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[A].get(),null==e&&(e=""),t=this.dataType(),"date"==t?e=C.toString(e,"yyyy-MM-dd"):"datetime-local"==t&&(e=C.toString(e,"yyyy-MM-ddTHH:mm:ss")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),E.source=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n);var i=this.bindings.source.get();i instanceof C.data.DataSource&&n.autoBind!==!1&&i.fetch()},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof D||n instanceof C.data.DataSource?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,n=this.container().nodeName.toLowerCase();return t||(t="select"==n?e.valueField||e.textField?C.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==n?"<tr><td>#:data#</td></tr>":"ul"==n||"ol"==n?"<li>#:data#</li>":"#:data#",t=C.template(t)),t},add:function(t,n){var i,o,r,s,l=this.container(),u=l.cloneNode(!1),c=l.children[t];if(e(u).html(C.render(this.template(),n)),u.children.length)for(i=this.bindings.source._parents(),o=0,r=n.length;r>o;o++)s=u.children[0],l.insertBefore(s,c||null),a(s,n[o],this.options.roles,[n[o]].concat(i))},remove:function(e,t){var n,i,o=this.container();for(n=0;t.length>n;n++)i=o.children[e],u(i,!0),i.parentNode==o&&o.removeChild(i)},render:function(){var t,n,i,o=this.bindings.source.get(),r=this.container(),s=this.template();if(null!=o)if(o instanceof C.data.DataSource&&(o=o.view()),o instanceof D||"[object Array]"===F.call(o)||(o=[o]),this.bindings.template){if(c(r,!0),e(r).html(this.bindings.template.render(o)),r.children.length)for(t=this.bindings.source._parents(),n=0,i=o.length;i>n;n++)a(r.children[n],o[n],this.options.roles,[o[n]].concat(t))}else e(r).html(C.render(s,o))}}),E.input={checked:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=P(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n,i=this.element,o=this.value();if("radio"==i.type)o=this.parsedValue(),this.bindings[O].set(o);else if("checkbox"==i.type)if(e=this.bindings[O].get(),e instanceof D){if(o=this.parsedValue(),o instanceof Date){for(n=0;e.length>n;n++)if(e[n]instanceof Date&&+e[n]===+o){t=n;break}}else t=e.indexOf(o);t>-1?e.splice(t,1):e.push(o)}else this.bindings[O].set(o)},refresh:function(){var e,t,n=this.bindings[O].get(),i=n,o=this.dataType(),r=this.element;if("checkbox"==r.type)if(i instanceof D){if(e=-1,n=this.parsedValue(),n instanceof Date){for(t=0;i.length>t;t++)if(i[t]instanceof Date&&+i[t]===+n){e=t;break}}else e=i.indexOf(n);r.checked=e>=0}else r.checked=i;else"radio"==r.type&&null!=n&&("date"==o?n=C.toString(n,"yyyy-MM-dd"):"datetime-local"==o&&(n=C.toString(n,"yyyy-MM-ddTHH:mm:ss")),r.checked=r.value===""+n?!0:!1)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(L,this._change)}})},E.select={source:E.source.extend({refresh:function(n){var i,o=this,r=o.bindings.source.get();r instanceof D||r instanceof C.data.DataSource?(n=n||{},"add"==n.action?o.add(n.index,n.items):"remove"==n.action?o.remove(n.index,n.items):("itemchange"==n.action||n.action===t)&&(o.render(),o.bindings.value&&o.bindings.value&&(i=h(o.bindings.value.get(),e(o.element).data("valueField")),null===i?o.element.selectedIndex=-1:o.element.value=i))):o.render()}}),value:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=P(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,n,i,o=this.dataType(),r=[];for(n=0,i=this.element.options.length;i>n;n++)t=this.element.options[n],t.selected&&(e=t.attributes.value,e=e&&e.specified?t.value:t.text,r.push(this._parseValue(e,o)));return r},change:function(){var e,n,i,o,r,a,s,l,u=[],c=this.element,d=this.options.valueField||this.options.textField,p=this.options.valuePrimitive;for(r=0,a=c.options.length;a>r;r++)n=c.options[r],n.selected&&(o=n.attributes.value,o=o&&o.specified?n.value:n.text,u.push(this._parseValue(o,this.dataType())));if(d)for(e=this.bindings.source.get(),e instanceof C.data.DataSource&&(e=e.view()),i=0;u.length>i;i++)for(r=0,a=e.length;a>r;r++)if(s=this._parseValue(e[r].get(d),this.dataType()),l=s+""===u[i]){u[i]=e[r];break}o=this.bindings[A].get(),o instanceof D?o.splice.apply(o,[0,o.length].concat(u)):this.bindings[A].set(p||!(o instanceof S||null===o||o===t)&&d?u[0].get(d):u[0])},refresh:function(){var e,t,n,i=this.element,o=i.options,r=this.bindings[A].get(),a=r,s=this.options.valueField||this.options.textField,l=!1,u=this.dataType();for(a instanceof D||(a=new D([r])),i.selectedIndex=-1,n=0;a.length>n;n++)for(r=a[n],s&&r instanceof S&&(r=r.get(s)),"date"==u?r=C.toString(a[n],"yyyy-MM-dd"):"datetime-local"==u&&(r=C.toString(a[n],"yyyy-MM-ddTHH:mm:ss")),e=0;o.length>e;e++)t=o[e].value,""===t&&""!==r&&(t=o[e].text),null!=r&&t==""+r&&(o[e].selected=!0,l=!0)},destroy:function(){e(this.element).off(L,this._change)}})},E.widget={events:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],n=this.handlers[e];n&&this.widget.unbind(e,n),n=t.get(),this.handlers[e]=function(e){e.data=t.source,n(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e,this._change=P(this.change,this),this.widget.bind(L,this._change)},change:function(){this.bindings[O].set(this.value())},refresh:function(){this.widget.check(this.bindings[O].get()===!0)},value:function(){var e=this.element,t=e.value;return("on"==t||"off"==t)&&(t=e.checked),t},destroy:function(){this.widget.unbind(L,this._change)}}),visible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:v.extend({init:function(e,t,n){v.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:n("source","dataSource","setDataSource"),value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(L,this._change);var o=this.bindings.value.get();this._valueIsObservableObject=!i.valuePrimitive&&(null==o||o instanceof S),this._valueIsObservableArray=o instanceof D,this._initChange=!1},_source:function(){var e;return this.widget.dataItem&&(e=this.widget.dataItem(),e&&e instanceof S)?[e]:(this.bindings.source&&(e=this.bindings.source.get()),(!e||e instanceof C.data.DataSource)&&(e=this.widget.dataSource.flatView()),e)},change:function(){var e,t,n,i,o,r,a,s=this.widget.value(),l=this.options.dataValueField||this.options.dataTextField,u="[object Array]"===F.call(s),c=this._valueIsObservableObject,d=[];if(this._initChange=!0,l)if(""===s&&(c||this.options.valuePrimitive))s=null;else{for(a=this._source(),u&&(t=s.length,d=s.slice(0)),o=0,r=a.length;r>o;o++)if(n=a[o],i=n.get(l),u){for(e=0;t>e;e++)if(i==d[e]){d[e]=n;break}}else if(i==s){s=c?n:i;break}d[0]&&(s=this._valueIsObservableArray?d:c||!l?d[0]:d[0].get(l))}this.bindings.value.set(s),this._initChange=!1},refresh:function(){var e,n,i,o,r,a,s,l,u;if(!this._initChange){if(e=this.widget,n=e.options,i=n.dataTextField,o=n.dataValueField||i,r=this.bindings.value.get(),a=n.text||"",s=0,u=[],r===t&&(r=null),o)if(r instanceof D){for(l=r.length;l>s;s++)u[s]=r[s].get(o);r=u}else r instanceof S&&(a=r.get(i),r=r.get(o));n.autoBind!==!1||n.cascadeFrom||!e.listView||e.listView.bound()?e.value(r):(i!==o||a||(a=r),a||!r&&0!==r||!n.valuePrimitive?e._preselect(r,a):e.value(r))}this._initChange=!1},destroy:function(){this.widget.unbind(L,this._change)}}),gantt:{dependencies:n("dependencies","dependencies","setDependenciesDataSource")},multiselect:{value:v.extend({init:function(t,n,i){v.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(L,this._change),this._initChange=!1},change:function(){var e,n,i,o,r,a,s,l,u,c=this,d=c.bindings[A].get(),p=c.options.valuePrimitive,h=p?c.widget.value():c.widget.dataItems(),f=this.options.dataValueField||this.options.dataTextField;if(h=h.slice(0),c._initChange=!0,d instanceof D){for(e=[],n=h.length,i=0,o=0,r=d[i],a=!1;r!==t;){for(u=!1,o=0;n>o;o++)if(p?a=h[o]==r:(l=h[o],l=l.get?l.get(f):l,a=l==(r.get?r.get(f):r)),a){h.splice(o,1),n-=1,u=!0;break}u?i+=1:(e.push(r),b(d,i,1),s=i),r=d[i]}b(d,d.length,0,h),e.length&&d.trigger("change",{action:"remove",items:e,index:s}),h.length&&d.trigger("change",{action:"add",items:h,index:d.length-1})}else c.bindings[A].set(h);c._initChange=!1},refresh:function(){if(!this._initChange){var e,n,i=this.options,o=this.widget,r=i.dataValueField||i.dataTextField,a=this.bindings.value.get(),s=a,l=0,u=[];if(a===t&&(a=null),r)if(a instanceof D){for(e=a.length;e>l;l++)n=a[l],u[l]=n.get?n.get(r):n;a=u}else a instanceof S&&(a=a.get(r));i.autoBind!==!1||i.valuePrimitive===!0||o._isBound()?o.value(a):o._preselect(s,a)}},destroy:function(){this.widget.unbind(L,this._change)}})},scheduler:{source:n("source","dataSource","setDataSource").extend({dataBound:function(e){var t,n,i,o,r=this.widget,s=e.addedItems||r.items();if(s.length)for(i=e.addedDataItems||r.dataItems(),o=this.bindings.source._parents(),t=0,n=i.length;n>t;t++)a(s[t],i[t],this._ns(e.ns),[i[t]].concat(o))}})}},b=function(e,t,n,i){var o,r,a,s,l;if(i=i||[],n=n||0,o=i.length,r=e.length,a=[].slice.call(e,t+n),s=a.length,o){for(o=t+o,l=0;o>t;t++)e[t]=i[l],l++;e.length=o}else if(n)for(e.length=t,n+=t;n>t;)delete e[--n];if(s){for(s=t+s,l=0;s>t;t++)e[t]=a[l],l++;e.length=s}for(t=e.length;r>t;)delete e[t],t++},w=I.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,n,i,o,r,a,s=this instanceof k,l=this.binders();for(t in e)t==A?n=!0:t==M?i=!0:t!=H||s?t==O?r=!0:t==z?a=!0:this.applyBinding(t,e,l):o=!0;i&&this.applyBinding(M,e,l),n&&this.applyBinding(A,e,l),r&&this.applyBinding(O,e,l),o&&!s&&this.applyBinding(H,e,l),a&&!s&&this.applyBinding(z,e,l)},binders:function(){return E[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,o=n[e]||E[e],r=this.toDestroy,a=t[e];if(o)if(o=new o(this.target,t,this.options),r.push(o),a instanceof f)o.bind(a),r.push(a);else for(i in a)o.bind(a,i),r.push(a[i]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,n=this.toDestroy;for(e=0,t=n.length;t>e;e++)n[e].destroy()}}),k=w.extend({binders:function(){return E.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(e,t,n){var i,o=n[e]||E.widget[e],r=this.toDestroy,a=t[e];if(!o)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(o=new o(this.target,t,this.target.options),r.push(o),a instanceof f)o.bind(a),r.push(a);else for(i in a)o.bind(a,i),r.push(a[i])}}),y=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,x=/\s/g,C.unbind=d,C.bind=s,C.data.binders=E,C.data.Binder=v,C.notify=p,C.observable=function(e){return e instanceof S||(e=new S(e)),e},C.observableHierarchy=function(e){function t(e){var n,i;for(n=0;e.length>n;n++)e[n]._initChildren(),i=e[n].children,i.fetch(),e[n].items=i.data(),t(e[n].items)}var n=C.data.HierarchicalDataSource.create(e);return n.fetch(),t(n.data()),n._data._dataSource=n,n._data}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.fx.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function o(e){var t,n=[];for(t in e)n.push(t);return n}function r(e){for(var t in e)-1!=W.indexOf(t)&&-1==U.indexOf(t)&&delete e[t];return e}function a(e,t){var n,i,o,r,a=[],s={};for(i in t)n=i.toLowerCase(),r=P&&-1!=W.indexOf(n),!E.hasHW3D&&r&&-1==U.indexOf(n)?delete t[i]:(o=t[i],r?a.push(i+"("+o+")"):s[i]=o);return a.length&&(s[se]=a.join(" ")),s}function s(e,t){var i,o,r;return P?(i=e.css(se),i==Q?"scale"==t?1:0:(o=i.match(RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),r=0,o?r=n(o[1]):(o=i.match(z)||[0,0,0,0,0],t=t.toLowerCase(),B.test(t)?r=parseFloat(o[3]/o[2]):"translatey"==t?r=parseFloat(o[4]/o[2]):"scale"==t?r=parseFloat(o[2]):"rotate"==t&&(r=parseFloat(Math.atan2(o[2],o[1])))),r)):parseFloat(e.css(t))}function l(e){return e.charAt(0).toUpperCase()+e.substring(1)}function u(e,t){var n=f.extend(t),i=n.prototype.directions;T[l(e)]=n,T.Element.prototype[e]=function(e,t,i,o){return new n(this.element,e,t,i,o)},S(i,function(t,i){T.Element.prototype[e+l(i)]=function(e,t,o){return new n(this.element,i,e,t,o)}})}function c(e,n,i,o){u(e,{directions:g,startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return this._shouldHide},prepare:function(e,r){var a,s,l=this,u="out"===this._direction,c=l.element.data(n),d=!(isNaN(c)||c==i);a=d?c:t!==this._startValue?this._startValue:u?i:o,s=t!==this._endValue?this._endValue:u?o:i,this._reverse?(e[n]=s,r[n]=a):(e[n]=a,r[n]=s),l._shouldHide=r[n]===o}})}function d(e,t){var n=C.directions[t].vertical,i=e[n?X:J]()/2+"px";return _[t].replace("$size",i)}var p,h,f,m,g,v,_,b,w,k,y,x,C=window.kendo,T=C.effects,S=e.each,D=e.extend,F=e.proxy,E=C.support,I=E.browser,P=E.transforms,A=E.transitions,M={scale:0,scalex:0,scaley:0,scale3d:0},H={translate:0,translatex:0,translatey:0,translate3d:0},O=t!==document.documentElement.style.zoom&&!P,z=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,V=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,B=/translatex?$/i,L=/(zoom|fade|expand)(\w+)/,R=/(zoom|fade|expand)/,N=/[xy]$/i,W=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],U=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],j={rotate:"deg",scale:"",skew:"px",translate:"px"},q=P.css,$=Math.round,G="",Y="px",Q="none",K="auto",J="width",X="height",Z="hidden",ee="origin",te="abortId",ne="overflow",ie="translate",oe="position",re="completeCallback",ae=q+"transition",se=q+"transform",le=q+"backface-visibility",ue=q+"perspective",ce="1500px",de="perspective("+ce+")",pe={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=pe,D(e.fn,{kendoStop:function(e,t){return A?T.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),P&&!A&&(S(U,function(n,i){e.fn[i]=function(n){if(t===n)return s(this,i);var o=e(this)[0],r=i+"("+n+j[i.replace(N,"")]+")";return-1==o.style.cssText.indexOf(se)?e(this).css(se,r):o.style.cssText=o.style.cssText.replace(RegExp(i+"\\(.*?\\)","i"),r),this},e.fx.step[i]=function(t){e(t.elem)[i](t.now)}}),p=e.fx.prototype.cur,e.fx.prototype.cur=function(){return-1!=U.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):p.apply(this,arguments)}),C.toggleClass=function(e,t,n,i){return t&&(t=t.split(" "),A&&(n=D({exclusive:"all",duration:400,ease:"ease-out"},n),e.css(ae,n.exclusive+" "+n.duration+"ms "+n.ease),setTimeout(function(){e.css(ae,"").css(X)},n.duration)),S(t,function(t,n){e.toggleClass(n,i)})),e},C.parseEffects=function(e,t){var n={};return"string"==typeof e?S(e.split(" "),function(e,i){var o=!R.test(i),r=i.replace(L,function(e,t,n){return t+":"+n.toLowerCase()}),a=r.split(":"),s=a[1],l={};a.length>1&&(l.direction=t&&o?pe[s].reverse:s),n[a[0]]=l}):S(e,function(e){var i=this.direction;i&&t&&!R.test(e)&&(this.direction=pe[i].reverse),n[e]=this}),n},A&&D(T,{transition:function(t,n,i){var r,s,l,u,c=0,d=t.data("keys")||[];i=D({duration:200,ease:"ease-out",complete:null,exclusive:"all"},i),l=!1,u=function(){l||(l=!0,s&&(clearTimeout(s),s=null),t.removeData(te).dequeue().css(ae,"").css(ae),i.complete.call(t))},i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,r=a(t,n),e.merge(d,o(r)),t.data("keys",e.unique(d)).height(),t.css(ae,i.exclusive+" "+i.duration+"ms "+i.ease).css(ae),t.css(r).css(se),A.event&&(t.one(A.event,u),0!==i.duration&&(c=500)),s=setTimeout(u,i.duration+c),t.data(te,s),t.data(re,u)},stopQueue:function(e,t,n){var i,o=e.data("keys"),r=!n&&o,a=e.data(re);return r&&(i=C.getComputedStyles(e[0],o)),a&&a(),r&&e.css(i),e.removeData("keys").stop(t)}}),h=C.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,o,s,l,u,c,d=this,p=t.length,h=d.element,f=d.options,m=e.Deferred(),g={},v={};for(d.effects=t,m.then(e.proxy(d,"complete")),h.data("animating",!0),i=0;p>i;i++)for(n=t[i],n.setReverse(f.reverse),n.setOptions(f),d.addRestoreProperties(n.restore),n.prepare(g,v),l=n.children(),o=0,u=l.length;u>o;o++)l[o].duration(f.duration).run();for(c in f.effects)D(v,f.effects[c].properties);for(h.is(":visible")||D(g,{display:h.data("olddisplay")||"block"}),P&&!f.reset&&(s=h.data("targetTransform"),s&&(g=D(s,g))),g=a(h,g),P&&!A&&(g=r(g)),h.css(g).css(se),i=0;p>i;i++)t[i].setup();return f.init&&f.init(),h.data("targetTransform",v),T.animate(h,v,D({},f,{complete:m.resolve})),m.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,n=this.element,i=0,o=e.length;o>i;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},complete:function(){var t=this,n=0,i=t.element,o=t.options,r=t.effects,a=r.length;for(i.removeData("animating").dequeue(),o.hide&&i.data("olddisplay",i.css("display")).hide(),this.restoreCallback(),O&&!P&&setTimeout(e.proxy(this,"restoreCallback"),0);a>n;n++)r[n].teardown();o.completeCallback&&o.completeCallback(i)}}),T.promise=function(e,t){var n,i,o,r=[],a=new h(e,t),s=C.parseEffects(t.effects);t.effects=s;for(o in s)n=T[l(o)],n&&(i=new n(e,s[o].direction),r.push(i));r[0]?a.run(r):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),a.complete())},D(T,{animate:function(n,o,a){var s=a.transition!==!1;delete a.transition,A&&"transition"in T&&s?T.transition(n,o,a):P?n.animate(r(o),{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete}):n.each(function(){var n=e(this),r={};S(W,function(e,a){var s,l,u,c,d,p,h,f=o?o[a]+" ":null;f&&(l=o,a in M&&o[a]!==t?(s=f.match(V),P&&D(l,{scale:+s[0]})):a in H&&o[a]!==t&&(u=n.css(oe),c="absolute"==u||"fixed"==u,n.data(ie)||(c?n.data(ie,{top:i(n,"top")||0,left:i(n,"left")||0,bottom:i(n,"bottom"),right:i(n,"right")}):n.data(ie,{top:i(n,"marginTop")||0,left:i(n,"marginLeft")||0})),d=n.data(ie),s=f.match(V),s&&(p=a==ie+"y"?0:+s[1],h=a==ie+"y"?+s[1]:+s[2],c?(isNaN(d.right)?isNaN(p)||D(l,{left:d.left+p}):isNaN(p)||D(l,{right:d.right-p}),isNaN(d.bottom)?isNaN(h)||D(l,{top:d.top+h}):isNaN(h)||D(l,{bottom:d.bottom-h})):(isNaN(p)||D(l,{marginLeft:d.left+p}),isNaN(h)||D(l,{marginTop:d.top+h})))),!P&&"scale"!=a&&a in l&&delete l[a],l&&D(r,l))}),I.msie&&delete r.scale,n.animate(r,{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete})})}}),T.animatedPromise=T.promise,f=C.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new h(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,o=i.element,s=0,l=i.restore,u=l.length,c=e.Deferred(),d={},p={},h=i.children(),f=h.length;for(c.then(e.proxy(i,"_complete")),o.data("animating",!0),s=0;u>s;s++)t=l[s],o.data(t)||o.data(t,o.css(t));for(s=0;f>s;s++)h[s].duration(i._duration).run();return i.prepare(d,p),o.is(":visible")||D(d,{display:o.data("olddisplay")||"block"}),P&&(n=o.data("targetTransform"),n&&(d=D(n,d))),d=a(o,d),P&&!A&&(d=r(d)),o.css(d).css(se),i.setup(),o.data("targetTransform",p),T.animate(o,p,{duration:i._duration,complete:c.resolve}),c.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;i>t;t++)n[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var e,t,n,i=this.element;for(e=0,t=this.restore.length;t>e;e++)n=this.restore[e],i.css(n,i.data(n))},_complete:function(){var t=this,n=t.element;n.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data("olddisplay",n.css("display")).hide(),O&&!P&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){D(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),m=["left","right","up","down"],g=["in","out"],u("slideIn",{directions:m,divisor:function(e){return this.options.divisor=e,this},prepare:function(e,t){var n,i=this,o=i.element,r=pe[i._direction],a=-r.modifier*(r.vertical?o.outerHeight():o.outerWidth()),s=a/(i.options&&i.options.divisor||1)+Y,l="0px";i._reverse&&(n=e,e=t,t=n),P?(e[r.transition]=s,t[r.transition]=l):(e[r.property]=s,t[r.property]=l)}}),u("tile",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this.options={previous:n}},previousDivisor:function(e){return this.options.previousDivisor=e,this},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e.options.previousDivisor||1,o=e._direction,r=[C.fx(e.element).slideIn(o).setReverse(t)];return n&&r.push(C.fx(n).slideIn(pe[o].reverse).divisor(i).setReverse(!t)),r}}),c("fade","opacity",1,0),c("zoom","scale",1,.01),u("slideMargin",{prepare:function(e,t){var n,i=this,o=i.element,r=i.options,a=o.data(ee),s=r.offset,l=i._reverse;l||null!==a||o.data(ee,parseFloat(o.css("margin-"+r.axis))),n=o.data(ee)||0,t["margin-"+r.axis]=l?n:n+s}}),u("slideTo",{prepare:function(e,t){var n=this,i=n.element,o=n.options,r=o.offset.split(","),a=n._reverse;P?(t.translatex=a?0:r[0],t.translatey=a?0:r[1]):(t.left=a?0:r[0],t.top=a?0:r[1]),i.css("left")}}),u("expand",{directions:["horizontal","vertical"],restore:[ne],prepare:function(e,n){var i=this,o=i.element,r=i.options,a=i._reverse,s="vertical"===i._direction?X:J,l=o[0].style[s],u=o.data(s),c=parseFloat(u||l),d=$(o.css(s,K)[s]());e.overflow=Z,c=r&&r.reset?d||c:c||d,n[s]=(a?0:c)+Y,e[s]=(a?c:0)+Y,u===t&&o.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n="vertical"===e._direction?X:J,i=t.data(n);(i==K||i===G)&&setTimeout(function(){t.css(n,K).css(n)},0)}}),v={position:"absolute",marginLeft:0,marginTop:0,scale:1},u("transfer",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n=this,i=n.element,o=T.box(i),r=T.box(n.options.target),a=s(i,"scale"),l=T.fillScale(r,o),u=T.transformOrigin(r,o);D(e,v),t.scale=1,i.css(se,"scale(1)").css(se),i.css(se,"scale("+a+")"),e.top=o.top,e.left=o.left,e.transformOrigin=u.x+Y+" "+u.y+Y,n._reverse?e.scale=l:t.scale=l}}),_={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},b={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)"}},u("turningPage",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,o=i?pe[n._direction].reverse:n._direction,r=b[o];e.zIndex=1,n._clipInHalf&&(e.clip=d(n._container,C.directions[o].reverse)),e[le]=Z,t[se]=de+(i?r.start:r.end),e[se]=de+(i?r.end:r.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass("temp-page"),this}}),u("staticPage",{directions:m,init:function(e,t,n){f.prototype.init.call(this,e,t),this._container=n},restore:["clip"],prepare:function(e,t){var n=this,i=n._reverse?pe[n._direction].reverse:n._direction;e.clip=d(n._container,i),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),u("pageturn",{directions:["horizontal","vertical"],init:function(e,t,n,i){f.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",o=C.directions[i].reverse,r=t._reverse,a=n.face.clone(!0).removeAttr("id"),s=n.back.clone(!0).removeAttr("id"),l=t.element;return r&&(e=i,i=o,o=e),[C.fx(n.face).staticPage(i,l).face(!0).setReverse(r),C.fx(n.back).staticPage(o,l).setReverse(r),C.fx(a).turningPage(i,l).face(!0).clipInHalf(!0).temporary().setReverse(r),C.fx(s).turningPage(o,l).clipInHalf(!0).temporary().setReverse(r)]},prepare:function(e,t){e[ue]=ce,e.transformStyle="preserve-3d",e.opacity=.999,t.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),u("flip",{directions:["horizontal","vertical"],init:function(e,t,n,i){f.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",o=C.directions[i].reverse,r=t._reverse,a=t.element;return r&&(e=i,i=o,o=e),[C.fx(n.face).turningPage(i,a).face(!0).setReverse(r),C.fx(n.back).turningPage(o,a).setReverse(r)]},prepare:function(e){e[ue]=ce,e.transformStyle="preserve-3d"}}),w=!E.mobileOS.android,k=".km-touch-scrollbar, .km-actionsheet-wrapper",u("replace",{_before:e.noop,_after:e.noop,init:function(t,n,i){f.prototype.init.call(this,t),this._previous=e(n),this._transitionClass=i},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(e){return this._before=e,this},afterTransition:function(e){return this._after=e,this},_both:function(){return e().add(this._element).add(this._previous)},_containerClass:function(){var e=this._direction,t="k-fx k-fx-start k-fx-"+this._transitionClass;return e&&(t+=" k-fx-"+e),this._reverse&&(t+=" k-fx-reverse"),t},complete:function(t){if(!(!this.deferred||t&&e(t.target).is(k))){var n=this.container;n.removeClass("k-fx-end").removeClass(this._containerClass()).off(A.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),w&&n.css(ne,""),this.isAbsolute||this._both().css(oe,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n=this,i=n.element,o=n._previous,r=i.parents().filter(o.parents()).first(),a=n._both(),s=e.Deferred(),l=i.css(oe);return r.length||(r=i.parent()),this.container=r,this.deferred=s,this.isAbsolute="absolute"==l,this.isAbsolute||a.css(oe,"absolute"),w&&(t=r.css(ne),r.css(ne,"hidden")),A?(i.addClass("k-fx-hidden"),r.addClass(this._containerClass()),this.completeProxy=e.proxy(this,"complete"),r.on(A.event,this.completeProxy),C.animationFrame(function(){i.removeClass("k-fx-hidden").addClass("k-fx-next"),o.css("display","").addClass("k-fx-current"),n._before(o,i),C.animationFrame(function(){r.removeClass("k-fx-start").addClass("k-fx-end"),n._after(o,i)})})):this.complete(),s.promise()},stop:function(){this.complete()}}),y=C.Class.extend({init:function(){var e=this;e._tickProxy=F(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.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 e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):C.animationFrame(e._tickProxy))}}),x=y.extend({init:function(e){var t=this;D(t,e),y.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration="number"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),D(x,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,o){return o=1.70158,n*((e=e/i-1)*e*((o+1)*e+o)+1)+t}}),T.Animation=y,T.Transition=x,T.createEffect=u,T.box=function(t){t=e(t);var n=t.offset();return n.width=t.outerWidth(),n.height=t.outerHeight(),n},T.transformOrigin=function(e,t){var n=(e.left-t.left)*t.width/(t.width-e.width),i=(e.top-t.top)*t.height/(t.height-e.height);return{x:isNaN(n)?0:n,y:isNaN(i)?0:i}},T.fillScale=function(e,t){return Math.min(e.width/t.width,e.height/t.height)},T.fitScale=function(e,t){return Math.max(e.width/t.width,e.height/t.height)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.view.min",["kendo.core.min","kendo.binder.min","kendo.fx.min"],e)}(function(){return function(e,t){function n(e){if(!e)return{};var t=e.match(_)||[];return{type:t[1],direction:t[3],reverse:"reverse"===t[5]}}var i=window.kendo,o=i.Observable,r="SCRIPT",a="init",s="show",l="hide",u="transitionStart",c="transitionEnd",d="attach",p="detach",h=/unrecognized expression/,f=o.extend({init:function(e,t){var n=this;t=t||{},o.fn.init.call(n),n.content=e,n.id=i.guid(),n.tagName=t.tagName||"div",n.model=t.model,n._wrap=t.wrap!==!1,this._evalTemplate=t.evalTemplate||!1,n._fragments={},n.bind([a,s,l,u,c],t)},render:function(t){var n=this,o=!n.element;return o&&(n.element=n._createElement()),t&&e(t).append(n.element),o&&(i.bind(n.element,n.model),n.trigger(a)),t&&(n._eachFragment(d),n.trigger(s)),n.element},clone:function(){return new m(this)},triggerBeforeShow:function(){return!0},triggerBeforeHide:function(){return!0},showStart:function(){this.element.css("display","")},showEnd:function(){},hideEnd:function(){this.hide()},beforeTransition:function(e){this.trigger(u,{type:e})},afterTransition:function(e){this.trigger(c,{type:e})},hide:function(){this._eachFragment(p),this.element.detach(),this.trigger(l)},destroy:function(){var e=this.element;e&&(i.unbind(e),i.destroy(e),e.remove())},fragments:function(t){e.extend(this._fragments,t)},_eachFragment:function(e){for(var t in this._fragments)this._fragments[t][e](this,t)},_createElement:function(){var t,n,o,a=this,s="<"+a.tagName+" />";try{n=e(document.getElementById(a.content)||a.content),n[0].tagName===r&&(n=n.html())}catch(l){h.test(l.message)&&(n=a.content)}return"string"==typeof n?(n=n.replace(/^\s+|\s+$/g,""),a._evalTemplate&&(n=i.template(n)(a.model||{})),t=e(s).append(n),a._wrap||(t=t.contents())):(t=n,a._evalTemplate&&(o=e(i.template(e("<div />").append(t.clone(!0)).html())(a.model||{})),e.contains(document,t[0])&&t.replaceWith(o),t=o),a._wrap&&(t=t.wrapAll(s).parent())),t}}),m=i.Class.extend({init:function(t){e.extend(this,{element:t.element.clone(!0),transition:t.transition,id:t.id}),t.element.parent().append(this.element)},hideEnd:function(){this.element.remove()},beforeTransition:e.noop,afterTransition:e.noop}),g=f.extend({init:function(e,t){f.fn.init.call(this,e,t),this.containers={}},container:function(e){var t=this.containers[e];return t||(t=this._createContainer(e),this.containers[e]=t),t},showIn:function(e,t,n){this.container(e).show(t,n)},_createContainer:function(e){var t,n=this.render(),i=n.find(e);if(!i.length&&n.is(e)){if(!n.is(e))throw Error("can't find a container with the specified "+e+" selector");i=n}return t=new b(i),t.bind("accepted",function(e){e.view.render(i)}),t}}),v=f.extend({attach:function(e,t){e.element.find(t).replaceWith(this.render())},detach:function(){}}),_=/^(\w+)(:(\w+))?( (\w+))?$/,b=o.extend({init:function(e){o.fn.init.call(this),this.container=e,this.history=[],this.view=null,this.running=!1},after:function(){this.running=!1,this.trigger("complete",{view:this.view}),this.trigger("after")},end:function(){this.view.showEnd(),this.previous.hideEnd(),this.after()},show:function(e,t,o){if(!e.triggerBeforeShow()||this.view&&!this.view.triggerBeforeHide())return this.trigger("after"),!1;o=o||e.id;var r=this,a=e===r.view?e.clone():r.view,s=r.history,l=s[s.length-2]||{},u=l.id===o,c=t||(u?s[s.length-1].transition:e.transition),d=n(c);return r.running&&r.effect.stop(),"none"===c&&(c=null),r.trigger("accepted",{view:e}),r.view=e,r.previous=a,r.running=!0,u?s.pop():s.push({id:o,transition:c}),a?(c&&i.effects.enabled?(e.element.addClass("k-fx-hidden"),e.showStart(),u&&!t&&(d.reverse=!d.reverse),r.effect=i.fx(e.element).replace(a.element,d.type).beforeTransition(function(){e.beforeTransition("show"),a.beforeTransition("hide")}).afterTransition(function(){e.afterTransition("show"),a.afterTransition("hide")}).direction(d.direction).setReverse(d.reverse),r.effect.run().then(function(){r.end()})):(e.showStart(),r.end()),!0):(e.showStart(),e.showEnd(),r.after(),!0)}});i.ViewContainer=b,i.Fragment=v,i.Layout=g,i.View=f,i.ViewClone=m}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.data.signalr.min",["kendo.data.min"],e)}(function(){return function(e){var t=kendo.data.RemoteTransport.extend({init:function(e){var t,n=e&&e.signalr?e.signalr:{},i=n.promise;if(!i)throw Error('The "promise" option must be set.');if("function"!=typeof i.done||"function"!=typeof i.fail)throw Error('The "promise" option must be a Promise.');if(this.promise=i,t=n.hub,!t)throw Error('The "hub" option must be set.');if("function"!=typeof t.on||"function"!=typeof t.invoke)throw Error('The "hub" option is not a valid SignalR hub proxy.');this.hub=t,kendo.data.RemoteTransport.fn.init.call(this,e)},push:function(e){var t=this.options.signalr.client||{};t.create&&this.hub.on(t.create,e.pushCreate),t.update&&this.hub.on(t.update,e.pushUpdate),t.destroy&&this.hub.on(t.destroy,e.pushDestroy)},_crud:function(t,n){var i,o,r=this.hub,a=this.options.signalr.server;if(!a||!a[n])throw Error(kendo.format('The "server.{0}" option must be set.',n));i=[a[n]],o=this.parameterMap(t.data,n),e.isEmptyObject(o)||i.push(o),this.promise.done(function(){r.invoke.apply(r,i).done(t.success).fail(t.error)})},read:function(e){this._crud(e,"read")},create:function(e){this._crud(e,"create")},update:function(e){this._crud(e,"update")},destroy:function(e){this._crud(e,"destroy")}});e.extend(!0,kendo.data,{transports:{signalr:t}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.validator.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){var n,i=l.ui.validator.ruleResolvers||{},o={};for(n in i)e.extend(!0,o,i[n].resolve(t));return o}function i(e){return e.replace(/&amp/g,"&amp;").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function o(e){return e=(e+"").split("."),e.length>1?e[1].length:0}function r(t){return e(e.parseHTML?e.parseHTML(t):t)}function a(t,n){var i,o,r,a,s=e();for(r=0,a=t.length;a>r;r++)i=t[r],p.test(i.className)&&(o=i.getAttribute(l.attr("for")),o===n&&(s=s.add(i)));return s}var s,l=window.kendo,u=l.ui.Widget,c=".kendoValidator",d="k-invalid-msg",p=RegExp(d,"i"),h="k-invalid",f="k-valid",m=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,g=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,v=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",_=":checkbox:not([disabled],[readonly])",b="[type=number],[type=range]",w="blur",k="name",y="form",x="novalidate",C=e.proxy,T=function(e,t){return"string"==typeof t&&(t=RegExp("^(?:"+t+")$")),t.test(e)},S=function(e,t,n){var i=e.val();return e.filter(t).length&&""!==i?T(i,n):!0},D=function(e,t){return e.length?null!=e[0].attributes[t]:!1};l.ui.validator||(l.ui.validator={rules:{},messages:{}}),s=u.extend({init:function(t,i){var o=this,r=n(t),a="["+l.attr("validate")+"!=false]";i=i||{},i.rules=e.extend({},l.ui.validator.rules,r.rules,i.rules),i.messages=e.extend({},l.ui.validator.messages,r.messages,i.messages),u.fn.init.call(o,t,i),o._errorTemplate=l.template(o.options.errorTemplate),o.element.is(y)&&o.element.attr(x,x),o._inputSelector=v+a,o._checkboxSelector=_+a,o._errors={},o._attachEvents(),o._isValidated=!1},events:["validate","change"],options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> #=message#</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date",dateCompare:"End date should be greater than or equal to the start date"},rules:{required:function(e){var t=e.filter("[type=checkbox]").length&&!e.is(":checked"),n=e.val();return!(D(e,"required")&&(""===n||!n||t))},pattern:function(e){return e.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&""!==e.val()?T(e.val(),e.attr("pattern")):!0},min:function(e){if(e.filter(b+",["+l.attr("type")+"=number]").filter("[min]").length&&""!==e.val()){var t=parseFloat(e.attr("min"))||0,n=l.parseFloat(e.val());return n>=t}return!0},max:function(e){if(e.filter(b+",["+l.attr("type")+"=number]").filter("[max]").length&&""!==e.val()){var t=parseFloat(e.attr("max"))||0,n=l.parseFloat(e.val());return t>=n}return!0},step:function(e){if(e.filter(b+",["+l.attr("type")+"=number]").filter("[step]").length&&""!==e.val()){var t,n=parseFloat(e.attr("min"))||0,i=parseFloat(e.attr("step"))||1,r=parseFloat(e.val()),a=o(i);return a?(t=Math.pow(10,a),Math.floor((r-n)*t)%(i*t)/Math.pow(100,a)===0):(r-n)%i===0}return!0},email:function(e){return S(e,"[type=email],["+l.attr("type")+"=email]",m)},url:function(e){return S(e,"[type=url],["+l.attr("type")+"=url]",g)},date:function(e){return e.filter("[type^=date],["+l.attr("type")+"=date]").length&&""!==e.val()?null!==l.parseDate(e.val(),e.attr(l.attr("format"))):!0}},validateOnBlur:!0},destroy:function(){u.fn.destroy.call(this),this.element.off(c)},value:function(){return this._isValidated?0===this.errors().length:!1},_submit:function(e){return this.validate()?!0:(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!1)},_checkElement:function(e){var t=this.value();this.validateInput(e),this.value()!==t&&this.trigger("change")},_attachEvents:function(){var t=this;t.element.is(y)&&t.element.on("submit"+c,C(t._submit,t)),t.options.validateOnBlur&&(t.element.is(v)?(t.element.on(w+c,function(){t._checkElement(t.element)}),t.element.is(_)&&t.element.on("click"+c,function(){t._checkElement(t.element)})):(t.element.on(w+c,t._inputSelector,function(){t._checkElement(e(this))}),t.element.on("click"+c,t._checkboxSelector,function(){t._checkElement(e(this))})))},validate:function(){var e,t,n,i,o=!1,r=this.value();if(this._errors={},this.element.is(v))o=this.validateInput(this.element);else{for(i=!1,e=this.element.find(this._inputSelector),t=0,n=e.length;n>t;t++)this.validateInput(e.eq(t))||(i=!0);o=!i}return this.trigger("validate",{valid:o}),r!==o&&this.trigger("change"),o},validateInput:function(t){var n,o,a,s,u,c,p,m,g,v;return t=e(t),this._isValidated=!0,n=this,o=n._errorTemplate,a=n._checkValidity(t),s=a.valid,u="."+d,c=t.attr(k)||"",p=n._findMessageContainer(c).add(t.next(u).filter(function(){var t=e(this);return t.filter("["+l.attr("for")+"]").length?t.attr(l.attr("for"))===c:!0})).hide(),t.removeAttr("aria-invalid"),s?delete n._errors[c]:(m=n._extractMessage(t,a.key),n._errors[c]=m,g=r(o({message:i(m)})),v=p.attr("id"),n._decorateMessageContainer(g,c),v&&g.attr("id",v),p.replaceWith(g).length||g.insertAfter(t),g.show(),t.attr("aria-invalid",!0)),t.toggleClass(h,!s),t.toggleClass(f,s),s},hideMessages:function(){var e=this,t="."+d,n=e.element;n.is(v)?n.next(t).hide():n.find(t).hide()},_findMessageContainer:function(t){var n,i,o,r=l.ui.validator.messageLocators,s=e();for(i=0,o=this.element.length;o>i;i++)s=s.add(a(this.element[i].getElementsByTagName("*"),t));for(n in r)s=s.add(r[n].locate(this.element,t));return s},_decorateMessageContainer:function(e,t){var n,i=l.ui.validator.messageLocators;e.addClass(d).attr(l.attr("for"),t||"");for(n in i)i[n].decorate(e,t);e.attr("role","alert")},_extractMessage:function(e,t){var n=this,i=n.options.messages[t],o=e.attr(k);return i=l.isFunction(i)?i(e):i,l.format(e.attr(l.attr(t+"-msg"))||e.attr("validationMessage")||e.attr("title")||i||"",o,e.attr(t)||e.attr(l.attr(t)))},_checkValidity:function(e){var t,n=this.options.rules;for(t in n)if(!n[t].call(this,e))return{valid:!1,key:t};return{valid:!0}},errors:function(){var e,t=[],n=this._errors;for(e in n)t.push(n[e]);return t}}),l.ui.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.draganddrop.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e,t){return parseInt(e.css(t),10)||0}function o(e,t){return Math.min(Math.max(e,t.min),t.max)}function r(e,t){var n=F(e),o=n.left+i(e,"borderLeftWidth")+i(e,"paddingLeft"),r=n.top+i(e,"borderTopWidth")+i(e,"paddingTop"),a=o+e.width()-t.outerWidth(!0),s=r+e.height()-t.outerHeight(!0);return{x:{min:o,max:a},y:{min:r,max:s}}}function a(n,i,o){for(var r,a,s=0,l=i&&i.length,u=o&&o.length;n&&n.parentNode;){for(s=0;l>s;s++)if(r=i[s],r.element[0]===n)return{target:r,targetElement:n};for(s=0;u>s;s++)if(a=o[s],e.contains(a.element[0],n)&&b.matchesSelector.call(n,a.options.filter))return{target:a,targetElement:n};n=n.parentNode}return t}function s(e,t){var n,i=t.options.group,o=e[i];if(x.fn.destroy.call(t),o.length>1){for(n=0;o.length>n;n++)if(o[n]==t){o.splice(n,1);break}}else o.length=0,delete e[i]}function l(e){var t,n,i,o=u()[0];return e[0]===o?(n=o.scrollTop,i=o.scrollLeft,{top:n,left:i,bottom:n+k.height(),right:i+k.width()}):(t=e.offset(),t.bottom=t.top+e.height(),t.right=t.left+e.width(),t)}function u(){return e(_.support.browser.chrome?w.body:w.documentElement)}function c(t){var n,i=u();if(!t||t===w.body||t===w.documentElement)return i;for(n=e(t)[0];n&&!_.isScrollable(n)&&n!==w.body;)n=n.parentNode;return n===w.body?i:e(n)}function d(e,t,n){var i={x:0,y:0},o=50;return o>e-n.left?i.x=-(o-(e-n.left)):o>n.right-e&&(i.x=o-(n.right-e)),o>t-n.top?i.y=-(o-(t-n.top)):o>n.bottom-t&&(i.y=o-(n.bottom-t)),i}var p,h,f,m,g,v,_=window.kendo,b=_.support,w=window.document,k=e(window),y=_.Class,x=_.ui.Widget,C=_.Observable,T=_.UserEvents,S=e.proxy,D=e.extend,F=_.getOffset,E={},I={},P={},A=_.elementUnderCursor,M="keyup",H="change",O="dragstart",z="hold",V="drag",B="dragend",L="dragcancel",R="hintDestroyed",N="dragenter",W="dragleave",U="drop",j=C.extend({init:function(t,n){var i=this,o=t[0];i.capture=!1,o.addEventListener?(e.each(_.eventMap.down.split(" "),function(){o.addEventListener(this,S(i._press,i),!0)}),e.each(_.eventMap.up.split(" "),function(){o.addEventListener(this,S(i._release,i),!0)})):(e.each(_.eventMap.down.split(" "),function(){o.attachEvent(this,S(i._press,i))}),e.each(_.eventMap.up.split(" "),function(){o.attachEvent(this,S(i._release,i))})),C.fn.init.call(i),i.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger("press"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger("release"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),q=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")},makeVirtual:function(){e.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(e,t){(this._virtualMin!==e||this._virtualMax!==t)&&(this._virtualMin=e,this._virtualMax=t,this.update())},outOfBounds:function(e){return e>this.max||this.min>e},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.virtual?t._virtualMax:t.getTotal(),i=n*t.scale,o=t.getSize();(0!==n||t.forcedEnabled)&&(t.max=t.virtual?-t._virtualMin:0,t.size=o,t.total=i,t.min=Math.min(t.max,o-i),t.minScale=o/n,t.centerOffset=(i-o)/2,t.enabled=t.forcedEnabled||i>o,e||t.trigger(H,t))}}),$=C.extend({init:function(e){var t=this;C.fn.init.call(t),t.x=new q(D({horizontal:!0},e)),t.y=new q(D({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(H,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(H)}}),G=C.extend({init:function(e){var t=this;D(t,e),C.fn.init.call(t)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,o=t.movable,r=o[i]+e;n.enabled&&((n.min>r&&0>e||r>n.max&&e>0)&&(e*=t.resistance),o.translateAxis(i,e),t.trigger(H,t))}}),Y=y.extend({init:function(t){var n,i,o,r,a=this;D(a,{elastic:!0},t),o=a.elastic?.5:0,r=a.movable,a.x=n=new G({axis:"x",dimension:a.dimensions.x,resistance:o,movable:r}),a.y=i=new G({axis:"y",dimension:a.dimensions.y,resistance:o,movable:r}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(e){a.gesture=e,a.offset=a.dimensions.container.offset()},press:function(t){e(t.event.target).closest("a").is("[data-navigate-on-press=true]")&&t.sender.cancel()},gesturechange:function(e){var t,o,s,l=a.gesture,u=l.center,c=e.center,d=e.distance/l.distance,p=a.dimensions.minScale,h=a.dimensions.maxScale;p>=r.scale&&1>d&&(d+=.8*(1-d)),r.scale*d>=h&&(d=h/r.scale),o=r.x+a.offset.left,s=r.y+a.offset.top,t={x:(o-u.x)*d+c.x-o,y:(s-u.y)*d+c.y-s},r.scaleWith(d),n.dragMove(t.x),i.dragMove(t.y),a.dimensions.rescale(r.scale),a.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(n.dimension.enabled||i.dimension.enabled?(n.dragMove(e.x.delta),i.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),Q=b.transitions.prefix+"Transform";h=b.hasHW3D?function(e,t,n){return"translate3d("+e+"px,"+t+"px,0) scale("+n+")"}:function(e,t,n){return"translate("+e+"px,"+t+"px) scale("+n+")"},f=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(h(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){D(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=h(n,i,t.scale),e!=t.coordinates&&(_.support.browser.msie&&10>_.support.browser.version?(t.element[0].style.position="absolute",t.element[0].style.left=t.x+"px",t.element[0].style.top=t.y+"px"):t.element[0].style[Q]=e,t._saveCoordinates(e),t.trigger(H))},_saveCoordinates:function(e){this.coordinates=e}}),m=x.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in I?I[n].push(i):I[n]=[i]},events:[N,W,U],options:{name:"DropTarget",group:"default"},destroy:function(){s(I,this)},_trigger:function(e,n){var i=this,o=E[i.options.group];return o?i.trigger(e,D({},n.event,{draggable:o,dropTarget:n.dropTarget})):t},_over:function(e){this._trigger(N,e)},_out:function(e){this._trigger(W,e)},_drop:function(e){var t=this,n=E[t.options.group];n&&(n.dropped=!t._trigger(U,e))}}),m.destroyGroup=function(e){var t,n=I[e]||P[e];if(n){for(t=0;n.length>t;t++)x.fn.destroy.call(n[t]);n.length=0,delete I[e],delete P[e]}},m._cache=I,g=m.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in P?P[n].push(i):P[n]=[i]},destroy:function(){s(P,this)},options:{name:"DropTargetArea",group:"default",filter:null}}),v=x.extend({init:function(e,t){var n=this;x.fn.init.call(n,e,t),n._activated=!1,n.userEvents=new T(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,threshold:n.options.distance,start:S(n._start,n),hold:S(n._hold,n),move:S(n._drag,n),end:S(n._end,n),cancel:S(n._cancel,n),select:S(n._select,n)}),n._afterEndHandler=S(n._afterEnd,n),n._captureEscape=S(n._captureEscape,n)},events:[z,O,V,B,L,R],options:{name:"Draggable",distance:_.support.touch?0:5,group:"default",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(e){var t=this;e.keyCode===_.keys.ESC&&(t._trigger(L,{event:e}),t.userEvents.cancel())},_updateHint:function(t){var n,i=this,r=i.options,a=i.boundaries,s=r.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),a&&(n.top=o(n.top,a.y),n.left=o(n.left,a.x)),"x"===s?delete n.top:"y"===s&&delete n.left,i.hint.css(n)},_shouldIgnoreTarget:function(t){var n=this.options.ignore;return n&&e(t).is(n)},_select:function(e){this._shouldIgnoreTarget(e.event.target)||e.preventDefault()},_start:function(n){var i,o=this,a=o.options,s=a.container,l=a.hint;return this._shouldIgnoreTarget(n.touch.initialTouch)||a.holdToDrag&&!o._activated?(o.userEvents.cancel(),t):(o.currentTarget=n.target,o.currentTargetOffset=F(o.currentTarget),l&&(o.hint&&o.hint.stop(!0,!0).remove(),o.hint=_.isFunction(l)?e(l.call(o,o.currentTarget)):l,i=F(o.currentTarget),o.hintOffset=i,o.hint.css({position:"absolute",zIndex:2e4,left:i.left,top:i.top}).appendTo(w.body),o.angular("compile",function(){o.hint.removeAttr("ng-repeat");for(var t=e(n.target);!t.data("$$kendoScope")&&t.length;)t=t.parent();return{elements:o.hint.get(),scopeFrom:t.data("$$kendoScope")}})),E[a.group]=o,o.dropped=!1,s&&(o.boundaries=r(s,o.hint)),e(w).on(M,o._captureEscape),o._trigger(O,n)&&(o.userEvents.cancel(),o._afterEnd()),o.userEvents.capture(),t)},_hold:function(e){this.currentTarget=e.target,this._trigger(z,e)?this.userEvents.cancel():this._activated=!0},_drag:function(t){var n,i;t.preventDefault(),n=this._elementUnderCursor(t),this.options.autoScroll&&this._cursorElement!==n&&(this._scrollableParent=c(n),this._cursorElement=n),this._lastEvent=t,this._processMovement(t,n),this.options.autoScroll&&this._scrollableParent[0]&&(i=d(t.x.location,t.y.location,l(this._scrollableParent)),this._scrollCompenstation=e.extend({},this.hintOffset),this._scrollVelocity=i,0===i.y&&0===i.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(e.proxy(this,"_autoScroll"),50))),this.hint&&this._updateHint(t)},_processMovement:function(n,i){this._withDropTarget(i,function(i,o){if(!i)return p&&(p._trigger(W,D(n,{dropTarget:e(p.targetElement)})),p=null),t;if(p){if(o===p.targetElement)return;p._trigger(W,D(n,{dropTarget:e(p.targetElement)}))}i._trigger(N,D(n,{dropTarget:e(o)})),p=D(i,{targetElement:o})}),this._trigger(V,D(n,{dropTarget:p,elementUnderCursor:i}))},_autoScroll:function(){var e,t,n,i,o,r,a,s,l=this._scrollableParent[0],c=this._scrollVelocity,d=this._scrollCompenstation;l&&(e=this._elementUnderCursor(this._lastEvent),this._processMovement(this._lastEvent,e),i=l===u()[0],i?(t=w.body.scrollHeight>k.height(),n=w.body.scrollWidth>k.width()):(t=l.scrollHeight>=l.offsetHeight,n=l.scrollWidth>=l.offsetWidth),o=l.scrollTop+c.y,r=t&&o>0&&l.scrollHeight>o,a=l.scrollLeft+c.x,s=n&&a>0&&l.scrollWidth>a,r&&(l.scrollTop+=c.y),s&&(l.scrollLeft+=c.x),i&&(s||r)&&(r&&(d.top+=c.y),s&&(d.left+=c.x),this.hint.css(d)))},_end:function(t){this._withDropTarget(this._elementUnderCursor(t),function(n,i){n&&(n._drop(D({},t,{dropTarget:e(i)})),p=null)}),this._cancel(this._trigger(B,t))},_cancel:function(e){var t=this;t._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),t._activated=!1,t.hint&&!t.dropped?setTimeout(function(){t.hint.stop(!0,!0),e?t._afterEndHandler():t.hint.animate(t.currentTargetOffset,"fast",t._afterEndHandler)},0):t._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,D({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,initialTarget:t.touch?t.touch.initialTouch:null,dropTarget:t.dropTarget,elementUnderCursor:t.elementUnderCursor}))},_elementUnderCursor:function(e){var t=A(e),i=this.hint;return i&&n(i[0],t)&&(i.hide(),t=A(e),t||(t=A(e)),i.show()),t},_withDropTarget:function(e,t){var n,i=this.options.group,o=I[i],r=P[i];(o&&o.length||r&&r.length)&&(n=a(e,o,r),n?t(n.target,n.targetElement):t())},destroy:function(){var e=this;x.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),e.currentTarget=null},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete E[t.options.group],t.trigger("destroy"),t.trigger(R),e(w).off(M,t._captureEscape)}}),_.ui.plugin(m),_.ui.plugin(g),_.ui.plugin(v),_.TapCapture=j,_.containerBoundaries=r,D(_.ui,{Pane:Y,PaneDimensions:$,Movable:f}),_.ui.Draggable.utils={autoScrollVelocity:d,scrollableViewPort:l,findScrollableParent:c}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.scroller.min",["kendo.fx.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.effects,r=i.ui,a=e.proxy,s=e.extend,l=r.Widget,u=n.Class,c=n.ui.Movable,d=n.ui.Pane,p=n.ui.PaneDimensions,h=o.Transition,f=o.Animation,m=Math.abs,g=500,v=.7,_=.96,b=10,w=55,k=.5,y=5,x="km-scroller-release",C="km-scroller-refresh",T="pull",S="change",D="resize",F="scroll",E=2,I=f.extend({init:function(e){var t=this;f.fn.init.call(t),s(t,e),t.userEvents.bind("gestureend",a(t.start,t)),t.tapCapture.bind("press",a(t.cancel,t))},enabled:function(){return this.dimensions.minScale>this.movable.scale},done:function(){return.01>this.dimensions.minScale-this.movable.scale},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)}}),P=f.extend({init:function(e){var t=this;f.fn.init.call(t),s(t,e,{transition:new h({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind("press",function(){t.cancel()}),t.userEvents.bind("end",a(t.start,t)),t.userEvents.bind("gestureend",a(t.start,t)),t.userEvents.bind("tap",a(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e.paneAxis.outOfBounds()?e._snapBack():e._end()},done:function(){return m(this.velocity)<1},start:function(e){var t,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n._snapBack():(t=e.touch.id===E?0:e.touch[n.axis].velocity,n.velocity=Math.max(Math.min(t*n.velocityMultiplier,w),-w),n.tapCapture.captureNext(),f.fn.start.call(n)))},tick:function(){
var e=this,t=e.dimension,n=e.paneAxis.outOfBounds()?k:e.friction,i=e.velocity*=n,o=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(o)&&(o=Math.max(Math.min(o,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,o)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:h.easeOutExpo})}}),A=f.extend({init:function(e){var t=this;n.effects.Animation.fn.init.call(this),s(t,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return m(this.offset.y)<y&&m(this.offset.x)<y},onEnd:function(){this.moveTo(this.destination),this.callback&&this.callback.call()},setCoordinates:function(e,t){this.offset={},this.origin=e,this.destination=t},setCallback:function(e){e&&n.isFunction(e)?this.callback=e:e=t},_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}}}),M=u.extend({init:function(t){var n=this,i="x"===t.axis,o=e('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');s(n,t,{element:o,elementSize:0,movable:new c(o),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:i?"width":"height"}),n.scrollMovable.bind(S,a(n.refresh,n)),n.container.append(o),t.alwaysVisible&&n.show()},refresh:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,o=e.scrollMovable,r=i/n.total,a=Math.round(-o[t]*r),s=Math.round(i*r);r>=1?this.element.css("display","none"):this.element.css("display",""),a+s>i?s=i-a:0>a&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+"px"),e.elementSize=s),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:v,visibility:"visible"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})}}),H=l.extend({init:function(i,o){var r,u,h,f,g,v,_,b,w,k=this;return l.fn.init.call(k,i,o),i=k.element,(k._native=k.options.useNative&&n.support.hasNativeScrolling)?(i.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),s(k,{scrollElement:i,fixedContainer:i.children().first()}),t):(i.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>'),r=i.children().eq(1),u=new n.TapCapture(i),h=new c(r),f=new p({element:r,container:i,forcedEnabled:k.options.zoom}),g=this.options.avoidScrolling,v=new n.UserEvents(i,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:k.options.zoom,start:function(t){f.refresh();var n=m(t.x.velocity),i=m(t.y.velocity),o=2*n>=i,r=e.contains(k.fixedContainer[0],t.event.target),a=2*i>=n;!r&&!g(t)&&k.enabled&&(f.x.enabled&&o||f.y.enabled&&a)?v.capture():v.cancel()}}),_=new d({movable:h,dimensions:f,userEvents:v,elastic:k.options.elastic}),b=new I({movable:h,dimensions:f,userEvents:v,tapCapture:u}),w=new A({moveTo:function(e){k.scrollTo(e.x,e.y)}}),h.bind(S,function(){k.scrollTop=-h.y,k.scrollLeft=-h.x,k.trigger(F,{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft})}),k.options.mousewheelScrolling&&i.on("DOMMouseScroll mousewheel",a(this,"_wheelScroll")),s(k,{movable:h,dimensions:f,zoomSnapBack:b,animatedScroller:w,userEvents:v,pane:_,tapCapture:u,pulled:!1,enabled:!0,scrollElement:r,scrollTop:0,scrollLeft:0,fixedContainer:i.children().first()}),k._initAxis("x"),k._initAxis("y"),k._wheelEnd=function(){k._wheel=!1,k.userEvents.end(0,k._wheelY)},f.refresh(),k.options.pullToRefresh&&k._initPullToRefresh(),t)},_wheelScroll:function(e){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var t=n.wheelDeltaY(e);t&&(this._wheelY+=t,this.userEvents.move(0,this._wheelY)),e.preventDefault()},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},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:[T,F,D],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.pullToRefresh&&t._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,t){this._native?(this.scrollElement.scrollLeft(m(e)),this.scrollElement.scrollTop(m(t))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t,n){var i,o;this._native?this.scrollTo(e,t):(i={x:this.movable.x,y:this.movable.y},o={x:e,y:t},this.animatedScroller.setCoordinates(i,o),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(C),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){l.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",a(e._paneChange,e)),e.userEvents.bind("end",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x).addClass(C),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger("pull"))},_paneChange:function(){var e=this;e.movable.y/k>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(C).addClass(x),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],o=t.tapCapture,r=t.pane[e],a=new M({axis:e,movable:n,dimension:i,container:t.element,alwaysVisible:t.options.visibleScrollHints});i.bind(S,function(){a.refresh()}),r.bind(S,function(){a.show()}),t[e+"inertia"]=new P({axis:e,paneAxis:r,movable:n,tapCapture:o,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,friction:t.options.friction||_,velocityMultiplier:t.options.velocityMultiplier||b,end:function(){a.hide(),t.trigger("scrollEnd",{axis:e,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})}})}});r.plugin(H)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.resizable.min",["kendo.core.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r=e.proxy,a=n.isFunction,s=e.extend,l="horizontal",u="vertical",c="start",d="resize",p="resizeend",h=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),n.orientation=n.options.orientation.toLowerCase()!=u?l:u,n._positionMouse=n.orientation==l?"x":"y",n._position=n.orientation==l?"left":"top",n._sizingDom=n.orientation==l?"outerWidth":"outerHeight",n.draggable=new i.Draggable(e,{distance:1,filter:t.handle,drag:r(n._resize,n),dragcancel:r(n._cancel,n),dragstart:r(n._start,n),dragend:r(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[d,p,c],options:{name:"Resizable",orientation:l},resize:function(){},_max:function(e){var n=this,i=n.hint?n.hint[n._sizingDom]():0,o=n.options.max;return a(o)?o(e):o!==t?n._initialElementPosition+o-i:o},_min:function(e){var n=this,i=n.options.min;return a(i)?i(e):i!==t?n._initialElementPosition+i:i},_start:function(t){var n=this,i=n.options.hint,o=e(t.currentTarget);n._initialElementPosition=o.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,i&&(n.hint=a(i)?e(i(o)):i,n.hint.css({position:"absolute"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(c,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),e(document.body).css("cursor",o.css("cursor"))},_resize:function(e){var n,i=this,o=i._maxPosition,r=i._minPosition,a=i._initialElementPosition+(e[i._positionMouse].location-i._initialMousePosition);n=r!==t?Math.max(r,a):a,i.position=n=o!==t?Math.min(o,n):n,i.hint&&i.hint.toggleClass(i.options.invalidClass||"",n==o||n==r).css(i._position,n),i.resizing=!0,i.trigger(d,s(e,{position:n}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(p,s(t,{position:n.position})),e(document.body).css("cursor","")},_cancel:function(e){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(e))},destroy:function(){var e=this;o.fn.destroy.call(e),e.draggable&&e.draggable.destroy()},press:function(e){if(e){var t=e.position(),n=this;n.userEvents.press(t.left,t.top,e[0]),n.targetPosition=t,n.target=e}},move:function(e){var n=this,i=n._position,o=n.targetPosition,r=n.position;r===t&&(r=o[i]),o[i]=r+e,n.userEvents.move(o.left,o.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(h)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.sortable.min",["kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return e.clone()}function o(e){return e.clone().removeAttr("id").css("visibility","hidden")}var r=window.kendo,a=r.ui.Widget,s="start",l="beforeMove",u="move",c="end",d="change",p="cancel",h="sort",f="remove",m="receive",g=">*",v=-1,_=a.extend({init:function(e,t){var n=this;a.fn.init.call(n,e,t),n.options.placeholder||(n.options.placeholder=o),n.options.hint||(n.options.hint=i),n.draggable=n._createDraggable()},events:[s,l,u,c,d,p],options:{name:"Sortable",hint:null,placeholder:null,filter:g,holdToDrag:!1,disabled:null,container:null,connectWith:null,handler:null,cursorOffset:null,axis:null,ignore:null,autoScroll:!1,cursor:"auto",moveOnDragEnter:!1},destroy:function(){this.draggable.destroy(),a.fn.destroy.call(this)},_createDraggable:function(){var t=this,n=t.element,i=t.options;return new r.ui.Draggable(n,{filter:i.filter,hint:r.isFunction(i.hint)?i.hint:e(i.hint),holdToDrag:i.holdToDrag,container:i.container?e(i.container):null,cursorOffset:i.cursorOffset,axis:i.axis,ignore:i.ignore,autoScroll:i.autoScroll,dragstart:e.proxy(t._dragstart,t),dragcancel:e.proxy(t._dragcancel,t),drag:e.proxy(t._drag,t),dragend:e.proxy(t._dragend,t)})},_dragstart:function(t){var n=this.draggedElement=t.currentTarget,i=this.options.disabled,o=this.options.handler,a=this.options.placeholder,l=this.placeholder=e(r.isFunction(a)?a.call(this,n):a);i&&n.is(i)?t.preventDefault():o&&!e(t.initialTarget).is(o)?t.preventDefault():this.trigger(s,{item:n,draggableEvent:t})?t.preventDefault():(n.css("display","none"),n.before(l),this._setCursor())},_dragcancel:function(){this._cancel(),this.trigger(p,{item:this.draggedElement}),this._resetCursor()},_drag:function(n){var i,o,r,a,s,l=this.draggedElement,u=this._findTarget(n),c={left:n.x.location,top:n.y.location},d={x:n.x.delta,y:n.y.delta},p=this.options.axis,h=this.options.moveOnDragEnter,f={item:l,list:this,draggableEvent:n};if("x"===p||"y"===p)return this._movementByAxis(p,c,d[p],f),t;if(u){if(i=this._getElementCenter(u.element),o={left:Math.round(c.left-i.left),top:Math.round(c.top-i.top)},e.extend(f,{target:u.element}),u.appendToBottom)return this._movePlaceholder(u,null,f),t;if(u.appendAfterHidden&&this._movePlaceholder(u,"next",f),this._isFloating(u.element)?0>d.x&&(h||0>o.left)?r="prev":d.x>0&&(h||o.left>0)&&(r="next"):0>d.y&&(h||0>o.top)?r="prev":d.y>0&&(h||o.top>0)&&(r="next"),r){for(s="prev"===r?jQuery.fn.prev:jQuery.fn.next,a=s.call(u.element);a.length&&!a.is(":visible");)a=s.call(a);a[0]!=this.placeholder[0]&&this._movePlaceholder(u,r,f)}}},_dragend:function(n){var i,o,r,a,s=this.placeholder,l=this.draggedElement,u=this.indexOf(l),p=this.indexOf(s),g=this.options.connectWith;return this._resetCursor(),r={action:h,item:l,oldIndex:u,newIndex:p,draggableEvent:n},p>=0?o=this.trigger(c,r):(i=s.parents(g).getKendoSortable(),r.action=f,a=e.extend({},r,{action:m,oldIndex:v,newIndex:i.indexOf(s)}),o=!(!this.trigger(c,r)&&!i.trigger(c,a))),o||p===u?(this._cancel(),t):(s.replaceWith(l),l.show(),this.draggable.dropped=!0,r={action:this.indexOf(l)!=v?h:f,item:l,oldIndex:u,newIndex:this.indexOf(l),draggableEvent:n},this.trigger(d,r),i&&(a=e.extend({},r,{action:m,oldIndex:v,newIndex:i.indexOf(l)}),i.trigger(d,a)),t)},_findTarget:function(n){var i,o,r=this._findElementUnderCursor(n),a=this.options.connectWith;return e.contains(this.element[0],r)?(i=this.items(),o=i.filter(r)[0]||i.has(r)[0],o?{element:e(o),sortable:this}:null):this.element[0]==r&&this._isEmpty()?{element:this.element,sortable:this,appendToBottom:!0}:this.element[0]==r&&this._isLastHidden()?(o=this.items().eq(0),{element:o,sortable:this,appendAfterHidden:!0}):a?this._searchConnectedTargets(r,n):t},_findElementUnderCursor:function(e){var t=r.elementUnderCursor(e),i=e.sender;return n(i.hint[0],t)&&(i.hint.hide(),t=r.elementUnderCursor(e),t||(t=r.elementUnderCursor(e)),i.hint.show()),t},_searchConnectedTargets:function(t,n){var i,o,r,a,s=e(this.options.connectWith);for(a=0;s.length>a;a++)if(i=s.eq(a).getKendoSortable(),e.contains(s[a],t)){if(i)return o=i.items(),r=o.filter(t)[0]||o.has(t)[0],r?(i.placeholder=this.placeholder,{element:e(r),sortable:i}):null}else if(s[a]==t){if(i&&i._isEmpty())return{element:s.eq(a),sortable:i,appendToBottom:!0};if(this._isCursorAfterLast(i,n))return r=i.items().last(),{element:r,sortable:i}}},_isCursorAfterLast:function(e,t){var n,i,o=e.items().last(),a={left:t.x.location,top:t.y.location};return n=r.getOffset(o),n.top+=o.outerHeight(),n.left+=o.outerWidth(),i=this._isFloating(o)?n.left-a.left:n.top-a.top,0>i?!0:!1},_movementByAxis:function(t,n,i,o){var r,a="x"===t?n.left:n.top,s=0>i?this.placeholder.prev():this.placeholder.next();s.length&&!s.is(":visible")&&(s=0>i?s.prev():s.next()),e.extend(o,{target:s}),r=this._getElementCenter(s),r&&(r="x"===t?r.left:r.top),s.length&&0>i&&0>a-r?this._movePlaceholder({element:s,sortable:this},"prev",o):s.length&&i>0&&a-r>0&&this._movePlaceholder({element:s,sortable:this},"next",o)},_movePlaceholder:function(e,t,n){var i=this.placeholder;e.sortable.trigger(l,n)||(t?"prev"===t?e.element.before(i):"next"===t&&e.element.after(i):e.element.append(i),e.sortable.trigger(u,n))},_setCursor:function(){var t,n=this.options.cursor;n&&"auto"!==n&&(t=e(document.body),this._originalCursorType=t.css("cursor"),t.css({cursor:n}),this._cursorStylesheet||(this._cursorStylesheet=e("<style>* { cursor: "+n+" !important; }</style>")),this._cursorStylesheet.appendTo(t))},_resetCursor:function(){this._originalCursorType&&(e(document.body).css("cursor",this._originalCursorType),this._originalCursorType=null,this._cursorStylesheet.remove())},_getElementCenter:function(e){var t=e.length?r.getOffset(e):null;return t&&(t.top+=e.outerHeight()/2,t.left+=e.outerWidth()/2),t},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_cancel:function(){this.draggedElement.show(),this.placeholder.remove()},_items:function(){var e,t=this.options.filter;return e=t?this.element.find(t):this.element.children()},indexOf:function(e){var t=this._items(),n=this.placeholder,i=this.draggedElement;return n&&e[0]==n[0]?t.not(i).index(e):t.not(n).index(e)},items:function(){var e=this.placeholder,t=this._items();return e&&(t=t.not(e)),t},_isEmpty:function(){return!this.items().length},_isLastHidden:function(){return 1===this.items().length&&this.items().is(":hidden")}});r.ui.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.selectable.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e,t){if(!e.is(":visible"))return!1;var n=o.getOffset(e),i=t.left+t.width,r=t.top+t.height;return n.right=n.left+e.outerWidth(),n.bottom=n.top+e.outerHeight(),!(n.left>i||t.left>n.right||n.top>r||t.top>n.bottom)}var i,o=window.kendo,r=o.ui.Widget,a=e.proxy,s=Math.abs,l="aria-selected",u="k-state-selected",c="k-state-selecting",d="k-selectable",p="change",h=".kendoSelectable",f="k-state-unselecting",m="input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-expand,span.k-icon.k-i-collapse",g=o.support.browser.msie,v=!1;!function(e){!function(){e('<div class="parent"><span /></div>').on("click",">*",function(){v=!0}).find("span").click().end().off()}()}(e),i=r.extend({init:function(t,n){var i,s=this;r.fn.init.call(s,t,n),s._marquee=e("<div class='k-marquee'><div class='k-marquee-color'></div></div>"),s._lastActive=null,s.element.addClass(d),s.relatedTarget=s.options.relatedTarget,i=s.options.multiple,this.options.aria&&i&&s.element.attr("aria-multiselectable",!0),s.userEvents=new o.UserEvents(s.element,{global:!0,allowSelection:!0,filter:(v?"":"."+d+" ")+s.options.filter,tap:a(s._tap,s)}),i&&s.userEvents.bind("start",a(s._start,s)).bind("move",a(s._move,s)).bind("end",a(s._end,s)).bind("select",a(s._select,s))},events:[p],options:{name:"Selectable",filter:">*",multiple:!1,relatedTarget:e.noop},_isElement:function(e){var t,n=this.element,i=n.length,o=!1;for(e=e[0],t=0;i>t;t++)if(n[t]===e){o=!0;break}return o},_tap:function(t){var n,i=e(t.target),o=this,r=t.event.ctrlKey||t.event.metaKey,a=o.options.multiple,s=a&&t.event.shiftKey,l=t.event.which,c=t.event.button;!o._isElement(i.closest("."+d))||l&&3==l||c&&2==c||this._allowSelection(t.event.target)&&(n=i.hasClass(u),a&&r||o.clear(),i=i.add(o.relatedTarget(i)),s?o.selectRange(o._firstSelectee(),i):(n&&r?(o._unselect(i),o._notify(p)):o.value(i),o._lastActive=o._downTarget=i))},_start:function(n){var i,o=this,r=e(n.target),a=r.hasClass(u),s=n.event.ctrlKey||n.event.metaKey;if(this._allowSelection(n.event.target)){if(o._downTarget=r,!o._isElement(r.closest("."+d)))return o.userEvents.cancel(),t;o.options.useAllItems?o._items=o.element.find(o.options.filter):(i=r.closest(o.element),o._items=i.find(o.options.filter)),n.sender.capture(),o._marquee.appendTo(document.body).css({left:n.x.client+1,top:n.y.client+1,width:0,height:0}),s||o.clear(),r=r.add(o.relatedTarget(r)),a&&(o._selectElement(r,!0),s&&r.addClass(f))}},_move:function(e){var t=this,n={left:e.x.startLocation>e.x.location?e.x.location:e.x.startLocation,top:e.y.startLocation>e.y.location?e.y.location:e.y.startLocation,width:s(e.x.initialDelta),height:s(e.y.initialDelta)};t._marquee.css(n),t._invalidateSelectables(n,e.event.ctrlKey||e.event.metaKey),e.preventDefault()},_end:function(){var e,t=this;t._marquee.remove(),t._unselect(t.element.find(t.options.filter+"."+f)).removeClass(f),e=t.element.find(t.options.filter+"."+c),e=e.add(t.relatedTarget(e)),t.value(e),t._lastActive=t._downTarget,t._items=null},_invalidateSelectables:function(e,t){var i,o,r,a,s=this._downTarget[0],l=this._items;for(i=0,o=l.length;o>i;i++)a=l.eq(i),r=a.add(this.relatedTarget(a)),n(a,e)?a.hasClass(u)?t&&s!==a[0]&&r.removeClass(u).addClass(f):a.hasClass(c)||a.hasClass(f)||r.addClass(c):a.hasClass(c)?r.removeClass(c):t&&a.hasClass(f)&&r.removeClass(f).addClass(u)},value:function(e){var n=this,i=a(n._selectElement,n);return e?(e.each(function(){i(this)}),n._notify(p),t):n.element.find(n.options.filter+"."+u)},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter)[0])},_selectElement:function(t,n){var i=e(t),o=!n&&this._notify("select",{element:t});i.removeClass(c),o||(i.addClass(u),this.options.aria&&i.attr(l,!0))},_notify:function(e,t){return t=t||{},this.trigger(e,t)},_unselect:function(e){return e.removeClass(u),this.options.aria&&e.attr(l,!1),e},_select:function(t){this._allowSelection(t.event.target)&&(!g||g&&!e(o._activeElement()).is(m))&&t.preventDefault()},_allowSelection:function(t){return e(t).is(m)?(this.userEvents.cancel(),this._downTarget=null,!1):!0},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var e=this.element.find(this.options.filter+"."+u);this._unselect(e)},selectRange:function(t,n){var i,o,r,a=this;for(a.clear(),a.element.length>1&&(r=a.options.continuousItems()),r&&r.length||(r=a.element.find(a.options.filter)),t=e.inArray(e(t)[0],r),n=e.inArray(e(n)[0],r),t>n&&(o=t,t=n,n=o),a.options.useAllItems||(n+=a.element.length-1),i=t;n>=i;i++)a._selectElement(r[i]);a._notify(p)},destroy:function(){var e=this;r.fn.destroy.call(e),e.element.off(h),e.userEvents.destroy(),e._marquee=e._lastActive=e.element=e.userEvents=null}}),i.parseOptions=function(e){var t="string"==typeof e&&e.toLowerCase();return{multiple:t&&t.indexOf("multiple")>-1,cell:t&&t.indexOf("cell")>-1}},o.ui.plugin(i)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.button.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.proxy,r=n.keys,a="click",s="k-button",l="k-button-icon",u="k-button-icontext",c=".kendoButton",d="disabled",p="k-state-disabled",h="k-state-focused",f="k-state-selected",m=i.extend({init:function(e,t){var r=this;i.fn.init.call(r,e,t),e=r.wrapper=r.element,t=r.options,e.addClass(s).attr("role","button"),t.enable=t.enable&&!e.attr(d),r.enable(t.enable),r._tabindex(),r._graphics(),e.on(a+c,o(r._click,r)).on("focus"+c,o(r._focus,r)).on("blur"+c,o(r._blur,r)).on("keydown"+c,o(r._keydown,r)).on("keyup"+c,o(r._keyup,r)),n.notify(r)},destroy:function(){var e=this;e.wrapper.off(c),i.fn.destroy.call(e)},events:[a],options:{name:"Button",icon:"",spriteCssClass:"",imageUrl:"",enable:!0},_isNativeButton:function(){return"button"==this.element.prop("tagName").toLowerCase()},_click:function(e){this.options.enable&&this.trigger(a,{event:e})&&e.preventDefault()},_focus:function(){this.options.enable&&this.element.addClass(h)},_blur:function(){this.element.removeClass(h)},_keydown:function(e){var t=this;t._isNativeButton()||(e.keyCode==r.ENTER||e.keyCode==r.SPACEBAR)&&(e.keyCode==r.SPACEBAR&&(e.preventDefault(),t.options.enable&&t.element.addClass(f)),t._click(e))},_keyup:function(){this.element.removeClass(f)},_graphics:function(){var t,n,i,o=this,r=o.element,a=o.options,s=a.icon,c=a.spriteCssClass,d=a.imageUrl;(c||d||s)&&(i=!0,r.contents().not("span.k-sprite").not("span.k-icon").not("img.k-image").each(function(t,n){(1==n.nodeType||3==n.nodeType&&e.trim(n.nodeValue).length>0)&&(i=!1)}),r.addClass(i?l:u)),s?(t=r.children("span.k-icon").first(),t[0]||(t=e('<span class="k-icon"></span>').prependTo(r)),t.addClass("k-i-"+s)):c?(t=r.children("span.k-sprite").first(),t[0]||(t=e('<span class="k-sprite"></span>').prependTo(r)),t.addClass(c)):d&&(n=r.children("img.k-image").first(),n[0]||(n=e('<img alt="icon" class="k-image" />').prependTo(r)),n.attr("src",d))},enable:function(e){var n=this,i=n.element;e===t&&(e=!0),e=!!e,n.options.enable=e,i.toggleClass(p,!e).attr("aria-disabled",!e).attr(d,!e);try{i.blur()}catch(o){}}});n.ui.plugin(m)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pager.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(e,t,n,i,o){return e({idx:t,text:n,ns:u.ns,numeric:i,title:o||""})}function i(e,t,n){return y({className:e.substring(1),text:t,wrapClassName:n||""})}function o(e,t,n,i){e.find(t).parent().attr(u.attr("page"),n).attr("tabindex",-1).toggleClass("k-state-disabled",i)}function r(e,t){o(e,h,1,1>=t)}function a(e,t){o(e,m,Math.max(1,t-1),1>=t)}function s(e,t,n){o(e,g,Math.min(n,t+1),t>=n)}function l(e,t,n){o(e,f,n,t>=n)}var u=window.kendo,c=u.ui,d=c.Widget,p=e.proxy,h=".k-i-seek-w",f=".k-i-seek-e",m=".k-i-arrow-w",g=".k-i-arrow-e",v="change",_=".kendoPager",b="click",w="keydown",k="disabled",y=u.template('<a href="\\#" title="#=text#" class="k-link k-pager-nav #= wrapClassName #"><span class="k-icon #= className #">#=text#</span></a>'),x=d.extend({init:function(t,n){var o,c,k,y,x=this;d.fn.init.call(x,t,n),n=x.options,x.dataSource=u.data.DataSource.create(n.dataSource),x.linkTemplate=u.template(x.options.linkTemplate),x.selectTemplate=u.template(x.options.selectTemplate),x.currentPageTemplate=u.template(x.options.currentPageTemplate),o=x.page(),c=x.totalPages(),x._refreshHandler=p(x.refresh,x),x.dataSource.bind(v,x._refreshHandler),n.previousNext&&(x.element.find(h).length||(x.element.append(i(h,n.messages.first,"k-pager-first")),r(x.element,o,c)),x.element.find(m).length||(x.element.append(i(m,n.messages.previous)),a(x.element,o,c))),n.numeric&&(x.list=x.element.find(".k-pager-numbers"),x.list.length||(x.list=e('<ul class="k-pager-numbers k-reset" />').appendTo(x.element))),n.input&&(x.element.find(".k-pager-input").length||x.element.append('<span class="k-pager-input k-label">'+n.messages.page+'<input class="k-textbox">'+u.format(n.messages.of,c)+"</span>"),x.element.on(w+_,".k-pager-input input",p(x._keydown,x))),n.previousNext&&(x.element.find(g).length||(x.element.append(i(g,n.messages.next)),s(x.element,o,c)),x.element.find(f).length||(x.element.append(i(f,n.messages.last,"k-pager-last")),l(x.element,o,c))),n.pageSizes&&(x.element.find(".k-pager-sizes").length||(k=n.pageSizes.length?n.pageSizes:["all",5,10,20],y=e.map(k,function(e){return e.toLowerCase&&"all"===e.toLowerCase()?"<option value='all'>"+n.messages.allPages+"</option>":"<option>"+e+"</option>"}),e('<span class="k-pager-sizes k-label"><select/>'+n.messages.itemsPerPage+"</span>").appendTo(x.element).find("select").html(y.join("")).end().appendTo(x.element)),x.element.find(".k-pager-sizes select").val(x.pageSize()),u.ui.DropDownList&&x.element.find(".k-pager-sizes select").show().kendoDropDownList(),x.element.on(v+_,".k-pager-sizes select",p(x._change,x))),n.refresh&&(x.element.find(".k-pager-refresh").length||x.element.append('<a href="#" class="k-pager-refresh k-link" title="'+n.messages.refresh+'"><span class="k-icon k-i-refresh">'+n.messages.refresh+"</span></a>"),x.element.on(b+_,".k-pager-refresh",p(x._refreshClick,x))),n.info&&(x.element.find(".k-pager-info").length||x.element.append('<span class="k-pager-info k-label" />')),x.element.on(b+_,"a",p(x._click,x)).addClass("k-pager-wrap k-widget k-floatwrap"),x.element.on(b+_,".k-current-page",p(x._toggleActive,x)),n.autoBind&&x.refresh(),u.notify(x)},destroy:function(){var e=this;d.fn.destroy.call(e),e.element.off(_),e.dataSource.unbind(v,e._refreshHandler),e._refreshHandler=null,u.destroy(e.element),e.element=e.list=null},events:[v],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',currentPageTemplate:'<li class="k-current-page"><span class="k-link k-pager-nav">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#" #if (title !== "") {# title="#=title#" #}#>#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{allPages:"All",display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh",morePages:"More pages"}},setDataSource:function(e){var t=this;t.dataSource.unbind(v,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(v,t._refreshHandler),t.options.autoBind&&e.fetch()},refresh:function(e){var t,i,o,c,d,p,h=this,f=1,m=h.page(),g="",v=h.options,_=h.pageSize(),b=h.dataSource.total(),w=h.totalPages(),y=h.linkTemplate,x=v.buttonCount;if(!e||"itemchange"!=e.action){if(v.numeric){for(m>x&&(o=m%x,f=0===o?m-x+1:m-o+1),i=Math.min(f+x-1,w),f>1&&(g+=n(y,f-1,"...",!1,v.messages.morePages)),t=f;i>=t;t++)g+=n(t==m?h.selectTemplate:y,t,t,!0);w>i&&(g+=n(y,t,"...",!1,v.messages.morePages)),""===g&&(g=h.selectTemplate({text:0})),g=this.currentPageTemplate({text:m})+g,h.list.removeClass("k-state-expanded").html(g)}v.info&&(g=b>0?u.format(v.messages.display,(m-1)*_+1,Math.min(m*_,b),b):v.messages.empty,h.element.find(".k-pager-info").html(g)),v.input&&h.element.find(".k-pager-input").html(h.options.messages.page+'<input class="k-textbox">'+u.format(v.messages.of,w)).find("input").val(m).attr(k,1>b).toggleClass("k-state-disabled",1>b),v.previousNext&&(r(h.element,m,w),a(h.element,m,w),s(h.element,m,w),l(h.element,m,w)),v.pageSizes&&(c=h.element.find(".k-pager-sizes option[value='all']").length>0,d=c&&_===this.dataSource.total(),p=_,d&&(_="all",p=v.messages.allPages),h.element.find(".k-pager-sizes select").val(_).filter("["+u.attr("role")+"=dropdownlist]").kendoDropDownList("value",_).kendoDropDownList("text",p))}},_keydown:function(e){if(e.keyCode===u.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),n=parseInt(t.val(),10);(isNaN(n)||1>n||n>this.totalPages())&&(n=this.page()),t.val(n),this.page(n)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=e.currentTarget.value,n=parseInt(t,10),i=this.dataSource;isNaN(n)?"all"==(t+"").toLowerCase()&&i.pageSize(i.total()):i.pageSize(n)},_toggleActive:function(){this.list.toggleClass("k-state-expanded")},_click:function(t){var n=e(t.currentTarget);t.preventDefault(),n.is(".k-state-disabled")||this.page(n.attr(u.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/(this.pageSize()||1))},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.dataSource.page(e),this.trigger(v,{index:e}),t)}});c.plugin(x)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.popup.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t,n){return t===n||e.contains(t,n)}var i=window.kendo,o=i.ui,r=o.Widget,a=i.support,s=i.getOffset,l="open",u="close",c="deactivate",d="activate",p="center",h="left",f="right",m="top",g="bottom",v="absolute",_="hidden",b="body",w="location",k="position",y="visible",x="effects",C="k-state-active",T="k-state-border",S=/k-state-border-(\w+)/,D=".k-picker-wrap, .k-dropdown-wrap, .k-link",F="down",E=e(document.documentElement),I=e(window),P="scroll",A=a.transitions.css,M=A+"transform",H=e.extend,O=".kendoPopup",z=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],V=r.extend({init:function(t,n){var o,s=this;n=n||{},n.isRtl&&(n.origin=n.origin||g+" "+f,n.position=n.position||m+" "+f),r.fn.init.call(s,t,n),t=s.element,n=s.options,s.collisions=n.collision?n.collision.split(" "):[],s.downEvent=i.applyEventMap(F,i.guid()),1===s.collisions.length&&s.collisions.push(s.collisions[0]),
o=e(s.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),n.appendTo=e(e(n.appendTo)[0]||o[0]||b),s.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!n.isRtl).css({position:v}).appendTo(n.appendTo).on("mouseenter"+O,function(){s._hovered=!0}).on("mouseleave"+O,function(){s._hovered=!1}),s.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),H(n.animation.open,{complete:function(){s.wrapper.css({overflow:y}),s._activated=!0,s._trigger(d)}}),H(n.animation.close,{complete:function(){s._animationClose()}}),s._mousedownProxy=function(e){s._mousedown(e)},s._resizeProxy=a.mobileOS.android?function(e){setTimeout(function(){s._resize(e)},600)}:function(e){s._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+O,e.proxy(s.toggle,s))},events:[l,d,u,c],options:{name:"Popup",toggleEvent:"click",origin:g+" "+h,position:m+" "+h,anchor:b,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}}},_animationClose:function(){var e=this,t=e.wrapper.data(w);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=b&&e._hideDirClass(),e._closing=!1,e._trigger(c)},destroy:function(){var t,n=this,o=n.options,a=n.element.off(O);r.fn.destroy.call(n),o.toggleTarget&&e(o.toggleTarget).off(O),o.modal||(E.unbind(n.downEvent,n._mousedownProxy),n._toggleResize(!1)),i.destroy(n.element.children()),a.removeData(),o.appendTo[0]===document.body&&(t=a.parent(".k-animation-container"),t[0]?t.remove():a.remove())},open:function(t,n){var o,r,s=this,u={isFixed:!isNaN(parseInt(n,10)),x:t,y:n},c=s.element,d=s.options,p=e(d.anchor),h=c[0]&&c.hasClass("km-widget");if(!s.visible()){if(d.copyAnchorStyles&&(h&&"font-size"==z[0]&&z.shift(),c.css(i.getComputedStyles(p[0],z))),c.data("animating")||s._trigger(l))return;s._activated=!1,d.modal||(E.unbind(s.downEvent,s._mousedownProxy).bind(s.downEvent,s._mousedownProxy),s._toggleResize(!1),s._toggleResize(!0)),s.wrapper=r=i.wrap(c,d.autosize).css({overflow:_,display:"block",position:v}),a.mobileOS.android&&r.css(M,"translatez(0)"),r.css(k),e(d.appendTo)[0]==document.body&&r.css(m,"-10000px"),s.flipped=s._position(u),o=s._openAnimation(),d.anchor!=b&&s._showDirClass(o),c.data(x,o.effects).kendoStop(!0).kendoAnimate(o)}},_openAnimation:function(){var e=H(!0,{},this.options.animation.open);return e.effects=i.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),n=((t.attr("class")||"").match(S)||["","down"])[1],o=T+"-"+n;t.removeClass(o).children(D).removeClass(C).removeClass(o),this.element.removeClass(T+"-"+i.directions[n].reverse)},_showDirClass:function(t){var n=t.effects.slideIn?t.effects.slideIn.direction:"down",o=T+"-"+n;e(this.options.anchor).addClass(o).children(D).addClass(C).addClass(o),this.element.addClass(T+"-"+i.directions[n].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?u:l]()},visible:function(){return this.element.is(":"+y)},close:function(n){var o,r,a,s,l=this,c=l.options;if(l.visible()){if(o=l.wrapper[0]?l.wrapper:i.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(u))return l._toggleResize(!0),t;l.element.find(".k-popup").each(function(){var t=e(this),i=t.data("kendoPopup");i&&i.close(n)}),E.unbind(l.downEvent,l._mousedownProxy),n?r={hide:!0,effects:{}}:(r=H(!0,{},c.animation.close),a=l.element.data(x),s=r.effects,!s&&!i.size(s)&&a&&i.size(a)&&(r.effects=a,r.reverse=!0),l._closing=!0),l.element.kendoStop(!0),o.css({overflow:_}),l.element.kendoAnimate(r)}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;-1!==a.resize.indexOf(e.type)?(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",n=a.resize;a.mobileOS.ios||a.mobileOS.android||(n+=" "+P),this._scrollableParents()[t](P,this._resizeProxy),I[t](n,this._resizeProxy)},_mousedown:function(t){var o=this,r=o.element[0],a=o.options,s=e(a.anchor)[0],l=a.toggleTarget,u=i.eventTarget(t),c=e(u).closest(".k-popup"),d=c.parent().parent(".km-shim").length;c=c[0],(d||!c||c===o.element[0])&&"popover"!==e(t.target).closest("a").data("rel")&&(n(r,u)||n(s,u)||l&&n(e(l)[0],u)||o.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i,o,r,a){var s=0;return a=a||t,r!==o&&r!==p&&o!==p&&(e+a>i&&(s+=-(n+t)),0>e+s&&(s+=n+t)),s},_scrollableParents:function(){return e(this.options.anchor).parentsUntil("body").filter(function(e,t){return i.isScrollable(t)})},_position:function(t){var n,o,r,l,u,c,d,p,h,f,m,g,_,b=this,y=b.element,x=b.wrapper,C=b.options,T=e(C.viewport),S=T.offset(),D=e(C.anchor),F=C.origin.toLowerCase().split(" "),E=C.position.toLowerCase().split(" "),I=b.collisions,P=a.zoomLevel(),A=10002,M=!!(T[0]==window&&window.innerWidth&&1.02>=P),O=0,z=document.documentElement,V=M?window.innerWidth:T.width(),B=M?window.innerHeight:T.height();if(M&&z.scrollHeight-z.clientHeight>0&&(V-=i.support.scrollbar()),n=D.parents().filter(x.siblings()),n[0])if(r=Math.max(+n.css("zIndex"),0))A=r+10;else for(o=D.parentsUntil(n),l=o.length;l>O;O++)r=+e(o[O]).css("zIndex"),r&&r>A&&(A=r+10);return x.css("zIndex",A),x.css(t&&t.isFixed?{left:t.x,top:t.y}:b._align(F,E)),u=s(x,k,D[0]===x.offsetParent()[0]),c=s(x),d=D.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),d.length&&(u=s(x,k,!0),c=s(x)),T[0]===window?(c.top-=window.pageYOffset||document.documentElement.scrollTop||0,c.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(c.top-=S.top,c.left-=S.left),b.wrapper.data(w)||x.data(w,H({},u)),p=H({},c),h=H({},u),f=C.adjustSize,"fit"===I[0]&&(h.top+=b._fit(p.top,x.outerHeight()+f.height,B/P)),"fit"===I[1]&&(h.left+=b._fit(p.left,x.outerWidth()+f.width,V/P)),m=H({},h),g=y.outerHeight(),_=x.outerHeight(),!x.height()&&g&&(_+=g),"flip"===I[0]&&(h.top+=b._flip(p.top,g,D.outerHeight(),B/P,F[0],E[0],_)),"flip"===I[1]&&(h.left+=b._flip(p.left,y.outerWidth(),D.outerWidth(),V/P,F[1],E[1],x.outerWidth())),y.css(k,v),x.css(h),h.left!=m.left||h.top!=m.top},_align:function(t,n){var i,o=this,r=o.wrapper,a=e(o.options.anchor),l=t[0],u=t[1],c=n[0],d=n[1],h=s(a),m=e(o.options.appendTo),v=r.outerWidth(),_=r.outerHeight(),b=a.outerWidth(),w=a.outerHeight(),k=h.top,y=h.left,x=Math.round;return m[0]!=document.body&&(i=s(m),k-=i.top,y-=i.left),l===g&&(k+=w),l===p&&(k+=x(w/2)),c===g&&(k-=_),c===p&&(k-=x(_/2)),u===f&&(y+=b),u===p&&(y+=x(b/2)),d===f&&(y-=v),d===p&&(y-=x(v/2)),{top:k,left:y}}});o.plugin(V)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.notification.min",["kendo.core.min","kendo.popup.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.proxy,r=e.extend,a=window.setTimeout,s="click",l="show",u="hide",c="k-notification",d=".k-notification-wrap .k-i-close",p="k-hiding",h="info",f="success",m="warning",g="error",v="top",_="left",b="bottom",w="right",k="up",y=".kendoNotification",x='<div class="k-widget k-notification"></div>',C='<div class="k-notification-wrap"><span class="k-icon k-i-note">#=typeIcon#</span>#=content#<span class="k-icon k-i-close">Hide</span></div>',T=C.replace("#=content#","#:content#"),S=i.extend({init:function(t,o){var r=this;i.fn.init.call(r,t,o),o=r.options,o.appendTo&&e(o.appendTo).is(t)||r.element.hide(),r._compileTemplates(o.templates),r._guid="_"+n.guid(),r._isRtl=n.support.isRtl(t),r._compileStacking(o.stacking,o.position.top,o.position.left),n.notify(r)},events:[l,u],options:{name:"Notification",position:{pinned:!0,top:null,left:null,bottom:20,right:20},stacking:"default",hideOnClick:!0,button:!1,allowHideAfter:0,autoHideAfter:5e3,appendTo:null,width:null,height:null,templates:[],animation:{open:{effects:"fade:in",duration:300},close:{effects:"fade:out",duration:600,hide:!0}}},_compileTemplates:function(t){var i=this,o=n.template;i._compiled={},e.each(t,function(t,n){i._compiled[n.type]=o(n.template||e("#"+n.templateId).html())}),i._defaultCompiled=o(C),i._safeCompiled=o(T)},_getCompiled:function(e,t){var n=t?this._safeCompiled:this._defaultCompiled;return e?this._compiled[e]||n:n},_compileStacking:function(e,t,n){var i,o,r=this,a={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},s=null!==n?_:w;switch(e){case"down":i=b+" "+s,o=v+" "+s,delete a.paddingBottom;break;case w:i=v+" "+w,o=v+" "+_,delete a.paddingRight;break;case _:i=v+" "+_,o=v+" "+w,delete a.paddingLeft;break;case k:i=v+" "+s,o=b+" "+s,delete a.paddingTop;break;default:null!==t?(i=b+" "+s,o=v+" "+s,delete a.paddingBottom):(i=v+" "+s,o=b+" "+s,delete a.paddingTop)}r._popupOrigin=i,r._popupPosition=o,r._popupPaddings=a},_attachPopupEvents:function(e,t){function i(e){e.on(s+y,function(){r._hidePopup(t)})}var o,r=this,l=e.allowHideAfter,u=!isNaN(l)&&l>0;t.options.anchor!==document.body&&t.options.origin.indexOf(w)>0&&t.bind("open",function(){var e=n.getShadows(t.element);a(function(){t.wrapper.css("left",parseFloat(t.wrapper.css("left"))+e.left+e.right)})}),e.hideOnClick?t.bind("activate",function(){u?a(function(){i(t.element)},l):i(t.element)}):e.button&&(o=t.element.find(d),u?a(function(){i(o)},l):i(o))},_showPopup:function(t,i){var o,s,l=this,u=i.autoHideAfter,c=i.position.left,h=i.position.top;s=e("."+l._guid+":not(."+p+")").last(),o=new n.ui.Popup(t,{anchor:s[0]?s:document.body,origin:l._popupOrigin,position:l._popupPosition,animation:i.animation,modal:!0,collision:"",isRtl:l._isRtl,close:function(){l._triggerHide(this.element)},deactivate:function(e){e.sender.element.off(y),e.sender.element.find(d).off(y),e.sender.destroy()}}),l._attachPopupEvents(i,o),s[0]?o.open():(null===c&&(c=e(window).width()-t.width()-i.position.right),null===h&&(h=e(window).height()-t.height()-i.position.bottom),o.open(c,h)),o.wrapper.addClass(l._guid).css(r({margin:0},l._popupPaddings)),i.position.pinned?(o.wrapper.css("position","fixed"),s[0]&&l._togglePin(o.wrapper,!0)):s[0]||l._togglePin(o.wrapper,!1),u>0&&a(function(){l._hidePopup(o)},u)},_hidePopup:function(e){e.wrapper.addClass(p),e.close()},_togglePin:function(t,n){var i=e(window),o=n?-1:1;t.css({top:parseInt(t.css(v),10)+o*i.scrollTop(),left:parseInt(t.css(_),10)+o*i.scrollLeft()})},_attachStaticEvents:function(e,t){function n(e){e.on(s+y,o(i._hideStatic,i,t))}var i=this,r=e.allowHideAfter,l=!isNaN(r)&&r>0;e.hideOnClick?l?a(function(){n(t)},r):n(t):e.button&&(l?a(function(){n(t.find(d))},r):n(t.find(d)))},_showStatic:function(e,t){var n=this,i=t.autoHideAfter,o=t.animation,r=t.stacking==k||t.stacking==_?"prependTo":"appendTo";e.addClass(n._guid)[r](t.appendTo).hide().kendoAnimate(o.open||!1),n._attachStaticEvents(t,e),i>0&&a(function(){n._hideStatic(e)},i)},_hideStatic:function(e){e.kendoAnimate(r(this.options.animation.close||!1,{complete:function(){e.off(y).find(d).off(y),e.remove()}})),this._triggerHide(e)},_triggerHide:function(e){this.trigger(u,{element:e}),this.angular("cleanup",function(){return{elements:e}})},show:function(i,o,a){var s,u,d=this,p=d.options,f=e(x);return o||(o=h),null!==i&&i!==t&&""!==i&&(n.isFunction(i)&&(i=i()),u={typeIcon:o,content:""},s=e.isPlainObject(i)?r(u,i):r(u,{content:i}),f.addClass(c+"-"+o).toggleClass(c+"-button",p.button).attr("data-role","alert").css({width:p.width,height:p.height}).append(d._getCompiled(o,a)(s)),d.angular("compile",function(){return{elements:f,data:[{dataItem:s}]}}),e(p.appendTo)[0]?d._showStatic(f,p):d._showPopup(f,p),d.trigger(l,{element:f})),d},showText:function(e,t){this.show(e,t,!0)},info:function(e){return this.show(e,h)},success:function(e){return this.show(e,f)},warning:function(e){return this.show(e,m)},error:function(e){return this.show(e,g)},hide:function(){var t=this,n=t.getNotifications();return n.each(t.options.appendTo?function(n,i){t._hideStatic(e(i))}:function(n,i){var o=e(i).data("kendoPopup");o&&t._hidePopup(o)}),t},getNotifications:function(){var t=this,n=e("."+t._guid+":not(."+p+")");return t.options.appendTo?n:n.children("."+c)},setOptions:function(e){var n,o=this;i.fn.setOptions.call(o,e),n=o.options,e.templates!==t&&o._compileTemplates(n.templates),(e.stacking!==t||e.position!==t)&&o._compileStacking(n.stacking,n.position.top,n.position.left)},destroy:function(){i.fn.destroy.call(this),this.getNotifications().off(y).find(d).off(y)}});n.ui.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.tooltip.min",["kendo.core.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e){for(;e.length;)i(e),e=e.parent()}function i(e){var t=e.data(a.ns+"title");t&&(e.attr("title",t),e.removeData(a.ns+"title"))}function o(e){var t=e.attr("title");t&&(e.data(a.ns+"title",t),e.attr("title",""))}function r(e){for(;e.length&&!e.is("body");)o(e),e=e.parent()}var a=window.kendo,s=a.ui.Widget,l=a.ui.Popup,u=a.isFunction,c=e.isPlainObject,d=e.extend,p=e.proxy,h=e(document),f=a.isLocalUrl,m="_tt_active",g="aria-describedby",v="show",_="hide",b="error",w="contentLoad",k="requestStart",y="k-content-frame",x='<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#">#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div> #}#<div class="k-tooltip-content"></div>#if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>',C=a.template("<iframe frameborder='0' class='"+y+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),T=".kendoTooltip",S={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"}},D={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},F={bottom:"n",top:"s",left:"e",right:"w",center:"n"},E={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}},I=function(e){return e.target.data(a.ns+"title")},P=s.extend({init:function(e,t){var n,i=this;s.fn.init.call(i,e,t),n=i.options.position.match(/left|right/)?"horizontal":"vertical",i.dimensions=E[n],i._documentKeyDownHandler=p(i._documentKeyDown,i),i.element.on(i.options.showOn+T,i.options.filter,p(i._showOn,i)).on("mouseenter"+T,i.options.filter,p(i._mouseenter,i)),this.options.autoHide&&i.element.on("mouseleave"+T,i.options.filter,p(i._mouseleave,i))},options:{name:"Tooltip",filter:"",content:I,showAfter:100,callout:!0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:40,hide:!0}}},events:[v,_,w,b,k],_mouseenter:function(t){r(e(t.currentTarget))},_showOn:function(t){var n=this,i=e(t.currentTarget);n.options.showOn&&n.options.showOn.match(/click|focus/)?n._show(i):(clearTimeout(n.timeout),n.timeout=setTimeout(function(){n._show(i)},n.options.showAfter))},_appendContent:function(e){var t,n=this,i=n.options.content,o=n.content,r=n.options.iframe;c(i)&&i.url?("iframe"in n.options||(r=!f(i.url)),n.trigger(k,{options:i,target:e}),r?(o.hide(),t=o.find("."+y)[0],t?t.src=i.url||t.src:o.html(C({content:i})),o.find("."+y).off("load"+T).on("load"+T,function(){n.trigger(w),o.show()})):(o.empty(),a.ui.progress(o,!0),n._ajaxRequest(i))):i&&u(i)?(i=i({sender:this,target:e}),o.html(i||"")):o.html(i),n.angular("compile",function(){return{elements:o}})},_ajaxRequest:function(e){var t=this;jQuery.ajax(d({type:"GET",dataType:"html",cache:!1,error:function(e,n){a.ui.progress(t.content,!1),t.trigger(b,{status:n,xhr:e})},success:p(function(e){a.ui.progress(t.content,!1),t.content.html(e),t.trigger(w)},t)},e))},_documentKeyDown:function(e){e.keyCode===a.keys.ESC&&this.hide()},refresh:function(){var e=this,t=e.popup;t&&t.options.anchor&&e._appendContent(t.options.anchor)},hide:function(){this.popup&&this.popup.close()},show:function(e){e=e||this.element,r(e),this._show(e)},_show:function(e){var t=this,i=t.target();t.popup||t._initPopup(),i&&i[0]!=e[0]&&(t.popup.close(),t.popup.element.kendoStop(!0,!0)),i&&i[0]==e[0]||(t._appendContent(e),t.popup.options.anchor=e),t.popup.one("deactivate",function(){n(e),e.removeAttr(g),this.element.removeAttr("id").attr("aria-hidden",!0),h.off("keydown"+T,t._documentKeyDownHandler)}),t.popup.open()},_initPopup:function(){var t=this,n=t.options,i=e(a.template(x)({callout:n.callout&&"center"!==n.position,dir:F[n.position],autoHide:n.autoHide}));t.popup=new l(i,d({activate:function(){var e=this.options.anchor,i=e[0].id||t.element[0].id;i&&(e.attr(g,i+m),this.element.attr("id",i+m)),n.callout&&t._positionCallout(),this.element.removeAttr("aria-hidden"),h.on("keydown"+T,t._documentKeyDownHandler),t.trigger(v)},close:function(){t.trigger(_)},copyAnchorStyles:!1,animation:n.animation},S[n.position])),i.css({width:n.width,height:n.height}),t.content=i.find(".k-tooltip-content"),t.arrow=i.find(".k-callout"),n.autoHide?i.on("mouseleave"+T,p(t._mouseleave,t)):i.on("click"+T,".k-tooltip-button",p(t._closeButtonClick,t))},_closeButtonClick:function(e){e.preventDefault(),this.hide()},_mouseleave:function(t){if(this.popup){var i=e(t.currentTarget),o=i.offset(),r=t.pageX,a=t.pageY;if(o.right=o.left+i.outerWidth(),o.bottom=o.top+i.outerHeight(),r>o.left&&o.right>r&&a>o.top&&o.bottom>a)return;this.popup.close()}else n(e(t.currentTarget));clearTimeout(this.timeout)},_positionCallout:function(){var t=this,n=t.options.position,i=t.dimensions,o=i.offset,r=t.popup,a=r.options.anchor,s=e(a).offset(),l=parseInt(t.arrow.css("border-top-width"),10),u=e(r.element).offset(),c=F[r.flipped?D[n]:n],d=s[o]-u[o]+e(a)[i.size]()/2-l;t.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+c).css(o,d)},target:function(){return this.popup?this.popup.options.anchor:null},destroy:function(){var e=this.popup;e&&(e.element.off(T),e.destroy()),clearTimeout(this.timeout),this.element.off(T),h.off("keydown"+T,this._documentKeyDownHandler),s.fn.destroy.call(this)}});a.ui.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.toolbar.min",["kendo.core.min","kendo.userevents.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(){var e,t=this.options.anchor,n=t.outerWidth();x.wrap(this.element).addClass("k-split-wrapper"),e="border-box"!==this.element.css("box-sizing")?n-(this.element.outerWidth()-this.element.width()):n,this.element.css({fontFamily:t.css("font-family"),"min-width":e})}function i(e){e.target.is(".k-toggle-button")||e.target.toggleClass(B,"press"==e.type)}function o(t){return t=e(t),t.hasClass("km-actionsheet")?t.closest(".km-popup-wrapper"):t.addClass("km-widget km-actionsheet").wrap('<div class="km-actionsheet-wrapper km-actionsheet-tablet km-widget km-popup"></div>').parent().wrap('<div class="km-popup-wrapper k-popup"></div>').parent()}function r(e){e.preventDefault()}function a(t,n){var i="next"===n?e.fn.next:e.fn.prev,o="next"===n?e.fn.first:e.fn.last,r=i.call(t);return r.is(":kendoFocusable")||!r.length?r:r.find(":kendoFocusable").length?o.call(r.find(":kendoFocusable")):a(r,n)}var s,l,u,c,d,p,h,f,m,g,v,_,b,w,k,y,x=window.kendo,C=x.Class,T=x.ui.Widget,S=e.proxy,D=x.isFunction,F=x.keys,E="k-toolbar",I="k-button",P="k-overflow-button",A="k-toggle-button",M="k-button-group",H="k-split-button",O="k-separator",z="k-popup",V="k-toolbar-resizable",B="k-state-active",L="k-state-disabled",R="k-state-hidden",N="k-group-start",W="k-group-end",U="k-primary",j="k-icon",q="k-i-",$="k-button-icon",G="k-button-icontext",Y="k-list-container k-split-container",Q="k-split-button-arrow",K="k-overflow-anchor",J="k-overflow-container",X="k-toolbar-first-visible",Z="k-toolbar-last-visible",ee="click",te="toggle",ne="open",ie="close",oe="overflowOpen",re="overflowClose",ae="never",se="auto",le="always",ue="k-overflow-hidden",ce=x.attr("uid");x.toolbar={},s={overflowAnchor:'<div tabindex="0" class="k-overflow-anchor"></div>',overflowContainer:'<ul class="k-overflow-container k-list-container"></ul>'},x.toolbar.registerComponent=function(e,t,n){s[e]={toolbar:t,overflow:n}},l=x.Class.extend({addOverflowAttr:function(){this.element.attr(x.attr("overflow"),this.options.overflow||se)},addUidAttr:function(){this.element.attr(ce,this.options.uid)},addIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id)},addOverflowIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id+"_overflow")},attributes:function(){this.options.attributes&&this.element.attr(this.options.attributes)},show:function(){this.element.removeClass(R).show(),this.options.hidden=!1},hide:function(){this.element.addClass(R).hide(),this.options.hidden=!0},remove:function(){this.element.remove()},enable:function(e){e===t&&(e=!0),this.element.toggleClass(L,!e),this.options.enable=e},twin:function(){var e=this.element.attr(ce);return this.overflow?this.toolbar.element.find("["+ce+"='"+e+"']").data(this.options.type):this.toolbar.options.resizable?this.toolbar.popup.element.find("["+ce+"='"+e+"']").data(this.options.type):t}}),x.toolbar.Item=l,u=l.extend({init:function(n,i){var o=e(n.useButtonTag?'<button tabindex="0"></button>':'<a href tabindex="0"></a>');this.element=o,this.options=n,this.toolbar=i,this.attributes(),n.primary&&o.addClass(U),n.togglable&&(o.addClass(A),this.toggle(n.selected)),n.url===t||n.useButtonTag||(o.attr("href",n.url),n.mobile&&o.attr(x.attr("role"),"button")),n.group&&(o.attr(x.attr("group"),n.group),this.group=this.toolbar.addToGroup(this,n.group)),!n.togglable&&n.click&&D(n.click)&&(this.clickHandler=n.click),n.togglable&&n.toggle&&D(n.toggle)&&(this.toggleHandler=n.toggle)},toggle:function(e,t){e=!!e,this.group&&e?this.group.select(this):this.group||this.select(e),t&&this.twin()&&this.twin().toggle(e)},getParentGroup:function(){return this.options.isChild?this.element.closest("."+M).data("buttonGroup"):t},_addGraphics:function(){var t,n,i,o=this.element,r=this.options.icon,a=this.options.spriteCssClass,s=this.options.imageUrl;(a||s||r)&&(t=!0,o.contents().not("span.k-sprite,span."+j+",img.k-image").each(function(n,i){(1==i.nodeType||3==i.nodeType&&e.trim(i.nodeValue).length>0)&&(t=!1)}),o.addClass(t?$:G)),r?(n=o.children("span."+j).first(),n[0]||(n=e('<span class="'+j+'"></span>').prependTo(o)),n.addClass(q+r)):a?(n=o.children("span.k-sprite").first(),n[0]||(n=e('<span class="k-sprite"></span>').prependTo(o)),n.addClass(a)):s&&(i=o.children("img.k-image").first(),i[0]||(i=e('<img alt="icon" class="k-image" />').prependTo(o)),i.attr("src",s))}}),x.toolbar.Button=u,c=u.extend({init:function(e,t){u.fn.init.call(this,e,t);var n=this.element;n.addClass(I),this.addIdAttr(),e.align&&n.addClass("k-align-"+e.align),"overflow"!=e.showText&&e.text&&n.html(e.mobile?'<span class="km-text">'+e.text+"</span>":e.text),e.hasIcon="overflow"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),e.hidden&&this.hide(),this.element.data({type:"button",button:this})},select:function(e){e===t&&(e=!1),this.element.toggleClass(B,e),this.options.selected=e}}),x.toolbar.ToolBarButton=c,d=u.extend({init:function(e,t){this.overflow=!0,u.fn.init.call(this,e,t);var n=this.element;"toolbar"!=e.showText&&e.text&&n.html(e.mobile?'<span class="km-text">'+e.text+"</span>":'<span class="k-text">'+e.text+"</span>"),e.hasIcon="toolbar"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),e.isChild||this._wrap(),this.addOverflowIdAttr(),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),n.addClass(P+" "+I),e.hidden&&this.hide(),this.element.data({type:"button",button:this})},_wrap:function(){this.element=this.element.wrap("<li></li>").parent()},overflowHidden:function(){this.element.addClass(ue)},select:function(e){e===t&&(e=!1),this.options.isChild?this.element.toggleClass(B,e):this.element.find(".k-button").toggleClass(B,e),this.options.selected=e}}),x.toolbar.OverflowButton=d,x.toolbar.registerComponent("button",c,d),p=l.extend({createButtons:function(t){var n,i,o=this.options,r=o.buttons||[];for(i=0;r.length>i;i++)r[i].uid||(r[i].uid=x.guid()),n=new t(e.extend({mobile:o.mobile,isChild:!0,type:"button"},r[i]),this.toolbar),n.element.appendTo(this.element)},refresh:function(){this.element.children().filter(":not('."+R+"'):first").addClass(N),this.element.children().filter(":not('."+R+"'):last").addClass(W)}}),x.toolbar.ButtonGroup=p,h=p.extend({init:function(t,n){var i=this.element=e("<div></div>");this.options=t,this.toolbar=n,this.addIdAttr(),t.align&&i.addClass("k-align-"+t.align),this.createButtons(c),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass(M),this.element.data({type:"buttonGroup",buttonGroup:this})}}),x.toolbar.ToolBarButtonGroup=h,f=p.extend({init:function(t,n){var i=this.element=e("<li></li>");this.options=t,this.toolbar=n,this.overflow=!0,this.addOverflowIdAttr(),this.createButtons(d),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass((t.mobile?"":M)+" k-overflow-group"),this.element.data({type:"buttonGroup",buttonGroup:this})},overflowHidden:function(){this.element.addClass(ue)}}),x.toolbar.OverflowButtonGroup=f,x.toolbar.registerComponent("buttonGroup",h,f),m=l.extend({init:function(t,n){var i=this.element=e('<div class="'+H+'" tabindex="0"></div>');this.options=t,this.toolbar=n,this.mainButton=new c(e.extend({},t,{hidden:!1}),n),this.arrowButton=e('<a class="'+I+" "+Q+'"><span class="'+(t.mobile?"km-icon km-arrowdown":"k-icon k-i-arrow-s")+'"></span></a>'),this.popupElement=e('<ul class="'+Y+'"></ul>'),this.mainButton.element.removeAttr("href tabindex").appendTo(i),this.arrowButton.appendTo(i),this.popupElement.appendTo(i),t.align&&i.addClass("k-align-"+t.align),t.id||(t.id=t.uid),i.attr("id",t.id+"_wrapper"),this.addOverflowAttr(),this.addUidAttr(),this.createMenuButtons(),this.createPopup(),this._navigatable(),this.mainButton.main=!0,this.enable(t.enable),t.hidden&&this.hide(),i.data({type:"splitButton",splitButton:this,kendoPopup:this.popup})},_navigatable:function(){var t=this;t.popupElement.on("keydown","."+I,function(n){var i=e(n.target).parent();n.preventDefault(),n.keyCode===F.ESC||n.keyCode===F.TAB||n.altKey&&n.keyCode===F.UP?(t.toggle(),t.focus()):n.keyCode===F.DOWN?a(i,"next").focus():n.keyCode===F.UP?a(i,"prev").focus():(n.keyCode===F.SPACEBAR||n.keyCode===F.ENTER)&&t.toolbar.userEvents.trigger("tap",{target:e(n.target)})})},createMenuButtons:function(){var t,n,i=this.options,o=i.menuButtons;for(n=0;o.length>n;n++)t=new c(e.extend({mobile:i.mobile,type:"button",click:i.click},o[n]),this.toolbar),t.element.wrap("<li></li>").parent().appendTo(this.popupElement)},createPopup:function(){var t=this.options,i=this.element;this.popupElement.attr("id",t.id+"_optionlist").attr(ce,t.rootUid),t.mobile&&(this.popupElement=o(this.popupElement)),this.popup=this.popupElement.kendoPopup({appendTo:t.mobile?e(t.mobile).children(".km-pane"):null,anchor:i,isRtl:this.toolbar._isRtl,copyAnchorStyles:!1,animation:t.animation,open:n,activate:function(){this.element.find(":kendoFocusable").first().focus()},close:function(){i.focus()}}).data("kendoPopup"),this.popup.element.on(ee,"a.k-button",r)},remove:function(){this.popup.element.off(ee,"a.k-button"),this.popup.destroy(),this.element.remove()},toggle:function(){this.popup.toggle()},enable:function(e){e===t&&(e=!0),this.mainButton.enable(e),this.options.enable=e},focus:function(){this.element.focus()},hide:function(){this.popup&&this.popup.close(),this.element.addClass(R).hide(),this.options.hidden=!0},show:function(){this.element.removeClass(R).hide(),this.options.hidden=!1}}),x.toolbar.ToolBarSplitButton=m,g=l.extend({init:function(t,n){var i,o,r=this.element=e('<li class="'+H+'"></li>'),a=t.menuButtons;for(this.options=t,this.toolbar=n,this.overflow=!0,this.mainButton=new d(e.extend({isChild:!0},t)),this.mainButton.element.appendTo(r),o=0;a.length>o;o++)i=new d(e.extend({mobile:t.mobile,isChild:!0},a[o]),this.toolbar),i.element.appendTo(r);this.addUidAttr(),this.addOverflowAttr(),this.mainButton.main=!0,r.data({type:"splitButton",splitButton:this})},overflowHidden:function(){this.element.addClass(ue)}}),x.toolbar.OverflowSplitButton=g,x.toolbar.registerComponent("splitButton",m,g),v=l.extend({init:function(t,n){var i=this.element=e("<div>&nbsp;</div>");this.element=i,this.options=t,this.toolbar=n,this.attributes(),this.addIdAttr(),this.addUidAttr(),this.addOverflowAttr(),i.addClass(O),i.data({type:"separator",separator:this})}}),_=l.extend({init:function(t,n){var i=this.element=e("<li>&nbsp;</li>");this.element=i,this.options=t,this.toolbar=n,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),i.addClass(O),i.data({type:"separator",separator:this})},overflowHidden:function(){this.element.addClass(ue)}}),x.toolbar.registerComponent("separator",v,_),b=l.extend({init:function(t,n,i){var o=D(t)?t(n):t;o=o instanceof jQuery?o.wrap("<div></div>").parent():e("<div></div>").html(o),this.element=o,this.options=n,this.options.type="template",this.toolbar=i,this.attributes(),this.addUidAttr(),this.addIdAttr(),this.addOverflowAttr(),o.data({type:"template",template:this})}}),x.toolbar.TemplateItem=b,w=l.extend({init:function(t,n,i){var o=e(D(t)?t(n):t);o=o instanceof jQuery?o.wrap("<li></li>").parent():e("<li></li>").html(o),this.element=o,this.options=n,this.options.type="template",this.toolbar=i,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),this.addOverflowAttr(),o.data({type:"template",template:this})},overflowHidden:function(){this.element.addClass(ue)}}),x.toolbar.OverflowTemplateItem=w,k=C.extend({init:function(e){this.name=e,this.buttons=[]},add:function(e){this.buttons[this.buttons.length]=e},remove:function(t){var n=e.inArray(t,this.buttons);this.buttons.splice(n,1)},select:function(e){var t,n;for(n=0;this.buttons.length>n;n++)t=this.buttons[n],t.select(!1);e.select(!0),e.twin()&&e.twin().select(!0)}}),y=T.extend({init:function(t,n){var o,a=this;if(T.fn.init.call(a,t,n),n=a.options,t=a.wrapper=a.element,t.addClass(E+" k-widget"),this.uid=x.guid(),this._isRtl=x.support.isRtl(t),this._groups={},t.attr(ce,this.uid),a.isMobile="boolean"==typeof n.mobile?n.mobile:a.element.closest(".km-root")[0],a.animation=a.isMobile?{open:{effects:"fade"}}:{},a.isMobile&&(t.addClass("km-widget"),j="km-icon",q="km-",I="km-button",M="km-buttongroup km-widget",B="km-state-active",L="km-state-disabled"),n.resizable?(a._renderOverflow(),t.addClass(V),a.overflowUserEvents=new x.UserEvents(a.element,{threshold:5,allowSelection:!0,filter:"."+K,tap:S(a._toggleOverflow,a)}),a._resizeHandler=x.onResize(function(){a.resize()})):a.popup={element:e([])},n.items&&n.items.length)for(o=0;n.items.length>o;o++)a.add(n.items[o]);a.userEvents=new x.UserEvents(document,{threshold:5,allowSelection:!0,filter:"["+ce+"="+this.uid+"] a."+I+", ["+ce+"="+this.uid+"] ."+P,tap:S(a._buttonClick,a),press:i,release:i}),a.element.on(ee,"a.k-button",r),a._navigatable(),n.resizable&&a.popup.element.on(ee,NaN,r),n.resizable&&this._toggleOverflowAnchor(),x.notify(a)},events:[ee,te,ne,ie,oe,re],options:{name:"ToolBar",items:[],resizable:!0,mobile:null},addToGroup:function(e,t){var n;return n=this._groups[t]?this._groups[t]:this._groups[t]=new k,n.add(e),n},destroy:function(){var t=this;t.element.find("."+H).each(function(t,n){e(n).data("kendoPopup").destroy()}),t.element.off(ee,"a.k-button"),t.userEvents.destroy(),t.options.resizable&&(x.unbindResize(t._resizeHandler),t.overflowUserEvents.destroy(),
t.popup.element.off(ee,"a.k-button"),t.popup.destroy()),T.fn.destroy.call(t)},add:function(t){var n,i,o,r=s[t.type],a=t.template,l=this,u=l.isMobile?"":"k-item k-state-default",c=t.overflowTemplate;if(e.extend(t,{uid:x.guid(),animation:l.animation,mobile:l.isMobile,rootUid:l.uid}),t.menuButtons)for(o=0;t.menuButtons.length>o;o++)e.extend(t.menuButtons[o],{uid:x.guid()});a&&!c?t.overflow=ae:t.overflow||(t.overflow=se),t.overflow!==ae&&l.options.resizable&&(c?i=new w(c,t,l):r&&(i=new r.overflow(t,l),i.element.addClass(u)),i&&(t.overflow===se&&i.overflowHidden(),i.element.appendTo(l.popup.container),l.angular("compile",function(){return{elements:i.element.get()}}))),t.overflow!==le&&(a?n=new b(a,t,l):r&&(n=new r.toolbar(t,l)),n&&(l.options.resizable?(n.element.appendTo(l.element).css("visibility","hidden"),l._shrink(l.element.innerWidth()),n.element.css("visibility","visible")):n.element.appendTo(l.element),l.angular("compile",function(){return{elements:n.element.get()}})))},_getItem:function(t){var n,i,o,r,a=this.options.resizable;return n=this.element.find(t),n.length||(n=e(".k-split-container[data-uid="+this.uid+"]").find(t)),r=n.length?n.data("type"):"",i=n.data(r),i?(i.main&&(n=n.parent("."+H),r="splitButton",i=n.data(r)),a&&(o=i.twin())):a&&(n=this.popup.element.find(t),r=n.length?n.data("type"):"",o=n.data(r),o&&o.main&&(n=n.parent("."+H),r="splitButton",o=n.data(r))),{type:r,toolbar:i,overflow:o}},remove:function(e){var t=this._getItem(e);t.toolbar&&t.toolbar.remove(),t.overflow&&t.overflow.remove(),this.resize(!0)},hide:function(e){var t=this._getItem(e);t.toolbar&&("button"===t.toolbar.options.type&&t.toolbar.options.isChild?(t.toolbar.hide(),t.toolbar.getParentGroup().refresh()):t.toolbar.options.hidden||t.toolbar.hide()),t.overflow&&("button"===t.overflow.options.type&&t.overflow.options.isChild?(t.overflow.hide(),t.overflow.getParentGroup().refresh()):t.toolbar.options.hidden||t.overflow.hide()),this.resize(!0)},show:function(e){var t=this._getItem(e);t.toolbar&&("button"===t.toolbar.options.type&&t.toolbar.options.isChild?(t.toolbar.show(),t.toolbar.getParentGroup().refresh()):t.toolbar.options.hidden&&t.toolbar.show()),t.overflow&&("button"===t.overflow.options.type&&t.overflow.options.isChild?(t.toolbar.show(),t.overflow.getParentGroup().refresh()):t.overflow.options.hidden&&t.overflow.show()),this.resize(!0)},enable:function(e,n){var i=this._getItem(e);t===n&&(n=!0),i.toolbar&&i.toolbar.enable(n),i.overflow&&i.overflow.enable(n)},getSelectedFromGroup:function(e){return this.element.find("."+A+"[data-group='"+e+"']").filter("."+B)},toggle:function(n,i){var o=e(n),r=o.data("button");r.options.togglable&&(i===t&&(i=!0),r.toggle(i,!0))},_renderOverflow:function(){var t=this,n=s.overflowContainer,i=t._isRtl,r=i?"left":"right";t.overflowAnchor=e(s.overflowAnchor).addClass(I),t.element.append(t.overflowAnchor),t.isMobile?(t.overflowAnchor.append('<span class="km-icon km-more"></span>'),n=o(n)):t.overflowAnchor.append('<span class="k-icon k-i-arrow-s"></span>'),t.popup=new x.ui.Popup(n,{origin:"bottom "+r,position:"top "+r,anchor:t.overflowAnchor,isRtl:i,animation:t.animation,appendTo:t.isMobile?e(t.isMobile).children(".km-pane"):null,copyAnchorStyles:!1,open:function(n){var o=x.wrap(t.popup.element).addClass("k-overflow-wrapper");t.isMobile?t.popup.container.css("max-height",parseFloat(e(".km-content:visible").innerHeight())-15+"px"):o.css("margin-left",(i?-1:1)*((o.outerWidth()-o.width())/2+1)),t.trigger(oe)&&n.preventDefault()},activate:function(){this.element.find(":kendoFocusable").first().focus()},close:function(e){t.trigger(re)&&e.preventDefault(),this.element.focus()}}),t.popup.element.on("keydown","."+I,function(n){var i,o=e(n.target),r=o.parent(),s=r.is("."+M)||r.is("."+H);n.preventDefault(),n.keyCode===F.ESC||n.keyCode===F.TAB||n.altKey&&n.keyCode===F.UP?(t._toggleOverflow(),t.overflowAnchor.focus()):n.keyCode===F.DOWN?(i=!s||s&&o.is(":last-child")?r:o,a(i,"next").focus()):n.keyCode===F.UP?(i=!s||s&&o.is(":first-child")?r:o,a(i,"prev").focus()):(n.keyCode===F.SPACEBAR||n.keyCode===F.ENTER)&&t.userEvents.trigger("tap",{target:e(n.target)})}),t.popup.container=t.isMobile?t.popup.element.find("."+J):t.popup.element,t.popup.container.attr(ce,this.uid)},_toggleOverflowAnchor:function(){var e=!1;e=this.options.mobile?this.popup.element.find("."+J).children(":not(."+ue+", ."+z+")").length>0:this.popup.element.children(":not(."+ue+", ."+z+")").length>0,this.overflowAnchor.css(e?{visibility:"visible",width:""}:{visibility:"hidden",width:"1px"})},_buttonClick:function(n){var i,o,r,a,s,l,u,c=this,d=n.target.closest("."+Q).length;return n.preventDefault(),d?(c._toggle(n),t):(o=e(n.target).closest("."+I,c.element),o.hasClass(K)||(r=o.data("button"),!r&&c.popup&&(o=e(n.target).closest("."+P,c.popup.container),r=o.parent("li").data("button")),r&&r.options.enable&&(r.options.togglable?(s=D(r.toggleHandler)?r.toggleHandler:null,r.toggle(!r.options.selected,!0),l={target:o,group:r.options.group,checked:r.options.selected,id:r.options.id},s&&s.call(c,l),c.trigger(te,l)):(s=D(r.clickHandler)?r.clickHandler:null,l={sender:c,target:o,id:r.options.id},s&&s.call(c,l),c.trigger(ee,l)),r.options.url&&(r.options.attributes&&r.options.attributes.target&&(u=r.options.attributes.target),window.open(r.options.url,u||"_self")),o.hasClass(P)&&c.popup.close(),a=o.closest(".k-split-container"),a[0]&&(i=a.data("kendoPopup"),(i?i:a.parents(".km-popup-wrapper").data("kendoPopup")).close()))),t)},_navigatable:function(){var t=this;t.element.attr("tabindex",0).focus(function(){var t=e(this).find(":kendoFocusable:first");t.is("."+K)&&(t=a(t,"next")),t[0].focus()}).on("keydown",S(t._keydown,t))},_keydown:function(n){var i,o,r,a,s,l=e(n.target),u=n.keyCode,c=this.element.children(":not(.k-separator):visible");return u===F.TAB&&(i=l.parentsUntil(this.element).last(),o=!1,r=!1,i.length||(i=l),i.is("."+K)&&(n.shiftKey&&n.preventDefault(),c.last().is(":kendoFocusable")?c.last().focus():c.last().find(":kendoFocusable").last().focus()),n.shiftKey||c.index(i)!==c.length-1||(o=i.is("."+M)?l.is(":last-child"):!0),n.shiftKey&&1===c.index(i)&&(r=i.is("."+M)?l.is(":first-child"):!0),o&&this.overflowAnchor&&"hidden"!==this.overflowAnchor.css("visibility")&&(n.preventDefault(),this.overflowAnchor.focus()),r&&(n.preventDefault(),this.wrapper.prev(":kendoFocusable").focus())),n.altKey&&u===F.DOWN?(a=e(document.activeElement).data("splitButton"),s=e(document.activeElement).is("."+K),a?a.toggle():s&&this._toggleOverflow(),t):u!==F.SPACEBAR&&u!==F.ENTER||l.is("input, checkbox")?t:(n.preventDefault(),l.is("."+H)&&(l=l.children().first()),this.userEvents.trigger("tap",{target:l}),t)},_toggle:function(t){var n,i=e(t.target).closest("."+H).data("splitButton");t.preventDefault(),i.options.enable&&(n=i.popup.element.is(":visible")?this.trigger(ie,{target:i.element}):this.trigger(ne,{target:i.element}),n||i.toggle())},_toggleOverflow:function(){this.popup.toggle()},_resize:function(e){var t=e.width;this.options.resizable&&(this.popup.close(),this._shrink(t),this._stretch(t),this._markVisibles(),this._toggleOverflowAnchor())},_childrenWidth:function(){var t=0;return this.element.children(":visible:not('."+R+"')").each(function(){t+=e(this).outerWidth(!0)}),Math.ceil(t)},_shrink:function(e){var t,n,i;if(e<this._childrenWidth())for(n=this.element.children(":visible:not([data-overflow='never'], ."+K+")"),i=n.length-1;i>=0&&(t=n.eq(i),!(e>this._childrenWidth()));i--)this._hideItem(t)},_stretch:function(e){var t,n,i;if(e>this._childrenWidth())for(n=this.element.children(":hidden:not('."+R+"')"),i=0;n.length>i&&(t=n.eq(i),!(e<this._childrenWidth())&&this._showItem(t,e));i++);},_hideItem:function(e){e.hide(),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").removeClass(ue)},_showItem:function(e,t){return e.length&&t>this._childrenWidth()+e.outerWidth(!0)?(e.show(),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").addClass(ue),!0):!1},_markVisibles:function(){var e=this.popup.container.children(),t=this.element.children(":not(.k-overflow-anchor)"),n=e.filter(":not(.k-overflow-hidden)"),i=t.filter(":visible");e.add(t).removeClass(X+" "+Z),n.first().add(i.first()).addClass(X),n.last().add(i.last()).addClass(Z)}}),x.ui.plugin(y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.list.min",["kendo.data.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e,n){return e!==t&&""!==e&&null!==e&&("boolean"===n?e=!!e:"number"===n?e=+e:"string"===n&&(e=""+e)),e}function i(e,t){var n,i,o,r,a=t.length,s=e.length,l=[],u=[];if(s)for(o=0;s>o;o++){for(n=e[o],i=!1,r=0;a>r;r++)if(n===t[r]){i=!0,l.push({index:o,item:n});break}i||u.push(n)}return{changed:l,unchanged:u}}function o(t,n){var i,r=!1;return t.filters&&(i=e.grep(t.filters,function(e){return r=o(e,n),e.filters?e.filters.length:e.field!=n}),r||t.filters.length===i.length||(r=!0),t.filters=i),r}var r,a,s=window.kendo,l=s.ui,u=l.Widget,c=s.keys,d=s.support,p=s.htmlEncode,h=s._activeElement,f=s.data.ObservableArray,m="id",g="change",v="k-state-focused",_="k-state-hover",b="k-loading",w="open",k="close",y="cascade",x="select",C="selected",T="requestStart",S="requestEnd",D="width",F=e.extend,E=e.proxy,I=e.isArray,P=d.browser,A=P.msie&&9>P.version,M=/"/g,H={ComboBox:"DropDownList",DropDownList:"ComboBox"},O=s.ui.DataBoundWidget.extend({init:function(t,n){var i,o=this,r=o.ns;u.fn.init.call(o,t,n),t=o.element,n=o.options,o._isSelect=t.is(x),o._isSelect&&o.element[0].length&&(n.dataSource||(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value")),o.ul=e('<ul unselectable="on" class="k-list k-reset"/>').attr({tabIndex:-1,"aria-hidden":!0}),o.list=e("<div class='k-list-container'/>").append(o.ul).on("mousedown"+r,E(o._listMousedown,o)),i=t.attr(m),i&&(o.list.attr(m,i+"-list"),o.ul.attr(m,i+"_listbox")),o._header(),o._accessors(),o._initValue()},options:{valuePrimitive:!1,headerTemplate:""},setOptions:function(e){u.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable)},focus:function(){this._focused.focus()},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},_listOptions:function(t){var n=this,i=n.options,o=i.virtual,r=E(n._listBound,n);return o="object"==typeof o?o:{},t=e.extend({autoBind:!1,selectable:!0,dataSource:n.dataSource,click:E(n._click,n),change:E(n._listChange,n),activate:E(n._activateItem,n),deactivate:E(n._deactivateItem,n),dataBinding:function(){n.trigger("dataBinding")},dataBound:r,height:i.height,dataValueField:i.dataValueField,dataTextField:i.dataTextField,groupTemplate:i.groupTemplate,fixedGroupTemplate:i.fixedGroupTemplate,template:i.template},t,o),t.template||(t.template="#:"+s.expr(t.dataTextField,"data")+"#"),i.$angular&&(t.$angular=i.$angular),t},_initList:function(){var e=this,t=e._listOptions({selectedItemChange:E(e._listChange,e)});e.listView=e.options.virtual?new s.ui.VirtualList(e.ul,t):new s.ui.StaticList(e.ul,t),e.listView.bind("listBound",E(e._listBound,e)),e._setListValue()},_setListValue:function(e){e=e||this.options.value,e!==t&&this.listView.value(e).done(E(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},_clearFilter:function(){this.options.virtual||this.listView.bound(!1),this._filterSource()},_filterSource:function(e,t){var n=this,i=n.options,r=n.dataSource,a=F({},r.filter()||{}),s=o(a,i.dataTextField);(e||s)&&n.trigger("filtering",{filter:e})||(a={filters:a.filters||[],logic:"and"},e&&a.filters.push(e),n._cascading&&this.listView.setDSFilter(a),t?r.read(r._mergeState({filter:a})):r.filter(a))},_header:function(){var t,n=this,i=n.options.headerTemplate;e.isFunction(i)&&(i=i({})),i&&(n.list.prepend(i),t=n.ul.prev(),n.header=t[0]?t:null,n.header&&n.angular("compile",function(){return{elements:n.header}}))},_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,n=t.dataSource.reader.model;n&&n.fields&&(e=n.fields[t.options.dataTextField],e&&e.type&&"string"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;u.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(n){var i=this;if(n===t)return i.listView.selectedDataItems()[0];if("number"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data("uid"));n=e(i.items()).index(n)}return i.dataSource.flatView()[n]},_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,n=e.options,i=s.getter,o=t.attr(s.attr("text-field")),r=t.attr(s.attr("value-field"));!n.dataTextField&&o&&(n.dataTextField=o),!n.dataValueField&&r&&(n.dataValueField=r),e._text=i(n.dataTextField),e._value=i(n.dataValueField)},_aria:function(e){var n=this,i=n.options,o=n._focused.add(n.filterInput);i.suggest!==t&&o.attr("aria-autocomplete",i.suggest?"both":"list"),e=e?e+" "+n.ul[0].id:n.ul[0].id,o.attr("aria-owns",e),n.ul.attr("aria-live",n._isFilterEnabled()?"polite":"off")},_blur:function(){var e=this;e._change(),e.close()},_change:function(){var e,i=this,o=i.selectedIndex,r=i.options.value,a=i.value();i._isSelect&&!i.listView.bound()&&r&&(a=r),a!==n(i._old,typeof a)?e=!0:o!==t&&o!==i._oldIndex&&(e=!0),e&&(i._old=a,i._oldIndex=o,i._typing||i.element.trigger(g),i.trigger(g)),i.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,n=e.options,i=e.element.is("[disabled]");n.enable!==t&&(n.enabled=n.enable),!n.enabled||i?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_dataValue:function(e){var n=this._value(e);return n===t&&(n=this._text(e)),n},_offsetHeight:function(){var t=0,n=this.listView.content.prevAll(":visible");return n.each(function(){var n=e(this);t+=n.hasClass("k-list-filter")?n.children().outerHeight():n.outerHeight()}),t},_height:function(e){var n,i,o=this,r=o.list,a=o.options.height,s=o.popup.visible();if(e){if(i=r.add(r.parent(".k-animation-container")).show(),!r.is(":visible"))return i.hide(),t;a=o.listView.content[0].scrollHeight>a?a:"auto",i.height(a),"auto"!==a&&(n=o._offsetHeight(),n&&(a-=n)),o.listView.content.height(a),s||i.hide()}return a},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,o=this.wrapper;if(n.data(D)||!i)return e=window.getComputedStyle?window.getComputedStyle(o[0],null):0,t=parseFloat(e&&e.width)||o.outerWidth(),e&&P.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i="border-box"!==n.css("box-sizing")?t-(n.outerWidth()-n.width()):t,n.css({fontFamily:o.css("font-family"),width:i}).data(D,i),!0},_openHandler:function(e){this._adjustListWidth(),this.trigger(w)?e.preventDefault():(this._focused.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_closeHandler:function(e){this.trigger(k)?e.preventDefault():(this._focused.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(".k-first:first"),n=this.listView.content.prev(".k-group-header"),i=0;n[0]&&"none"!==n[0].style.display&&("auto"!==e&&(i=s.support.scrollbar()),i+=parseFloat(t.css("border-right-width"),10)+parseFloat(t.children(".k-group").css("padding-right"),10),n.css("padding-right",i))},_calculatePopupHeight:function(e){var t=this._height(this.dataSource.flatView().length||e);this._calculateGroupPadding(t)},_resizePopup:function(e){this.options.virtual||(this.popup.element.is(":visible")?this._calculatePopupHeight(e):this.popup.one("open",function(e){return E(function(){this._calculatePopupHeight(e)},this)}.call(this,e)))},_popup:function(){var e=this;e.popup=new l.Popup(e.list,F({},e.options.popup,{anchor:e.wrapper,open:E(e._openHandler,e),close:E(e._closeHandler,e),animation:e.options.animation,isRtl:d.isRtl(e.wrapper)}))},_makeUnselectable:function(){A&&this.list.find("*").not(".k-textbox").attr("unselectable","on")},_toggleHover:function(t){e(t.currentTarget).toggleClass(_,"mouseenter"===t.type)},_toggle:function(e,n){var i=this,o=d.mobileOS&&(d.touch||d.MSPointers||d.pointers);e=e!==t?e:!i.popup.visible(),n||o||i._focused[0]===h()||(i._prevent=!0,i._focused.focus(),i._prevent=!1),i[e?w:k]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e._old===e.value()&&e._oldIndex===e.selectedIndex||(e._cascadeTriggered=!0,e.trigger(y,{userTriggered:e._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(g)},_unbindDataSource:function(){var e=this;e.dataSource.unbind(T,e._requestStartHandler).unbind(S,e._requestEndHandler).unbind("error",e._errorHandler)}});F(O,{inArray:function(e,t){var n,i,o=t.children;if(!e||e.parentNode!==t)return-1;for(n=0,i=o.length;i>n;n++)if(e===o[n])return n;return-1},unifyType:n}),s.ui.List=O,l.Select=O.extend({init:function(e,t){O.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,n=this;n.options.dataSource=e,n._dataSource(),n.listView.bound()&&(n._initialIndex=null),n.listView.setDataSource(n.dataSource),n.options.autoBind&&n.dataSource.fetch(),t=n._parentWidget(),t&&n._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var n=this;return e===t?n.selectedIndex:(n._select(e),n._old=n._accessor(),n._oldIndex=n.selectedIndex,t)},search:function(e){var t,n,i,o,r;e="string"==typeof e?e:this.text(),t=this,n=e.length,i=t.options,o=i.ignoreCase,r=i.dataTextField,clearTimeout(t._typingTimeout),(!n||n>=i.minLength)&&(t._state="filter",t._isFilterEnabled()?(t._open=!0,t._filterSource({value:o?e.toLowerCase():e,field:r,operator:i.filter,ignoreCase:o})):t._filter(e))},_accessor:function(e,t){return this[this._isSelect?"_accessorSelect":"_accessorInput"](e,t)},_accessorInput:function(e){var n=this.element[0];return e===t?n.value:(null===e&&(e=""),n.value=e,t)},_accessorSelect:function(e,n){var i,o=this.element[0],r=o.selectedIndex;return e===t?(r>-1&&(i=o.options[r]),i&&(e=i.value),e||""):(r>-1&&(o.options[r].removeAttribute(C),o.options[r].selected=!1),n===t&&(n=-1),null!==e&&""!==e&&-1==n?this._custom(e):(e?o.value=e:o.selectedIndex=n,o.selectedIndex>-1&&(i=o.options[o.selectedIndex]),i&&i.setAttribute(C,C)),t)},_custom:function(t){var n=this,i=n.element,o=n._customOption;o||(o=e("<option/>"),n._customOption=o,i.append(o)),o.text(t),o[0].setAttribute(C,C),o[0].selected=!0},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrow.removeClass(b),e._focused.attr("aria-busy",!1),e._busy=null},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(function(){e._arrow&&(e._focused.attr("aria-busy",!0),e._arrow.addClass(b))},100))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var t,n=this,i=n.element,o=n.options,r=o.dataSource||{};r=e.isArray(r)?{data:r}:r,n._isSelect&&(t=i[0].selectedIndex,t>-1&&(o.index=t),r.select=i,r.fields=[{field:o.dataTextField},{field:o.dataValueField}]),n.dataSource?n._unbindDataSource():(n._requestStartHandler=E(n._showBusy,n),n._requestEndHandler=E(n._requestEnd,n),n._errorHandler=E(n._hideBusy,n)),n.dataSource=s.data.DataSource.create(r).bind(T,n._requestStartHandler).bind(S,n._requestEndHandler).bind("error",n._errorHandler)},_firstItem:function(){this.listView.focusFirst()},_lastItem:function(){this.listView.focusLast()},_nextItem:function(){this.listView.focusNext()},_prevItem:function(){this.listView.focusPrev()},_move:function(e){var n,i,o,r,a=this,s=e.keyCode,l=s===c.DOWN;if(s===c.UP||l){if(e.altKey)a.toggle(l);else{if(!a.listView.bound())return a._fetch||(a.dataSource.one(g,function(){a._fetch=!1,a._move(e)}),a._fetch=!0,a._filterSource()),e.preventDefault(),!0;if(o=a._focus(),a._fetch||o&&!o.hasClass("k-state-selected")||(l?(a._nextItem(),a._focus()||a._lastItem()):(a._prevItem(),a._focus()||a._firstItem())),a.trigger(x,{item:a._focus()}))return a._focus(o),t;a._select(a._focus(),!0),a.popup.visible()||a._blur()}e.preventDefault(),i=!0}else if(s===c.ENTER||s===c.TAB){if(a.popup.visible()&&e.preventDefault(),o=a._focus(),n=a.dataItem(),a.popup.visible()||n&&a.text()===a._text(n)||(o=null),r=a.filterInput&&a.filterInput[0]===h(),o){if(a.trigger(x,{item:o}))return;a._select(o)}else a.input&&(a._accessor(a.input.val()),a.listView.value(a.input.val()));a._focusElement&&a._focusElement(a.wrapper),r&&s===c.TAB?a.wrapper.focusout():a._blur(),a.close(),i=!0}else s===c.ESC&&(a.popup.visible()&&e.preventDefault(),a.close(),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,n,i){var o,r,a,s,l=this,u=l.element,c=e.length,d="",h=0;for(n&&(d=n);c>h;h++)o="<option",r=e[h],a=l._text(r),s=l._value(r),s!==t&&(s+="",-1!==s.indexOf('"')&&(s=s.replace(M,"&quot;")),o+=' value="'+s+'"'),o+=">",a!==t&&(o+=p(a)),o+="</option>",d+=o;u.html(d),i!==t&&(u[0].value=i,u[0].value&&!i&&(u[0].selectedIndex=-1))},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=o.on("reset",t._resetHandler))},_parentWidget:function(){var t=this.options.name,n=e("#"+this.options.cascadeFrom),i=n.data("kendo"+t);return i||(i=n.data("kendo"+H[t])),i},_cascade:function(){var e,t=this,n=t.options,i=n.cascadeFrom;if(i){if(e=t._parentWidget(),t._cascadeHandlerProxy=E(t._cascadeHandler,t),!e)return;n.autoBind=!1,e.bind("set",function(){t.one("set",function(e){t._selectedValue=e.value})}),e.first(y,t._cascadeHandlerProxy),e.listView.bound()?(t._toggleCascadeOnFocus(),t._cascadeSelect(e)):(e.one("dataBound",function(){t._toggleCascadeOnFocus()}),e.value()||t.enable(!1))}},_toggleCascadeOnFocus:function(){var e=this,t=e._parentWidget();t._focused.add(t.filterInput).bind("focus",function(){t.unbind(y,e._cascadeHandlerProxy),t.first(g,e._cascadeHandlerProxy)}),t._focused.add(t.filterInput).bind("focusout",function(){t.unbind(g,e._cascadeHandlerProxy),t.first(y,e._cascadeHandlerProxy)})},_cascadeHandler:function(e){var t=this._parentWidget(),n=this.value();this._userTriggered=e.userTriggered,this.listView.bound()&&this._clearSelection(t,!0),this._cascadeSelect(t,n)},_cascadeChange:function(e){var t=this,n=t._accessor()||t._selectedValue;t._selectedValue=null,t._userTriggered?t._clearSelection(e,!0):n?(n!==t.listView.value()[0]&&t.value(n),t.dataSource.view()[0]&&-1!==t.selectedIndex||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,n){var i,r,a=this,s=e.dataItem(),l=s?e._value(s):null,u=a.options.cascadeFromField||e.options.dataValueField;a._valueBeforeCascade=n!==t?n:a.value(),l||0===l?(i=a.dataSource.filter()||{},o(i,u),r=function(){a.unbind("dataBound",r),a._cascadeChange(e)},a.first("dataBound",r),a._cascading=!0,a._filterSource({field:u,operator:"eq",value:l}),a._cascading=!1):(a.enable(!1),a._clearSelection(e),a._triggerCascade(),a._triggerChange(),a._userTriggered=!1)}}),r=".StaticList",a=s.ui.DataBoundWidget.extend({init:function(t,n){u.fn.init.call(this,t,n),this.element.attr("role","listbox").on("click"+r,"li",E(this._click,this)).on("mouseenter"+r,"li",function(){e(this).addClass(_)}).on("mouseleave"+r,"li",function(){e(this).removeClass(_)}),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=s.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var i=this.options.value;i&&(this._values=e.isArray(i)?i.slice(0):[i]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=E(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},events:["click",g,"activate","deactivate","dataBinding","dataBound","selectedItemChange"],setDataSource:function(t){var n,i=this,o=t||{};o=e.isArray(o)?{data:o}:o,o=s.data.DataSource.create(o),i.dataSource?(i.dataSource.unbind(g,i._refreshHandler),n=i.value(),i.value([]),i.bound(!1),i.value(n)):i._refreshHandler=E(i.refresh,i),i.setDSFilter(o.filter()),i.dataSource=o.bind(g,i._refreshHandler),i._fixedHeader()},skip:function(){return this.dataSource.skip()},setOptions:function(e){u.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(r),this._refreshHandler&&this.dataSource.unbind(g,this._refreshHandler),clearTimeout(this._scrollId),u.fn.destroy.call(this)},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i;o>n?o=n:a>o+r&&(o=a-r),t.scrollTop=o}},selectedDataItems:function(e){return e===t?this._dataItems.slice():(this._dataItems=e,this._values=this._getValues(e),t)},_getValues:function(t){var n=this._valueGetter;return e.map(t,function(e){return n(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(this.element[0].children[this.element[0].children.length-1])},focus:function(n){var i,o=this,r=o._optionID;return n===t?o._current:(n=o._get(n),n=n[n.length-1],n=e(this.element[0].children[n]),o._current&&(o._current.removeClass(v).removeAttr("aria-selected").removeAttr(m),o.trigger("deactivate")),i=!!n[0],i&&(n.addClass(v),o.scroll(n),n.attr("id",r)),o._current=i?n:null,o.trigger("activate"),t)},focusIndex:function(){return this.focus()?this.focus().index():t},skipUpdate:function(e){this._skipUpdate=e},select:function(n){var i,o,r=this,a=r.options.selectable,s="multiple"!==a&&a!==!1,l=r._selectedIndices,u=[],c=[];if(n===t)return l.slice();if(n=r._get(n),1===n.length&&-1===n[0]&&(n=[]),o=r.isFiltered(),!o||s||!r._deselectFiltered(n)){if(s&&!o&&-1!==e.inArray(n[n.length-1],l))return r._dataItems.length&&r._view.length&&(r._dataItems=[r._view[l[0]].item]),t;i=r._deselect(n),c=i.removed,n=i.indices,n.length&&(s&&(n=[n[n.length-1]]),u=r._select(n)),(u.length||c.length)&&(r._valueComparer=null,r.trigger(g,{added:u,removed:c}))}},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 f?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(n){var i,o=this,r=o._valueDeferred;return n===t?o._values.slice():(o.setValue(n),r&&"resolved"!==r.state()||(o._valueDeferred=r=e.Deferred()),o.bound()&&(i=o._valueIndices(o._values),"multiple"===o.options.selectable&&o.select(-1),o.select(i),r.resolve()),o._skipUpdate=!1,r)},items:function(){return this.element.children(".k-item")},_click:function(t){t.isDefaultPrevented()||this.trigger("click",{item:e(t.currentTarget)})||this.select(t.currentTarget)},_valueExpr:function(e,t){var i,o,r=this,a=0,s=[];if(!r._valueComparer||r._valueType!==e){for(r._valueType=e;t.length>a;a++)s.push(n(t[a],e));i="for (var idx = 0; idx < "+s.length+"; idx++) { if (current === values[idx]) {   return idx; }} return -1;",o=Function("current","values",i),r._valueComparer=function(e){return o(e,s)}}return r._valueComparer},_dataItemPosition:function(e,t){var n=this._valueGetter(e),i=this._valueExpr(typeof n,t);return i(n)},_getter:function(){this._valueGetter=s.getter(this.options.dataValueField)},_deselect:function(t){var n,i,o,r=this,a=r.element[0].children,s=r.options.selectable,l=r._selectedIndices,u=r._dataItems,c=r._values,d=[],p=0,h=0;if(t=t.slice(),s!==!0&&t.length){if("multiple"===s)for(;t.length>p;p++)if(i=t[p],e(a[i]).hasClass("k-state-selected"))for(n=0;l.length>n;n++)if(o=l[n],o===i){e(a[o]).removeClass("k-state-selected"),d.push({position:n+h,dataItem:u.splice(n,1)[0]}),l.splice(n,1),t.splice(p,1),c.splice(n,1),h+=1,p-=1,n-=1;break}}else{for(;l.length>p;p++)e(a[l[p]]).removeClass("k-state-selected"),d.push({position:p,dataItem:u[p]});r._values=[],r._dataItems=[],r._selectedIndices=[]}return{indices:t,removed:d}},_deselectFiltered:function(t){for(var n,i,o,r=this.element[0].children,a=[],s=0;t.length>s;s++)i=t[s],n=this._view[i].item,o=this._dataItemPosition(n,this._values),o>-1&&(a.push(this.removeAt(o)),e(r[i]).removeClass("k-state-selected"));return a.length?(this.trigger(g,{added:[],removed:a}),!0):!1},_select:function(t){var n,i,o=this,r=o.element[0].children,a=o._view,s=[],l=0;for(-1!==t[t.length-1]&&o.focus(t);t.length>l;l++)i=t[l],n=a[i],-1!==i&&n&&(n=n.item,o._selectedIndices.push(i),o._dataItems.push(n),o._values.push(o._valueGetter(n)),e(r[i]).addClass("k-state-selected").attr("aria-selected",!0),s.push({dataItem:n}));return s},_get:function(n){return"number"==typeof n?n=[n]:I(n)||(n=e(n).data("offset-index"),n===t&&(n=-1),n=[n]),n},_template:function(){var e=this,t=e.options,n=t.template;return n?(n=s.template(n),n=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+n(e)+"</li>"}):n=s.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${'+s.expr(t.dataTextField,"data")+"}</li>",{useWithBlock:!1}),n},_templates:function(){var e,t,n={template:this.options.template,groupTemplate:this.options.groupTemplate,fixedGroupTemplate:this.options.fixedGroupTemplate};for(t in n)e=n[t],e&&"function"!=typeof e&&(n[t]=s.template(e));this.templates=n},_normalizeIndices:function(e){for(var n=[],i=0;e.length>i;i++)e[i]!==t&&n.push(e[i]);return n},_valueIndices:function(e,t){var n,i=this._view,o=0;if(t=t?t.slice():[],!e.length)return[];for(;i.length>o;o++)n=this._dataItemPosition(i[o].item,e),-1!==n&&(t[n]=o);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],n=this.content[0],i=n.scrollTop,o=e(t.children[0]).height(),r=Math.floor(i/o)||0,a=t.children[r]||t.lastChild,s=i>a.offsetTop;a;)if(s){if(a.offsetTop+o>i||!a.nextSibling)break;a=a.nextSibling}else{if(i>=a.offsetTop||!a.previousSibling)break;a=a.previousSibling}return this._view[e(a).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&&this.header.html(t(e.group)))},_renderItem:function(e){var t='<li tabindex="-1" role="option" unselectable="on" class="k-item',n=e.item,i=0!==e.index,o=e.selected;return i&&e.newGroup&&(t+=" k-first"),o&&(t+=" k-state-selected"),t+='"'+(o?' aria-selected="true"':"")+' data-offset-index="'+e.index+'">',t+=this.templates.template(n),i&&e.newGroup&&(t+='<div class="k-group">'+this.templates.groupTemplate(e.group)+"</div>"),
t+"</li>"},_render:function(){var e,t,n,i,o="",r=0,a=0,s=[],l=this.dataSource.view(),u=this.value(),c=this.isGrouped();if(c)for(r=0;l.length>r;r++)for(t=l[r],n=!0,i=0;t.items.length>i;i++)e={selected:this._selected(t.items[i],u),item:t.items[i],group:t.value,newGroup:n,index:a},s[a]=e,a+=1,o+=this._renderItem(e),n=!1;else for(r=0;l.length>r;r++)e={selected:this._selected(l[r],u),item:l[r],index:r},s[r]=e,o+=this._renderItem(e);this._view=s,this.element[0].innerHTML=o,c&&s.length&&this._renderHeader()},_selected:function(e,t){var n=!this.isFiltered()||"multiple"===this.options.selectable;return n&&-1!==this._dataItemPosition(e,t)},setDSFilter:function(e){this._lastDSFilter=F({},e)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!s.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(e){var t,n=this,o=e&&e.action,r=n.options.skipUpdateOnBind,a="itemchange"===o;n.trigger("dataBinding"),this._angularItems("cleanup"),n._fixedHeader(),n._render(),n.bound(!0),a||"remove"===o?(t=i(n._dataItems,e.items),t.changed.length&&(a?n.trigger("selectedItemChange",{items:t.changed}):n.value(n._getValues(t.unchanged)))):n.isFiltered()||n._skipUpdate?(n.focus(0),n._skipUpdate&&(n._skipUpdate=!1,n._selectedIndices=n._valueIndices(n._values,n._selectedIndices))):r||o&&"add"!==o||n.value(n._values),n._valueDeferred&&n._valueDeferred.resolve(),n._angularItems("compile"),n.trigger("dataBound")},bound:function(e){return e===t?this._bound:(this._bound=e,t)},isGrouped:function(){return(this.dataSource.group()||[]).length}}),l.plugin(a)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.calendar.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(e,t,n,i){var o,r=e.getFullYear(),a=t.getFullYear(),s=n.getFullYear();return r-=r%i,o=r+(i-1),a>r&&(r=a),o>s&&(o=s),r+"-"+o}function i(e){for(var t,n=0,i=e.min,o=e.max,r=e.start,a=e.setter,l=e.build,u=e.cells||12,c=e.perRow||4,d=e.content||O,p=e.empty||z,h=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';u>n;n++)n>0&&n%c===0&&(h+='</tr><tr role="row">'),r=new _e(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0),E(r,0),t=l(r,n,e.disableDates),h+=s(r,i,o)?d(t):p(t),a(r,1);return h+"</tr></tbody></table>"}function o(e,t,n){var i=e.getFullYear(),o=t.getFullYear(),r=o,a=0;return n&&(o-=o%n,r=o-o%n+n-1),i>r?a=1:o>i&&(a=-1),a}function r(){var e=new _e;return new _e(e.getFullYear(),e.getMonth(),e.getDate())}function a(e,t,n){var i=r();return e&&(i=new _e(+e)),t>i?i=new _e(+t):i>n&&(i=new _e(+n)),i}function s(e,t,n){return+e>=+t&&+n>=+e}function l(e,t){return e.slice(t).concat(e.slice(0,t))}function u(e,t,n){t=t instanceof _e?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function c(t){var n=e(this).hasClass("k-state-disabled");n||e(this).toggleClass(J,se.indexOf(t.type)>-1||t.type==re)}function d(e){e.preventDefault()}function p(e){return A(e).calendars.standard}function h(e){var n=be[e.start],i=be[e.depth],o=A(e.culture);e.format=I(e.format||o.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=$),(i===t||i>n)&&(e.depth=$),null===e.dates&&(e.dates=[])}function f(e){B&&e.find("*").attr("unselectable","on")}function m(e,t){for(var n=0,i=t.length;i>n;n++)if(e===+t[n])return!0;return!1}function g(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function v(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth():!1}function _(t){return x.isFunction(t)?t:e.isArray(t)?w(t):e.noop}function b(e){var t,n=[];for(t=0;e.length>t;t++)n.push(e[t].setHours(0,0,0,0));return n}function w(t){var n,i,o,r,a,s=[],l=["su","mo","tu","we","th","fr","sa"],u="if (found) { return true } else {return false}";if(t[0]instanceof _e)s=b(t),n="var found = date && $.inArray(date.setHours(0, 0, 0, 0),["+s+"]) > -1;"+u;else{for(o=0;t.length>o;o++)r=t[o].slice(0,2).toLowerCase(),a=e.inArray(r,l),a>-1&&s.push(a);n="var found = date && $.inArray(date.getDay(),["+s+"]) > -1;"+u}return i=Function("date",n)}function k(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}var y,x=window.kendo,C=x.support,T=x.ui,S=T.Widget,D=x.keys,F=x.parseDate,E=x.date.adjustDST,I=x._extractFormat,P=x.template,A=x.getCulture,M=x.support.transitions,H=M?M.css+"transform-origin":"",O=P('<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=P('<td role="gridcell">&nbsp;</td>',{useWithBlock:!1}),V=x.support.browser,B=V.msie&&9>V.version,L=".kendoCalendar",R="click"+L,N="keydown"+L,W="id",U="min",j="left",q="slideIn",$="month",G="century",Y="change",Q="navigate",K="value",J="k-state-hover",X="k-state-disabled",Z="k-state-focused",ee="k-other-month",te=' class="'+ee+'"',ne="k-nav-today",ie="td:has(.k-link)",oe="blur"+L,re="focus",ae=re+L,se=C.touch?"touchstart":"mouseenter",le=C.touch?"touchstart"+L:"mouseenter"+L,ue=C.touch?"touchend"+L+" touchmove"+L:"mouseleave"+L,ce=6e4,de=864e5,pe="_prevArrow",he="_nextArrow",fe="aria-disabled",me="aria-selected",ge=e.proxy,ve=e.extend,_e=Date,be={month:0,year:1,decade:2,century:3},we=S.extend({init:function(t,n){var i,o,s=this;S.fn.init.call(s,t,n),t=s.wrapper=s.element,n=s.options,n.url=window.unescape(n.url),s.options.disableDates=_(s.options.disableDates),s._templates(),s._header(),s._footer(s.footer),o=t.addClass("k-widget k-calendar").on(le+" "+ue,ie,c).on(N,"table.k-content",ge(s._move,s)).on(R,ie,function(t){var n=t.currentTarget.firstChild,i=s._toDateObject(n);-1!=n.href.indexOf("#")&&t.preventDefault(),s.options.disableDates(i)&&"month"==s._view.name||s._click(e(n))}).on("mouseup"+L,"table.k-content, .k-footer",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(W),o&&(s._cellID=o+"_cell_selected"),h(n),i=F(n.value,n.format,n.culture),s._index=be[n.start],s._current=new _e(+a(i,n.min,n.max)),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(X)){var e=s._view.toDateString(r());s._cell=s._cellByDate(e)}s._cell.addClass(Z)},s._removeClassProxy=function(){s._active=!1,s._cell.removeClass(Z)},s.value(i),x.notify(s)},options:{name:"Calendar",value:null,min:new _e(1900,0,1),max:new _e(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:$,depth:$,animation:{horizontal:{effects:q,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[Y,Q],setOptions:function(e){var t=this;h(e),e.disableDates=_(e.disableDates),S.fn.setOptions.call(t,e),t._templates(),t._footer(t.footer),t._index=be[t.options.start],t.navigate()},destroy:function(){var e=this,t=e._today;e.element.off(L),e._title.off(L),e[pe].off(L),e[he].off(L),x.destroy(e._table),t&&x.destroy(t.off(L)),S.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.focus()},min:function(e){return this._option(U,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(pe,-1)},navigateToFuture:function(){this._navigate(he,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(X)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,o=n.options.depth;if(e)return i===be[o]?(k(n._value,n._current)&&k(n._value,e)||(n.value(e),n.trigger(Y)),t):(n.navigate(e,--i),t)},navigate:function(n,i){var o,r,s,l,u,c,d,p,h,m,g,v,_,b,w,k,x;i=isNaN(i)?be[i]:i,o=this,r=o.options,s=r.culture,l=r.min,u=r.max,c=o._title,d=o._table,p=o._oldTable,h=o._value,m=o._current,g=n&&+n>+m,v=i!==t&&i!==o._index,n||(n=m),o._current=n=new _e(+a(n,l,u)),i===t?i=o._index:o._index=i,o._view=b=y.views[i],w=b.compare,k=i===be[G],c.toggleClass(X,k).attr(fe,k),k=w(n,l)<1,o[pe].toggleClass(X,k).attr(fe,k),k=w(n,u)>-1,o[he].toggleClass(X,k).attr(fe,k),d&&p&&p.data("animating")&&(p.kendoStop(!0,!0),d.kendoStop(!0,!0)),o._oldTable=d,(!d||o._changeView)&&(c.html(b.title(n,l,u,s)),o._table=_=e(b.content(ve({min:l,max:u,date:n,url:r.url,dates:r.dates,format:r.format,culture:s,disableDates:r.disableDates},o[b.name]))),f(_),x=d&&d.data("start")===_.data("start"),o._animate({from:d,to:_,vertical:v,future:g,replace:x}),o.trigger(Q),o._focus(n)),i===be[r.depth]&&h&&!o.options.disableDates(h)&&o._class("k-state-selected",h),o._class(Z,n),!d&&o._cell&&o._cell.removeClass(Z),o._changeView=!0},value:function(e){var n=this,i=n._view,o=n.options,r=n._view,a=o.min,l=o.max;return e===t?n._value:(null===e&&(n._current=new Date(n._current.getFullYear(),n._current.getMonth(),n._current.getDate())),e=F(e,o.format,o.culture),null!==e&&(e=new _e(+e),s(e,a,l)||(e=null)),null!==e&&n.options.disableDates(e)?n._value===t&&(n._value=null):n._value=e,r&&null===e&&n._cell?n._cell.removeClass("k-state-selected"):(n._changeView=!e||i&&0!==i.compare(e,n._current),n.navigate(e)),t)},_move:function(t){var n,i,o,r,l=this,u=l.options,c=t.keyCode,d=l._view,p=l._index,h=l.options.min,f=l.options.max,m=new _e(+l._current),g=x.support.isRtl(l.wrapper),v=l.options.disableDates;return t.target===l._table[0]&&(l._active=!0),t.ctrlKey?c==D.RIGHT&&!g||c==D.LEFT&&g?(l.navigateToFuture(),i=!0):c==D.LEFT&&!g||c==D.RIGHT&&g?(l.navigateToPast(),i=!0):c==D.UP?(l.navigateUp(),i=!0):c==D.DOWN&&(l._click(e(l._cell[0].firstChild)),i=!0):(c==D.RIGHT&&!g||c==D.LEFT&&g?(n=1,i=!0):c==D.LEFT&&!g||c==D.RIGHT&&g?(n=-1,i=!0):c==D.UP?(n=0===p?-7:-4,i=!0):c==D.DOWN?(n=0===p?7:4,i=!0):c==D.ENTER?(l._click(e(l._cell[0].firstChild)),i=!0):c==D.HOME||c==D.END?(o=c==D.HOME?"first":"last",r=d[o](m),m=new _e(r.getFullYear(),r.getMonth(),r.getDate(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds()),i=!0):c==D.PAGEUP?(i=!0,l.navigateToPast()):c==D.PAGEDOWN&&(i=!0,l.navigateToFuture()),(n||o)&&(o||d.setDate(m,n),v(m)&&(m=l._nextNavigatable(m,n)),s(m,h,f)&&l._focus(a(m,u.min,u.max)))),i&&t.preventDefault(),l._current},_nextNavigatable:function(e,t){var n=this,i=!0,o=n._view,r=n.options.min,a=n.options.max,l=n.options.disableDates,u=new Date(e.getTime());for(o.setDate(u,-t);i;){if(o.setDate(e,t),!s(e,r,a)){e=u;break}i=l(e)}return e},_animate:function(e){var t=this,n=e.from,i=e.to,o=t._active;n?n.parent().data("animating")?(n.off(L),n.parent().kendoStop(!0,!0).remove(),n.remove(),i.insertAfter(t.element[0].firstChild),t._focusView(o)):!n.is(":visible")||t.options.animation===!1||e.replace?(i.insertAfter(n),n.off(L).remove(),t._focusView(o)):t[e.vertical?"_vertical":"_horizontal"](n,i,e.future):(i.insertAfter(t.element[0].firstChild),t._bindTable(i))},_horizontal:function(e,t,n){var i=this,o=i._active,r=i.options.animation.horizontal,a=r.effects,s=e.outerWidth();a&&-1!=a.indexOf(q)&&(e.add(t).css({width:s}),e.wrap("<div/>"),i._focusView(o,e),e.parent().css({position:"relative",width:2*s,"float":j,"margin-left":n?0:-s}),t[n?"insertAfter":"insertBefore"](e),ve(r,{effects:q+":"+(n?"right":j),complete:function(){e.off(L).remove(),i._oldTable=null,t.unwrap(),i._focusView(o)}}),e.parent().kendoStop(!0,!0).kendoAnimate(r))},_vertical:function(e,t){var n,i,o=this,r=o.options.animation.vertical,a=r.effects,s=o._active;a&&-1!=a.indexOf("zoom")&&(t.css({position:"absolute",top:e.prev().outerHeight(),left:0}).insertBefore(e),H&&(n=o._cellByDate(o._view.toDateString(o._current)),i=n.position(),i=i.left+parseInt(n.width()/2,10)+"px "+(i.top+parseInt(n.height()/2,10)+"px"),t.css(H,i)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(L).remove(),o._oldTable=null,t.css({position:"static",top:0,left:0}),o._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(r))},_cellByDate:function(t){return this._table.find("td:not(."+ee+")").filter(function(){return e(this.firstChild).attr(x.attr(K))===t})},_class:function(t,n){var i,o=this,r=o._cellID,a=o._cell,s=o._view.toDateString(n);a&&a.removeAttr(me).removeAttr("aria-label").removeAttr(W),n&&(i=o.options.disableDates(n)),a=o._table.find("td:not(."+ee+")").removeClass(t).filter(function(){return e(this.firstChild).attr(x.attr(K))===s}).attr(me,!0),(t===Z&&!o._active&&o.options.focusOnNav!==!1||i)&&(t=""),a.addClass(t),a[0]&&(o._cell=a),r&&(a.attr(W,r),o._table.removeAttr("aria-activedescendant").attr("aria-activedescendant",r))},_bindTable:function(e){e.on(ae,this._addClassProxy).on(oe,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=new Date(+t._current),o=t._toDateObject(e);E(o,0),t.options.disableDates(o)&&"month"==t._view.name&&(o=t._value),t._view.setDate(i,o),t.navigateDown(a(i,n.min,n.max))},_focus:function(e){var t=this,n=t._view;0!==n.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(Z,e))},_focusView:function(e,t){e&&this.focus(t)},_footer:function(n){var i=this,o=r(),a=i.element,s=a.find(".k-footer");return n?(s[0]||(s=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(a)),i._today=s.show().find(".k-link").html(n(o)).attr("title",x.toString(o,"D",i.options.culture)),i._toggle(),t):(i._toggle(!1),s.hide(),t)},_header:function(){var e,t=this,n=t.element;n.find(".k-header")[0]||n.html('<div class="k-header"><a href="#" role="button" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="#" role="button" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),e=n.find(".k-link").on(le+" "+ue+" "+ae+" "+oe,c).click(!1),t._title=e.eq(1).on(R,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[pe]=e.eq(0).on(R,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[he]=e.eq(2).on(R,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()})},_navigate:function(e,t){var n=this,i=n._index+1,o=new _e(+n._current);e=n[e],e.hasClass(X)||(i>3?o.setFullYear(o.getFullYear()+100*t):y.views[i].setDate(o,t),n.navigate(o))},_option:function(e,n){var i,o=this,r=o.options,a=o._value||o._current;return n===t?r[e]:(n=F(n,r.format,r.culture),n&&(r[e]=new _e(+n),i=e===U?n>a:a>n,(i||v(a,n))&&(i&&(o._value=null),o._changeView=!0),o._changeView||(o._changeView=!(!r.month.content&&!r.month.empty)),o.navigate(o._value),o._toggle()),t)},_toggle:function(e){var n=this,i=n.options,o=n.options.disableDates(r()),a=n._today;e===t&&(e=s(r(),i.min,i.max)),a&&(a.off(R),e&&!o?a.addClass(ne).removeClass(X).on(R,ge(n._todayClick,n)):a.removeClass(ne).addClass(X).on(R,d))},_todayClick:function(e){var t=this,n=be[t.options.depth],i=t.options.disableDates,o=r();e.preventDefault(),i(o)||(0===t._view.compare(t._current,o)&&t._index==n&&(t._changeView=!1),t._value=o,t.navigate(o,n),t.trigger(Y))},_toDateObject:function(t){var n=e(t).attr(x.attr(K)).split("/");return n=new _e(n[0],n[1],n[2])},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,o=i.content,r=i.empty;e.month={content:P('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+x.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(o||"#=data.value#")+"</a></td>",{useWithBlock:!!o}),empty:P('<td role="gridcell">'+(r||"&nbsp;")+"</td>",{useWithBlock:!!r})},e.footer=n!==!1?P(n||'#= kendo.toString(data,"D","'+t.culture+'") #',{useWithBlock:!1}):null}});T.plugin(we),y={firstDayOfMonth:function(e){return new _e(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||x.culture().calendar;for(var n=t.firstDay,i=new _e(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)y.setTime(i,-1*de);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new _e(e.getTime()+t),o=i.getTimezoneOffset()-n;e.setTime(i.getTime()+o*ce)},views:[{name:$,title:function(e,t,n,i){return p(i).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){for(var t=this,n=0,o=e.min,r=e.max,a=e.date,s=e.dates,u=e.format,c=e.culture,d=e.url,h=d&&s[0],f=p(c),g=f.firstDay,v=f.days,_=l(v.names,g),b=l(v.namesShort,g),w=y.firstVisibleDay(a,f),k=t.first(a),C=t.last(a),T=t.toDateString,S=new _e,D='<table tabindex="0" role="grid" class="k-content" cellspacing="0" data-start="'+T(w)+'"><thead><tr role="row">';7>n;n++)D+='<th scope="col" title="'+_[n]+'">'+b[n]+"</th>";return S=new _e(S.getFullYear(),S.getMonth(),S.getDate()),E(S,0),S=+S,i({cells:42,perRow:7,html:D+='</tr></thead><tbody><tr role="row">',start:w,min:new _e(o.getFullYear(),o.getMonth(),o.getDate()),max:new _e(r.getFullYear(),r.getMonth(),r.getDate()),content:e.content,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,n){var i=[],o=e.getDay(),r="",a="#";return(k>e||e>C)&&i.push(ee),n(e)&&i.push(X),+e===S&&i.push("k-today"),(0===o||6===o)&&i.push("k-weekend"),h&&m(+e,s)&&(a=d.replace("{0}",x.toString(e,u,c)),r=" k-action-link"),{date:e,dates:s,ns:x.ns,title:x.toString(e,"D",c),value:e.getDate(),dateString:T(e),cssClass:i[0]?' class="'+i.join(" ")+'"':"",linkClass:r,url:a}}})},first:function(e){return y.firstDayOfMonth(e)},last:function(e){var t=new _e(e.getFullYear(),e.getMonth()+1,0),n=y.firstDayOfMonth(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t},compare:function(e,t){var n,i=e.getMonth(),o=e.getFullYear(),r=t.getMonth(),a=t.getFullYear();return n=o>a?1:a>o?-1:i==r?0:i>r?1:-1},setDate:function(e,t){var n=e.getHours();t instanceof _e?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):y.setTime(e,t*de),E(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=p(e.culture).months.namesAbbr,n=this.toDateString,o=e.min,r=e.max;return i({min:new _e(o.getFullYear(),o.getMonth(),1),max:new _e(r.getFullYear(),r.getMonth(),1),start:new _e(e.date.getFullYear(),0,1),setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:x.ns,dateString:n(e),cssClass:""}}})},first:function(e){return new _e(e.getFullYear(),0,e.getDate())},last:function(e){return new _e(e.getFullYear(),11,e.getDate())},compare:function(e,t){return o(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof _e?(n=t.getMonth(),e.setFullYear(t.getFullYear(),n,e.getDate()),n!==e.getMonth()&&e.setDate(0)):(n=e.getMonth()+t,e.setMonth(n),n>11&&(n-=12),n>0&&e.getMonth()!=n&&e.setDate(0)),E(e,i)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"}},{name:"decade",title:function(e,t,i){return n(e,t,i,10)},content:function(e){var t=e.date.getFullYear(),n=this.toDateString;return i({start:new _e(t-t%10-1,0,1),min:new _e(e.min.getFullYear(),0,1),max:new _e(e.max.getFullYear(),0,1),setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:x.ns,dateString:n(e),cssClass:0===t||11==t?te:""}}})},first:function(e){var t=e.getFullYear();return new _e(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new _e(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return o(e,t,10)},setDate:function(e,t){u(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"}},{name:G,title:function(e,t,i){return n(e,t,i,100)},content:function(e){var t=e.date.getFullYear(),n=e.min.getFullYear(),o=e.max.getFullYear(),r=this.toDateString,a=n,s=o;return a-=a%10,s-=s%10,10>s-a&&(s=a+9),i({start:new _e(t-t%100-10,0,1),min:new _e(a,0,1),max:new _e(s,0,1),setter:this.setDate,build:function(e,t){var i=e.getFullYear(),a=i+9;return n>i&&(i=n),a>o&&(a=o),{ns:x.ns,value:i+" - "+a,dateString:r(e),cssClass:0===t||11==t?te:""}}})},first:function(e){var t=e.getFullYear();return new _e(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new _e(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return o(e,t,100)},setDate:function(e,t){u(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"}}]},y.isEqualDatePart=g,y.makeUnselectable=f,y.restrictValue=a,y.isInRange=s,y.normalize=h,y.viewsEnum=be,y.disabled=_,x.calendar=y}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.datepicker.min",["kendo.calendar.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(t){var n=t.parseFormats,i=t.format;O.normalize(t),n=e.isArray(n)?n:[n],n.length||n.push("yyyy-MM-dd"),-1===e.inArray(i,n)&&n.splice(0,0,t.format),t.parseFormats=n}function i(e){e.preventDefault()}var o,r=window.kendo,a=r.ui,s=a.Widget,l=r.parseDate,u=r.keys,c=r.template,d=r._activeElement,p="<div />",h="<span />",f=".kendoDatePicker",m="click"+f,g="open",v="close",_="change",b="disabled",w="readonly",k="k-state-default",y="k-state-focused",x="k-state-selected",C="k-state-disabled",T="k-state-hover",S="mouseenter"+f+" mouseleave"+f,D="mousedown"+f,F="id",E="min",I="max",P="month",A="aria-disabled",M="aria-expanded",H="aria-hidden",O=r.calendar,z=O.isInRange,V=O.restrictValue,B=O.isEqualDatePart,L=e.extend,R=e.proxy,N=Date,W=function(t){var n,i=this,o=document.body,s=e(p).attr(H,"true").addClass("k-calendar-container").appendTo(o);i.options=t=t||{},n=t.id,n&&(n+="_dateview",s.attr(F,n),i._dateViewID=n),i.popup=new a.Popup(s,L(t.popup,t,{name:"Popup",isRtl:r.support.isRtl(t.anchor)})),i.div=s,i.value(t.value)};W.prototype={_calendar:function(){var t,n=this,o=n.calendar,s=n.options;o||(t=e(p).attr(F,r.guid()).appendTo(n.popup.element).on(D,i).on(m,"td:has(.k-link)",R(n._click,n)),n.calendar=o=new a.Calendar(t),n._setOptions(s),r.calendar.makeUnselectable(o.element),o.navigate(n._value||n._current,s.start),n.value(n._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,start:e.start,disableDates:e.disableDates})},setOptions:function(e){var t=this.options,n=e.disableDates;n&&(e.disableDates=O.disabled(n)),this.options=L(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup.destroy()},open:function(){var e=this;e._calendar(),e.popup.open()},close:function(){this.popup.close()},min:function(e){this._option(E,e)},max:function(e){this._option(I,e)},toggle:function(){var e=this;e[e.popup.visible()?v:g]()},move:function(e){var t=this,n=e.keyCode,i=t.calendar,o=e.ctrlKey&&n==u.DOWN||n==u.ENTER,r=!1;if(e.altKey)n==u.DOWN?(t.open(),e.preventDefault(),r=!0):n==u.UP&&(t.close(),e.preventDefault(),r=!0);else if(t.popup.visible()){if(n==u.ESC||o&&i._cell.hasClass(x))return t.close(),e.preventDefault(),!0;t._current=i._move(e),r=!0}return r},current:function(e){this._current=e,this.calendar._focus(e)},value:function(e){var t=this,n=t.calendar,i=t.options,o=i.disableDates;o&&o(e)&&(e=null),t._value=e,t._current=new N(+V(e,i.min,i.max)),n&&n.value(e)},_click:function(e){-1!==e.currentTarget.className.indexOf(x)&&this.close()},_option:function(e,t){var n=this,i=n.calendar;n.options[e]=t,i&&i[e](t)}},W.normalize=n,r.DateView=W,o=s.extend({init:function(t,i){var o,a,u=this;s.fn.init.call(u,t,i),t=u.element,i=u.options,i.disableDates=r.calendar.disabled(i.disableDates),i.min=l(t.attr("min"))||l(i.min),i.max=l(t.attr("max"))||l(i.max),n(i),u._initialOptions=L({},i),u._wrapper(),u.dateView=new W(L({},i,{id:t.attr(F),anchor:u.wrapper,change:function(){u._change(this.value()),u.close()},close:function(e){u.trigger(v)?e.preventDefault():(t.attr(M,!1),a.attr(H,!0))},open:function(e){var n,i=u.options;u.trigger(g)?e.preventDefault():(u.element.val()!==u._oldText&&(n=l(t.val(),i.parseFormats,i.culture),u.dateView[n?"current":"value"](n)),t.attr(M,!0),a.attr(H,!1),u._updateARIA(n))}})),a=u.dateView.div,u._icon();try{t[0].setAttribute("type","text")}catch(c){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":u.dateView._dateViewID}),u._reset(),u._template(),o=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),o?u.enable(!1):u.readonly(t.is("[readonly]")),u._old=u._update(i.value||u.element.val()),u._oldText=t.val(),r.notify(u)},events:[g,v,_],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:P,depth:P,animation:{},month:{},dates:[],ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#'},setOptions:function(e){var t=this,i=t._value;s.fn.setOptions.call(t,e),e=t.options,e.min=l(e.min),e.max=l(e.max),n(e),t.dateView.setOptions(e),i&&(t.element.val(r.toString(i,e.format,e.culture)),t._updateARIA(i))},_editable:function(e){var t=this,n=t._dateIcon.off(f),o=t.element.off(f),r=t._inputWrapper.off(f),a=e.readonly,s=e.disable;a||s?(r.addClass(s?C:k).removeClass(s?k:C),o.attr(b,s).attr(w,a).attr(A,s)):(r.addClass(k).removeClass(C).on(S,t._toggleHover),o.removeAttr(b).removeAttr(w).attr(A,!1).on("keydown"+f,R(t._keydown,t)).on("focusout"+f,R(t._blur,t)).on("focus"+f,function(){t._inputWrapper.addClass(y)}),n.on(m,R(t._click,t)).on(D,i))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;s.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(E,e)},max:function(e){return this._option(I,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.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),e._inputWrapper.removeClass(y)},_click:function(){var e=this,t=e.element;e.dateView.toggle(),r.support.touch||t[0]===d()||t.focus()},_change:function(e){var t,n,i,o=this,r=o.element.val();e=o._update(e),t=+o._old!=+e,n=t&&!o._typing,i=r!==o.element.val(),(n||i)&&o.element.trigger(_),t&&(o._old=e,o._oldText=o.element.val(),o.trigger(_)),o._typing=!1},_keydown:function(e){var t=this,n=t.dateView,i=t.element.val(),o=!1;n.popup.visible()||e.keyCode!=u.ENTER||i===t._oldText?(o=n.move(e),t._updateARIA(n._current),o||(t._typing=!0)):t._change(i)},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').insertAfter(i)),n._dateIcon=t.attr({role:"button","aria-controls":n.dateView._dateViewID})},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=l(n,o.parseFormats,o.culture),n&&(o[e]=new N(+n),i.dateView[e](n)),t)},_update:function(e){var t,n=this,i=n.options,o=i.min,a=i.max,s=n._value,u=l(e,i.parseFormats,i.culture),c=null===u&&null===s||u instanceof Date&&s instanceof Date;return i.disableDates(u)&&(u=null,n._old||n.element.val()||(e=null)),+u===+s&&c?(t=r.toString(u,i.format,i.culture),t!==e&&n.element.val(null===u?e:t),u):(null!==u&&B(u,o)?u=V(u,o,a):z(u,o,a)||(u=null),n._value=u,n.dateView.value(u),n.element.val(u?r.toString(u,i.format,i.culture):e),n._updateARIA(u),u)},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datepicker"),t[0]||(t=i.wrap(h).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(h).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=c(this.options.ARIATemplate)},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element.removeAttr("aria-activedescendant"),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr("aria-activedescendant",t.attr("id")))}}),a.plugin(o)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.autocomplete.min",["kendo.list.min","kendo.mobile.scroller.min"],e)}(function(){return function(e,t){function n(e,t,n){return n?t.substring(0,e).split(n).length-1:0}function i(e,t,i){return t.split(i)[n(e,t,i)]}function o(e,t,i,o){var r=t.split(o);return r.splice(n(e,t,o),1,i),o&&""!==r[r.length-1]&&r.push(""),r.join(o)}var r=window.kendo,a=r.support,s=r.caret,l=r._activeElement,u=a.placeholder,c=r.ui,d=c.List,p=r.keys,h=r.data.DataSource,f="aria-disabled",m="aria-readonly",g="change",v="k-state-default",_="disabled",b="readonly",w="k-state-focused",k="k-state-selected",y="k-state-disabled",x="k-state-hover",C=".kendoAutoComplete",T="mouseenter"+C+" mouseleave"+C,S=e.proxy,D=d.extend({init:function(t,n){var i,o,a=this;a.ns=C,n=e.isArray(n)?{dataSource:n}:n,d.fn.init.call(a,t,n),t=a.element,n=a.options,n.placeholder=n.placeholder||t.attr("placeholder"),u&&t.attr("placeholder",n.placeholder),a._wrapper(),a._loader(),a._dataSource(),a._ignoreCase(),t[0].type="text",i=a.wrapper,a._popup(),t.addClass("k-input").on("keydown"+C,S(a._keydown,a)).on("keypress"+C,S(a._keypress,a)).on("paste"+C,S(a._search,a)).on("focus"+C,function(){a._prev=a._accessor(),a._oldText=a._prev,a._placeholder(!1),i.addClass(w)}).on("focusout"+C,function(){a._change(),a._placeholder(),i.removeClass(w)}).attr({autocomplete:"off",role:"textbox","aria-haspopup":!0}),a._enable(),a._old=a._accessor(),t[0].id&&t.attr("aria-owns",a.ul[0].id),a._aria(),a._placeholder(),a._initList(),o=e(a.element).parents("fieldset").is(":disabled"),o&&a.enable(!1),a.listView.bind("click",function(e){e.preventDefault()}),a._resetFocusItemHandler=e.proxy(a._resetFocusItem,a),r.notify(a)},options:{name:"AutoComplete",enabled:!0,suggest:!1,template:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{},virtual:!1,value:null},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=S(e._showBusy,e),e._errorHandler=S(e._hideBusy,e)),e.dataSource=h.create(e.options.dataSource).bind("progress",e._progressHandler).bind("error",e._errorHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource)},events:["open","close",g,"select","filtering","dataBinding","dataBound"],setOptions:function(e){var t=this._listOptions(e);d.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria()},_listOptions:function(t){var n=d.fn._listOptions.call(this,e.extend(t,{skipUpdateOnBind:!0}));return n.dataValueField=n.dataTextField,n.selectedItemChange=null,n},_editable:function(e){var t=this,n=t.element,i=t.wrapper.off(C),o=e.readonly,r=e.disable;o||r?(i.addClass(r?y:v).removeClass(r?v:y),n.attr(_,r).attr(b,o).attr(f,r).attr(m,o)):(i.addClass(v).removeClass(y).on(T,t._toggleHover),n.removeAttr(_).removeAttr(b).attr(f,!1).attr(m,!1))},close:function(){var e=this,t=e.listView.focus();t&&t.removeClass(k),e.popup.close()},destroy:function(){var e=this;e.element.off(C),e.wrapper.off(C),d.fn.destroy.call(e)},refresh:function(){this.listView.refresh()},select:function(e){this._select(e)},search:function(e){var t,n=this,o=n.options,r=o.ignoreCase,a=o.separator;e=e||n._accessor(),clearTimeout(n._typingTimeout),a&&(e=i(s(n.element)[0],e,a)),t=e.length,(!t||t>=o.minLength)&&(n._open=!0,n._mute(function(){this.listView.value([])}),n._filterSource({value:r?e.toLowerCase():e,operator:o.filter,field:o.dataTextField,ignoreCase:r}))},suggest:function(e){var i,o=this,r=o._last,a=o._accessor(),u=o.element[0],c=s(u)[0],h=o.options.separator,f=a.split(h),m=n(c,a,h),g=c;
return r==p.BACKSPACE||r==p.DELETE?(o._last=t,t):(e=e||"","string"!=typeof e&&(e[0]&&(e=o.dataSource.view()[d.inArray(e[0],o.ul[0])]),e=e?o._text(e):""),0>=c&&(c=a.toLowerCase().indexOf(e.toLowerCase())+1),i=a.substring(0,c).lastIndexOf(h),i=i>-1?c-(i+h.length):c,a=f[m].substring(0,i),e&&(e=""+e,i=e.toLowerCase().indexOf(a.toLowerCase()),i>-1&&(e=e.substring(i+a.length),g=c+e.length,a+=e),h&&""!==f[f.length-1]&&f.push("")),f[m]=a,o._accessor(f.join(h||"")),u===l()&&s(u,c,g),t)},value:function(e){return e===t?this._accessor():(this.listView.value(e),this._accessor(e),this._old=this._accessor(),this._oldText=this._accessor(),t)},_click:function(e){var n=e.item,i=this.element;return e.preventDefault(),this._active=!0,this.trigger("select",{item:n})?(this.close(),t):(this._oldText=i.val(),this._select(n),this._blur(),s(i,i.val().length),t)},_resetFocusItem:function(){var e=this.options.highlightFirst?0:-1;this.options.virtual&&this.listView.scrollTo(0),this.listView.focus(e)},_listBound:function(){var e,n=this,i=n.popup,o=n.options,r=n.dataSource.flatView(),a=r.length,s=n.element[0]===l();n._resizePopup(),i.position(),a&&o.suggest&&s&&n.suggest(r[0]),n._open&&(n._open=!1,e=a?"open":"close",n._typingTimeout&&!s&&(e="close"),a&&(n._resetFocusItem(),o.virtual&&n.popup.unbind("activate",n._resetFocusItemHandler).one("activate",n._resetFocusItemHandler)),i[e](),n._typingTimeout=t),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n._makeUnselectable(),n.trigger("dataBound")},_mute:function(e){this._muted=!0,e.call(this),this._muted=!1},_listChange:function(){var e=this._active||this.element[0]===l();e&&!this._muted&&this._selectValue(this.listView.selectedDataItems()[0])},_selectValue:function(e){var t=this.options.separator,n="";e&&(n=this._text(e)),null===n&&(n=""),t&&(n=o(s(this.element)[0],this._accessor(),n,t)),this._prev=n,this._accessor(n),this._placeholder()},_change:function(){var e=this,t=e.value(),n=t!==d.unifyType(e._old,typeof t),i=n&&!e._typing,o=e._oldText!==t;(i||o)&&e.element.trigger(g),n&&(e._old=t,e.trigger(g)),e.typing=!1},_accessor:function(e){var n=this,i=n.element[0];return e===t?(e=i.value,i.className.indexOf("k-readonly")>-1&&e===n.options.placeholder?"":e):(i.value=null===e?"":e,n._placeholder(),t)},_keydown:function(e){var t=this,n=e.keyCode,i=t.popup.visible(),o=this.listView.focus();if(t._last=n,n===p.DOWN)i&&this._move(o?"focusNext":"focusFirst"),e.preventDefault();else if(n===p.UP)i&&this._move(o?"focusPrev":"focusLast"),e.preventDefault();else if(n===p.ENTER||n===p.TAB){if(n===p.ENTER&&i&&e.preventDefault(),i&&o){if(t.trigger("select",{item:o}))return;this._select(o)}this._blur()}else n===p.ESC?(i&&e.preventDefault(),t.close()):t._search()},_keypress:function(){this._oldText=this.element.val(),this._typing=!0},_move:function(e){this.listView[e](),this.options.suggest&&this.suggest(this.listView.focus())},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._loading.hide(),e.element.attr("aria-busy",!1),e._busy=null},_showBusy:function(){var e=this;e._busy||(e._busy=setTimeout(function(){e.element.attr("aria-busy",!0),e._loading.show()},100))},_placeholder:function(e){if(!u){var n,i=this,o=i.element,r=i.options.placeholder;if(r){if(n=o.val(),e===t&&(e=!n),e||(r=n!==r?n:""),n===i._old&&!e)return;o.toggleClass("k-readonly",e).val(r),r||o[0]!==document.activeElement||s(o[0],0,0)}}},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){e._prev!==e._accessor()&&(e._prev=e._accessor(),e.search())},e.options.delay)},_select:function(e){this._active=!0,this.listView.select(e),this._active=!1},_loader:function(){this._loading=e('<span class="k-icon k-loading" style="display:none"></span>').insertAfter(this.element)},_toggleHover:function(t){e(t.currentTarget).toggleClass(x,"mouseenter"===t.type)},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent()),e.attr("tabindex",-1),e.attr("role","presentation"),e[0].style.cssText=i.style.cssText,n.css({width:"100%",height:i.style.height}),t._focused=t.element,t.wrapper=e.addClass("k-widget k-autocomplete k-header").addClass(i.className)}});c.plugin(D)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dropdownlist.min",["kendo.list.min","kendo.mobile.scroller.min"],e)}(function(){return function(e,t){function n(e,t,n){for(var i,o=0,r=t.length-1;r>o;++o)i=t[o],i in e||(e[i]={}),e=e[i];e[t[r]]=n}function i(e,t){return e>=t&&(e-=t),e}function o(e,t){for(var n=0;e.length>n;n++)if(e.charAt(n)!==t)return!1;return!0}var r=window.kendo,a=r.ui,s=a.List,l=a.Select,u=r.support,c=r._activeElement,d=r.data.ObservableObject,p=r.keys,h=".kendoDropDownList",f="disabled",m="readonly",g="change",v="k-state-focused",_="k-state-default",b="k-state-disabled",w="aria-disabled",k="mouseenter"+h+" mouseleave"+h,y="tabindex",x="filter",C="accept",T="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",S=e.proxy,D=l.extend({init:function(n,i){var o,a,s,u=this,c=i&&i.index;u.ns=h,i=e.isArray(i)?{dataSource:i}:i,l.fn.init.call(u,n,i),i=u.options,n=u.element.on("focus"+h,S(u._focusHandler,u)),u._focusInputHandler=e.proxy(u._focusInput,u),u.optionLabel=e(),u._optionLabel(),u._inputTemplate(),u._reset(),u._prev="",u._word="",u._wrapper(),u._tabindex(),u.wrapper.data(y,u.wrapper.attr(y)),u._span(),u._popup(),u._mobile(),u._dataSource(),u._ignoreCase(),u._filterHeader(),u._aria(),u._enable(),u._oldIndex=u.selectedIndex=-1,c!==t&&(i.index=c),u._initialIndex=i.index,u._initList(),u._cascade(),i.autoBind?u.dataSource.fetch():-1===u.selectedIndex&&(a=i.text||"",a||(o=i.optionLabel,o&&0===i.index?a=o:u._isSelect&&(a=n.children(":selected").text())),u._textAccessor(a)),s=e(u.element).parents("fieldset").is(":disabled"),s&&u.enable(!1),u.listView.bind("click",function(e){e.preventDefault()}),r.notify(u)},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:["open","close",g,"select","filtering","dataBinding","dataBound","cascade","set"],setOptions:function(e){l.fn.setOptions.call(this,e),this.listView.setOptions(this._listOptions(e)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var e=this;l.fn.destroy.call(e),e.wrapper.off(h),e.element.off(h),e._inputWrapper.off(h),e._arrow.off(),e._arrow=null,e.optionLabel.off()},open:function(){var e=this;e.popup.visible()||(e.listView.bound()&&e._state!==C?e._allowOpening()&&(e.popup.one("activate",e._focusInputHandler),e.popup.open(),e._focusItem()):(e._open=!0,e._state="rebind",e.filterInput&&(e.filterInput.val(""),e._prev=""),e._filterSource()))},_focusInput:function(){this._focusElement(this.filterInput)},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||this.dataSource.view().length},toggle:function(e){this._toggle(e,!0)},current:function(e){var n;return e===t?(n=this.listView.focus(),!n&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:n):(this._focus(e),t)},dataItem:function(n){var i=this,o=null;if(null===n)return n;if(n===t)o=i.listView.selectedDataItems()[0];else{if("number"!=typeof n){if(i.options.virtual)return i.dataSource.getByUid(e(n).data("uid"));n=n.hasClass("k-list-optionlabel")?-1:e(i.items()).index(n)}else i.hasOptionLabel()&&(n-=1);o=i.dataSource.flatView()[n]}return o||(o=i._optionLabelDataItem()),o},refresh:function(){this.listView.refresh()},text:function(e){var n,i,o=this,r=o.options.ignoreCase;return e=null===e?"":e,e===t?o._textAccessor():("string"==typeof e&&(i=r?e.toLowerCase():e,o._select(function(e){return e=o._text(e),r&&(e=(e+"").toLowerCase()),e===i}),n=o.dataItem(),n&&(e=n)),o._textAccessor(e),t)},value:function(e){var n=this,i=n.listView,o=n.dataSource;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):((e||!n.hasOptionLabel())&&(n._initialIndex=null),this.trigger("set",{value:e}),n._request&&n.options.cascadeFrom&&n.listView.bound()?(n._valueSetter&&o.unbind(g,n._valueSetter),n._valueSetter=S(function(){n.value(e)},n),o.one(g,n._valueSetter),t):(n._isFilterEnabled()&&i.bound()&&i.isFiltered()?n._clearFilter():n._fetchData(),i.value(e).done(function(){-1===n.selectedIndex&&n.text()&&(n.text(""),n._accessor("",-1)),n._old=n._accessor(),n._oldIndex=n.selectedIndex}),t))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var n=this,i=n.options,o=i.optionLabel,a=i.optionLabelTemplate;return o?(a||(a="#:",a+="string"==typeof o?"data":r.expr(i.dataTextField,"data"),a+="#"),"function"!=typeof a&&(a=r.template(a)),n.optionLabelTemplate=a,n.hasOptionLabel()||(n.optionLabel=e('<div class="k-list-optionlabel"></div>').prependTo(n.list)),n.optionLabel.html(a(o)).off().click(S(n._click,n)).on(k,n._toggleHover),n.angular("compile",function(){return{elements:n.optionLabel,data:[{dataItem:n._optionLabelDataItem()}]}}),t):(n.optionLabel.off().remove(),n.optionLabel=e(),t)},_optionLabelText:function(){var e=this.options.optionLabel;return"string"==typeof e?e:this._text(e)},_optionLabelDataItem:function(){var t=this,n=t.options.optionLabel;return t.hasOptionLabel()?e.isPlainObject(n)?new d(n):t._assignInstance(t._optionLabelText(),""):null},_buildOptions:function(e){var n,i,o,r=this;r._isSelect&&(n=r.listView.value()[0],i=r._optionLabelDataItem(),o=i&&r._value(i),(n===t||null===n)&&(n=""),i&&((o===t||null===o)&&(o=""),i='<option value="'+o+'">'+r._text(i)+"</option>"),r._options(e,i,n),n!==s.unifyType(r._accessor(),typeof n)&&(r._customOption=null,r._custom(n)))},_listBound:function(){var e,t=this,n=t._initialIndex,i=t._state===x,o=t.dataSource.flatView();t._presetValue=!1,t._resizePopup(!0),t.popup.position(),t._buildOptions(o),t._makeUnselectable(),i||(t._open&&t.toggle(t._allowOpening()),t._open=!1,t._fetch||(o.length?(!t.listView.value().length&&n>-1&&null!==n&&t.select(n),t._initialIndex=null,e=t.listView.selectedDataItems()[0],e&&t.text()!==t._text(e)&&t._selectValue(e)):t._textAccessor()!==t._optionLabelText()&&(t.listView.value(""),t._selectValue(null),t._oldIndex=t.selectedIndex))),t._hideBusy(),t.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&-1===this._oldIndex)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this._search()},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(v),this._prevent=!1},_focusoutHandler:function(){var e=this,t=e._state===x,n=window.self!==window.top,i=e._focus();e._prevent||(clearTimeout(e._typingTimeout),t&&i&&!e.trigger("select",{item:i})&&e._select(i,!e.dataSource.view().length),u.mobileOS.ios&&n?e._change():e._blur(),e._inputWrapper.removeClass(v),e._prevent=!0,e._open=!1,e.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._toggle()},_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,r=t.wrapper.add(t.filterInput).off(h),a=t._inputWrapper.off(k);o||i?i?(r.removeAttr(y),a.addClass(b).removeClass(_)):(a.addClass(_).removeClass(b),r.on("focusin"+h,S(t._focusinHandler,t)).on("focusout"+h,S(t._focusoutHandler,t))):(n.removeAttr(f).removeAttr(m),a.addClass(_).removeClass(b).on(k,t._toggleHover),r.attr(y,r.data(y)).attr(w,!1).on("keydown"+h,S(t._keydown,t)).on("focusin"+h,S(t._focusinHandler,t)).on("focusout"+h,S(t._focusoutHandler,t)).on("mousedown"+h,S(t._wrapperMousedown,t)).on("paste"+h,S(t._filterPaste,t)),t.wrapper.on("click"+h,S(t._wrapperClick,t)),t.filterInput||r.on("keypress"+h,S(t._keypress,t))),n.attr(f,i).attr(m,o),r.attr(w,i)},_keydown:function(e){var n,i,o,r=this,a=e.keyCode,s=e.altKey,l=r.popup.visible();if(r.filterInput&&(n=r.filterInput[0]===c()),a===p.LEFT?(a=p.UP,i=!0):a===p.RIGHT&&(a=p.DOWN,i=!0),!i||!n){if(e.keyCode=a,(s&&a===p.UP||a===p.ESC)&&r._focusElement(r.wrapper),a===p.ENTER&&r._typingTimeout&&r.filterInput&&l)return e.preventDefault(),t;if(i=r._move(e),!i){if((!l||!r.filterInput)&&(o=r._focus(),a===p.HOME?(i=!0,r._firstItem()):a===p.END&&(i=!0,r._lastItem()),i)){if(r.trigger("select",{item:r._focus()}))return r._focus(o),t;r._select(r._focus(),!0),l||r._blur()}s||i||!r.filterInput||r._search()}}},_matchText:function(e,n){var i=this.options.ignoreCase;return e===t||null===e?!1:(e+="",i&&(e=e.toLowerCase()),0===e.indexOf(n))},_shuffleData:function(e,t){var n=this._optionLabelDataItem();return n&&(e=[n].concat(e)),e.slice(t).concat(e.slice(0,t))},_selectNext:function(){var e,t,n,r=this,a=r.dataSource.flatView(),s=a.length+(r.hasOptionLabel()?1:0),l=o(r._word,r._last),u=r.selectedIndex;for(-1===u?u=0:(u+=l?1:0,u=i(u,s)),a=a.toJSON?a.toJSON():a.slice(),a=r._shuffleData(a,u),n=0;s>n&&(t=r._text(a[n]),!l||!r._matchText(t,r._last))&&!r._matchText(t,r._word);n++);n!==s&&(e=r._focus(),r._select(i(u+n,s)),r.trigger("select",{item:r._focus()})&&r._select(e),r.popup.visible()||r._change())},_keypress:function(e){var t,n=this;0!==e.which&&e.keyCode!==r.keys.ENTER&&(t=String.fromCharCode(e.charCode||e.keyCode),n.options.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n._word+=t,n._last=t,n._search())},_popupOpen:function(){var e=this.popup;e.wrapper=r.wrap(e.element),e.element.closest(".km-root")[0]&&(e.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){l.fn._popup.call(this),this.popup.one("open",S(this._popupOpen,this))},_click:function(n){var i=n.item||e(n.currentTarget);return n.preventDefault(),this.trigger("select",{item:i})?(this.close(),t):(this._userTriggered=!0,this._select(i),this._focusElement(this.wrapper),this._blur(),t)},_focusElement:function(e){var t=c(),n=this.wrapper,i=this.filterInput,o=e===i?n:i,r=u.mobileOS&&(u.touch||u.MSPointers||u.pointers);i&&i[0]===e[0]&&r||i&&o[0]===t&&(this._prevent=!0,this._focused=e.focus())},_filter:function(e){var t,n;e&&(t=this,n=t.options.ignoreCase,n&&(e=e.toLowerCase()),t._select(function(n){return t._matchText(t._text(n),e)}))},_search:function(){var e=this,n=e.dataSource;if(clearTimeout(e._typingTimeout),e._isFilterEnabled())e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t)),e._typingTimeout=null},e.options.delay);else{if(e._typingTimeout=setTimeout(function(){e._word=""},e.options.delay),!e.listView.bound())return n.fetch().done(function(){e._selectNext()}),t;e._selectNext()}},_get:function(t){var n,i,o,r="function"==typeof t,a=r?e():e(t);if(this.hasOptionLabel()&&("number"==typeof t?t>-1&&(t-=1):a.hasClass("k-list-optionlabel")&&(t=-1)),r){for(n=this.dataSource.flatView(),o=0;n.length>o;o++)if(t(n[o])){t=o,i=!0;break}i||(t=-1)}return t},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){this.optionLabel.hasClass("k-state-focused")?(this._resetOptionLabel(),this.listView.focusFirst()):this.listView.focusNext()},_prevItem:function(){this.optionLabel.hasClass("k-state-focused")||(this.listView.focusPrev(),this.listView.focus()||this._focus(this.optionLabel))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):this.options.optionLabel?(this._focus(this.optionLabel),this._select(this.optionLabel)):e.scrollToIndex(0)},_resetOptionLabel:function(e){this.optionLabel.removeClass("k-state-focused"+(e||"")).removeAttr("id")},_focus:function(e){var n=this.listView,i=this.optionLabel;return e===t?(e=n.focus(),!e&&i.hasClass("k-state-focused")&&(e=i),e):(this._resetOptionLabel(),e=this._get(e),n.focus(e),-1===e&&(i.addClass("k-state-focused").attr("id",n._optionID),this._focused.add(this.filterInput).removeAttr("aria-activedescendant").attr("aria-activedescendant",n._optionID)),t)},_select:function(e,t){var n=this;e=n._get(e),n.listView.select(e),t||n._state!==x||(n._state=C),-1===e&&n._selectValue(null)},_selectValue:function(e){var n=this,i=n.options.optionLabel,o=n.listView.select(),r="",a="";o=o[o.length-1],o===t&&(o=-1),this._resetOptionLabel(" k-state-selected"),e?(a=e,r=n._dataValue(e),i&&(o+=1)):i&&(n._focus(n.optionLabel.addClass("k-state-selected")),a=n._optionLabelText(),r="string"==typeof i?"":n._value(i),o=0),n.selectedIndex=o,null===r&&(r=""),n._textAccessor(a),n._accessor(r,o),n._triggerCascade()},_mobile:function(){var e=this,t=e.popup,n=u.mobileOS,i=t.element.parents(".km-root").eq(0);i.length&&n&&(t.options.animation.open.effects=n.android||n.meego?"fadeIn":n.ios||n.wp?"slideIn:up":t.options.animation.open.effects)},_filterHeader:function(){var t;this.filterInput&&(this.filterInput.off(h).parent().remove(),this.filterInput=null),this._isFilterEnabled()&&(t='<span unselectable="on" class="k-icon k-i-search">select</span>',this.filterInput=e('<input class="k-textbox"/>').attr({placeholder:this.element.attr("placeholder"),role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),this.list.prepend(e('<span class="k-list-filter" />').append(this.filterInput.add(t))))},_span:function(){var t,n=this,i=n.wrapper,o="span.k-input";t=i.find(o),t[0]||(i.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input">&nbsp;</span><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(n.element),t=i.find(o)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(".k-icon")},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent(),e[0].style.cssText=i.style.cssText,e[0].title=i.title),n.hide(),t._focused=t.wrapper=e.addClass("k-widget k-dropdown k-header").addClass(i.className).css("display","").attr({accesskey:n.attr("accesskey"),unselectable:"on",role:"listbox","aria-haspopup":!0,"aria-expanded":!1})},_clearSelection:function(e){this.select(e.value()?0:-1)},_inputTemplate:function(){var t=this,n=t.options.valueTemplate;if(n=n?r.template(n):e.proxy(r.template("#:this._text(data)#",{useWithBlock:!1}),t),t.valueTemplate=n,t.hasOptionLabel()&&!t.options.optionLabelTemplate)try{t.valueTemplate(t._optionLabelDataItem())}catch(i){throw Error(T)}},_textAccessor:function(n){var i,o=null,r=this.valueTemplate,a=this._optionLabelText(),s=this.span;if(n===t)return s.text();e.isPlainObject(n)||n instanceof d?o=n:a&&a===n&&(o=this.options.optionLabel),o||(o=this._assignInstance(n,this._accessor())),(o===a||this._text(o)===a)&&(r=this.optionLabelTemplate),i=function(){return{elements:s.get(),data:[{dataItem:o}]}},this.angular("cleanup",i);try{s.html(r(o))}catch(l){s.html("")}this.angular("compile",i)},_preselect:function(e,t){e||t||(t=this._optionLabelText()),this._accessor(e),this._textAccessor(t),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(e,t){var i=this.options.dataTextField,o={};return i?(n(o,i.split("."),e),n(o,this.options.dataValueField.split("."),t),o=new d(o)):o=e,o}});a.plugin(D)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.combobox.min",["kendo.list.min","kendo.mobile.scroller.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.List,r=i.Select,a=n.caret,s=n.support,l=s.placeholder,u=n._activeElement,c=n.keys,d=".kendoComboBox",p="click"+d,h="mousedown"+d,f="disabled",m="readonly",g="change",v="k-state-default",_="k-state-focused",b="k-state-disabled",w="aria-disabled",k="filter",y="accept",x="rebind",C="mouseenter"+d+" mouseleave"+d,T=e.proxy,S=r.extend({init:function(t,i){var o,a,s=this;s.ns=d,i=e.isArray(i)?{dataSource:i}:i,r.fn.init.call(s,t,i),i=s.options,t=s.element.on("focus"+d,T(s._focusHandler,s)),i.placeholder=i.placeholder||t.attr("placeholder"),s._reset(),s._wrapper(),s._input(),s._tabindex(s.input),s._popup(),s._dataSource(),s._ignoreCase(),s._enable(),s._oldIndex=s.selectedIndex=-1,s._aria(),s._initialIndex=i.index,s._initList(),s._cascade(),i.autoBind?s._filterSource():(o=i.text,!o&&s._isSelect&&(o=t.children(":selected").text()),o&&s._setText(o)),o||s._placeholder(),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),n.notify(s)},options:{name:"ComboBox",enabled:!0,index:-1,text:null,value:null,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,filter:"none",placeholder:"",suggest:!1,cascadeFrom:"",cascadeFromField:"",ignoreCase:!0,animation:{},virtual:!1,template:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:["open","close",g,"select","filtering","dataBinding","dataBound","cascade","set"],setOptions:function(e){r.fn.setOptions.call(this,e),this.listView.setOptions(e),this._accessors(),this._aria()},destroy:function(){var e=this;e.input.off(d),e.element.off(d),e._inputWrapper.off(d),clearTimeout(e._pasteTimeout),e._arrow.parent().off(p+" "+h),r.fn.destroy.call(e)},_focusHandler:function(){this.input.focus()},_arrowClick:function(){this._toggle()},_inputFocus:function(){this._inputWrapper.addClass(_),this._placeholder(!1)},_inputFocusout:function(){var e=this,n=e.value();return e._inputWrapper.removeClass(_),clearTimeout(e._typingTimeout),e._typingTimeout=null,e.text(e.text()),n!==e.value()&&e.trigger("select",{item:e._focus()})?(e.value(n),t):(e._placeholder(),e._blur(),e.element.blur(),t)},_inputPaste:function(){var e=this;clearTimeout(e._pasteTimeout),e._pasteTimeout=null,e._pasteTimeout=setTimeout(function(){e.search()})},_editable:function(e){var t=this,n=e.disable,i=e.readonly,o=t._inputWrapper.off(d),r=t.element.add(t.input.off(d)),a=t._arrow.parent().off(p+" "+h);i||n?(o.addClass(n?b:v).removeClass(n?v:b),r.attr(f,n).attr(m,i).attr(w,n)):(o.addClass(v).removeClass(b).on(C,t._toggleHover),r.removeAttr(f).removeAttr(m).attr(w,!1),a.on(p,T(t._arrowClick,t)).on(h,function(e){e.preventDefault()}),t.input.on("keydown"+d,T(t._keydown,t)).on("focus"+d,T(t._inputFocus,t)).on("focusout"+d,T(t._inputFocusout,t)).on("paste"+d,T(t._inputPaste,t)))},open:function(){var e=this,t=e._state;e.popup.visible()||(!e.listView.bound()&&t!==k||t===y?(e._open=!0,e._state=x,e._filterSource()):(e.popup.open(),e._focusItem()))},_updateSelectionState:function(){var e=this,n=e.options.text,i=e.options.value;e.listView.isFiltered()||(-1===e.selectedIndex?((n===t||null===n)&&(n=i),e._accessor(i),e.input.val(n||e.input.val()),e._placeholder()):-1===e._oldIndex&&(e._oldIndex=e.selectedIndex))},_buildOptions:function(e){var n,i=this;i._isSelect&&(n=i._customOption,i._state===x&&(i._state=""),i._customOption=t,i._options(e,"",i.value()),n&&n[0].selected&&i._custom(n.val()))},_updateSelection:function(){var n,i=this,o=i.listView,r=i._initialIndex,a=null!==r&&r>-1,s=i._state===k;return s?(e(o.focus()).removeClass("k-state-selected"),t):(i._fetch||(o.value().length||(a?i.select(r):i._accessor()&&o.value(i._accessor())),i._initialIndex=null,n=o.selectedDataItems()[0],n&&(i._value(n)!==i.value()&&i._custom(i._value(n)),i.text()&&i.text()!==i._text(n)&&i._selectValue(n))),t)},_updateItemFocus:function(){var e=this.listView;this.options.highlightFirst?e.focus()||e.focusIndex()||e.focus(0):e.focus(-1)},_listBound:function(){var e=this,n=e.input[0]===u(),i=e.dataSource.flatView(),o=e.listView.skip(),r=o===t||0===o;e._presetValue=!1,e._resizePopup(),e.popup.position(),e._buildOptions(i),e._makeUnselectable(),e._updateSelection(),i.length&&r&&(e._updateItemFocus(),e.options.suggest&&n&&e.input.val()&&e.suggest(i[0])),e._open&&(e._open=!1,e._typingTimeout&&!n?e.popup.close():e.toggle(!!i.length),e._typingTimeout=null),e._hideBusy(),e.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),this._presetValue&&(this._oldIndex=this.selectedIndex)},_get:function(e){var t,n,i;if("function"==typeof e){for(t=this.dataSource.flatView(),i=0;t.length>i;i++)if(e(t[i])){e=i,n=!0;break}n||(e=-1)}return e},_select:function(e,t){e=this._get(e),-1===e&&(this.input[0].value="",this._accessor("")),this.listView.select(e),t||this._state!==k||(this._state=y)},_selectValue:function(e){var n=this.listView.select(),i="",o="";n=n[n.length-1],n===t&&(n=-1),this.selectedIndex=n,-1===n?(i=o=this.input[0].value,this.listView.focus(-1)):(e&&(i=this._dataValue(e),o=this._text(e)),null===i&&(i="")),this._prev=this.input[0].value=o,this._accessor(i!==t?i:o,n),this._placeholder(),this._triggerCascade()},refresh:function(){this.listView.refresh()},suggest:function(e){var n,i=this,r=i.input[0],s=i.text(),l=a(r)[0],d=i._last;return d==c.BACKSPACE||d==c.DELETE?(i._last=t,t):(e=e||"","string"!=typeof e&&(e[0]&&(e=i.dataSource.view()[o.inArray(e[0],i.ul[0])]),e=e?i._text(e):""),0>=l&&(l=s.toLowerCase().indexOf(e.toLowerCase())+1),e?(e=""+e,n=e.toLowerCase().indexOf(s.toLowerCase()),n>-1&&(s+=e.substring(n+s.length))):s=s.substring(0,l),s.length===l&&e||(r.value=s,r===u()&&a(r,l,s.length)),t)},text:function(e){var n,i,r,a,s,l;return e=null===e?"":e,n=this,i=n.input[0],r=n.options.ignoreCase,a=e,e===t?i.value:n.options.autoBind!==!1||n.listView.bound()?(s=n.dataItem(),s&&n._text(s)===e&&(l=n._value(s),l===o.unifyType(n._old,typeof l))?(n._triggerCascade(),t):(r&&(a=a.toLowerCase()),n._select(function(e){return e=n._text(e),r&&(e=(e+"").toLowerCase()),e===a}),0>n.selectedIndex&&(n._accessor(e),i.value=e,n._triggerCascade()),n._prev=i.value,t)):(n._setText(e),t)},toggle:function(e){this._toggle(e,!0)},value:function(e){var n=this,i=n.options,o=n.listView;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):(n.trigger("set",{value:e}),(e!==i.value||n.input.val()!==i.text)&&(n._accessor(e),n._isFilterEnabled()&&o.bound()&&o.isFiltered()?n._clearFilter():n._fetchData(),o.value(e).done(function(){-1===n.selectedIndex&&(n._accessor(e),n.input.val(e),n._placeholder(!0)),n._old=n._accessor(),n._oldIndex=n.selectedIndex,n._prev=n.input.val(),n._state===k&&(n._state=y)})),t)},_click:function(e){var n=e.item;return e.preventDefault(),this.trigger("select",{item:n})?(this.close(),t):(this._userTriggered=!0,this._select(n),this._blur(),t)},_filter:function(e){var n,i=this,o=i.options,r=i.dataSource,a=o.ignoreCase,s=function(n){var o=i._text(n);return o!==t?(o+="",""!==o&&""===e?!1:(a&&(o=o.toLowerCase()),0===o.indexOf(e))):t};return a&&(e=e.toLowerCase()),i.ul[0].firstChild?(this.listView.focus(this._get(s)),n=this.listView.focus(),n&&(o.suggest&&i.suggest(n),this.open()),this.options.highlightFirst&&!e&&this.listView.focusFirst(),t):(r.one(g,function(){r.view()[0]&&i.search(e)}).fetch(),t)},_input:function(){var t,n,i=this,o=i.element.removeClass("k-input")[0],r=o.accessKey,a=i.wrapper,s="input.k-input",u=o.name||"";u&&(u='name="'+u+'_input" '),t=a.find(s),t[0]||(a.append('<span tabindex="-1" unselectable="on" class="k-dropdown-wrap k-state-default"><input '+u+'class="k-input" type="text" autocomplete="off"/><span tabindex="-1" unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(i.element),t=a.find(s)),t[0].style.cssText=o.style.cssText,t[0].title=o.title,n=parseInt(this.element.prop("maxlength")||this.element.attr("maxlength"),10),n>-1&&(t[0].maxLength=n),t.addClass(o.className).val(this.options.text||o.value).css({width:"100%",height:o.style.height}).attr({role:"combobox","aria-expanded":!1}).show(),l&&t.attr("placeholder",i.options.placeholder),r&&(o.accessKey="",t[0].accessKey=r),i._focused=i.input=t,i._inputWrapper=e(a[0].firstChild),i._arrow=a.find(".k-icon").attr({role:"button",tabIndex:-1}),o.id&&i._arrow.attr("aria-controls",i.ul[0].id)},_keydown:function(e){var t=this,n=e.keyCode;t._last=n,clearTimeout(t._typingTimeout),t._typingTimeout=null,n==c.TAB||t._move(e)||t._search()},_placeholder:function(e){if(!l){var n,i=this,o=i.input,r=i.options.placeholder;if(r){if(n=i.value(),e===t&&(e=!n),o.toggleClass("k-readonly",e),!e){if(n)return;r=""}o.val(r),r||o[0]!==u()||a(o[0],0,0)}}},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.text();e._prev!==t&&(e._prev=t,"none"===e.options.filter&&e.listView.select(-1),e.search(t)),e._typingTimeout=null},e.options.delay)},_setText:function(e){this.input.val(e),this._prev=e},_wrapper:function(){var e=this,t=e.element,n=t.parent();n.is("span.k-widget")||(n=t.hide().wrap("<span />").parent(),n[0].style.cssText=t[0].style.cssText),e.wrapper=n.addClass("k-widget k-combobox k-header").addClass(t[0].className).css("display","")},_clearSelection:function(e,t){var n=this,i=e.value(),o=i&&-1===e.selectedIndex;-1==this.selectedIndex&&this.value()||(t||!i||o)&&(n.options.value="",n.value(""))},_preselect:function(e,t){this.input.val(t),this._accessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._placeholder(),this._initialIndex=null,this._presetValue=!0}});i.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.multiselect.min",["kendo.list.min","kendo.mobile.scroller.min"],e)}(function(){return function(e,t){function n(e,t){var n;if(null===e&&null!==t||null!==e&&null===t)return!1;if(n=e.length,n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}var i=window.kendo,o=i.ui,r=o.List,a=i.keys,s=i._activeElement,l=i.data.ObservableArray,u=e.proxy,c="id",d="li",p="accept",h="filter",f="rebind",m="open",g="close",v="change",_="progress",b="select",w="aria-disabled",k="k-state-focused",y="k-loading-hidden",x="k-state-hover",C="k-state-disabled",T="disabled",S="readonly",D=".kendoMultiSelect",F="click"+D,E="keydown"+D,I="mouseenter"+D,P="mouseleave"+D,A=I+" "+P,M=/"/g,H=e.isArray,O=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],z=r.extend({init:function(t,n){var o,a,s=this;s.ns=D,r.fn.init.call(s,t,n),s._optionsMap={},s._customOptions={},s._wrapper(),s._tagList(),s._input(),s._textContainer(),s._loader(),s._tabindex(s.input),t=s.element.attr("multiple","multiple").hide(),n=s.options,n.placeholder||(n.placeholder=t.data("placeholder")),o=t.attr(c),o&&(s._tagID=o+"_tag_active",o+="_taglist",s.tagList.attr(c,o)),s._aria(o),s._dataSource(),s._ignoreCase(),s._popup(),s._tagTemplate(),s._initList(),s._reset(),s._enable(),s._placeholder(),n.autoBind?s.dataSource.fetch():n.value&&s._preselect(n.value),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),i.notify(s)},options:{name:"MultiSelect",tagMode:"multiple",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:"",dataValueField:"",filter:"startswith",ignoreCase:!0,minLength:0,delay:100,value:null,maxSelectedItems:null,placeholder:"",height:200,animation:{},virtual:!1,itemTemplate:"",tagTemplate:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:[m,g,v,b,"filtering","dataBinding","dataBound"],setDataSource:function(e){this.options.dataSource=e,this._state="",this._dataSource(),this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(e){var t=this._listOptions(e);r.fn.setOptions.call(this,e),this.listView.setOptions(t),this._accessors(),this._aria(this.tagList.attr(c)),this._tagTemplate()},currentTag:function(e){var n=this;return e===t?n._currentTag:(n._currentTag&&(n._currentTag.removeClass(k).removeAttr(c),
n.input.removeAttr("aria-activedescendant")),e&&(e.addClass(k).attr(c,n._tagID),n.input.attr("aria-activedescendant",n._tagID)),n._currentTag=e,t)},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var e=this,t=e.ns;clearTimeout(e._busy),clearTimeout(e._typingTimeout),e.wrapper.off(t),e.tagList.off(t),e.input.off(t),r.fn.destroy.call(e)},_activateItem:function(){r.fn._activateItem.call(this),this.currentTag(null)},_listOptions:function(t){var n=this,o=r.fn._listOptions.call(n,e.extend(t,{selectedItemChange:u(n._selectedItemChange,n),selectable:"multiple"})),a=this.options.itemTemplate||this.options.template,s=o.itemTemplate||a||o.template;return s||(s="#:"+i.expr(o.dataTextField,"data")+"#"),o.template=s,o},_setListValue:function(){r.fn._setListValue.call(this,this._initialValues.slice(0))},_listChange:function(e){var n,i=this.dataSource.flatView(),o=this._optionsMap,r=this._value;for(this._state===f&&(this._state=""),n=0;e.added.length>n;n++)if(o[r(e.added[n])]===t){this._render(i);break}this._selectValue(e.added,e.removed)},_selectedItemChange:function(e){var t,n,i=e.items;for(n=0;i.length>n;n++)t=i[n],this.tagList.children().eq(t.index).children("span:first").html(this.tagTextTemplate(t.item))},_wrapperMousedown:function(t){var n=this,o="input"!==t.target.nodeName.toLowerCase(),r=e(t.target),a=r.hasClass("k-select")||r.hasClass("k-icon");a&&(a=!r.closest(".k-select").children(".k-i-arrow-s").length),!o||a&&i.support.mobileOS||t.preventDefault(),a||(n.input[0]!==s()&&o&&n.input.focus(),0===n.options.minLength&&n.open())},_inputFocus:function(){this._placeholder(!1),this.wrapper.addClass(k)},_inputFocusout:function(){var e=this;clearTimeout(e._typingTimeout),e.wrapper.removeClass(k),e._placeholder(!e.listView.selectedDataItems()[0],!0),e.close(),e._state===h&&(e._state=p,e.listView.skipUpdate(!0)),e.element.blur()},_removeTag:function(e){var n,i=this,o=i._state,r=e.index(),a=i.listView,s=a.value()[r],l=i._customOptions[s];l!==t||o!==p&&o!==h||(l=i._optionsMap[s]),l!==t?(n=i.element[0].children[l],n.removeAttribute("selected"),n.selected=!1,a.removeAt(r),e.remove()):a.select(a.select()[r]),i.currentTag(null),i._change(),i._close()},_tagListClick:function(t){var n=e(t.currentTarget);n.children(".k-i-arrow-s").length||this._removeTag(n.closest(d))},_editable:function(t){var n=this,i=t.disable,o=t.readonly,r=n.wrapper.off(D),a=n.tagList.off(D),s=n.element.add(n.input.off(D));o||i?(i?r.addClass(C):r.removeClass(C),s.attr(T,i).attr(S,o).attr(w,i)):(r.removeClass(C).on(A,n._toggleHover).on("mousedown"+D+" touchend"+D,u(n._wrapperMousedown,n)),n.input.on(E,u(n._keydown,n)).on("paste"+D,u(n._search,n)).on("focus"+D,u(n._inputFocus,n)).on("focusout"+D,u(n._inputFocusout,n)),s.removeAttr(T).removeAttr(S).attr(w,!1),a.on(I,d,function(){e(this).addClass(x)}).on(P,d,function(){e(this).removeClass(x)}).on(F,"li.k-button .k-select",u(n._tagListClick,n)))},_close:function(){var e=this;e.options.autoClose?e.close():e.popup.position()},_filterSource:function(e,t){t||(t=this._retrieveData),this._retrieveData=!1,r.fn._filterSource.call(this,e,t)},close:function(){this.popup.close()},open:function(){var e=this;e._request&&(e._retrieveData=!1),e._retrieveData||!e.listView.bound()||e._state===p?(e._open=!0,e._state=f,e.listView.skipUpdate(!0),e._filterSource()):e._allowSelection()&&(e.popup.open(),e._focusItem())},toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?m:g]()},refresh:function(){this.listView.refresh()},_listBound:function(){var e=this,n=e.dataSource.flatView(),i=e.listView.skip(),o=n.length;e._render(n),e._resizePopup(),e._open&&(e._open=!1,e.toggle(o)),e.popup.position(),!e.options.highlightFirst||i!==t&&0!==i||e.listView.focusFirst(),e._touchScroller&&e._touchScroller.reset(),e._hideBusy(),e._makeUnselectable(),e.trigger("dataBound")},search:function(e){var t,n,i=this,o=i.options,r=o.ignoreCase,a=o.dataTextField,s=i.input.val();o.placeholder===s&&(s=""),clearTimeout(i._typingTimeout),e="string"==typeof e?e:s,n=e.length,(!n||n>=o.minLength)&&(i._state=h,i._open=!0,t={value:r?e.toLowerCase():e,field:a,operator:o.filter,ignoreCase:r},i._filterSource(t))},value:function(e){var n=this,i=n.listView,o=i.value().slice(),r=n.options.maxSelectedItems,a=i.bound()&&i.isFiltered();return e===t?o:(e=n._normalizeValues(e),null!==r&&e.length>r&&(e=e.slice(0,r)),a&&n._clearFilter(),i.value(e),n._old=e,a||n._fetchData(),t)},_preselect:function(t,n){var o=this;H(t)||t instanceof i.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof i.data.ObservableObject||!o.options.dataValueField)&&(o.dataSource.data(t),o.value(n||o._initialValues),o._retrieveData=!0)},_setOption:function(e,t){var n=this.element[0].children[this._optionsMap[e]];n&&(t?n.setAttribute("selected","selected"):n.removeAttribute("selected"),n.selected=t)},_fetchData:function(){var e=this,t=!!e.dataSource.view().length,n=0===e.listView.value().length;n||e._request||(e._retrieveData||!e._fetch&&!t)&&(e._fetch=!0,e._retrieveData=!1,e.dataSource.read().done(function(){e._fetch=!1}))},_isBound:function(){return this.listView.bound()&&!this._retrieveData},_dataSource:function(){var e=this,t=e.element,n=e.options,o=n.dataSource||{};o=H(o)?{data:o}:o,o.select=t,o.fields=[{field:n.dataTextField},{field:n.dataValueField}],e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._progressHandler=u(e._showBusy,e),e._errorHandler=u(e._hideBusy,e)),e.dataSource=i.data.DataSource.create(o).bind(_,e._progressHandler).bind("error",e._errorHandler)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initialValues),t._placeholder()})},t._form=o.on("reset",t._resetHandler))},_initValue:function(){var e=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(e)},_normalizeValues:function(t){var n=this;return null===t?t=[]:t&&e.isPlainObject(t)?t=[n._value(t)]:t&&e.isPlainObject(t[0])?t=e.map(t,function(e){return n._value(e)}):H(t)||t instanceof l||(t=[t]),t},_change:function(){var e=this,t=e.value();n(t,e._old)||(e._old=t.slice(),e.trigger(v),e.element.trigger(v))},_click:function(e){var n=e.item;return e.preventDefault(),this.trigger(b,{item:n})?(this._close(),t):(this._select(n),this._change(),this._close(),t)},_keydown:function(n){var o=this,r=n.keyCode,s=o._currentTag,l=o.listView.focus(),u=o.input.val(),c=i.support.isRtl(o.wrapper),d=o.popup.visible();if(r===a.DOWN){if(n.preventDefault(),!d)return o.open(),l||this.listView.focusFirst(),t;l?(this.listView.focusNext(),this.listView.focus()||this.listView.focusLast()):this.listView.focusFirst()}else if(r===a.UP)d&&(l&&this.listView.focusPrev(),this.listView.focus()||o.close()),n.preventDefault();else if(r===a.LEFT&&!c||r===a.RIGHT&&c)u||(s=s?s.prev():e(o.tagList[0].lastChild),s[0]&&o.currentTag(s));else if(r===a.RIGHT&&!c||r===a.LEFT&&c)!u&&s&&(s=s.next(),o.currentTag(s[0]?s:null));else if(r===a.ENTER&&d){if(l){if(o.trigger(b,{item:l}))return o._close(),t;o._select(l)}o._change(),o._close(),n.preventDefault()}else r===a.ESC?(d?n.preventDefault():o.currentTag(null),o.close()):r===a.HOME?d?this.listView.focusFirst():u||(s=o.tagList[0].firstChild,s&&o.currentTag(e(s))):r===a.END?d?this.listView.focusLast():u||(s=o.tagList[0].lastChild,s&&o.currentTag(e(s))):r!==a.DELETE&&r!==a.BACKSPACE||u?(clearTimeout(o._typingTimeout),setTimeout(function(){o._scale()}),o._search()):(r!==a.BACKSPACE||s||(s=e(o.tagList[0].lastChild)),s&&s[0]&&o._removeTag(s))},_hideBusy:function(){var e=this;clearTimeout(e._busy),e.input.attr("aria-busy",!1),e._loading.addClass(y),e._request=!1,e._busy=null},_showBusyHandler:function(){this.input.attr("aria-busy",!0),this._loading.removeClass(y)},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(u(e._showBusyHandler,e),100))},_placeholder:function(e,n){var o=this,r=o.input,a=s();e===t&&(e=!1,r[0]!==a&&(e=!o.listView.selectedDataItems()[0])),o._prev="",r.toggleClass("k-readonly",e).val(e?o.options.placeholder:""),r[0]!==a||n||i.caret(r[0],0,0),o._scale()},_scale:function(){var e,t=this,n=t.wrapper,i=n.width(),o=t._span.text(t.input.val());n.is(":visible")?e=o.width()+25:(o.appendTo(document.documentElement),i=e=o.width()+25,o.appendTo(n)),t.input.width(e>i?i:e)},_option:function(e,n,o){var r="<option";return e!==t&&(e+="",-1!==e.indexOf('"')&&(e=e.replace(M,"&quot;")),r+=' value="'+e+'"'),o&&(r+=" selected"),r+=">",n!==t&&(r+=i.htmlEncode(n)),r+="</option>"},_render:function(e){var t,n,i,o,r,a,s=this.listView.selectedDataItems(),l=this.listView.value(),u=e.length,c="";for(l.length!==s.length&&(s=this._buildSelectedItems(l)),r={},a={},o=0;u>o;o++)n=e[o],i=this._value(n),t=this._selectedItemIndex(i,s),-1!==t&&s.splice(t,1),a[i]=o,c+=this._option(i,this._text(n),-1!==t);if(s.length)for(o=0;s.length>o;o++)n=s[o],i=this._value(n),r[i]=u,a[i]=u,u+=1,c+=this._option(i,this._text(n),!0);this._customOptions=r,this._optionsMap=a,this.element.html(c)},_buildSelectedItems:function(e){var t,n,i=this.options.dataValueField,o=this.options.dataTextField,r=[];for(n=0;e.length>n;n++)t={},t[i]=e[n],t[o]=e[n],r.push(t);return r},_selectedItemIndex:function(e,t){for(var n=this._value,i=0;t.length>i;i++)if(e===n(t[i]))return i;return-1},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.input.val();e._prev!==t&&(e._prev=t,e.search(t))},e.options.delay)},_allowSelection:function(){var e=this.options.maxSelectedItems;return null===e||e>this.listView.value().length},_angularTagItems:function(t){var n=this;n.angular(t,function(){return{elements:n.tagList[0].children,data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})},_selectValue:function(e,t){var n,i,o,r=this,a=r.value(),s=r.dataSource.total(),l=r.tagList,u=r._value;if(r._angularTagItems("cleanup"),"multiple"===r.options.tagMode){for(o=t.length-1;o>-1;o--)n=t[o],l[0].removeChild(l[0].children[n.position]),r._setOption(u(n.dataItem),!1);for(o=0;e.length>o;o++)i=e[o],l.append(r.tagTemplate(i.dataItem)),r._setOption(u(i.dataItem),!0)}else{for((!r._maxTotal||s>r._maxTotal)&&(r._maxTotal=s),l.html(""),a.length&&l.append(r.tagTemplate({values:a,dataItems:r.dataItems(),maxTotal:r._maxTotal,currentTotal:s})),o=t.length-1;o>-1;o--)r._setOption(u(t[o].dataItem),!1);for(o=0;e.length>o;o++)r._setOption(u(e[o].dataItem),!0)}r._angularTagItems("compile"),r._placeholder()},_select:function(e){var t=this;t._state===f&&(t._state=""),t._allowSelection()&&(this.listView.select(e),t._placeholder(),t._state===h&&(t._state=p,t.listView.skipUpdate(!0)))},_input:function(){var t=this,n=t.element[0].accessKey,i=t._innerWrapper.children("input.k-input");i[0]||(i=e('<input class="k-input" style="width: 25px" />').appendTo(t._innerWrapper)),t.element.removeAttr("accesskey"),t._focused=t.input=i.attr({accesskey:n,autocomplete:"off",role:"listbox","aria-expanded":!1})},_tagList:function(){var t=this,n=t._innerWrapper.children("ul");n[0]||(n=e('<ul role="listbox" unselectable="on" class="k-reset"/>').appendTo(t._innerWrapper)),t.tagList=n},_tagTemplate:function(){var e,t=this,n=t.options,o=n.tagTemplate,r=n.dataSource,a="multiple"===n.tagMode;t.element[0].length&&!r&&(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value"),e=a?i.template("#:"+i.expr(n.dataTextField,"data")+"#",{useWithBlock:!1}):i.template("#:values.length# item(s) selected"),t.tagTextTemplate=o=o?i.template(o):e,t.tagTemplate=function(e){return'<li class="k-button" unselectable="on"><span unselectable="on">'+o(e)+'</span><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon '+(a?"k-i-close":"k-i-arrow-s")+'">'+(a?"delete":"open")+"</span></span></li>"}},_loader:function(){this._loading=e('<span class="k-icon k-loading '+y+'"></span>').insertAfter(this.input)},_textContainer:function(){var t=i.getComputedStyles(this.input[0],O);t.position="absolute",t.visibility="hidden",t.top=-3333,t.left=-3333,this._span=e("<span/>").css(t).appendTo(this.wrapper)},_wrapper:function(){var t=this,n=t.element,i=n.parent("span.k-multiselect");i[0]||(i=n.wrap('<div class="k-widget k-multiselect k-header" unselectable="on" />').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('<div class="k-multiselect-wrap k-floatwrap" unselectable="on" />').insertBefore(n)),t.wrapper=i.addClass(n[0].className).css("display",""),t._innerWrapper=e(i[0].firstChild)}});o.plugin(z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.color.min",["kendo.core.min"],e)}(function(){!function(e,t,n){function i(e,o){var r,s;if(null==e||"none"==e)return null;if(e instanceof l)return e;if(e=e.toLowerCase(),r=a.exec(e))return e="transparent"==r[1]?new u(1,1,1,0):i(h.namedColors[r[1]],o),e.match=[r[1]],e;if((r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(e))?s=new c(n(r[1],16),n(r[2],16),n(r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(e))?s=new c(n(r[1]+r[1],16),n(r[2]+r[2],16),n(r[3]+r[3],16),1):(r=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(e))?s=new c(n(r[1],10),n(r[2],10),n(r[3],10),1):(r=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(e))?s=new c(n(r[1],10),n(r[2],10),n(r[3],10),t(r[4])):(r=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(e))?s=new u(t(r[1])/100,t(r[2])/100,t(r[3])/100,1):(r=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(e))&&(s=new u(t(r[1])/100,t(r[2])/100,t(r[3])/100,t(r[4]))),s)s.match=r;else if(!o)throw Error("Cannot parse color: "+e);return s}function o(e,t,n){for(n||(n="0"),e=e.toString(16);t>e.length;)e="0"+e;return e}function r(e,t,n){return 0>n&&(n+=1),n>1&&(n-=1),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e}var a,s,l,u,c,d,p,h=function(e){var t,n,i,o,r,a=this,s=h.formats;if(1===arguments.length)for(e=a.resolveColor(e),o=0;s.length>o;o++)t=s[o].re,n=s[o].process,i=t.exec(e),i&&(r=n(i),a.r=r[0],a.g=r[1],a.b=r[2]);else a.r=arguments[0],a.g=arguments[1],a.b=arguments[2];a.r=a.normalizeByte(a.r),a.g=a.normalizeByte(a.g),a.b=a.normalizeByte(a.b)};h.prototype={toHex:function(){var e=this,t=e.padDigit,n=e.r.toString(16),i=e.g.toString(16),o=e.b.toString(16);return"#"+t(n)+t(i)+t(o)},resolveColor:function(e){return e=e||"black","#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase(),e=h.namedColors[e]||e},normalizeByte:function(e){return 0>e||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=this,n=Math.round;return t.r=n(t.normalizeByte(t.r*e)),t.g=n(t.normalizeByte(t.g*e)),t.b=n(t.normalizeByte(t.b*e)),t},percBrightness:function(){var e=this;return Math.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)}},h.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[n(e[1],10),n(e[2],10),n(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[n(e[1],16),n(e[2],16),n(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[n(e[1]+e[1],16),n(e[2]+e[2],16),n(e[3]+e[3],16)]}}],h.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},a=["transparent"];for(s in h.namedColors)h.namedColors.hasOwnProperty(s)&&a.push(s);a=RegExp("^("+a.join("|")+")(\\W|$)","i"),l=kendo.Class.extend({toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){return this},toCss:function(){return"#"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+t((+this.a).toFixed(3))+")"},toDisplay:function(){return kendo.support.browser.msie&&kendo.support.browser.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()==i(e).toCssRgba()},diff:function(e){if(null==e)return NaN;var t=this.toBytes();return e=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},clone:function(){var e=this.toBytes();return e===this&&(e=new c(e.r,e.g,e.b,e.a)),e}}),u=l.extend({init:function(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i},toHSV:function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.min(n,i,o),a=Math.max(n,i,o),s=a,l=a-r;return 0===l?new d(0,0,s,this.a):(0!==a?(t=l/a,e=n==a?(i-o)/l:i==a?2+(o-n)/l:4+(n-i)/l,e*=60,0>e&&(e+=360)):(t=0,e=-1),new d(e,t,s,this.a))},toHSL:function(){var e,t,n,i=this.r,o=this.g,r=this.b,a=Math.max(i,o,r),s=Math.min(i,o,r),l=(a+s)/2;if(a==s)e=t=0;else{switch(n=a-s,t=l>.5?n/(2-a-s):n/(a+s),a){case i:e=(o-r)/n+(r>o?6:0);break;case o:e=(r-i)/n+2;break;case r:e=(i-o)/n+4}e*=60,t*=100,l*=100}return new p(e,t,l,this.a)},toBytes:function(){return new c(255*this.r,255*this.g,255*this.b,this.a)}}),c=u.extend({init:function(e,t,n,i){this.r=Math.round(e),this.g=Math.round(t),this.b=Math.round(n),this.a=i},toRGB:function(){return new u(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(){return o(this.r,2)+o(this.g,2)+o(this.b,2)},toBytes:function(){return this}}),d=l.extend({init:function(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i},toRGB:function(){var e,t,n,i,o,r,a,s,l=this.h,c=this.s,d=this.v;if(0===c)t=n=i=d;else switch(l/=60,e=Math.floor(l),o=l-e,r=d*(1-c),a=d*(1-c*o),s=d*(1-c*(1-o)),e){case 0:t=d,n=s,i=r;break;case 1:t=a,n=d,i=r;break;case 2:t=r,n=d,i=s;break;case 3:t=r,n=a,i=d;break;case 4:t=s,n=r,i=d;break;default:t=d,n=r,i=a}return new u(t,n,i,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),p=l.extend({init:function(e,t,n,i){this.h=e,this.s=t,this.l=n,this.a=i},toRGB:function(){var e,t,n,i,o,a=this.h,s=this.s,l=this.l;return 0===s?e=t=n=l:(a/=360,s/=100,l/=100,i=.5>l?l*(1+s):l+s-l*s,o=2*l-i,e=r(o,i,a+1/3),t=r(o,i,a),n=r(o,i,a-1/3)),new u(e,t,n,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}}),h.fromBytes=function(e,t,n,i){return new c(e,t,n,null!=i?i:1)},h.fromRGB=function(e,t,n,i){return new u(e,t,n,null!=i?i:1)},h.fromHSV=function(e,t,n,i){return new d(e,t,n,null!=i?i:1)},h.fromHSL=function(e,t,n,i){return new p(e,t,n,null!=i?i:1)},kendo.Color=h,kendo.parseColor=i}(window.kendo.jQuery,parseFloat,parseInt)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.slider.min",["kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e,t,n){var i=n?" k-slider-horizontal":" k-slider-vertical",o=e.style?e.style:t.attr("style"),r=t.attr("class")?" "+t.attr("class"):"",a="";return"bottomRight"==e.tickPlacement?a=" k-slider-bottomright":"topLeft"==e.tickPlacement&&(a=" k-slider-topleft"),o=o?" style='"+o+"'":"","<div class='k-widget k-slider"+i+r+"'"+o+"><div class='k-slider-wrap"+(e.showButtons?" k-slider-buttons":"")+a+"'></div></div>"}function i(e,t,n){var i="";return i="increase"==t?n?"k-i-arrow-e":"k-i-arrow-n":n?"k-i-arrow-w":"k-i-arrow-s","<a class='k-button k-button-"+t+"'><span class='k-icon "+i+"' title='"+e[t+"ButtonTitle"]+"'>"+e[t+"ButtonTitle"]+"</span></a>"}function o(e,t){var n,i="<ul class='k-reset k-slider-items'>",o=x.floor(c(t/e.smallStep))+1;for(n=0;o>n;n++)i+="<li class='k-tick' role='presentation'>&nbsp;</li>";return i+="</ul>"}function r(e,t){var n=t.is("input")?1:2,i=2==n?e.leftDragHandleTitle:e.dragHandleTitle;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='"+i+"' role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(n>1?e.selectionStart||e.min:e.value||e.min)+"'>Drag</a>"+(n>1?"<a href='#' class='k-draghandle' title='"+e.rightDragHandleTitle+"'role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(e.selectionEnd||e.max)+"'>Drag</a>":"")+"</div>"}function a(e){return function(t){return t+e}}function s(e){return function(){return e}}function l(e){return(e+"").replace(".",m.cultures.current.numberFormat["."])}function u(e){var t=""+e,n=0;return t=t.split("."),t[1]&&(n=t[1].length),n=n>10?10:n}function c(e){var t,n;return e=parseFloat(e,10),t=u(e),n=x.pow(10,t||0),x.round(e*n)/n}function d(e,n){var i=w(e.getAttribute(n));return null===i&&(i=t),i}function p(e){return typeof e!==Y}function h(e){return 1e4*e}var f,m=window.kendo,g=m.ui.Widget,v=m.ui.Draggable,_=e.extend,b=m.format,w=m.parseFloat,k=e.proxy,y=e.isArray,x=Math,C=m.support,T=C.pointers,S=C.msPointers,D="change",F="slide",E=".slider",I="touchstart"+E+" mousedown"+E,P=T?"pointerdown"+E:S?"MSPointerDown"+E:I,A="touchend"+E+" mouseup"+E,M=T?"pointerup":S?"MSPointerUp"+E:A,H="moveSelection",O="keydown"+E,z="click"+E,V="mouseover"+E,B="focus"+E,L="blur"+E,R=".k-draghandle",N=".k-slider-track",W=".k-tick",U="k-state-selected",j="k-state-focused",q="k-state-default",$="k-state-disabled",G="disabled",Y="undefined",Q="tabindex",K=m.getTouches,J=g.extend({init:function(e,t){var n,i=this;if(g.fn.init.call(i,e,t),t=i.options,i._distance=c(t.max-t.min),i._isHorizontal="horizontal"==t.orientation,i._isRtl=i._isHorizontal&&m.support.isRtl(e),i._position=i._isHorizontal?"left":"bottom",i._sizeFn=i._isHorizontal?"width":"height",i._outerSize=i._isHorizontal?"outerWidth":"outerHeight",t.tooltip.format=t.tooltip.enabled?t.tooltip.format||"{0}":"{0}",0>=t.smallStep)throw Error("Kendo UI Slider smallStep must be a positive number.");i._createHtml(),i.wrapper=i.element.closest(".k-slider"),i._trackDiv=i.wrapper.find(N),i._setTrackDivWidth(),i._maxSelection=i._trackDiv[i._sizeFn](),i._sliderItemsInit(),i._reset(),i._tabindex(i.wrapper.find(R)),i[t.enabled?"enable":"disable"](),n=m.support.isRtl(i.wrapper)?-1:1,i._keyMap={37:a(-1*n*t.smallStep),40:a(-t.smallStep),39:a(1*n*t.smallStep),38:a(+t.smallStep),35:s(t.max),36:s(t.min),33:a(+t.largeStep),34:a(-t.largeStep)},m.notify(i)},events:[D,F],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_resize:function(){this._setTrackDivWidth(),this.wrapper.find(".k-slider-items").remove(),this._maxSelection=this._trackDiv[this._sizeFn](),this._sliderItemsInit(),this._refresh(),this.options.enabled&&this.enable(!0)},_sliderItemsInit:function(){var e=this,t=e.options,n=e._maxSelection/((t.max-t.min)/t.smallStep),i=e._calculateItemsWidth(x.floor(e._distance/t.smallStep));"none"!=t.tickPlacement&&n>=2&&(e._trackDiv.before(o(t,e._distance)),e._setItemsWidth(i),e._setItemsTitle()),e._calculateSteps(i),"none"!=t.tickPlacement&&n>=2&&t.largeStep>=t.smallStep&&e._setItemsLargeTick()},getSize:function(){return m.dimensions(this.wrapper)},_setTrackDivWidth:function(){var e=this,t=2*parseFloat(e._trackDiv.css(e._isRtl?"right":e._position),10);e._trackDiv[e._sizeFn](e.wrapper[e._sizeFn]()-2-t)},_setItemsWidth:function(t){var n,i=this,o=i.options,r=0,a=t.length-1,s=i.wrapper.find(W),l=0,u=2,c=s.length,d=0;for(n=0;c-2>n;n++)e(s[n+1])[i._sizeFn](t[n]);if(i._isHorizontal?(e(s[r]).addClass("k-first")[i._sizeFn](t[a-1]),e(s[a]).addClass("k-last")[i._sizeFn](t[a])):(e(s[a]).addClass("k-first")[i._sizeFn](t[a]),e(s[r]).addClass("k-last")[i._sizeFn](t[a-1])),i._distance%o.smallStep!==0&&!i._isHorizontal){for(n=0;t.length>n;n++)d+=t[n];l=i._maxSelection-d,l+=parseFloat(i._trackDiv.css(i._position),10)+u,i.wrapper.find(".k-slider-items").css("padding-top",l)}},_setItemsTitle:function(){for(var t=this,n=t.options,i=t.wrapper.find(W),o=n.min,r=i.length,a=t._isHorizontal&&!t._isRtl?0:r-1,s=t._isHorizontal&&!t._isRtl?r:-1,l=t._isHorizontal&&!t._isRtl?1:-1;a-s!==0;a+=l)e(i[a]).attr("title",b(n.tooltip.format,c(o))),o+=n.smallStep},_setItemsLargeTick:function(){var t,n,i,o=this,r=o.options,a=o.wrapper.find(W),s=0;if(h(r.largeStep)%h(r.smallStep)===0||o._distance/r.largeStep>=3)for(o._isHorizontal||o._isRtl||(a=e.makeArray(a).reverse()),s=0;a.length>s;s++)t=e(a[s]),n=o._values[s],i=c(h(n-this.options.min)),i%h(r.smallStep)===0&&i%h(r.largeStep)===0&&(t.addClass("k-tick-large").html("<span class='k-label'>"+t.attr("title")+"</span>"),0!==s&&s!==a.length-1&&t.css("line-height",t[o._sizeFn]()+"px"))},_calculateItemsWidth:function(e){var t,n,i,o=this,r=o.options,a=parseFloat(o._trackDiv.css(o._sizeFn))+1,s=a/o._distance;for(o._distance/r.smallStep-x.floor(o._distance/r.smallStep)>0&&(a-=o._distance%r.smallStep*s),t=a/e,n=[],i=0;e-1>i;i++)n[i]=t;return n[e-1]=n[e]=t/2,o._roundWidths(n)},_roundWidths:function(e){var t,n=0,i=e.length;for(t=0;i>t;t++)n+=e[t]-x.floor(e[t]),e[t]=x.floor(e[t]);return n=x.round(n),this._addAdditionalSize(n,e)},_addAdditionalSize:function(e,t){if(0===e)return t;var n,i=parseFloat(t.length-1)/parseFloat(1==e?e:e-1);for(n=0;e>n;n++)t[parseInt(x.round(i*n),10)]+=1;return t},_calculateSteps:function(e){var t,n=this,i=n.options,o=i.min,r=0,a=x.ceil(n._distance/i.smallStep),s=1;if(a+=n._distance/i.smallStep%1===0?1:0,e.splice(0,0,2*e[a-2]),e.splice(a-1,1,2*e.pop()),n._pixelSteps=[r],n._values=[o],0!==a){for(;a>s;)r+=(e[s-1]+e[s])/2,n._pixelSteps[s]=r,o+=i.smallStep,n._values[s]=c(o),s++;t=n._distance%i.smallStep===0?a-1:a,n._pixelSteps[t]=n._maxSelection,n._values[t]=i.max,n._isRtl&&(n._pixelSteps.reverse(),n._values.reverse())}},_getValueFromPosition:function(e,t){var n,i=this,o=i.options,r=x.max(o.smallStep*(i._maxSelection/i._distance),0),a=0,s=r/2;if(i._isHorizontal?(a=e-t.startPoint,i._isRtl&&(a=i._maxSelection-a)):a=t.startPoint-e,i._maxSelection-(parseInt(i._maxSelection%r,10)-3)/2<a)return o.max;for(n=0;i._pixelSteps.length>n;n++)if(x.abs(i._pixelSteps[n]-a)-1<=s)return c(i._values[n])},_getFormattedValue:function(e,t){var n,i,o,r=this,a="",s=r.options.tooltip;return y(e)?(i=e[0],o=e[1]):t&&t.type&&(i=t.selectionStart,o=t.selectionEnd),t&&(n=t.tooltipTemplate),!n&&s.template&&(n=m.template(s.template)),y(e)||t&&t.type?n?a=n({selectionStart:i,selectionEnd:o}):(i=b(s.format,i),o=b(s.format,o),a=i+" - "+o):(t&&(t.val=e),a=n?n({value:e}):b(s.format,e)),a},_getDraggableArea:function(){var e=this,t=m.getOffset(e._trackDiv);return{startPoint:e._isHorizontal?t.left:t.top+e._maxSelection,endPoint:e._isHorizontal?t.left+e._maxSelection:t.top}},_createHtml:function(){var e=this,t=e.element,o=e.options,a=t.find("input");2==a.length?(a.eq(0).prop("value",l(o.selectionStart)),a.eq(1).prop("value",l(o.selectionEnd))):t.prop("value",l(o.value)),t.wrap(n(o,t,e._isHorizontal)).hide(),o.showButtons&&t.before(i(o,"increase",e._isHorizontal)).before(i(o,"decrease",e._isHorizontal)),t.before(r(o,t))},_focus:function(t){var n=this,i=t.target,o=n.value(),r=n._drag;r||(i==n.wrapper.find(R).eq(0)[0]?(r=n._firstHandleDrag,n._activeHandle=0):(r=n._lastHandleDrag,n._activeHandle=1),o=o[n._activeHandle]),e(i).addClass(j+" "+U),r&&(n._activeHandleDrag=r,r.selectionStart=n.options.selectionStart,r.selectionEnd=n.options.selectionEnd,r._updateTooltip(o))},_focusWithMouse:function(t){t=e(t);var n=this,i=t.is(R)?t.index():0;window.setTimeout(function(){n.wrapper.find(R)[2==i?1:0].focus()},1),n._setTooltipTimeout()},_blur:function(t){var n=this,i=n._activeHandleDrag;e(t.target).removeClass(j+" "+U),i&&(i._removeTooltip(),delete n._activeHandleDrag,delete n._activeHandle)},_setTooltipTimeout:function(){var e=this;e._tooltipTimeout=window.setTimeout(function(){var t=e._drag||e._activeHandleDrag;t&&t._removeTooltip()},300)},_clearTooltipTimeout:function(){var e,t=this;window.clearTimeout(this._tooltipTimeout),e=t._drag||t._activeHandleDrag,e&&e.tooltipDiv&&e.tooltipDiv.stop(!0,!1).css("opacity",1)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._form=o.on("reset",k(t._formResetHandler,t)))},destroy:function(){this._form&&this._form.off("reset",this._formResetHandler),g.fn.destroy.call(this)}}),X=J.extend({init:function(n,i){var o,r=this;n.type="text",i=_({},{value:d(n,"value"),min:d(n,"min"),max:d(n,"max"),smallStep:d(n,"step")},i),n=e(n),i&&i.enabled===t&&(i.enabled=!n.is("[disabled]")),J.fn.init.call(r,n,i),i=r.options,p(i.value)&&null!==i.value||(i.value=i.min,n.prop("value",l(i.min))),i.value=x.max(x.min(i.value,i.max),i.min),o=r.wrapper.find(R),this._selection=new X.Selection(o,r,i),r._drag=new X.Drag(o,"",r,i)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},value:null},enable:function(n){var i,o,r,a=this,s=a.options;a.disable(),n!==!1&&(a.wrapper.removeClass($).addClass(q),a.wrapper.find("input").removeAttr(G),i=function(n){var i,o,r,s=K(n)[0];if(s){if(i=a._isHorizontal?s.location.pageX:s.location.pageY,o=a._getDraggableArea(),r=e(n.target),r.hasClass("k-draghandle"))return r.addClass(j+" "+U),t;a._update(a._getValueFromPosition(i,o)),a._focusWithMouse(n.target),a._drag.dragstart(n),n.preventDefault()}},a.wrapper.find(W+", "+N).on(P,i).end().on(P,function(){e(document.documentElement).one("selectstart",m.preventDefault)}).on(M,function(){a._drag._end()}),a.wrapper.find(R).attr(Q,0).on(A,function(){a._setTooltipTimeout()}).on(z,function(e){a._focusWithMouse(e.target),e.preventDefault()}).on(B,k(a._focus,a)).on(L,k(a._blur,a)),o=k(function(e){var t=a._nextValueByIndex(a._valueIndex+1*e);a._setValueInRange(t),a._drag._updateTooltip(t);
},a),s.showButtons&&(r=k(function(e,t){this._clearTooltipTimeout(),(1===e.which||C.touch&&0===e.which)&&(o(t),this.timeout=setTimeout(k(function(){this.timer=setInterval(function(){o(t)},60)},this),200))},a),a.wrapper.find(".k-button").on(A,k(function(e){this._clearTimer(),a._focusWithMouse(e.target)},a)).on(V,function(t){e(t.currentTarget).addClass("k-state-hover")}).on("mouseout"+E,k(function(t){e(t.currentTarget).removeClass("k-state-hover"),this._clearTimer()},a)).eq(0).on(I,k(function(e){r(e,1)},a)).click(!1).end().eq(1).on(I,k(function(e){r(e,-1)},a)).click(m.preventDefault)),a.wrapper.find(R).off(O,!1).on(O,k(this._keydown,a)),s.enabled=!0)},disable:function(){var t=this;t.wrapper.removeClass(q).addClass($),e(t.element).prop(G,G),t.wrapper.find(".k-button").off(I).on(I,m.preventDefault).off(A).on(A,m.preventDefault).off("mouseleave"+E).on("mouseleave"+E,m.preventDefault).off(V).on(V,m.preventDefault),t.wrapper.find(W+", "+N).off(P).off(M),t.wrapper.find(R).attr(Q,-1).off(A).off(O).off(z).off(B).off(L),t.options.enabled=!1},_update:function(e){var t=this,n=t.value()!=e;t.value(e),n&&t.trigger(D,{value:t.options.value})},value:function(e){var n=this,i=n.options;return e=c(e),isNaN(e)?i.value:(e>=i.min&&i.max>=e&&i.value!=e&&(n.element.prop("value",l(e)),i.value=e,n._refreshAriaAttr(e),n._refresh()),t)},_refresh:function(){this.trigger(H,{value:this.options.value})},_refreshAriaAttr:function(e){var t,n=this,i=n._drag;t=i&&i._tooltipDiv?i._tooltipDiv.text():n._getFormattedValue(e,null),this.wrapper.find(R).attr("aria-valuenow",e).attr("aria-valuetext",t)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(e){var t=this;e.keyCode in t._keyMap&&(t._clearTooltipTimeout(),t._setValueInRange(t._keyMap[e.keyCode](t.options.value)),t._drag._updateTooltip(t.value()),e.preventDefault())},_setValueInRange:function(e){var n=this,i=n.options;return e=c(e),isNaN(e)?(n._update(i.min),t):(e=x.max(x.min(e,i.max),i.min),n._update(e),t)},_nextValueByIndex:function(e){var t=this._values.length;return this._isRtl&&(e=t-1-e),this._values[x.max(0,x.min(e,t-1))]},_formResetHandler:function(){var e=this,t=e.options.min;setTimeout(function(){var n=e.element[0].value;e.value(""===n||isNaN(n)?t:n)})},destroy:function(){var e=this;J.fn.destroy.call(e),e.wrapper.off(E).find(".k-button").off(E).end().find(R).off(E).end().find(W+", "+N).off(E).end(),e._drag.draggable.destroy(),e._drag._removeTooltip(!0)}});X.Selection=function(e,t,n){function i(i){var o=i-n.min,r=t._valueIndex=x.ceil(c(o/n.smallStep)),a=parseInt(t._pixelSteps[r],10),s=t._trackDiv.find(".k-slider-selection"),l=parseInt(e[t._outerSize]()/2,10),u=t._isRtl?2:0;s[t._sizeFn](t._isRtl?t._maxSelection-a:a),e.css(t._position,a-l-u)}i(n.value),t.bind([D,F,H],function(e){i(parseFloat(e.value,10))})},X.Drag=function(e,t,n,i){var o=this;o.owner=n,o.options=i,o.element=e,o.type=t,o.draggable=new v(e,{distance:0,dragstart:k(o._dragstart,o),drag:k(o.drag,o),dragend:k(o.dragend,o),dragcancel:k(o.dragcancel,o)}),e.click(!1)},X.Drag.prototype={dragstart:function(e){this.owner._activeDragHandle=this,this.draggable.userEvents.cancel(),this._dragstart(e),this.dragend()},_dragstart:function(n){var i=this,o=i.owner,r=i.options;return r.enabled?(this.owner._activeDragHandle=this,o.element.off(V),o.wrapper.find("."+j).removeClass(j+" "+U),i.element.addClass(j+" "+U),e(document.documentElement).css("cursor","pointer"),i.dragableArea=o._getDraggableArea(),i.step=x.max(r.smallStep*(o._maxSelection/o._distance),0),i.type?(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd,o._setZIndex(i.type)):i.oldVal=i.val=r.value,i._removeTooltip(!0),i._createTooltip(),t):(n.preventDefault(),t)},_createTooltip:function(){var t,n,i=this,o=i.owner,r=i.options.tooltip,a="",s=e(window);r.enabled&&(r.template&&(t=i.tooltipTemplate=m.template(r.template)),e(".k-slider-tooltip").remove(),i.tooltipDiv=e("<div class='k-widget k-tooltip k-slider-tooltip'><!-- --></div>").appendTo(document.body),a=o._getFormattedValue(i.val||o.value(),i),i.type||(n="k-callout-"+(o._isHorizontal?"s":"e"),i.tooltipInnerDiv="<div class='k-callout "+n+"'><!-- --></div>",a+=i.tooltipInnerDiv),i.tooltipDiv.html(a),i._scrollOffset={top:s.scrollTop(),left:s.scrollLeft()},i.moveTooltip())},drag:function(e){var t,n=this,i=n.owner,o=e.x.location,r=e.y.location,a=n.dragableArea.startPoint,s=n.dragableArea.endPoint;e.preventDefault(),n.val=i._isHorizontal?i._isRtl?n.constrainValue(o,a,s,s>o):n.constrainValue(o,a,s,o>=s):n.constrainValue(r,s,a,s>=r),n.oldVal!=n.val&&(n.oldVal=n.val,n.type?("firstHandle"==n.type?n.selectionStart=n.selectionEnd>n.val?n.val:n.selectionEnd=n.val:n.val>n.selectionStart?n.selectionEnd=n.val:n.selectionStart=n.selectionEnd=n.val,t={values:[n.selectionStart,n.selectionEnd],value:[n.selectionStart,n.selectionEnd]}):t={value:n.val},i.trigger(F,t)),n._updateTooltip(n.val)},_updateTooltip:function(e){var t=this,n=t.options,i=n.tooltip,o="";i.enabled&&(t.tooltipDiv||t._createTooltip(),o=t.owner._getFormattedValue(c(e),t),t.type||(o+=t.tooltipInnerDiv),t.tooltipDiv.html(o),t.moveTooltip())},dragcancel:function(){return this.owner._refresh(),e(document.documentElement).css("cursor",""),this._end()},dragend:function(){var t=this,n=t.owner;return e(document.documentElement).css("cursor",""),t.type?n._update(t.selectionStart,t.selectionEnd):(n._update(t.val),t.draggable.userEvents._disposeAll()),t.draggable.userEvents.cancel(),t._end()},_end:function(){var e=this,t=e.owner;return t._focusWithMouse(e.element),t.element.on(V),!1},_removeTooltip:function(t){var n=this,i=n.owner;n.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(t?(n.tooltipDiv.remove(),n.tooltipDiv=null):n.tooltipDiv.fadeOut("slow",function(){e(this).remove(),n.tooltipDiv=null}))},moveTooltip:function(){var t,n,i,o,r=this,a=r.owner,s=0,l=0,u=r.element,c=m.getOffset(u),d=8,p=e(window),h=r.tooltipDiv.find(".k-callout"),f=r.tooltipDiv.outerWidth(),g=r.tooltipDiv.outerHeight();r.type?(t=a.wrapper.find(R),c=m.getOffset(t.eq(0)),n=m.getOffset(t.eq(1)),a._isHorizontal?(s=n.top,l=c.left+(n.left-c.left)/2):(s=c.top+(n.top-c.top)/2,l=n.left),o=t.eq(0).outerWidth()+2*d):(s=c.top,l=c.left,o=u.outerWidth()+2*d),a._isHorizontal?(l-=parseInt((f-u[a._outerSize]())/2,10),s-=g+h.height()+d):(s-=parseInt((g-u[a._outerSize]())/2,10),l-=f+h.width()+d),a._isHorizontal?(i=r._flip(s,g,o,p.outerHeight()+r._scrollOffset.top),s+=i,l+=r._fit(l,f,p.outerWidth()+r._scrollOffset.left)):(i=r._flip(l,f,o,p.outerWidth()+r._scrollOffset.left),s+=r._fit(s,g,p.outerHeight()+r._scrollOffset.top),l+=i),i>0&&h&&(h.removeClass(),h.addClass("k-callout k-callout-"+(a._isHorizontal?"n":"w"))),r.tooltipDiv.css({top:s,left:l})},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i){var o=0;return e+t>i&&(o+=-(n+t)),0>e+o&&(o+=n+t),o},constrainValue:function(e,t,n,i){var o=this,r=0;return r=e>t&&n>e?o.owner._getValueFromPosition(e,o.dragableArea):i?o.options.max:o.options.min}},m.ui.plugin(X),f=J.extend({init:function(n,i){var o,r=this,a=e(n).find("input"),s=a.eq(0)[0],u=a.eq(1)[0];s.type="text",u.type="text",i&&i.showButtons&&(window.console&&window.console.warn("showbuttons option is not supported for the range slider, ignoring"),i.showButtons=!1),i=_({},{selectionStart:d(s,"value"),min:d(s,"min"),max:d(s,"max"),smallStep:d(s,"step")},{selectionEnd:d(u,"value"),min:d(u,"min"),max:d(u,"max"),smallStep:d(u,"step")},i),i&&i.enabled===t&&(i.enabled=!a.is("[disabled]")),J.fn.init.call(r,n,i),i=r.options,p(i.selectionStart)&&null!==i.selectionStart||(i.selectionStart=i.min,a.eq(0).prop("value",l(i.min))),p(i.selectionEnd)&&null!==i.selectionEnd||(i.selectionEnd=i.max,a.eq(1).prop("value",l(i.max))),o=r.wrapper.find(R),this._selection=new f.Selection(o,r,i),r._firstHandleDrag=new X.Drag(o.eq(0),"firstHandle",r,i),r._lastHandleDrag=new X.Drag(o.eq(1),"lastHandle",r,i)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},selectionStart:null,selectionEnd:null},enable:function(n){var i,o=this,r=o.options;o.disable(),n!==!1&&(o.wrapper.removeClass($).addClass(q),o.wrapper.find("input").removeAttr(G),i=function(n){var i,a,s,l,u,c,d,p=K(n)[0];if(p){if(i=o._isHorizontal?p.location.pageX:p.location.pageY,a=o._getDraggableArea(),s=o._getValueFromPosition(i,a),l=e(n.target),l.hasClass("k-draghandle"))return o.wrapper.find("."+j).removeClass(j+" "+U),l.addClass(j+" "+U),t;r.selectionStart>s?(u=s,c=r.selectionEnd,d=o._firstHandleDrag):s>o.selectionEnd?(u=r.selectionStart,c=s,d=o._lastHandleDrag):r.selectionEnd-s>=s-r.selectionStart?(u=s,c=r.selectionEnd,d=o._firstHandleDrag):(u=r.selectionStart,c=s,d=o._lastHandleDrag),d.dragstart(n),o._setValueInRange(u,c),o._focusWithMouse(d.element)}},o.wrapper.find(W+", "+N).on(P,i).end().on(P,function(){e(document.documentElement).one("selectstart",m.preventDefault)}).on(M,function(){o._activeDragHandle&&o._activeDragHandle._end()}),o.wrapper.find(R).attr(Q,0).on(A,function(){o._setTooltipTimeout()}).on(z,function(e){o._focusWithMouse(e.target),e.preventDefault()}).on(B,k(o._focus,o)).on(L,k(o._blur,o)),o.wrapper.find(R).off(O,m.preventDefault).eq(0).on(O,k(function(e){this._keydown(e,"firstHandle")},o)).end().eq(1).on(O,k(function(e){this._keydown(e,"lastHandle")},o)),o.options.enabled=!0)},disable:function(){var e=this;e.wrapper.removeClass(q).addClass($),e.wrapper.find("input").prop(G,G),e.wrapper.find(W+", "+N).off(P).off(M),e.wrapper.find(R).attr(Q,-1).off(A).off(O).off(z).off(B).off(L),e.options.enabled=!1},_keydown:function(e,t){var n,i,o,r=this,a=r.options.selectionStart,s=r.options.selectionEnd;e.keyCode in r._keyMap&&(r._clearTooltipTimeout(),"firstHandle"==t?(o=r._activeHandleDrag=r._firstHandleDrag,a=r._keyMap[e.keyCode](a),a>s&&(s=a)):(o=r._activeHandleDrag=r._lastHandleDrag,s=r._keyMap[e.keyCode](s),a>s&&(a=s)),r._setValueInRange(c(a),c(s)),n=Math.max(a,r.options.selectionStart),i=Math.min(s,r.options.selectionEnd),o.selectionEnd=Math.max(i,r.options.selectionStart),o.selectionStart=Math.min(n,r.options.selectionEnd),o._updateTooltip(r.value()[r._activeHandle]),e.preventDefault())},_update:function(e,t){var n=this,i=n.value(),o=i[0]!=e||i[1]!=t;n.value([e,t]),o&&n.trigger(D,{values:[e,t],value:[e,t]})},value:function(e){return e&&e.length?this._value(e[0],e[1]):this._value()},_value:function(e,n){var i=this,o=i.options,r=o.selectionStart,a=o.selectionEnd;return isNaN(e)&&isNaN(n)?[r,a]:(e=c(e),n=c(n),e>=o.min&&o.max>=e&&n>=o.min&&o.max>=n&&n>=e&&(r!=e||a!=n)&&(i.element.find("input").eq(0).prop("value",l(e)).end().eq(1).prop("value",l(n)),o.selectionStart=e,o.selectionEnd=n,i._refresh(),i._refreshAriaAttr(e,n)),t)},values:function(e,t){return y(e)?this._value(e[0],e[1]):this._value(e,t)},_refresh:function(){var e=this,t=e.options;e.trigger(H,{values:[t.selectionStart,t.selectionEnd],value:[t.selectionStart,t.selectionEnd]}),t.selectionStart==t.max&&t.selectionEnd==t.max&&e._setZIndex("firstHandle")},_refreshAriaAttr:function(e,t){var n,i=this,o=i.wrapper.find(R),r=i._activeHandleDrag;n=i._getFormattedValue([e,t],r),o.eq(0).attr("aria-valuenow",e),o.eq(1).attr("aria-valuenow",t),o.attr("aria-valuetext",n)},_setValueInRange:function(e,t){var n=this.options;e=x.max(x.min(e,n.max),n.min),t=x.max(x.min(t,n.max),n.min),e==n.max&&t==n.max&&this._setZIndex("firstHandle"),this._update(x.min(e,t),x.max(e,t))},_setZIndex:function(t){this.wrapper.find(R).each(function(n){e(this).css("z-index","firstHandle"==t?1-n:n)})},_formResetHandler:function(){var e=this,t=e.options;setTimeout(function(){var n=e.element.find("input"),i=n[0].value,o=n[1].value;e.values(""===i||isNaN(i)?t.min:i,""===o||isNaN(o)?t.max:o)})},destroy:function(){var e=this;J.fn.destroy.call(e),e.wrapper.off(E).find(W+", "+N).off(E).end().find(R).off(E),e._firstHandleDrag.draggable.destroy(),e._lastHandleDrag.draggable.destroy()}}),f.Selection=function(e,t,n){function i(i){i=i||[];var r=i[0]-n.min,a=i[1]-n.min,s=x.ceil(c(r/n.smallStep)),l=x.ceil(c(a/n.smallStep)),u=t._pixelSteps[s],d=t._pixelSteps[l],p=parseInt(e.eq(0)[t._outerSize]()/2,10),h=t._isRtl?2:0;e.eq(0).css(t._position,u-p-h).end().eq(1).css(t._position,d-p-h),o(u,d)}function o(e,n){var i,o,r=t._trackDiv.find(".k-slider-selection");i=x.abs(e-n),r[t._sizeFn](i),t._isRtl?(o=x.max(e,n),r.css("right",t._maxSelection-o-1)):(o=x.min(e,n),r.css(t._position,o-1))}i(t.value()),t.bind([D,F,H],function(e){i(e.values)})},m.ui.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.colorpicker.min",["kendo.core.min","kendo.color.min","kendo.popup.min","kendo.slider.min","kendo.userevents.min"],e)}(function(){return function(e,t,n){function i(e,t,n){n=c(n),n&&!n.equals(e.color())&&("change"==t&&(e._value=n),n=1!=n.a?n.toCssRgba():n.toCss(),e.trigger(t,{value:n}))}function o(e,t,n){var i,o;return e=Array.prototype.slice.call(e),i=e.length,o=e.indexOf(t),0>o?0>n?e[i-1]:e[0]:(o+=n,0>o?o+=i:o%=i,e[o])}function r(e){e.preventDefault()}function a(e,t){return function(){return e.apply(t,arguments)}}var s=window.kendo,l=s.ui,u=l.Widget,c=s.parseColor,d=s.Color,p=s.keys,h="background-color",f="k-state-selected",m="000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",g="FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000",v={apply:"Apply",cancel:"Cancel"},_=".kendoColorTools",b="click"+_,w="keydown"+_,k=s.support.browser,y=k.msie&&9>k.version,x=u.extend({init:function(e,t){var n,i=this;u.fn.init.call(i,e,t),e=i.element,t=i.options,i._value=t.value=c(t.value),i._tabIndex=e.attr("tabIndex")||0,n=i._ariaId=t.ariaId,n&&e.attr("aria-labelledby",n),t._standalone&&(i._triggerSelect=i._triggerChange)},options:{name:"ColorSelector",value:null,_standalone:!0},events:["change","select","cancel"],color:function(e){return e!==n&&(this._value=c(e),this._updateUI(this._value)),this._value},value:function(e){return e=this.color(e),e&&(e=this.options.opacity?e.toCssRgba():e.toCss()),e||null},enable:function(t){0===arguments.length&&(t=!0),e(".k-disabled-overlay",this.wrapper).remove(),t||this.wrapper.append("<div class='k-disabled-overlay'></div>"),this._onEnable(t)},_select:function(e,t){var n=this._value;e=this.color(e),t||(this.element.trigger("change"),e.equals(n)?this._standalone||this.trigger("cancel"):this.trigger("change",{value:this.value()}))},_triggerSelect:function(e){i(this,"select",e)},_triggerChange:function(e){i(this,"change",e)},destroy:function(){this.element&&this.element.off(_),this.wrapper&&this.wrapper.off(_).find("*").off(_),this.wrapper=null,u.fn.destroy.call(this)},_updateUI:e.noop,_selectOnHide:function(){return null},_cancel:function(){this.trigger("cancel")}}),C=x.extend({init:function(t,n){var i,o,r,l,u=this;if(x.fn.init.call(u,t,n),t=u.wrapper=u.element,n=u.options,i=n.palette,"websafe"==i?(i=g,n.columns=18):"basic"==i&&(i=m),"string"==typeof i&&(i=i.split(",")),e.isArray(i)&&(i=e.map(i,function(e){return c(e)})),u._selectedID=(n.ariaId||s.guid())+"_selected",t.addClass("k-widget k-colorpalette").attr("role","grid").attr("aria-readonly","true").append(e(u._template({colors:i,columns:n.columns,tileSize:n.tileSize,value:u._value,id:n.ariaId}))).on(b,".k-item",function(t){u._select(e(t.currentTarget).css(h))}).attr("tabIndex",u._tabIndex).on(w,a(u._keydown,u)),o=n.tileSize){if(/number|string/.test(typeof o))r=l=parseFloat(o);else{if("object"!=typeof o)throw Error("Unsupported value for the 'tileSize' argument");r=parseFloat(o.width),l=parseFloat(o.height)}t.find(".k-item").css({width:r,height:l})}},focus:function(){this.wrapper.focus()},options:{name:"ColorPalette",columns:10,tileSize:null,palette:"basic"},_onEnable:function(e){e?this.wrapper.attr("tabIndex",this._tabIndex):this.wrapper.removeAttr("tabIndex")},_keydown:function(t){var n,i,a=this.wrapper,s=a.find(".k-item"),l=s.filter("."+f).get(0),u=t.keyCode;if(u==p.LEFT?n=o(s,l,-1):u==p.RIGHT?n=o(s,l,1):u==p.DOWN?n=o(s,l,this.options.columns):u==p.UP?n=o(s,l,-this.options.columns):u==p.ENTER?(r(t),l&&this._select(e(l).css(h))):u==p.ESC&&this._cancel(),n){r(t),this._current(n);try{i=c(n.css(h)),this._triggerSelect(i)}catch(d){}}},_current:function(t){this.wrapper.find("."+f).removeClass(f).attr("aria-selected",!1).removeAttr("id"),e(t).addClass(f).attr("aria-selected",!0).attr("id",this._selectedID),this.element.removeAttr("aria-activedescendant").attr("aria-activedescendant",this._selectedID)},_updateUI:function(t){var i=null;this.wrapper.find(".k-item").each(function(){var o=c(e(this).css(h));return o&&o.equals(t)?(i=this,!1):n}),this._current(i)},_template:s.template('<table class="k-palette k-reset" role="presentation"><tr role="row"># for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { # </tr><tr role="row"> # } #<td role="gridcell" unselectable="on" style="background-color:#= colors[i].toCss() #"#= selected ? " aria-selected=true" : "" # #=(id && i === 0) ? "id=\\""+id+"\\" " : "" # class="k-item#= selected ? " '+f+'" : "" #" aria-label="#= colors[i].toCss() #"></td># } #</tr></table>')}),T=x.extend({init:function(t,n){var i=this;x.fn.init.call(i,t,n),n=i.options,t=i.element,i.wrapper=t.addClass("k-widget k-flatcolorpicker").append(i._template(n)),i._hueElements=e(".k-hsv-rectangle, .k-transparency-slider .k-slider-track",t),i._selectedColor=e(".k-selected-color-display",t),i._colorAsText=e("input.k-color-value",t),i._sliders(),i._hsvArea(),i._updateUI(i._value||c("#f00")),t.find("input.k-color-value").on(w,function(t){var n,o,r=this;if(t.keyCode==p.ENTER)try{n=c(r.value),o=i.color(),i._select(n,n.equals(o))}catch(a){e(r).addClass("k-state-error")}else i.options.autoupdate&&setTimeout(function(){var e=c(r.value,!0);e&&i._updateUI(e,!0)},10)}).end().on(b,".k-controls button.apply",function(){i._select(i._getHSV())}).on(b,".k-controls button.cancel",function(){i._updateUI(i.color()),i._cancel()}),y&&i._applyIEFilter()},destroy:function(){this._hueSlider.destroy(),this._opacitySlider&&this._opacitySlider.destroy(),this._hueSlider=this._opacitySlider=this._hsvRect=this._hsvHandle=this._hueElements=this._selectedColor=this._colorAsText=null,x.fn.destroy.call(this)},options:{name:"FlatColorPicker",opacity:!1,buttons:!1,input:!0,preview:!0,autoupdate:!0,messages:v},_applyIEFilter:function(){var e=this.element.find(".k-hue-slider .k-slider-track")[0],t=e.currentStyle.backgroundImage;t=t.replace(/^url\([\'\"]?|[\'\"]?\)$/g,""),e.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t+"', sizingMethod='scale')"},_sliders:function(){function e(e){n._updateUI(n._getHSV(e.value,null,null,null))}function t(e){n._updateUI(n._getHSV(null,null,null,e.value/100))}var n=this,i=n.element;n._hueSlider=i.find(".k-hue-slider").kendoSlider({min:0,max:359,tickPlacement:"none",showButtons:!1,slide:e,change:e}).data("kendoSlider"),n._opacitySlider=i.find(".k-transparency-slider").kendoSlider({min:0,max:100,tickPlacement:"none",showButtons:!1,slide:t,change:t}).data("kendoSlider")},_hsvArea:function(){function e(e,n){var i=this.offset,o=e-i.left,r=n-i.top,a=this.width,s=this.height;o=0>o?0:o>a?a:o,r=0>r?0:r>s?s:r,t._svChange(o/a,1-r/s)}var t=this,n=t.element,i=n.find(".k-hsv-rectangle"),o=i.find(".k-draghandle").attr("tabIndex",0).on(w,a(t._keydown,t));t._hsvEvents=new s.UserEvents(i,{global:!0,press:function(t){this.offset=s.getOffset(i),this.width=i.width(),this.height=i.height(),o.focus(),e.call(this,t.x.location,t.y.location)},start:function(){i.addClass("k-dragging"),o.focus()},move:function(t){t.preventDefault(),e.call(this,t.x.location,t.y.location)},end:function(){i.removeClass("k-dragging")}}),t._hsvRect=i,t._hsvHandle=o},_onEnable:function(e){this._hueSlider.enable(e),this._opacitySlider&&this._opacitySlider.enable(e),this.wrapper.find("input").attr("disabled",!e);var t=this._hsvRect.find(".k-draghandle");e?t.attr("tabIndex",this._tabIndex):t.removeAttr("tabIndex")},_keydown:function(e){function t(t,n){var o=i._getHSV();o[t]+=n*(e.shiftKey?.01:.05),0>o[t]&&(o[t]=0),o[t]>1&&(o[t]=1),i._updateUI(o),r(e)}function n(t){var n=i._getHSV();n.h+=t*(e.shiftKey?1:5),0>n.h&&(n.h=0),n.h>359&&(n.h=359),i._updateUI(n),r(e)}var i=this;switch(e.keyCode){case p.LEFT:e.ctrlKey?n(-1):t("s",-1);break;case p.RIGHT:e.ctrlKey?n(1):t("s",1);break;case p.UP:t(e.ctrlKey&&i._opacitySlider?"a":"v",1);break;case p.DOWN:t(e.ctrlKey&&i._opacitySlider?"a":"v",-1);break;case p.ENTER:i._select(i._getHSV());break;case p.F2:i.wrapper.find("input.k-color-value").focus().select();break;case p.ESC:i._cancel()}},focus:function(){this._hsvHandle.focus()},_getHSV:function(e,t,n,i){var o=this._hsvRect,r=o.width(),a=o.height(),s=this._hsvHandle.position();return null==e&&(e=this._hueSlider.value()),null==t&&(t=s.left/r),null==n&&(n=1-s.top/a),null==i&&(i=this._opacitySlider?this._opacitySlider.value()/100:1),d.fromHSV(e,t,n,i)},_svChange:function(e,t){var n=this._getHSV(null,e,t,null);this._updateUI(n)},_updateUI:function(e,t){var n=this,i=n._hsvRect;e&&(this._colorAsText.removeClass("k-state-error"),n._selectedColor.css(h,e.toDisplay()),t||n._colorAsText.val(n._opacitySlider?e.toCssRgba():e.toCss()),n._triggerSelect(e),e=e.toHSV(),n._hsvHandle.css({left:e.s*i.width()+"px",top:(1-e.v)*i.height()+"px"}),n._hueElements.css(h,d.fromHSV(e.h,1,1,1).toCss()),n._hueSlider.value(e.h),n._opacitySlider&&n._opacitySlider.value(100*e.a))},_selectOnHide:function(){return this.options.buttons?null:this._getHSV()},_template:s.template('# if (preview) { #<div class="k-selected-color"><div class="k-selected-color-display"><input class="k-color-value" #= !data.input ? \'style="visibility: hidden;"\' : "" #></div></div># } #<div class="k-hsv-rectangle"><div class="k-hsv-gradient"></div><div class="k-draghandle"></div></div><input class="k-hue-slider" /># if (opacity) { #<input class="k-transparency-slider" /># } ## if (buttons) { #<div unselectable="on" class="k-controls"><button class="k-button k-primary apply">#: messages.apply #</button> <button class="k-button cancel">#: messages.cancel #</button></div># } #')}),S=u.extend({init:function(t,n){var i,o,r,a,s,l=this;u.fn.init.call(l,t,n),n=l.options,t=l.element,i=t.attr("value")||t.val(),i=i?c(i,!0):c(n.value,!0),l._value=n.value=i,o=l.wrapper=e(l._template(n)),t.hide().after(o),t.is("input")&&(t.appendTo(o),r=t.closest("label"),a=t.attr("id"),a&&(r=r.add('label[for="'+a+'"]')),r.click(function(e){l.open(),e.preventDefault()})),l._tabIndex=t.attr("tabIndex")||0,l.enable(!t.attr("disabled")),s=t.attr("accesskey"),s&&(t.attr("accesskey",null),o.attr("accesskey",s)),l.bind("activate",function(e){e.isDefaultPrevented()||l.toggle()}),l._updateUI(i)},destroy:function(){this.wrapper.off(_).find("*").off(_),this._popup&&(this._selector.destroy(),this._popup.destroy()),this._selector=this._popup=this.wrapper=null,u.fn.destroy.call(this)},enable:function(e){var t=this,n=t.wrapper,i=n.children(".k-picker-wrap"),o=i.find(".k-select");0===arguments.length&&(e=!0),t.element.attr("disabled",!e),n.attr("aria-disabled",!e),o.off(_).on("mousedown"+_,r),n.addClass("k-state-disabled").removeAttr("tabIndex").add("*",n).off(_),e?n.removeClass("k-state-disabled").attr("tabIndex",t._tabIndex).on("mouseenter"+_,function(){i.addClass("k-state-hover")}).on("mouseleave"+_,function(){i.removeClass("k-state-hover")}).on("focus"+_,function(){i.addClass("k-state-focused")}).on("blur"+_,function(){i.removeClass("k-state-focused")}).on(w,a(t._keydown,t)).on(b,".k-select",a(t.toggle,t)).on(b,t.options.toolIcon?".k-tool-icon":".k-selected-color",function(){t.trigger("activate")}):t.close()},_template:s.template('<span role="textbox" aria-haspopup="true" class="k-widget k-colorpicker k-header"><span class="k-picker-wrap k-state-default"># if (toolIcon) { #<span class="k-tool-icon #= toolIcon #"><span class="k-selected-color"></span></span># } else { #<span class="k-selected-color"></span># } #<span class="k-select" unselectable="on"><span class="k-icon k-i-arrow-s" unselectable="on"></span></span></span></span>'),options:{name:"ColorPicker",palette:null,columns:10,toolIcon:null,value:null,messages:v,opacity:!1,buttons:!0,preview:!0,ARIATemplate:'Current selected color is #=data || ""#'},events:["activate","change","select","open","close"],open:function(){this.element.prop("disabled")||this._getPopup().open()},close:function(){this._getPopup().close()},toggle:function(){this.element.prop("disabled")||this._getPopup().toggle()},color:x.fn.color,value:x.fn.value,_select:x.fn._select,_triggerSelect:x.fn._triggerSelect,_isInputTypeColor:function(){var e=this.element[0];return/^input$/i.test(e.tagName)&&/^color$/i.test(e.type)},_updateUI:function(e){var t="";e&&(t=this._isInputTypeColor()||1==e.a?e.toCss():e.toCssRgba(),this.element.val(t)),this._ariaTemplate||(this._ariaTemplate=s.template(this.options.ARIATemplate)),this.wrapper.attr("aria-label",this._ariaTemplate(t)),this._triggerSelect(e),this.wrapper.find(".k-selected-color").css(h,e?e.toDisplay():"transparent")},_keydown:function(e){var t=e.keyCode;this._getPopup().visible()?(t==p.ESC?this._selector._cancel():this._selector._keydown(e),r(e)):(t==p.ENTER||t==p.DOWN)&&(this.open(),r(e))},_getPopup:function(){var t,i,o,r,a=this,l=a._popup;return l||(t=a.options,i=t.palette?C:T,t._standalone=!1,delete t.select,delete t.change,delete t.cancel,o=s.guid(),r=a._selector=new i(e('<div id="'+o+'"/>').appendTo(document.body),t),a.wrapper.attr("aria-owns",o),a._popup=l=r.wrapper.kendoPopup({anchor:a.wrapper,adjustSize:{width:5,height:0}}).data("kendoPopup"),r.bind({select:function(e){a._updateUI(c(e.value))},change:function(){a._select(r.color()),a.close()},cancel:function(){a.close()}}),l.bind({close:function(e){if(a.trigger("close"))return e.preventDefault(),n;a.wrapper.children(".k-picker-wrap").removeClass("k-state-focused");var t=r._selectOnHide();t?a._select(t):(setTimeout(function(){a.wrapper&&a.wrapper.focus()}),a._updateUI(a.color()))},open:function(e){a.trigger("open")?e.preventDefault():a.wrapper.children(".k-picker-wrap").addClass("k-state-focused")},activate:function(){r._select(a.color(),!0),r.focus(),a.wrapper.children(".k-picker-wrap").addClass("k-state-focused")}})),l}});l.plugin(C),l.plugin(T),l.plugin(S)}(jQuery,parseInt),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.numerictextbox.min",["kendo.core.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e,t){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+e+'" title="'+t+'">'+t+"</span></span>"}var i=window.kendo,o=i.caret,r=i.keys,a=i.ui,s=a.Widget,l=i._activeElement,u=i._extractFormat,c=i.parseFloat,d=i.support.placeholder,p=i.getCulture,h=i._round,f="change",m="disabled",g="readonly",v="k-input",_="spin",b=".kendoNumericTextBox",w="touchend",k="mouseleave"+b,y="mouseenter"+b+" "+k,x="k-state-default",C="k-state-focused",T="k-state-hover",S="focus",D=".",F="k-state-selected",E="k-state-disabled",I="aria-disabled",P="aria-readonly",A=/^(-)?(\d*)$/,M=null,H=e.proxy,O=e.extend,z=s.extend({init:function(n,o){var r,a,l,c,d,p=this,h=o&&o.step!==t;s.fn.init.call(p,n,o),o=p.options,n=p.element.on("focusout"+b,H(p._focusout,p)).attr("role","spinbutton"),o.placeholder=o.placeholder||n.attr("placeholder"),p._initialOptions=O({},o),p._reset(),p._wrapper(),p._arrows(),p._input(),i.support.mobileOS?p._text.on(w+b+" "+S+b,function(){p._toggleText(!1),n.focus()}):p._text.on(S+b,H(p._click,p)),r=p.min(n.attr("min")),a=p.max(n.attr("max")),l=p._parse(n.attr("step")),o.min===M&&r!==M&&(o.min=r),o.max===M&&a!==M&&(o.max=a),h||l===M||(o.step=l),n.attr("aria-valuemin",o.min).attr("aria-valuemax",o.max),o.format=u(o.format),c=o.value,p.value(c!==M?c:n.val()),d=n.is("[disabled]")||e(p.element).parents("fieldset").is(":disabled"),d?p.enable(!1):p.readonly(n.is("[readonly]")),i.notify(p)},options:{name:"NumericTextBox",decimals:M,min:M,max:M,value:M,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[f,_],_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly,r=t._text.add(n),a=t._inputWrapper.off(y);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),n.off("keydown"+b).off("keypress"+b).off("paste"+b),o||i?(a.addClass(i?E:x).removeClass(i?x:E),r.attr(m,i).attr(g,o).attr(I,i).attr(P,o)):(a.addClass(x).removeClass(E).on(y,t._toggleHover),r.removeAttr(m).removeAttr(g).attr(I,!1).attr(P,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(F)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(F)}),t.element.on("keydown"+b,H(t._keydown,t)).on("keypress"+b,H(t._keypress,t)).on("paste"+b,H(t._paste,t)))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(b),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 n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),e===n&&(i._update(e),i._old=i._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,o=n.max;return e===M?e:(i!==M&&i>e?e=i:o!==M&&e>o&&(e=o),e)},_arrows:function(){var t,o=this,r=function(){clearTimeout(o._spinning),t.removeClass(F)},a=o.options,s=a.spinners,l=o.element;t=l.siblings(".k-icon"),t[0]||(t=e(n("n",a.upArrowText)+n("s",a.downArrowText)).insertAfter(l),t.wrapAll('<span class="k-select"/>')),s||(t.parent().toggle(s),o._inputWrapper.addClass("k-expand-padding")),o._upArrow=t.eq(0),o._upArrowEventHandler=new i.UserEvents(o._upArrow,{release:r}),o._downArrow=t.eq(1),o._downArrowEventHandler=new i.UserEvents(o._downArrow,{release:r})},_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 n,i,r,a=e.target,s=o(a)[0],l=a.value.substring(0,s),u=t._format(t.options.format),c=u[","],d=0;c&&(i=RegExp("\\"+c,"g"),r=RegExp("([\\d\\"+c+"]+)(\\"+u[D]+")?(\\d+)?")),
r&&(n=r.exec(l)),n&&(d=n[0].replace(i,"").length,-1!=l.indexOf("(")&&0>t._value&&d++),t._focusin(),o(t.element[0],d)})},_change:function(e){var t=this;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||p(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(C),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(C).removeClass(T),e._blur()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?n=n.currency:e.indexOf("p")>-1&&(n=n.percent),n},_input:function(){var t,n=this,i="k-formatted-value",o=n.element.addClass(v).show()[0],r=o.accessKey,a=n.wrapper;t=a.find(D+i),t[0]||(t=e('<input type="text"/>').insertBefore(o).addClass(i));try{o.setAttribute("type","text")}catch(s){o.type="text"}t[0].tabIndex=o.tabIndex,t[0].style.cssText=o.style.cssText,t[0].title=o.title,t.prop("placeholder",n.options.placeholder),r&&(t.attr("accesskey",r),o.accessKey=""),n._text=t.addClass(o.className)},_keydown:function(e){var t=this,n=e.keyCode;t._key=n,n==r.DOWN?t._step(-1):n==r.UP?t._step(1):n==r.ENTER?t._change(t.element.val()):t._typing=!0},_keypress:function(e){var t,n,i,a,s,l,u,c,d,p,h;0===e.which||e.metaKey||e.ctrlKey||e.keyCode===r.BACKSPACE||e.keyCode===r.ENTER||(t=this,n=t.options.min,i=t.element,a=o(i),s=a[0],l=a[1],u=String.fromCharCode(e.which),c=t._format(t.options.format),d=t._key===r.NUMPAD_DOT,p=i.val(),d&&(u=c[D]),p=p.substring(0,s)+u+p.substring(l),h=t._numericRegex(c).test(p),h&&d?(i.val(p),o(i,s+u.length),e.preventDefault()):(null!==n&&n>=0&&"-"===p.charAt(0)||!h)&&e.preventDefault(),t._key=0)},_numericRegex:function(e){var t=this,n=e[D],i=t.options.decimals;return n===D&&(n="\\"+n),i===M&&(i=e.decimals),0===i?A:(t._separator!==n&&(t._separator=n,t._floatRegExp=RegExp("^(-)?(((\\d+("+n+"\\d*)?)|("+n+"\\d*)))?$")),t._floatRegExp)},_paste:function(e){var t=this,n=e.target,i=n.value;setTimeout(function(){t._parse(n.value)===M&&t._update(i)})},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=i._parse(n),(n||"step"!==e)&&(o[e]=n,i.element.attr("aria-value"+e,n).attr(e,n)),t)},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._parse(n.val())||0;l()!=n[0]&&t._focusin(),i+=t.options.step*e,t._update(t._adjust(i)),t._typing=!1,t.trigger(_)},_toggleHover:function(t){e(t.currentTarget).toggleClass(T,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return c(e,this._culture(t),this.options.format)},_update:function(e){var t,n=this,o=n.options,r=o.format,a=o.decimals,s=n._culture(),l=n._format(r,s);a===M&&(a=l.decimals),e=n._parse(e,s),t=e!==M,t&&(e=parseFloat(h(e,a))),n._value=e=n._adjust(e),n._placeholder(i.toString(e,r,s)),t?(e=""+e,-1!==e.indexOf("e")&&(e=h(+e,a)),e=e.replace(D,l[D])):e="",n.element.val(e).attr("aria-valuenow",e)},_placeholder:function(e){this._text.val(e),d||e||this._text.val(this.options.placeholder)},_wrapper:function(){var t,n=this,i=n.element,o=i[0];t=i.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=i.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=o.style.cssText,o.style.width="",n.wrapper=t.addClass("k-widget k-numerictextbox").addClass(o.className).css("display",""),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=o.on("reset",t._resetHandler))}});a.plugin(z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.editable.min",["kendo.datepicker.min","kendo.numerictextbox.min","kendo.validator.min","kendo.binder.min"],e)}(function(){return function(e,t){function n(t){return t=null!=t?t:"",t.type||e.type(t)||"string"}function i(t){t.find(":input:not(:button, ["+s.attr("role")+"=upload], ["+s.attr("skip")+"], [type=file]), select").each(function(){var t=s.attr("bind"),n=this.getAttribute(t)||"",i="checkbox"===this.type||"radio"===this.type?"checked:":"value:",o=this.name;-1===n.indexOf(i)&&o&&(n+=(n.length?",":"")+i+o,e(this).attr(t,n))})}function o(e){var t,i,o=(e.model.fields||e.model)[e.field],r=n(o),a=o?o.validation:{},l=s.attr("type"),u=s.attr("bind"),c={name:e.field};for(t in a)i=a[t],f(t,_)>=0?c[l]=t:p(i)||(c[t]=h(i)?i.value||t:i),c[s.attr(t+"-msg")]=i.message;return f(r,_)>=0&&(c[l]=r),c[u]=("boolean"===r?"checked:":"value:")+e.field,c}function r(e){var t,n,i,o,r,a;if(e&&e.length)for(a=[],t=0,n=e.length;n>t;t++)i=e[t],r=i.text||i.value||i,o=null==i.value?i.text||i:i.value,a[t]={text:r,value:o};return a}function a(e,t){var n,i,o=e?e.validation||{}:{};for(n in o)i=o[n],h(i)&&i.value&&(i=i.value),p(i)&&(t[n]=i)}var s=window.kendo,l=s.ui,u=l.Widget,c=e.extend,d=s.support.browser.msie&&9>s.support.browser.version,p=s.isFunction,h=e.isPlainObject,f=e.inArray,m=/("|\%|'|\[|\]|\$|\.|\,|\:|\;|\+|\*|\&|\!|\#|\(|\)|<|>|\=|\?|\@|\^|\{|\}|\~|\/|\||`)/g,g='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>#=message#<div class="k-callout k-callout-n"></div></div>',v="change",_=["url","email","number","date","boolean"],b={number:function(t,n){var i=o(n);e('<input type="text"/>').attr(i).appendTo(t).kendoNumericTextBox({format:n.format}),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},date:function(t,n){var i=o(n),r=n.format;r&&(r=s._extractFormat(r)),i[s.attr("format")]=r,e('<input type="text"/>').attr(i).appendTo(t).kendoDatePicker({format:n.format}),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},string:function(t,n){var i=o(n);e('<input type="text" class="k-input k-textbox"/>').attr(i).appendTo(t)},"boolean":function(t,n){var i=o(n);e('<input type="checkbox" />').attr(i).appendTo(t)},values:function(t,n){var i=o(n),a=s.stringify(r(n.values));e("<select "+s.attr("text-field")+'="text"'+s.attr("value-field")+'="value"'+s.attr("source")+"='"+(a?a.replace(/\'/g,"&apos;"):a)+"'"+s.attr("role")+'="dropdownlist"/>').attr(i).appendTo(t),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)}},w=u.extend({init:function(t,n){var i=this;n.target&&(n.$angular=n.target.options.$angular),u.fn.init.call(i,t,n),i._validateProxy=e.proxy(i._validate,i),i.refresh()},events:[v],options:{name:"Editable",editors:b,clearContainer:!0,errorTemplate:g},editor:function(e,t){var i=this,o=i.options.editors,r=h(e),a=r?e.field:e,l=i.options.model||{},u=r&&e.values,d=u?"values":n(t),p=r&&e.editor,f=p?e.editor:o[d],g=i.element.find("["+s.attr("container-for")+"="+a.replace(m,"\\$1")+"]");f=f?f:o.string,p&&"string"==typeof e.editor&&(f=function(t){t.append(e.editor)}),g=g.length?g:i.element,f(g,c(!0,{},r?e:{field:a},{model:l}))},_validate:function(t){var n,i=this,o=t.value,r=i._validationEventInProgress,a={},l=s.attr("bind"),u=t.field.replace(m,"\\$1"),c=RegExp("(value|checked)\\s*:\\s*"+u+"\\s*(,|$)");a[t.field]=t.value,n=e(":input["+l+'*="'+u+'"]',i.element).filter("["+s.attr("validate")+"!='false']").filter(function(){return c.test(e(this).attr(l))}),n.length>1&&(n=n.filter(function(){var t=e(this);return!t.is(":radio")||t.val()==o}));try{i._validationEventInProgress=!0,(!i.validatable.validateInput(n)||!r&&i.trigger(v,{values:a}))&&t.preventDefault()}finally{i._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){var e=this;e.angular("cleanup",function(){return{elements:e.element}}),u.fn.destroy.call(e),e.options.model.unbind("set",e._validateProxy),s.unbind(e.element),e.validatable&&e.validatable.destroy(),s.destroy(e.element),e.element.removeData("kendoValidator"),e.element.is("["+s.attr("role")+"=editable]")&&e.element.removeAttr(s.attr("role"))},refresh:function(){var n,o,r,l,u,c,p,f,m=this,g=m.options.fields||[],v=m.options.clearContainer?m.element.empty():m.element,_=m.options.model||{},b={};for(e.isArray(g)||(g=[g]),n=0,o=g.length;o>n;n++)r=g[n],l=h(r),u=l?r.field:r,c=(_.fields||_)[u],a(c,b),m.editor(r,c);if(m.options.target&&m.angular("compile",function(){return{elements:v,data:v.map(function(){return{dataItem:_}})}}),!o){p=_.fields||_;for(u in p)a(p[u],b)}i(v),m.validatable&&m.validatable.destroy(),s.bind(v,m.options.model),m.options.model.unbind("set",m._validateProxy),m.options.model.bind("set",m._validateProxy),m.validatable=new s.ui.Validator(v,{validateOnBlur:!1,errorTemplate:m.options.errorTemplate||t,rules:b}),f=v.find(":kendoFocusable").eq(0).focus(),d&&f.focus()}});l.plugin(w)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.listview.min",["kendo.data.min","kendo.editable.min","kendo.selectable.min"],e)}(function(){return function(e,t){var n=window.kendo,i="change",o="cancel",r="dataBound",a="dataBinding",s=n.ui.Widget,l=n.keys,u=">*:not(.k-loading-mask)",c="progress",d="error",p="k-state-focused",h="k-state-selected",f="k-edit-item",m="edit",g="remove",v="save",_="click",b=".kendoListView",w=e.proxy,k=n._activeElement,y=n.ui.progress,x=n.data.DataSource,C=n.ui.DataBoundWidget.extend({init:function(t,i){var o=this;i=e.isArray(i)?{dataSource:i}:i,s.fn.init.call(o,t,i),i=o.options,o.wrapper=t=o.element,t[0].id&&(o._itemId=t[0].id+"_lv_active"),o._element(),o._dataSource(),o._templates(),o._navigatable(),o._selectable(),o._pageable(),o._crudHandlers(),o.options.autoBind&&o.dataSource.fetch(),n.notify(o)},events:[i,o,a,r,m,g,v],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,template:"",altTemplate:"",editTemplate:""},setOptions:function(e){s.fn.setOptions.call(this,e),this._templates(),this.selectable&&(this.selectable.destroy(),this.selectable=null),this._selectable()},_templates:function(){var e=this.options;this.template=n.template(e.template||""),this.altTemplate=n.template(e.altTemplate||e.template),this.editTemplate=n.template(e.editTemplate||"")},_item:function(e){return this.element.children()[e]()},items:function(){return this.element.children()},dataItem:function(t){var i=n.attr("uid"),o=e(t).closest("["+i+"]").attr(i);return this.dataSource.getByUid(o)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&e.fetch()},_unbindDataSource:function(){var e=this;e.dataSource.unbind(i,e._refreshHandler).unbind(c,e._progressHandler).unbind(d,e._errorHandler)},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._refreshHandler=w(e.refresh,e),e._progressHandler=w(e._progress,e),e._errorHandler=w(e._error,e)),e.dataSource=x.create(e.options.dataSource).bind(i,e._refreshHandler).bind(c,e._progressHandler).bind(d,e._errorHandler)},_progress:function(){y(this.element,!0)},_error:function(){y(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview").attr("role","listbox")},refresh:function(e){var i,o,s,l,u,c=this,d=c.dataSource.view(),p="",h=c.template,f=c.altTemplate,m=k();if(e=e||{},"itemchange"===e.action)return c._hasBindingTarget()||c.editable||(i=e.items[0],s=c.items().filter("["+n.attr("uid")+"="+i.uid+"]"),s.length>0&&(l=s.index(),c.angular("cleanup",function(){return{elements:[s]}}),s.replaceWith(h(i)),s=c.items().eq(l),s.attr(n.attr("uid"),i.uid),c.angular("compile",function(){return{elements:[s],data:[{dataItem:i}]}}),c.trigger("itemChange",{item:s,data:i}))),t;if(!c.trigger(a,{action:e.action||"rebind",items:e.items,index:e.index})){for(c._angularItems("cleanup"),c._destroyEditable(),l=0,u=d.length;u>l;l++)p+=l%2?f(d[l]):h(d[l]);for(c.element.html(p),o=c.items(),l=0,u=d.length;u>l;l++)o.eq(l).attr(n.attr("uid"),d[l].uid).attr("role","option").attr("aria-selected","false");c.element[0]===m&&c.options.navigatable&&c.current(o.eq(0)),c._angularItems("compile"),c.trigger(r)}},_pageable:function(){var t,i,o=this,r=o.options.pageable;e.isPlainObject(r)&&(i=r.pagerId,t=e.extend({},r,{dataSource:o.dataSource,pagerId:null}),o.pager=new n.ui.Pager(e("#"+i),t))},_selectable:function(){var e,o,r=this,a=r.options.selectable,s=r.options.navigatable;a&&(e=n.ui.Selectable.parseOptions(a).multiple,r.selectable=new n.ui.Selectable(r.element,{aria:!0,multiple:e,filter:u,change:function(){r.trigger(i)}}),s&&r.element.on("keydown"+b,function(n){if(n.keyCode===l.SPACEBAR){if(o=r.current(),n.target==n.currentTarget&&n.preventDefault(),e)if(n.ctrlKey){if(o&&o.hasClass(h))return o.removeClass(h),t}else r.selectable.clear();else r.selectable.clear();r.selectable.value(o)}}))},current:function(e){var n=this,i=n.element,o=n._current,r=n._itemId;return e===t?o:(o&&o[0]&&(o[0].id===r&&o.removeAttr("id"),o.removeClass(p),i.removeAttr("aria-activedescendant")),e&&e[0]&&(r=e[0].id||r,n._scrollTo(e[0]),i.attr("aria-activedescendant",r),e.addClass(p).attr("id",r)),n._current=e,t)},_scrollTo:function(t){var n,i,o=this,r=!1,a="scroll";"auto"==o.wrapper.css("overflow")||o.wrapper.css("overflow")==a?n=o.wrapper[0]:(n=window,r=!0),i=function(i,o){var s=r?e(t).offset()[i.toLowerCase()]:t["offset"+i],l=t["client"+o],u=e(n)[a+i](),c=e(n)[o.toLowerCase()]();s+l>u+c?e(n)[a+i](s+l-c):u>s&&e(n)[a+i](s)},i("Top","Height"),i("Left","Width")},_navigatable:function(){var t=this,i=t.options.navigatable,o=t.element,r=function(n){t.current(e(n.currentTarget)),e(n.target).is(":button,a,:input,a>.k-icon,textarea")||o.focus()};i&&(t._tabindex(),o.on("focus"+b,function(){var e=t._current;e&&e.is(":visible")||(e=t._item("first")),t.current(e)}).on("focusout"+b,function(){t._current&&t._current.removeClass(p)}).on("keydown"+b,function(i){var r,a,s=i.keyCode,u=t.current(),c=e(i.target),d=!c.is(":button,textarea,a,a>.t-icon,input"),p=c.is(":text,:password"),h=n.preventDefault,m=o.find("."+f),g=k();if(!(!d&&!p&&l.ESC!=s||p&&l.ESC!=s&&l.ENTER!=s))if(l.UP===s||l.LEFT===s)u&&(u=u.prev()),t.current(u&&u[0]?u:t._item("last")),h(i);else if(l.DOWN===s||l.RIGHT===s)u&&(u=u.next()),t.current(u&&u[0]?u:t._item("first")),h(i);else if(l.PAGEUP===s)t.current(null),t.dataSource.page(t.dataSource.page()-1),h(i);else if(l.PAGEDOWN===s)t.current(null),t.dataSource.page(t.dataSource.page()+1),h(i);else if(l.HOME===s)t.current(t._item("first")),h(i);else if(l.END===s)t.current(t._item("last")),h(i);else if(l.ENTER===s)0!==m.length&&(d||p)?(r=t.items().index(m),g&&g.blur(),t.save(),a=function(){t.element.trigger("focus"),t.current(t.items().eq(r))},t.one("dataBound",a)):""!==t.options.editTemplate&&t.edit(u);else if(l.ESC===s){if(m=o.find("."+f),0===m.length)return;r=t.items().index(m),t.cancel(),t.element.trigger("focus"),t.current(t.items().eq(r))}}),o.on("mousedown"+b+" touchstart"+b,u,w(r,t)))},clearSelection:function(){var e=this;e.selectable.clear(),e.trigger(i)},select:function(n){var i=this,o=i.selectable;return n=e(n),n.length?(o.options.multiple||(o.clear(),n=n.first()),o.value(n),t):o.value()},_destroyEditable:function(){var e=this;e.editable&&(e.editable.destroy(),delete e.editable)},_modelFromElement:function(e){var t=e.attr(n.attr("uid"));return this.dataSource.getByUid(t)},_closeEditable:function(){var e,t,i,o=this,r=o.editable,a=o.template;return r&&(r.element.index()%2&&(a=o.altTemplate),o.angular("cleanup",function(){return{elements:[r.element]}}),e=o._modelFromElement(r.element),o._destroyEditable(),i=r.element.index(),r.element.replaceWith(a(e)),t=o.items().eq(i),t.attr(n.attr("uid"),e.uid),o._hasBindingTarget()&&n.bind(t,e),o.angular("compile",function(){return{elements:[t],data:[{dataItem:e}]}})),!0},edit:function(e){var t,i,o=this,r=o._modelFromElement(e),a=r.uid;o.cancel(),e=o.items().filter("["+n.attr("uid")+"="+a+"]"),i=e.index(),e.replaceWith(o.editTemplate(r)),t=o.items().eq(i).addClass(f).attr(n.attr("uid"),r.uid),o.editable=t.kendoEditable({model:r,clearContainer:!1,errorTemplate:!1,target:o}).data("kendoEditable"),o.trigger(m,{model:r,item:t})},save:function(){var e,t,n=this,i=n.editable;i&&(t=i.element,e=n._modelFromElement(t),i.end()&&!n.trigger(v,{model:e,item:t})&&(n._closeEditable(),n.dataSource.sync()))},remove:function(e){var t=this,n=t.dataSource,i=t._modelFromElement(e);t.editable&&(n.cancelChanges(t._modelFromElement(t.editable.element)),t._closeEditable()),t.trigger(g,{model:i,item:e})||(e.hide(),n.remove(i),n.sync())},add:function(){var e,t=this,n=t.dataSource,i=n.indexOf((n.view()||[])[0]);0>i&&(i=0),t.cancel(),e=n.insert(i,{}),t.edit(t.element.find("[data-uid='"+e.uid+"']"))},cancel:function(){var e,t,n=this,i=n.dataSource;n.editable&&(e=n.editable.element,t=n._modelFromElement(e),n.trigger(o,{model:t,container:e})||(i.cancelChanges(t),n._closeEditable()))},_crudHandlers:function(){var t=this,i=_+b;t.element.on(i,".k-edit-button",function(i){var o=e(this).closest("["+n.attr("uid")+"]");t.edit(o),i.preventDefault()}),t.element.on(i,".k-delete-button",function(i){var o=e(this).closest("["+n.attr("uid")+"]");t.remove(o),i.preventDefault()}),t.element.on(i,".k-update-button",function(e){t.save(),e.preventDefault()}),t.element.on(i,".k-cancel-button",function(e){t.cancel(),e.preventDefault()})},destroy:function(){var e=this;s.fn.destroy.call(e),e._unbindDataSource(),e._destroyEditable(),e.element.off(b),e.pager&&e.pager.destroy(),n.destroy(e.element)}});n.ui.plugin(C)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.maskedtextbox.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.caret,o=n.keys,r=n.ui,a=r.Widget,s=".kendoMaskedTextBox",l=e.proxy,u=(n.support.propertyChangeEvent?"propertychange":"input")+s,c="k-state-disabled",d="disabled",p="readonly",h="change",f=a.extend({init:function(t,o){var r,l,u=this;a.fn.init.call(u,t,o),u._rules=e.extend({},u.rules,u.options.rules),t=u.element,r=t[0],u.wrapper=t,u._tokenize(),u._form(),u.element.addClass("k-textbox").attr("autocomplete","off").on("focus"+s,function(){var e=r.value;e?u._togglePrompt(!0):r.value=u._old=u._emptyMask,u._oldValue=e,u._timeoutId=setTimeout(function(){i(t,0,e?u._maskLength:0)})}).on("focusout"+s,function(){var e=t.val();clearTimeout(u._timeoutId),r.value=u._old="",e!==u._emptyMask&&(r.value=u._old=e),u._change(),u._togglePrompt()}),l=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),l?u.enable(!1):u.readonly(t.is("[readonly]")),u.value(u.options.value||t.val()),n.notify(u)},options:{name:"MaskedTextBox",clearPromptChar:!1,unmaskOnPost:!1,promptChar:"_",culture:"",rules:{},value:"",mask:""},events:[h],rules:{0:/\d/,9:/\d|\s/,"#":/\d|\s|\+|\-/,L:/[a-zA-Z]/,"?":/[a-zA-Z]|\s/,"&":/\S/,C:/./,A:/[a-zA-Z0-9]/,a:/[a-zA-Z0-9]|\s/},setOptions:function(t){var n=this;a.fn.setOptions.call(n,t),n._rules=e.extend({},n.rules,n.options.rules),n._tokenize(),this._unbindInput(),this._bindInput(),n.value(n.element.val())},destroy:function(){var e=this;e.element.off(s),e._formElement&&(e._formElement.off("reset",e._resetHandler),e._formElement.off("submit",e._submitHandler)),a.fn.destroy.call(e)},raw:function(){var e=this._unmask(this.element.val(),0);return e.replace(RegExp(this.options.promptChar,"g"),"")},value:function(e){var i=this.element,o=this._emptyMask;return e===t?this.element.val():(null===e&&(e=""),o?(e=this._unmask(e+""),i.val(e?o:""),this._mask(0,this._maskLength,e),e=i.val(),this._oldValue=e,n._activeElement()!==i&&(e===o?i.val(""):this._togglePrompt()),t):(i.val(e),t))},_togglePrompt:function(e){var t=this.element[0],n=t.value;this.options.clearPromptChar&&(n=e?this._oldValue:n.replace(RegExp(this.options.promptChar,"g")," "),t.value=this._old=n)},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},_bindInput:function(){var e=this;e._maskLength&&e.element.on("keydown"+s,l(e._keydown,e)).on("keypress"+s,l(e._keypress,e)).on("paste"+s,l(e._paste,e)).on(u,l(e._propertyChange,e))},_unbindInput:function(){this.element.off("keydown"+s).off("keypress"+s).off("paste"+s).off(u)},_editable:function(e){var t=this,n=t.element,i=e.disable,o=e.readonly;t._unbindInput(),o||i?n.attr(d,i).attr(p,o).toggleClass(c,i):(n.removeAttr(d).removeAttr(p).removeClass(c),t._bindInput())},_change:function(){var e=this,t=e.value();t!==e._oldValue&&(e._oldValue=t,e.trigger(h),e.element.trigger(h))},_propertyChange:function(){var e,t,o=this,r=o.element[0],a=r.value;n._activeElement()===r&&(a===o._old||o._pasting||(t=i(r)[0],e=o._unmask(a.substring(t),t),r.value=o._old=a.substring(0,t)+o._emptyMask.substring(t),o._mask(t,t,e),i(r,t)))},_paste:function(e){var t=this,n=e.target,o=i(n),r=o[0],a=o[1],s=t._unmask(n.value.substring(a),a);t._pasting=!0,setTimeout(function(){var e=n.value,o=e.substring(r,i(n)[0]);n.value=t._old=e.substring(0,r)+t._emptyMask.substring(r),t._mask(r,r,o),r=i(n)[0],t._mask(r,r,s),i(n,r),t._pasting=!1})},_form:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value)})},t._submitHandler=function(){t.element[0].value=t._old=t.raw()},t.options.unmaskOnPost&&o.on("submit",t._submitHandler),t._formElement=o.on("reset",t._resetHandler))},_keydown:function(e){var n,r=e.keyCode,a=this.element[0],s=i(a),l=s[0],u=s[1],c=r===o.BACKSPACE;c||r===o.DELETE?(l===u&&(c?l-=1:u+=1,n=this._find(l,c)),n!==t&&n!==l?(c&&(n+=1),i(a,n)):l>-1&&this._mask(l,u,"",c),e.preventDefault()):r===o.ENTER&&this._change()},_keypress:function(e){var t,n;0===e.which||e.metaKey||e.ctrlKey||e.keyCode===o.ENTER||(t=String.fromCharCode(e.which),n=i(this.element),this._mask(n[0],n[1],t),(e.keyCode===o.BACKSPACE||t)&&e.preventDefault())},_find:function(e,t){var n=this.element.val()||this._emptyMask,i=1;for(t===!0&&(i=-1);e>-1||this._maskLength>=e;){if(n.charAt(e)!==this.tokens[e])return e;e+=i}return-1},_mask:function(e,o,r,a){var s,l,u,c,d=this.element[0],p=d.value||this._emptyMask,h=this.options.promptChar,f=0;for(e=this._find(e,a),e>o&&(o=e),l=this._unmask(p.substring(o),o),r=this._unmask(r,e),s=r.length,r&&(l=l.replace(RegExp("^_{0,"+s+"}"),"")),r+=l,p=p.split(""),u=r.charAt(f);this._maskLength>e;)p[e]=u||h,u=r.charAt(++f),c===t&&f>s&&(c=e),e=this._find(e+1);d.value=this._old=p.join(""),n._activeElement()===d&&(c===t&&(c=this._maskLength),i(d,c))},_unmask:function(t,n){var i,o,r,a,s,l,u,c;if(!t)return"";for(t=(t+"").split(""),r=0,a=n||0,s=this.options.promptChar,l=t.length,u=this.tokens.length,c="";u>a&&(i=t[r],o=this.tokens[a],i===o||i===s?(c+=i===s?s:"",r+=1,a+=1):"string"!=typeof o?((o.test&&o.test(i)||e.isFunction(o)&&o(i))&&(c+=i,a+=1),r+=1):a+=1,!(r>=l)););return c},_tokenize:function(){for(var e,t,i,o,r=[],a=0,s=this.options.mask||"",l=s.split(""),u=l.length,c=0,d="",p=this.options.promptChar,h=n.getCulture(this.options.culture).numberFormat,f=this._rules;u>c;c++)if(e=l[c],t=f[e])r[a]=t,d+=p,a+=1;else for("."===e||","===e?e=h[e]:"$"===e?e=h.currency.symbol:"\\"===e&&(c+=1,e=l[c]),e=e.split(""),i=0,o=e.length;o>i;i++)r[a]=e[i],d+=e[i],a+=1;this.tokens=r,this._emptyMask=d,this._maskLength=d.length}});r.plugin(f)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.menu.min",["kendo.popup.min"],e)}(function(){return function(e,t){function n(e,t){return e=e.split(" ")[!t+0]||e,e.replace("top","up").replace("bottom","down")}function i(e,t,n){e=e.split(" ")[!t+0]||e;var i={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},o=/left|right/.test(e);return o?(i.origin=["top",e],i.position[1]=u.directions[e].reverse):(i.origin[0]=e,i.position[0]=u.directions[e].reverse),i.origin=i.origin.join(" "),i.position=i.position.join(" "),i}function o(t,n){try{return e.contains(t,n)}catch(i){return!1}}function r(t){t=e(t),t.addClass("k-item").children(x).addClass(P),t.children("a").addClass(S).children(x).addClass(P),t.filter(":not([disabled])").addClass(q),t.filter(".k-separator").empty().append("&nbsp;"),t.filter("li[disabled]").addClass(Y).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children("."+S).length||t.contents().filter(function(){return!(this.nodeName.match(k)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+S+"'/>"),a(t),s(t)}function a(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow]:not(.k-sprite)").remove(),t.filter(":has(.k-menu-group)").children(".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))").each(function(){var t=e(this),n=t.parent().parent();t.append("<span class='k-icon "+(n.hasClass(T+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function s(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(I),t.filter(".k-last:not(:last-child)").removeClass(D),t.filter(":first-child").addClass(I),t.filter(":last-child").addClass(D)}var l,u=window.kendo,c=u.ui,d=u._activeElement,p=u.support.touch&&u.support.mobileOS,h="mousedown",f="click",m=e.extend,g=e.proxy,v=e.each,_=u.template,b=u.keys,w=c.Widget,k=/^(ul|a|div)$/i,y=".kendoMenu",x="img",C="open",T="k-menu",S="k-link",D="k-last",F="close",E="timer",I="k-first",P="k-image",A="select",M="zIndex",H="activate",O="deactivate",z="touchstart"+y+" MSPointerDown"+y+" pointerdown"+y,V=u.support.pointers,B=u.support.msPointers,L=B||V,R=V?"pointerover":B?"MSPointerOver":"mouseenter",N=V?"pointerout":B?"MSPointerOut":"mouseleave",W=p||L,U=e(document.documentElement),j="kendoPopup",q="k-state-default",$="k-state-hover",G="k-state-focused",Y="k-state-disabled",Q="k-state-selected",K=".k-menu",J=".k-menu-group",X=J+",.k-animation-container",Z=":not(.k-list) > .k-item",ee=".k-item.k-state-disabled",te=".k-item:not(.k-state-disabled)",ne=".k-item:not(.k-state-disabled) > .k-link",ie=":not(.k-item.k-separator)",oe=ie+":eq(0)",re=ie+":last",ae="> div:not(.k-animation-container,.k-list-container)",se={2:1,touch:1},le={content:_("<div #= contentCssAttributes(item) # tabindex='-1'>#= content(item) #</div>"),group:_("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:_("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(data) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:_("<li class='#= wrapperCssClass(group, item) #' #= itemCssAttributes(item) # role='menuitem'  #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),image:_("<img #= imageCssAttributes(item) # alt='' src='#= item.imageUrl #' />"),arrow:_("<span class='#= arrowClass(item, group) #'></span>"),sprite:_("<span class='k-sprite #= spriteCssClass #'></span>"),empty:_("")},ue={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),t.attr&&t.attr.hasOwnProperty("class")&&(n+=" "+t.attr["class"]),t.selected&&(n+=" "+Q),n},itemCssAttributes:function(e){var t,n="",i=e.attr||{};for(t in i)i.hasOwnProperty(t)&&"class"!==t&&(n+=t+'="'+i[t]+'" ');return n},imageCssAttributes:function(e){var t,n="",i=e.imageAttr||{};i["class"]?i["class"]+=" "+P:i["class"]=P;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},contentCssAttributes:function(e){var t,n="",i=e.contentAttr||{},o="k-content k-group k-menu-group";i["class"]?i["class"]+=" "+o:i["class"]=o;for(t in i)i.hasOwnProperty(t)&&(n+=t+'="'+i[t]+'" ');return n},textClass:function(){return S},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e,t){var n="k-icon";return n+=t.horizontal?" k-i-arrow-s":" k-i-arrow-e"},text:function(e){return e.encoded===!1?e.text:u.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-menu-group"},content:function(e){return e.content?e.content:"&nbsp;"}},ce=w.extend({init:function(t,n){var i=this;w.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options,i._initData(n),i._updateClasses(),i._animations(n),i.nextItemZIndex=100,i._tabindex(),i._focusProxy=g(i._focusHandler,i),t.on(z,te,i._focusProxy).on(f+y,ee,!1).on(f+y,te,g(i._click,i)).on("keydown"+y,g(i._keydown,i)).on("focus"+y,g(i._focus,i)).on("focus"+y,".k-content",g(i._focus,i)).on(z+" "+h+y,".k-content",g(i._preventClose,i)).on("blur"+y,g(i._removeHoverItem,i)).on("blur"+y,"[tabindex]",g(i._checkActiveElement,i)).on(R+y,te,g(i._mouseenter,i)).on(N+y,te,g(i._mouseleave,i)).on(R+y+" "+N+y+" "+h+y+" "+f+y,ne,g(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=g(i._documentClick,i),e(document).click(i._documentClickHandler)),t.attr("role","menubar"),t[0].id&&(i._ariaId=u.format("{0}_mn_active",t[0].id)),u.notify(i)},events:[C,F,H,O,A],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,popupCollision:t},_initData:function(e){var t=this;e.dataSource&&(t.angular("cleanup",function(){return{elements:t.element.children()}}),t.element.empty(),t.append(e.dataSource,t.element),t.angular("compile",function(){return{elements:t.element.children()}}))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=m(!0,t,e.animation),"dataSource"in e&&this._initData(e),this._updateClasses(),w.fn.setOptions.call(this,e)},destroy:function(){var t=this;w.fn.destroy.call(t),t.element.off(y),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler),u.destroy(t.element)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.length?t.find("> .k-menu-group, > .k-animation-container > .k-menu-group"):null);return v(n.items,function(){n.group.append(this),a(this)}),a(t),s(n.group.find(".k-first, .k-last").add(n.items)),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.before(this),a(this),s(this)}),s(t),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.after(this),a(this),s(this)}),s(t),this},_insert:function(t,n,i){var o,a,s,l,u=this;return n&&n.length||(i=u.element),s=e.isPlainObject(t),l={firstLevel:i.hasClass(T),horizontal:i.hasClass(T+"-horizontal"),expanded:!0,length:i.children().length},n&&!i.length&&(i=e(ce.renderGroup({group:l})).appendTo(n)),s||e.isArray(t)?o=e(e.map(s?[t]:t,function(t,n){return"string"==typeof t?e(t).get():e(ce.renderItem({group:l,item:m(t,{index:n})})).get()})):(o="string"==typeof t&&"<"!=t.charAt(0)?u.element.find(t):e(t),a=o.find("> ul").addClass("k-menu-group").attr("role","menu"),o=o.filter("li"),o.add(a.find("> li")).each(function(){r(this)})),{items:o,group:i}},remove:function(e){var t,n,i,o;return e=this.element.find(e),t=this,n=e.parentsUntil(t.element,Z),i=e.parent("ul:not(.k-menu)"),e.remove(),i&&!i.children(Z).length&&(o=i.parent(".k-animation-container"),o.length?o.remove():i.remove()),n.length&&(n=n.eq(0),a(n),s(n)),t},open:function(o){var r=this,a=r.options,s="horizontal"==a.orientation,l=a.direction,c=u.support.isRtl(r.wrapper);return o=r.element.find(o),/^(top|bottom|default)$/.test(l)&&(l=c?s?(l+" left").replace("default","bottom"):"left":s?(l+" right").replace("default","bottom"):"right"),
o.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var t=e(this).data("kendoPopup");t&&t.close()}),o.each(function(){var o=e(this);clearTimeout(o.data(E)),o.data(E,setTimeout(function(){var d,h,f,g,v,_,b,w,k=o.find(".k-menu-group:first:hidden");k[0]&&r._triggerEvent({item:o[0],type:C})===!1&&(!k.find(".k-menu-group")[0]&&k.children(".k-item").length>1?(h=e(window).height(),f=function(){k.css({maxHeight:h-(k.outerHeight()-k.height())-u.getShadows(k).bottom,overflow:"auto"})},u.support.browser.msie&&7>=u.support.browser.version?setTimeout(f,0):f()):k.css({maxHeight:"",overflow:""}),o.data(M,o.css(M)),o.css(M,r.nextItemZIndex++),d=k.data(j),g=o.parent().hasClass(T),v=g&&s,_=i(l,g,c),b=a.animation.open.effects,w=b!==t?b:"slideIn:"+n(l,g),d?(d=k.data(j),d.options.origin=_.origin,d.options.position=_.position,d.options.animation.open.effects=w):d=k.kendoPopup({activate:function(){r._triggerEvent({item:this.wrapper.parent(),type:H})},deactivate:function(e){e.sender.element.removeData("targetTransform").css({opacity:""}),r._triggerEvent({item:this.wrapper.parent(),type:O})},origin:_.origin,position:_.position,collision:a.popupCollision!==t?a.popupCollision:v?"fit":"fit flip",anchor:o,appendTo:o,animation:{open:m(!0,{effects:w},a.animation.open),close:a.animation.close},close:function(e){var t=e.sender.wrapper.parent();r._triggerEvent({item:t[0],type:F})?e.preventDefault():(t.css(M,t.data(M)),t.removeData(M),p&&(t.removeClass($),r._removeHoverItem()))}}).data(j),k.removeAttr("aria-hidden"),d.open())},r.options.hoverDelay))}),r},close:function(t,n){var i=this,o=i.element;return t=o.find(t),t.length||(t=o.find(">.k-item")),t.each(function(){var t=e(this);!n&&i._isRootItem(t)&&(i.clicked=!1),clearTimeout(t.data(E)),t.data(E,setTimeout(function(){var e=t.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible").data(j);e&&(e.close(),e.element.attr("aria-hidden",!0))},i.options.hoverDelay))}),i},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(q,n).toggleClass(Y,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(u.eventTarget(t)||t.target).closest(Z),i=t.type==R||-1!==h.indexOf(t.type);n.parents("li."+Y).length||n.toggleClass($,i||"mousedown"==t.type||"click"==t.type),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,i=e(t?t.currentTarget:this._hoverItem()),r=n._findRootParent(i)[0];this._closurePrevented||setTimeout(function(){(!document.hasFocus()||!o(r,u._activeElement())&&t&&!o(r,t.currentTarget))&&n.close(r)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass(G)&&(e.removeClass(G),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element,n=".k-menu-init div ul";t.removeClass("k-menu-horizontal k-menu-vertical"),t.addClass("k-widget k-reset k-header k-menu-init "+T).addClass(T+"-"+this.options.orientation),t.find("li > ul").filter(function(){return!u.support.matchesSelector.call(this,n)}).addClass("k-group k-menu-group").attr("role","menu").attr("aria-hidden",t.is(":visible")).end().find("li > div").addClass("k-content").attr("tabindex","-1"),e=t.find("> li,.k-menu-group > li"),t.removeClass("k-menu-init"),e.each(function(){r(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),r=i.children(".k-animation-container").length||i.children(J).length;t.delegateTarget==i.parents(K)[0]&&(n.options.openOnClick&&!n.clicked||p||(V||B)&&t.originalEvent.pointerType in se&&n._isRootItem(i.closest(Z))||!o(t.currentTarget,t.relatedTarget)&&r&&n.open(i),(n.options.openOnClick&&n.clicked||W)&&i.siblings().each(g(function(e,t){n.close(t,!0)},n)))},_mouseleave:function(n){var i=this,r=e(n.currentTarget),a=r.children(".k-animation-container").length||r.children(J).length;return r.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):(i.options.openOnClick||p||(V||B)&&n.originalEvent.pointerType in se||o(n.currentTarget,n.relatedTarget||n.target)||!a||o(n.currentTarget,u._activeElement())||i.close(r),t)},_click:function(n){var i,o,r,a=this,s=a.options,l=e(u.eventTarget(n)),c=l[0]?l[0].nodeName.toUpperCase():"",d="INPUT"==c||"SELECT"==c||"BUTTON"==c||"LABEL"==c,p=l.closest("."+S),h=l.closest(Z),f=p.attr("href"),m=l.attr("href"),g=e("<a href='#' />").attr("href"),v=!!f&&f!==g,_=v&&!!f.match(/^#/),b=!!m&&m!==g,w=s.openOnClick&&r&&a._isRootItem(h);if(!l.closest(ae,h[0]).length){if(h.hasClass(Y))return n.preventDefault(),t;if(n.handled||!a._triggerEvent({item:h[0],type:A})||d||n.preventDefault(),n.handled=!0,o=h.children(X),r=o.is(":visible"),s.closeOnClick&&(!v||_)&&(!o.length||w))return h.removeClass($).css("height"),a._oldHoverItem=a._findRootParent(h),a.close(p.parentsUntil(a.element,Z)),a.clicked=!1,-1!="MSPointerUp".indexOf(n.type)&&n.preventDefault(),t;v&&n.enterKey&&p[0].click(),(a._isRootItem(h)&&s.openOnClick||u.support.touch||(V||B)&&a._isRootItem(h.closest(Z)))&&(v||d||b||n.preventDefault(),a.clicked=!0,i=o.is(":visible")?F:C,(s.closeOnClick||i!=F)&&a[i](h))}},_documentClick:function(e){o(this.element[0],e.target)||(this.clicked=!1)},_focus:function(n){var i=this,o=n.target,r=i._hoverItem(),a=d();return o==i.wrapper[0]||e(o).is(":kendoFocusable")?(a===n.currentTarget&&(r.length?i._moveHover([],r):i._oldHoverItem||i._moveHover([],i.wrapper.children().first())),t):(n.stopPropagation(),e(o).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(G),i.wrapper.focus(),t)},_keydown:function(e){var n,i,o,r=this,a=e.keyCode,s=r._oldHoverItem,l=u.support.isRtl(r.wrapper);if(e.target==e.currentTarget||a==b.ESC){if(s||(s=r._oldHoverItem=r._hoverItem()),i=r._itemBelongsToVertival(s),o=r._itemHasChildren(s),a==b.RIGHT)n=r[l?"_itemLeft":"_itemRight"](s,i,o);else if(a==b.LEFT)n=r[l?"_itemRight":"_itemLeft"](s,i,o);else if(a==b.DOWN)n=r._itemDown(s,i,o);else if(a==b.UP)n=r._itemUp(s,i,o);else if(a==b.ESC)n=r._itemEsc(s,i);else if(a==b.ENTER||a==b.SPACEBAR)n=s.children(".k-link"),n.length>0&&(r._click({target:n[0],preventDefault:function(){},enterKey:!0}),r._moveHover(s,r._findRootParent(s)));else if(a==b.TAB)return n=r._findRootParent(s),r._moveHover(s,n),r._checkActiveElement(),t;n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(".k-item.k-state-hover,.k-item.k-state-focused").filter(":visible")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass("k-menu-vertical");return e.length?e.parent().hasClass("k-menu-group")||t:t},_itemHasChildren:function(e){return e.length?e.children("ul.k-menu-group, div.k-animation-container").length>0:!1},_moveHover:function(t,n){var i=this,o=i._ariaId;t.length&&n.length&&t.removeClass(G),n.length&&(n[0].id&&(o=n[0].id),n.addClass(G),i._oldHoverItem=n,o&&(i.element.removeAttr("aria-activedescendant"),e("#"+o).removeAttr("id"),n.attr("id",o),i.element.attr("aria-activedescendant",o)))},_findRootParent:function(e){return this._isRootItem(e)?e:e.parentsUntil(K,"li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass(T)},_itemRight:function(e,t,n){var i,o,r=this;if(!e.hasClass(Y))return t?n?(r.open(e),i=e.find(".k-menu-group").children().first()):"horizontal"==r.options.orientation&&(o=r._findRootParent(e),r.close(o),i=o.nextAll(oe)):(i=e.nextAll(oe),i.length||(i=e.prevAll(re))),i&&!i.length?i=r.wrapper.children(".k-item").first():i||(i=[]),r._moveHover(e,i),i},_itemLeft:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._isRootItem(n)&&"horizontal"==i.options.orientation&&(n=n.prevAll(oe))):(n=e.prevAll(oe),n.length||(n=e.nextAll(re))),n.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemDown:function(e,t,n){var i,o=this;if(t)i=e.nextAll(oe);else{if(!n||e.hasClass(Y))return;o.open(e),i=e.find(".k-menu-group").children().first()}return!i.length&&e.length?i=e.parent().children().first():e.length||(i=o.wrapper.children(".k-item").first()),o._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t)return n=e.prevAll(oe),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._moveHover(e,n),n):e},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,i=e(u.eventTarget(t)).closest(Z);setTimeout(function(){n._moveHover([],i),i.children(".k-content")[0]&&i.parent().closest(".k-item").removeClass(G)},200)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})}});m(ce,{renderItem:function(e){e=m({menu:{},group:{}},e);var t=le.empty,n=e.item;return le.item(m(e,{image:n.imageUrl?le.image:t,sprite:n.spriteCssClass?le.sprite:t,itemWrapper:le.itemWrapper,renderContent:ce.renderContent,arrow:n.items||n.content?le.arrow:t,subGroup:ce.renderGroup},ue))},renderGroup:function(e){return le.group(m({renderItems:function(e){for(var t="",n=0,i=e.items,o=i?i.length:0,r=m({length:o},e.group);o>n;n++)t+=ce.renderItem(m(e,{group:r,item:m({index:n},i[n])}));return t}},e,ue))},renderContent:function(e){return le.content(m(e,ue))}}),l=ce.extend({init:function(t,n){var i=this;ce.fn.init.call(i,t,n),i._marker=u.guid().substring(0,8),i.target=e(i.options.target),i._popup(),i._wire()},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,target:"body"},events:[C,F,H,O,A],setOptions:function(t){var n=this;ce.fn.setOptions.call(n,t),n.target.off(n.showOn+y+n._marker,n._showProxy),n.userEvents&&n.userEvents.destroy(),n.target=e(n.options.target),t.orientation&&n.popup.wrapper[0]&&n.popup.element.unwrap(),n._wire(),ce.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+y+e._marker),U.off(u.support.mousedown+y+e._marker,e._closeProxy),e.userEvents&&e.userEvents.destroy(),ce.fn.destroy.call(e)},open:function(n,i){var r=this;return n=e(n)[0],o(r.element[0],e(n)[0])?ce.fn.open.call(r,n):r._triggerEvent({item:r.element,type:C})===!1&&(r.popup.visible()&&r.options.filter&&(r.popup.close(!0),r.popup.element.kendoStop(!0)),i!==t?(r.popup.wrapper.hide(),r.popup.open(n,i)):(r.popup.options.anchor=(n?n:r.popup.anchor)||r.target,r.popup.element.kendoStop(!0),r.popup.open()),U.off(r.popup.downEvent,r.popup._mousedownProxy),U.on(u.support.mousedown+y+r._marker,r._closeProxy)),r},close:function(){var t=this;o(t.element[0],e(arguments[0])[0])?ce.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:F})===!1&&(t.popup.close(),U.off(u.support.mousedown+y,t._closeProxy),t.unbind(A,t._closeTimeoutProxy))},_showHandler:function(e){var t,n=e,i=this,r=i.options;e.event&&(n=e.event,n.pageX=e.x.location,n.pageY=e.y.location),o(i.element[0],e.relatedTarget||e.target)||(i._eventOrigin=n,n.preventDefault(),n.stopImmediatePropagation(),i.element.find("."+G).removeClass(G),(r.filter&&u.support.matchesSelector.call(n.currentTarget,r.filter)||!r.filter)&&(r.alignToAnchor?(i.popup.options.anchor=n.currentTarget,i.open(n.currentTarget)):(i.popup.options.anchor=n.currentTarget,i._targetChild?(t=i.target.offset(),i.open(n.pageX-t.left,n.pageY-t.top)):i.open(n.pageX,n.pageY))))},_closeHandler:function(t){var n,i=this,r=e(t.relatedTarget||t.target),a=r.closest(i.target.selector)[0]==i.target[0],s=r.closest(te).children(X),l=o(i.element[0],r[0]);i._eventOrigin=t,n=3!==t.which,i.popup.visible()&&(n&&a||!a)&&(i.options.closeOnClick&&!s[0]&&l||!l)&&(l?(this.unbind(A,this._closeTimeoutProxy),i.bind(A,i._closeTimeoutProxy)):i.close())},_wire:function(){var e=this,t=e.options,n=e.target;e._showProxy=g(e._showHandler,e),e._closeProxy=g(e._closeHandler,e),e._closeTimeoutProxy=g(e.close,e),n[0]&&(u.support.mobileOS&&"contextmenu"==t.showOn?(e.userEvents=new u.UserEvents(n,{filter:t.filter,allowSelection:!1}),n.on(t.showOn+y+e._marker,!1),e.userEvents.bind("hold",e._showProxy)):t.filter?n.on(t.showOn+y+e._marker,t.filter,e._showProxy):n.on(t.showOn+y+e._marker,e._showProxy))},_triggerEvent:function(n){var i=this,o=e(i.popup.options.anchor)[0],r=i._eventOrigin;return i._eventOrigin=t,i.trigger(n.type,m({type:n.type,item:n.item||this.element[0],target:o},r?{event:r}:{}))},_popup:function(){var e=this;e._triggerProxy=g(e._triggerEvent,e),e.popup=e.element.addClass("k-context-menu").kendoPopup({anchor:e.target||"body",copyAnchorStyles:e.options.copyAnchorStyles,collision:e.options.popupCollision||"fit",animation:e.options.animation,activate:e._triggerProxy,deactivate:e._triggerProxy}).data("kendoPopup"),e._targetChild=o(e.target[0],e.popup.element[0])}}),c.plugin(ce),c.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.panelbar.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){t=e(t),t.children(v).children(".k-icon").remove(),t.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent();t.append("<span class='k-icon "+(n.hasClass(A)?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function i(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(x),t.filter(".k-last:not(:last-child)").removeClass(m),t.filter(":first-child").addClass(x),t.filter(":last-child").addClass(m)}var o=window.kendo,r=o.ui,a=o.keys,s=e.extend,l=e.each,u=o.template,c=r.Widget,d=/^(ul|a|div)$/i,p=".kendoPanelBar",h="img",f="href",m="k-last",g="k-link",v="."+g,_="error",b=".k-item",w=".k-group",k=w+":visible",y="k-image",x="k-first",C="expand",T="select",S="k-content",D="activate",F="collapse",E="mouseenter",I="mouseleave",P="contentLoad",A="k-state-active",M="> .k-panel",H="> .k-content",O="k-state-focused",z="k-state-disabled",V="k-state-selected",B="."+V,L="k-state-highlight",R=b+":not(.k-state-disabled)",N="> "+R+" > "+v+", .k-panel > "+R+" > "+v,W=b+".k-state-disabled > .k-link",U="> li > "+B+", .k-panel > li > "+B,j="k-state-default",q="aria-disabled",$="aria-expanded",G="aria-hidden",Y="aria-selected",Q=":visible",K=":empty",J="single",X={content:u("<div role='region' class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:u("<ul role='group' aria-hidden='true' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:u("<#= tag(item) # class='#= textClass(item, group) #' #= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:u("<li role='menuitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),image:u("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:u("<span class='#= arrowClass(item) #'></span>"),sprite:u("<span class='k-sprite #= spriteCssClass #'></span>"),empty:u("")},Z={aria:function(e){var t="";return(e.items||e.content||e.contentUrl)&&(t+=$+"='"+(e.expanded?"true":"false")+"' "),e.enabled===!1&&(t+=q+"='true'"),t},wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" "+z:t.expanded===!0?" "+A:" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),n},textClass:function(e,t){var n=g;return t.firstLevel&&(n+=" k-header"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e){var t="k-icon";return t+=e.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand"},text:function(e){return e.encoded===!1?e.text:o.htmlEncode(e.text)},tag:function(e){return e.url||e.contentUrl?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-panel"},contentAttributes:function(e){return e.item.expanded!==!0?" style='display:none'":""},content:function(e){return e.content?e.content:e.contentUrl?"":"&nbsp;"},contentUrl:function(e){return e.contentUrl?'href="'+e.contentUrl+'"':""}},ee=c.extend({init:function(t,n){var i,r=this;c.fn.init.call(r,t,n),t=r.wrapper=r.element.addClass("k-widget k-reset k-header k-panelbar"),n=r.options,t[0].id&&(r._itemId=t[0].id+"_pb_active"),r._tabindex(),r._initData(n),r._updateClasses(),r._animations(n),t.on("click"+p,N,function(t){r._click(e(t.currentTarget))&&t.preventDefault()}).on(E+p+" "+I+p,N,r._toggleHover).on("click"+p,W,!1).on("keydown"+p,e.proxy(r._keydown,r)).on("focus"+p,function(){var e=r.select();r._current(e[0]?e:r._first())}).on("blur"+p,function(){r._current(null)}).attr("role","menu"),i=t.find("li."+A+" > ."+S),i[0]&&r.expand(i.parent(),!1),n.dataSource&&r._angularCompile(),o.notify(r)},events:[C,F,T,D,_,P],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},expandMode:"multiple"},_angularCompile:function(){var e=this;e.angular("compile",function(){return{elements:e.element.children("li"),data:[{dataItem:e.options.$angular}]}})},_angularCleanup:function(){var e=this;e.angular("cleanup",function(){return{elements:e.element.children("li")}})},destroy:function(){c.fn.destroy.call(this),this.element.off(p),this._angularCleanup(),o.destroy(this.element)},_initData:function(e){var t=this;e.dataSource&&(t.element.empty(),t.append(e.dataSource,t.element))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=s(!0,t,e.animation),"dataSource"in e&&this._initData(e),c.fn.setOptions.call(this,e)},expand:function(n,i){var o=this,r={};return n=this.element.find(n),o._animating&&n.find("ul").is(":visible")?(o.one("complete",function(){setTimeout(function(){o.expand(n)})}),t):(o._animating=!0,i=i!==!1,n.each(function(t,a){a=e(a);var s=a.find(M).add(a.find(H));if(!a.hasClass(z)&&s.length>0){if(o.options.expandMode==J&&o._collapseAllExpanded(a))return o;n.find("."+L).removeClass(L),a.addClass(L),i||(r=o.options.animation,o.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),o._triggerEvent(C,a)||o._toggleItem(a,!1),i||(o.options.animation=r)}}),o)},collapse:function(t,n){var i=this,o={};return i._animating=!0,n=n!==!1,t=i.element.find(t),t.each(function(t,r){r=e(r);var a=r.find(M).add(r.find(H));!r.hasClass(z)&&a.is(Q)&&(r.removeClass(L),n||(o=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(F,r)||i._toggleItem(r,!0),n||(i.options.animation=o))}),i},_toggleDisabled:function(e,t){e=this.element.find(e),e.toggleClass(j,t).toggleClass(z,!t).attr(q,!t)},select:function(n){var i=this;return n===t?i.element.find(U).parent():(n=i.element.find(n),n.length?n.each(function(){var n=e(this),o=n.children(v);return n.hasClass(z)?i:(i._triggerEvent(T,n)||i._updateSelected(o),t)}):this._updateSelected(n),i)},clearSelection:function(){this.select(e())},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var o=this._insert(e,t,t.length?t.find(M):null);return l(o.items,function(){o.group.append(this),i(this)}),n(t),i(o.group.find(".k-first, .k-last")),o.group.height("auto"),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return l(n.items,function(){t.before(this),i(this)}),i(t),n.group.height("auto"),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return l(n.items,function(){t.after(this),i(this)}),i(t),n.group.height("auto"),this},remove:function(e){e=this.element.find(e);var t=this,o=e.parentsUntil(t.element,b),r=e.parent("ul");return e.remove(),!r||r.hasClass("k-panelbar")||r.children(b).length||r.remove(),o.length&&(o=o.eq(0),n(o),i(o)),t},reload:function(t){var n=this;t=n.element.find(t),t.each(function(){var t=e(this);n._ajaxRequest(t,t.children("."+S),!t.is(Q))})},_first:function(){return this.element.children(R).first()},_last:function(){var e=this.element.children(R).last(),t=e.children(k);return t[0]?t.children(R).last():e},_current:function(n){var i=this,o=i._focused,r=i._itemId;return n===t?o:(i.element.removeAttr("aria-activedescendant"),o&&o.length&&(o[0].id===r&&o.removeAttr("id"),o.children(v).removeClass(O)),e(n).length&&(r=n[0].id||r,n.attr("id",r).children(v).addClass(O),i.element.attr("aria-activedescendant",r)),i._focused=n,t)},_keydown:function(e){var t=this,n=e.keyCode,i=t._current();e.target==e.currentTarget&&(n==a.DOWN||n==a.RIGHT?(t._current(t._nextItem(i)),e.preventDefault()):n==a.UP||n==a.LEFT?(t._current(t._prevItem(i)),e.preventDefault()):n==a.ENTER||n==a.SPACEBAR?(t._click(i.children(v)),e.preventDefault()):n==a.HOME?(t._current(t._first()),e.preventDefault()):n==a.END&&(t._current(t._last()),e.preventDefault()))},_nextItem:function(e){if(!e)return this._first();var t=e.children(k),n=e.nextAll(":visible").first();return t[0]&&(n=t.children("."+x)),n[0]||(n=e.parent(k).parent(b).next()),n[0]||(n=this._first()),n.hasClass(z)&&(n=this._nextItem(n)),n},_prevItem:function(e){if(!e)return this._last();var t,n=e.prevAll(":visible").first();if(n[0])for(t=n;t[0];)t=t.children(k).children("."+m),t[0]&&(n=t);else n=e.parent(k).parent(b),n[0]||(n=this._last());return n.hasClass(z)&&(n=this._prevItem(n)),n},_insert:function(t,n,i){var r,a,l=this,u=e.isPlainObject(t),c=n&&n[0];return c||(i=l.element),a={firstLevel:i.hasClass("k-panelbar"),expanded:i.parent().hasClass(A),length:i.children().length},c&&!i.length&&(i=e(ee.renderGroup({group:a})).appendTo(n)),t instanceof o.Observable&&(t=t.toJSON()),u||e.isArray(t)?(r=e.map(u?[t]:t,function(t,n){return e("string"==typeof t?t:ee.renderItem({group:a,item:s(t,{index:n})}))}),c&&n.attr($,!1)):(r="string"==typeof t&&"<"!=t.charAt(0)?l.element.find(t):e(t),l._updateItemsClasses(r)),{items:r,group:i}},_toggleHover:function(t){var n=e(t.currentTarget);n.parents("li."+z).length||n.toggleClass("k-state-hover",t.type==E)},_updateClasses:function(){var t,o,r=this;t=r.element.find("li > ul").not(function(){return e(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").attr("role","group"),t.parent().attr($,!1).not("."+A).children("ul").attr(G,!0).hide(),o=r.element.add(t).children(),r._updateItemsClasses(o),n(o),i(o)},_updateItemsClasses:function(e){for(var t=e.length,n=0;t>n;n++)this._updateItemClasses(e[n],n)},_updateItemClasses:function(t,n){var i,r,a=this._selected,s=this.options.contentUrls,l=s&&s[n],u=this.element[0];t=e(t).addClass("k-item").attr("role","menuitem"),o.support.browser.msie&&t.css("list-style-position","inside").css("list-style-position",""),t.children(h).addClass(y),r=t.children("a").addClass(g),r[0]&&(r.attr("href",l),r.children(h).addClass(y)),t.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),t.filter("li[disabled]").addClass("k-state-disabled").attr(q,!0).removeAttr("disabled"),t.children("div").addClass(S).attr("role","region").attr(G,!0).hide().parent().attr($,!1),r=t.children(B),r[0]&&(a&&a.removeAttr(Y).children(B).removeClass(V),r.addClass(V),this._selected=t.attr(Y,!0)),t.children(v)[0]||(i="<span class='"+g+"'/>",s&&s[n]&&t[0].parentNode==u&&(i='<a class="k-link k-header" href="'+s[n]+'"/>'),t.contents().filter(function(){return!(this.nodeName.match(d)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll(i)),t.parent(".k-panelbar")[0]&&t.children(v).addClass("k-header")},_click:function(e){var t,n,i,o,r,a,s,l=this,u=l.element;if(!e.parents("li."+z).length&&e.closest(".k-widget")[0]==u[0]){if(r=e.closest(v),a=r.closest(b),l._updateSelected(r),n=a.find(M).add(a.find(H)),i=r.attr(f),o=i&&("#"==i.charAt(i.length-1)||-1!=i.indexOf("#"+l.element[0].id+"-")),t=!(!o&&!n.length),n.data("animating"))return t;if(l._triggerEvent(T,a)&&(t=!0),t!==!1)return l.options.expandMode==J&&l._collapseAllExpanded(a)?t:(n.length&&(s=n.is(Q),l._triggerEvent(s?F:C,a)||(t=l._toggleItem(a,s))),t)}},_toggleItem:function(e,n){var i,o,r=this,a=e.find(M),s=e.find(v),l=s.attr(f);return a.length?(this._toggleGroup(a,n),i=!0):(o=e.children("."+S),o.length&&(i=!0,o.is(K)&&l!==t?r._ajaxRequest(e,o,n):r._toggleGroup(o,n))),i},_toggleGroup:function(e,n){var i=this,o=i.options.animation,r=o.expand,a=s({},o.collapse),l=a&&"effects"in a;return e.is(Q)!=n?(i._animating=!1,t):(e.parent().attr($,!n).attr(G,n).toggleClass(A,!n).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!n).toggleClass("k-panelbar-collapse",!n).toggleClass("k-i-arrow-s",n).toggleClass("k-panelbar-expand",n),n?(r=s(l?a:s({reverse:!0},r),{hide:!0}),r.complete=function(){i._animationCallback()}):r=s({complete:function(e){i._triggerEvent(D,e.closest(b)),i._animationCallback()}},r),e.kendoStop(!0,!0).kendoAnimate(r),t)},_animationCallback:function(){var e=this;e.trigger("complete"),e._animating=!1},_collapseAllExpanded:function(t){var n,i=this,o=!1,r=t.find(M).add(t.find(H));return r.is(Q)&&(o=!0),r.is(Q)||0===r.length||(n=t.siblings(),n.find(M).add(n.find(H)).filter(function(){return e(this).is(Q)}).each(function(t,n){n=e(n),o=i._triggerEvent(F,n.closest(b)),o||i._toggleGroup(n,!0)})),o},_ajaxRequest:function(t,n,i){var o=this,r=t.find(".k-panelbar-collapse, .k-panelbar-expand"),a=t.find(v),s=setTimeout(function(){r.addClass("k-loading")},100),l={},u=a.attr(f);e.ajax({type:"GET",cache:!1,url:u,dataType:"html",data:l,error:function(e,t){r.removeClass("k-loading"),o.trigger(_,{xhr:e,status:t})&&this.complete()},complete:function(){clearTimeout(s),r.removeClass("k-loading")},success:function(e){function r(){return{elements:n.get()}}try{o.angular("cleanup",r),n.html(e),o.angular("compile",r)}catch(a){var s=window.console;s&&s.error&&s.error(a.name+": "+a.message+" in "+u),this.error(this.xhr,"error")}o._toggleGroup(n,i),o.trigger(P,{item:t[0],contentElement:n[0]})}})},_triggerEvent:function(e,t){var n=this;return n.trigger(e,{item:t[0]})},_updateSelected:function(e){var t=this,n=t.element,i=e.parent(b),o=t._selected;o&&o.removeAttr(Y),t._selected=i.attr(Y,!0),n.find(U).removeClass(V),n.find("> ."+L+", .k-panel > ."+L).removeClass(L),e.addClass(V),e.parentsUntil(n,b).filter(":has(.k-header)").addClass(L),t._current(i[0]?i:null)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}})}});s(ee,{renderItem:function(e){e=s({panelBar:{},group:{}},e);var t=X.empty,n=e.item;return X.item(s(e,{image:n.imageUrl?X.image:t,sprite:n.spriteCssClass?X.sprite:t,itemWrapper:X.itemWrapper,renderContent:ee.renderContent,arrow:n.items||n.content||n.contentUrl?X.arrow:t,subGroup:ee.renderGroup},Z))},renderGroup:function(e){return X.group(s({renderItems:function(e){for(var t="",n=0,i=e.items,o=i?i.length:0,r=s({length:o},e.group);o>n;n++)t+=ee.renderItem(s(e,{group:r,item:s({index:n},i[n])}));return t}},e,Z))},renderContent:function(e){return X.content(s(e,Z))}}),o.ui.plugin(ee)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.progressbar.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r="horizontal",a="vertical",s=0,l=100,u=0,c=5,d="k-progressbar",p="k-progressbar-reverse",h="k-progressbar-indeterminate",f="k-complete",m="k-state-selected",g="k-progress-status",v="k-state-selected",_="k-state-default",b="k-state-disabled",w={VALUE:"value",PERCENT:"percent",CHUNK:"chunk"},k="change",y="complete",x="boolean",C=Math,T=e.extend,S=e.proxy,D=100,F=400,E=3,I={progressStatus:"<span class='k-progress-status-wrap'><span class='k-progress-status'></span></span>"},P=o.extend({init:function(e,t){var n=this;o.fn.init.call(this,e,t),t=n.options,n._progressProperty=t.orientation===r?"width":"height",n._fields(),t.value=n._validateValue(t.value),n._validateType(t.type),n._wrapper(),n._progressAnimation(),t.value!==t.min&&t.value!==!1&&n._updateProgress()},setOptions:function(e){var t=this;o.fn.setOptions.call(t,e),e.hasOwnProperty("reverse")&&t.wrapper.toggleClass("k-progressbar-reverse",e.reverse),e.hasOwnProperty("enable")&&t.enable(e.enable),t._progressAnimation(),t._validateValue(),t._updateProgress()},events:[k,y],options:{name:"ProgressBar",orientation:r,reverse:!1,min:s,max:l,value:u,enable:!0,type:w.VALUE,chunkCount:c,showStatus:!0,animation:{}},_fields:function(){var t=this;t._isStarted=!1,t.progressWrapper=t.progressStatus=e()},_validateType:function(i){var o=!1;if(e.each(w,function(e,n){return n===i?(o=!0,!1):t}),!o)throw Error(n.format("Invalid ProgressBar type '{0}'",i))},_wrapper:function(){var e,t=this,n=t.wrapper=t.element,i=t.options,o=i.orientation;n.addClass("k-widget "+d),n.addClass(d+"-"+(o===r?r:a)),i.enable===!1&&n.addClass(b),i.reverse&&n.addClass(p),i.value===!1&&n.addClass(h),i.type===w.CHUNK?t._addChunkProgressWrapper():i.showStatus&&(t.progressStatus=t.wrapper.prepend(I.progressStatus).find("."+g),e=i.value!==!1?i.value:i.min,t.progressStatus.text(i.type===w.VALUE?e:t._calculatePercentage(e).toFixed()+"%"))},value:function(e){return this._value(e)},_value:function(e){var n,i=this,o=i.options;return e===t?o.value:(typeof e!==x?(e=i._roundValue(e),isNaN(e)||(n=i._validateValue(e),n!==o.value&&(i.wrapper.removeClass(h),o.value=n,i._isStarted=!0,i._updateProgress()))):e||(i.wrapper.addClass(h),o.value=!1),t)},_roundValue:function(e){e=parseFloat(e);var t=C.pow(10,E);return C.floor(e*t)/t},_validateValue:function(e){var t=this,n=t.options;if(e!==!1){if(n.min>=e||e===!0)return n.min;if(e>=n.max)return n.max}else if(e===!1)return!1;return isNaN(t._roundValue(e))?n.min:e},_updateProgress:function(){var e=this,t=e.options,n=e._calculatePercentage();t.type===w.CHUNK?(e._updateChunks(n),e._onProgressUpdateAlways(t.value)):e._updateProgressWrapper(n)},_updateChunks:function(e){var t,n=this,i=n.options,o=i.chunkCount,s=parseInt(D/o*100,10)/100,l=parseInt(100*e,10)/100,u=C.floor(l/s);t=n.wrapper.find(i.orientation===r&&!i.reverse||i.orientation===a&&i.reverse?"li.k-item:lt("+u+")":"li.k-item:gt(-"+(u+1)+")"),n.wrapper.find("."+v).removeClass(v).addClass(_),t.removeClass(_).addClass(v)},_updateProgressWrapper:function(e){var t=this,n=t.options,i=t.wrapper.find("."+m),o=t._isStarted?t._animation.duration:0,r={};0===i.length&&t._addRegularProgressWrapper(),r[t._progressProperty]=e+"%",t.progressWrapper.animate(r,{duration:o,start:S(t._onProgressAnimateStart,t),progress:S(t._onProgressAnimate,t),complete:S(t._onProgressAnimateComplete,t,n.value),always:S(t._onProgressUpdateAlways,t,n.value)})},_onProgressAnimateStart:function(){this.progressWrapper.show()},_onProgressAnimate:function(e){var t,n=this,i=n.options,o=parseFloat(e.elem.style[n._progressProperty],10);i.showStatus&&(t=1e4/parseFloat(n.progressWrapper[0].style[n._progressProperty]),n.progressWrapper.find(".k-progress-status-wrap").css(n._progressProperty,t+"%")),i.type!==w.CHUNK&&98>=o&&n.progressWrapper.removeClass(f)},_onProgressAnimateComplete:function(e){var t,n=this,i=n.options,o=parseFloat(n.progressWrapper[0].style[n._progressProperty]);i.type!==w.CHUNK&&o>98&&n.progressWrapper.addClass(f),i.showStatus&&(t=i.type===w.VALUE?e:i.type==w.PERCENT?n._calculatePercentage(e).toFixed()+"%":C.floor(n._calculatePercentage(e))+"%",n.progressStatus.text(t)),e===i.min&&n.progressWrapper.hide()},_onProgressUpdateAlways:function(e){var t=this,n=t.options;t._isStarted&&t.trigger(k,{value:e}),e===n.max&&t._isStarted&&t.trigger(y,{value:n.max})},enable:function(e){var n=this,i=n.options;i.enable=t===e?!0:e,n.wrapper.toggleClass(b,!i.enable)},destroy:function(){var e=this;o.fn.destroy.call(e)},_addChunkProgressWrapper:function(){var e,t=this,n=t.options,i=t.wrapper,o=D/n.chunkCount,r="";for(1>=n.chunkCount&&(n.chunkCount=1),r+="<ul class='k-reset'>",e=n.chunkCount-1;e>=0;e--)r+="<li class='k-item k-state-default'></li>";
r+="</ul>",i.append(r).find(".k-item").css(t._progressProperty,o+"%").first().addClass("k-first").end().last().addClass("k-last"),t._normalizeChunkSize()},_normalizeChunkSize:function(){var e=this,t=e.options,n=e.wrapper.find(".k-item:last"),i=parseFloat(n[0].style[e._progressProperty]),o=D-t.chunkCount*i;o>0&&n.css(e._progressProperty,i+o+"%")},_addRegularProgressWrapper:function(){var t=this;t.progressWrapper=e("<div class='"+m+"'></div>").appendTo(t.wrapper),t.options.showStatus&&(t.progressWrapper.append(I.progressStatus),t.progressStatus=t.wrapper.find("."+g))},_calculateChunkSize:function(){var e=this,t=e.options.chunkCount,n=e.wrapper.find("ul.k-reset");return(parseInt(n.css(e._progressProperty),10)-(t-1))/t},_calculatePercentage:function(e){var n=this,i=n.options,o=e!==t?e:i.value,r=i.min,a=i.max;return n._onePercent=C.abs((a-r)/100),C.abs((o-r)/n._onePercent)},_progressAnimation:function(){var e=this,t=e.options,n=t.animation;e._animation=n===!1?{duration:0}:T({duration:F},t.animation)}});n.ui.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.responsivepanel.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=e.proxy,i=".kendoResponsivePanel",o="open",r="close",a="click"+i+" touchstart"+i,s=kendo.ui.Widget,l=s.extend({init:function(t,o){s.fn.init.call(this,t,o),this._guid="_"+kendo.guid(),this._toggleHandler=n(this._toggleButtonClick,this),this._closeHandler=n(this._close,this),e(document.documentElement).on(a,this.options.toggleButton,this._toggleHandler),this._registerBreakpoint(),this.element.addClass("k-rpanel k-rpanel-"+this.options.orientation+" "+this._guid),this._resizeHandler=n(this.resize,this,!0),e(window).on("resize"+i,this._resizeHandler)},_mediaQuery:"@media (max-width: #= breakpoint-1 #px) {.#= guid #.k-rpanel-animate.k-rpanel-left,.#= guid #.k-rpanel-animate.k-rpanel-right {-webkit-transition: -webkit-transform .2s ease-out;-ms-transition: -ms-transform .2s ease-out;transition: transform .2s ease-out;} .#= guid #.k-rpanel-top {overflow: hidden;}.#= guid #.k-rpanel-animate.k-rpanel-top {-webkit-transition: max-height .2s linear;-ms-transition: max-height .2s linear;transition: max-height .2s linear;}} @media (min-width: #= breakpoint #px) {#= toggleButton # { display: none; } .#= guid #.k-rpanel-left { float: left; } .#= guid #.k-rpanel-right { float: right; } .#= guid #.k-rpanel-left, .#= guid #.k-rpanel-right {position: relative;-webkit-transform: translateX(0);-ms-transform: translateX(0);transform: translateX(0);-webkit-transform: translateX(0) translateZ(0);-ms-transform: translateX(0) translateZ(0);transform: translateX(0) translateZ(0);} .#= guid #.k-rpanel-top { max-height: none; }}",_registerBreakpoint:function(){var e=this.options;this._registerStyle(kendo.template(this._mediaQuery)({breakpoint:e.breakpoint,toggleButton:e.toggleButton,guid:this._guid}))},_registerStyle:function(t){var n=e("head,body")[0],i=document.createElement("style");n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))},options:{name:"ResponsivePanel",orientation:"left",toggleButton:".k-rpanel-toggle",breakpoint:640,autoClose:!0},events:[o,r],_resize:function(){this.element.removeClass("k-rpanel-animate k-rpanel-expanded"),e(document.documentElement).off(a,this._closeHandler)},_toggleButtonClick:function(e){e.preventDefault(),this.element.hasClass("k-rpanel-expanded")?this.close():this.open()},open:function(){this.trigger(o)||(this.element.addClass("k-rpanel-animate k-rpanel-expanded"),this.options.autoClose&&e(document.documentElement).on(a,this._closeHandler))},close:function(){this.trigger(r)||(this.element.addClass("k-rpanel-animate").removeClass("k-rpanel-expanded"),e(document.documentElement).off(a,this._closeHandler))},_close:function(t){var n=t.isDefaultPrevented(),i=e(t.target).closest(this.options.toggleButton+",.k-rpanel");i.length||n||this.close()},destroy:function(){s.fn.destroy.call(this),e(window).off("resize"+i,this._resizeHandler),e(document.documentElement).off(a,this._closeHandler)}});kendo.ui.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.tabstrip.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(t){t.children(g).addClass(T),t.children("a").addClass(w).children(g).addClass(T),t.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(O),t.filter("li[disabled]").addClass(H).removeAttr("disabled"),t.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(z+" "+L),t.attr("role","tab"),t.filter("."+z).attr("aria-selected",!0),t.each(function(){var t=e(this);t.children("."+w).length||t.contents().filter(function(){return!(this.nodeName.match(f)||3==this.nodeType&&!c(this.nodeValue))}).wrapAll("<span class='"+w+"'/>")})}function i(e){var t=e.children(".k-item");t.filter(".k-first:not(:first-child)").removeClass(S),t.filter(".k-last:not(:last-child)").removeClass(k),t.filter(":first-child").addClass(S),t.filter(":last-child").addClass(k)}function o(e,t){return"<span class='k-button k-button-icon k-button-bare k-tabstrip-"+e+"' unselectable='on'><span class='k-icon "+t+"'></span></span>"}var r=window.kendo,a=r.ui,s=r.keys,l=e.map,u=e.each,c=e.trim,d=e.extend,p=r.template,h=a.Widget,f=/^(a|div)$/i,m=".kendoTabStrip",g="img",v="href",_="prev",b="show",w="k-link",k="k-last",y="click",x="error",C=":empty",T="k-image",S="k-first",D="select",F="activate",E="k-content",I="contentUrl",P="mouseenter",A="mouseleave",M="contentLoad",H="k-state-disabled",O="k-state-default",z="k-state-active",V="k-state-focused",B="k-state-hover",L="k-tab-on-top",R=".k-item:not(."+H+")",N=".k-tabstrip-items > "+R+":not(."+z+")",W={content:p("<div class='k-content'#= contentAttributes(data) # role='tabpanel'>#= content(item) #</div>"),itemWrapper:p("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:p("<li class='#= wrapperCssClass(group, item) #' role='tab' #=item.active ? \"aria-selected='true'\" : ''#>#= itemWrapper(data) #</li>"),image:p("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:p("<span class='k-sprite #= spriteCssClass #'></span>"),empty:p("")},U={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},contentAttributes:function(e){return e.active!==!0?" style='display:none' aria-hidden='true' aria-expanded='false'":""},content:function(e){return e.content?e.content:e.contentUrl?"":"&nbsp;"},contentUrl:function(e){return e.contentUrl?r.attr("content-url")+'="'+e.contentUrl+'"':""}},j=h.extend({init:function(t,n){var i,o,a,s=this;h.fn.init.call(s,t,n),s._animations(s.options),n=s.options,s._wrapper(),s._isRtl=r.support.isRtl(s.wrapper),s._tabindex(),s._updateClasses(),s._dataSource(),n.dataSource&&s.dataSource.fetch(),s._tabPosition(),s._scrollable(),s.options.contentUrls&&s.wrapper.find(".k-tabstrip-items > .k-item").each(function(t,n){e(n).find(">."+w).data(I,s.options.contentUrls[t])}),s.wrapper.on(P+m+" "+A+m,N,s._toggleHover).on("focus"+m,e.proxy(s._active,s)).on("blur"+m,function(){s._current(null)}),s._keyDownProxy=e.proxy(s._keydown,s),n.navigatable&&s.wrapper.on("keydown"+m,s._keyDownProxy),s.options.value&&(i=s.options.value),s.wrapper.children(".k-tabstrip-items").on(y+m,".k-state-disabled .k-link",!1).on(y+m," > "+R,function(t){var n,i=s.wrapper[0];if(i!==document.activeElement)if(n=r.support.browser.msie)try{i.setActive()}catch(o){i.focus()}else i.focus();s._click(e(t.currentTarget))&&t.preventDefault()}),o=s.tabGroup.children("li."+z),a=s.contentHolder(o.index()),o[0]&&a.length>0&&0===a[0].childNodes.length&&s.activateTab(o.eq(0)),s.element.attr("role","tablist"),s.element[0].id&&(s._ariaId=s.element[0].id+"_ts_active"),s.value(i),r.notify(s)},_active:function(){var e=this.tabGroup.children().filter("."+z);e=e[0]?e:this._endItem("first"),e[0]&&this._current(e)},_endItem:function(e){return this.tabGroup.children(R)[e]()},_item:function(e,t){var n;return n=t===_?"last":"first",e?(e=e[t](),e[0]||(e=this._endItem(n)),e.hasClass(H)&&(e=this._item(e,t)),e):this._endItem(n)},_current:function(e){var n=this,i=n._focused,o=n._ariaId;return e===t?i:(i&&(i[0].id===o&&i.removeAttr("id"),i.removeClass(V)),e&&(e.hasClass(z)||e.addClass(V),n.element.removeAttr("aria-activedescendant"),o=e[0].id||o,o&&(e.attr("id",o),n.element.attr("aria-activedescendant",o))),n._focused=e,t)},_keydown:function(e){var n,i=this,o=e.keyCode,r=i._current(),a=i._isRtl;if(e.target==e.currentTarget){if(o==s.DOWN||o==s.RIGHT)n=a?_:"next";else if(o==s.UP||o==s.LEFT)n=a?"next":_;else if(o==s.ENTER||o==s.SPACEBAR)i._click(r),e.preventDefault();else{if(o==s.HOME)return i._click(i._endItem("first")),e.preventDefault(),t;if(o==s.END)return i._click(i._endItem("last")),e.preventDefault(),t}n&&(i._click(i._item(r,n)),e.preventDefault())}},_dataSource:function(){var t=this;t.dataSource&&t._refreshHandler?t.dataSource.unbind("change",t._refreshHandler):t._refreshHandler=e.proxy(t.refresh,t),t.dataSource=r.data.DataSource.create(t.options.dataSource).bind("change",t._refreshHandler)},setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource(),t.dataSource.fetch()},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{effects:{}}})},refresh:function(e){var t,n,i,o,a=this,s=a.options,l=r.getter(s.dataTextField),u=r.getter(s.dataContentField),c=r.getter(s.dataContentUrlField),d=r.getter(s.dataImageUrlField),p=r.getter(s.dataUrlField),h=r.getter(s.dataSpriteCssClass),f=[],m=a.dataSource.view();for(e=e||{},i=e.action,i&&(m=e.items),t=0,o=m.length;o>t;t++)n={text:l(m[t])},s.dataContentField&&(n.content=u(m[t])),s.dataContentUrlField&&(n.contentUrl=c(m[t])),s.dataUrlField&&(n.url=p(m[t])),s.dataImageUrlField&&(n.imageUrl=d(m[t])),s.dataSpriteCssClass&&(n.spriteCssClass=h(m[t])),f[t]=n;if("add"==e.action)e.index<a.tabGroup.children().length?a.insertBefore(f,a.tabGroup.children().eq(e.index)):a.append(f);else if("remove"==e.action)for(t=0;m.length>t;t++)a.remove(e.index);else"itemchange"==e.action?(t=a.dataSource.view().indexOf(m[0]),e.field===s.dataTextField&&a.tabGroup.children().eq(t).find(".k-link").text(m[0].get(e.field))):(a.trigger("dataBinding"),a.remove("li"),a.append(f),a.trigger("dataBound"))},value:function(n){var i=this;return n===t?i.select().text():(n!=i.value()&&i.tabGroup.children().each(function(){e.trim(e(this).text())==n&&i.select(this)}),t)},items:function(){return this.tabGroup[0].children},setOptions:function(e){var t=this,n=t.options.animation;t._animations(e),e.animation=d(!0,n,e.animation),e.navigatable?t.wrapper.on("keydown"+m,t._keyDownProxy):t.wrapper.off("keydown"+m,t._keyDownProxy),h.fn.setOptions.call(t,e)},events:[D,F,b,x,M,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",tabPosition:"top",animation:{open:{effects:"expand:vertical fadeIn",duration:200},close:{duration:200}},collapsible:!1,navigatable:!0,contentUrls:!1,scrollable:{distance:200}},destroy:function(){var e=this,t=e.scrollWrap;h.fn.destroy.call(e),e._refreshHandler&&e.dataSource.unbind("change",e._refreshHandler),e.wrapper.off(m),e.wrapper.children(".k-tabstrip-items").off(m),e._scrollableModeActive&&(e._scrollPrevButton.off().remove(),e._scrollNextButton.off().remove()),r.destroy(e.wrapper),t.children(".k-tabstrip").unwrap()},select:function(t){var n=this;return 0===arguments.length?n.tabGroup.children("li."+z):(isNaN(t)||(t=n.tabGroup.children().get(t)),t=n.tabGroup.find(t),e(t).each(function(t,i){i=e(i),i.hasClass(z)||n.trigger(D,{item:i[0],contentElement:n.contentHolder(i.index())[0]})||n.activateTab(i)}),n)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},reload:function(t){t=this.tabGroup.find(t);var n=this;return t.each(function(){var t=e(this),i=t.find("."+w).data(I),o=n.contentHolder(t.index());i&&n.ajaxRequest(t,o,null,i)}),n},append:function(e){var t=this,n=t._create(e);return u(n.tabs,function(e){var i=n.contents[e];t.tabGroup.append(this),"bottom"==t.options.tabPosition?t.tabGroup.before(i):t._scrollableModeActive?t._scrollPrevButton.before(i):t.wrapper.append(i),t.angular("compile",function(){return{elements:[i]}})}),i(t.tabGroup),t._updateContentElements(),t.resize(!0),t},insertBefore:function(t,n){n=this.tabGroup.find(n);var o=this,r=o._create(t),a=e(o.contentElement(n.index()));return u(r.tabs,function(e){var t=r.contents[e];n.before(this),a.before(t),o.angular("compile",function(){return{elements:[t]}})}),i(o.tabGroup),o._updateContentElements(),o.resize(!0),o},insertAfter:function(t,n){n=this.tabGroup.find(n);var o=this,r=o._create(t),a=e(o.contentElement(n.index()));return u(r.tabs,function(e){var t=r.contents[e];n.after(this),a.after(t),o.angular("compile",function(){return{elements:[t]}})}),i(o.tabGroup),o._updateContentElements(),o.resize(!0),o},remove:function(t){var n,i=this,o=typeof t;return"string"===o?t=i.tabGroup.find(t):"number"===o&&(t=i.tabGroup.children().eq(t)),n=t.map(function(){var t=i.contentElement(e(this).index());return r.destroy(t),t}),t.remove(),n.remove(),i._updateContentElements(),i.resize(!0),i},_create:function(i){var o,r,a,s=e.isPlainObject(i),u=this;return s||e.isArray(i)?(i=e.isArray(i)?i:[i],o=l(i,function(t,n){return e(j.renderItem({group:u.tabGroup,item:d(t,{index:n})}))}),r=l(i,function(n,i){return"string"==typeof n.content||n.contentUrl?e(j.renderContent({item:d(n,{index:i})})):t})):(o="string"==typeof i&&"<"!=i[0]?u.element.find(i):e(i),r=e(),o.each(function(){if(a=e("<div class='"+E+"'/>"),/k-tabstrip-items/.test(this.parentNode.className)){var t=parseInt(this.getAttribute("aria-controls").replace(/^.*-/,""),10)-1;a=e(u.contentElement(t))}r=r.add(a)}),n(o)),{tabs:o,contents:r}},_toggleDisabled:function(t,n){t=this.tabGroup.find(t),t.each(function(){e(this).toggleClass(O,n).toggleClass(H,!n)})},_updateClasses:function(){var o,r,a,s=this;s.wrapper.addClass("k-widget k-header k-tabstrip"),s.tabGroup=s.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),s.tabGroup[0]||(s.tabGroup=e("<ul class='k-tabstrip-items k-reset'/>").appendTo(s.wrapper)),o=s.tabGroup.find("li").addClass("k-item"),o.length&&(r=o.filter("."+z).index(),a=r>=0?r:t,s.tabGroup.contents().filter(function(){return 3==this.nodeType&&!c(this.nodeValue)}).remove()),r>=0&&o.eq(r).addClass(L),s.contentElements=s.wrapper.children("div"),s.contentElements.addClass(E).eq(a).addClass(z).css({display:"block"}),o.length&&(n(o),i(s.tabGroup),s._updateContentElements())},_updateContentElements:function(){var t=this,n=t.options.contentUrls||[],i=t.tabGroup.find(".k-item"),o=(t.element.attr("id")||r.guid())+"-",a=t.wrapper.children("div");a.length&&i.length>a.length?(a.each(function(e){var t=parseInt(this.id.replace(o,""),10),n=i.filter("[aria-controls="+o+t+"]"),r=o+(e+1);n.data("aria",r),this.setAttribute("id",r)}),i.each(function(){var t=e(this);this.setAttribute("aria-controls",t.data("aria")),t.removeData("aria")})):i.each(function(i){var r=a.eq(i),s=o+(i+1);this.setAttribute("aria-controls",s),!r.length&&n[i]?e("<div class='"+E+"'/>").appendTo(t.wrapper).attr("id",s):(r.attr("id",s),e(this).children(".k-loading")[0]||n[i]||e("<span class='k-loading k-complete'/>").prependTo(this)),r.attr("role","tabpanel"),r.filter(":not(."+z+")").attr("aria-hidden",!0).attr("aria-expanded",!1),r.filter("."+z).attr("aria-expanded",!0)}),t.contentElements=t.contentAnimators=t.wrapper.children("div"),t.tabsHeight=t.tabGroup.outerHeight()+parseInt(t.wrapper.css("border-top-width"),10)+parseInt(t.wrapper.css("border-bottom-width"),10),r.kineticScrollNeeded&&r.mobile.ui.Scroller&&(r.touchScroller(t.contentElements),t.contentElements=t.contentElements.children(".km-scroll-container"))},_wrapper:function(){var e=this;e.wrapper=e.element.is("ul")?e.element.wrapAll("<div />").parent():e.element,e.scrollWrap=e.wrapper.parent(".k-tabstrip-wrapper"),e.scrollWrap[0]||(e.scrollWrap=e.wrapper.wrapAll("<div class='k-tabstrip-wrapper' />").parent())},_tabPosition:function(){var e=this,t=e.options.tabPosition;e.wrapper.addClass("k-floatwrap k-tabstrip-"+t),"bottom"==t&&e.tabGroup.appendTo(e.wrapper),e.resize(!0)},_setContentElementsDimensions:function(){var e,t,n,i,o,r,a=this,s=a.options.tabPosition;("left"==s||"right"==s)&&(e=a.wrapper.children(".k-content"),t=e.filter(":visible"),n="margin-"+s,i=a.tabGroup,o=i.outerWidth(),r=Math.ceil(i.height())-parseInt(t.css("padding-top"),10)-parseInt(t.css("padding-bottom"),10)-parseInt(t.css("border-top-width"),10)-parseInt(t.css("border-bottom-width"),10),setTimeout(function(){e.css(n,o).css("min-height",r)}))},_resize:function(){this._setContentElementsDimensions(),this._scrollable()},_sizeScrollWrap:function(e){var t,n;e.is(":visible")&&(t=this.options.tabPosition,n=Math.floor(e.outerHeight(!0))+("left"===t||"right"===t?2:this.tabsHeight),this.scrollWrap.css("height",n).css("height"))},_toggleHover:function(t){e(t.currentTarget).toggleClass(B,t.type==P)},_click:function(e){var t,n,i=this,o=e.find("."+w),r=o.attr(v),a=i.options.collapsible,s=i.contentHolder(e.index());if(e.closest(".k-widget")[0]==i.wrapper[0]){if(e.is("."+H+(a?"":",."+z)))return!0;if(n=o.data(I)||r&&("#"==r.charAt(r.length-1)||-1!=r.indexOf("#"+i.element[0].id+"-")),t=!r||n,i.tabGroup.children("[data-animating]").length)return t;if(i.trigger(D,{item:e[0],contentElement:s[0]}))return!0;if(t!==!1)return a&&e.is("."+z)?(i.deactivateTab(e),!0):(i.activateTab(e)&&(t=!0),t)}},_scrollable:function(){var e,t,n,i,a=this,s=a.options;a._scrollableAllowed()&&(a.wrapper.addClass("k-tabstrip-scrollable"),e=a.wrapper[0].offsetWidth,t=a.tabGroup[0].scrollWidth,t>e&&!a._scrollableModeActive?(a._nowScrollingTabs=!1,a._isRtl=r.support.isRtl(a.element),a.wrapper.append(o("prev","k-i-arrow-w")+o("next","k-i-arrow-e")),n=a._scrollPrevButton=a.wrapper.children(".k-tabstrip-prev"),i=a._scrollNextButton=a.wrapper.children(".k-tabstrip-next"),a.tabGroup.css({marginLeft:n.outerWidth()+9,marginRight:i.outerWidth()+12}),n.on("mousedown"+m,function(){a._nowScrollingTabs=!0,a._scrollTabsByDelta(s.scrollable.distance*(a._isRtl?1:-1))}),i.on("mousedown"+m,function(){a._nowScrollingTabs=!0,a._scrollTabsByDelta(s.scrollable.distance*(a._isRtl?-1:1))}),n.add(i).on("mouseup"+m,function(){a._nowScrollingTabs=!1}),a._scrollableModeActive=!0,a._toggleScrollButtons()):a._scrollableModeActive&&e>=t?(a._scrollableModeActive=!1,a.wrapper.removeClass("k-tabstrip-scrollable"),a._scrollPrevButton.off().remove(),a._scrollNextButton.off().remove(),a.tabGroup.css({marginLeft:"",marginRight:""})):a._scrollableModeActive?a._toggleScrollButtons():a.wrapper.removeClass("k-tabstrip-scrollable"))},_scrollableAllowed:function(){var e=this.options;return e.scrollable&&!isNaN(e.scrollable.distance)&&("top"==e.tabPosition||"bottom"==e.tabPosition)},_scrollTabsToItem:function(e){var t,n=this,i=n.tabGroup,o=i.scrollLeft(),r=e.outerWidth(),a=n._isRtl?e.position().left:e.position().left-i.children().first().position().left,s=i[0].offsetWidth,l=Math.ceil(parseFloat(i.css("padding-left")));n._isRtl?0>a?t=o+a-(s-o)-l:a+r>s&&(t=o+a-r+2*l):a+r>o+s?t=a+r-s+2*l:o>a&&(t=a-l),i.finish().animate({scrollLeft:t},"fast","linear",function(){n._toggleScrollButtons()})},_scrollTabsByDelta:function(e){var t=this,n=t.tabGroup,i=n.scrollLeft();n.finish().animate({scrollLeft:i+e},"fast","linear",function(){t._nowScrollingTabs?t._scrollTabsByDelta(e):t._toggleScrollButtons()})},_toggleScrollButtons:function(){var e=this,t=e.tabGroup,n=t.scrollLeft();e._scrollPrevButton.toggle(e._isRtl?t[0].scrollWidth-t[0].offsetWidth-1>n:0!==n),e._scrollNextButton.toggle(e._isRtl?0!==n:t[0].scrollWidth-t[0].offsetWidth-1>n)},deactivateTab:function(e){var t=this,n=t.options.animation,i=n.open,o=d({},n.close),a=o&&"effects"in o;e=t.tabGroup.find(e),o=d(a?o:d({reverse:!0},i),{hide:!0}),r.size(i.effects)?(e.kendoAddClass(O,{duration:i.duration}),e.kendoRemoveClass(z,{duration:i.duration})):(e.addClass(O),e.removeClass(z)),e.removeAttr("aria-selected"),t.contentAnimators.filter("."+z).kendoStop(!0,!0).kendoAnimate(o).removeClass(z).attr("aria-hidden",!0)},activateTab:function(e){var t,n,i,o,a,s,l,u,c,p,h,f,m,g,v;if(!this.tabGroup.children("[data-animating]").length)return e=this.tabGroup.find(e),t=this,n=t.options.animation,i=n.open,o=d({},n.close),a=o&&"effects"in o,s=e.parent().children(),l=s.filter("."+z),u=s.index(e),o=d(a?o:d({reverse:!0},i),{hide:!0}),r.size(i.effects)?(l.kendoRemoveClass(z,{duration:o.duration}),e.kendoRemoveClass(B,{duration:o.duration})):(l.removeClass(z),e.removeClass(B)),c=t.contentAnimators,t.inRequest&&(t.xhr.abort(),t.inRequest=!1),0===c.length?(t.tabGroup.find("."+L).removeClass(L),e.addClass(L).css("z-index"),e.addClass(z),t._current(e),t.trigger("change"),t._scrollableModeActive&&t._scrollTabsToItem(e),!1):(p=c.filter("."+z),h=t.contentHolder(u),f=h.closest(".k-content"),t.tabsHeight=t.tabGroup.outerHeight()+parseInt(t.wrapper.css("border-top-width"),10)+parseInt(t.wrapper.css("border-bottom-width"),10),t._sizeScrollWrap(p),0===h.length?(p.removeClass(z).attr("aria-hidden",!0).kendoStop(!0,!0).kendoAnimate(o),!1):(e.attr("data-animating",!0),m=(e.children("."+w).data(I)||!1)&&h.is(C),g=function(){t.tabGroup.find("."+L).removeClass(L),e.addClass(L).css("z-index"),r.size(i.effects)?(l.kendoAddClass(O,{duration:i.duration}),e.kendoAddClass(z,{duration:i.duration})):(l.addClass(O),e.addClass(z)),l.removeAttr("aria-selected"),e.attr("aria-selected",!0),t._current(e),t._sizeScrollWrap(f),f.addClass(z).removeAttr("aria-hidden").kendoStop(!0,!0).attr("aria-expanded",!0).kendoAnimate(d({init:function(){t.trigger(b,{item:e[0],contentElement:h[0]}),r.resize(h)}},i,{complete:function(){e.removeAttr("data-animating"),t.trigger(F,{item:e[0],contentElement:h[0]}),r.resize(h),t.scrollWrap.css("height","").css("height")}}))},v=function(){m?(e.removeAttr("data-animating"),t.ajaxRequest(e,h,function(){e.attr("data-animating",!0),g(),t.trigger("change")})):(g(),t.trigger("change")),t._scrollableModeActive&&t._scrollTabsToItem(e)},p.removeClass(z),p.attr("aria-hidden",!0),p.attr("aria-expanded",!1),p.length?p.kendoStop(!0,!0).kendoAnimate(d({complete:v},o)):v(),!0))},contentElement:function(e){var n,i,o,a;if(isNaN(e-0))return t;if(n=this.contentElements&&this.contentElements[0]&&!r.kineticScrollNeeded?this.contentElements:this.contentAnimators,e=n&&0>e?n.length+e:e,i=RegExp("-"+(e+1)+"$"),n)for(o=0,a=n.length;a>o;o++)if(i.test(n.eq(o).closest(".k-content")[0].id))return n[o];return t},contentHolder:function(t){var n=e(this.contentElement(t)),i=n.children(".km-scroll-container");return r.support.touch&&i[0]?i:n},ajaxRequest:function(t,n,i,o){var a,s,l,u,c,d,p,h,f;t=this.tabGroup.find(t),a=this,s=e.ajaxSettings.xhr,l=t.find("."+w),u={},c=t.width()/2,d=!1,p=t.find(".k-loading").removeClass("k-complete"),p[0]||(p=e("<span class='k-loading'/>").prependTo(t)),h=2*c-p.width(),f=function(){p.animate({marginLeft:(parseInt(p.css("marginLeft"),10)||0)<c?h:0},500,f)},r.support.browser.msie&&10>r.support.browser.version&&setTimeout(f,40),o=o||l.data(I)||l.attr(v),a.inRequest=!0,a.xhr=e.ajax({type:"GET",cache:!1,url:o,dataType:"html",data:u,xhr:function(){var t=this,n=s(),i=t.progressUpload?"progressUpload":t.progress?"progress":!1;return n&&e.each([n,n.upload],function(){this.addEventListener&&this.addEventListener("progress",function(e){i&&t[i](e)},!1)}),t.noProgress=!(window.XMLHttpRequest&&"upload"in new XMLHttpRequest),n},progress:function(e){if(e.lengthComputable){var t=parseInt(e.loaded/e.total*100,10)+"%";p.stop(!0).addClass("k-progress").css({width:t,marginLeft:0})}},error:function(e,t){a.trigger("error",{xhr:e,status:t})&&this.complete()},stopProgress:function(){clearInterval(d),p.stop(!0).addClass("k-progress")[0].style.cssText=""},complete:function(e){a.inRequest=!1,this.noProgress?setTimeout(this.stopProgress,500):this.stopProgress(),"abort"==e.statusText&&p.remove()},success:function(e){var s,l,u;p.addClass("k-complete");try{s=this,l=10,s.noProgress&&(p.width(l+"%"),d=setInterval(function(){s.progress({lengthComputable:!0,loaded:Math.min(l,100),total:100}),l+=10},40)),a.angular("cleanup",function(){return{elements:n.get()}}),r.destroy(n),n.html(e)}catch(c){u=window.console,u&&u.error&&u.error(c.name+": "+c.message+" in "+o),this.error(this.xhr,"error")}i&&i.call(a,n),a.angular("compile",function(){return{elements:n.get()}}),a.trigger(M,{item:t[0],contentElement:n[0]})}})}});d(j,{renderItem:function(e){e=d({tabStrip:{},group:{}},e);var t=W.empty,n=e.item;return W.item(d(e,{image:n.imageUrl?W.image:t,sprite:n.spriteCssClass?W.sprite:t,itemWrapper:W.itemWrapper},U))},renderContent:function(e){return W.content(d(e,U))}}),r.ui.plugin(j)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.timepicker.min",["kendo.popup.min"],e)}(function(){return function(e,t){function n(e,t,n){var i,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-o,e.setTime(e.getTime()+i*M))}function i(){var e=new $,t=new $(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new $(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function o(e){return 60*e.getHours()*M+e.getMinutes()*M+1e3*e.getSeconds()+e.getMilliseconds()}function r(e,t,n){var i,r=o(t),a=o(n);return e&&r!=a?(i=o(e),r>i&&(i+=H),r>a&&(a+=H),i>=r&&a>=i):!0}function a(e){var t=e.parseFormats;e.format=f(e.format||c.getCulture(e.culture).calendars.standard.patterns.t),t=U(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}var l,u,c=window.kendo,d=c.keys,p=c.parseDate,h=c._activeElement,f=c._extractFormat,m=c.support,g=m.browser,v=c.ui,_=v.Widget,b="open",w="close",k="change",y=".kendoTimePicker",x="click"+y,C="k-state-default",T="disabled",S="readonly",D="li",F="<span/>",E="k-state-focused",I="k-state-hover",P="mouseenter"+y+" mouseleave"+y,A="mousedown"+y,M=6e4,H=864e5,O="k-state-selected",z="k-state-disabled",V="aria-selected",B="aria-expanded",L="aria-hidden",R="aria-disabled",N="aria-activedescendant",W="id",U=e.isArray,j=e.extend,q=e.proxy,$=Date,G=new $;G=new $(G.getFullYear(),G.getMonth(),G.getDate(),0,0,0),l=function(t){var n=this,i=t.id;n.options=t,n._dates=[],n.ul=e('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:m.kineticScrollNeeded?"":"auto"}).on(x,D,q(n._click,n)).on("mouseenter"+y,D,function(){e(this).addClass(I)}).on("mouseleave"+y,D,function(){e(this).removeClass(I)}),n.list=e("<div class='k-list-container k-list-scroller' unselectable='on'/>").append(n.ul).on(A,s),i&&(n._timeViewID=i+"_timeview",n._optionID=i+"_option_selected",n.ul.attr(W,n._timeViewID)),n._popup(),n._heightHandler=q(n._height,n),n.template=c.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})},l.prototype={current:function(n){var i=this,o=i.options.active;return n===t?i._current:(i._current&&i._current.removeClass(O).removeAttr(V).removeAttr(W),n&&(n=e(n).addClass(O).attr(W,i._optionID).attr(V,!0),i.scroll(n[0])),i._current=n,o&&o(n),t)},close:function(){this.popup.close()},destroy:function(){var e=this;e.ul.off(y),e.list.off(y),e.popup.destroy()},open:function(){var e=this;e.ul[0].firstChild||e.bind(),e.popup.open(),e._current&&e.scroll(e._current[0])},dataBind:function(e){for(var t,n=this,i=n.options,o=i.format,a=c.toString,s=n.template,l=e.length,u=0,d="";l>u;u++)t=e[u],r(t,i.min,i.max)&&(d+=s(a(t,o,i.culture)));n._html(d)},refresh:function(){var e,t,r,a=this,s=a.options,l=s.format,u=i(),d=0>u,p=s.min,h=s.max,f=o(p),m=o(h),g=s.interval*M,v=c.toString,_=a.template,b=new $(+p),w=b.getDate(),k=0,y="";for(r=d?(H+u*M)/g:H/g,f!=m&&(f>m&&(m+=H),r=(m-f)/g+1),t=parseInt(r,10);r>k;k++)k&&n(b,g,d),m&&t==k&&(e=o(b),w<b.getDate()&&(e+=H),e>m&&(b=new $(+h))),a._dates.push(o(b)),y+=_(v(b,l,s.culture));a._html(y)},bind:function(){var e=this,t=e.options.dates;t&&t[0]?e.dataBind(t):e.refresh()},_html:function(e){var t=this;t.ul[0].innerHTML=e,t.popup.unbind(b,t._heightHandler),t.popup.one(b,t._heightHandler),t.current(null),t.select(t._value)},scroll:function(e){if(e){var t=this.list[0],n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i;o>n?o=n:a>o+r&&(o=a-r),t.scrollTop=o}},select:function(t){var n,i=this,o=i.options,r=i._current;t instanceof Date&&(t=c.toString(t,o.format,o.culture)),"string"==typeof t&&(r&&r.text()===t?t=r:(t=e.grep(i.ul[0].childNodes,function(e){return(e.textContent||e.innerText)==t}),t=t[0]?t:null)),n=i._distinctSelection(t),i.current(n)},_distinctSelection:function(t){var n,i,r=this;return t&&t.length>1&&(n=o(r._value),i=e.inArray(n,r._dates),t=r.ul.children()[i]),t},setOptions:function(e){var t=this.options;e.min=p(e.min),e.max=p(e.max),this.options=j(t,e,{active:t.active,change:t.change,close:t.close,open:t.open}),this.bind()},toggle:function(){var e=this;e.popup.visible()?e.close():e.open()},value:function(e){var t=this;t._value=e,t.ul[0].firstChild&&t.select(e)},_click:function(t){var n=this,i=e(t.currentTarget),o=i.text(),r=n.options.dates;r&&r.length>0&&(o=r[i.index()]),t.isDefaultPrevented()||(n.select(i),n.options.change(o,!0),n.close())},_height:function(){var e=this,t=e.list,n=t.parent(".k-animation-container"),i=e.options.height;e.ul[0].children.length&&t.add(n).show().height(e.ul[0].scrollHeight>i?i:"auto").hide()},_parse:function(e){var t=this,n=t.options,i=t._value||G;return e instanceof $?e:(e=p(e,n.parseFormats,n.culture),e&&(e=new $(i.getFullYear(),i.getMonth(),i.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),e)},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,o=this.options.anchor;(n.data("width")||!i)&&(e=window.getComputedStyle?window.getComputedStyle(o[0],null):0,t=e?parseFloat(e.width):o.outerWidth(),e&&(g.mozilla||g.msie)&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i=t-(n.outerWidth()-n.width()),n.css({fontFamily:o.css("font-family"),width:i}).data("width",i))},_popup:function(){var e=this,t=e.list,n=e.options,i=n.anchor;e.popup=new v.Popup(t,j(n.popup,{anchor:i,open:n.open,close:n.close,animation:n.animation,isRtl:m.isRtl(n.anchor)}))},move:function(e){var n=this,i=e.keyCode,o=n.ul[0],r=n._current,a=i===d.DOWN;if(i===d.UP||a){if(e.altKey)return n.toggle(a),t;r=a?r?r[0].nextSibling:o.firstChild:r?r[0].previousSibling:o.lastChild,r&&n.select(r),n.options.change(n._current.text()),e.preventDefault()}else(i===d.ENTER||i===d.TAB||i===d.ESC)&&(e.preventDefault(),r&&n.options.change(r.text(),!0),n.close())}},l.getMilliseconds=o,c.TimeView=l,u=_.extend({init:function(t,n){var i,o,r,s=this;_.fn.init.call(s,t,n),t=s.element,n=s.options,n.min=p(t.attr("min"))||p(n.min),n.max=p(t.attr("max"))||p(n.max),a(n),s._initialOptions=j({},n),s._wrapper(),s.timeView=o=new l(j({},n,{id:t.attr(W),anchor:s.wrapper,format:n.format,change:function(e,n){n?s._change(e):t.val(e)},open:function(e){s.timeView._adjustListWidth(),s.trigger(b)?e.preventDefault():(t.attr(B,!0),i.attr(L,!1))},close:function(e){s.trigger(w)?e.preventDefault():(t.attr(B,!1),i.attr(L,!0))},active:function(e){t.removeAttr(N),e&&t.attr(N,o._optionID)}})),i=o.ul,s._icon(),s._reset();try{t[0].setAttribute("type","text")}catch(u){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":o._timeViewID}),r=t.is("[disabled]")||e(s.element).parents("fieldset").is(":disabled"),
r?s.enable(!1):s.readonly(t.is("[readonly]")),s._old=s._update(n.value||s.element.val()),s._oldText=t.val(),c.notify(s)},options:{name:"TimePicker",min:G,max:G,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[b,w,k],setOptions:function(e){var t=this,n=t._value;_.fn.setOptions.call(t,e),e=t.options,a(e),t.timeView.setOptions(e),n&&t.element.val(c.toString(n,e.format,e.culture))},dataBind:function(e){U(e)&&this.timeView.dataBind(e)},_editable:function(e){var t=this,n=e.disable,i=e.readonly,o=t._arrow.off(y),r=t.element.off(y),a=t._inputWrapper.off(y);i||n?(a.addClass(n?z:C).removeClass(n?C:z),r.attr(T,n).attr(S,i).attr(R,n)):(a.addClass(C).removeClass(z).on(P,t._toggleHover),r.removeAttr(T).removeAttr(S).attr(R,!1).on("keydown"+y,q(t._keydown,t)).on("focusout"+y,q(t._blur,t)).on("focus"+y,function(){t._inputWrapper.addClass(E)}),o.on(x,q(t._click,t)).on(A,s))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;_.fn.destroy.call(e),e.timeView.destroy(),e.element.off(y),e._arrow.off(y),e._inputWrapper.off(y),e._form&&e._form.off("reset",e._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(E)},_click:function(){var e=this,t=e.element;e.timeView.toggle(),m.touch||t[0]===h()||t.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t._oldText=t.element.val(),t._typing||t.element.trigger(k),t.trigger(k)),t._typing=!1},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),n._arrow=t.attr({role:"button","aria-controls":n.timeView._timeViewID})},_keydown:function(e){var t=this,n=e.keyCode,i=t.timeView,o=t.element.val();i.popup.visible()||e.altKey?i.move(e):n===d.ENTER&&o!==t._oldText?t._change(o):t._typing=!0},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=i.timeView._parse(n),n&&(n=new $(+n),o[e]=n,i.timeView.options[e]=n,i.timeView.bind()),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(I,"mouseenter"===t.type)},_update:function(e){var t=this,n=t.options,i=t.timeView,o=i._parse(e);return r(o,n.min,n.max)||(o=null),t._value=o,t.element.val(o?c.toString(o,n.format,n.culture):e),i.value(o),o},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-timepicker"),t[0]||(t=i.wrap(F).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(F).parent()),t[0].style.cssText=i[0].style.cssText,n.wrapper=t.addClass("k-widget k-timepicker k-header").addClass(i[0].className),i.css({width:"100%",height:i[0].style.height}),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))}}),v.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.datetimepicker.min",["kendo.datepicker.min","kendo.timepicker.min"],e)}(function(){return function(e,t){function n(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function i(e){e.preventDefault()}function o(t){var n,i=r.getCulture(t.culture).calendars.standard.patterns,o=!t.parseFormats.length;t.format=u(t.format||i.g),t.timeFormat=n=u(t.timeFormat||i.t),r.DateView.normalize(t),o&&t.parseFormats.unshift("yyyy-MM-ddTHH:mm:ss"),-1===e.inArray(n,t.parseFormats)&&t.parseFormats.splice(1,0,n)}var r=window.kendo,a=r.TimeView,s=r.parseDate,l=r._activeElement,u=r._extractFormat,c=r.calendar,d=c.isInRange,p=c.restrictValue,h=c.isEqualDatePart,f=a.getMilliseconds,m=r.ui,g=m.Widget,v="open",_="close",b="change",w=".kendoDateTimePicker",k="click"+w,y="disabled",x="readonly",C="k-state-default",T="k-state-focused",S="k-state-hover",D="k-state-disabled",F="mouseenter"+w+" mouseleave"+w,E="mousedown"+w,I="month",P="<span/>",A="aria-activedescendant",M="aria-expanded",H="aria-hidden",O="aria-owns",z="aria-disabled",V=Date,B=new V(1800,0,1),L=new V(2099,11,31),R={view:"date"},N={view:"time"},W=e.extend,U=g.extend({init:function(t,n){var i,a=this;g.fn.init.call(a,t,n),t=a.element,n=a.options,n.disableDates=r.calendar.disabled(n.disableDates),n.min=s(t.attr("min"))||s(n.min),n.max=s(t.attr("max"))||s(n.max),o(n),a._initialOptions=W({},n),a._wrapper(),a._views(),a._icons(),a._reset(),a._template();try{t[0].setAttribute("type","text")}catch(l){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1}),a._midnight=a._calculateMidnight(n.min,n.max),i=t.is("[disabled]")||e(a.element).parents("fieldset").is(":disabled"),i?a.enable(!1):a.readonly(t.is("[readonly]")),a._old=a._update(n.value||a.element.val()),a._oldText=t.val(),r.notify(a)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new V(B),max:new V(L),interval:30,height:200,footer:"",start:I,depth:I,animation:{},month:{},ARIATemplate:'Current focused date is #=kendo.toString(data.current, "d")#'},events:[v,_,b],setOptions:function(e){var t,n,i,a=this,l=a._value;g.fn.setOptions.call(a,e),e=a.options,e.min=t=s(e.min),e.max=n=s(e.max),o(e),a._midnight=a._calculateMidnight(e.min,e.max),i=e.value||a._value||a.dateView._current,t&&!h(t,i)&&(t=new V(B)),n&&!h(n,i)&&(n=new V(L)),a.dateView.setOptions(e),a.timeView.setOptions(W({},e,{format:e.timeFormat,min:t,max:n})),l&&(a.element.val(r.toString(l,e.format,e.culture)),a._updateARIA(l))},_editable:function(t){var n=this,o=n.element.off(w),a=n._dateIcon.off(w),s=n._timeIcon.off(w),u=n._inputWrapper.off(w),c=t.readonly,d=t.disable;c||d?(u.addClass(d?D:C).removeClass(d?C:D),o.attr(y,d).attr(x,c).attr(z,d)):(u.addClass(C).removeClass(D).on(F,n._toggleHover),o.removeAttr(y).removeAttr(x).attr(z,!1).on("keydown"+w,e.proxy(n._keydown,n)).on("focus"+w,function(){n._inputWrapper.addClass(T)}).on("focusout"+w,function(){n._inputWrapper.removeClass(T),o.val()!==n._oldText&&n._change(o.val()),n.close("date"),n.close("time")}),a.on(E,i).on(k,function(){n.toggle("date"),r.support.touch||o[0]===l()||o.focus()}),s.on(E,i).on(k,function(){n.toggle("time"),r.support.touch||o[0]===l()||o.focus()}))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;g.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.element.off(w),e._dateIcon.off(w),e._timeIcon.off(w),e._inputWrapper.off(w),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){"time"!==e&&(e="date"),this[e+"View"].close()},open:function(e){"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){var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_change:function(e){var t,n,i,o=this,r=o.element.val();e=o._update(e),t=+o._old!=+e,n=t&&!o._typing,i=r!==o.element.val(),(n||i)&&o.element.trigger(b),t&&(o._old=e,o._oldText=o.element.val(),o.trigger(b)),o._typing=!1},_option:function(e,i){var o,r,a=this,l=a.options,u=a.timeView,c=u.options,d=a._value||a._old;if(i===t)return l[e];if(i=s(i,l.parseFormats,l.culture)){if(l.min.getTime()===l.max.getTime()&&(c.dates=[]),l[e]=new V(i.getTime()),a.dateView[e](i),a._midnight=a._calculateMidnight(l.min,l.max),d&&(o=h(l.min,d),r=h(l.max,d)),o||r){if(c[e]=i,o&&!r&&(c.max=n(l.interval)),r){if(a._midnight)return u.dataBind([L]),t;o||(c.min=B)}}else c.max=L,c.min=B;u.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_update:function(t){var i,o,a,l,u,c=this,f=c.options,m=f.min,g=f.max,v=f.dates,_=c.timeView,w=c._value,k=s(t,f.parseFormats,f.culture),y=null===k&&null===w||k instanceof Date&&w instanceof Date;return f.disableDates&&f.disableDates(k)&&(k=null,c._old||c.element.val()||(t=null)),+k===+w&&y?(u=r.toString(k,f.format,f.culture),u!==t&&(c.element.val(null===k?t:u),t instanceof String&&c.element.trigger(b)),k):(null!==k&&h(k,m)?k=p(k,m,g):d(k,m,g)||(k=null),c._value=k,_.value(k),c.dateView.value(k),k&&(a=c._old,o=_.options,v[0]&&(v=e.grep(v,function(e){return h(k,e)}),v[0]&&(_.dataBind(v),l=!0)),l||(h(k,m)&&(o.min=m,o.max=n(f.interval),i=!0),h(k,g)&&(c._midnight?(_.dataBind([L]),l=!0):(o.max=g,i||(o.min=B),i=!0))),!l&&(!a&&i||a&&!h(a,k))&&(i||(o.max=L,o.min=B),_.bind())),c.element.val(k?r.toString(k,f.format,f.culture):t),c._updateARIA(k),k)},_keydown:function(e){var t=this,n=t.dateView,i=t.timeView,o=t.element.val(),a=n.popup.visible();e.altKey&&e.keyCode===r.keys.DOWN?t.toggle(a?"time":"date"):a?(n.move(e),t._updateARIA(n._current)):i.popup.visible()?i.move(e):e.keyCode===r.keys.ENTER&&o!==t._oldText?t._change(o):t._typing=!0},_views:function(){var e,t,n,i,o,l,u=this,c=u.element,p=u.options,h=c.attr("id");u.dateView=e=new r.DateView(W({},p,{id:h,anchor:u.wrapper,change:function(){var t,n,i=e.calendar.value(),o=+i,a=+p.min,s=+p.max;(o===a||o===s)&&(t=o===a?a:s,t=new V(u._value||t),t.setFullYear(i.getFullYear(),i.getMonth(),i.getDate()),d(t,a,s)&&(i=t)),u._value&&(n=r.date.setHours(new Date(i),u._value),d(n,a,s)&&(i=n)),u._change(i),u.close("date")},close:function(e){u.trigger(_,R)?e.preventDefault():(c.attr(M,!1),n.attr(H,!0),t.popup.visible()||c.removeAttr(O))},open:function(t){u.trigger(v,R)?t.preventDefault():(c.val()!==u._oldText&&(l=s(c.val(),p.parseFormats,p.culture),u.dateView[l?"current":"value"](l)),n.attr(H,!1),c.attr(M,!0).attr(O,e._dateViewID),u._updateARIA(l))}})),n=e.div,o=p.min.getTime(),u.timeView=t=new a({id:h,value:p.value,anchor:u.wrapper,animation:p.animation,format:p.timeFormat,culture:p.culture,height:p.height,interval:p.interval,min:new V(B),max:new V(L),dates:o===p.max.getTime()?[new Date(o)]:[],parseFormats:p.parseFormats,change:function(n,i){n=t._parse(n),p.min>n?(n=new V(+p.min),t.options.min=n):n>p.max&&(n=new V(+p.max),t.options.max=n),i?(u._timeSelected=!0,u._change(n)):(c.val(r.toString(n,p.format,p.culture)),e.value(n),u._updateARIA(n))},close:function(t){u.trigger(_,N)?t.preventDefault():(i.attr(H,!0),c.attr(M,!1),e.popup.visible()||c.removeAttr(O))},open:function(e){t._adjustListWidth(),u.trigger(v,N)?e.preventDefault():(c.val()!==u._oldText&&(l=s(c.val(),p.parseFormats,p.culture),u.timeView.value(l)),i.attr(H,!1),c.attr(M,!0).attr(O,t._timeViewID),t.options.active(t.current()))},active:function(e){c.removeAttr(A),e&&c.attr(A,t._optionID)}}),i=t.ul},_icons:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),t=t.children(),n._dateIcon=t.eq(0).attr({role:"button","aria-controls":n.dateView._dateViewID}),n._timeIcon=t.eq(1).attr({role:"button","aria-controls":n.timeView._timeViewID})},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(P).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(P).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datetimepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),o=i?e("#"+i):n.closest("form");o[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=o.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=r.template(this.options.ARIATemplate)},_calculateMidnight:function(e,t){return f(e)+f(t)===0},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element.removeAttr(A),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr(A,t.attr("id")))}});m.plugin(U)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.splitter.min",["kendo.resizable.min"],e)}(function(){return function(e,t){function n(e){return v.test(e)}function i(e){return g.test(e)||/^\d+$/.test(e)}function o(e){return!n(e)&&!i(e)}function r(e,t){var i=parseInt(e,10);return n(e)&&(i=Math.floor(i*t/100)),i}function a(e,n){return function(i,o){var r,a=this.element.find(i).data(E);return 1==arguments.length?a[e]:(a[e]=o,n&&(r=this.element.data("kendo"+this.options.name),r.resize(!0)),t)}}function s(e){var t=this,n=e.orientation;t.owner=e,t._element=e.element,t.orientation=n,h(t,n===T?u:l),t._resizable=new c.ui.Resizable(e.element,{orientation:n,handle:".k-splitbar-draggable-"+n+"[data-marker="+e._marker+"]",hint:f(t._createHint,t),start:f(t._start,t),max:f(t._max,t),min:f(t._min,t),invalidClass:"k-restricted-size-"+n,resizeend:f(t._stop,t)})}var l,u,c=window.kendo,d=c.ui,p=c.keys,h=e.extend,f=e.proxy,m=d.Widget,g=/^\d+(\.\d+)?px$/i,v=/^\d+(\.\d+)?%$/i,_=".kendoSplitter",b="expand",w="collapse",k="contentLoad",y="error",x="resize",C="layoutChange",T="horizontal",S="vertical",D="mouseenter",F="click",E="pane",I="mouseleave",P="k-state-focused",A="k-"+E,M="."+A,H=m.extend({init:function(e,t){var n,i=this;m.fn.init.call(i,e,t),i.wrapper=i.element,n=i.options.orientation.toLowerCase()!=S,i.orientation=n?T:S,i._dimension=n?"width":"height",i._keys={decrease:n?p.LEFT:p.UP,increase:n?p.RIGHT:p.DOWN},i._resizeStep=10,i._marker=c.guid().substring(0,8),i._initPanes(),i.resizing=new s(i),i.element.triggerHandler("init"+_)},events:[b,w,k,y,x,C],_addOverlays:function(){this._panes().append("<div class='k-splitter-overlay k-overlay' />")},_removeOverlays:function(){this._panes().children(".k-splitter-overlay").remove()},_attachEvents:function(){var t=this,n=t.options.orientation;t.element.children(".k-splitbar-draggable-"+n).on("keydown"+_,f(t._keydown,t)).on("mousedown"+_,function(e){e.currentTarget.focus()}).on("focus"+_,function(t){e(t.currentTarget).addClass(P)}).on("blur"+_,function(n){e(n.currentTarget).removeClass(P),t.resizing&&t.resizing.end()}).on(D+_,function(){e(this).addClass("k-splitbar-"+t.orientation+"-hover")}).on(I+_,function(){e(this).removeClass("k-splitbar-"+t.orientation+"-hover")}).on("mousedown"+_,f(t._addOverlays,t)).end().children(".k-splitbar").on("dblclick"+_,f(t._togglePane,t)).children(".k-collapse-next, .k-collapse-prev").on(F+_,t._arrowClick(w)).end().children(".k-expand-next, .k-expand-prev").on(F+_,t._arrowClick(b)).end().end(),e(window).on("resize"+_+t._marker,f(t.resize,t,!1)),e(document).on("mouseup"+_+t._marker,f(t._removeOverlays,t))},_detachEvents:function(){var t=this;t.element.children(".k-splitbar-draggable-"+t.orientation).off(_).end().children(".k-splitbar").off("dblclick"+_).children(".k-collapse-next, .k-collapse-prev, .k-expand-next, .k-expand-prev").off(_),e(window).off(_+t._marker),e(document).off(_+t._marker)},options:{name:"Splitter",orientation:T,panes:[]},destroy:function(){m.fn.destroy.call(this),this._detachEvents(),this.resizing&&this.resizing.destroy(),c.destroy(this.element),this.wrapper=this.element=null},_keydown:function(t){var n,i=this,o=t.keyCode,r=i.resizing,a=e(t.currentTarget),s=i._keys,l=o===s.increase,u=o===s.decrease;l||u?(t.ctrlKey?(n=a[u?"next":"prev"](),r&&r.isResizing()&&r.end(),n[i._dimension]()?i._triggerAction(w,a[u?"prev":"next"]()):i._triggerAction(b,n)):r&&r.move((u?-1:1)*i._resizeStep,a),t.preventDefault()):o===p.ENTER&&r&&(r.end(),t.preventDefault())},_initPanes:function(){var e=this.options.panes||[],t=this;this.element.addClass("k-widget").addClass("k-splitter").children().each(function(n,i){"script"!=i.nodeName.toLowerCase()&&t._initPane(i,e[n])}),this.resize()},_initPane:function(t,n){t=e(t).attr("role","group").addClass(A),t.data(E,n?n:{}).toggleClass("k-scrollable",n?n.scrollable!==!1:!0),this.ajaxRequest(t)},ajaxRequest:function(e,t,n){var i,o=this;e=o.element.find(e),i=e.data(E),t=t||i.contentUrl,t&&(e.append("<span class='k-icon k-loading k-pane-loading' />"),c.isLocalUrl(t)?jQuery.ajax({url:t,data:n||{},type:"GET",dataType:"html",success:function(t){o.angular("cleanup",function(){return{elements:e.get()}}),e.html(t),o.angular("compile",function(){return{elements:e.get()}}),o.trigger(k,{pane:e[0]})},error:function(t,n){o.trigger(y,{pane:e[0],status:n,xhr:t})}}):e.removeClass("k-scrollable").html("<iframe src='"+t+"' frameborder='0' class='k-content-frame'>This page requires frames in order to show content</iframe>"))},_triggerAction:function(e,t){this.trigger(e,{pane:t[0]})||this[e](t[0])},_togglePane:function(t){var n,i=this,o=e(t.target);o.closest(".k-splitter")[0]==i.element[0]&&(n=o.children(".k-icon:not(.k-resize-handle)"),1===n.length&&(n.is(".k-collapse-prev")?i._triggerAction(w,o.prev()):n.is(".k-collapse-next")?i._triggerAction(w,o.next()):n.is(".k-expand-prev")?i._triggerAction(b,o.prev()):n.is(".k-expand-next")&&i._triggerAction(b,o.next())))},_arrowClick:function(t){var n=this;return function(i){var o,r=e(i.target);r.closest(".k-splitter")[0]==n.element[0]&&(o=r.is(".k-"+t+"-prev")?r.parent().prev():r.parent().next(),n._triggerAction(t,o))}},_updateSplitBar:function(e,t,n){var i=function(e,t){return t?"<div class='k-icon "+e+"' />":""},o=this.orientation,r=t.resizable!==!1&&n.resizable!==!1,a=t.collapsible,s=t.collapsed,l=n.collapsible,u=n.collapsed;e.addClass("k-splitbar k-state-default k-splitbar-"+o).attr("role","separator").attr("aria-expanded",!(s||u)).removeClass("k-splitbar-"+o+"-hover").toggleClass("k-splitbar-draggable-"+o,r&&!s&&!u).toggleClass("k-splitbar-static-"+o,!r&&!a&&!l).html(i("k-collapse-prev",a&&!s&&!u)+i("k-expand-prev",a&&s&&!u)+i("k-resize-handle",r)+i("k-collapse-next",l&&!u&&!s)+i("k-expand-next",l&&u&&!s)),r||a||l||e.removeAttr("tabindex")},_updateSplitBars:function(){var t=this;this.element.children(".k-splitbar").each(function(){var n=e(this),i=n.prevAll(M).first().data(E),o=n.nextAll(M).first().data(E);o&&t._updateSplitBar(n,i,o)})},_removeSplitBars:function(){this.element.children(".k-splitbar").remove()},_panes:function(){return this.element?this.element.children(M):e()},_resize:function(){var n,i,a,s,l,u,d,p,h,f,m=this,g=m.element,v=g.children(M),_=m.orientation==T,b=g.children(".k-splitbar"),w=b.length,k=_?"width":"height",y=g[k]();m.wrapper.addClass("k-splitter-resizing"),0===w?(w=v.length-1,v.slice(0,w).after("<div tabindex='0' class='k-splitbar' data-marker='"+m._marker+"' />"),m._updateSplitBars(),b=g.children(".k-splitbar")):m._updateSplitBars(),b.each(function(){y-=this[_?"offsetWidth":"offsetHeight"]}),n=0,i=0,a=e(),v.css({position:"absolute",top:0})[k](function(){var s,l=e(this),u=l.data(E)||{};if(l.removeClass("k-state-collapsed"),u.collapsed)s=u.collapsedSize?r(u.collapsedSize,y):0,l.css("overflow","hidden").addClass("k-state-collapsed");else{if(o(u.size))return a=a.add(this),t;s=r(u.size,y)}return i++,n+=s,s}),y-=n,s=a.length,l=Math.floor(y/s),a.slice(0,s-1).css(k,l).end().eq(s-1).css(k,y-(s-1)*l),u=0,d=_?"height":"width",p=_?"left":"top",h=_?"offsetWidth":"offsetHeight",0===s&&(f=v.filter(function(){return!(e(this).data(E)||{}).collapsed}).last(),f[k](y+f[0][h])),g.children().css(d,g[d]()).each(function(e,t){"script"!=t.tagName.toLowerCase()&&(t.style[p]=Math.floor(u)+"px",u+=t[h])}),m._detachEvents(),m._attachEvents(),m.wrapper.removeClass("k-splitter-resizing"),c.resize(v),m.trigger(C)},toggle:function(e,n){var i,o=this;e=o.element.find(e),i=e.data(E),(n||i.collapsible)&&(1==arguments.length&&(n=i.collapsed===t?!1:i.collapsed),i.collapsed=!n,i.collapsed?e.css("overflow","hidden"):e.css("overflow",""),o.resize(!0))},collapse:function(e){this.toggle(e,!1)},expand:function(e){this.toggle(e,!0)},_addPane:function(e,t,n){var i=this;return n.length&&(i.options.panes.splice(t,0,e),i._initPane(n,e),i._removeSplitBars(),i.resize(!0)),n},append:function(t){t=t||{};var n=this,i=e("<div />").appendTo(n.element);return n._addPane(t,n.options.panes.length,i)},insertBefore:function(t,n){n=e(n),t=t||{};var i=this,o=i.wrapper.children(".k-pane").index(n),r=e("<div />").insertBefore(e(n));return i._addPane(t,o,r)},insertAfter:function(t,n){n=e(n),t=t||{};var i=this,o=i.wrapper.children(".k-pane").index(n),r=e("<div />").insertAfter(e(n));return i._addPane(t,o+1,r)},remove:function(t){t=e(t);var n=this;return t.length&&(c.destroy(t),t.each(function(t,i){n.options.panes.splice(n.wrapper.children(".k-pane").index(i),1),e(i).remove()}),n._removeSplitBars(),n.options.panes.length&&n.resize(!0)),n},size:a("size",!0),min:a("min"),max:a("max")});d.plugin(H),l={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},u={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"},s.prototype={press:function(e){this._resizable.press(e)},move:function(e,t){this.pressed||(this.press(t),this.pressed=!0),this._resizable.target||this._resizable.press(t),this._resizable.move(e)},end:function(){this._resizable.end(),this.pressed=!1},destroy:function(){this._resizable.destroy(),this._resizable=this._element=this.owner=null},isResizing:function(){return this._resizable.resizing},_createHint:function(t){var n=this;return e("<div class='k-ghost-splitbar k-ghost-splitbar-"+n.orientation+" k-state-default' />").css(n.alternateSizingProperty,t[n.alternateSizingProperty]())},_start:function(t){var n=this,o=e(t.currentTarget),r=o.prev(),a=o.next(),s=r.data(E),l=a.data(E),u=parseInt(r[0].style[n.positioningProperty],10),c=parseInt(a[0].style[n.positioningProperty],10)+a[0][n.sizingDomProperty]-o[0][n.sizingDomProperty],d=parseInt(n._element.css(n.sizingProperty),10),p=function(e){var t=parseInt(e,10);return(i(e)?t:d*t/100)||0},h=p(s.min),f=p(s.max)||c-u,m=p(l.min),g=p(l.max)||c-u;n.previousPane=r,n.nextPane=a,n._maxPosition=Math.min(c-m,u+f),n._minPosition=Math.max(u+h,c-g)},_max:function(){return this._maxPosition},_min:function(){return this._minPosition},_stop:function(t){var n,i,r,a,s,l,u,d,p=this,h=e(t.currentTarget),f=p.owner;return f._panes().children(".k-splitter-overlay").remove(),t.keyCode!==c.keys.ESC&&(n=t.position,i=h.prev(),r=h.next(),a=i.data(E),s=r.data(E),l=n-parseInt(i[0].style[p.positioningProperty],10),u=parseInt(r[0].style[p.positioningProperty],10)+r[0][p.sizingDomProperty]-n-h[0][p.sizingDomProperty],d=p._element.children(M).filter(function(){return o(e(this).data(E).size)}).length,(!o(a.size)||d>1)&&(o(a.size)&&d--,a.size=l+"px"),(!o(s.size)||d>1)&&(s.size=u+"px"),f.resize(!0)),!1}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.window.min",["kendo.draganddrop.min"],e)}(function(){return function(e,t){function n(e){return t!==e}function i(e,t,n){return Math.max(Math.min(parseInt(e,10),n===1/0?n:parseInt(n,10)),parseInt(t,10))}function o(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function r(e){var t=this;t.owner=e,t._draggable=new u(e.wrapper,{filter:">"+y,group:e.wrapper.id+"-resizing",dragstart:p(t.dragstart,t),drag:p(t.drag,t),dragend:p(t.dragend,t)}),t._draggable.userEvents.bind("press",p(t.addOverlay,t)),t._draggable.userEvents.bind("release",p(t.removeOverlay,t))}function a(e,t){var n=this;n.owner=e,n._draggable=new u(e.wrapper,{filter:t,group:e.wrapper.id+"-moving",dragstart:p(n.dragstart,n),drag:p(n.drag,n),dragend:p(n.dragend,n),dragcancel:p(n.dragcancel,n)}),n._draggable.userEvents.stopPropagation=!1}var s=window.kendo,l=s.ui.Widget,u=s.ui.Draggable,c=e.isPlainObject,d=s._activeElement,p=e.proxy,h=e.extend,f=e.each,m=s.template,g="body",v=".kendoWindow",_=".k-window",b=".k-window-title",w=b+"bar",k=".k-window-content",y=".k-resize-handle",x=".k-overlay",C="k-content-frame",T="k-loading",S="k-state-hover",D="k-state-focused",F="k-window-maximized",E=":visible",I="hidden",P="cursor",A="open",M="activate",H="deactivate",O="close",z="refresh",V="minimize",B="maximize",L="resize",R="resizeEnd",N="dragstart",W="dragend",U="error",j="overflow",q="zIndex",$=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",G=".k-i-pin",Y=".k-i-unpin",Q=G+","+Y,K=".k-window-titlebar .k-window-action",J=".k-window-titlebar .k-i-refresh",X=s.isLocalUrl,Z=l.extend({init:function(i,r){var a,u,d,h,f,m,g,y=this,x={},C=!1,T=r&&r.actions&&!r.actions.length;l.fn.init.call(y,i,r),r=y.options,h=r.position,i=y.element,f=r.content,T&&(r.actions=[]),y.appendTo=e(r.appendTo),f&&!c(f)&&(f=r.content={url:f}),i.find("script").filter(o).remove(),i.parent().is(y.appendTo)||h.top!==t&&h.left!==t||(i.is(E)?(x=i.offset(),C=!0):(u=i.css("visibility"),d=i.css("display"),i.css({visibility:I,display:""}),x=i.offset(),i.css({visibility:u,display:d})),h.top===t&&(h.top=x.top),h.left===t&&(h.left=x.left)),n(r.visible)&&null!==r.visible||(r.visible=i.is(E)),a=y.wrapper=i.closest(_),i.is(".k-content")&&a[0]||(i.addClass("k-window-content k-content"),y._createWindow(i,r),a=y.wrapper=i.closest(_),y._dimensions()),y._position(),r.pinned&&y.pin(!0),f&&y.refresh(f),r.visible&&y.toFront(),m=a.children(k),y._tabindex(m),r.visible&&r.modal&&y._overlay(a.is(E)).css({opacity:.5}),a.on("mouseenter"+v,K,p(y._buttonEnter,y)).on("mouseleave"+v,K,p(y._buttonLeave,y)).on("click"+v,"> "+K,p(y._windowActionHandler,y)),m.on("keydown"+v,p(y._keydown,y)).on("focus"+v,p(y._focus,y)).on("blur"+v,p(y._blur,y)),this._resizable(),this._draggable(),g=i.attr("id"),g&&(g+="_wnd_title",a.children(w).children(b).attr("id",g),m.attr({role:"dialog","aria-labelledby":g})),a.add(a.children(".k-resize-handle,"+w)).on("mousedown"+v,p(y.toFront,y)),y.touchScroller=s.touchScroller(i),y._resizeHandler=p(y._onDocumentResize,y),y._marker=s.guid().substring(0,8),e(window).on("resize"+v+y._marker,y._resizeHandler),r.visible&&(y.trigger(A),y.trigger(M)),s.notify(y)},_buttonEnter:function(t){e(t.currentTarget).addClass(S)},_buttonLeave:function(t){e(t.currentTarget).removeClass(S)},_focus:function(){this.wrapper.addClass(D)},_blur:function(){this.wrapper.removeClass(D)},_dimensions:function(){var e,t,n=this.wrapper,o=this.options,r=o.width,a=o.height,s=o.maxHeight,l=["minWidth","minHeight","maxWidth","maxHeight"];for(this.title(o.title),e=0;l.length>e;e++)t=o[l[e]],t&&t!=1/0&&n.css(l[e],t);s&&s!=1/0&&this.element.css("maxHeight",s),r&&n.width((""+r).indexOf("%")>0?r:i(r,o.minWidth,o.maxWidth)),a&&n.height((""+a).indexOf("%")>0?a:i(a,o.minHeight,o.maxHeight)),o.visible||n.hide()},_position:function(){var e=this.wrapper,t=this.options.position;0===t.top&&(t.top=""+t.top),0===t.left&&(t.left=""+t.left),e.css({top:t.top||"",left:t.left||""})},_animationOptions:function(e){var t=this.options.animation,n={open:{effects:{}},close:{hide:!0,effects:{}}};return t&&t[e]||n[e]},_resize:function(){s.resize(this.element.children())},_resizable:function(){var t=this.options.resizable,n=this.wrapper;this.resizing&&(n.off("dblclick"+v).children(y).remove(),this.resizing.destroy(),this.resizing=null),t&&(n.on("dblclick"+v,w,p(function(t){e(t.target).closest(".k-window-action").length||this.toggleMaximization()},this)),f("n e s w se sw ne nw".split(" "),function(e,t){n.append(ee.resizeHandle(t))}),this.resizing=new r(this)),n=null},_draggable:function(){var e=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),e&&(this.dragging=new a(this,e.dragHandle||w))},_actions:function(){var t=this.options.actions,n=this.wrapper.children(w),i=n.find(".k-window-actions");t=e.map(t,function(e){return{name:e}}),i.html(s.render(ee.action,t))},setOptions:function(e){var n,i;l.fn.setOptions.call(this,e),n=this.options.scrollable!==!1,this.restore(),this._dimensions(),this._position(),this._resizable(),this._draggable(),this._actions(),t!==e.modal&&(i=this.options.visible!==!1,this._overlay(e.modal&&i)),this.element.css(j,n?"":"hidden")},events:[A,M,H,O,V,B,z,L,R,N,W,U],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,scrollable:!0,position:{},content:null,visible:null,height:null,width:null,appendTo:"body"},_closable:function(){return e.inArray("close",e.map(this.options.actions,function(e){return e.toLowerCase()}))>-1},_keydown:function(e){var t,n,o,r,a,l,u=this,c=u.options,d=s.keys,p=e.keyCode,h=u.wrapper,f=10,m=u.options.isMaximized;e.target!=e.currentTarget||u._closing||(p==d.ESC&&u._closable()&&u._close(!1),!c.draggable||e.ctrlKey||m||(t=s.getOffset(h),p==d.UP?n=h.css("top",t.top-f):p==d.DOWN?n=h.css("top",t.top+f):p==d.LEFT?n=h.css("left",t.left-f):p==d.RIGHT&&(n=h.css("left",t.left+f))),c.resizable&&e.ctrlKey&&!m&&(p==d.UP?(n=!0,r=h.height()-f):p==d.DOWN&&(n=!0,r=h.height()+f),p==d.LEFT?(n=!0,o=h.width()-f):p==d.RIGHT&&(n=!0,o=h.width()+f),n&&(a=i(o,c.minWidth,c.maxWidth),l=i(r,c.minHeight,c.maxHeight),isNaN(a)||(h.width(a),u.options.width=a+"px"),isNaN(l)||(h.height(l),u.options.height=l+"px"),u.resize())),n&&e.preventDefault())},_overlay:function(t){var n=this.appendTo.children(x),i=this.wrapper;return n.length||(n=e("<div class='k-overlay' />")),n.insertBefore(i[0]).toggle(t).css(q,parseInt(i.css(q),10)-1),n},_actionForIcon:function(e){var t=/\bk-i-\w+\b/.exec(e[0].className)[0];return{"k-i-close":"_close","k-i-maximize":"maximize","k-i-minimize":"minimize","k-i-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[t]},_windowActionHandler:function(n){var i,o;if(!this._closing)return i=e(n.target).closest(".k-window-action").find(".k-icon"),o=this._actionForIcon(i),o?(n.preventDefault(),this[o](),!1):t},_modals:function(){var t=this,n=e(_).filter(function(){var n=e(this),i=t._object(n),o=i&&i.options;return o&&o.modal&&o.visible&&o.appendTo===t.options.appendTo&&n.is(E)}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")});return t=null,n},_object:function(e){var n=e.children(k),i=s.widgetInstance(n);return i instanceof Z?i:t},center:function(){var t,n,i=this,o=i.options.position,r=i.wrapper,a=e(window),s=0,l=0;return i.options.isMaximized?i:(i.options.pinned||(s=a.scrollTop(),l=a.scrollLeft()),n=l+Math.max(0,(a.width()-r.width())/2),t=s+Math.max(0,(a.height()-r.height()-parseInt(r.css("paddingTop"),10))/2),r.css({left:n,top:t}),o.top=t,o.left=n,i)},title:function(e){var t,n=this,i=n.wrapper,o=n.options,r=i.children(w),a=r.children(b);return arguments.length?(e===!1?(i.addClass("k-window-titleless"),r.remove()):(r.length?a.html(e):(i.prepend(ee.titlebar(o)),n._actions(),r=i.children(w)),t=r.outerHeight(),i.css("padding-top",t),r.css("margin-top",-t)),n.options.title=e,n):a.html()},content:function(e,t){var i=this.wrapper.children(k),o=i.children(".km-scroll-container");return i=o[0]?o:i,n(e)?(this.angular("cleanup",function(){return{elements:i.children()}}),s.destroy(this.element.children()),i.empty().html(e),this.angular("compile",function(){var e,n=[];for(e=i.length;--e>=0;)n.push({dataItem:t});return{elements:i.children(),data:n}}),this):i.html()},open:function(){var t,n,i,o=this,r=o.wrapper,a=o.options,l=this._animationOptions("open"),u=r.children(k),c=e(document);return o.trigger(A)||(o._closing&&r.kendoStop(!0,!0),
o._closing=!1,o.toFront(),a.autoFocus&&o.element.focus(),a.visible=!0,a.modal&&(n=!!o._modals().length,t=o._overlay(n),t.kendoStop(!0,!0),l.duration&&s.effects.Fade&&!n?(i=s.fx(t).fadeIn(),i.duration(l.duration||0),i.endValue(.5),i.play()):t.css("opacity",.5),t.show()),r.is(E)||(u.css(j,I),r.show().kendoStop().kendoAnimate({effects:l.effects,duration:l.duration,complete:p(this._activate,this)}))),a.isMaximized&&(o._documentScrollTop=c.scrollTop(),o._documentScrollLeft=c.scrollLeft(),e("html, body").css(j,I)),o},_activate:function(){var e=this.options.scrollable!==!1;this.options.autoFocus&&this.element.focus(),this.element.css(j,e?"":"hidden"),this.trigger(M)},_removeOverlay:function(n){var i,o=this._modals(),r=this.options,a=r.modal&&!o.length,l=r.modal?this._overlay(!0):e(t),u=this._animationOptions("close");a?!n&&u.duration&&s.effects.Fade?(i=s.fx(l).fadeOut(),i.duration(u.duration||0),i.startValue(.5),i.play()):this._overlay(!1).remove():o.length&&this._object(o.last())._overlay(!0)},_close:function(t){var n=this,i=n.wrapper,o=n.options,r=this._animationOptions("open"),a=this._animationOptions("close"),s=e(document);if(i.is(E)&&!n.trigger(O,{userTriggered:!t})){if(n._closing)return;n._closing=!0,o.visible=!1,e(_).each(function(t,n){var o=e(n).children(k);n!=i&&o.find("> ."+C).length>0&&o.children(x).remove()}),this._removeOverlay(),i.kendoStop().kendoAnimate({effects:a.effects||r.effects,reverse:a.reverse===!0,duration:a.duration,complete:p(this._deactivate,this)})}n.options.isMaximized&&(e("html, body").css(j,""),n._documentScrollTop&&n._documentScrollTop>0&&s.scrollTop(n._documentScrollTop),n._documentScrollLeft&&n._documentScrollLeft>0&&s.scrollLeft(n._documentScrollLeft))},_deactivate:function(){var e,t=this;t.wrapper.hide().css("opacity",""),t.trigger(H),t.options.modal&&(e=t._object(t._modals().last()),e&&e.toFront())},close:function(){return this._close(!0),this},_actionable:function(t){return e(t).is(K+","+K+" .k-icon,:input,a")},_shouldFocus:function(t){var n=d(),i=this.element;return this.options.autoFocus&&!e(n).is(i)&&!this._actionable(t)&&(!i.find(n).length||!i.find(t).length)},toFront:function(t){var n,i,o=this,r=o.wrapper,a=r[0],s=+r.css(q),l=s,u=t&&t.target||null;return e(_).each(function(t,n){var i=e(n),o=i.css(q),r=i.children(k);isNaN(o)||(s=Math.max(+o,s)),n!=a&&r.find("> ."+C).length>0&&r.append(ee.overlay)}),(!r[0].style.zIndex||s>l)&&r.css(q,s+2),o.element.find("> .k-overlay").remove(),o._shouldFocus(u)&&(o.element.focus(),n=e(window).scrollTop(),i=parseInt(r.position().top,10),i>0&&n>i&&(n>0?e(window).scrollTop(i):r.css("top",n))),r=null,o},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var t=this,n=t.options,i=n.minHeight,o=t.restoreOptions,r=e(document);return n.isMaximized||n.isMinimized?(i&&i!=1/0&&t.wrapper.css("min-height",i),t.wrapper.css({position:n.pinned?"fixed":"absolute",left:o.left,top:o.top,width:o.width,height:o.height}).removeClass(F).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find($).parent().show().end().end().find(Q).parent().show(),t.options.width=o.width,t.options.height=o.height,e("html, body").css(j,""),this._documentScrollTop&&this._documentScrollTop>0&&r.scrollTop(this._documentScrollTop),this._documentScrollLeft&&this._documentScrollLeft>0&&r.scrollLeft(this._documentScrollLeft),n.isMaximized=n.isMinimized=!1,t.resize(),t):t},_sizingAction:function(e,t){var n=this,i=n.wrapper,o=i[0].style,r=n.options;return r.isMaximized||r.isMinimized?n:(n.restoreOptions={width:o.width,height:o.height},i.children(y).hide().end().children(w).find($).parent().hide().eq(0).before(ee.action({name:"Restore"})),t.call(n),n.wrapper.children(w).find(Q).parent().toggle("maximize"!==e),n.trigger(e),n)},maximize:function(){return this._sizingAction("maximize",function(){var t=this,n=t.wrapper,i=n.position(),o=e(document);h(t.restoreOptions,{left:i.left,top:i.top}),n.css({left:0,top:0,position:"fixed"}).addClass(F),this._documentScrollTop=o.scrollTop(),this._documentScrollLeft=o.scrollLeft(),e("html, body").css(j,I),t.options.isMaximized=!0,t._onDocumentResize()}),this},minimize:function(){return this._sizingAction("minimize",function(){var e=this;e.wrapper.css({height:"",minHeight:""}),e.element.hide(),e.options.isMinimized=!0}),this},pin:function(t){var n=this,i=e(window),o=n.wrapper,r=parseInt(o.css("top"),10),a=parseInt(o.css("left"),10);(t||!n.options.pinned&&!n.options.isMaximized)&&(o.css({position:"fixed",top:r-i.scrollTop(),left:a-i.scrollLeft()}),o.children(w).find(G).addClass("k-i-unpin").removeClass("k-i-pin"),n.options.pinned=!0)},unpin:function(){var t=this,n=e(window),i=t.wrapper,o=parseInt(i.css("top"),10),r=parseInt(i.css("left"),10);t.options.pinned&&!t.options.isMaximized&&(i.css({position:"",top:o+n.scrollTop(),left:r+n.scrollLeft()}),i.children(w).find(Y).addClass("k-i-pin").removeClass("k-i-unpin"),t.options.pinned=!1)},_onDocumentResize:function(){var t,n,i=this,o=i.wrapper,r=e(window),a=s.support.zoomLevel();i.options.isMaximized&&(t=r.width()/a,n=r.height()/a-parseInt(o.css("padding-top"),10),o.css({width:t,height:n}),i.options.width=t,i.options.height=n,i.resize())},refresh:function(t){var i,o,r,a=this,s=a.options,l=e(a.element);return c(t)||(t={url:t}),t=h({},s.content,t),o=n(s.iframe)?s.iframe:t.iframe,r=t.url,r?(n(o)||(o=!X(r)),o?(i=l.find("."+C)[0],i?i.src=r||i.src:l.html(ee.contentFrame(h({},s,{content:t}))),l.find("."+C).unbind("load"+v).on("load"+v,p(this._triggerRefresh,this))):a._ajaxRequest(t)):(t.template&&a.content(m(t.template)({})),a.trigger(z)),l.toggleClass("k-window-iframecontent",!!o),a},_triggerRefresh:function(){this.trigger(z)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(J).removeClass(T)},_ajaxError:function(e,t){this.trigger(U,{status:t,xhr:e})},_ajaxSuccess:function(e){return function(t){var n=t;e&&(n=m(e)(t||{})),this.content(n,t),this.element.prop("scrollTop",0),this.trigger(z)}},_showLoading:function(){this.wrapper.find(J).addClass(T)},_ajaxRequest:function(t){this._loadingIconTimeout=setTimeout(p(this._showLoading,this),100),e.ajax(h({type:"GET",dataType:"html",cache:!1,error:p(this._ajaxError,this),complete:p(this._ajaxComplete,this),success:p(this._ajaxSuccess(t.template),this)},t))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(v).children(k).off(v).end().find(".k-resize-handle,.k-window-titlebar").off(v),e(window).off("resize"+v+this._marker),clearTimeout(this._loadingIconTimeout),l.fn.destroy.call(this),this.unbind(t),s.destroy(this.wrapper),this._removeOverlay(!0)},destroy:function(){this._destroy(),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=e()},_createWindow:function(){var t,n,i=this.element,o=this.options,r=s.support.isRtl(i);o.scrollable===!1&&i.attr("style","overflow:hidden;"),n=e(ee.wrapper(o)),t=i.find("iframe:not(.k-content)").map(function(){var e=this.getAttribute("src");return this.src="",e}),n.toggleClass("k-rtl",r).appendTo(this.appendTo).append(i).find("iframe:not(.k-content)").each(function(e){this.src=t[e]}),n.find(".k-window-title").css(r?"left":"right",n.find(".k-window-actions").outerWidth()+10),i.css("visibility","").show(),i.find("[data-role=editor]").each(function(){var t=e(this).data("kendoEditor");t&&t.refresh()}),n=i=null}}),ee={wrapper:m("<div class='k-widget k-window' />"),action:m("<a role='button' href='\\#' class='k-window-action k-link'><span role='presentation' class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:m("<div class='k-window-titlebar k-header'>&nbsp;<span class='k-window-title'>#= title #</span><div class='k-window-actions' /></div>"),overlay:"<div class='k-overlay' />",contentFrame:m("<iframe frameborder='0' title='#= title #' class='"+C+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:m("<div class='k-resize-handle k-resize-#= data #'></div>")};r.prototype={addOverlay:function(){this.owner.wrapper.append(ee.overlay)},removeOverlay:function(){this.owner.wrapper.find(x).remove()},dragstart:function(t){var n=this,i=n.owner,o=i.wrapper;n.elementPadding=parseInt(o.css("padding-top"),10),n.initialPosition=s.getOffset(o,"position"),n.resizeDirection=t.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),n.initialSize={width:o.width(),height:o.height()},n.containerOffset=s.getOffset(i.appendTo,"position"),o.children(y).not(t.currentTarget).hide(),e(g).css(P,t.currentTarget.css(P))},drag:function(e){var t,n,o,r,a=this,s=a.owner,l=s.wrapper,u=s.options,c=a.resizeDirection,d=a.containerOffset,p=a.initialPosition,h=a.initialSize,f=Math.max(e.x.location,d.left),m=Math.max(e.y.location,d.top);c.indexOf("e")>=0?(t=f-p.left,l.width(i(t,u.minWidth,u.maxWidth))):c.indexOf("w")>=0&&(r=p.left+h.width,t=i(r-f,u.minWidth,u.maxWidth),l.css({left:r-t-d.left,width:t})),c.indexOf("s")>=0?(n=m-p.top-a.elementPadding,l.height(i(n,u.minHeight,u.maxHeight))):c.indexOf("n")>=0&&(o=p.top+h.height,n=i(o-m,u.minHeight,u.maxHeight),l.css({top:o-n-d.top,height:n})),t&&(s.options.width=t+"px"),n&&(s.options.height=n+"px"),s.resize()},dragend:function(t){var n=this,i=n.owner,o=i.wrapper;return o.children(y).not(t.currentTarget).show(),e(g).css(P,""),i.touchScroller&&i.touchScroller.reset(),27==t.keyCode&&o.css(n.initialPosition).css(n.initialSize),i.trigger(R),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},a.prototype={dragstart:function(t){var n=this.owner,i=n.element,o=i.find(".k-window-actions"),r=s.getOffset(n.appendTo);n.trigger(N),n.initialWindowPosition=s.getOffset(n.wrapper,"position"),n.initialPointerPosition={left:t.x.client,top:t.y.client},n.startPosition={left:t.x.client-n.initialWindowPosition.left,top:t.y.client-n.initialWindowPosition.top},n.minLeftPosition=o.length>0?o.outerWidth()+parseInt(o.css("right"),10)-i.outerWidth():20-i.outerWidth(),n.minLeftPosition-=r.left,n.minTopPosition=-r.top,n.wrapper.append(ee.overlay).children(y).hide(),e(g).css(P,t.currentTarget.css(P))},drag:function(t){var n=this.owner,i=n.options.position;i.top=Math.max(t.y.client-n.startPosition.top,n.minTopPosition),i.left=Math.max(t.x.client-n.startPosition.left,n.minLeftPosition),s.support.transforms?e(n.wrapper).css("transform","translate("+(t.x.client-n.initialPointerPosition.left)+"px, "+(t.y.client-n.initialPointerPosition.top)+"px)"):e(n.wrapper).css(i)},_finishDrag:function(){var t=this.owner;t.wrapper.children(y).toggle(!t.options.isMinimized).end().find(x).remove(),e(g).css(P,"")},dragcancel:function(e){this._finishDrag(),e.currentTarget.closest(_).css(this.owner.initialWindowPosition)},dragend:function(){return e(this.owner.wrapper).css(this.owner.options.position).css("transform",""),this._finishDrag(),this.owner.trigger(W),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},s.ui.plugin(Z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.virtuallist.min",["kendo.data.min"],e)}(function(){return function(e,t){function n(e){return e[e.length-1]}function i(e){return e instanceof Array?e:[e]}function o(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function r(e,t,n){return Math.ceil(e*t/n)}function a(e,t,n){var i=document.createElement(n||"div");return t&&(i.className=t),e.appendChild(i),i}function s(){var t,n=e('<div class="k-popup"><ul class="k-list"><li class="k-item"><li></ul></div>');return n.css({position:"absolute",left:"-200000px",visibility:"hidden"}),n.appendTo(document.body),t=parseFloat(v.getComputedStyles(n.find(".k-item")[0],["line-height"])["line-height"]),n.remove(),t}function l(e,t,n){return{down:e*n,up:e*(t-1-n)}}function u(e,t){var n=(e.listScreens-1-e.threshold)*t,i=e.threshold*t;return function(e,t,o){return t>o?n>t-e.top:0===e.top||t-e.top>i}}function c(e,t){return function(n){return t(e.scrollTop,n)}}function d(e){return function(t,n){return e(t.items,t.index,n),t}}function p(e,t){v.support.browser.msie&&10>v.support.browser.version?e.style.top=t+"px":(e.style.webkitTransform="translateY("+t+"px)",e.style.transform="translateY("+t+"px)")}function h(t,n){return function(i,o){for(var r=0,a=i.length;a>r;r++)t(i[r],o[r],n),o[r].item&&this.trigger(V,{item:e(i[r]),data:o[r].item,ns:v.ui})}}function f(e,t){var n;return t>0?(n=e.splice(0,t),e.push.apply(e,n)):(n=e.splice(t,-t),e.unshift.apply(e,n)),n}function m(n,i,o){var r=o.template;n=e(n),i.item||(r=o.placeholderTemplate),this.angular("cleanup",function(){return{elements:[n]}}),n.attr("data-uid",i.item?i.item.uid:"").attr("data-offset-index",i.index).html(r(i.item||{})),n.toggleClass(A,i.current),n.toggleClass(P,i.selected),n.toggleClass("k-first",i.newGroup),n.toggleClass("k-loading-item",!i.item),0!==i.index&&i.newGroup&&e("<div class="+I+"></div>").appendTo(n).html(o.groupTemplate(i.group)),i.top!==t&&p(n[0],i.top),this.angular("compile",function(){return{elements:[n],data:[{dataItem:i.item,group:i.group,newGroup:i.newGroup}]}})}function g(e,t){var n,i,o,r,a=t.length,s=e.length,l=[],u=[];if(s)for(o=0;s>o;o++){for(n=e[o],i=!1,r=0;a>r;r++)if(n===t[r]){i=!0,l.push({index:o,item:n});break}i||u.push(n)}return{changed:l,unchanged:u}}var v=window.kendo,_=v.ui,b=_.Widget,w=_.DataBoundWidget,k=e.proxy,y="k-virtual-wrap",x="k-virtual-list",C="k-virtual-content",T="k-list",S="k-group-header",D="k-virtual-item",F="k-item",E="k-height-container",I="k-group",P="k-state-selected",A="k-state-focused",M="k-state-hover",H="change",O="click",z="listBound",V="itemChange",B="activate",L="deactivate",R=".VirtualList",N=w.extend({init:function(t,n){var o=this;o.bound(!1),o._fetching=!1,b.fn.init.call(o,t,n),o.options.itemHeight||(o.options.itemHeight=s()),n=o.options,o.element.addClass(T+" "+x).attr("role","listbox"),o.content=o.element.wrap("<div unselectable='on' class='"+C+"'></div>").parent(),o.wrapper=o.content.wrap("<div class='"+y+"'></div>").parent(),o.header=o.content.before("<div class='"+S+"'></div>").prev(),o.element.on("mouseenter"+R,"li:not(.k-loading-item)",function(){e(this).addClass(M)}).on("mouseleave"+R,"li",function(){e(this).removeClass(M)}),o._values=i(o.options.value),o._selectedDataItems=[],o._selectedIndexes=[],o._rangesList={},o._activeDeferred=null,o._promisesList=[],o._optionID=v.guid(),o.setDataSource(n.dataSource),o.content.on("scroll"+R,v.throttle(function(){o._renderItems(),o._triggerListBound()},n.delay)),o._selectable()},options:{name:"VirtualList",autoBind:!0,delay:100,height:null,listScreens:4,threshold:.5,itemHeight:null,oppositeBuffer:1,type:"flat",selectable:!1,value:[],dataValueField:null,template:"#:data#",placeholderTemplate:"loading...",groupTemplate:"#:data#",fixedGroupTemplate:"fixed header template",valueMapper:null},events:[H,O,z,V,B,L],setOptions:function(e){b.fn.setOptions.call(this,e),this._selectProxy&&this.options.selectable===!1?this.element.off(O,"."+D,this._selectProxy):!this._selectProxy&&this.options.selectable&&this._selectable(),this.refresh()},items:function(){return e(this._items)},destroy:function(){this.wrapper.off(R),this.dataSource.unbind(H,this._refreshHandler),b.fn.destroy.call(this)},setDataSource:function(t){var n,i=this,o=t||{};o=e.isArray(o)?{data:o}:o,o=v.data.DataSource.create(o),i.dataSource?(i.dataSource.unbind(H,i._refreshHandler),i._clean(),i.bound(!1),i._deferValueSet=!0,n=i.value(),i.value([]),i.mute(function(){i.value(n)})):i._refreshHandler=e.proxy(i.refresh,i),i.dataSource=o.bind(H,i._refreshHandler),i.setDSFilter(o.filter()),0!==o.view().length?i.refresh():i.options.autoBind&&o.fetch()},skip:function(){return this.dataSource.currentRangeStart()},_triggerListBound:function(){var e=this,t=e.skip();e.bound()&&!e._selectingValue&&e._skip!==t&&(e._skip=t,e.trigger(z))},_getValues:function(t){var n=this._valueGetter;return e.map(t,function(e){return n(e)})},refresh:function(e){var t,n=this,i=e&&e.action,o="itemchange"===i,r=this.isFiltered();n._mute||(n._deferValueSet=!1,n._fetching?(n._renderItems&&n._renderItems(!0),n._triggerListBound()):(r&&n.focus(0),n._createList(),i||!n._values.length||r||n.options.skipUpdateOnBind?(n.bound(!0),n._triggerListBound()):(n._selectingValue=!0,n.value(n._values,!0).done(function(){n.bound(!0),n._selectingValue=!1,n._triggerListBound()}))),(o||"remove"===i)&&(t=g(n._selectedDataItems,e.items),t.changed.length&&(o?n.trigger("selectedItemChange",{items:t.changed}):n.value(n._getValues(t.unchanged)))),n._fetching=!1)},removeAt:function(e){return this._selectedIndexes.splice(e,1),this._values.splice(e,1),{position:e,dataItem:this._selectedDataItems.splice(e,1)[0]}},setValue:function(e){this._values=i(e)},value:function(n,o){var r=this;return n===t?r._values.slice():(null===n&&(n=[]),n=i(n),"multiple"===r.options.selectable&&r.select().length&&n.length&&r.select(-1),r._valueDeferred&&"resolved"!==r._valueDeferred.state()||(r._valueDeferred=e.Deferred()),n.length||r.select(-1),r._values=n,(r.bound()&&!r._mute&&!r._deferValueSet||o)&&r._prefetchByValue(n),r._valueDeferred)},_prefetchByValue:function(e){var n,r,a,s=this,l=s._dataView,u=s._valueGetter,c=!1,d=[];for(r=0;e.length>r;r++)for(a=0;l.length>a;a++)n=l[a].item,n&&(c=o(n)?e[r]===n:e[r]===u(n),c&&d.push(l[a].index));if(d.length===e.length)return s._values=[],s.select(d),t;if("function"!=typeof s.options.valueMapper)throw Error("valueMapper is not provided");s.options.valueMapper({value:"multiple"===this.options.selectable?e:e[0],success:function(e){e=e===t||-1===e||null===e?[]:i(e),e.length?(s._values=[],s._selectedIndexes=[],s._selectedDataItems=[]):e=[-1],s.select(e)}})},deferredRange:function(t){var n=this.dataSource,i=this.itemCount,o=this._rangesList,r=e.Deferred(),a=[],s=Math.floor(t/i)*i,l=Math.ceil(t/i)*i,u=l===s?[l]:[s,l];return e.each(u,function(t,r){var s,l=r+i,u=o[r];u&&u.end===l?s=u.deferred:(s=e.Deferred(),o[r]={end:l,deferred:s},n._multiplePrefetch(r,i,function(){s.resolve()})),a.push(s)}),e.when.apply(e,a).then(function(){r.resolve()}),r},prefetch:function(t){var n=this,i=this.itemCount,o=!n._promisesList.length;return n._activeDeferred||(n._activeDeferred=e.Deferred(),n._promisesList=[]),e.each(t,function(e,t){var o=Math.floor(t/i)*i;t===o&&o>i&&(o-=i),n._promisesList.push(n.deferredRange(o))}),o&&e.when.apply(e,n._promisesList).done(function(){n._activeDeferred.resolve(),n._activeDeferred=null,n._promisesList=[]}),n._activeDeferred},_findDataItem:function(e){var t,n,i=this.dataSource.view();if("group"===this.options.type)for(n=0;i.length>n;n++){if(t=i[n].items,!(e>=t.length))return t[e];e-=t.length}return i[e]},selectedDataItems:function(){return this._selectedDataItems.slice()},scrollTo:function(e){this.content.scrollTop(e)},scrollToIndex:function(e){this.scrollTo(e*this.options.itemHeight)},focus:function(i){var o,r,a,s,l,u,c=this.options.itemHeight,d=this._optionID,p=!0;if(i===t)return s=this.element.find("."+A),s.length?s:null;if("function"==typeof i)for(a=this.dataSource.flatView(),l=0;a.length>l;l++)if(i(a[l])){i=l;break}return i instanceof Array&&(i=n(i)),isNaN(i)?(o=e(i),r=parseInt(e(o).attr("data-offset-index"),10)):(r=i,o=this._getElementByIndex(r)),-1===r?(this.element.find("."+A).removeClass(A),this._focusedIndex=t,t):(o.length?(o.hasClass(A)&&(p=!1),this._focusedIndex!==t&&(s=this._getElementByIndex(this._focusedIndex),s.removeClass(A).removeAttr("id"),p&&this.trigger(L)),this._focusedIndex=r,o.addClass(A).attr("id",d),u=this._getElementLocation(r),"top"===u?this.scrollTo(r*c):"bottom"===u?this.scrollTo(r*c+c-this.screenHeight):"outScreen"===u&&this.scrollTo(r*c),p&&this.trigger(B)):(this._focusedIndex=r,this.items().removeClass(A),this.scrollToIndex(r)),t)},focusIndex:function(){return this._focusedIndex},focusFirst:function(){this.scrollTo(0),this.focus(0)},focusLast:function(){var e=this.dataSource.total();this.scrollTo(this.heightContainer.offsetHeight),this.focus(e)},focusPrev:function(){var e,t=this._focusedIndex;return!isNaN(t)&&t>0?(t-=1,this.focus(t),e=this.focus(),e&&e.hasClass("k-loading-item")&&(t+=1,this.focus(t)),t):(t=this.dataSource.total()-1,this.focus(t),t)},focusNext:function(){var e,t=this._focusedIndex,n=this.dataSource.total()-1;return!isNaN(t)&&n>t?(t+=1,this.focus(t),e=this.focus(),e&&e.hasClass("k-loading-item")&&(t-=1,this.focus(t)),t):(t=0,this.focus(t),t)},_triggerChange:function(e,t){e=e||[],t=t||[],(e.length||t.length)&&this.trigger(H,{removed:e,added:t})},select:function(e){var i,o,r,a,s,l=this,u="multiple"!==l.options.selectable,c=!!l._activeDeferred,d=this.isFiltered(),p=[];return e===t?l._selectedIndexes.slice():(i=l._getIndecies(e),o=u&&!d&&n(i)===n(this._selectedIndexes),p=l._deselectCurrentValues(i),p.length||!i.length||o?(l._triggerChange(p),l._valueDeferred&&l._valueDeferred.resolve(),t):(1===i.length&&-1===i[0]&&(i=[]),a=l._deselect(i),p=a.removed,i=a.indices,u&&(l._activeDeferred=null,c=!1,i.length&&(i=[n(i)])),s=function(){var e=l._select(i);l.focus(i),l._triggerChange(p,e),l._valueDeferred&&l._valueDeferred.resolve()},r=l.prefetch(i),c||(r?r.done(s):s()),t))},bound:function(e){return e===t?this._listCreated:(this._listCreated=e,t)},mute:function(e){this._mute=!0,k(e(),this),this._mute=!1},setDSFilter:function(t){this._lastDSFilter=e.extend({},t)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!v.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},skipUpdate:e.noop,_getElementByIndex:function(t){return this.items().filter(function(n,i){return t===parseInt(e(i).attr("data-offset-index"),10)})},_clean:function(){this.result=t,this._lastScrollTop=t,this._skip=t,e(this.heightContainer).remove(),this.heightContainer=t,this.element.empty()},_height:function(){var e=!!this.dataSource.view().length,t=this.options.height,n=this.options.itemHeight,i=this.dataSource.total();return e?t/n>i&&(t=i*n):t=0,t},_screenHeight:function(){var e=this._height(),t=this.content;t.height(e),this.screenHeight=e},_getElementLocation:function(e){var t,n=this.content.scrollTop(),i=this.screenHeight,o=this.options.itemHeight,r=e*o,a=r+o,s=n+i;return t=r===n-o||a>n&&n>r?"top":r===s||s>r&&a>s?"bottom":r>=n&&n+(i-o)>=r?"inScreen":"outScreen"},_templates:function(){var e,t={template:this.options.template,placeholderTemplate:this.options.placeholderTemplate,groupTemplate:this.options.groupTemplate,fixedGroupTemplate:this.options.fixedGroupTemplate};for(e in t)"function"!=typeof t[e]&&(t[e]=v.template(t[e]));this.templates=t},_generateItems:function(e,t){for(var n,i=[],o=this.options.itemHeight+"px";t-- >0;)n=document.createElement("li"),n.tabIndex=-1,n.className=D+" "+F,n.setAttribute("role","option"),n.style.height=o,n.style.minHeight=o,e.appendChild(n),i.push(n);return i},_saveInitialRanges:function(){var t,n=this.dataSource._ranges,i=e.Deferred();for(i.resolve(),this._rangesList={},t=0;n.length>t;t++)this._rangesList[n[t].start]={end:n[t].end,deferred:i}},_createList:function(){var t=this,n=t.content.get(0),i=t.options,o=t.dataSource;t.bound()&&t._clean(),t._saveInitialRanges(),t._screenHeight(),t._buildValueGetter(),t.itemCount=r(t.screenHeight,i.listScreens,i.itemHeight),t.itemCount>o.total()&&(t.itemCount=o.total()),t._templates(),t._items=t._generateItems(t.element[0],t.itemCount),t._setHeight(i.itemHeight*o.total()),t.options.type=(o.group()||[]).length?"group":"flat","flat"===t.options.type?t.header.hide():t.header.show(),t.getter=t._getter(function(){t._renderItems(!0)}),t._onScroll=function(e,n){var i=t._listItems(t.getter);return t._fixedHeader(e,i(e,n))},t._renderItems=t._whenChanged(c(n,t._onScroll),d(t._reorderList(t._items,e.proxy(m,t)))),t._renderItems(),t._calculateGroupPadding(t.screenHeight)},_setHeight:function(e){var t,n,i=this.heightContainer;if(i?t=i.offsetHeight:i=this.heightContainer=a(this.content[0],E),e!==t)for(i.innerHTML="";e>0;)n=Math.min(e,25e4),a(i).style.height=n+"px",e-=n},_getter:function(){var e=null,t=this.dataSource,n=t.skip(),i=this.options.type,o=this.itemCount,r={};return t.pageSize()<o&&this.mute(function(){t.pageSize(o)}),function(a,s){var l,u,c,d,p,h,f,m,g=this;if(t.inRange(s,o)){if(n!==s&&this.mute(function(){t.range(s,o),n=s}),"group"===i){if(!r[s])for(u=r[s]=[],c=t.view(),d=0,p=c.length;p>d;d++)for(h=c[d],f=0,m=h.items.length;m>f;f++)u.push({item:h.items[f],group:h.value});l=r[s][a-s]}else l=t.view()[a-s];return l}return e!==s&&(e=s,n=s,g._getterDeferred&&g._getterDeferred.reject(),g._getterDeferred=g.deferredRange(s),g._getterDeferred.then(function(){var e=g._indexConstraint(g.content[0].scrollTop);g._getterDeferred=null,e>=s&&s+o>=e&&(g._fetching=!0,t.range(s,o))})),null}},_fixedHeader:function(e,t){var n,i=this.currentVisibleGroup,o=this.options.itemHeight,r=Math.floor((e-t.top)/o),a=t.items[r];return a&&a.item&&(n=a.group,n!==i&&(this.header[0].innerHTML=n||"",this.currentVisibleGroup=n)),t},_itemMapper:function(e,t,n){var i,r=this.options.type,a=this.options.itemHeight,s=this._focusedIndex,l=!1,u=!1,c=!1,d=null,p=!1,h=this._valueGetter;if("group"===r&&(e&&(c=0===t||this._currentGroup&&this._currentGroup!==e.group,this._currentGroup=e.group),d=e?e.group:null,e=e?e.item:null),!this.isFiltered()&&n.length&&e)for(i=0;n.length>i;i++)if(p=o(e)?n[i]===e:n[i]===h(e)){n.splice(i,1),l=!0;break}return s===t&&(u=!0),{item:e?e:null,group:d,newGroup:c,selected:l,current:u,index:t,top:t*a}},_range:function(e){var t,n,i,o=this.itemCount,r=this._values.slice(),a=[];for(this._view={},this._currentGroup=null,n=e,i=e+o;i>n;n++)t=this._itemMapper(this.getter(n,e),n,r),a.push(t),this._view[t.index]=t;return this._dataView=a,a},_getDataItemsCollection:function(e,t){var n=this._range(this._listIndex(e,t));return{index:n.length?n[0].index:0,top:n.length?n[0].top:0,items:n}},_listItems:function(){var t=this.screenHeight,n=this.options,i=u(n,t);return e.proxy(function(e,t){var n=this.result,o=this._lastScrollTop;return!t&&n&&i(n,e,o)||(n=this._getDataItemsCollection(e,o)),this._lastScrollTop=e,this.result=n,n},this)},_whenChanged:function(e,t){var n;return function(i){var o=e(i);o!==n&&(n=o,t(o,i))}},_reorderList:function(t,n){var i=this,o=t.length,r=-(1/0);return n=e.proxy(h(n,this.templates),this),function(e,a,s){var l,u,c=a-r;s||Math.abs(c)>=o?(l=t,u=e):(l=f(t,c),u=c>0?e.slice(-c):e.slice(0,-c)),n(l,u,i.bound()),r=a}},_bufferSizes:function(){var e=this.options;return l(this.screenHeight,e.listScreens,e.oppositeBuffer)},_indexConstraint:function(e){var t=this.itemCount,n=this.options.itemHeight,i=this.dataSource.total();return Math.min(Math.max(i-t,0),Math.max(0,Math.floor(e/n)))},_listIndex:function(e,t){var n,i=this._bufferSizes();return n=e-(e>t?i.down:i.up),this._indexConstraint(n)},_selectable:function(){this.options.selectable&&(this._selectProxy=e.proxy(this,"_clickHandler"),this.element.on(O+R,"."+D,this._selectProxy))},_getIndecies:function(e){var t,n,i=[];if("function"==typeof e)for(t=this.dataSource.flatView(),n=0;t.length>n;n++)if(e(t[n])){i.push(n);break}return"number"==typeof e&&i.push(e),e instanceof jQuery&&(e=parseInt(e.attr("data-offset-index"),10),isNaN(e)||i.push(e)),e instanceof Array&&(i=e),i},_deselect:function(n){var i,o,r,a,s,l=[],u=this._selectedIndexes,c=0,d=this.options.selectable,p=0;if(n=n.slice(),d!==!0&&n.length){if("multiple"===d)for(s=0;n.length>s;s++)if(c=e.inArray(n[s],u),i=u[c],i!==t){if(r=this._getElementByIndex(i),!r.hasClass("k-state-selected"))continue;r.removeClass(P),this._values.splice(c,1),this._selectedIndexes.splice(c,1),o=this._selectedDataItems.splice(c,1)[0],n.splice(s,1),l.push({index:i,position:c+p,dataItem:o}),p++,s--}}else{for(a=0;u.length>a;a++)u[a]!==t&&(this._getElementByIndex(u[a]).removeClass(P),l.push({index:u[a],position:a,dataItem:this._selectedDataItems[a]}));this._values=[],this._selectedDataItems=[],this._selectedIndexes=[]}return{indices:n,removed:l}},_deselectCurrentValues:function(t){var n,i,o,r,a=this.element[0].children,s=this._values,l=[],u=0;if("multiple"!==this.options.selectable||!this.isFiltered())return[];for(;t.length>u;u++){for(o=-1,i=t[u],n=this._valueGetter(this._view[i].item),r=0;s.length>r;r++)if(n==s[r]){o=r;break}o>-1&&(l.push(this.removeAt(o)),e(a[i]).removeClass("k-state-selected"))}return l},_select:function(t){var n,i,r=this,a="multiple"!==this.options.selectable,s=this.dataSource,l=this.itemCount,u=this._valueGetter,c=[];return a&&(r._selectedIndexes=[],r._selectedDataItems=[],r._values=[]),i=s.skip(),e.each(t,function(e,t){var a=l>t?1:Math.floor(t/l)+1,d=(a-1)*l;r.mute(function(){s.range(d,l),n=r._findDataItem([t-d]),r._selectedIndexes.push(t),r._selectedDataItems.push(n),r._values.push(o(n)?n:u(n)),c.push({index:t,dataItem:n}),r._getElementByIndex(t).addClass(P),s.range(i,l)})}),c},_clickHandler:function(t){var n=e(t.currentTarget);!t.isDefaultPrevented()&&n.attr("data-uid")&&this.trigger(O,{item:n})},_buildValueGetter:function(){this._valueGetter=v.getter(this.options.dataValueField)},_calculateGroupPadding:function(e){var t=this.items().first(),n=this.header,i=0;n[0]&&"none"!==n[0].style.display&&("auto"!==e&&(i=v.support.scrollbar()),i+=parseFloat(t.css("border-right-width"),10)+parseFloat(t.children(".k-group").css("right"),10),n.css("padding-right",i))}});v.ui.VirtualList=N,v.ui.plugin(N)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.view.min",["kendo.core.min","kendo.fx.min","kendo.mobile.scroller.min","kendo.view.min"],e)}(function(){return function(e,t){function n(e){var t,n,i=e.find(y("popover")),o=s.roles;for(t=0,n=i.length;n>t;t++)r.initWidget(i[t],{},o)}function i(e){r.triggeredByInput(e)||e.preventDefault()}function o(t){t.each(function(){r.initWidget(e(this),{},s.roles)})}var r=window.kendo,a=r.mobile,s=a.ui,l=r.attr,u=s.Widget,c=r.ViewClone,d="init",p='<div style="height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 20000; display: none" />',h="beforeShow",f="show",m="afterShow",g="beforeHide",v="transitionEnd",_="transitionStart",b="hide",w="destroy",k=r.attrValue,y=r.roleSelector,x=r.directiveSelector,C=r.compileMobileDirective,T=u.extend({init:function(t,n){u.fn.init.call(this,t,n),this.params={},e.extend(this,n),this.transition=this.transition||this.defaultTransition,this._id(),this.options.$angular?this._overlay():(this._layout(),this._overlay(),this._scroller(),this._model())},events:[d,h,f,m,g,b,w,_,v],options:{name:"View",title:"",layout:null,getLayout:e.noop,reload:!1,transition:"",defaultTransition:"",useNativeScrolling:!1,stretch:!1,zoom:!1,model:null,modelScope:window,scroller:{},initWidgets:!0},enable:function(e){t===e&&(e=!0),e?this.overlay.hide():this.overlay.show()},destroy:function(){this.layout&&this.layout.detach(this),this.trigger(w),u.fn.destroy.call(this),this.scroller&&this.scroller.destroy(),this.options.$angular&&this.element.scope().$destroy(),r.destroy(this.element)},purge:function(){this.destroy(),this.element.remove()},triggerBeforeShow:function(){return this.trigger(h,{view:this})?!1:!0},triggerBeforeHide:function(){return this.trigger(g,{view:this})?!1:!0},showStart:function(){var e=this.element;e.css("display",""),this.inited?this._invokeNgController():(this.inited=!0,this.trigger(d,{view:this})),this.layout&&this.layout.attach(this),this._padIfNativeScrolling(),this.trigger(f,{view:this}),r.resize(e)},showEnd:function(){this.trigger(m,{view:this}),this._padIfNativeScrolling()},hideEnd:function(){var e=this;e.element.hide(),e.trigger(b,{view:e}),e.layout&&e.layout.trigger(b,{view:e,layout:e.layout})},beforeTransition:function(e){this.trigger(_,{type:e})},afterTransition:function(e){this.trigger(v,{type:e})},_padIfNativeScrolling:function(){if(a.appLevelNativeScrolling()){var e=r.support.mobileOS&&r.support.mobileOS.android,t=a.application.skin()||"",n=a.application.os.android||t.indexOf("android")>-1,i="flat"===t||t.indexOf("material")>-1,o=!e&&!n||i?"header":"footer",s=!e&&!n||i?"footer":"header";
this.content.css({paddingTop:this[o].height(),paddingBottom:this[s].height()})}},contentElement:function(){var e=this;return e.options.stretch?e.content:e.scrollerContent},clone:function(){return new c(this)},_scroller:function(){var t=this;a.appLevelNativeScrolling()||(t.options.stretch?t.content.addClass("km-stretched-view"):(t.content.kendoMobileScroller(e.extend(t.options.scroller,{zoom:t.options.zoom,useNative:t.options.useNativeScrolling})),t.scroller=t.content.data("kendoMobileScroller"),t.scrollerContent=t.scroller.scrollElement),r.support.kineticScrollNeeded&&(e(t.element).on("touchmove",".km-header",i),t.options.useNativeScrolling||t.options.stretch||e(t.element).on("touchmove",".km-content",i)))},_model:function(){var e=this,t=e.element,i=e.options.model;"string"==typeof i&&(i=r.getter(i)(e.options.modelScope)),e.model=i,n(t),e.element.css("display",""),e.options.initWidgets&&(i?r.bind(t,i,s,r.ui,r.dataviz.ui):a.init(t.children())),e.element.css("display","none")},_id:function(){var e=this.element,t=e.attr("id")||"";this.id=k(e,"url")||"#"+t,"#"==this.id&&(this.id=r.guid(),e.attr("id",this.id))},_layout:function(){var e=y("content"),t=this.element;t.addClass("km-view"),this.header=t.children(y("header")).addClass("km-header"),this.footer=t.children(y("footer")).addClass("km-footer"),t.children(e)[0]||t.wrapInner("<div "+l("role")+'="content"></div>'),this.content=t.children(y("content")).addClass("km-content"),this.element.prepend(this.header).append(this.footer),this.layout=this.options.getLayout(this.layout),this.layout&&this.layout.setup(this)},_overlay:function(){this.overlay=e(p).appendTo(this.element)},_invokeNgController:function(){var t,n,i;this.options.$angular&&(t=this.element.controller(),n=this.options.$angular[0],t&&(i=e.proxy(this,"_callController",t,n),/^\$(digest|apply)$/.test(n.$$phase)?i():n.$apply(i)))},_callController:function(e,t){this.element.injector().invoke(e.constructor,e,{$scope:t})}}),S=u.extend({init:function(e,t){u.fn.init.call(this,e,t),e=this.element,this.header=e.children(this._locate("header")).addClass("km-header"),this.footer=e.children(this._locate("footer")).addClass("km-footer"),this.elements=this.header.add(this.footer),n(e),this.options.$angular||r.mobile.init(this.element.children()),this.element.detach(),this.trigger(d,{layout:this})},_locate:function(e){return this.options.$angular?x(e):y(e)},options:{name:"Layout",id:null,platform:null},events:[d,f,b],setup:function(e){e.header[0]||(e.header=this.header),e.footer[0]||(e.footer=this.footer)},detach:function(e){var t=this;e.header===t.header&&t.header[0]&&e.element.prepend(t.header.detach()[0].cloneNode(!0)),e.footer===t.footer&&t.footer.length&&e.element.append(t.footer.detach()[0].cloneNode(!0))},attach:function(e){var t=this,n=t.currentView;n&&t.detach(n),e.header===t.header&&(t.header.detach(),e.element.children(y("header")).remove(),e.element.prepend(t.header)),e.footer===t.footer&&(t.footer.detach(),e.element.children(y("footer")).remove(),e.element.append(t.footer)),t.trigger(f,{layout:t,view:e}),t.currentView=e}}),D=r.Observable,F=/<body[^>]*>(([\u000a\u000d\u2028\u2029]|.)*)<\/body>/i,E="loadStart",I="loadComplete",P="showStart",A="sameViewRequested",M="viewShow",H="viewTypeDetermined",O="after",z=D.extend({init:function(t){var n,i,a,s,l=this;if(D.fn.init.call(l),e.extend(l,t),l.sandbox=e("<div />"),a=l.container,n=l._hideViews(a),l.rootView=n.first(),!l.rootView[0]&&t.rootNeeded)throw i=a[0]==r.mobile.application.element[0]?'Your kendo mobile application element does not contain any direct child elements with data-role="view" attribute set. Make sure that you instantiate the mobile application using the correct container.':'Your pane element does not contain any direct child elements with data-role="view" attribute set.',Error(i);l.layouts={},l.viewContainer=new r.ViewContainer(l.container),l.viewContainer.bind("accepted",function(e){e.view.params=l.params}),l.viewContainer.bind("complete",function(e){l.trigger(M,{view:e.view})}),l.viewContainer.bind(O,function(){l.trigger(O)}),this.getLayoutProxy=e.proxy(this,"_getLayout"),l._setupLayouts(a),s=a.children(l._locate("modalview drawer")),l.$angular?(l.$angular[0].viewOptions={defaultTransition:l.transition,loader:l.loader,container:l.container,getLayout:l.getLayoutProxy},s.each(function(n,i){C(e(i),t.$angular[0])})):o(s),this.bind(this.events,t)},events:[P,O,M,E,I,A,H],destroy:function(){r.destroy(this.container);for(var e in this.layouts)this.layouts[e].destroy()},view:function(){return this.viewContainer.view},showView:function(e,t,n){if(e=e.replace(RegExp("^"+this.remoteViewURLPrefix),""),""===e&&this.remoteViewURLPrefix&&(e="/"),e.replace(/^#/,"")===this.url)return this.trigger(A),!1;this.trigger(P);var i=this,o=function(n){return i.viewContainer.show(n,t,e)},a=i._findViewElement(e),s=r.widgetInstance(a);return i.url=e.replace(/^#/,""),i.params=n,s&&s.reload&&(s.purge(),a=[]),this.trigger(H,{remote:0===a.length,url:e}),a[0]?(s||(s=i._createView(a)),o(s)):(this.serverNavigation?location.href=e:i._loadView(e,o),!0)},append:function(e,t){var n,i,r,a=this.sandbox,s=(t||"").split("?")[0],u=this.container;return F.test(e)&&(e=RegExp.$1),a[0].innerHTML=e,u.append(a.children("script, style")),n=this._hideViews(a),r=n.first(),r.length||(n=r=a.wrapInner("<div data-role=view />").children()),s&&r.hide().attr(l("url"),s),this._setupLayouts(a),i=a.children(this._locate("modalview drawer")),u.append(a.children(this._locate("layout modalview drawer")).add(n)),o(i),this._createView(r)},_locate:function(e){return this.$angular?x(e):y(e)},_findViewElement:function(e){var t,n=e.split("?")[0];return n?(t=this.container.children("["+l("url")+"='"+n+"']"),t[0]||-1!==n.indexOf("/")||(t=this.container.children("#"===n.charAt(0)?n:"#"+n)),t):this.rootView},_createView:function(e){return this.$angular?C(e,this.$angular[0]):r.initWidget(e,{defaultTransition:this.transition,loader:this.loader,container:this.container,getLayout:this.getLayoutProxy,modelScope:this.modelScope,reload:k(e,"reload")},s.roles)},_getLayout:function(e){return""===e?null:e?this.layouts[e]:this.layouts[this.layout]},_loadView:function(t,n){this._xhr&&this._xhr.abort(),this.trigger(E),this._xhr=e.get(r.absoluteURL(t,this.remoteViewURLPrefix),"html").always(e.proxy(this,"_xhrComplete",n,t))},_xhrComplete:function(e,t,n){var i=!0;if("object"==typeof n&&0===n.status){if(!(n.responseText&&n.responseText.length>0))return;i=!0,n=n.responseText}this.trigger(I),i&&e(this.append(n,t))},_hideViews:function(e){return e.children(this._locate("view splitview")).hide()},_setupLayouts:function(t){var n,i=this;t.children(i._locate("layout")).each(function(){n=i.$angular?C(e(this),i.$angular[0]):r.initWidget(e(this),{},s.roles);var t=n.options.platform;t&&t!==a.application.os.name?n.destroy():i.layouts[n.options.id]=n})}});r.mobile.ViewEngine=z,s.plugin(T),s.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.loader.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r=e.map(n.eventMap,function(e){return e}).join(" ").split(" "),a=o.extend({init:function(t,n){var i=this,r=e('<div class="km-loader"><span class="km-loading km-spin"></span><span class="km-loading-left"></span><span class="km-loading-right"></span></div>');o.fn.init.call(i,r,n),i.container=t,i.captureEvents=!1,i._attachCapture(),r.append(i.options.loading).hide().appendTo(t)},options:{name:"Loader",loading:"<h1>Loading...</h1>",timeout:100},show:function(){var e=this;clearTimeout(e._loading),e.options.loading!==!1&&(e.captureEvents=!0,e._loading=setTimeout(function(){e.element.show()},e.options.timeout))},hide:function(){this.captureEvents=!1,clearTimeout(this._loading),this.element.hide()},changeMessage:function(e){this.options.loading=e,this.element.find(">h1").html(e)},transition:function(){this.captureEvents=!0,this.container.css("pointer-events","none")},transitionDone:function(){this.captureEvents=!1,this.container.css("pointer-events","")},_attachCapture:function(){function e(e){n.captureEvents&&e.preventDefault()}var t,n=this;for(n.captureEvents=!1,t=0;r.length>t;t++)n.container[0].addEventListener(r[t],e,!0)}});i.plugin(a)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.pane.min",["kendo.mobile.view.min","kendo.mobile.loader.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.roleSelector,r=i.ui,a=r.Widget,s=i.ViewEngine,l=r.View,u=i.ui.Loader,c="external",d="href",p="#!",h="navigate",f="viewShow",m="sameViewRequested",g=n.support.mobileOS,v=g.ios&&!g.appMode&&g.flatVersion>=700,_=/popover|actionsheet|modalview|drawer/,b="#:back",w=n.attrValue,k=a.extend({init:function(e,t){var i=this;a.fn.init.call(i,e,t),t=i.options,e=i.element,e.addClass("km-pane"),i.options.collapsible&&e.addClass("km-collapsible-pane"),this.history=[],this.historyCallback=function(e,t,n){var o=i.transition;return i.transition=null,v&&n&&(o="none"),i.viewEngine.showView(e,o,t)},this._historyNavigate=function(e){if(e===b){if(1===i.history.length)return;i.history.pop(),e=i.history[i.history.length-1]}else i.history.push(e);i.historyCallback(e,n.parseQueryStringParams(e))},this._historyReplace=function(e){var t=n.parseQueryStringParams(e);i.history[i.history.length-1]=e,i.historyCallback(e,t)},i.loader=new u(e,{loading:i.options.loading}),i.viewEngine=new s({container:e,transition:t.transition,modelScope:t.modelScope,rootNeeded:!t.initial,serverNavigation:t.serverNavigation,remoteViewURLPrefix:t.root||"",layout:t.layout,$angular:t.$angular,loader:i.loader,showStart:function(){i.loader.transition(),i.closeActiveDialogs()},after:function(){i.loader.transitionDone()},viewShow:function(e){i.trigger(f,e)},loadStart:function(){i.loader.show()},loadComplete:function(){i.loader.hide()},sameViewRequested:function(){i.trigger(m)},viewTypeDetermined:function(e){e.remote&&i.options.serverNavigation||i.trigger(h,{url:e.url})}}),this._setPortraitWidth(),n.onResize(function(){i._setPortraitWidth()}),i._setupAppLinks()},closeActiveDialogs:function(){var t=this.element.find(o("actionsheet popover modalview")).filter(":visible");t.each(function(){n.widgetInstance(e(this),r).close()})},navigateToInitial:function(){var e=this.options.initial;return e&&this.navigate(e),e},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window,loading:"<h1>Loading...</h1>"},events:[h,f,m],append:function(e){return this.viewEngine.append(e)},destroy:function(){a.fn.destroy.call(this),this.viewEngine.destroy(),this.userEvents.destroy()},navigate:function(e,t){e instanceof l&&(e=e.id),this.transition=t,this._historyNavigate(e)},replace:function(e,t){e instanceof l&&(e=e.id),this.transition=t,this._historyReplace(e)},bindToRouter:function(e){var t=this,i=this.history,o=this.viewEngine;e.bind("init",function(t){var r,a=t.url,s=e.pushState?a:"/";o.rootView.attr(n.attr("url"),s),r=i.length,"/"===a&&r&&(e.navigate(i[r-1],!0),t.preventDefault())}),e.bind("routeMissing",function(e){t.historyCallback(e.url,e.params,e.backButtonPressed)||e.preventDefault()}),e.bind("same",function(){t.trigger(m)}),t._historyNavigate=function(t){e.navigate(t)},t._historyReplace=function(t){e.replace(t)}},hideLoading:function(){this.loader.hide()},showLoading:function(){this.loader.show()},changeLoadingMessage:function(e){this.loader.changeMessage(e)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var e,t=this.options.portraitWidth;t&&(e=n.mobile.application.element.is(".km-vertical")?t:"auto",this.element.css("width",e))},_setupAppLinks:function(){var t=this,i="tab",r="[data-"+n.ns+"navigate-on-press]",a=e.map(["button","backbutton","detailbutton","listview-link"],function(e){return o(e)+":not("+r+")"}).join(",");this.element.handler(this).on("down",o(i)+","+r,"_mouseup").on("click",o(i)+","+a+","+r,"_appLinkClick"),this.userEvents=new n.UserEvents(this.element,{fastTap:!0,filter:a,tap:function(e){e.event.currentTarget=e.touch.currentTarget,t._mouseup(e.event)}}),this.element.css("-ms-touch-action","")},_appLinkClick:function(t){var n=e(t.currentTarget).attr("href"),i=n&&"#"!==n[0]&&this.options.serverNavigation;i||w(e(t.currentTarget),"rel")==c||t.preventDefault()},_mouseup:function(o){if(!(o.which>1||o.isDefaultPrevented())){var a=this,s=e(o.currentTarget),l=w(s,"transition"),u=w(s,"rel")||"",h=w(s,"target"),f=s.attr(d),m=v&&0===s[0].offsetHeight,g=f&&"#"!==f[0]&&this.options.serverNavigation;m||g||u===c||t===f||f===p||(s.attr(d,p),setTimeout(function(){s.attr(d,f)}),u.match(_)?(n.widgetInstance(e(f),r).openFor(s),("actionsheet"===u||"drawer"===u)&&o.stopPropagation()):("_top"===h?a=i.application.pane:h&&(a=e("#"+h).data("kendoMobilePane")),a.navigate(f,l)),o.preventDefault())}}});k.wrap=function(e){e.is(o("view"))||(e=e.wrap("<div data-"+n.ns+'role="view" data-stretch="true"></div>').parent());var t=e.wrap('<div class="km-pane-wrapper"><div></div></div>').parent(),i=new k(t);return i.navigate(""),i},r.plugin(k)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.popover.min",["kendo.popup.min","kendo.mobile.pane.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=i.ui,r="hide",a="open",s="close",l='<div class="km-popup-wrapper" />',u='<div class="km-popup-arrow" />',c='<div class="km-popup-overlay" />',d="km-up km-down km-left km-right",p=o.Widget,h={down:{origin:"bottom center",position:"top center"},up:{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"}},f={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},m={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},g={up:"down",down:"up",left:"right",right:"left"},v=p.extend({init:function(t,i){var o,a,s=this,d=t.closest(".km-modalview-wrapper"),g=t.closest(".km-root").children(".km-pane").first(),v=d[0]?d:g;i.viewport?g=i.viewport:g[0]||(g=window),i.container?v=i.container:v[0]||(v=document.body),o={viewport:g,copyAnchorStyles:!1,autosize:!0,open:function(){s.overlay.show()},activate:e.proxy(s._activate,s),deactivate:function(){s.overlay.hide(),s._apiCall||s.trigger(r),s._apiCall=!1}},p.fn.init.call(s,t,i),t=s.element,i=s.options,t.wrap(l).addClass("km-popup").show(),a=s.options.direction.match(/left|right/)?"horizontal":"vertical",s.dimensions=m[a],s.wrapper=t.parent().css({width:i.width,height:i.height}).addClass("km-popup-wrapper km-"+i.direction).hide(),s.arrow=e(u).prependTo(s.wrapper).hide(),s.overlay=e(c).appendTo(v).hide(),o.appendTo=s.overlay,i.className&&s.overlay.addClass(i.className),s.popup=new n.ui.Popup(s.wrapper,e.extend(!0,o,f,h[i.direction]))},options:{name:"Popup",width:240,height:"",direction:"down",container:null,viewport:null},events:[r],show:function(t){this.popup.options.anchor=e(t),this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){p.fn.destroy.call(this),this.popup.destroy(),this.overlay.remove()},target:function(){return this.popup.options.anchor},_activate:function(){var t=this,n=t.options.direction,i=t.dimensions,o=i.offset,r=t.popup,a=r.options.anchor,s=e(a).offset(),l=e(r.element).offset(),u=r.flipped?g[n]:n,c=2*t.arrow[i.size](),p=t.element[i.size]()-t.arrow[i.size](),h=e(a)[i.size](),f=s[o]-l[o]+h/2;c>f&&(f=c),f>p&&(f=p),t.wrapper.removeClass(d).addClass("km-"+u),t.arrow.css(o,f).show()}}),_=p.extend({init:function(t,i){var r,a=this;a.initialOpen=!1,p.fn.init.call(a,t,i),r=e.extend({className:"km-popover-root",hide:function(){a.trigger(s)}},this.options.popup),a.popup=new v(a.element,r),a.popup.overlay.on("move",function(e){e.target==a.popup.overlay[0]&&e.preventDefault()}),a.pane=new o.Pane(a.element,e.extend(this.options.pane,{$angular:this.options.$angular})),n.notify(a,o)},options:{name:"PopOver",popup:{},pane:{}},events:[a,s],open:function(e){this.popup.show(e),this.initialOpen?this.pane.view()._invokeNgController():(this.pane.navigateToInitial()||this.pane.navigate(""),this.popup.popup._position(),this.initialOpen=!0)},openFor:function(e){this.open(e),this.trigger(a,{target:this.popup.target()})},close:function(){this.popup.hide()},destroy:function(){p.fn.destroy.call(this),this.pane.destroy(),this.popup.destroy(),n.destroy(this.element)}});o.plugin(v),o.plugin(_)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.shim.min",["kendo.popup.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=n.ui.Popup,r='<div class="km-shim"/>',a="hide",s=i.Widget,l=s.extend({init:function(t,i){var l=this,u=n.mobile.application,c=n.support.mobileOS,d=u?u.os.name:c?c.name:"ios",p="ios"===d||"wp"===d||(u?u.os.skin:!1),h="blackberry"===d,f=i.align||(p?"bottom center":h?"center right":"center center"),m=i.position||(p?"bottom center":h?"center right":"center center"),g=i.effect||(p?"slideIn:up":h?"slideIn:left":"fade:in"),v=e(r).handler(l).hide();s.fn.init.call(l,t,i),l.shim=v,t=l.element,i=l.options,i.className&&l.shim.addClass(i.className),i.modal||l.shim.on("down","_hide"),(u?u.element:e(document.body)).append(v),l.popup=new o(l.element,{anchor:v,modal:!0,appendTo:v,origin:f,position:m,animation:{open:{effects:g,duration:i.duration},close:{duration:i.duration}},close:function(e){var t=!1;l._apiCall||(t=l.trigger(a)),t&&e.preventDefault(),l._apiCall=!1},deactivate:function(){v.hide()},open:function(){v.show()}}),n.notify(l)},events:[a],options:{name:"Shim",modal:!1,align:t,position:t,effect:t,duration:200},show:function(){this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){s.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()},_hide:function(t){t&&e.contains(this.shim.children().children(".k-popup")[0],t.target)||this.popup.close()}});i.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.modalview.min",["kendo.mobile.shim.min","kendo.mobile.view.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Shim,r=i.Widget,a="beforeOpen",s="open",l="close",u="init",c='<div class="km-modalview-wrapper" />',d=i.View.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n._id(),n._wrap(),n._shim(),this.options.$angular||(n._layout(),n._scroller(),n._model()),n.element.css("display",""),n.trigger(u)},events:[u,a,s,l],options:{name:"ModalView",modal:!0,width:null,height:null},destroy:function(){r.fn.destroy.call(this),this.shim.destroy()},open:function(t){var n=this;n.target=e(t),n.shim.show(),n._invokeNgController(),n.trigger("show",{view:n})},openFor:function(e){this.trigger(a,{target:e})||(this.open(e),this.trigger(s,{target:e}))},close:function(){this.element.is(":visible")&&!this.trigger(l)&&this.shim.hide()},_wrap:function(){var e,t,n=this,i=n.element,o=n.options;e=i[0].style.width||"auto",t=i[0].style.height||"auto",i.addClass("km-modalview").wrap(c),n.wrapper=i.parent().css({width:o.width||e||300,height:o.height||t||300}).addClass("auto"==t?" km-auto-height":""),i.css({width:"",height:""})},_shim:function(){var e=this;e.shim=new o(e.wrapper,{modal:e.options.modal,position:"center center",align:"center center",effect:"fade:in",className:"km-modalview-root",hide:function(t){e.trigger(l)&&t.preventDefault()}})}});i.plugin(d)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.drawer.min",["kendo.mobile.view.min","kendo.userevents.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,o=n.support.mobileOS,r=n.effects.Transition,a=n.roleSelector,s="x",l=i.ui,u=!(o.ios&&7==o.majorVersion&&!o.appMode),c="beforeShow",d="init",p="show",h="hide",f="afterHide",m={enable:e.noop},g=l.View.extend({init:function(t,o){var r,s,l,c,p;if(e(t).parent().prepend(t),i.ui.Widget.fn.init.call(this,t,o),this.options.$angular||(this._layout(),this._scroller()),this._model(),r=this.element.closest(a("pane")).data("kendoMobilePane"))this.pane=r,this.pane.bind("viewShow",function(e){c._viewShow(e)}),this.pane.bind("sameViewRequested",function(){c.hide()}),s=this.userEvents=new n.UserEvents(r.element,{fastTap:!0,filter:a("view splitview"),allowSelection:!0});else{if(this.currentView=m,l=e(this.options.container),!l)throw Error("The drawer needs a container configuration option set.");s=this.userEvents=new n.UserEvents(l,{fastTap:!0,allowSelection:!0}),this._attachTransition(l)}c=this,p=function(e){c.visible&&(c.hide(),e.preventDefault())},this.options.swipeToOpen&&u?(s.bind("press",function(){c.transition.cancel()}),s.bind("start",function(e){c._start(e)}),s.bind("move",function(e){c._update(e)}),s.bind("end",function(e){c._end(e)}),s.bind("tap",p)):s.bind("press",p),this.leftPositioned="left"===this.options.position,this.visible=!1,this.element.hide().addClass("km-drawer").addClass(this.leftPositioned?"km-left-drawer":"km-right-drawer"),this.trigger(d)},options:{name:"Drawer",position:"left",views:[],swipeToOpenViews:[],swipeToOpen:!0,title:"",container:null},events:[c,h,f,d,p],show:function(){this._activate()&&this._show()},hide:function(){this.currentView&&(this.currentView.enable(),g.current=null,this._moveViewTo(0),this.trigger(h,{view:this}))},openFor:function(){this.visible?this.hide():this.show()},destroy:function(){l.View.fn.destroy.call(this),this.userEvents.destroy()},_activate:function(){if(this.visible)return!0;var e=this._currentViewIncludedIn(this.options.views);return!e||this.trigger(c,{view:this})?!1:(this._setAsCurrent(),this.element.show(),this.trigger(p,{view:this}),this._invokeNgController(),!0)},_currentViewIncludedIn:function(t){if(!this.pane||!t.length)return!0;var n=this.pane.view();return e.inArray(n.id.replace("#",""),t)>-1||e.inArray(n.element.attr("id"),t)>-1},_show:function(){this.currentView.enable(!1),this.visible=!0;var e=this.element.width();this.leftPositioned||(e=-e),this._moveViewTo(e)},_setAsCurrent:function(){g.last!==this&&(g.last&&g.last.element.hide(),this.element.show()),g.last=this,g.current=this},_moveViewTo:function(e){this.userEvents.cancel(),this.transition.moveTo({location:e,duration:400,ease:r.easeOutExpo})},_viewShow:function(e){return this.currentView&&this.currentView.enable(),this.currentView===e.view?(this.hide(),t):(this.currentView=e.view,this._attachTransition(e.view.element),t)},_attachTransition:function(e){var t=this,i=this.movable,o=i&&i.x;this.transition&&(this.transition.cancel(),this.movable.moveAxis("x",0)),i=this.movable=new n.ui.Movable(e),this.transition=new r({axis:s,movable:this.movable,onEnd:function(){0===i[s]&&(e[0].style.cssText="",t.element.hide(),t.trigger(f),t.visible=!1)}}),o&&(e.addClass("k-fx-hidden"),n.animationFrame(function(){e.removeClass("k-fx-hidden"),t.movable.moveAxis(s,o),t.hide()}))},_start:function(e){var i,o,r,a,s,l=e.sender;return Math.abs(e.x.velocity)<Math.abs(e.y.velocity)||n.triggeredByInput(e.event)||!this._currentViewIncludedIn(this.options.swipeToOpenViews)?(l.cancel(),t):(i=this.leftPositioned,o=this.visible,r=i&&o||!i&&!g.current,a=!i&&o||i&&!g.current,s=0>e.x.velocity,(r&&s||a&&!s)&&this._activate()?(l.capture(),t):(l.cancel(),t))},_update:function(e){var t,n=this.movable,i=n.x+e.x.delta;t=this.leftPositioned?Math.min(Math.max(0,i),this.element.width()):Math.max(Math.min(0,i),-this.element.width()),this.movable.moveAxis(s,t),e.event.preventDefault(),e.event.stopPropagation()},_end:function(e){var t,n=e.x.velocity,i=Math.abs(this.movable.x)>this.element.width()/2,o=.8;t=this.leftPositioned?n>-o&&(n>o||i):o>n&&(-o>n||i),t?this._show():this.hide()}});l.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.splitview.min",["kendo.mobile.pane.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r="<div class='km-expanded-pane-shim' />",a=i.View,s=a.extend({init:function(t,a){var s,l,u=this;o.fn.init.call(u,t,a),t=u.element,e.extend(u,a),u._id(),u.options.$angular?u._overlay():(u._layout(),u._overlay()),u._style(),l=t.children(u._locate("modalview")),u.options.$angular?l.each(function(t,i){n.compileMobileDirective(e(i),a.$angular[0])}):n.mobile.init(l),u.panes=[],u._paramsHistory=[],u.options.$angular?(u.element.children(n.directiveSelector("pane")).each(function(){s=n.compileMobileDirective(e(this),a.$angular[0]),u.panes.push(s)}),u.element.children(n.directiveSelector("header footer")).each(function(){n.compileMobileDirective(e(this),a.$angular[0])})):u.content.children(n.roleSelector("pane")).each(function(){s=n.initWidget(this,{},i.roles),u.panes.push(s)}),u.expandedPaneShim=e(r).appendTo(u.element),u._shimUserEvents=new n.UserEvents(u.expandedPaneShim,{fastTap:!0,tap:function(){u.collapsePanes()}})},_locate:function(e){return this.options.$angular?n.directiveSelector(e):n.roleSelector(e)},options:{name:"SplitView",style:"horizontal"},expandPanes:function(){this.element.addClass("km-expanded-splitview")},collapsePanes:function(){this.element.removeClass("km-expanded-splitview")},_layout:function(){var e=this,t=e.element;e.transition=n.attrValue(t,"transition"),n.mobile.ui.View.prototype._layout.call(this),n.mobile.init(this.header.add(this.footer)),e.element.addClass("km-splitview"),e.content.addClass("km-split-content")},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-split-"+this)}))},showStart:function(){var t=this;t.element.css("display",""),t.inited?this._invokeNgController():(t.inited=!0,e.each(t.panes,function(){this.options.initial?this.navigateToInitial():this.navigate("")}),t.trigger("init",{view:t})),t.trigger("show",{view:t})}});i.plugin(s)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.application.min",["kendo.mobile.pane.min","kendo.router.min"],e)}(function(){return function(e,t){function n(e,t){var n=[];return f&&n.push("km-on-"+f.name),n.push(e.skin?"km-"+e.skin:"ios"==e.name&&e.majorVersion>6?"km-ios7":"km-"+e.name),("ios"==e.name&&7>e.majorVersion||"ios"!=e.name)&&n.push("km-"+e.name+e.majorVersion),n.push("km-"+e.majorVersion),n.push("km-m"+(e.minorVersion?e.minorVersion[0]:0)),e.variant&&(e.skin&&e.skin===e.name||!e.skin||e.setDefaultPlatform===!1)&&n.push("km-"+(e.skin?e.skin:e.name)+"-"+e.variant),e.cordova&&n.push("km-cordova"),n.push(e.appMode?"km-app":"km-web"),t&&t.statusBarStyle&&n.push("km-"+t.statusBarStyle+"-status-bar"),n.join(" ")}function i(t){return"km-wp-"+(t.noVariantSet?0===parseInt(e("<div style='background: Background' />").css("background-color").split(",")[1],10)?"dark":"light":t.variant+" km-wp-"+t.variant+"-force")}function o(e){return f.wp?"-kendo-landscape"==e.css("animation-name"):Math.abs(window.orientation)/90==1}function r(e){return o(e)?k:v}function a(e){e.parent().addBack().css("min-height",window.innerHeight)}function s(){e("meta[name=viewport]").remove(),O.append(x({height:", width=device-width"+(o()?", height="+window.innerHeight+"px":c.mobileOS.flatVersion>=600&&700>c.mobileOS.flatVersion?", height="+window.innerWidth+"px":", height=device-height")}))}var l=window.kendo,u=l.mobile,c=l.support,d=u.ui.Widget,p=u.ui.Pane,h="ios7",f=c.mobileOS,m="blackberry"==f.device&&f.flatVersion>=600&&1e3>f.flatVersion&&f.appMode,g=.93,v="km-vertical",_="chrome"===f.browser,b=f.ios&&f.flatVersion>=700&&800>f.flatVersion&&(f.appMode||_),w=Math.abs(window.orientation)/90==1,k="km-horizontal",y={ios7:{ios:!0,browser:"default",device:"iphone",flatVersion:"700",majorVersion:"7",minorVersion:"0.0",name:"ios",tablet:!1},ios:{ios:!0,browser:"default",device:"iphone",flatVersion:"612",majorVersion:"6",minorVersion:"1.2",name:"ios",tablet:!1},android:{android:!0,browser:"default",device:"android",flatVersion:"442",majorVersion:"4",minorVersion:"4.2",name:"android",tablet:!1},blackberry:{blackberry:!0,browser:"default",device:"blackberry",flatVersion:"710",majorVersion:"7",minorVersion:"1.0",name:"blackberry",tablet:!1},meego:{meego:!0,browser:"default",device:"meego",flatVersion:"850",majorVersion:"8",minorVersion:"5.0",name:"meego",tablet:!1},wp:{wp:!0,browser:"default",device:"wp",flatVersion:"800",majorVersion:"8",minorVersion:"0.0",name:"wp",tablet:!1}},x=l.template('<meta content="initial-scale=#: data.scale #, maximum-scale=#: data.scale #, user-scalable=no#=data.height#" name="viewport" />',{usedWithBlock:!1}),C=l.template('<meta name="apple-mobile-web-app-capable" content="#= data.webAppCapable === false ? \'no\' : \'yes\' #" /> <meta name="apple-mobile-web-app-status-bar-style" content="#=data.statusBarStyle#" /> <meta name="msapplication-tap-highlight" content="no" /> ',{usedWithBlock:!1}),T=l.template("<style>.km-view { clip: rect(0 #= data.width #px #= data.height #px 0); }</style>",{usedWithBlock:!1}),S=f.android&&"chrome"!=f.browser||f.blackberry,D=l.template('<link rel="apple-touch-icon'+(f.android?"-precomposed":"")+'" # if(data.size) { # sizes="#=data.size#" #}# href="#=data.icon#" />',{usedWithBlock:!1}),F=("iphone"==f.device||"ipod"==f.device)&&7>f.majorVersion,E=("iphone"==f.device||"ipod"==f.device)&&f.majorVersion>=7,I=E?"none":null,P="mobilesafari"==f.browser?60:0,A=20,M=e(window),H=window.screen,O=e("head"),z="init",V=e.proxy,B=d.extend({init:function(t,n){u.application=this,e(e.proxy(this,"bootstrap",t,n))},bootstrap:function(t,n){var i,o,r;t=e(t),t[0]||(t=e(document.body)),d.fn.init.call(this,t,n),this.element.removeAttr("data-"+l.ns+"role"),this._setupPlatform(),this._attachMeta(),this._setupElementClass(),this._attachHideBarHandlers(),i=e.extend({},this.options),delete i.name,o=this,r=function(){o.pane=new p(o.element,i),o.pane.navigateToInitial(),o.options.updateDocumentTitle&&o._setupDocumentTitle(),o._startHistory(),o.trigger(z)},this.options.$angular?setTimeout(r):r()},options:{name:"Application",hideAddressBar:!0,browserHistory:!0,historyTransition:I,modelScope:window,statusBarStyle:"black",transition:"",retina:!1,platform:null,skin:null,updateDocumentTitle:!0,useNativeScrolling:!1},events:[z],navigate:function(e,t){this.pane.navigate(e,t)},replace:function(e,t){this.pane.replace(e,t)},scroller:function(){return this.view().scroller},hideLoading:function(){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider activating loading in the application init event handler.");this.pane.hideLoading()},showLoading:function(){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider activating loading in the application init event handler.");this.pane.showLoading()},changeLoadingMessage:function(e){if(!this.pane)throw Error("The mobile application instance is not fully instantiated. Please consider changing the message in the application init event handler.");this.pane.changeLoadingMessage(e)},view:function(){return this.pane.view()},skin:function(e){var t=this;return arguments.length?(t.options.skin=e||"",t.element[0].className="km-pane",t._setupPlatform(),t._setupElementClass(),t.options.skin):t.options.skin},destroy:function(){d.fn.destroy.call(this),this.pane.destroy(),this.options.browserHistory&&this.router.destroy()},_setupPlatform:function(){var t=this,o=t.options.platform,r=t.options.skin,a=[],s=f||y[h];o&&(s.setDefaultPlatform=!0,"string"==typeof o?(a=o.split("-"),s=e.extend({variant:a[1]},s,y[a[0]])):s=o),r&&(a=r.split("-"),f||(s.setDefaultPlatform=!1),s=e.extend({},s,{skin:a[0],variant:a[1]})),s.variant||(s.noVariantSet=!0,s.variant="dark"),t.os=s,t.osCssClass=n(t.os,t.options),
"wp"==s.name&&(t.refreshBackgroundColorProxy||(t.refreshBackgroundColorProxy=e.proxy(function(){(t.os.variant&&t.os.skin&&t.os.skin===t.os.name||!t.os.skin)&&t.element.removeClass("km-wp-dark km-wp-light km-wp-dark-force km-wp-light-force").addClass(i(t.os))},t)),e(document).off("visibilitychange",t.refreshBackgroundColorProxy),e(document).off("resume",t.refreshBackgroundColorProxy),s.skin||(t.element.parent().css("overflow","hidden"),e(document).on("visibilitychange",t.refreshBackgroundColorProxy),e(document).on("resume",t.refreshBackgroundColorProxy),t.refreshBackgroundColorProxy()))},_startHistory:function(){this.options.browserHistory?(this.router=new l.Router({pushState:this.options.pushState,root:this.options.root,hashBang:this.options.hashBang}),this.pane.bindToRouter(this.router),this.router.start()):this.options.initial||this.pane.navigate("")},_resizeToScreenHeight:function(){var t,n=e("meta[name=apple-mobile-web-app-status-bar-style]").attr("content").match(/black-translucent|hidden/),i=this.element;t=_?window.innerHeight:o(i)?n?w?H.availWidth+A:H.availWidth:w?H.availWidth:H.availWidth-A:n?w?H.availHeight:H.availHeight+A:w?H.availHeight-A:H.availHeight,i.height(t)},_setupElementClass:function(){var t,n=this,i=n.element;i.parent().addClass("km-root km-"+(n.os.tablet?"tablet":"phone")),i.addClass(n.osCssClass+" "+r(i)),this.options.useNativeScrolling&&i.parent().addClass("km-native-scrolling"),_&&i.addClass("km-ios-chrome"),c.wpDevicePixelRatio&&i.parent().css("font-size",c.wpDevicePixelRatio+"em"),this.options.retina&&(i.parent().addClass("km-retina"),i.parent().css("font-size",c.devicePixelRatio*g+"em")),m&&s(),n.options.useNativeScrolling?i.parent().addClass("km-native-scrolling"):S&&(t=(screen.availWidth>screen.availHeight?screen.availWidth:screen.availHeight)+200,e(T({width:t,height:t})).appendTo(O)),b&&n._resizeToScreenHeight(),l.onResize(function(){i.removeClass("km-horizontal km-vertical").addClass(r(i)),n.options.useNativeScrolling&&a(i),b&&n._resizeToScreenHeight(),m&&s(),l.resize(i)})},_clearExistingMeta:function(){O.find("meta").filter("[name|='apple-mobile-web-app'],[name|='msapplication-tap'],[name='viewport']").remove()},_attachMeta:function(){var e,t=this.options,n=t.icon;if(this._clearExistingMeta(),m||O.prepend(x({height:"",scale:this.options.retina?1/c.devicePixelRatio:"1.0"})),O.prepend(C(t)),n){"string"==typeof n&&(n={"":n});for(e in n)O.prepend(D({icon:n[e],size:e}))}t.useNativeScrolling&&a(this.element)},_attachHideBarHandlers:function(){var e=this,t=V(e,"_hideBar");!c.mobileOS.appMode&&e.options.hideAddressBar&&F&&!e.options.useNativeScrolling&&(e._initialHeight={},M.on("load",t),l.onResize(function(){setTimeout(window.scrollTo,0,0,1)}))},_setupDocumentTitle:function(){var e=this,n=document.title;e.pane.bind("viewShow",function(e){var i=e.view.title;document.title=i!==t?i:n})},_hideBar:function(){var t=this,n=t.element;n.height(l.support.transforms.css+"calc(100% + "+P+"px)"),e(window).trigger(l.support.resize)}});l.mobile.Application=B,l.ui.plugin(B,l.mobile,"Mobile")}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.actionsheet.min",["kendo.mobile.popover.min","kendo.mobile.shim.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.support,o=n.mobile.ui,r=o.Shim,a=o.Popup,s=o.Widget,l="open",u="close",c="command",d="li>a",p="actionsheetContext",h='<div class="km-actionsheet-wrapper" />',f=n.template('<li class="km-actionsheet-cancel"><a href="\\#">#:cancel#</a></li>'),m=s.extend({init:function(t,l){var u,c,p,m=this,g=i.mobileOS;s.fn.init.call(m,t,l),l=m.options,p=l.type,t=m.element,c="auto"===p?g&&g.tablet:"tablet"===p,u=c?a:r,l.cancelTemplate&&(f=n.template(l.cancelTemplate)),t.addClass("km-actionsheet").append(f({cancel:m.options.cancel})).wrap(h).on("up",d,"_click").on("click",d,n.preventDefault),m.view().bind("destroy",function(){m.destroy()}),m.wrapper=t.parent().addClass(p?" km-actionsheet-"+p:""),m.shim=new u(m.wrapper,e.extend({modal:g.ios&&7>g.majorVersion,className:"km-actionsheet-root"},m.options.popup)),m._closeProxy=e.proxy(m,"_close"),m._shimHideProxy=e.proxy(m,"_shimHide"),m.shim.bind("hide",m._shimHideProxy),c&&n.onResize(m._closeProxy),n.notify(m,o)},events:[l,u,c],options:{name:"ActionSheet",cancel:"Cancel",type:"auto",popup:{height:"auto"}},open:function(t,n){var i=this;i.target=e(t),i.context=n,i.shim.show(t)},close:function(){this.context=this.target=null,this.shim.hide()},openFor:function(e){var t=this,n=e.data(p);t.open(e,n),t.trigger(l,{target:e,context:n})},destroy:function(){s.fn.destroy.call(this),n.unbindResize(this._closeProxy),this.shim.destroy()},_click:function(t){var i,o,r,a;t.isDefaultPrevented()||(i=e(t.currentTarget),o=i.data("action"),o&&(r={target:this.target,context:this.context},a=this.options.$angular,a?this.element.injector().get("$parse")(o)(a[0])(r):n.getter(o)(window)(r)),this.trigger(c,{target:this.target,context:this.context,currentTarget:i}),t.preventDefault(),this._close())},_shimHide:function(e){this.trigger(u)?e.preventDefault():this.context=this.target=null},_close:function(e){this.trigger(u)?e.preventDefault():this.close()}});o.plugin(m)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.button.min",["kendo.userevents.min"],e)}(function(){return function(e,t){function n(t,n,i){e(n.target).closest(".km-button,.km-detail").toggleClass("km-state-active",i),c&&t.deactivateTimeoutID&&(clearTimeout(t.deactivateTimeoutID),t.deactivateTimeoutID=0)}function i(t){return e('<span class="km-badge">'+t+"</span>")}var o=window.kendo,r=o.mobile,a=r.ui,s=a.Widget,l=o.support,u=l.mobileOS,c=u.android&&u.flatVersion>=300,d="click",p="disabled",h="km-state-disabled",f=s.extend({init:function(e,t){var i,r=this;s.fn.init.call(r,e,t),i="up"===r.options.clickOn,r._wrap(),r._style(),i||r.element.attr("data-navigate-on-press",!0),r.options.enable=r.options.enable&&!r.element.attr(p),r.enable(r.options.enable),r._userEvents=new o.UserEvents(r.element,{allowSelection:!i,fastTap:!0,press:function(e){r._activate(e)},release:function(e){n(r,e,!1),i||e.event.stopPropagation()}}),r._userEvents.bind(i?"tap":"press",function(e){r._release(e)}),c&&r.element.on("move",function(e){r._timeoutDeactivate(e)})},destroy:function(){s.fn.destroy.call(this),this._userEvents.destroy()},events:[d],options:{name:"Button",icon:"",style:"",badge:"",clickOn:"up",enable:!0},badge:function(e){var t=this.badgeElement=this.badgeElement||i(e).appendTo(this.element);return e||0===e?(t.html(e),this):e===!1?(t.empty().remove(),this.badgeElement=!1,this):t.html()},enable:function(e){var n=this.element;t===e&&(e=!0),this.options.enable=e,e?n.removeAttr(p):n.attr(p,p),n.toggleClass(h,!e)},_timeoutDeactivate:function(e){this.deactivateTimeoutID||(this.deactivateTimeoutID=setTimeout(n,500,this,e,!1))},_activate:function(e){var t=document.activeElement,i=t?t.nodeName:"";this.options.enable&&(n(this,e,!0),("INPUT"==i||"TEXTAREA"==i)&&t.blur())},_release:function(n){var i=this;if(!(n.which>1))return i.options.enable?(i.trigger(d,{target:e(n.target),button:i.element})&&n.preventDefault(),t):(n.preventDefault(),t)},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,o=t.options.badge,r='<span class="km-icon km-'+n,a=t.element.addClass("km-button"),s=a.children("span:not(.km-icon)").addClass("km-text"),l=a.find("img").addClass("km-image");!s[0]&&a.html()&&(s=a.wrapInner('<span class="km-text" />').children("span.km-text")),!l[0]&&n&&(s[0]||(r+=" km-notext"),t.iconElement=a.prepend(e(r+'" />'))),(o||0===o)&&(t.badgeElement=i(o).appendTo(a))}}),m=f.extend({options:{name:"BackButton",style:"back"},init:function(e,n){var i=this;f.fn.init.call(i,e,n),t===i.element.attr("href")&&i.element.attr("href","#:back")}}),g=f.extend({options:{name:"DetailButton",style:""},init:function(e,t){f.fn.init.call(this,e,t)},_style:function(){var t,n=this.options.style+" detail",i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-"+this)}))},_wrap:function(){var t=this,n=t.options.icon,i='<span class="km-icon km-'+n,o=t.element,r=o.children("span"),a=o.find("img").addClass("km-image");!a[0]&&n&&(r[0]||(i+=" km-notext"),o.prepend(e(i+'" />')))}});a.plugin(f),a.plugin(m),a.plugin(g)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.buttongroup.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){return e('<span class="km-badge">'+t+"</span>")}var i=window.kendo,o=i.mobile.ui,r=o.Widget,a="km-state-active",s="km-state-disabled",l="select",u="li:not(."+a+")",c=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n.element.addClass("km-buttongroup").find("li").each(n._button),n.element.on(n.options.selectOn,u,"_select"),n._enable=!0,n.select(n.options.index),n.options.enable||(n._enable=!1,n.wrapper.addClass(s))},events:[l],options:{name:"ButtonGroup",selectOn:"down",index:-1,enable:!0},current:function(){return this.element.find("."+a)},select:function(n){var i=this,o=-1;n!==t&&-1!==n&&i._enable&&!e(n).is("."+s)&&(i.current().removeClass(a),"number"==typeof n?(o=n,n=e(i.element[0].children[n])):n.nodeType&&(n=e(n),o=n.index()),n.addClass(a),i.selectedIndex=o)},badge:function(t,i){var o,r=this.element;return isNaN(t)||(t=r.children().get(t)),t=r.find(t),o=e(t.children(".km-badge")[0]||n(i).appendTo(t)),i||0===i?(o.html(i),this):i===!1?(o.empty().remove(),this):o.html()},enable:function(e){var n=this.wrapper;t===e&&(e=!0),e?n.removeClass(s):n.addClass(s),this._enable=this.options.enable=e},_button:function(){var t=e(this).addClass("km-button"),o=i.attrValue(t,"icon"),r=i.attrValue(t,"badge"),a=t.children("span"),s=t.find("img").addClass("km-image");a[0]||(a=t.wrapInner("<span/>").children("span")),a.addClass("km-text"),!s[0]&&o&&t.prepend(e('<span class="km-icon km-'+o+'"/>')),(r||0===r)&&n(r).appendTo(t)},_select:function(e){e.which>1||e.isDefaultPrevented()||!this._enable||(this.select(e.currentTarget),this.trigger(l,{index:this.selectedIndex}))}});o.plugin(c)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.collapsible.min",["kendo.core.min"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile.ui,o=i.Widget,r="km-collapsible",a="km-collapsible-header",s="km-collapsible-content",l="km-collapsibleinset",u="<div data-role='collapsible-header' class='"+a+"'></div>",c="<div data-role='collapsible-content' class='"+s+"'></div>",d="km-collapsed",p="km-expanded",h="km-animated",f="left",m="expand",g="collapse",v=o.extend({init:function(t,i){var a=this,s=e(t);o.fn.init.call(a,s,i),s.addClass(r),a._buildHeader(),a.content=s.children().not(a.header).wrapAll(c).parent(),a._userEvents=new n.UserEvents(a.header,{fastTap:!0,tap:function(){a.toggle()}}),s.addClass(a.options.collapsed?d:p),a.options.inset&&s.addClass(l),a.options.animation?(a.content.addClass(h),a.content.height(0),a.options.collapsed&&a.content.hide()):a.options.collapsed&&a.content.hide()},events:[m,g],options:{name:"Collapsible",collapsed:!0,collapseIcon:"arrow-n",expandIcon:"arrow-s",iconPosition:f,animation:!0,inset:!1},destroy:function(){o.fn.destroy.call(this),this._userEvents.destroy()},expand:function(e){var t=this.options.collapseIcon,i=this.content,o=n.support.mobileOS.ios;this.trigger(m)||(t&&this.header.find(".km-icon").removeClass().addClass("km-icon km-"+t),this.element.removeClass(d).addClass(p),this.options.animation&&!e?(i.off("transitionend"),i.show(),o&&i.removeClass(h),i.height(this._getContentHeight()),o&&i.addClass(h),n.resize(i)):i.show())},collapse:function(e){var t=this.options.expandIcon,n=this.content;this.trigger(g)||(t&&this.header.find(".km-icon").removeClass().addClass("km-icon km-"+t),this.element.removeClass(p).addClass(d),this.options.animation&&!e?(n.one("transitionend",function(){n.hide()}),n.height(0)):n.hide())},toggle:function(e){this.isCollapsed()?this.expand(e):this.collapse(e)},isCollapsed:function(){return this.element.hasClass(d)},resize:function(){!this.isCollapsed()&&this.options.animation&&this.content.height(this._getContentHeight())},_buildHeader:function(){var t=this.element.children(":header").wrapAll(u),n=e('<span class="km-icon"/>'),i=this.options.collapsed?this.options.expandIcon:this.options.collapseIcon,o=this.options.iconPosition;i&&(t.prepend(n),n.addClass("km-"+i)),this.header=t.parent(),this.header.addClass("km-icon-"+o)},_getContentHeight:function(){var e,t=this.content.attr("style");return this.content.css({position:"absolute",visibility:"hidden",height:"auto"}),e=this.content.height(),this.content.attr("style",t?t:""),e}});i.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.listview.min",["kendo.data.min","kendo.userevents.min","kendo.mobile.button.min"],e)}(function(){return function(e,t){function n(){return this.nodeType===v.TEXT_NODE&&this.nodeValue.match(W)}function i(e,t){t&&!e[0].querySelector(".km-icon")&&e.prepend('<span class="km-icon km-'+t+'"/>')}function o(e){i(e,S(e,"icon")),i(e,S(e.children(C),"icon"))}function r(e){var t=e.parent(),o=e.add(t.children(g.roleSelector("detailbutton"))),r=t.contents().not(o).not(n);r.length||(e.addClass("km-listview-link").attr(g.attr("role"),"listview-link"),i(e,S(t,"icon")),i(e,S(e,"icon")))}function a(e){if(e[0].querySelector("input[type=checkbox],input[type=radio]")){var t=e.parent();t.contents().not(e).not(function(){return 3==this.nodeType})[0]||(e.addClass("km-listview-label"),e.children("[type=checkbox],[type=radio]").addClass("km-widget km-icon km-check"))}}function s(t,n){e(t).css("transform","translate3d(0px, "+n+"px, 0px)")}var l,u,c,d,p,h,f,m,g=window.kendo,v=window.Node,_=g.mobile,b=_.ui,w=g.data.DataSource,k=b.DataBoundWidget,y=".km-list > li, > li:not(.km-group-container)",x=".km-listview-link, .km-listview-label",C="["+g.attr("icon")+"]",T=e.proxy,S=g.attrValue,D="km-group-title",F="km-state-active",E='<div class="'+D+'"><div class="km-text"></div></div>',I=g.template('<li><div class="'+D+'"><div class="km-text">#= this.headerTemplate(data) #</div></div><ul>#= kendo.render(this.template, data.items)#</ul></li>'),P='<div class="km-listview-wrapper" />',A=g.template('<form class="km-filter-form"><div class="km-filter-wrap"><input type="search" placeholder="#=placeholder#"/><a href="\\#" class="km-filter-reset" title="Clear"><span class="km-icon km-clear"></span><span class="km-text">Clear</span></a></div></form>'),M=".kendoMobileListView",H="styled",O="dataBound",z="dataBinding",V="itemChange",B="click",L="change",R="progress",N="function",W=/^\s+$/,U=/button/,j=g.Class.extend({init:function(e){var t,n,i=e.scroller();i&&(this.options=e.options,this.element=e.element,this.scroller=e.scroller(),this._shouldFixHeaders(),t=this,n=function(){t._cacheHeaders()},e.bind("resize",n),e.bind(H,n),e.bind(O,n),i.bind("scroll",function(e){t._fixHeader(e)}))},_fixHeader:function(t){if(this.fixedHeaders){var n,i,o,r=0,a=this.scroller,s=this.headers,l=t.scrollTop;do{if(n=s[r++],!n){o=e("<div />");break}i=n.offset,o=n.header}while(i+1>l);this.currentHeader!=r&&(a.fixedContainer.html(o.clone()),this.currentHeader=r)}},_shouldFixHeaders:function(){this.fixedHeaders="group"===this.options.type&&this.options.fixedHeaders},_cacheHeaders:function(){if(this._shouldFixHeaders(),this.fixedHeaders){var t=[],n=this.scroller.scrollTop;this.element.find("."+D).each(function(i,o){o=e(o),t.unshift({offset:o.position().top+n,header:o})}),this.headers=t,this._fixHeader({scrollTop:n})}}}),q=function(){return{page:1}},$=g.Class.extend({init:function(e){var t=this,n=e.options,i=e.scroller(),o=n.pullParameters||q;this.listView=e,this.scroller=i,e.bind("_dataSource",function(e){t.setDataSource(e.dataSource)}),i.setOptions({pullToRefresh:!0,pull:function(){t._pulled||(t._pulled=!0,t.dataSource.read(o.call(e,t._first)))},messages:{pullTemplate:n.messages.pullTemplate,releaseTemplate:n.messages.releaseTemplate,refreshTemplate:n.messages.refreshTemplate}})},setDataSource:function(e){var t=this;this._first=e.view()[0],this.dataSource=e,e.bind("change",function(){t._change()}),e.bind("error",function(){t._change()})},_change:function(){var e,t=this.scroller,n=this.dataSource;this._pulled&&t.pullHandled(),(this._pulled||!this._first)&&(e=n.view(),e[0]&&(this._first=e[0])),this._pulled=!1}}),G=g.Observable.extend({init:function(e){var t=this;g.Observable.fn.init.call(t),t.buffer=e.buffer,t.height=e.height,t.item=e.item,t.items=[],t.footer=e.footer,t.buffer.bind("reset",function(){t.refresh()})},refresh:function(){for(var e,t,n,i,o=this.buffer,r=this.items,a=!1;r.length;)r.pop().destroy();for(this.offset=o.offset,e=this.item,i=0;o.viewSize>i;i++){if(i===o.total()){a=!0;break}n=e(this.content(this.offset+r.length)),n.below(t),t=n,r.push(n)}this.itemCount=r.length,this.trigger("reset"),this._resize(),a&&this.trigger("endReached")},totalHeight:function(){if(!this.items[0])return 0;var e=this,t=e.items,n=t[0].top,i=t[t.length-1].bottom,o=(i-n)/e.itemCount,r=e.buffer.length-e.offset-e.itemCount;return(this.footer?this.footer.height:0)+i+r*o},batchUpdate:function(e){var t,n,i=this.height(),o=this.items,r=this.offset;if(o[0]){if(this.lastDirection)for(;o[o.length-1].bottom>e+2*i&&0!==this.offset;)this.offset--,t=o.pop(),t.update(this.content(this.offset)),t.above(o[0]),o.unshift(t);else for(;e-i>o[0].top;){if(n=this.offset+this.itemCount,n===this.buffer.total()){this.trigger("endReached");break}if(n===this.buffer.length)break;t=o.shift(),t.update(this.content(this.offset+this.itemCount)),t.below(o[o.length-1]),o.push(t),this.offset++}r!==this.offset&&this._resize()}},update:function(e){var t,n,i,o,r=this,a=this.items,s=this.height(),l=this.itemCount,u=s/2,c=(this.lastTop||0)>e,d=e-u,p=e+s+u;a[0]&&(this.lastTop=e,this.lastDirection=c,c?a[0].top>d&&a[a.length-1].bottom>p+u&&this.offset>0&&(this.offset--,t=a.pop(),n=a[0],t.update(this.content(this.offset)),a.unshift(t),t.above(n),r._resize()):p>a[a.length-1].bottom&&d-u>a[0].top&&(o=this.offset+l,o===this.buffer.total()?this.trigger("endReached"):o!==this.buffer.length&&(t=a.shift(),i=a[a.length-1],a.push(t),t.update(this.content(this.offset+this.itemCount)),r.offset++,t.below(i),r._resize())))},content:function(e){return this.buffer.at(e)},destroy:function(){this.unbind()},_resize:function(){var e=this.items,t=0,n=0,i=e[0],o=e[e.length-1];i&&(t=i.top,n=o.bottom),this.trigger("resize",{top:t,bottom:n}),this.footer&&this.footer.below(o)}});g.mobile.ui.VirtualList=G,l=g.Class.extend({init:function(t,n){var i=t.append([n],!0)[0],o=i.offsetHeight;e.extend(this,{top:0,element:i,listView:t,height:o,bottom:o})},update:function(e){this.element=this.listView.setDataItem(this.element,e)},above:function(e){e&&(this.height=this.element.offsetHeight,this.top=e.top-this.height,this.bottom=e.top,s(this.element,this.top))},below:function(e){e&&(this.height=this.element.offsetHeight,this.top=e.bottom,this.bottom=this.top+this.height,s(this.element,this.top))},destroy:function(){g.destroy(this.element),e(this.element).remove()}}),u='<div><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span></div>',c=g.Class.extend({init:function(t){this.element=e('<li class="km-load-more km-scroller-refresh" style="display: none"></li>').appendTo(t.element),this._loadIcon=e(u).appendTo(this.element)},enable:function(){this.element.show(),this.height=this.element.outerHeight(!0)},disable:function(){this.element.hide(),this.height=0},below:function(e){e&&(this.top=e.bottom,this.bottom=this.height+this.top,s(this.element,this.top))}}),d=c.extend({init:function(t,n){this._loadIcon=e(u).hide(),this._loadButton=e('<a class="km-load">'+t.options.messages.loadMoreText+"</a>").hide(),this.element=e('<li class="km-load-more" style="display: none"></li>').append(this._loadIcon).append(this._loadButton).appendTo(t.element);var i=this;this._loadButton.kendoMobileButton().data("kendoMobileButton").bind("click",function(){i._hideShowButton(),n.next()}),n.bind("resize",function(){i._showLoadButton()}),this.height=this.element.outerHeight(!0),this.disable()},_hideShowButton:function(){this._loadButton.hide(),this.element.addClass("km-scroller-refresh"),this._loadIcon.css("display","block")},_showLoadButton:function(){this._loadButton.show(),this.element.removeClass("km-scroller-refresh"),this._loadIcon.hide()}}),p=g.Class.extend({init:function(e){var t=this;this.chromeHeight=e.wrapper.children().not(e.element).outerHeight()||0,this.listView=e,this.scroller=e.scroller(),this.options=e.options,e.bind("_dataSource",function(e){t.setDataSource(e.dataSource,e.empty)}),e.bind("resize",function(){t.list.items.length&&(t.scroller.reset(),t.buffer.range(0),t.list.refresh())}),this.scroller.makeVirtual(),this.scroller.bind("scroll",function(e){t.list.update(e.scrollTop)}),this.scroller.bind("scrollEnd",function(e){t.list.batchUpdate(e.scrollTop)})},destroy:function(){this.list.unbind(),this.buffer.unbind()},setDataSource:function(t,n){var i,o,r,a,s=this,u=this.options,p=this.listView,h=p.scroller(),f=u.loadMore;if(this.dataSource=t,i=t.pageSize()||u.virtualViewSize,!i&&!n)throw Error("the DataSource does not have page size configured. Page Size setting is mandatory for the mobile listview virtual scrolling to work as expected.");this.buffer&&this.buffer.destroy(),o=new g.data.Buffer(t,Math.floor(i/2),f),r=f?new d(p,o):new c(p),this.list&&this.list.destroy(),a=new G({buffer:o,footer:r,item:function(e){return new l(p,e)},height:function(){return h.height()}}),a.bind("resize",function(){s.updateScrollerSize(),p.updateSize()}),a.bind("reset",function(){s.footer.enable()}),a.bind("endReached",function(){r.disable(),s.updateScrollerSize()}),o.bind("expand",function(){a.lastDirection=!1,a.batchUpdate(h.scrollTop)}),e.extend(this,{buffer:o,scroller:h,list:a,footer:r})},updateScrollerSize:function(){this.scroller.virtualSize(0,this.list.totalHeight()+this.chromeHeight)},refresh:function(){this.list.refresh()},reset:function(){this.buffer.range(0),this.list.refresh()}}),h=g.Class.extend({init:function(e){var t,n=this;this.listView=e,this.options=e.options,t=this,this._refreshHandler=function(e){t.refresh(e)},this._progressHandler=function(){e.showLoading()},e.bind("_dataSource",function(e){n.setDataSource(e.dataSource)})},destroy:function(){this._unbindDataSource()},reset:function(){},refresh:function(e){var n,i,o,r,a,s,l,u=e&&e.action,c=e&&e.items,d=this.listView,p=this.dataSource,h=this.options.appendOnRefresh,f=p.view(),m=p.group(),g=m&&m[0];return"itemchange"===u?(d._hasBindingTarget()||(n=d.findByDataItem(c)[0],n&&d.setDataItem(n,c[0])),t):(a="add"===u&&!g||h&&!d._filter,s="remove"===u&&!g,a?i=[]:s&&(i=d.findByDataItem(c)),d.trigger(z,{action:u||"rebind",items:c,removedItems:i,index:e&&e.index})?(this._shouldShowLoading()&&d.hideLoading(),t):("add"!==u||g?"remove"!==u||g?g?d.replaceGrouped(f):h&&!d._filter?(o=d.prepend(f),r=f):d.replace(f):(o=[],d.remove(c)):(l=f.indexOf(c[0]),l>-1&&(o=d.insertAt(c,l),r=c)),this._shouldShowLoading()&&d.hideLoading(),d.trigger(O,{ns:b,addedItems:o,addedDataItems:r}),t))},setDataSource:function(e){this.dataSource&&this._unbindDataSource(),this.dataSource=e,e.bind(L,this._refreshHandler),this._shouldShowLoading()&&this.dataSource.bind(R,this._progressHandler)},_unbindDataSource:function(){this.dataSource.unbind(L,this._refreshHandler).unbind(R,this._progressHandler)},_shouldShowLoading:function(){var e=this.options;return!e.pullToRefresh&&!e.loadMore&&!e.endlessScroll}}),f=g.Class.extend({init:function(t){var n=this,i=t.options.filterable,o="change paste",r=this;this.listView=t,this.options=i,t.element.before(A({placeholder:i.placeholder||"Search..."})),i.autoFilter!==!1&&(o+=" keyup"),this.element=t.wrapper.find(".km-search-form"),this.searchInput=t.wrapper.find("input[type=search]").closest("form").on("submit"+M,function(e){e.preventDefault()}).end().on("focus"+M,function(){n._oldFilter=n.searchInput.val()}).on(o.split(" ").join(M+" ")+M,T(this._filterChange,this)),this.clearButton=t.wrapper.find(".km-filter-reset").on(B,T(this,"_clearFilter")).hide(),this._dataSourceChange=e.proxy(this._refreshInput,this),t.bind("_dataSource",function(e){e.dataSource.bind("change",r._dataSourceChange)})},_refreshInput:function(){var e=this.listView.dataSource.filter(),t=this.listView._filter.searchInput;t.val(e&&e.filters[0].field===this.listView.options.filterable.field?e.filters[0].value:"")},_search:function(e){this._filter=!0,this.clearButton[e?"show":"hide"](),this.listView.dataSource.filter(e)},_filterChange:function(e){var t=this;"paste"==e.type&&this.options.autoFilter!==!1?setTimeout(function(){t._applyFilter()},1):this._applyFilter()},_applyFilter:function(){var e=this.options,t=this.searchInput.val(),n=t.length?{field:e.field,operator:e.operator||"startswith",ignoreCase:e.ignoreCase,value:t}:null;t!==this._oldFilter&&(this._oldFilter=t,this._search(n))},_clearFilter:function(e){this.searchInput.val(""),this._search(null),e.preventDefault()}}),m=k.extend({init:function(t,n){var i=this;k.fn.init.call(this,t,n),t=this.element,n=this.options,n.scrollTreshold&&(n.scrollThreshold=n.scrollTreshold),t.on("down",x,"_highlight").on("move up cancel",x,"_dim"),this._userEvents=new g.UserEvents(t,{fastTap:!0,filter:y,allowSelection:!0,tap:function(e){i._click(e)}}),t.css("-ms-touch-action","auto"),t.wrap(P),this.wrapper=this.element.parent(),this._headerFixer=new j(this),this._itemsCache={},this._templates(),this.virtual=n.endlessScroll||n.loadMore,this._style(),this.options.$angular&&(this.virtual||this.options.pullToRefresh)?setTimeout(e.proxy(this,"_start")):this._start()},_start:function(){var e=this.options;this.options.filterable&&(this._filter=new f(this)),this._itemBinder=this.virtual?new p(this):new h(this),this.options.pullToRefresh&&(this._pullToRefreshHandler=new $(this)),this.setDataSource(e.dataSource),this._enhanceItems(this.items()),g.notify(this,b)},events:[B,z,O,V],options:{name:"ListView",style:"",type:"flat",autoBind:!0,fixedHeaders:!1,template:"#:data#",headerTemplate:'<span class="km-text">#:value#</span>',appendOnRefresh:!1,loadMore:!1,endlessScroll:!1,scrollThreshold:30,pullToRefresh:!1,messages:{loadMoreText:"Press to load more",pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},pullOffset:140,filterable:!1,virtualViewSize:null},refresh:function(){this._itemBinder.refresh()},reset:function(){this._itemBinder.reset()},setDataSource:function(e){var t=!e;this.dataSource=w.create(e),this.trigger("_dataSource",{dataSource:this.dataSource,empty:t}),this.options.autoBind&&!t&&(this.items().remove(),this.dataSource.fetch())},destroy:function(){k.fn.destroy.call(this),g.destroy(this.element),this._userEvents.destroy(),this._itemBinder&&this._itemBinder.destroy(),this.element.unwrap(),delete this.element,delete this.wrapper,delete this._userEvents},items:function(){return"group"===this.options.type?this.element.find(".km-list").children():this.element.children().not(".km-load-more")},scroller:function(){return this._scrollerInstance||(this._scrollerInstance=this.element.closest(".km-scroll-wrapper").data("kendoMobileScroller")),this._scrollerInstance},showLoading:function(){var e=this.view();e&&e.loader&&e.loader.show()},hideLoading:function(){var e=this.view();e&&e.loader&&e.loader.hide()},insertAt:function(e,t,n){var i=this;return i._renderItems(e,function(o){if(0===t?i.element.prepend(o):-1===t?i.element.append(o):i.items().eq(t-1).after(o),n)for(var r=0;o.length>r;r++)i.trigger(V,{item:o.eq(r),data:e[r],ns:b})})},append:function(e,t){return this.insertAt(e,-1,t)},prepend:function(e,t){return this.insertAt(e,0,t)},replace:function(e){return this.options.type="flat",this._angularItems("cleanup"),this.element.empty(),this._userEvents.cancel(),this._style(),this.insertAt(e,0)},replaceGrouped:function(t){this.options.type="group",this._angularItems("cleanup"),this.element.empty();var n=e(g.render(this.groupTemplate,t));this._enhanceItems(n.children("ul").children("li")),this.element.append(n),_.init(n),this._style(),this._angularItems("compile")},remove:function(e){var t=this.findByDataItem(e);this.angular("cleanup",function(){return{elements:t}}),g.destroy(t),t.remove()},findByDataItem:function(e){var t,n,i=[];for(t=0,n=e.length;n>t;t++)i[t]="[data-"+g.ns+"uid="+e[t].uid+"]";return this.element.find(i.join(","))},setDataItem:function(t,n){var i=this,o=function(o){var r=e(o[0]);g.destroy(t),i.angular("cleanup",function(){return{elements:[e(t)]}}),e(t).replaceWith(r),i.trigger(V,{item:r,data:n,ns:b})};return this._renderItems([n],o)[0]},updateSize:function(){this._size=this.getSize()},_renderItems:function(t,n){var i=e(g.render(this.template,t));return n(i),this.angular("compile",function(){return{elements:i,data:t.map(function(e){return{dataItem:e}})}}),_.init(i),this._enhanceItems(i),i},_dim:function(e){this._toggle(e,!1)},_highlight:function(e){this._toggle(e,!0)},_toggle:function(t,n){if(!(t.which>1)){var i=e(t.currentTarget),o=i.parent(),r=S(i,"role")||"",a=!r.match(U),s=t.isDefaultPrevented();a&&o.toggleClass(F,n&&!s)}},_templates:function(){var e=this.options.template,t=this.options.headerTemplate,n=' data-uid="#=arguments[0].uid || ""#"',i={},o={};typeof e===N&&(i.template=e,e="#=this.template(data)#"),this.template=T(g.template("<li"+n+">"+e+"</li>"),i),o.template=this.template,typeof t===N&&(o._headerTemplate=t,t="#=this._headerTemplate(data)#"),o.headerTemplate=g.template(t),this.groupTemplate=T(I,o)},_click:function(t){if(!(t.event.which>1||t.event.isDefaultPrevented())){var n,i=t.target,o=e(t.event.target),r=o.closest(g.roleSelector("button","detailbutton","backbutton")),a=g.widgetInstance(r,b),s=i.attr(g.attr("uid"));s&&(n=this.dataSource.getByUid(s)),this.trigger(B,{target:o,item:i,dataItem:n,button:a})&&t.preventDefault()}},_styleGroups:function(){var t=this.element.children();t.children("ul").addClass("km-list"),t.each(function(){var t=e(this),n=t.contents().first();t.addClass("km-group-container"),n.is("ul")||n.is("div."+D)||n.wrap(E)})},_style:function(){var e=this.options,t="group"===e.type,n=this.element,i="inset"===e.style;n.addClass("km-listview").toggleClass("km-list",!t).toggleClass("km-virtual-list",this.virtual).toggleClass("km-listinset",!t&&i).toggleClass("km-listgroup",t&&!i).toggleClass("km-listgroupinset",t&&i),n.parents(".km-listview")[0]||n.closest(".km-content").toggleClass("km-insetcontent",i),t&&this._styleGroups(),this.trigger(H)},_enhanceItems:function(t){t.each(function(){var t,n=e(this),i=!1;n.children().each(function(){t=e(this),t.is("a")?(r(t),i=!0):t.is("label")&&(a(t),i=!0)}),i||o(n)})}}),b.plugin(m)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.navbar.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(n,i){var r=i.find("["+o.attr("align")+"="+n+"]");return r[0]?e('<div class="km-'+n+'item" />').append(r).prependTo(i):t}function i(t){var n=t.siblings(),i=!!t.children("ul")[0],r=!!n[0]&&""===e.trim(t.text()),a=!(!o.mobile.application||!o.mobile.application.element.is(".km-android"));t.prevAll().toggleClass("km-absolute",i),t.toggleClass("km-show-title",r),t.toggleClass("km-fill-title",r&&!e.trim(t.html())),t.toggleClass("km-no-title",i),t.toggleClass("km-hide-title",a&&!n.children().is(":visible"))}var o=window.kendo,r=o.mobile,a=r.ui,s=a.Widget,l=s.extend({init:function(t,i){var o=this;s.fn.init.call(o,t,i),t=o.element,o.container().bind("show",e.proxy(this,"refresh")),t.addClass("km-navbar").wrapInner(e('<div class="km-view-title km-show-title" />')),o.leftElement=n("left",t),o.rightElement=n("right",t),
o.centerElement=t.find(".km-view-title")},options:{name:"NavBar"},title:function(e){this.element.find(o.roleSelector("view-title")).text(e),i(this.centerElement)},refresh:function(e){var t=e.view;this.title(t.options.title)},destroy:function(){s.fn.destroy.call(this),o.destroy(this.element)}});a.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.scrollview.min",["kendo.fx.min","kendo.data.min","kendo.draganddrop.min"],e)}(function(){return function(e,t){var n,i,o,r,a,s,l,u,c=window.kendo,d=c.mobile,p=d.ui,h=e.proxy,f=c.effects.Transition,m=c.ui.Pane,g=c.ui.PaneDimensions,v=p.DataBoundWidget,_=c.data.DataSource,b=c.data.Buffer,w=c.data.BatchBuffer,k=Math,y=k.abs,x=k.ceil,C=k.round,T=k.max,S=k.min,D=k.floor,F="change",E="changing",I="refresh",P="km-current-page",A="km-virtual-page",M="function",H="itemChange",O="cleanup",z=3,V=-1,B=0,L=1,R=-1,N=0,W=1,U=c.Class.extend({init:function(t){var n=this,i=e("<ol class='km-pages'/>");t.element.append(i),this._changeProxy=h(n,"_change"),this._refreshProxy=h(n,"_refresh"),t.bind(F,this._changeProxy),t.bind(I,this._refreshProxy),e.extend(n,{element:i,scrollView:t})},items:function(){return this.element.children()},_refresh:function(e){var t,n="";for(t=0;e.pageCount>t;t++)n+="<li/>";this.element.html(n),this.items().eq(e.page).addClass(P)},_change:function(e){this.items().removeClass(P).eq(e.page).addClass(P)},destroy:function(){this.scrollView.unbind(F,this._changeProxy),this.scrollView.unbind(I,this._refreshProxy),this.element.remove()}});c.mobile.ui.ScrollViewPager=U,n="transitionEnd",i="dragStart",o="dragEnd",r=c.Observable.extend({init:function(t,r){var a,s,l,u,d,p,h=this;c.Observable.fn.init.call(this),this.element=t,this.container=t.parent(),a=new c.ui.Movable(h.element),s=new f({axis:"x",movable:a,onEnd:function(){h.trigger(n)}}),l=new c.UserEvents(t,{fastTap:!0,start:function(e){2*y(e.x.velocity)>=y(e.y.velocity)?l.capture():l.cancel(),h.trigger(i,e),s.cancel()},allowSelection:!0,end:function(e){h.trigger(o,e)}}),u=new g({element:h.element,container:h.container}),d=u.x,d.bind(F,function(){h.trigger(F)}),p=new m({dimensions:u,userEvents:l,movable:a,elastic:!0}),e.extend(h,{duration:r&&r.duration||1,movable:a,transition:s,userEvents:l,dimensions:u,dimension:d,pane:p}),this.bind([n,i,o,F],r)},size:function(){return{width:this.dimensions.x.getSize(),height:this.dimensions.y.getSize()}},total:function(){return this.dimension.getTotal()},offset:function(){return-this.movable.x},updateDimension:function(){this.dimension.update(!0)},refresh:function(){this.dimensions.refresh()},moveTo:function(e){this.movable.moveAxis("x",-e)},transitionTo:function(e,t,n){n?this.moveTo(-e):this.transition.moveTo({location:e,duration:this.duration,ease:t})}}),c.mobile.ui.ScrollViewElasticPane=r,a=c.Observable.extend({init:function(e,t,n){var i=this;c.Observable.fn.init.call(this),i.element=e,i.pane=t,i._getPages(),this.page=0,this.pageSize=n.pageSize||1,this.contentHeight=n.contentHeight,this.enablePager=n.enablePager,this.pagerOverlay=n.pagerOverlay},scrollTo:function(e,t){this.page=e,this.pane.transitionTo(-e*this.pane.size().width,f.easeOutExpo,t)},paneMoved:function(e,t,n,i){var o,r,a=this,s=a.pane,l=s.size().width*a.pageSize,u=C,c=t?f.easeOutBack:f.easeOutExpo;e===R?u=x:e===W&&(u=D),r=u(s.offset()/l),o=T(a.minSnap,S(-r*l,a.maxSnap)),r!=a.page&&n&&n({currentPage:a.page,nextPage:r})&&(o=-a.page*s.size().width),s.transitionTo(o,c,i)},updatePage:function(){var e=this.pane,t=C(e.offset()/e.size().width);return t!=this.page?(this.page=t,!0):!1},forcePageUpdate:function(){return this.updatePage()},resizeTo:function(e){var t,n,i=this.pane,o=e.width;this.pageElements.width(o),"100%"===this.contentHeight&&(t=this.element.parent().height(),this.enablePager===!0&&(n=this.element.parent().find("ol.km-pages"),!this.pagerOverlay&&n.length&&(t-=n.outerHeight(!0))),this.element.css("height",t),this.pageElements.css("height",t)),i.updateDimension(),this._paged||(this.page=D(i.offset()/o)),this.scrollTo(this.page,!0),this.pageCount=x(i.total()/o),this.minSnap=-(this.pageCount-1)*o,this.maxSnap=0},_getPages:function(){this.pageElements=this.element.find(c.roleSelector("page")),this._paged=this.pageElements.length>0}}),c.mobile.ui.ScrollViewContent=a,s=c.Observable.extend({init:function(e,t,n){var i=this;c.Observable.fn.init.call(this),i.element=e,i.pane=t,i.options=n,i._templates(),i.page=n.page||0,i.pages=[],i._initPages(),i.resizeTo(i.pane.size()),i.pane.dimension.forceEnabled()},setDataSource:function(e){this.dataSource=_.create(e),this._buffer(),this._pendingPageRefresh=!1,this._pendingWidgetRefresh=!1},_viewShow:function(){var e=this;e._pendingWidgetRefresh&&(setTimeout(function(){e._resetPages()},0),e._pendingWidgetRefresh=!1)},_buffer:function(){var e=this.options.itemsPerPage;this.buffer&&this.buffer.destroy(),this.buffer=e>1?new w(this.dataSource,e):new b(this.dataSource,3*e),this._resizeProxy=h(this,"_onResize"),this._resetProxy=h(this,"_onReset"),this._endReachedProxy=h(this,"_onEndReached"),this.buffer.bind({resize:this._resizeProxy,reset:this._resetProxy,endreached:this._endReachedProxy})},_templates:function(){var e=this.options.template,t=this.options.emptyTemplate,n={},i={};typeof e===M&&(n.template=e,e="#=this.template(data)#"),this.template=h(c.template(e),n),typeof t===M&&(i.emptyTemplate=t,t="#=this.emptyTemplate(data)#"),this.emptyTemplate=h(c.template(t),i)},_initPages:function(){var e,t,n=this.pages,i=this.element;for(t=0;z>t;t++)e=new l(i),n.push(e);this.pane.updateDimension()},resizeTo:function(e){var t,n,i,o=this.pages,r=this.pane;for(t=0;o.length>t;t++)o[t].setWidth(e.width);"auto"===this.options.contentHeight?this.element.css("height",this.pages[1].element.height()):"100%"===this.options.contentHeight&&(n=this.element.parent().height(),this.options.enablePager===!0&&(i=this.element.parent().find("ol.km-pages"),!this.options.pagerOverlay&&i.length&&(n-=i.outerHeight(!0))),this.element.css("height",n),o[0].element.css("height",n),o[1].element.css("height",n),o[2].element.css("height",n)),r.updateDimension(),this._repositionPages(),this.width=e.width},scrollTo:function(e){var t,n=this.buffer;n.syncDataSource(),t=n.at(e),t&&(this._updatePagesContent(e),this.page=e)},paneMoved:function(e,t,n,i){var o,r=this,a=r.pane,s=a.size().width,l=a.offset(),u=Math.abs(l)>=s/3,d=t?c.effects.Transition.easeOutBack:c.effects.Transition.easeOutExpo,p=r.page+2>r.buffer.total(),h=0;e===W?0!==r.page&&(h=-1):e!==R||p?l>0&&u&&!p?h=1:0>l&&u&&0!==r.page&&(h=-1):h=1,o=r.page,h&&(o=h>0?o+1:o-1),n&&n({currentPage:r.page,nextPage:o})&&(h=0),0===h?r._cancelMove(d,i):-1===h?r._moveBackward(i):1===h&&r._moveForward(i)},updatePage:function(){var e=this.pages;return 0===this.pane.offset()?!1:(this.pane.offset()>0?(e.push(this.pages.shift()),this.page++,this.setPageContent(e[2],this.page+1)):(e.unshift(this.pages.pop()),this.page--,this.setPageContent(e[0],this.page-1)),this._repositionPages(),this._resetMovable(),!0)},forcePageUpdate:function(){var e=this.pane.offset(),t=3*this.pane.size().width/4;return y(e)>t?this.updatePage():!1},_resetMovable:function(){this.pane.moveTo(0)},_moveForward:function(e){this.pane.transitionTo(-this.width,c.effects.Transition.easeOutExpo,e)},_moveBackward:function(e){this.pane.transitionTo(this.width,c.effects.Transition.easeOutExpo,e)},_cancelMove:function(e,t){this.pane.transitionTo(0,e,t)},_resetPages:function(){this.page=this.options.page||0,this._updatePagesContent(this.page),this._repositionPages(),this.trigger("reset")},_onResize:function(){this.pageCount=x(this.dataSource.total()/this.options.itemsPerPage),this._pendingPageRefresh&&(this._updatePagesContent(this.page),this._pendingPageRefresh=!1),this.trigger("resize")},_onReset:function(){this.pageCount=x(this.dataSource.total()/this.options.itemsPerPage),this._resetPages()},_onEndReached:function(){this._pendingPageRefresh=!0},_repositionPages:function(){var e=this.pages;e[0].position(V),e[1].position(B),e[2].position(L)},_updatePagesContent:function(e){var t=this.pages,n=e||0;this.setPageContent(t[0],n-1),this.setPageContent(t[1],n),this.setPageContent(t[2],n+1)},setPageContent:function(t,n){var i=this.buffer,o=this.template,r=this.emptyTemplate,a=null;n>=0&&(a=i.at(n),e.isArray(a)&&!a.length&&(a=null)),this.trigger(O,{item:t.element}),t.content(null!==a?o(a):r({})),c.mobile.init(t.element),this.trigger(H,{item:t.element,data:a,ns:c.mobile.ui})}}),c.mobile.ui.VirtualScrollViewContent=s,l=c.Class.extend({init:function(t){this.element=e("<div class='"+A+"'></div>"),this.width=t.width(),this.element.width(this.width),t.append(this.element)},content:function(e){this.element.html(e)},position:function(e){this.element.css("transform","translate3d("+this.width*e+"px, 0, 0)")},setWidth:function(e){this.width=e,this.element.width(e)}}),c.mobile.ui.VirtualPage=l,u=v.extend({init:function(e,t){var n,i,o,l=this;v.fn.init.call(l,e,t),t=l.options,e=l.element,c.stripWhitespace(e[0]),e.wrapInner("<div/>").addClass("km-scrollview"),this.options.enablePager&&(this.pager=new U(this),this.options.pagerOverlay&&e.addClass("km-scrollview-overlay")),l.inner=e.children().first(),l.page=0,l.inner.css("height",t.contentHeight),l.pane=new r(l.inner,{duration:this.options.duration,transitionEnd:h(this,"_transitionEnd"),dragStart:h(this,"_dragStart"),dragEnd:h(this,"_dragEnd"),change:h(this,I)}),l.bind("resize",function(){l.pane.refresh()}),l.page=t.page,n=0===this.inner.children().length,i=n?new s(l.inner,l.pane,t):new a(l.inner,l.pane,t),i.page=l.page,i.bind("reset",function(){this._pendingPageRefresh=!1,l._syncWithContent(),l.trigger(I,{pageCount:i.pageCount,page:i.page})}),i.bind("resize",function(){l.trigger(I,{pageCount:i.pageCount,page:i.page})}),i.bind(H,function(e){l.trigger(H,e),l.angular("compile",function(){return{elements:e.item,data:[{dataItem:e.data}]}})}),i.bind(O,function(e){l.angular("cleanup",function(){return{elements:e.item}})}),l._content=i,l.setDataSource(t.dataSource),o=l.container(),o.nullObject?(l.viewInit(),l.viewShow()):o.bind("show",h(this,"viewShow")).bind("init",h(this,"viewInit"))},options:{name:"ScrollView",page:0,duration:400,velocityThreshold:.8,contentHeight:"auto",pageSize:1,itemsPerPage:1,bounceVelocityThreshold:1.6,enablePager:!0,pagerOverlay:!1,autoBind:!0,template:"",emptyTemplate:""},events:[E,F,I],destroy:function(){v.fn.destroy.call(this),c.destroy(this.element)},viewInit:function(){this.options.autoBind&&this._content.scrollTo(this._content.page,!0)},viewShow:function(){this.pane.refresh()},refresh:function(){var e=this._content;e.resizeTo(this.pane.size()),this.page=e.page,this.trigger(I,{pageCount:e.pageCount,page:e.page})},content:function(e){this.element.children().first().html(e),this._content._getPages(),this.pane.refresh()},value:function(e){var n=this.dataSource;return e?(this.scrollTo(n.indexOf(e),!0),t):n.at(this.page)},scrollTo:function(e,t){this._content.scrollTo(e,t),this._syncWithContent()},prev:function(){var e=this,n=e.page-1;e._content instanceof s?e._content.paneMoved(W,t,function(t){return e.trigger(E,t)}):n>-1&&e.scrollTo(n)},next:function(){var e=this,n=e.page+1;e._content instanceof s?e._content.paneMoved(R,t,function(t){return e.trigger(E,t)}):e._content.pageCount>n&&e.scrollTo(n)},setDataSource:function(e){if(this._content instanceof s){var t=!e;this.dataSource=_.create(e),this._content.setDataSource(this.dataSource),this.options.autoBind&&!t&&this.dataSource.fetch()}},items:function(){return this.element.find("."+A)},_syncWithContent:function(){var e,n,i=this._content.pages,o=this._content.buffer;this.page=this._content.page,e=o?o.at(this.page):t,e instanceof Array||(e=[e]),n=i?i[1].element:t,this.trigger(F,{page:this.page,element:n,data:e})},_dragStart:function(){this._content.forcePageUpdate()&&this._syncWithContent()},_dragEnd:function(e){var t=this,n=e.x.velocity,i=this.options.velocityThreshold,o=N,r=y(n)>this.options.bounceVelocityThreshold;n>i?o=W:-i>n&&(o=R),this._content.paneMoved(o,r,function(e){return t.trigger(E,e)})},_transitionEnd:function(){this._content.updatePage()&&this._syncWithContent()}}),p.plugin(u)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.switch.min",["kendo.fx.min","kendo.userevents.min"],e)}(function(){return function(e,t){function n(e,t,n){return Math.max(t,Math.min(n,e))}var i=window.kendo,o=i.mobile.ui,r=o.Widget,a=i.support,s="change",l="km-switch-on",u="km-switch-off",c="margin-left",d="km-state-active",p="km-state-disabled",h="disabled",f=a.transitions.css+"transform",m=e.proxy,g='<span class="km-switch km-widget">        <span class="km-switch-wrapper"><span class="km-switch-background"></span></span>         <span class="km-switch-container"><span class="km-switch-handle" >             <span class="km-switch-label-on">{0}</span>             <span class="km-switch-label-off">{1}</span>         </span>     </span>',v=r.extend({init:function(t,n){var o,a=this;r.fn.init.call(a,t,n),n=a.options,a.wrapper=e(i.format(g,n.onLabel,n.offLabel)),a.handle=a.wrapper.find(".km-switch-handle"),a.background=a.wrapper.find(".km-switch-background"),a.wrapper.insertBefore(a.element).prepend(a.element),a._drag(),a.origin=parseInt(a.background.css(c),10),a.constrain=0,a.snapPoint=0,t=a.element[0],t.type="checkbox",a._animateBackground=!0,o=a.options.checked,null===o&&(o=t.checked),a.check(o),a.options.enable=a.options.enable&&!a.element.attr(h),a.enable(a.options.enable),a.refresh(),i.notify(a,i.mobile.ui)},refresh:function(){var e=this,t=e.handle.outerWidth(!0);e.width=e.wrapper.width(),e.constrain=e.width-t,e.snapPoint=e.constrain/2,"number"!=typeof e.origin&&(e.origin=parseInt(e.background.css(c),10)),e.background.data("origin",e.origin),e.check(e.element[0].checked)},events:[s],options:{name:"Switch",onLabel:"on",offLabel:"off",checked:null,enable:!0},check:function(e){var n=this,i=n.element[0];return e===t?i.checked:(n._position(e?n.constrain:0),i.checked=e,n.wrapper.toggleClass(l,e).toggleClass(u,!e),t)},value:function(){return this.check.apply(this,arguments)},destroy:function(){r.fn.destroy.call(this),this.userEvents.destroy()},toggle:function(){var e=this;e.check(!e.element[0].checked)},enable:function(e){var n=this.element,i=this.wrapper;t===e&&(e=!0),this.options.enable=e,e?n.removeAttr(h):n.attr(h,h),i.toggleClass(p,!e)},_resize:function(){this.refresh()},_move:function(e){var t=this;e.preventDefault(),t._position(n(t.position+e.x.delta,0,t.width-t.handle.outerWidth(!0)))},_position:function(e){var t=this;t.position=e,t.handle.css(f,"translatex("+e+"px)"),t._animateBackground&&t.background.css(c,t.origin+e)},_start:function(){this.options.enable?(this.userEvents.capture(),this.handle.addClass(d)):this.userEvents.cancel()},_stop:function(){var e=this;e.handle.removeClass(d),e._toggle(e.position>e.snapPoint)},_toggle:function(e){var t,n=this,o=n.handle,r=n.element[0],a=r.checked,c=i.mobile.application&&i.mobile.application.os.wp?100:200;n.wrapper.toggleClass(l,e).toggleClass(u,!e),n.position=t=e*n.constrain,n._animateBackground&&n.background.kendoStop(!0,!0).kendoAnimate({effects:"slideMargin",offset:t,reset:!0,reverse:!e,axis:"left",duration:c}),o.kendoStop(!0,!0).kendoAnimate({effects:"slideTo",duration:c,offset:t+"px,0",reset:!0,complete:function(){a!==e&&(r.checked=e,n.trigger(s,{checked:e}))}})},_drag:function(){var e=this;e.userEvents=new i.UserEvents(e.wrapper,{fastTap:!0,tap:function(){e.options.enable&&e._toggle(!e.element[0].checked)},start:m(e._start,e),move:m(e._move,e),end:m(e._stop,e)})}});o.plugin(v)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.mobile.tabstrip.min",["kendo.core.min"],e)}(function(){return function(e,t){function n(t){return e('<span class="km-badge">'+t+"</span>")}var i=window.kendo,o=i.mobile.ui,r=o.Widget,a="km-state-active",s="select",l=r.extend({init:function(t,n){var i=this;r.fn.init.call(i,t,n),i.container().bind("show",e.proxy(this,"refresh")),i.element.addClass("km-tabstrip").find("a").each(i._buildButton).eq(i.options.selectedIndex).addClass(a),i.element.on("down","a","_release")},events:[s],switchTo:function(t){var n,i,o=this.element.find("a"),r=0,a=o.length;if(!isNaN(t))return this._setActiveItem(o.eq(t)),!0;for(;a>r;r++)if(n=o[r],i=n.href.replace(/(\#.+)(\?.+)$/,"$1"),-1!==i.indexOf(t,i.length-t.length))return this._setActiveItem(e(n)),!0;return!1},switchByFullUrl:function(e){var t;t=this.element.find("a[href$='"+e+"']"),this._setActiveItem(t)},clear:function(){this.currentItem().removeClass(a)},currentItem:function(){return this.element.children("."+a)},badge:function(t,i){var o,r=this.element;return isNaN(t)||(t=r.children().get(t)),t=r.find(t),o=e(t.find(".km-badge")[0]||n(i).insertAfter(t.children(".km-icon"))),i||0===i?(o.html(i),this):i===!1?(o.empty().remove(),this):o.html()},_release:function(t){if(!(t.which>1)){var n=this,i=e(t.currentTarget);i[0]!==n.currentItem()[0]&&(n.trigger(s,{item:i})?t.preventDefault():n._setActiveItem(i))}},_setActiveItem:function(e){e[0]&&(this.clear(),e.addClass(a))},_buildButton:function(){var t=e(this),o=i.attrValue(t,"icon"),r=i.attrValue(t,"badge"),a=t.find("img"),s=e('<span class="km-icon"/>');t.addClass("km-button").attr(i.attr("role"),"tab").contents().not(a).wrapAll('<span class="km-text"/>'),a[0]?a.addClass("km-image").prependTo(t):(t.prepend(s),o&&(s.addClass("km-"+o),(r||0===r)&&n(r).insertAfter(s)))},refresh:function(e){var t=e.view.id;t&&!this.switchTo(e.view.id)&&this.switchTo(t)},options:{name:"TabStrip",selectedIndex:0,enable:!0}});o.plugin(l)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.angular.min",["kendo.core.min"],e)}(function(){return function(e,t,n){"use strict";function i(e){var t=S;try{return S=function(e){return e()},e()}finally{S=t}}function o(t,i,o,u,c,g){function v(){var n,g,v,_,b,x,T;return o.kRebind&&(n=e(e(i)[0].cloneNode(!0))),C=r(t,i,o,u,y).options,i.is("select")&&!function(t){if(t.length>0){var n=e(t[0]);!/\S/.test(n.text())&&/^\?/.test(n.val())&&n.remove()}}(i[0].options),g=y.call(i,E=C).data(u),l(g,t,o,u,c),t.$emit("kendoWidgetCreated",g),v=h(t,g),o.kRebind&&m(g,t,i,n,o.kRebind,v,o),o.kNgDisabled&&(_=o.kNgDisabled,b=t.$eval(_),b&&g.enable(!b),a(g,t,i,_)),o.kNgReadonly&&(x=o.kNgReadonly,T=t.$eval(x),T&&g.readonly(T),s(g,t,i,x)),o.kNgModel&&p(g,t,o.kNgModel),w&&d(g,t,i,w,k),g&&f(g,i),g}var _,b,w,k,y,x,C,T,D,F,I,P,A,M;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(_=o.kNgDelay,b=t.$eval(_),g=g||[],w=g[0],k=g[1],y=e(i)[u],!y)return window.console.error("Could not find: "+u),null;if(x=r(t,i,o,u,y),C=x.options,x.unresolved.length){for(T=[],D=0,F=x.unresolved.length;F>D;D++)I=x.unresolved[D],P=e.Deferred(function(e){var i=t.$watch(I.path,function(t){t!==n&&(i(),e.resolve())})}).promise(),T.push(P);return e.when.apply(null,T).then(v),n}return _&&!b?(A=t.$root||t,M=function(){var e=t.$watch(_,function(t){t!==n&&(e(),i.removeAttr(o.$attr.kNgDelay),_=null,S(v))})},/^\$(digest|apply)$/.test(A.$$phase)?M():t.$apply(M),n):v()}function r(i,o,r,a,s){function l(e,o){var r=t.copy(i.$eval(o));r===n?f.push({option:e,path:o}):u[e]=r}var u,c,d,p,h=a.replace(/^kendo/,""),f=[],m=r.kOptions||r.options,g=i.$eval(m);return m&&g===n&&f.push({option:"options",path:m}),u=t.extend({},r.defaultOptions,g),c=s.widget.prototype.options,d=s.widget.prototype.events,e.each(r,function(e,t){var n,i,o,r;"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()}),d.indexOf(i)>-1&&(u[i]=t)),c.hasOwnProperty(n)?l(n,t):c.hasOwnProperty(e)&&!A[e]?l(e,t):P[e]||(o=e.match(/^k(On)?([A-Z].*)/),o&&(r=o[2].charAt(0).toLowerCase()+o[2].slice(1),o[1]&&"kOnLabel"!=e?u[r]=t:("kOnLabel"==e&&(r="onLabel"),l(r,t)))))}),p=r.kDataSource||r.source,p&&(u.dataSource=I(i,o,h,p)),u.$angular=[i],{options:u,unresolved:f}}function a(e,t,i,o){return kendo.ui.PanelBar&&e instanceof kendo.ui.PanelBar||kendo.ui.Menu&&e instanceof kendo.ui.Menu?(F.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 s(e,t,i,o){return"function"!=typeof e.readonly?(F.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 l(e,t,n,i,o){if(n[o]){var r=T(n[o]).assign;if(!r)throw Error(o+" attribute used but expression in it is not assignable: "+n[i]);r(t,e)}}function u(e){return/checkbox|radio/i.test(e.attr("type"))?e.prop("checked"):e.val()}function c(e){return M.test(e[0].tagName)}function d(e,t,i,o,r){var a,s,l,d;e.value&&(s=!1,a=c(i)?function(){return u(i)}:function(){return e.value()},o.$render=function(){var i=o.$viewValue;i===n&&(i=o.$modelValue),i===n&&(i=null),s=!0,setTimeout(function(){if(s=!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)},c(i)&&i.on("change",function(){s=!0}),l=function(e){return function(){var n;s||(e&&r&&(n=r.$pristine),o.$setViewValue(a()),e&&(o.$setPristine(),n&&r.$setPristine()),w(t))}},e.first("change",l(!1)),kendo.ui.AutoComplete&&e instanceof kendo.ui.AutoComplete||e.first("dataBound",l(!0)),d=a(),isNaN(o.$viewValue)||d==o.$viewValue||(o.$isEmpty(o.$viewValue)?null!=d&&""!==d&&d!=o.$viewValue&&o.$setViewValue(d):e.value(o.$viewValue)),o.$setPristine())}function p(t,i,o){var r,a,s,l,u,c,d,p,h;return"function"!=typeof t.value?(F.warn("k-ng-model specified on a widget that does not have the value() method: "+t.options.name),n):(r=e(t.element).parents("form"),a=kendo.getter(r.attr("name"))(i),s=T(o),l=s.assign,u=!1,c=kendo.ui.MultiSelect&&t instanceof kendo.ui.MultiSelect,d=function(e){return e&&c?e.length:0},p=d(s(i)),t.$angular_setLogicValue(s(i)),h=function(e,i){e===n&&(e=null),u||e==i&&d(e)==p||(p=d(e),t.$angular_setLogicValue(e))},c?i.$watchCollection(o,h):i.$watch(o,h),t.first("change",function(){u=!0,a&&a.$pristine&&a.$setDirty(),w(i,function(){l(i,t.$angular_getLogicValue()),p=d(s(i))}),u=!1}),n)}function h(e,t){var n=e.$on("$destroy",function(){n(),t&&(kendo.destroy(t.element),t=null)});return n}function f(t,n){function i(){a.disconnect()}function o(){a.observe(e(n)[0],{attributes:!0})}var r,a;window.MutationObserver&&t.wrapper&&(r=[].slice.call(e(n)[0].classList),a=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){r.indexOf(e)<0&&(o.classList.add(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.add(e))}),r.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))}),r=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,r,a,s){var l=n.$watch(r,function(r,u){var c,d,p,h,f;t._muteRebind||r===u||(l(),s._cleanUp&&s._cleanUp(),c=B[t.options.name],c&&c.forEach(function(t){var i=n.$eval(s["k"+t]);i&&o.append(e(i).attr(kendo.toHyphens("k"+t),""))}),d=e(t.wrapper)[0],p=e(t.element)[0],h="Upload"===t.options.name,h&&(i=e(p)),f=i.injector().get("$compile"),t._destroy(),a&&a(),t=null,p&&(d&&d.parentNode.replaceChild(p,d),e(i).replaceWith(o)),f(o)(n))},!0);w(n)}function g(e,t){return function(n,i){return e.call(t,n,i)}}function v(e,t){this[e]=kendo.stringify(t)}function _(e,n){function i(e,t){x.directive(e,["directiveFactory",function(n){return n.create(t,e)}])}var o,r,a,s,l=n?"Mobile":"";l+=e.fn.options.name,o=l,r="kendo"+l.charAt(0)+l.substr(1).toLowerCase(),l="kendo"+l,a=l.replace(/([A-Z])/g,"-$1"),-1==O.indexOf(l.replace("kendo",""))&&(s=l===r?[l]:[l,r],t.forEach(s,function(e){x.directive(e,function(){return{restrict:"E",replace:!0,template:function(e,t){var n=H[o]||"div",i=t.kScopeField||t.scopeField;return"<"+n+" "+a+(i?'="'+i+'"':"")+">"+e.html()+"</"+n+">"}}})})),z.indexOf(l.replace("kendo",""))>-1||(i(l,l),r!=l&&i(r,l))}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 k(t,n){t.$destroy(),n&&e(n).removeData("$scope").removeData("$$kendoScope").removeData("$isolateScope").removeData("$isolateScopeNoTemplate").removeClass("ng-scope")}function y(n,i,o){var r,a,s;if(e.isArray(n))return t.forEach(n,function(e){y(e,i,o)});if("string"==typeof n){for(r=n.split("."),a=kendo;a&&r.length>0;)a=a[r.shift()];if(!a)return V.push([n,i,o]),!1;n=a.prototype}return s=n[i],n[i]=function(){var e=this,t=arguments;return o.apply({self:e,next:function(){return s.apply(e,arguments.length>0?arguments:t)}},t)},!0}var x,C,T,S,D,F,E,I,P,A,M,H,O,z,V,B;t&&t.injector&&(x=t.module("kendo.directives",[]),C=t.injector(["ng"]),T=C.get("$parse"),S=C.get("$timeout"),F=C.get("$log"),I=function(){var e={TreeList:"TreeListDataSource",TreeView:"HierarchicalDataSource",Scheduler:"SchedulerDataSource",PivotGrid:"PivotDataSource",PivotConfigurator:"PivotDataSource",PanelBar:"$PLAIN",Menu:"$PLAIN",ContextMenu:"$PLAIN"},t=function(e,t){return"$PLAIN"==t?e:kendo.data[t].create(e)};return function(n,i,o,r){var a=e[o]||"DataSource",s=n.$eval(r),l=t(s,a);return n.$watch(r,function(e){var n,o=b(i);o&&"function"==typeof o.setDataSource&&e!==s&&(n=t(e,a),o.setDataSource(n),s=e)}),l}}(),P={kDataSource:!0,kOptions:!0,kRebind:!0,kNgModel:!0,kNgDelay:!0},A={name:!0,title:!0,style:!0},M=/^(input|select|textarea)$/i,x.factory("directiveFactory",["$compile",function(t){var n,i,r=!1;return D=t,i=function(t,i){return{restrict:"AC",require:["?ngModel","^?form"],scope:!1,controller:["$scope","$attrs","$element",function(e,t){this.template=g(v,t),t._cleanUp=g(function(){this.template=null,t._cleanUp=null},this)}],link:function(a,s,l,u){var c,d=e(s),p=t.replace(/([A-Z])/g,"-$1");d.attr(p,d.attr("data-"+p)),d[0].removeAttribute("data-"+p),c=o(a,s,l,t,i,u),c&&(n&&clearTimeout(n),n=setTimeout(function(){a.$emit("kendoRendered"),r||(r=!0,e("form").each(function(){var t=e(this).controller("form");t&&t.$setPristine()}))}))}}},{create:i}}]),H={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",TreeView:"ul",Menu:"ul",ContextMenu:"ul",ActionSheet:"ul"},O=["MobileView","MobileDrawer","MobileLayout","MobileSplitView","MobilePane","MobileModalView"],z=["MobileApplication","MobileView","MobileModalView","MobileLayout","MobileActionSheet","MobileDrawer","MobileSplitView","MobilePane","MobileScrollView","MobilePopOver"],t.forEach(["MobileNavBar","MobileButton","MobileBackButton","MobileDetailButton","MobileTabStrip","MobileScrollView","MobileScroller"],function(e){z.push(e),e="kendo"+e,x.directive(e,function(){return{restrict:"A",link:function(t,n,i){o(t,n,i,e,e)}}})}),V=[],kendo.onWidgetRegistered(function(t){V=e.grep(V,function(e){return!y.apply(null,e)}),_(t.widget,"Mobile"==t.prefix)}),y(["ui.Widget","mobile.ui.Widget"],"angular",function(o,r){var a,s=this.self;return"init"==o?(!r&&E&&(r=E),E=null,r&&r.$angular&&(s.$angular_scope=r.$angular[0],s.$angular_init(s.element,r)),n):(a=s.$angular_scope,a&&i(function(){var i,l,u=r(),c=u.elements,d=u.data;if(c.length>0)switch(o){case"cleanup":t.forEach(c,function(t){var n=e(t).data("$$kendoScope");n&&n!==a&&n.$$kendoScope&&k(n,t)});break;case"compile":i=s.element.injector(),l=i?i.get("$compile"):D,t.forEach(c,function(t,i){var o,r;u.scopeFrom?o=u.scopeFrom:(r=d&&d[i],r!==n?(o=e.extend(a.$new(),r),o.$$kendoScope=!0):o=a),e(t).data("$$kendoScope",o),l(t)(o)}),w(a)}}),n)}),y("ui.Widget","$angular_getLogicValue",function(){return this.self.value()}),y("ui.Widget","$angular_setLogicValue",function(e){this.self.value(e)}),y("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}),y("ui.Select","$angular_setLogicValue",function(e){var t=this.self,i=t.options,o=i.dataValueField,r=i.text||"";e===n&&(e=""),o&&!i.valuePrimitive&&e&&(r=e[i.dataTextField]||"",e=e[o||i.dataTextField]),t.options.autoBind!==!1||t.listView.bound()?t.value(e):!r&&e&&i.valuePrimitive?t.value(e):t._preselect(e,r)}),y("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}),y("ui.MultiSelect","$angular_setLogicValue",function(t){var n,i,o,r;null==t&&(t=[]),n=this.self,i=n.options,o=i.dataValueField,r=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(r,t)}),y("ui.AutoComplete","$angular_getLogicValue",function(){var e,t,n,i,o,r=this.self.options,a=this.self.value().split(r.separator),s=r.valuePrimitive,l=this.self.dataSource.data(),u=[];for(e=0,t=l.length;t>e;e++)for(n=l[e],i=r.dataTextField?n[r.dataTextField]:n,o=0;a.length>o;o++)if(i===a[o]){u.push(s?i:n.toJSON());break}return u}),y("ui.AutoComplete","$angular_setLogicValue",function(t){null==t&&(t=[]);var i=this.self,o=i.options.dataTextField;o&&!i.options.valuePrimitive&&(t=t.length!==n?e.map(t,function(e){return e[o]}):t[o]),i.value(t)}),y("ui.Widget","$angular_init",function(t,n){var i,o,r,a,s=this.self;if(n&&!e.isArray(n))for(i=s.$angular_scope,o=s.events.length;--o>=0;)r=s.events[o],a=n[r],a&&"string"==typeof a&&(n[r]=s.$angular_makeEventHandler(r,i,a))}),y("ui.Widget","$angular_makeEventHandler",function(e,t,n){return n=T(n),function(e){w(t,function(){n(t,{kendoEvent:e})})}}),y(["ui.Grid","ui.ListView","ui.TreeView"],"$angular_makeEventHandler",function(e,n,i){return"change"!=e?this.next():(i=T(i),function(e){var o,r,a,s,l,u,c,d,p,h=e.sender,f=h.options,m={kendoEvent:e};for(t.isString(f.selectable)&&(o=-1!==f.selectable.indexOf("cell"),r=-1!==f.selectable.indexOf("multiple")),a=m.selected=this.select(),s=m.data=[],l=m.columns=[],c=0;a.length>c;c++)d=o?a[c].parentNode:a[c],p=h.dataItem(d),o?(t.element.inArray(p,s)<0&&s.push(p),u=t.element(a[c]).index(),t.element.inArray(u,l)<0&&l.push(u)):s.push(p);r||(m.dataItem=m.data=s[0],m.angularDataItem=kendo.proxyModelSetters(m.dataItem),m.selected=a[0]),w(n,function(){i(n,m)})})}),y("ui.Grid","$angular_init",function(i,o){if(this.next(),o.columns){var r=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,r.paramName)+"#</span>")})}}),y("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}),y("mobile.ui.ButtonGroup","_select",function(){this.next(),this.self.trigger("change")}),x.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);x.directive(t,function(){return{restrict:"A",priority:2,link:function(n,i,o){i.attr(kendo.attr(kendo.toHyphens(e)),n.$eval(o[t]))}}})}),B={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"],TreeView:["Template"],Validator:["ErrorTemplate"]},function(){var e={};t.forEach(B,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);x.directive(n,function(){return{restrict:"A",require:e,terminal:!0,compile:function(t,o){if(""===o[n]){t.removeAttr(i);var r=t[0].outerHTML;return function(t,o,a,s){for(var l;!l&&s.length;)l=s.shift();l?(l.template(n,r),o.remove()):F.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)()}),function(e,define){define("kendo.webcomponents.min",["kendo.core.min"],e)}(function(){return function(e,t,n){function i(e,t){var i=e.getAttribute(t);return null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:f.test(i)?i=parseFloat(i):p.test(i)&&!h.test(i)&&(i=Function("return ("+i+")")()),i}function o(e,t){var n={};return Object.keys(t).concat("dataSource").forEach(function(t){e.hasAttribute(kendo.toHyphens(t))&&(n[t]=i(e,kendo.toHyphens(t)))}),n}function r(e){var t={};return Object.keys(e).forEach(function(n){"_"!=n[0]&&(t[n]=e[n])}),t}function a(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!0,r(t)),this.dispatchEvent(n),n.defaultPrevented&&t.preventDefault()}function s(e,t){var n,i=Object.keys(t);for(n=0;i.length>=n;n++)if("function"==typeof t[i[n]])e[i[n]]||(e[i[n]]=t[i[n]].bind(e.widget));else{if("options"===i[n])continue;e[i[n]]=e[i[n]]||t[i[n]]}}function l(t,n){var i=n.prototype.options,r=Object.create(HTMLElement.prototype);Object.defineProperty(r,"options",{get:function(){return this.widget.options},set:function(n){var i,o,r,a=this.widget;n=e.extend(!0,{},a.options,n),i=e(a.wrapper)[0],o=e(a.element)[0],a._destroy(),r=document.createElement(u[t]||"div"),i&&o&&(i.parentNode.replaceChild(o,i),e(o).replaceWith(r)),a.value&&(n.value=a.value()),a.init(r,n),this.bindEvents()}}),r.bindEvents=function(){n.prototype.events.forEach(function(e){this.widget.bind(e,a.bind(this,e)),this.hasAttribute(c+e)&&this.bind(e,function(t){window[this.getAttribute(c+e)].call(this,t)}.bind(this))}.bind(this))},r.attachedCallback=function(){var r,a=this,l=document.createElement(u[t]||"div");e(l).append(a.childNodes),e(l).attr("class",e(a).attr("class")),e(l).attr("style",e(a).attr("style")),a.appendChild(l),a.widget=new n(l,o(a,i)),r=a.widget;do s(a,r);while(r=Object.getPrototypeOf(r));this.bindEvents()},r.detachedCallback=function(){kendo.destroy(this.element)},kendo.webComponents.push("kendo-"+t),document.registerElement("kendo-"+t,{prototype:r})}var u,c,d,p,h,f;kendo.support.customElements&&!kendo.webComponents.length&&(!t||1!=t.version.major&&!t.injector)&&(u={editor:"textarea",numerictextbox:"input",datepicker:"input",datetimepicker:"input",timepicker:"input",autocomplete:"input",colorpicker:"input",maskedtextbox:"input",dropdownlist:"select",multiselect:"select",upload:"input",validator:"form",button:"button",mobilebutton:"a",mobilebackbutton:"a",mobiledetailbutton:"a",listview:"ul",mobilelistview:"ul",treeview:"ul",menu:"ul",contextmenu:"ul",actionsheet:"ul"},c="on-",d=[],kendo.onWidgetRegistered(function(e){var t=e.prefix+e.widget.prototype.options.name.toLowerCase();-1===d.indexOf(t)&&(d.push(t),l(t,e.widget))}),p=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,h=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,f=/^(\+|-?)\d+(\.?)\d*$/)}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.angular2.min",["kendo.core.min","kendo.webcomponents.min"],e)}(function(){!function(e,t){var n,i;t&&t.register&&(n=this&&this.__decorate||function(e,t,n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)return Reflect.decorate(e,t,n,i);switch(arguments.length){case 2:return e.reduceRight(function(e,t){return t&&t(e)||e},t);case 3:return e.reduceRight(function(e,i){return void(i&&i(t,n))},void 0);case 4:return e.reduceRight(function(e,i){return i&&i(t,n,e)||e},i)}},i=this&&this.__metadata||function(e,t){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(e,t):void 0},t.register("kendo/angular2",["angular2/angular2"],function(t){var o,r;return{setters:[function(e){o=e}],execute:function(){r=function(){function t(e,t){var n=this;this.elementRef=t,this.onChange=function(e){},this.onTouched=function(){},this.element=t.nativeElement,this.element.addEventListener("change",function(){n.onChange(n.element.value())}),this.element.addEventListener("spin",function(){n.onChange(n.element.value())}),e.valueAccessor=this,this.cd=e,e.valueAccessor=this}return t.prototype.writeValue=function(e){this.element.value(e)},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t=n([o.Directive({selector:e.webComponents.join(",")}),i("design:paramtypes",[o.NgControl,o.ElementRef])],t)}(),t("KendoValueAccessor",r)}}}))}(window.kendo,window.System)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ui.core.min",["kendo.core.min","kendo.router.min","kendo.touch.min","kendo.view.min","kendo.fx.min","kendo.data.odata.min","kendo.data.xml.min","kendo.data.min","kendo.data.signalr.min","kendo.binder.min","kendo.validator.min","kendo.userevents.min","kendo.draganddrop.min","kendo.mobile.scroller.min","kendo.resizable.min","kendo.sortable.min","kendo.selectable.min","kendo.button.min","kendo.pager.min","kendo.popup.min","kendo.notification.min","kendo.tooltip.min","kendo.toolbar.min","kendo.list.min","kendo.calendar.min","kendo.datepicker.min","kendo.autocomplete.min","kendo.dropdownlist.min","kendo.combobox.min","kendo.multiselect.min","kendo.colorpicker.min","kendo.listview.min","kendo.numerictextbox.min","kendo.maskedtextbox.min","kendo.menu.min","kendo.editable.min","kendo.panelbar.min","kendo.progressbar.min","kendo.responsivepanel.min","kendo.tabstrip.min","kendo.timepicker.min","kendo.datetimepicker.min","kendo.slider.min","kendo.splitter.min","kendo.window.min","kendo.virtuallist.min","kendo.mobile.popover.min","kendo.mobile.loader.min","kendo.mobile.scroller.min","kendo.mobile.shim.min","kendo.mobile.view.min","kendo.mobile.modalview.min","kendo.mobile.drawer.min","kendo.mobile.splitview.min","kendo.mobile.pane.min","kendo.mobile.application.min","kendo.mobile.actionsheet.min","kendo.mobile.button.min","kendo.mobile.buttongroup.min","kendo.mobile.collapsible.min","kendo.mobile.listview.min","kendo.mobile.navbar.min","kendo.mobile.scrollview.min","kendo.mobile.switch.min","kendo.mobile.tabstrip.min","kendo.angular.min","kendo.webcomponents.min","kendo.angular2.min"],e)}(function(){"bundle all";return window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});

 /*! 
  * Copyright (c) 2002 JSON.org
  JSON in JavaScript
  Douglas Crockford
  douglas@crockford.com
  2015-05-03
  JSON is a light-weight, language independent, data interchange format.
  See http://www.JSON.org/
  
  json2.js
  2016-05-01
  Public Domain.
  NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
  See http://www.JSON.org/js.html
  This code should be minified before deployment.
  See http://javascript.crockford.com/jsmin.html

  USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
  NOT CONTROL.

  This file creates a global JSON object containing two methods: stringify
  and parse. This file is provides the ES5 JSON capability to ES3 systems.
  If a project might run on IE8 or earlier, then this file should be included.
This file does nothing on ES5 systems.
*/
"object" != typeof JSON && (JSON = {}), function () { "use strict"; function f(t) { return t < 10 ? "0" + t : t } function this_value() { return this.valueOf() } function quote(t) { return rx_escapable.lastIndex = 0, rx_escapable.test(t) ? '"' + t.replace(rx_escapable, function (t) { var e = meta[t]; return "string" == typeof e ? e : "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + t + '"' } function str(t, e) { var r, n, o, u, f, a = gap, i = e[t]; switch (i && "object" == typeof i && "function" == typeof i.toJSON && (i = i.toJSON(t)), "function" == typeof rep && (i = rep.call(e, t, i)), typeof i) { case "string": return quote(i); case "number": return isFinite(i) ? String(i) : "null"; case "boolean": case "null": return String(i); case "object": if (!i) return "null"; if (gap += indent, f = [], "[object Array]" === Object.prototype.toString.apply(i)) { for (u = i.length, r = 0; r < u; r += 1)f[r] = str(r, i) || "null"; return o = 0 === f.length ? "[]" : gap ? "[\n" + gap + f.join(",\n" + gap) + "\n" + a + "]" : "[" + f.join(",") + "]", gap = a, o } if (rep && "object" == typeof rep) for (u = rep.length, r = 0; r < u; r += 1)"string" == typeof rep[r] && (n = rep[r], o = str(n, i), o && f.push(quote(n) + (gap ? ": " : ":") + o)); else for (n in i) Object.prototype.hasOwnProperty.call(i, n) && (o = str(n, i), o && f.push(quote(n) + (gap ? ": " : ":") + o)); return o = 0 === f.length ? "{}" : gap ? "{\n" + gap + f.join(",\n" + gap) + "\n" + a + "}" : "{" + f.join(",") + "}", gap = a, o } } var rx_one = /^[\],:{}\s]*$/, rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rx_four = /(?:^|:|,)(?:\s*\[)+/g, rx_escapable = /[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; "function" != typeof Date.prototype.toJSON && (Date.prototype.toJSON = function () { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null }, Boolean.prototype.toJSON = this_value, Number.prototype.toJSON = this_value, String.prototype.toJSON = this_value); var gap, indent, meta, rep; "function" != typeof JSON.stringify && (meta = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, JSON.stringify = function (t, e, r) { var n; if (gap = "", indent = "", "number" == typeof r) for (n = 0; n < r; n += 1)indent += " "; else "string" == typeof r && (indent = r); if (rep = e, e && "function" != typeof e && ("object" != typeof e || "number" != typeof e.length)) throw new Error("JSON.stringify"); return str("", { "": t }) }), "function" != typeof JSON.parse && (JSON.parse = function (text, reviver) { function walk(t, e) { var r, n, o = t[e]; if (o && "object" == typeof o) for (r in o) Object.prototype.hasOwnProperty.call(o, r) && (n = walk(o, r), void 0 !== n ? o[r] = n : delete o[r]); return reviver.call(t, e, o) } var j; if (text = String(text), rx_dangerous.lastIndex = 0, rx_dangerous.test(text) && (text = text.replace(rx_dangerous, function (t) { return "\\u" + ("0000" + t.charCodeAt(0).toString(16)).slice(-4) })), rx_one.test(text.replace(rx_two, "@").replace(rx_three, "]").replace(rx_four, ""))) return j = eval("(" + text + ")"), "function" == typeof reviver ? walk({ "": j }, "") : j; throw new SyntaxError("JSON.parse") }) }();
/*!
 * ASP.NET SignalR JavaScript Library v2.2.2
 * http://signalr.net/
 *
 * Copyright (c) .NET Foundation. All rights reserved.
 * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
 *
 */
(function (n, t, i) { function w(t, i) { var u, f; if (n.isArray(t)) { for (u = t.length - 1; u >= 0; u--)f = t[u], n.type(f) === "string" && r.transports[f] || (i.log("Invalid transport: " + f + ", removing it from the transports list."), t.splice(u, 1)); t.length === 0 && (i.log("No transports remain within the specified transport array."), t = null) } else if (r.transports[t] || t === "auto") { if (t === "auto" && r._.ieVersion <= 8) return ["longPolling"] } else i.log("Invalid transport: " + t.toString() + "."), t = null; return t } function b(n) { return n === "http:" ? 80 : n === "https:" ? 443 : void 0 } function a(n, t) { return t.match(/:\d+$/) ? t : t + ":" + b(n) } function k(t, i) { var u = this, r = []; u.tryBuffer = function (i) { return t.state === n.signalR.connectionState.connecting ? (r.push(i), !0) : !1 }; u.drain = function () { if (t.state === n.signalR.connectionState.connected) while (r.length > 0) i(r.shift()) }; u.clear = function () { r = [] } } var f = { nojQuery: "jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.", noTransportOnInit: "No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.", errorOnNegotiate: "Error during negotiation request.", stoppedWhileLoading: "The connection was stopped during page load.", stoppedWhileNegotiating: "The connection was stopped during the negotiate request.", errorParsingNegotiateResponse: "Error parsing negotiate response.", errorDuringStartRequest: "Error during start request. Stopping the connection.", stoppedDuringStartRequest: "The connection was stopped during the start request.", errorParsingStartResponse: "Error parsing start response: '{0}'. Stopping the connection.", invalidStartResponse: "Invalid start response: '{0}'. Stopping the connection.", protocolIncompatible: "You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.", sendFailed: "Send failed.", parseFailed: "Failed at parsing response: {0}", longPollFailed: "Long polling request failed.", eventSourceFailedToConnect: "EventSource failed to connect.", eventSourceError: "Error raised by EventSource", webSocketClosed: "WebSocket closed.", pingServerFailedInvalidResponse: "Invalid ping response when pinging server: '{0}'.", pingServerFailed: "Failed to ping server.", pingServerFailedStatusCode: "Failed to ping server.  Server responded with status code {0}, stopping the connection.", pingServerFailedParse: "Failed to parse ping server response, stopping the connection.", noConnectionTransport: "Connection is in an invalid state, there is no transport active.", webSocketsInvalidState: "The Web Socket transport is in an invalid state, transitioning into reconnecting.", reconnectTimeout: "Couldn't reconnect within the configured timeout of {0} ms, disconnecting.", reconnectWindowTimeout: "The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection." }; if (typeof n != "function") throw new Error(f.nojQuery); var r, h, o = t.document.readyState === "complete", e = n(t), c = "__Negotiate Aborted__", u = { onStart: "onStart", onStarting: "onStarting", onReceived: "onReceived", onError: "onError", onConnectionSlow: "onConnectionSlow", onReconnecting: "onReconnecting", onReconnect: "onReconnect", onStateChanged: "onStateChanged", onDisconnect: "onDisconnect" }, v = function (n, i) { if (i !== !1) { var r; typeof t.console != "undefined" && (r = "[" + (new Date).toTimeString() + "] SignalR: " + n, t.console.debug ? t.console.debug(r) : t.console.log && t.console.log(r)) } }, s = function (t, i, r) { return i === t.state ? (t.state = r, n(t).triggerHandler(u.onStateChanged, [{ oldState: i, newState: r }]), !0) : !1 }, y = function (n) { return n.state === r.connectionState.disconnected }, l = function (n) { return n._.keepAliveData.activated && n.transport.supportsKeepAlive(n) }, p = function (i) { var f, e; i._.configuredStopReconnectingTimeout || (e = function (t) { var i = r._.format(r.resources.reconnectTimeout, t.disconnectTimeout); t.log(i); n(t).triggerHandler(u.onError, [r._.error(i, "TimeoutException")]); t.stop(!1, !1) }, i.reconnecting(function () { var n = this; n.state === r.connectionState.reconnecting && (f = t.setTimeout(function () { e(n) }, n.disconnectTimeout)) }), i.stateChanged(function (n) { n.oldState === r.connectionState.reconnecting && t.clearTimeout(f) }), i._.configuredStopReconnectingTimeout = !0) }; if (r = function (n, t, i) { return new r.fn.init(n, t, i) }, r._ = { defaultContentType: "application/x-www-form-urlencoded; charset=UTF-8", ieVersion: function () { var i, n; return t.navigator.appName === "Microsoft Internet Explorer" && (n = /MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent), n && (i = t.parseFloat(n[1]))), i }(), error: function (n, t, i) { var r = new Error(n); return r.source = t, typeof i != "undefined" && (r.context = i), r }, transportError: function (n, t, r, u) { var f = this.error(n, r, u); return f.transport = t ? t.name : i, f }, format: function () { for (var t = arguments[0], n = 0; n < arguments.length - 1; n++)t = t.replace("{" + n + "}", arguments[n + 1]); return t }, firefoxMajorVersion: function (n) { var t = n.match(/Firefox\/(\d+)/); return !t || !t.length || t.length < 2 ? 0 : parseInt(t[1], 10) }, configurePingInterval: function (i) { var f = i._.config, e = function (t) { n(i).triggerHandler(u.onError, [t]) }; f && !i._.pingIntervalId && f.pingInterval && (i._.pingIntervalId = t.setInterval(function () { r.transports._logic.pingServer(i).fail(e) }, f.pingInterval)) } }, r.events = u, r.resources = f, r.ajaxDefaults = { processData: !0, timeout: null, async: !0, global: !1, cache: !1 }, r.changeState = s, r.isDisconnecting = y, r.connectionState = { connecting: 0, connected: 1, reconnecting: 2, disconnected: 4 }, r.hub = { start: function () { throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>."); } }, typeof e.on == "function") e.on("load", function () { o = !0 }); else e.load(function () { o = !0 }); r.fn = r.prototype = { init: function (t, i, r) { var f = n(this); this.url = t; this.qs = i; this.lastError = null; this._ = { keepAliveData: {}, connectingMessageBuffer: new k(this, function (n) { f.triggerHandler(u.onReceived, [n]) }), lastMessageAt: (new Date).getTime(), lastActiveAt: (new Date).getTime(), beatInterval: 5e3, beatHandle: null, totalTransportConnectTimeout: 0 }; typeof r == "boolean" && (this.logging = r) }, _parseResponse: function (n) { var t = this; return n ? typeof n == "string" ? t.json.parse(n) : n : n }, _originalJson: t.JSON, json: t.JSON, isCrossDomain: function (i, r) { var u; return (i = n.trim(i), r = r || t.location, i.indexOf("http") !== 0) ? !1 : (u = t.document.createElement("a"), u.href = i, u.protocol + a(u.protocol, u.host) !== r.protocol + a(r.protocol, r.host)) }, ajaxDataType: "text", contentType: "application/json; charset=UTF-8", logging: !1, state: r.connectionState.disconnected, clientProtocol: "1.5", reconnectDelay: 2e3, transportConnectTimeout: 0, disconnectTimeout: 3e4, reconnectWindow: 3e4, keepAliveWarnAt: 2 / 3, start: function (i, h) { var a = this, v = { pingInterval: 3e5, waitForPageLoad: !0, transport: "auto", jsonp: !1 }, d, y = a._deferral || n.Deferred(), b = t.document.createElement("a"), k, g; if (a.lastError = null, a._deferral = y, !a.json) throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8."); if (n.type(i) === "function" ? h = i : n.type(i) === "object" && (n.extend(v, i), n.type(v.callback) === "function" && (h = v.callback)), v.transport = w(v.transport, a), !v.transport) throw new Error("SignalR: Invalid transport(s) specified, aborting start."); return (a._.config = v, !o && v.waitForPageLoad === !0) ? (a._.deferredStartHandler = function () { a.start(i, h) }, e.bind("load", a._.deferredStartHandler), y.promise()) : a.state === r.connectionState.connecting ? y.promise() : s(a, r.connectionState.disconnected, r.connectionState.connecting) === !1 ? (y.resolve(a), y.promise()) : (p(a), b.href = a.url, b.protocol && b.protocol !== ":" ? (a.protocol = b.protocol, a.host = b.host) : (a.protocol = t.document.location.protocol, a.host = b.host || t.document.location.host), a.baseUrl = a.protocol + "//" + a.host, a.wsProtocol = a.protocol === "https:" ? "wss://" : "ws://", v.transport === "auto" && v.jsonp === !0 && (v.transport = "longPolling"), a.url.indexOf("//") === 0 && (a.url = t.location.protocol + a.url, a.log("Protocol relative URL detected, normalizing it to '" + a.url + "'.")), this.isCrossDomain(a.url) && (a.log("Auto detected cross domain url."), v.transport === "auto" && (v.transport = ["webSockets", "serverSentEvents", "longPolling"]), typeof v.withCredentials == "undefined" && (v.withCredentials = !0), v.jsonp || (v.jsonp = !n.support.cors, v.jsonp && a.log("Using jsonp because this browser doesn't support CORS.")), a.contentType = r._.defaultContentType), a.withCredentials = v.withCredentials, a.ajaxDataType = v.jsonp ? "jsonp" : "text", n(a).bind(u.onStart, function () { n.type(h) === "function" && h.call(a); y.resolve(a) }), a._.initHandler = r.transports._logic.initHandler(a), d = function (i, o) { var c = r._.error(f.noTransportOnInit); if (o = o || 0, o >= i.length) { o === 0 ? a.log("No transports supported by the server were selected.") : o === 1 ? a.log("No fallback transports were selected.") : a.log("Fallback transports exhausted."); n(a).triggerHandler(u.onError, [c]); y.reject(c); a.stop(); return } if (a.state !== r.connectionState.disconnected) { var p = i[o], h = r.transports[p], v = function () { d(i, o + 1) }; a.transport = h; try { a._.initHandler.start(h, function () { var i = r._.firefoxMajorVersion(t.navigator.userAgent) >= 11, f = !!a.withCredentials && i; a.log("The start request succeeded. Transitioning to the connected state."); l(a) && r.transports._logic.monitorKeepAlive(a); r.transports._logic.startHeartbeat(a); r._.configurePingInterval(a); s(a, r.connectionState.connecting, r.connectionState.connected) || a.log("WARNING! The connection was not in the connecting state."); a._.connectingMessageBuffer.drain(); n(a).triggerHandler(u.onStart); e.bind("unload", function () { a.log("Window unloading, stopping the connection."); a.stop(f) }); i && e.bind("beforeunload", function () { t.setTimeout(function () { a.stop(f) }, 0) }) }, v) } catch (w) { a.log(h.name + " transport threw '" + w.message + "' when attempting to start."); v() } } }, k = a.url + "/negotiate", g = function (t, i) { var e = r._.error(f.errorOnNegotiate, t, i._.negotiateRequest); n(i).triggerHandler(u.onError, e); y.reject(e); i.stop() }, n(a).triggerHandler(u.onStarting), k = r.transports._logic.prepareQueryString(a, k), a.log("Negotiating with '" + k + "'."), a._.negotiateRequest = r.transports._logic.ajax(a, { url: k, error: function (n, t) { t !== c ? g(n, a) : y.reject(r._.error(f.stoppedWhileNegotiating, null, a._.negotiateRequest)) }, success: function (t) { var i, e, h, o = [], s = []; try { i = a._parseResponse(t) } catch (c) { g(r._.error(f.errorParsingNegotiateResponse, c), a); return } if (e = a._.keepAliveData, a.appRelativeUrl = i.Url, a.id = i.ConnectionId, a.token = i.ConnectionToken, a.webSocketServerUrl = i.WebSocketServerUrl, a._.pollTimeout = i.ConnectionTimeout * 1e3 + 1e4, a.disconnectTimeout = i.DisconnectTimeout * 1e3, a._.totalTransportConnectTimeout = a.transportConnectTimeout + i.TransportConnectTimeout * 1e3, i.KeepAliveTimeout ? (e.activated = !0, e.timeout = i.KeepAliveTimeout * 1e3, e.timeoutWarning = e.timeout * a.keepAliveWarnAt, a._.beatInterval = (e.timeout - e.timeoutWarning) / 3) : e.activated = !1, a.reconnectWindow = a.disconnectTimeout + (e.timeout || 0), !i.ProtocolVersion || i.ProtocolVersion !== a.clientProtocol) { h = r._.error(r._.format(f.protocolIncompatible, a.clientProtocol, i.ProtocolVersion)); n(a).triggerHandler(u.onError, [h]); y.reject(h); return } n.each(r.transports, function (n) { if (n.indexOf("_") === 0 || n === "webSockets" && !i.TryWebSockets) return !0; s.push(n) }); n.isArray(v.transport) ? n.each(v.transport, function (t, i) { n.inArray(i, s) >= 0 && o.push(i) }) : v.transport === "auto" ? o = s : n.inArray(v.transport, s) >= 0 && o.push(v.transport); d(o) } }), y.promise()) }, starting: function (t) { var i = this; return n(i).bind(u.onStarting, function () { t.call(i) }), i }, send: function (n) { var t = this; if (t.state === r.connectionState.disconnected) throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()"); if (t.state === r.connectionState.connecting) throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started."); return t.transport.send(t, n), t }, received: function (t) { var i = this; return n(i).bind(u.onReceived, function (n, r) { t.call(i, r) }), i }, stateChanged: function (t) { var i = this; return n(i).bind(u.onStateChanged, function (n, r) { t.call(i, r) }), i }, error: function (t) { var i = this; return n(i).bind(u.onError, function (n, r, u) { i.lastError = r; t.call(i, r, u) }), i }, disconnected: function (t) { var i = this; return n(i).bind(u.onDisconnect, function () { t.call(i) }), i }, connectionSlow: function (t) { var i = this; return n(i).bind(u.onConnectionSlow, function () { t.call(i) }), i }, reconnecting: function (t) { var i = this; return n(i).bind(u.onReconnecting, function () { t.call(i) }), i }, reconnected: function (t) { var i = this; return n(i).bind(u.onReconnect, function () { t.call(i) }), i }, stop: function (i, h) { var a = this, v = a._deferral; if (a._.deferredStartHandler && e.unbind("load", a._.deferredStartHandler), delete a._.config, delete a._.deferredStartHandler, !o && (!a._.config || a._.config.waitForPageLoad === !0)) { a.log("Stopping connection prior to negotiate."); v && v.reject(r._.error(f.stoppedWhileLoading)); return } if (a.state !== r.connectionState.disconnected) return a.log("Stopping connection."), t.clearTimeout(a._.beatHandle), t.clearInterval(a._.pingIntervalId), a.transport && (a.transport.stop(a), h !== !1 && a.transport.abort(a, i), l(a) && r.transports._logic.stopMonitoringKeepAlive(a), a.transport = null), a._.negotiateRequest && (a._.negotiateRequest.abort(c), delete a._.negotiateRequest), a._.initHandler && a._.initHandler.stop(), delete a._deferral, delete a.messageId, delete a.groupsToken, delete a.id, delete a._.pingIntervalId, delete a._.lastMessageAt, delete a._.lastActiveAt, a._.connectingMessageBuffer.clear(), n(a).unbind(u.onStart), s(a, a.state, r.connectionState.disconnected), n(a).triggerHandler(u.onDisconnect), a }, log: function (n) { v(n, this.logging) } }; r.fn.init.prototype = r.fn; r.noConflict = function () { return n.connection === r && (n.connection = h), r }; n.connection && (h = n.connection); n.connection = n.signalR = r })(window.jQuery, window), function (n, t, i) { function s(n) { n._.keepAliveData.monitoring && l(n); u.markActive(n) && (n._.beatHandle = t.setTimeout(function () { s(n) }, n._.beatInterval)) } function l(t) { var i = t._.keepAliveData, u; t.state === r.connectionState.connected && (u = (new Date).getTime() - t._.lastMessageAt, u >= i.timeout ? (t.log("Keep alive timed out.  Notifying transport that connection has been lost."), t.transport.lostConnection(t)) : u >= i.timeoutWarning ? i.userNotified || (t.log("Keep alive has been missed, connection may be dead/slow."), n(t).triggerHandler(f.onConnectionSlow), i.userNotified = !0) : i.userNotified = !1) } function e(n, t) { var i = n.url + t; return n.transport && (i += "?transport=" + n.transport.name), u.prepareQueryString(n, i) } function h(n) { this.connection = n; this.startRequested = !1; this.startCompleted = !1; this.connectionStopped = !1 } var r = n.signalR, f = n.signalR.events, c = n.signalR.changeState, o = "__Start Aborted__", u; r.transports = {}; h.prototype = { start: function (n, r, u) { var f = this, e = f.connection, o = !1; if (f.startRequested || f.connectionStopped) { e.log("WARNING! " + n.name + " transport cannot be started. Initialization ongoing or completed."); return } e.log(n.name + " transport starting."); n.start(e, function () { o || f.initReceived(n, r) }, function (t) { return o || (o = !0, f.transportFailed(n, t, u)), !f.startCompleted || f.connectionStopped }); f.transportTimeoutHandle = t.setTimeout(function () { o || (o = !0, e.log(n.name + " transport timed out when trying to connect."), f.transportFailed(n, i, u)) }, e._.totalTransportConnectTimeout) }, stop: function () { this.connectionStopped = !0; t.clearTimeout(this.transportTimeoutHandle); r.transports._logic.tryAbortStartRequest(this.connection) }, initReceived: function (n, i) { var u = this, f = u.connection; if (u.startRequested) { f.log("WARNING! The client received multiple init messages."); return } u.connectionStopped || (u.startRequested = !0, t.clearTimeout(u.transportTimeoutHandle), f.log(n.name + " transport connected. Initiating start request."), r.transports._logic.ajaxStart(f, function () { u.startCompleted = !0; i() })) }, transportFailed: function (i, u, e) { var o = this.connection, h = o._deferral, s; this.connectionStopped || (t.clearTimeout(this.transportTimeoutHandle), this.startRequested ? this.startCompleted || (s = r._.error(r.resources.errorDuringStartRequest, u), o.log(i.name + " transport failed during the start request. Stopping the connection."), n(o).triggerHandler(f.onError, [s]), h && h.reject(s), o.stop()) : (i.stop(o), o.log(i.name + " transport failed to connect. Attempting to fall back."), e())) } }; u = r.transports._logic = { ajax: function (t, i) { return n.ajax(n.extend(!0, {}, n.signalR.ajaxDefaults, { type: "GET", data: {}, xhrFields: { withCredentials: t.withCredentials }, contentType: t.contentType, dataType: t.ajaxDataType }, i)) }, pingServer: function (t) { var e, f, i = n.Deferred(); return t.transport ? (e = t.url + "/ping", e = u.addQs(e, t.qs), f = u.ajax(t, { url: e, success: function (n) { var u; try { u = t._parseResponse(n) } catch (e) { i.reject(r._.transportError(r.resources.pingServerFailedParse, t.transport, e, f)); t.stop(); return } u.Response === "pong" ? i.resolve() : i.reject(r._.transportError(r._.format(r.resources.pingServerFailedInvalidResponse, n), t.transport, null, f)) }, error: function (n) { n.status === 401 || n.status === 403 ? (i.reject(r._.transportError(r._.format(r.resources.pingServerFailedStatusCode, n.status), t.transport, n, f)), t.stop()) : i.reject(r._.transportError(r.resources.pingServerFailed, t.transport, n, f)) } })) : i.reject(r._.transportError(r.resources.noConnectionTransport, t.transport)), i.promise() }, prepareQueryString: function (n, i) { var r; return r = u.addQs(i, "clientProtocol=" + n.clientProtocol), r = u.addQs(r, n.qs), n.token && (r += "&connectionToken=" + t.encodeURIComponent(n.token)), n.data && (r += "&connectionData=" + t.encodeURIComponent(n.data)), r }, addQs: function (t, i) { var r = t.indexOf("?") !== -1 ? "&" : "?", u; if (!i) return t; if (typeof i == "object") return t + r + n.param(i); if (typeof i == "string") return u = i.charAt(0), (u === "?" || u === "&") && (r = ""), t + r + i; throw new Error("Query string property must be either a string or object."); }, getUrl: function (n, i, r, f, e) { var h = i === "webSockets" ? "" : n.baseUrl, o = h + n.appRelativeUrl, s = "transport=" + i; return !e && n.groupsToken && (s += "&groupsToken=" + t.encodeURIComponent(n.groupsToken)), r ? (o += f ? "/poll" : "/reconnect", !e && n.messageId && (s += "&messageId=" + t.encodeURIComponent(n.messageId))) : o += "/connect", o += "?" + s, o = u.prepareQueryString(n, o), e || (o += "&tid=" + Math.floor(Math.random() * 11)), o }, maximizePersistentResponse: function (n) { return { MessageId: n.C, Messages: n.M, Initialized: typeof n.S != "undefined" ? !0 : !1, ShouldReconnect: typeof n.T != "undefined" ? !0 : !1, LongPollDelay: n.L, GroupsToken: n.G } }, updateGroups: function (n, t) { t && (n.groupsToken = t) }, stringifySend: function (n, t) { return typeof t == "string" || typeof t == "undefined" || t === null ? t : n.json.stringify(t) }, ajaxSend: function (t, i) { var h = u.stringifySend(t, i), c = e(t, "/send"), o, s = function (t, u) { n(u).triggerHandler(f.onError, [r._.transportError(r.resources.sendFailed, u.transport, t, o), i]) }; return o = u.ajax(t, { url: c, type: t.ajaxDataType === "jsonp" ? "GET" : "POST", contentType: r._.defaultContentType, data: { data: h }, success: function (n) { var i; if (n) { try { i = t._parseResponse(n) } catch (r) { s(r, t); t.stop(); return } u.triggerReceived(t, i) } }, error: function (n, i) { i !== "abort" && i !== "parsererror" && s(n, t) } }) }, ajaxAbort: function (n, t) { if (typeof n.transport != "undefined") { t = typeof t == "undefined" ? !0 : t; var i = e(n, "/abort"); u.ajax(n, { url: i, async: t, timeout: 1e3, type: "POST" }); n.log("Fired ajax abort async = " + t + ".") } }, ajaxStart: function (t, i) { var h = function (n) { var i = t._deferral; i && i.reject(n) }, s = function (i) { t.log("The start request failed. Stopping the connection."); n(t).triggerHandler(f.onError, [i]); h(i); t.stop() }; t._.startRequest = u.ajax(t, { url: e(t, "/start"), success: function (n, u, f) { var e; try { e = t._parseResponse(n) } catch (o) { s(r._.error(r._.format(r.resources.errorParsingStartResponse, n), o, f)); return } e.Response === "started" ? i() : s(r._.error(r._.format(r.resources.invalidStartResponse, n), null, f)) }, error: function (n, i, u) { i !== o ? s(r._.error(r.resources.errorDuringStartRequest, u, n)) : (t.log("The start request aborted because connection.stop() was called."), h(r._.error(r.resources.stoppedDuringStartRequest, null, n))) } }) }, tryAbortStartRequest: function (n) { n._.startRequest && (n._.startRequest.abort(o), delete n._.startRequest) }, tryInitialize: function (n, t, i) { t.Initialized && i ? i() : t.Initialized && n.log("WARNING! The client received an init message after reconnecting.") }, triggerReceived: function (t, i) { t._.connectingMessageBuffer.tryBuffer(i) || n(t).triggerHandler(f.onReceived, [i]) }, processMessages: function (t, i, r) { var f; u.markLastMessage(t); i && (f = u.maximizePersistentResponse(i), u.updateGroups(t, f.GroupsToken), f.MessageId && (t.messageId = f.MessageId), f.Messages && (n.each(f.Messages, function (n, i) { u.triggerReceived(t, i) }), u.tryInitialize(t, f, r))) }, monitorKeepAlive: function (t) { var i = t._.keepAliveData; i.monitoring ? t.log("Tried to monitor keep alive but it's already being monitored.") : (i.monitoring = !0, u.markLastMessage(t), t._.keepAliveData.reconnectKeepAliveUpdate = function () { u.markLastMessage(t) }, n(t).bind(f.onReconnect, t._.keepAliveData.reconnectKeepAliveUpdate), t.log("Now monitoring keep alive with a warning timeout of " + i.timeoutWarning + ", keep alive timeout of " + i.timeout + " and disconnecting timeout of " + t.disconnectTimeout)) }, stopMonitoringKeepAlive: function (t) { var i = t._.keepAliveData; i.monitoring && (i.monitoring = !1, n(t).unbind(f.onReconnect, t._.keepAliveData.reconnectKeepAliveUpdate), t._.keepAliveData = {}, t.log("Stopping the monitoring of the keep alive.")) }, startHeartbeat: function (n) { n._.lastActiveAt = (new Date).getTime(); s(n) }, markLastMessage: function (n) { n._.lastMessageAt = (new Date).getTime() }, markActive: function (n) { return u.verifyLastActive(n) ? (n._.lastActiveAt = (new Date).getTime(), !0) : !1 }, isConnectedOrReconnecting: function (n) { return n.state === r.connectionState.connected || n.state === r.connectionState.reconnecting }, ensureReconnectingState: function (t) { return c(t, r.connectionState.connected, r.connectionState.reconnecting) === !0 && n(t).triggerHandler(f.onReconnecting), t.state === r.connectionState.reconnecting }, clearReconnectTimeout: function (n) { n && n._.reconnectTimeout && (t.clearTimeout(n._.reconnectTimeout), delete n._.reconnectTimeout) }, verifyLastActive: function (t) { if ((new Date).getTime() - t._.lastActiveAt >= t.reconnectWindow) { var i = r._.format(r.resources.reconnectWindowTimeout, new Date(t._.lastActiveAt), t.reconnectWindow); return t.log(i), n(t).triggerHandler(f.onError, [r._.error(i, "TimeoutException")]), t.stop(!1, !1), !1 } return !0 }, reconnect: function (n, i) { var f = r.transports[i]; if (u.isConnectedOrReconnecting(n) && !n._.reconnectTimeout) { if (!u.verifyLastActive(n)) return; n._.reconnectTimeout = t.setTimeout(function () { u.verifyLastActive(n) && (f.stop(n), u.ensureReconnectingState(n) && (n.log(i + " reconnecting."), f.start(n))) }, n.reconnectDelay) } }, handleParseFailure: function (t, i, u, e, o) { var s = r._.transportError(r._.format(r.resources.parseFailed, i), t.transport, u, o); e && e(s) ? t.log("Failed to parse server response while attempting to connect.") : (n(t).triggerHandler(f.onError, [s]), t.stop()) }, initHandler: function (n) { return new h(n) }, foreverFrame: { count: 0, connections: {} } } }(window.jQuery, window), function (n, t) { var r = n.signalR, u = n.signalR.events, f = n.signalR.changeState, i = r.transports._logic; r.transports.webSockets = { name: "webSockets", supportsKeepAlive: function () { return !0 }, send: function (t, f) { var e = i.stringifySend(t, f); try { t.socket.send(e) } catch (o) { n(t).triggerHandler(u.onError, [r._.transportError(r.resources.webSocketsInvalidState, t.transport, o, t.socket), f]) } }, start: function (e, o, s) { var h, c = !1, l = this, a = !o, v = n(e); if (!t.WebSocket) { s(); return } e.socket || (h = e.webSocketServerUrl ? e.webSocketServerUrl : e.wsProtocol + e.host, h += i.getUrl(e, this.name, a), e.log("Connecting to websocket endpoint '" + h + "'."), e.socket = new t.WebSocket(h), e.socket.onopen = function () { c = !0; e.log("Websocket opened."); i.clearReconnectTimeout(e); f(e, r.connectionState.reconnecting, r.connectionState.connected) === !0 && v.triggerHandler(u.onReconnect) }, e.socket.onclose = function (t) { var i; this === e.socket && (c && typeof t.wasClean != "undefined" && t.wasClean === !1 ? (i = r._.transportError(r.resources.webSocketClosed, e.transport, t), e.log("Unclean disconnect from websocket: " + (t.reason || "[no reason given]."))) : e.log("Websocket closed."), s && s(i) || (i && n(e).triggerHandler(u.onError, [i]), l.reconnect(e))) }, e.socket.onmessage = function (t) { var r; try { r = e._parseResponse(t.data) } catch (u) { i.handleParseFailure(e, t.data, u, s, t); return } r && (n.isEmptyObject(r) || r.M ? i.processMessages(e, r, o) : i.triggerReceived(e, r)) }) }, reconnect: function (n) { i.reconnect(n, this.name) }, lostConnection: function (n) { this.reconnect(n) }, stop: function (n) { i.clearReconnectTimeout(n); n.socket && (n.log("Closing the Websocket."), n.socket.close(), n.socket = null) }, abort: function (n, t) { i.ajaxAbort(n, t) } } }(window.jQuery, window), function (n, t) { var i = n.signalR, u = n.signalR.events, e = n.signalR.changeState, r = i.transports._logic, f = function (n) { t.clearTimeout(n._.reconnectAttemptTimeoutHandle); delete n._.reconnectAttemptTimeoutHandle }; i.transports.serverSentEvents = { name: "serverSentEvents", supportsKeepAlive: function () { return !0 }, timeOut: 3e3, start: function (o, s, h) { var c = this, l = !1, a = n(o), v = !s, y; if (o.eventSource && (o.log("The connection already has an event source. Stopping it."), o.stop()), !t.EventSource) { h && (o.log("This browser doesn't support SSE."), h()); return } y = r.getUrl(o, this.name, v); try { o.log("Attempting to connect to SSE endpoint '" + y + "'."); o.eventSource = new t.EventSource(y, { withCredentials: o.withCredentials }) } catch (p) { o.log("EventSource failed trying to connect with error " + p.Message + "."); h ? h() : (a.triggerHandler(u.onError, [i._.transportError(i.resources.eventSourceFailedToConnect, o.transport, p)]), v && c.reconnect(o)); return } v && (o._.reconnectAttemptTimeoutHandle = t.setTimeout(function () { l === !1 && o.eventSource.readyState !== t.EventSource.OPEN && c.reconnect(o) }, c.timeOut)); o.eventSource.addEventListener("open", function () { o.log("EventSource connected."); f(o); r.clearReconnectTimeout(o); l === !1 && (l = !0, e(o, i.connectionState.reconnecting, i.connectionState.connected) === !0 && a.triggerHandler(u.onReconnect)) }, !1); o.eventSource.addEventListener("message", function (n) { var t; if (n.data !== "initialized") { try { t = o._parseResponse(n.data) } catch (i) { r.handleParseFailure(o, n.data, i, h, n); return } r.processMessages(o, t, s) } }, !1); o.eventSource.addEventListener("error", function (n) { var r = i._.transportError(i.resources.eventSourceError, o.transport, n); this === o.eventSource && (h && h(r) || (o.log("EventSource readyState: " + o.eventSource.readyState + "."), n.eventPhase === t.EventSource.CLOSED ? (o.log("EventSource reconnecting due to the server connection ending."), c.reconnect(o)) : (o.log("EventSource error."), a.triggerHandler(u.onError, [r])))) }, !1) }, reconnect: function (n) { r.reconnect(n, this.name) }, lostConnection: function (n) { this.reconnect(n) }, send: function (n, t) { r.ajaxSend(n, t) }, stop: function (n) { f(n); r.clearReconnectTimeout(n); n && n.eventSource && (n.log("EventSource calling close()."), n.eventSource.close(), n.eventSource = null, delete n.eventSource) }, abort: function (n, t) { r.ajaxAbort(n, t) } } }(window.jQuery, window), function (n, t) { var r = n.signalR, e = n.signalR.events, o = n.signalR.changeState, i = r.transports._logic, u = function () { var n = t.document.createElement("iframe"); return n.setAttribute("style", "position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"), n }, f = function () { var i = null, f = 1e3, n = 0; return { prevent: function () { r._.ieVersion <= 8 && (n === 0 && (i = t.setInterval(function () { var n = u(); t.document.body.appendChild(n); t.document.body.removeChild(n); n = null }, f)), n++) }, cancel: function () { n === 1 && t.clearInterval(i); n > 0 && n-- } } }(); r.transports.foreverFrame = { name: "foreverFrame", supportsKeepAlive: function () { return !0 }, iframeClearThreshold: 50, start: function (n, r, e) { var l = this, s = i.foreverFrame.count += 1, h, o = u(), c = function () { n.log("Forever frame iframe finished loading and is no longer receiving messages."); e && e() || l.reconnect(n) }; if (t.EventSource) { e && (n.log("Forever Frame is not supported by SignalR on browsers with SSE support."), e()); return } o.setAttribute("data-signalr-connection-id", n.id); f.prevent(); h = i.getUrl(n, this.name); h += "&frameId=" + s; t.document.documentElement.appendChild(o); n.log("Binding to iframe's load event."); o.addEventListener ? o.addEventListener("load", c, !1) : o.attachEvent && o.attachEvent("onload", c); o.src = h; i.foreverFrame.connections[s] = n; n.frame = o; n.frameId = s; r && (n.onSuccess = function () { n.log("Iframe transport started."); r() }) }, reconnect: function (n) { var r = this; i.isConnectedOrReconnecting(n) && i.verifyLastActive(n) && t.setTimeout(function () { if (i.verifyLastActive(n) && n.frame && i.ensureReconnectingState(n)) { var u = n.frame, t = i.getUrl(n, r.name, !0) + "&frameId=" + n.frameId; n.log("Updating iframe src to '" + t + "'."); u.src = t } }, n.reconnectDelay) }, lostConnection: function (n) { this.reconnect(n) }, send: function (n, t) { i.ajaxSend(n, t) }, receive: function (t, u) { var f, e, o; if (t.json !== t._originalJson && (u = t._originalJson.stringify(u)), o = t._parseResponse(u), i.processMessages(t, o, t.onSuccess), t.state === n.signalR.connectionState.connected && (t.frameMessageCount = (t.frameMessageCount || 0) + 1, t.frameMessageCount > r.transports.foreverFrame.iframeClearThreshold && (t.frameMessageCount = 0, f = t.frame.contentWindow || t.frame.contentDocument, f && f.document && f.document.body))) for (e = f.document.body; e.firstChild;)e.removeChild(e.firstChild) }, stop: function (n) { var r = null; if (f.cancel(), n.frame) { if (n.frame.stop) n.frame.stop(); else try { r = n.frame.contentWindow || n.frame.contentDocument; r.document && r.document.execCommand && r.document.execCommand("Stop") } catch (u) { n.log("Error occurred when stopping foreverFrame transport. Message = " + u.message + ".") } n.frame.parentNode === t.document.documentElement && t.document.documentElement.removeChild(n.frame); delete i.foreverFrame.connections[n.frameId]; n.frame = null; n.frameId = null; delete n.frame; delete n.frameId; delete n.onSuccess; delete n.frameMessageCount; n.log("Stopping forever frame.") } }, abort: function (n, t) { i.ajaxAbort(n, t) }, getConnection: function (n) { return i.foreverFrame.connections[n] }, started: function (t) { o(t, r.connectionState.reconnecting, r.connectionState.connected) === !0 && n(t).triggerHandler(e.onReconnect) } } }(window.jQuery, window), function (n, t) { var r = n.signalR, u = n.signalR.events, e = n.signalR.changeState, f = n.signalR.isDisconnecting, i = r.transports._logic; r.transports.longPolling = { name: "longPolling", supportsKeepAlive: function () { return !1 }, reconnectDelay: 3e3, start: function (o, s, h) { var a = this, v = function () { v = n.noop; o.log("LongPolling connected."); s ? s() : o.log("WARNING! The client received an init message after reconnecting.") }, y = function (n) { return h(n) ? (o.log("LongPolling failed to connect."), !0) : !1 }, c = o._, l = 0, p = function (i) { t.clearTimeout(c.reconnectTimeoutId); c.reconnectTimeoutId = null; e(i, r.connectionState.reconnecting, r.connectionState.connected) === !0 && (i.log("Raising the reconnect event"), n(i).triggerHandler(u.onReconnect)) }, w = 36e5; o.pollXhr && (o.log("Polling xhr requests already exists, aborting."), o.stop()); o.messageId = null; c.reconnectTimeoutId = null; c.pollTimeoutId = t.setTimeout(function () { (function e(s, h) { var g = s.messageId, nt = g === null, k = !nt, tt = !h, d = i.getUrl(s, a.name, k, tt, !0), b = {}; (s.messageId && (b.messageId = s.messageId), s.groupsToken && (b.groupsToken = s.groupsToken), f(s) !== !0) && (o.log("Opening long polling request to '" + d + "'."), s.pollXhr = i.ajax(o, { xhrFields: { onprogress: function () { i.markLastMessage(o) } }, url: d, type: "POST", contentType: r._.defaultContentType, data: b, timeout: o._.pollTimeout, success: function (r) { var h, w = 0, u, a; o.log("Long poll complete."); l = 0; try { h = o._parseResponse(r) } catch (b) { i.handleParseFailure(s, r, b, y, s.pollXhr); return } (c.reconnectTimeoutId !== null && p(s), h && (u = i.maximizePersistentResponse(h)), i.processMessages(s, h, v), u && n.type(u.LongPollDelay) === "number" && (w = u.LongPollDelay), f(s) !== !0) && (a = u && u.ShouldReconnect, !a || i.ensureReconnectingState(s)) && (w > 0 ? c.pollTimeoutId = t.setTimeout(function () { e(s, a) }, w) : e(s, a)) }, error: function (f, h) { var v = r._.transportError(r.resources.longPollFailed, o.transport, f, s.pollXhr); if (t.clearTimeout(c.reconnectTimeoutId), c.reconnectTimeoutId = null, h === "abort") { o.log("Aborted xhr request."); return } if (!y(v)) { if (l++ , o.state !== r.connectionState.reconnecting && (o.log("An error occurred using longPolling. Status = " + h + ".  Response = " + f.responseText + "."), n(s).triggerHandler(u.onError, [v])), (o.state === r.connectionState.connected || o.state === r.connectionState.reconnecting) && !i.verifyLastActive(o)) return; if (!i.ensureReconnectingState(s)) return; c.pollTimeoutId = t.setTimeout(function () { e(s, !0) }, a.reconnectDelay) } } }), k && h === !0 && (c.reconnectTimeoutId = t.setTimeout(function () { p(s) }, Math.min(1e3 * (Math.pow(2, l) - 1), w)))) })(o) }, 250) }, lostConnection: function (n) { n.pollXhr && n.pollXhr.abort("lostConnection") }, send: function (n, t) { i.ajaxSend(n, t) }, stop: function (n) { t.clearTimeout(n._.pollTimeoutId); t.clearTimeout(n._.reconnectTimeoutId); delete n._.pollTimeoutId; delete n._.reconnectTimeoutId; n.pollXhr && (n.pollXhr.abort(), n.pollXhr = null, delete n.pollXhr) }, abort: function (n, t) { i.ajaxAbort(n, t) } } }(window.jQuery, window), function (n) { function r(n) { return n + e } function s(n, t, i) { for (var f = n.length, u = [], r = 0; r < f; r += 1)n.hasOwnProperty(r) && (u[r] = t.call(i, n[r], r, n)); return u } function h(t) { return n.isFunction(t) ? null : n.type(t) === "undefined" ? null : t } function u(n) { for (var t in n) if (n.hasOwnProperty(t)) return !0; return !1 } function f(n, t) { var i = n._.invocationCallbacks, r, f; u(i) && n.log("Clearing hub invocation callbacks with error: " + t + "."); n._.invocationCallbackId = 0; delete n._.invocationCallbacks; n._.invocationCallbacks = {}; for (f in i) r = i[f], r.method.call(r.scope, { E: t }) } function i(n, t) { return new i.fn.init(n, t) } function t(i, r) { var u = { qs: null, logging: !1, useDefaultPath: !0 }; return n.extend(u, r), (!i || u.useDefaultPath) && (i = (i || "") + "/signalr"), new t.fn.init(i, u) } var e = ".hubProxy", o = n.signalR; i.fn = i.prototype = { init: function (n, t) { this.state = {}; this.connection = n; this.hubName = t; this._ = { callbackMap: {} } }, constructor: i, hasSubscriptions: function () { return u(this._.callbackMap) }, on: function (t, i) { var u = this, f = u._.callbackMap; return t = t.toLowerCase(), f[t] || (f[t] = {}), f[t][i] = function (n, t) { i.apply(u, t) }, n(u).bind(r(t), f[t][i]), u }, off: function (t, i) { var e = this, o = e._.callbackMap, f; return t = t.toLowerCase(), f = o[t], f && (f[i] ? (n(e).unbind(r(t), f[i]), delete f[i], u(f) || delete o[t]) : i || (n(e).unbind(r(t)), delete o[t])), e }, invoke: function (t) { var i = this, r = i.connection, e = n.makeArray(arguments).slice(1), c = s(e, h), f = { H: i.hubName, M: t, A: c, I: r._.invocationCallbackId }, u = n.Deferred(), l = function (f) { var e = i._maximizeHubResponse(f), h, s; n.extend(i.state, e.State); e.Progress ? u.notifyWith ? u.notifyWith(i, [e.Progress.Data]) : r._.progressjQueryVersionLogged || (r.log("A hub method invocation progress update was received but the version of jQuery in use (" + n.prototype.jquery + ") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."), r._.progressjQueryVersionLogged = !0) : e.Error ? (e.StackTrace && r.log(e.Error + "\n" + e.StackTrace + "."), h = e.IsHubException ? "HubException" : "Exception", s = o._.error(e.Error, h), s.data = e.ErrorData, r.log(i.hubName + "." + t + " failed to execute. Error: " + s.message), u.rejectWith(i, [s])) : (r.log("Invoked " + i.hubName + "." + t), u.resolveWith(i, [e.Result])) }; return r._.invocationCallbacks[r._.invocationCallbackId.toString()] = { scope: i, method: l }, r._.invocationCallbackId += 1, n.isEmptyObject(i.state) || (f.S = i.state), r.log("Invoking " + i.hubName + "." + t), r.send(f), u.promise() }, _maximizeHubResponse: function (n) { return { State: n.S, Result: n.R, Progress: n.P ? { Id: n.P.I, Data: n.P.D } : null, Id: n.I, IsHubException: n.H, Error: n.E, StackTrace: n.T, ErrorData: n.D } } }; i.fn.init.prototype = i.fn; t.fn = t.prototype = n.connection(); t.fn.init = function (t, i) { var e = { qs: null, logging: !1, useDefaultPath: !0 }, u = this; n.extend(e, i); n.signalR.fn.init.call(u, t, e.qs, e.logging); u.proxies = {}; u._.invocationCallbackId = 0; u._.invocationCallbacks = {}; u.received(function (t) { var f, o, e, i, s, h; t && (typeof t.P != "undefined" ? (e = t.P.I.toString(), i = u._.invocationCallbacks[e], i && i.method.call(i.scope, t)) : typeof t.I != "undefined" ? (e = t.I.toString(), i = u._.invocationCallbacks[e], i && (u._.invocationCallbacks[e] = null, delete u._.invocationCallbacks[e], i.method.call(i.scope, t))) : (f = this._maximizeClientHubInvocation(t), u.log("Triggering client hub event '" + f.Method + "' on hub '" + f.Hub + "'."), s = f.Hub.toLowerCase(), h = f.Method.toLowerCase(), o = this.proxies[s], n.extend(o.state, f.State), n(o).triggerHandler(r(h), [f.Args]))) }); u.error(function (n, t) { var i, r; t && (i = t.I, r = u._.invocationCallbacks[i], r && (u._.invocationCallbacks[i] = null, delete u._.invocationCallbacks[i], r.method.call(r.scope, { E: n }))) }); u.reconnecting(function () { u.transport && u.transport.name === "webSockets" && f(u, "Connection started reconnecting before invocation result was received.") }); u.disconnected(function () { f(u, "Connection was disconnected before invocation result was received.") }) }; t.fn._maximizeClientHubInvocation = function (n) { return { Hub: n.H, Method: n.M, Args: n.A, State: n.S } }; t.fn._registerSubscribedHubs = function () { var t = this; t._subscribedToHubs || (t._subscribedToHubs = !0, t.starting(function () { var i = []; n.each(t.proxies, function (n) { this.hasSubscriptions() && (i.push({ name: n }), t.log("Client subscribed to hub '" + n + "'.")) }); i.length === 0 && t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to."); t.data = t.json.stringify(i) })) }; t.fn.createHubProxy = function (n) { n = n.toLowerCase(); var t = this.proxies[n]; return t || (t = i(this, n), this.proxies[n] = t), this._registerSubscribedHubs(), t }; t.fn.init.prototype = t.fn; n.hubConnection = t }(window.jQuery, window), function (n) { n.signalR.version = "2.2.2" }(window.jQuery);/*!
 @package noty - jQuery Notification Plugin
 @version version: 2.3.3
 @contributors https://github.com/needim/noty/graphs/contributors
 @documentation Examples and Documentation - http://needim.github.com/noty/
 @license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php
 */
"function" != typeof Object.create && (Object.create = function (a) { function b() { } return b.prototype = a, new b }), function (a) { var b = { init: function (b) { return this.options = a.extend({}, a.noty.defaults, b), this.options.layout = this.options.custom ? a.noty.layouts.inline : a.noty.layouts[this.options.layout], a.noty.themes[this.options.theme] ? this.options.theme = a.noty.themes[this.options.theme] : b.themeClassName = this.options.theme, delete b.layout, delete b.theme, this.options = a.extend({}, this.options, this.options.layout.options), this.options.id = "noty_" + (new Date).getTime() * Math.floor(1e6 * Math.random()), this.options = a.extend({}, this.options, b), this._build(), this }, _build: function () { var b = a('<div class="noty_bar noty_type_' + this.options.type + '"></div>').attr("id", this.options.id); if (b.append(this.options.template).find(".noty_text").html(this.options.text), this.$bar = null !== this.options.layout.parent.object ? a(this.options.layout.parent.object).css(this.options.layout.parent.css).append(b) : b, this.options.themeClassName && this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_" + this.options.type), this.options.buttons) { this.options.closeWith = [], this.options.timeout = !1; var c = a("<div/>").addClass("noty_buttons"); null !== this.options.layout.parent.object ? this.$bar.find(".noty_bar").append(c) : this.$bar.append(c); var d = this; a.each(this.options.buttons, function (b, c) { var e = a("<button/>").addClass(c.addClass ? c.addClass : "gray").html(c.text).attr("id", c.id ? c.id : "button-" + b).appendTo(d.$bar.find(".noty_buttons")).bind("click", function () { a.isFunction(c.onClick) && c.onClick.call(e, d) }) }) } this.$message = this.$bar.find(".noty_message"), this.$closeButton = this.$bar.find(".noty_close"), this.$buttons = this.$bar.find(".noty_buttons"), a.noty.store[this.options.id] = this }, show: function () { var b = this; return b.options.custom ? b.options.custom.find(b.options.layout.container.selector).append(b.$bar) : a(b.options.layout.container.selector).append(b.$bar), b.options.theme && b.options.theme.style && b.options.theme.style.apply(b), "function" === a.type(b.options.layout.css) ? this.options.layout.css.apply(b.$bar) : b.$bar.css(this.options.layout.css || {}), b.$bar.addClass(b.options.layout.addClass), b.options.layout.container.style.apply(a(b.options.layout.container.selector)), b.showing = !0, b.options.theme && b.options.theme.style && b.options.theme.callback.onShow.apply(this), a.inArray("click", b.options.closeWith) > -1 && b.$bar.css("cursor", "pointer").one("click", function (a) { b.stopPropagation(a), b.options.callback.onCloseClick && b.options.callback.onCloseClick.apply(b), b.close() }), a.inArray("hover", b.options.closeWith) > -1 && b.$bar.one("mouseenter", function () { b.close() }), a.inArray("button", b.options.closeWith) > -1 && b.$closeButton.one("click", function (a) { b.stopPropagation(a), b.close() }), -1 == a.inArray("button", b.options.closeWith) && b.$closeButton.remove(), b.options.callback.onShow && b.options.callback.onShow.apply(b), b.$bar.animate(b.options.animation.open, b.options.animation.speed, b.options.animation.easing, function () { b.options.callback.afterShow && b.options.callback.afterShow.apply(b), b.showing = !1, b.shown = !0 }), b.options.timeout && b.$bar.delay(b.options.timeout).promise().done(function () { b.close() }), this }, close: function () { if (!(this.closed || this.$bar && this.$bar.hasClass("i-am-closing-now"))) { var b = this; if (this.showing) return b.$bar.queue(function () { b.close.apply(b) }), void 0; if (!this.shown && !this.showing) { var c = []; return a.each(a.noty.queue, function (a, d) { d.options.id != b.options.id && c.push(d) }), a.noty.queue = c, void 0 } b.$bar.addClass("i-am-closing-now"), b.options.callback.onClose && b.options.callback.onClose.apply(b), b.$bar.clearQueue().stop().animate(b.options.animation.close, b.options.animation.speed, b.options.animation.easing, function () { b.options.callback.afterClose && b.options.callback.afterClose.apply(b) }).promise().done(function () { b.options.modal && (a.notyRenderer.setModalCount(-1), 0 == a.notyRenderer.getModalCount() && a(".noty_modal").fadeOut("fast", function () { a(this).remove() })), a.notyRenderer.setLayoutCountFor(b, -1), 0 == a.notyRenderer.getLayoutCountFor(b) && a(b.options.layout.container.selector).remove(), "undefined" != typeof b.$bar && null !== b.$bar && (b.$bar.remove(), b.$bar = null, b.closed = !0), delete a.noty.store[b.options.id], b.options.theme.callback && b.options.theme.callback.onClose && b.options.theme.callback.onClose.apply(b), b.options.dismissQueue || (a.noty.ontap = !0, a.notyRenderer.render()), b.options.maxVisible > 0 && b.options.dismissQueue && a.notyRenderer.render() }) } }, setText: function (a) { return this.closed || (this.options.text = a, this.$bar.find(".noty_text").html(a)), this }, setType: function (a) { return this.closed || (this.options.type = a, this.options.theme.style.apply(this), this.options.theme.callback.onShow.apply(this)), this }, setTimeout: function (a) { if (!this.closed) { var b = this; this.options.timeout = a, b.$bar.delay(b.options.timeout).promise().done(function () { b.close() }) } return this }, stopPropagation: function (a) { a = a || window.event, "undefined" != typeof a.stopPropagation ? a.stopPropagation() : a.cancelBubble = !0 }, closed: !1, showing: !1, shown: !1 }; a.notyRenderer = {}, a.notyRenderer.init = function (c) { var d = Object.create(b).init(c); return d.options.killer && a.noty.closeAll(), d.options.force ? a.noty.queue.unshift(d) : a.noty.queue.push(d), a.notyRenderer.render(), "object" == a.noty.returns ? d : d.options.id }, a.notyRenderer.render = function () { var b = a.noty.queue[0]; "object" === a.type(b) ? b.options.dismissQueue ? b.options.maxVisible > 0 ? a(b.options.layout.container.selector + " li").length < b.options.maxVisible && a.notyRenderer.show(a.noty.queue.shift()) : a.notyRenderer.show(a.noty.queue.shift()) : a.noty.ontap && (a.notyRenderer.show(a.noty.queue.shift()), a.noty.ontap = !1) : a.noty.ontap = !0 }, a.notyRenderer.show = function (b) { b.options.modal && (a.notyRenderer.createModalFor(b), a.notyRenderer.setModalCount(1)), b.options.custom ? 0 == b.options.custom.find(b.options.layout.container.selector).length ? b.options.custom.append(a(b.options.layout.container.object).addClass("i-am-new")) : b.options.custom.find(b.options.layout.container.selector).removeClass("i-am-new") : 0 == a(b.options.layout.container.selector).length ? a("body").append(a(b.options.layout.container.object).addClass("i-am-new")) : a(b.options.layout.container.selector).removeClass("i-am-new"), a.notyRenderer.setLayoutCountFor(b, 1), b.show() }, a.notyRenderer.createModalFor = function (b) { if (0 == a(".noty_modal").length) { var c = a("<div/>").addClass("noty_modal").addClass(b.options.theme).data("noty_modal_count", 0); b.options.theme.modal && b.options.theme.modal.css && c.css(b.options.theme.modal.css), c.prependTo(a("body")).fadeIn("fast") } }, a.notyRenderer.getLayoutCountFor = function (b) { return a(b.options.layout.container.selector).data("noty_layout_count") || 0 }, a.notyRenderer.setLayoutCountFor = function (b, c) { return a(b.options.layout.container.selector).data("noty_layout_count", a.notyRenderer.getLayoutCountFor(b) + c) }, a.notyRenderer.getModalCount = function () { return a(".noty_modal").data("noty_modal_count") || 0 }, a.notyRenderer.setModalCount = function (b) { return a(".noty_modal").data("noty_modal_count", a.notyRenderer.getModalCount() + b) }, a.fn.noty = function (b) { return b.custom = a(this), a.notyRenderer.init(b) }, a.noty = {}, a.noty.queue = [], a.noty.ontap = !0, a.noty.layouts = {}, a.noty.themes = {}, a.noty.returns = "object", a.noty.store = {}, a.noty.get = function (b) { return a.noty.store.hasOwnProperty(b) ? a.noty.store[b] : !1 }, a.noty.close = function (b) { return a.noty.get(b) ? a.noty.get(b).close() : !1 }, a.noty.setText = function (b, c) { return a.noty.get(b) ? a.noty.get(b).setText(c) : !1 }, a.noty.setType = function (b, c) { return a.noty.get(b) ? a.noty.get(b).setType(c) : !1 }, a.noty.clearQueue = function () { a.noty.queue = [] }, a.noty.closeAll = function () { a.noty.clearQueue(), a.each(a.noty.store, function (a, b) { b.close() }) }; var c = window.alert; a.noty.consumeAlert = function (b) { window.alert = function (c) { b ? b.text = c : b = { text: c }, a.notyRenderer.init(b) } }, a.noty.stopConsumeAlert = function () { window.alert = c }, a.noty.defaults = { layout: "top", theme: "defaultTheme", type: "alert", text: "", dismissQueue: !0, template: '<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>', animation: { open: { height: "toggle" }, close: { height: "toggle" }, easing: "swing", speed: 500 }, timeout: !1, force: !1, modal: !1, maxVisible: 5, killer: !1, closeWith: ["click"], callback: { onShow: function () { }, afterShow: function () { }, onClose: function () { }, afterClose: function () { }, onCloseClick: function () { } }, buttons: !1 }, a(window).resize(function () { a.each(a.noty.layouts, function (b, c) { c.container.style.apply(a(c.container.selector)) }) }) }(jQuery), window.noty = function (a) { return jQuery.notyRenderer.init(a) }, function (a) { a.noty.layouts.bottom = { name: "bottom", options: {}, container: { object: '<ul id="noty_bottom_layout_container" />', selector: "ul#noty_bottom_layout_container", style: function () { a(this).css({ bottom: 0, left: "5%", position: "fixed", width: "90%", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 9999999 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.bottomCenter = { name: "bottomCenter", options: {}, container: { object: '<ul id="noty_bottomCenter_layout_container" />', selector: "ul#noty_bottomCenter_layout_container", style: function () { a(this).css({ bottom: 20, left: 0, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), a(this).css({ left: (a(window).width() - a(this).outerWidth(!1)) / 2 + "px" }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.bottomLeft = { name: "bottomLeft", options: {}, container: { object: '<ul id="noty_bottomLeft_layout_container" />', selector: "ul#noty_bottomLeft_layout_container", style: function () { a(this).css({ bottom: 20, left: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), window.innerWidth < 600 && a(this).css({ left: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.bottomRight = { name: "bottomRight", options: {}, container: { object: '<ul id="noty_bottomRight_layout_container" />', selector: "ul#noty_bottomRight_layout_container", style: function () { a(this).css({ bottom: 20, right: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), window.innerWidth < 600 && a(this).css({ right: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.center = { name: "center", options: {}, container: { object: '<ul id="noty_center_layout_container" />', selector: "ul#noty_center_layout_container", style: function () { a(this).css({ position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }); var b = a(this).clone().css({ visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0 }).attr("id", "dupe"); a("body").append(b), b.find(".i-am-closing-now").remove(), b.find("li").css("display", "block"); var c = b.height(); b.remove(), a(this).hasClass("i-am-new") ? a(this).css({ left: (a(window).width() - a(this).outerWidth(!1)) / 2 + "px", top: (a(window).height() - c) / 2 + "px" }) : a(this).animate({ left: (a(window).width() - a(this).outerWidth(!1)) / 2 + "px", top: (a(window).height() - c) / 2 + "px" }, 500) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.centerLeft = { name: "centerLeft", options: {}, container: { object: '<ul id="noty_centerLeft_layout_container" />', selector: "ul#noty_centerLeft_layout_container", style: function () { a(this).css({ left: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }); var b = a(this).clone().css({ visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0 }).attr("id", "dupe"); a("body").append(b), b.find(".i-am-closing-now").remove(), b.find("li").css("display", "block"); var c = b.height(); b.remove(), a(this).hasClass("i-am-new") ? a(this).css({ top: (a(window).height() - c) / 2 + "px" }) : a(this).animate({ top: (a(window).height() - c) / 2 + "px" }, 500), window.innerWidth < 600 && a(this).css({ left: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.centerRight = { name: "centerRight", options: {}, container: { object: '<ul id="noty_centerRight_layout_container" />', selector: "ul#noty_centerRight_layout_container", style: function () { a(this).css({ right: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }); var b = a(this).clone().css({ visibility: "hidden", display: "block", position: "absolute", top: 0, left: 0 }).attr("id", "dupe"); a("body").append(b), b.find(".i-am-closing-now").remove(), b.find("li").css("display", "block"); var c = b.height(); b.remove(), a(this).hasClass("i-am-new") ? a(this).css({ top: (a(window).height() - c) / 2 + "px" }) : a(this).animate({ top: (a(window).height() - c) / 2 + "px" }, 500), window.innerWidth < 600 && a(this).css({ right: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.inline = { name: "inline", options: {}, container: { object: '<ul class="noty_inline_layout_container" />', selector: "ul.noty_inline_layout_container", style: function () { a(this).css({ width: "100%", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 9999999 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.top = { name: "top", options: {}, container: { object: '<ul id="noty_top_layout_container" />', selector: "ul#noty_top_layout_container", style: function () { a(this).css({ top: 0, left: "5%", position: "fixed", width: "90%", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 9999999 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.topCenter = { name: "topCenter", options: {}, container: { object: '<ul id="noty_topCenter_layout_container" />', selector: "ul#noty_topCenter_layout_container", style: function () { a(this).css({ top: 20, left: 0, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), a(this).css({ left: (a(window).width() - a(this).outerWidth(!1)) / 2 + "px" }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.topLeft = { name: "topLeft", options: {}, container: { object: '<ul id="noty_topLeft_layout_container" />', selector: "ul#noty_topLeft_layout_container", style: function () { a(this).css({ top: 20, left: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), window.innerWidth < 600 && a(this).css({ left: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.layouts.topRight = { name: "topRight", options: {}, container: { object: '<ul id="noty_topRight_layout_container" />', selector: "ul#noty_topRight_layout_container", style: function () { a(this).css({ top: 20, right: 20, position: "fixed", width: "310px", height: "auto", margin: 0, padding: 0, listStyleType: "none", zIndex: 1e7 }), window.innerWidth < 600 && a(this).css({ right: 5 }) } }, parent: { object: "<li />", selector: "li", css: {} }, css: { display: "none", width: "310px" }, addClass: "" } }(jQuery), function (a) { a.noty.themes.defaultTheme = { name: "defaultTheme", helpers: { borderFix: function () { if (this.options.dismissQueue) { var b = this.options.layout.container.selector + " " + this.options.layout.parent.selector; switch (this.options.layout.name) { case "top": a(b).css({ borderRadius: "0px 0px 0px 0px" }), a(b).last().css({ borderRadius: "0px 0px 5px 5px" }); break; case "topCenter": case "topLeft": case "topRight": case "bottomCenter": case "bottomLeft": case "bottomRight": case "center": case "centerLeft": case "centerRight": case "inline": a(b).css({ borderRadius: "0px 0px 0px 0px" }), a(b).first().css({ "border-top-left-radius": "5px", "border-top-right-radius": "5px" }), a(b).last().css({ "border-bottom-left-radius": "5px", "border-bottom-right-radius": "5px" }); break; case "bottom": a(b).css({ borderRadius: "0px 0px 0px 0px" }), a(b).first().css({ borderRadius: "5px 5px 0px 0px" }) } } } }, modal: { css: { position: "fixed", width: "100%", height: "100%", backgroundColor: "#000", zIndex: 1e4, opacity: .6, display: "none", left: 0, top: 0 } }, style: function () { switch (this.$bar.css({ overflow: "hidden", background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==') repeat-x scroll left top #fff" }), this.$message.css({ fontSize: "13px", lineHeight: "16px", textAlign: "center", padding: "8px 10px 9px", width: "auto", position: "relative" }), this.$closeButton.css({ position: "absolute", top: 4, right: 4, width: 10, height: 10, background: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAATpJREFUeNoszrFqVFEUheG19zlz7sQ7ijMQBAvfYBqbpJCoZSAQbOwEE1IHGytbLQUJ8SUktW8gCCFJMSGSNxCmFBJO7j5rpXD6n5/P5vM53H3b3T9LOiB5AQDuDjM7BnA7DMPHDGBH0nuSzwHsRcRVRNRSysuU0i6AOwA/02w2+9Fae00SEbEh6SGAR5K+k3zWWptKepCm0+kpyRoRGyRBcpPkDsn1iEBr7drdP2VJZyQXERGSPpiZAViTBACXKaV9kqd5uVzCzO5KKb/d/UZSDwD/eyxqree1VqSu6zKAF2Z2RPJJaw0rAkjOJT0m+SuT/AbgDcmnkmBmfwAsJL1dXQ8lWY6IGwB1ZbrOOb8zs8thGP4COFwx/mE8Ho9Go9ErMzvJOW/1fY/JZIJSypqZfXX3L13X9fcDAKJct1sx3OiuAAAAAElFTkSuQmCC)", display: "none", cursor: "pointer" }), this.$buttons.css({ padding: 5, textAlign: "right", borderTop: "1px solid #ccc", backgroundColor: "#fff" }), this.$buttons.find("button").css({ marginLeft: 5 }), this.$buttons.find("button:first").css({ marginLeft: 0 }), this.$bar.bind({ mouseenter: function () { a(this).find(".noty_close").stop().fadeTo("normal", 1) }, mouseleave: function () { a(this).find(".noty_close").stop().fadeTo("normal", 0) } }), this.options.layout.name) { case "top": this.$bar.css({ borderRadius: "0px 0px 5px 5px", borderBottom: "2px solid #eee", borderLeft: "2px solid #eee", borderRight: "2px solid #eee", boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)" }); break; case "topCenter": case "center": case "bottomCenter": case "inline": this.$bar.css({ borderRadius: "5px", border: "1px solid #eee", boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)" }), this.$message.css({ fontSize: "13px", textAlign: "center" }); break; case "topLeft": case "topRight": case "bottomLeft": case "bottomRight": case "centerLeft": case "centerRight": this.$bar.css({ borderRadius: "5px", border: "1px solid #eee", boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)" }), this.$message.css({ fontSize: "13px", textAlign: "left" }); break; case "bottom": this.$bar.css({ borderRadius: "5px 5px 0px 0px", borderTop: "2px solid #eee", borderLeft: "2px solid #eee", borderRight: "2px solid #eee", boxShadow: "0 -2px 4px rgba(0, 0, 0, 0.1)" }); break; default: this.$bar.css({ border: "2px solid #eee", boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)" }) } switch (this.options.type) { case "alert": case "notification": this.$bar.css({ backgroundColor: "#FFF", borderColor: "#CCC", color: "#444" }); break; case "warning": this.$bar.css({ backgroundColor: "#FFEAA8", borderColor: "#FFC237", color: "#826200" }), this.$buttons.css({ borderTop: "1px solid #FFC237" }); break; case "error": this.$bar.css({ backgroundColor: "red", borderColor: "darkred", color: "#FFF" }), this.$message.css({ fontWeight: "bold" }), this.$buttons.css({ borderTop: "1px solid darkred" }); break; case "information": this.$bar.css({ backgroundColor: "#57B7E2", borderColor: "#0B90C4", color: "#FFF" }), this.$buttons.css({ borderTop: "1px solid #0B90C4" }); break; case "success": this.$bar.css({ backgroundColor: "lightgreen", borderColor: "#50C24E", color: "darkgreen" }), this.$buttons.css({ borderTop: "1px solid #50C24E" }); break; default: this.$bar.css({ backgroundColor: "#FFF", borderColor: "#CCC", color: "#444" }) } }, callback: { onShow: function () { a.noty.themes.defaultTheme.helpers.borderFix.apply(this) }, onClose: function () { a.noty.themes.defaultTheme.helpers.borderFix.apply(this) } } } }(jQuery);
/*!
 * Amplify 1.1.2
 *
 * Copyright 2011 - 2013 appendTo LLC. (http://appendto.com/team)
 * Dual licensed under the MIT or GPL licenses.
 * http://appendto.com/open-source-licenses
 *
 * http://amplifyjs.com
 */
(function(e,t){var n=[].slice,r={},i=e.amplify={publish:function(e){if(typeof e!="string")throw new Error("You must provide a valid topic to publish.");var t=n.call(arguments,1),i,s,o,u=0,a;if(!r[e])return!0;i=r[e].slice();for(o=i.length;u<o;u++){s=i[u],a=s.callback.apply(s.context,t);if(a===!1)break}return a!==!1},subscribe:function(e,t,n,i){if(typeof e!="string")throw new Error("You must provide a valid topic to create a subscription.");arguments.length===3&&typeof n=="number"&&(i=n,n=t,t=null),arguments.length===2&&(n=t,t=null),i=i||10;var s=0,o=e.split(/\s/),u=o.length,a;for(;s<u;s++){e=o[s],a=!1,r[e]||(r[e]=[]);var f=r[e].length-1,l={callback:n,context:t,priority:i};for(;f>=0;f--)if(r[e][f].priority<=i){r[e].splice(f+1,0,l),a=!0;break}a||r[e].unshift(l)}return n},unsubscribe:function(e,t,n){if(typeof e!="string")throw new Error("You must provide a valid topic to remove a subscription.");arguments.length===2&&(n=t,t=null);if(!r[e])return;var i=r[e].length,s=0;for(;s<i;s++)r[e][s].callback===n&&(!t||r[e][s].context===t)&&(r[e].splice(s,1),s--,i--)}}})(this),function(e,t){function i(e,i){n.addType(e,function(s,o,u){var a,f,l,c,h=o,p=(new Date).getTime();if(!s){h={},c=[],l=0;try{s=i.length;while(s=i.key(l++))r.test(s)&&(f=JSON.parse(i.getItem(s)),f.expires&&f.expires<=p?c.push(s):h[s.replace(r,"")]=f.data);while(s=c.pop())i.removeItem(s)}catch(d){}return h}s="__amplify__"+s;if(o===t){a=i.getItem(s),f=a?JSON.parse(a):{expires:-1};if(!(f.expires&&f.expires<=p))return f.data;i.removeItem(s)}else if(o===null)i.removeItem(s);else{f=JSON.stringify({data:o,expires:u.expires?p+u.expires:null});try{i.setItem(s,f)}catch(d){n[e]();try{i.setItem(s,f)}catch(d){throw n.error()}}}return h})}var n=e.store=function(e,t,r){var i=n.type;return r&&r.type&&r.type in n.types&&(i=r.type),n.types[i](e,t,r||{})};n.types={},n.type=null,n.addType=function(e,t){n.type||(n.type=e),n.types[e]=t,n[e]=function(t,r,i){return i=i||{},i.type=e,n(t,r,i)}},n.error=function(){return"amplify.store quota exceeded"};var r=/^__amplify__/;for(var s in{localStorage:1,sessionStorage:1})try{window[s].setItem("__amplify__","x"),window[s].removeItem("__amplify__"),i(s,window[s])}catch(o){}if(!n.types.localStorage&&window.globalStorage)try{i("globalStorage",window.globalStorage[window.location.hostname]),n.type==="sessionStorage"&&(n.type="globalStorage")}catch(o){}(function(){if(n.types.localStorage)return;var e=document.createElement("div"),r="amplify";e.style.display="none",document.getElementsByTagName("head")[0].appendChild(e);try{e.addBehavior("#default#userdata"),e.load(r)}catch(i){e.parentNode.removeChild(e);return}n.addType("userData",function(i,s,o){e.load(r);var u,a,f,l,c,h=s,p=(new Date).getTime();if(!i){h={},c=[],l=0;while(u=e.XMLDocument.documentElement.attributes[l++])a=JSON.parse(u.value),a.expires&&a.expires<=p?c.push(u.name):h[u.name]=a.data;while(i=c.pop())e.removeAttribute(i);return e.save(r),h}i=i.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),i=i.replace(/^-/,"_-");if(s===t){u=e.getAttribute(i),a=u?JSON.parse(u):{expires:-1};if(!(a.expires&&a.expires<=p))return a.data;e.removeAttribute(i)}else s===null?e.removeAttribute(i):(f=e.getAttribute(i),a=JSON.stringify({data:s,expires:o.expires?p+o.expires:null}),e.setAttribute(i,a));try{e.save(r)}catch(d){f===null?e.removeAttribute(i):e.setAttribute(i,f),n.userData();try{e.setAttribute(i,a),e.save(r)}catch(d){throw f===null?e.removeAttribute(i):e.setAttribute(i,f),n.error()}}return h})})(),function(){function i(e){return e===t?t:JSON.parse(JSON.stringify(e))}var e={},r={};n.addType("memory",function(n,s,o){return n?s===t?i(e[n]):(r[n]&&(clearTimeout(r[n]),delete r[n]),s===null?(delete e[n],null):(e[n]=s,o.expires&&(r[n]=setTimeout(function(){delete e[n],delete r[n]},o.expires)),s)):i(e)})}()}(this.amplify=this.amplify||{}),function(e,t){"use strict";function n(){}function r(e){return{}.toString.call(e)==="[object Function]"}function i(e){var t=!1;return setTimeout(function(){t=!0},1),function(){var n=this,r=arguments;t?e.apply(n,r):setTimeout(function(){e.apply(n,r)},1)}}e.request=function(t,s,o){var u=t||{};typeof u=="string"&&(r(s)&&(o=s,s={}),u={resourceId:t,data:s||{},success:o});var a={abort:n},f=e.request.resources[u.resourceId],l=u.success||n,c=u.error||n;u.success=i(function(t,n){n=n||"success",e.publish("request.success",u,t,n),e.publish("request.complete",u,t,n),l(t,n)}),u.error=i(function(t,n){n=n||"error",e.publish("request.error",u,t,n),e.publish("request.complete",u,t,n),c(t,n)});if(!f)throw u.resourceId?"amplify.request: unknown resourceId: "+u.resourceId:"amplify.request: no resourceId provided";if(!e.publish("request.before",u)){u.error(null,"abort");return}return e.request.resources[u.resourceId](u,a),a},e.request.types={},e.request.resources={},e.request.define=function(t,n,r){if(typeof n=="string"){if(!(n in e.request.types))throw"amplify.request.define: unknown type: "+n;r.resourceId=t,e.request.resources[t]=e.request.types[n](r)}else e.request.resources[t]=n}}(amplify),function(e,t,n){"use strict";var r=["status","statusText","responseText","responseXML","readyState"],i=/\{([^\}]+)\}/g;e.request.types.ajax=function(i){return i=t.extend({type:"GET"},i),function(s,o){var u,a,f=i.url,l=o.abort,c=t.extend(!0,{},i,{data:s.data}),h=!1,p={readyState:0,setRequestHeader:function(e,t){return u.setRequestHeader(e,t)},getAllResponseHeaders:function(){return u.getAllResponseHeaders()},getResponseHeader:function(e){return u.getResponseHeader(e)},overrideMimeType:function(e){return u.overrideMimeType(e)},abort:function(){h=!0;try{u.abort()}catch(e){}a(null,"abort")},success:function(e,t){s.success(e,t)},error:function(e,t){s.error(e,t)}};a=function(e,i){t.each(r,function(e,t){try{p[t]=u[t]}catch(n){}}),/OK$/.test(p.statusText)&&(p.statusText="success"),e===n&&(e=null),h&&(i="abort"),/timeout|error|abort/.test(i)?p.error(e,i):p.success(e,i),a=t.noop},e.publish("request.ajax.preprocess",i,s,c,p),t.extend(c,{isJSONP:function(){return/jsonp/gi.test(this.dataType)},cacheURL:function(){if(!this.isJSONP())return this.url;var e="callback";this.hasOwnProperty("jsonp")&&(this.jsonp!==!1?e=this.jsonp:this.hasOwnProperty("jsonpCallback")&&(e=this.jsonpCallback));var t=new RegExp("&?"+e+"=[^&]*&?","gi");return this.url.replace(t,"")},success:function(e,t){a(e,t)},error:function(e,t){a(null,t)},beforeSend:function(t,n){u=t,c=n;var r=i.beforeSend?i.beforeSend.call(this,p,c):!0;return r&&e.publish("request.before.ajax",i,s,c,p)}}),c.cache&&c.isJSONP()&&t.extend(c,{cache:!0}),t.ajax(c),o.abort=function(){p.abort(),l.call(this)}}},e.subscribe("request.ajax.preprocess",function(e,n,r){var s=[],o=r.data;if(typeof o=="string")return;o=t.extend(!0,{},e.data,o),r.url=r.url.replace(i,function(e,t){if(t in o)return s.push(t),o[t]}),t.each(s,function(e,t){delete o[t]}),r.data=o}),e.subscribe("request.ajax.preprocess",function(e,n,r){var i=r.data,s=e.dataMap;if(!s||typeof i=="string")return;t.isFunction(s)?r.data=s(i):(t.each(e.dataMap,function(e,t){e in i&&(i[t]=i[e],delete i[e])}),r.data=i)});var s=e.request.cache={_key:function(e,t,n){function s(){return n.charCodeAt(i++)<<24|n.charCodeAt(i++)<<16|n.charCodeAt(i++)<<8|n.charCodeAt(i++)<<0}n=t+n;var r=n.length,i=0,o=s();while(i<r)o^=s();return"request-"+e+"-"+o},_default:function(){var e={};return function(t,n,r,i){var o=s._key(n.resourceId,r.cacheURL(),r.data),u=t.cache;if(o in e)return i.success(e[o]),!1;var a=i.success;i.success=function(t){e[o]=t,typeof u=="number"&&setTimeout(function(){delete e[o]},u),a.apply(this,arguments)}}}()};e.store&&(t.each(e.store.types,function(t){s[t]=function(n,r,i,o){var u=s._key(r.resourceId,i.cacheURL(),i.data),a=e.store[t](u);if(a)return i.success(a),!1;var f=o.success;o.success=function(r){e.store[t](u,r,{expires:n.cache.expires}),f.apply(this,arguments)}}}),s.persist=s[e.store.type]),e.subscribe("request.before.ajax",function(e){var t=e.cache;if(t)return t=t.type||t,s[t in s?t:"_default"].apply(this,arguments)}),e.request.decoders={jsend:function(e,t,n,r,i){e.status==="success"?r(e.data):e.status==="fail"?i(e.data,"fail"):e.status==="error"?(delete e.status,i(e,"error")):i(null,"error")}},e.subscribe("request.before.ajax",function(n,r,i,s){function f(e,t){o(e,t)}function l(e,t){u(e,t)}var o=s.success,u=s.error,a=t.isFunction(n.decoder)?n.decoder:n.decoder in e.request.decoders?e.request.decoders[n.decoder]:e.request.decoders._default;if(!a)return;s.success=function(e,t){a(e,t,s,f,l)},s.error=function(e,t){a(e,t,s,f,l)}})}(amplify,jQuery)/*!

JSZip - A Javascript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
!function (a) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = a(); else if ("function" == typeof define && define.amd) define([], a); else { var b; "undefined" != typeof window ? b = window : "undefined" != typeof global ? b = global : "undefined" != typeof self && (b = self), b.JSZip = a() } }(function () {
    return function a(b, c, d) { function e(g, h) { if (!c[g]) { if (!b[g]) { var i = "function" == typeof require && require; if (!h && i) return i(g, !0); if (f) return f(g, !0); throw new Error("Cannot find module '" + g + "'") } var j = c[g] = { exports: {} }; b[g][0].call(j.exports, function (a) { var c = b[g][1][a]; return e(c ? c : a) }, j, j.exports, a, b, c, d) } return c[g].exports } for (var f = "function" == typeof require && require, g = 0; g < d.length; g++)e(d[g]); return e }({
        1: [function (a, b, c) { "use strict"; var d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; c.encode = function (a) { for (var b, c, e, f, g, h, i, j = "", k = 0; k < a.length;)b = a.charCodeAt(k++), c = a.charCodeAt(k++), e = a.charCodeAt(k++), f = b >> 2, g = (3 & b) << 4 | c >> 4, h = (15 & c) << 2 | e >> 6, i = 63 & e, isNaN(c) ? h = i = 64 : isNaN(e) && (i = 64), j = j + d.charAt(f) + d.charAt(g) + d.charAt(h) + d.charAt(i); return j }, c.decode = function (a) { var b, c, e, f, g, h, i, j = "", k = 0; for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); k < a.length;)f = d.indexOf(a.charAt(k++)), g = d.indexOf(a.charAt(k++)), h = d.indexOf(a.charAt(k++)), i = d.indexOf(a.charAt(k++)), b = f << 2 | g >> 4, c = (15 & g) << 4 | h >> 2, e = (3 & h) << 6 | i, j += String.fromCharCode(b), 64 != h && (j += String.fromCharCode(c)), 64 != i && (j += String.fromCharCode(e)); return j } }, {}], 2: [function (a, b) { "use strict"; function c() { this.compressedSize = 0, this.uncompressedSize = 0, this.crc32 = 0, this.compressionMethod = null, this.compressedContent = null } c.prototype = { getContent: function () { return null }, getCompressedContent: function () { return null } }, b.exports = c }, {}], 3: [function (a, b, c) { "use strict"; c.STORE = { magic: "\x00\x00", compress: function (a) { return a }, uncompress: function (a) { return a }, compressInputType: null, uncompressInputType: null }, c.DEFLATE = a("./flate") }, { "./flate": 8 }], 4: [function (a, b) { "use strict"; var c = a("./utils"), d = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918e3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117]; b.exports = function (a, b) { if ("undefined" == typeof a || !a.length) return 0; var e = "string" !== c.getTypeOf(a); "undefined" == typeof b && (b = 0); var f = 0, g = 0, h = 0; b = -1 ^ b; for (var i = 0, j = a.length; j > i; i++)h = e ? a[i] : a.charCodeAt(i), g = 255 & (b ^ h), f = d[g], b = b >>> 8 ^ f; return -1 ^ b } }, { "./utils": 21 }], 5: [function (a, b) { "use strict"; function c() { this.data = null, this.length = 0, this.index = 0 } var d = a("./utils"); c.prototype = { checkOffset: function (a) { this.checkIndex(this.index + a) }, checkIndex: function (a) { if (this.length < a || 0 > a) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + a + "). Corrupted zip ?") }, setIndex: function (a) { this.checkIndex(a), this.index = a }, skip: function (a) { this.setIndex(this.index + a) }, byteAt: function () { }, readInt: function (a) { var b, c = 0; for (this.checkOffset(a), b = this.index + a - 1; b >= this.index; b--)c = (c << 8) + this.byteAt(b); return this.index += a, c }, readString: function (a) { return d.transformTo("string", this.readData(a)) }, readData: function () { }, lastIndexOfSignature: function () { }, readDate: function () { var a = this.readInt(4); return new Date((a >> 25 & 127) + 1980, (a >> 21 & 15) - 1, a >> 16 & 31, a >> 11 & 31, a >> 5 & 63, (31 & a) << 1) } }, b.exports = c }, { "./utils": 21 }], 6: [function (a, b, c) { "use strict"; c.base64 = !1, c.binary = !1, c.dir = !1, c.createFolders = !1, c.date = null, c.compression = null, c.comment = null }, {}], 7: [function (a, b, c) { "use strict"; var d = a("./utils"); c.string2binary = function (a) { return d.string2binary(a) }, c.string2Uint8Array = function (a) { return d.transformTo("uint8array", a) }, c.uint8Array2String = function (a) { return d.transformTo("string", a) }, c.string2Blob = function (a) { var b = d.transformTo("arraybuffer", a); return d.arrayBuffer2Blob(b) }, c.arrayBuffer2Blob = function (a) { return d.arrayBuffer2Blob(a) }, c.transformTo = function (a, b) { return d.transformTo(a, b) }, c.getTypeOf = function (a) { return d.getTypeOf(a) }, c.checkSupport = function (a) { return d.checkSupport(a) }, c.MAX_VALUE_16BITS = d.MAX_VALUE_16BITS, c.MAX_VALUE_32BITS = d.MAX_VALUE_32BITS, c.pretty = function (a) { return d.pretty(a) }, c.findCompression = function (a) { return d.findCompression(a) }, c.isRegExp = function (a) { return d.isRegExp(a) } }, { "./utils": 21 }], 8: [function (a, b, c) { "use strict"; var d = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array, e = a("pako"); c.uncompressInputType = d ? "uint8array" : "array", c.compressInputType = d ? "uint8array" : "array", c.magic = "\b\x00", c.compress = function (a) { return e.deflateRaw(a) }, c.uncompress = function (a) { return e.inflateRaw(a) } }, { pako: 24 }], 9: [function (a, b) { "use strict"; function c(a, b) { return this instanceof c ? (this.files = {}, this.comment = null, this.root = "", a && this.load(a, b), void (this.clone = function () { var a = new c; for (var b in this) "function" != typeof this[b] && (a[b] = this[b]); return a })) : new c(a, b) } var d = a("./base64"); c.prototype = a("./object"), c.prototype.load = a("./load"), c.support = a("./support"), c.defaults = a("./defaults"), c.utils = a("./deprecatedPublicUtils"), c.base64 = { encode: function (a) { return d.encode(a) }, decode: function (a) { return d.decode(a) } }, c.compressions = a("./compressions"), b.exports = c }, { "./base64": 1, "./compressions": 3, "./defaults": 6, "./deprecatedPublicUtils": 7, "./load": 10, "./object": 13, "./support": 17 }], 10: [function (a, b) { "use strict"; var c = a("./base64"), d = a("./zipEntries"); b.exports = function (a, b) { var e, f, g, h; for (b = b || {}, b.base64 && (a = c.decode(a)), f = new d(a, b), e = f.files, g = 0; g < e.length; g++)h = e[g], this.file(h.fileName, h.decompressed, { binary: !0, optimizedBinaryString: !0, date: h.date, dir: h.dir, comment: h.fileComment.length ? h.fileComment : null, createFolders: b.createFolders }); return f.zipComment.length && (this.comment = f.zipComment), this } }, { "./base64": 1, "./zipEntries": 22 }], 11: [function (a, b) { (function (a) { "use strict"; b.exports = function (b, c) { return new a(b, c) }, b.exports.test = function (b) { return a.isBuffer(b) } }).call(this, "undefined" != typeof Buffer ? Buffer : void 0) }, {}], 12: [function (a, b) { "use strict"; function c(a) { this.data = a, this.length = this.data.length, this.index = 0 } var d = a("./uint8ArrayReader"); c.prototype = new d, c.prototype.readData = function (a) { this.checkOffset(a); var b = this.data.slice(this.index, this.index + a); return this.index += a, b }, b.exports = c }, { "./uint8ArrayReader": 18 }], 13: [function (a, b) { "use strict"; var c = a("./support"), d = a("./utils"), e = a("./crc32"), f = a("./signature"), g = a("./defaults"), h = a("./base64"), i = a("./compressions"), j = a("./compressedObject"), k = a("./nodeBuffer"), l = a("./utf8"), m = a("./stringWriter"), n = a("./uint8ArrayWriter"), o = function (a) { if (a._data instanceof j && (a._data = a._data.getContent(), a.options.binary = !0, a.options.base64 = !1, "uint8array" === d.getTypeOf(a._data))) { var b = a._data; a._data = new Uint8Array(b.length), 0 !== b.length && a._data.set(b, 0) } return a._data }, p = function (a) { var b = o(a), e = d.getTypeOf(b); return "string" === e ? !a.options.binary && c.nodebuffer ? k(b, "utf-8") : a.asBinary() : b }, q = function (a) { var b = o(this); return null === b || "undefined" == typeof b ? "" : (this.options.base64 && (b = h.decode(b)), b = a && this.options.binary ? A.utf8decode(b) : d.transformTo("string", b), a || this.options.binary || (b = d.transformTo("string", A.utf8encode(b))), b) }, r = function (a, b, c) { this.name = a, this.dir = c.dir, this.date = c.date, this.comment = c.comment, this._data = b, this.options = c, this._initialMetadata = { dir: c.dir, date: c.date } }; r.prototype = { asText: function () { return q.call(this, !0) }, asBinary: function () { return q.call(this, !1) }, asNodeBuffer: function () { var a = p(this); return d.transformTo("nodebuffer", a) }, asUint8Array: function () { var a = p(this); return d.transformTo("uint8array", a) }, asArrayBuffer: function () { return this.asUint8Array().buffer } }; var s = function (a, b) { var c, d = ""; for (c = 0; b > c; c++)d += String.fromCharCode(255 & a), a >>>= 8; return d }, t = function () { var a, b, c = {}; for (a = 0; a < arguments.length; a++)for (b in arguments[a]) arguments[a].hasOwnProperty(b) && "undefined" == typeof c[b] && (c[b] = arguments[a][b]); return c }, u = function (a) { return a = a || {}, a.base64 !== !0 || null !== a.binary && void 0 !== a.binary || (a.binary = !0), a = t(a, g), a.date = a.date || new Date, null !== a.compression && (a.compression = a.compression.toUpperCase()), a }, v = function (a, b, c) { var e, f = d.getTypeOf(b); if (c = u(c), c.createFolders && (e = w(a)) && x.call(this, e, !0), c.dir || null === b || "undefined" == typeof b) c.base64 = !1, c.binary = !1, b = null; else if ("string" === f) c.binary && !c.base64 && c.optimizedBinaryString !== !0 && (b = d.string2binary(b)); else { if (c.base64 = !1, c.binary = !0, !(f || b instanceof j)) throw new Error("The data of '" + a + "' is in an unsupported format !"); "arraybuffer" === f && (b = d.transformTo("uint8array", b)) } var g = new r(a, b, c); return this.files[a] = g, g }, w = function (a) { "/" == a.slice(-1) && (a = a.substring(0, a.length - 1)); var b = a.lastIndexOf("/"); return b > 0 ? a.substring(0, b) : "" }, x = function (a, b) { return "/" != a.slice(-1) && (a += "/"), b = "undefined" != typeof b ? b : !1, this.files[a] || v.call(this, a, null, { dir: !0, createFolders: b }), this.files[a] }, y = function (a, b) { var c, f = new j; return a._data instanceof j ? (f.uncompressedSize = a._data.uncompressedSize, f.crc32 = a._data.crc32, 0 === f.uncompressedSize || a.dir ? (b = i.STORE, f.compressedContent = "", f.crc32 = 0) : a._data.compressionMethod === b.magic ? f.compressedContent = a._data.getCompressedContent() : (c = a._data.getContent(), f.compressedContent = b.compress(d.transformTo(b.compressInputType, c)))) : (c = p(a), (!c || 0 === c.length || a.dir) && (b = i.STORE, c = ""), f.uncompressedSize = c.length, f.crc32 = e(c), f.compressedContent = b.compress(d.transformTo(b.compressInputType, c))), f.compressedSize = f.compressedContent.length, f.compressionMethod = b.magic, f }, z = function (a, b, c, g) { var h, i, j, k, m = (c.compressedContent, d.transformTo("string", l.utf8encode(b.name))), n = b.comment || "", o = d.transformTo("string", l.utf8encode(n)), p = m.length !== b.name.length, q = o.length !== n.length, r = b.options, t = "", u = "", v = ""; j = b._initialMetadata.dir !== b.dir ? b.dir : r.dir, k = b._initialMetadata.date !== b.date ? b.date : r.date, h = k.getHours(), h <<= 6, h |= k.getMinutes(), h <<= 5, h |= k.getSeconds() / 2, i = k.getFullYear() - 1980, i <<= 4, i |= k.getMonth() + 1, i <<= 5, i |= k.getDate(), p && (u = s(1, 1) + s(e(m), 4) + m, t += "up" + s(u.length, 2) + u), q && (v = s(1, 1) + s(this.crc32(o), 4) + o, t += "uc" + s(v.length, 2) + v); var w = ""; w += "\n\x00", w += p || q ? "\x00\b" : "\x00\x00", w += c.compressionMethod, w += s(h, 2), w += s(i, 2), w += s(c.crc32, 4), w += s(c.compressedSize, 4), w += s(c.uncompressedSize, 4), w += s(m.length, 2), w += s(t.length, 2); var x = f.LOCAL_FILE_HEADER + w + m + t, y = f.CENTRAL_FILE_HEADER + "\x00" + w + s(o.length, 2) + "\x00\x00\x00\x00" + (j === !0 ? "\x00\x00\x00" : "\x00\x00\x00\x00") + s(g, 4) + m + t + o; return { fileRecord: x, dirRecord: y, compressedObject: c } }, A = { load: function () { throw new Error("Load method is not defined. Is the file jszip-load.js included ?") }, filter: function (a) { var b, c, d, e, f = []; for (b in this.files) this.files.hasOwnProperty(b) && (d = this.files[b], e = new r(d.name, d._data, t(d.options)), c = b.slice(this.root.length, b.length), b.slice(0, this.root.length) === this.root && a(c, e) && f.push(e)); return f }, file: function (a, b, c) { if (1 === arguments.length) { if (d.isRegExp(a)) { var e = a; return this.filter(function (a, b) { return !b.dir && e.test(a) }) } return this.filter(function (b, c) { return !c.dir && b === a })[0] || null } return a = this.root + a, v.call(this, a, b, c), this }, folder: function (a) { if (!a) return this; if (d.isRegExp(a)) return this.filter(function (b, c) { return c.dir && a.test(b) }); var b = this.root + a, c = x.call(this, b), e = this.clone(); return e.root = c.name, e }, remove: function (a) { a = this.root + a; var b = this.files[a]; if (b || ("/" != a.slice(-1) && (a += "/"), b = this.files[a]), b && !b.dir) delete this.files[a]; else for (var c = this.filter(function (b, c) { return c.name.slice(0, a.length) === a }), d = 0; d < c.length; d++)delete this.files[c[d].name]; return this }, generate: function (a) { a = t(a || {}, { base64: !0, compression: "STORE", type: "base64", comment: null }), d.checkSupport(a.type); var b, c, e = [], g = 0, j = 0, k = d.transformTo("string", this.utf8encode(a.comment || this.comment || "")); for (var l in this.files) if (this.files.hasOwnProperty(l)) { var o = this.files[l], p = o.options.compression || a.compression.toUpperCase(), q = i[p]; if (!q) throw new Error(p + " is not a valid compression method !"); var r = y.call(this, o, q), u = z.call(this, l, o, r, g); g += u.fileRecord.length + r.compressedSize, j += u.dirRecord.length, e.push(u) } var v = ""; v = f.CENTRAL_DIRECTORY_END + "\x00\x00\x00\x00" + s(e.length, 2) + s(e.length, 2) + s(j, 4) + s(g, 4) + s(k.length, 2) + k; var w = a.type.toLowerCase(); for (b = "uint8array" === w || "arraybuffer" === w || "blob" === w || "nodebuffer" === w ? new n(g + j + v.length) : new m(g + j + v.length), c = 0; c < e.length; c++)b.append(e[c].fileRecord), b.append(e[c].compressedObject.compressedContent); for (c = 0; c < e.length; c++)b.append(e[c].dirRecord); b.append(v); var x = b.finalize(); switch (a.type.toLowerCase()) { case "uint8array": case "arraybuffer": case "nodebuffer": return d.transformTo(a.type.toLowerCase(), x); case "blob": return d.arrayBuffer2Blob(d.transformTo("arraybuffer", x)); case "base64": return a.base64 ? h.encode(x) : x; default: return x } }, crc32: function (a, b) { return e(a, b) }, utf8encode: function (a) { return d.transformTo("string", l.utf8encode(a)) }, utf8decode: function (a) { return l.utf8decode(a) } }; b.exports = A }, { "./base64": 1, "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./defaults": 6, "./nodeBuffer": 11, "./signature": 14, "./stringWriter": 16, "./support": 17, "./uint8ArrayWriter": 19, "./utf8": 20, "./utils": 21 }], 14: [function (a, b, c) { "use strict"; c.LOCAL_FILE_HEADER = "PK", c.CENTRAL_FILE_HEADER = "PK", c.CENTRAL_DIRECTORY_END = "PK", c.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK", c.ZIP64_CENTRAL_DIRECTORY_END = "PK", c.DATA_DESCRIPTOR = "PK\b" }, {}], 15: [function (a, b) { "use strict"; function c(a, b) { this.data = a, b || (this.data = e.string2binary(this.data)), this.length = this.data.length, this.index = 0 } var d = a("./dataReader"), e = a("./utils"); c.prototype = new d, c.prototype.byteAt = function (a) { return this.data.charCodeAt(a) }, c.prototype.lastIndexOfSignature = function (a) { return this.data.lastIndexOf(a) }, c.prototype.readData = function (a) { this.checkOffset(a); var b = this.data.slice(this.index, this.index + a); return this.index += a, b }, b.exports = c }, { "./dataReader": 5, "./utils": 21 }], 16: [function (a, b) { "use strict"; var c = a("./utils"), d = function () { this.data = [] }; d.prototype = { append: function (a) { a = c.transformTo("string", a), this.data.push(a) }, finalize: function () { return this.data.join("") } }, b.exports = d }, { "./utils": 21 }], 17: [function (a, b, c) { (function (a) { "use strict"; if (c.base64 = !0, c.array = !0, c.string = !0, c.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, c.nodebuffer = "undefined" != typeof a, c.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer) c.blob = !1; else { var b = new ArrayBuffer(0); try { c.blob = 0 === new Blob([b], { type: "application/zip" }).size } catch (d) { try { var e = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, f = new e; f.append(b), c.blob = 0 === f.getBlob("application/zip").size } catch (d) { c.blob = !1 } } } }).call(this, "undefined" != typeof Buffer ? Buffer : void 0) }, {}], 18: [function (a, b) { "use strict"; function c(a) { a && (this.data = a, this.length = this.data.length, this.index = 0) } var d = a("./dataReader"); c.prototype = new d, c.prototype.byteAt = function (a) { return this.data[a] }, c.prototype.lastIndexOfSignature = function (a) { for (var b = a.charCodeAt(0), c = a.charCodeAt(1), d = a.charCodeAt(2), e = a.charCodeAt(3), f = this.length - 4; f >= 0; --f)if (this.data[f] === b && this.data[f + 1] === c && this.data[f + 2] === d && this.data[f + 3] === e) return f; return -1 }, c.prototype.readData = function (a) { if (this.checkOffset(a), 0 === a) return new Uint8Array(0); var b = this.data.subarray(this.index, this.index + a); return this.index += a, b }, b.exports = c }, { "./dataReader": 5 }], 19: [function (a, b) { "use strict"; var c = a("./utils"), d = function (a) { this.data = new Uint8Array(a), this.index = 0 }; d.prototype = { append: function (a) { 0 !== a.length && (a = c.transformTo("uint8array", a), this.data.set(a, this.index), this.index += a.length) }, finalize: function () { return this.data } }, b.exports = d }, { "./utils": 21 }], 20: [function (a, b, c) { "use strict"; for (var d = a("./utils"), e = a("./support"), f = a("./nodeBuffer"), g = new Array(256), h = 0; 256 > h; h++)g[h] = h >= 252 ? 6 : h >= 248 ? 5 : h >= 240 ? 4 : h >= 224 ? 3 : h >= 192 ? 2 : 1; g[254] = g[254] = 1; var i = function (a) { var b, c, d, f, g, h = a.length, i = 0; for (f = 0; h > f; f++)c = a.charCodeAt(f), 55296 === (64512 & c) && h > f + 1 && (d = a.charCodeAt(f + 1), 56320 === (64512 & d) && (c = 65536 + (c - 55296 << 10) + (d - 56320), f++)), i += 128 > c ? 1 : 2048 > c ? 2 : 65536 > c ? 3 : 4; for (b = e.uint8array ? new Uint8Array(i) : new Array(i), g = 0, f = 0; i > g; f++)c = a.charCodeAt(f), 55296 === (64512 & c) && h > f + 1 && (d = a.charCodeAt(f + 1), 56320 === (64512 & d) && (c = 65536 + (c - 55296 << 10) + (d - 56320), f++)), 128 > c ? b[g++] = c : 2048 > c ? (b[g++] = 192 | c >>> 6, b[g++] = 128 | 63 & c) : 65536 > c ? (b[g++] = 224 | c >>> 12, b[g++] = 128 | c >>> 6 & 63, b[g++] = 128 | 63 & c) : (b[g++] = 240 | c >>> 18, b[g++] = 128 | c >>> 12 & 63, b[g++] = 128 | c >>> 6 & 63, b[g++] = 128 | 63 & c); return b }, j = function (a, b) { var c; for (b = b || a.length, b > a.length && (b = a.length), c = b - 1; c >= 0 && 128 === (192 & a[c]);)c--; return 0 > c ? b : 0 === c ? b : c + g[a[c]] > b ? c : b }, k = function (a) { var b, c, e, f, h = a.length, i = new Array(2 * h); for (c = 0, b = 0; h > b;)if (e = a[b++], 128 > e) i[c++] = e; else if (f = g[e], f > 4) i[c++] = 65533, b += f - 1; else { for (e &= 2 === f ? 31 : 3 === f ? 15 : 7; f > 1 && h > b;)e = e << 6 | 63 & a[b++], f--; f > 1 ? i[c++] = 65533 : 65536 > e ? i[c++] = e : (e -= 65536, i[c++] = 55296 | e >> 10 & 1023, i[c++] = 56320 | 1023 & e) } return i.length !== c && (i.subarray ? i = i.subarray(0, c) : i.length = c), d.applyFromCharCode(i) }; c.utf8encode = function (a) { return e.nodebuffer ? f(a, "utf-8") : i(a) }, c.utf8decode = function (a) { if (e.nodebuffer) return d.transformTo("nodebuffer", a).toString("utf-8"); a = d.transformTo(e.uint8array ? "uint8array" : "array", a); for (var b = [], c = 0, f = a.length, g = 65536; f > c;) { var h = j(a, Math.min(c + g, f)); b.push(e.uint8array ? k(a.subarray(c, h)) : k(a.slice(c, h))), c = h } return b.join("") } }, { "./nodeBuffer": 11, "./support": 17, "./utils": 21 }], 21: [function (a, b, c) { "use strict"; function d(a) { return a } function e(a, b) { for (var c = 0; c < a.length; ++c)b[c] = 255 & a.charCodeAt(c); return b } function f(a) { var b = 65536, d = [], e = a.length, f = c.getTypeOf(a), g = 0, h = !0; try { switch (f) { case "uint8array": String.fromCharCode.apply(null, new Uint8Array(0)); break; case "nodebuffer": String.fromCharCode.apply(null, j(0)) } } catch (i) { h = !1 } if (!h) { for (var k = "", l = 0; l < a.length; l++)k += String.fromCharCode(a[l]); return k } for (; e > g && b > 1;)try { d.push("array" === f || "nodebuffer" === f ? String.fromCharCode.apply(null, a.slice(g, Math.min(g + b, e))) : String.fromCharCode.apply(null, a.subarray(g, Math.min(g + b, e)))), g += b } catch (i) { b = Math.floor(b / 2) } return d.join("") } function g(a, b) { for (var c = 0; c < a.length; c++)b[c] = a[c]; return b } var h = a("./support"), i = a("./compressions"), j = a("./nodeBuffer"); c.string2binary = function (a) { for (var b = "", c = 0; c < a.length; c++)b += String.fromCharCode(255 & a.charCodeAt(c)); return b }, c.arrayBuffer2Blob = function (a) { c.checkSupport("blob"); try { return new Blob([a], { type: "application/zip" }) } catch (b) { try { var d = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, e = new d; return e.append(a), e.getBlob("application/zip") } catch (b) { throw new Error("Bug : can't construct the Blob.") } } }, c.applyFromCharCode = f; var k = {}; k.string = { string: d, array: function (a) { return e(a, new Array(a.length)) }, arraybuffer: function (a) { return k.string.uint8array(a).buffer }, uint8array: function (a) { return e(a, new Uint8Array(a.length)) }, nodebuffer: function (a) { return e(a, j(a.length)) } }, k.array = { string: f, array: d, arraybuffer: function (a) { return new Uint8Array(a).buffer }, uint8array: function (a) { return new Uint8Array(a) }, nodebuffer: function (a) { return j(a) } }, k.arraybuffer = { string: function (a) { return f(new Uint8Array(a)) }, array: function (a) { return g(new Uint8Array(a), new Array(a.byteLength)) }, arraybuffer: d, uint8array: function (a) { return new Uint8Array(a) }, nodebuffer: function (a) { return j(new Uint8Array(a)) } }, k.uint8array = { string: f, array: function (a) { return g(a, new Array(a.length)) }, arraybuffer: function (a) { return a.buffer }, uint8array: d, nodebuffer: function (a) { return j(a) } }, k.nodebuffer = { string: f, array: function (a) { return g(a, new Array(a.length)) }, arraybuffer: function (a) { return k.nodebuffer.uint8array(a).buffer }, uint8array: function (a) { return g(a, new Uint8Array(a.length)) }, nodebuffer: d }, c.transformTo = function (a, b) { if (b || (b = ""), !a) return b; c.checkSupport(a); var d = c.getTypeOf(b), e = k[d][a](b); return e }, c.getTypeOf = function (a) { return "string" == typeof a ? "string" : "[object Array]" === Object.prototype.toString.call(a) ? "array" : h.nodebuffer && j.test(a) ? "nodebuffer" : h.uint8array && a instanceof Uint8Array ? "uint8array" : h.arraybuffer && a instanceof ArrayBuffer ? "arraybuffer" : void 0 }, c.checkSupport = function (a) { var b = h[a.toLowerCase()]; if (!b) throw new Error(a + " is not supported by this browser") }, c.MAX_VALUE_16BITS = 65535, c.MAX_VALUE_32BITS = -1, c.pretty = function (a) { var b, c, d = ""; for (c = 0; c < (a || "").length; c++)b = a.charCodeAt(c), d += "\\x" + (16 > b ? "0" : "") + b.toString(16).toUpperCase(); return d }, c.findCompression = function (a) { for (var b in i) if (i.hasOwnProperty(b) && i[b].magic === a) return i[b]; return null }, c.isRegExp = function (a) { return "[object RegExp]" === Object.prototype.toString.call(a) } }, { "./compressions": 3, "./nodeBuffer": 11, "./support": 17 }], 22: [function (a, b) { "use strict"; function c(a, b) { this.files = [], this.loadOptions = b, a && this.load(a) } var d = a("./stringReader"), e = a("./nodeBufferReader"), f = a("./uint8ArrayReader"), g = a("./utils"), h = a("./signature"), i = a("./zipEntry"), j = a("./support"), k = a("./object"); c.prototype = { checkSignature: function (a) { var b = this.reader.readString(4); if (b !== a) throw new Error("Corrupted zip or bug : unexpected signature (" + g.pretty(b) + ", expected " + g.pretty(a) + ")") }, readBlockEndOfCentral: function () { this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2), this.zipComment = this.reader.readString(this.zipCommentLength), this.zipComment = k.utf8decode(this.zipComment) }, readBlockZip64EndOfCentral: function () { this.zip64EndOfCentralSize = this.reader.readInt(8), this.versionMadeBy = this.reader.readString(2), this.versionNeeded = this.reader.readInt(2), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {}; for (var a, b, c, d = this.zip64EndOfCentralSize - 44, e = 0; d > e;)a = this.reader.readInt(2), b = this.reader.readInt(4), c = this.reader.readString(b), this.zip64ExtensibleData[a] = { id: a, length: b, value: c } }, readBlockZip64EndOfCentralLocator: function () { if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), this.disksCount > 1) throw new Error("Multi-volumes zip are not supported") }, readLocalFiles: function () { var a, b; for (a = 0; a < this.files.length; a++)b = this.files[a], this.reader.setIndex(b.localHeaderOffset), this.checkSignature(h.LOCAL_FILE_HEADER), b.readLocalPart(this.reader), b.handleUTF8() }, readCentralDir: function () { var a; for (this.reader.setIndex(this.centralDirOffset); this.reader.readString(4) === h.CENTRAL_FILE_HEADER;)a = new i({ zip64: this.zip64 }, this.loadOptions), a.readCentralPart(this.reader), this.files.push(a) }, readEndOfCentral: function () { var a = this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END); if (-1 === a) throw new Error("Corrupted zip : can't find end of central directory"); if (this.reader.setIndex(a), this.checkSignature(h.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === g.MAX_VALUE_16BITS || this.diskWithCentralDirStart === g.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === g.MAX_VALUE_16BITS || this.centralDirRecords === g.MAX_VALUE_16BITS || this.centralDirSize === g.MAX_VALUE_32BITS || this.centralDirOffset === g.MAX_VALUE_32BITS) { if (this.zip64 = !0, a = this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR), -1 === a) throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator"); this.reader.setIndex(a), this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral() } }, prepareReader: function (a) { var b = g.getTypeOf(a); this.reader = "string" !== b || j.uint8array ? "nodebuffer" === b ? new e(a) : new f(g.transformTo("uint8array", a)) : new d(a, this.loadOptions.optimizedBinaryString) }, load: function (a) { this.prepareReader(a), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles() } }, b.exports = c }, { "./nodeBufferReader": 12, "./object": 13, "./signature": 14, "./stringReader": 15, "./support": 17, "./uint8ArrayReader": 18, "./utils": 21, "./zipEntry": 23 }], 23: [function (a, b) { "use strict"; function c(a, b) { this.options = a, this.loadOptions = b } var d = a("./stringReader"), e = a("./utils"), f = a("./compressedObject"), g = a("./object"); c.prototype = { isEncrypted: function () { return 1 === (1 & this.bitFlag) }, useUTF8: function () { return 2048 === (2048 & this.bitFlag) }, prepareCompressedContent: function (a, b, c) { return function () { var d = a.index; a.setIndex(b); var e = a.readData(c); return a.setIndex(d), e } }, prepareContent: function (a, b, c, d, f) { return function () { var a = e.transformTo(d.uncompressInputType, this.getCompressedContent()), b = d.uncompress(a); if (b.length !== f) throw new Error("Bug : uncompressed data size mismatch"); return b } }, readLocalPart: function (a) { var b, c; if (a.skip(22), this.fileNameLength = a.readInt(2), c = a.readInt(2), this.fileName = a.readString(this.fileNameLength), a.skip(c), -1 == this.compressedSize || -1 == this.uncompressedSize) throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)"); if (b = e.findCompression(this.compressionMethod), null === b) throw new Error("Corrupted zip : compression " + e.pretty(this.compressionMethod) + " unknown (inner file : " + this.fileName + ")"); if (this.decompressed = new f, this.decompressed.compressedSize = this.compressedSize, this.decompressed.uncompressedSize = this.uncompressedSize, this.decompressed.crc32 = this.crc32, this.decompressed.compressionMethod = this.compressionMethod, this.decompressed.getCompressedContent = this.prepareCompressedContent(a, a.index, this.compressedSize, b), this.decompressed.getContent = this.prepareContent(a, a.index, this.compressedSize, b, this.uncompressedSize), this.loadOptions.checkCRC32 && (this.decompressed = e.transformTo("string", this.decompressed.getContent()), g.crc32(this.decompressed) !== this.crc32)) throw new Error("Corrupted zip : CRC32 mismatch") }, readCentralPart: function (a) { if (this.versionMadeBy = a.readString(2), this.versionNeeded = a.readInt(2), this.bitFlag = a.readInt(2), this.compressionMethod = a.readString(2), this.date = a.readDate(), this.crc32 = a.readInt(4), this.compressedSize = a.readInt(4), this.uncompressedSize = a.readInt(4), this.fileNameLength = a.readInt(2), this.extraFieldsLength = a.readInt(2), this.fileCommentLength = a.readInt(2), this.diskNumberStart = a.readInt(2), this.internalFileAttributes = a.readInt(2), this.externalFileAttributes = a.readInt(4), this.localHeaderOffset = a.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported"); this.fileName = a.readString(this.fileNameLength), this.readExtraFields(a), this.parseZIP64ExtraField(a), this.fileComment = a.readString(this.fileCommentLength), this.dir = 16 & this.externalFileAttributes ? !0 : !1 }, parseZIP64ExtraField: function () { if (this.extraFields[1]) { var a = new d(this.extraFields[1].value); this.uncompressedSize === e.MAX_VALUE_32BITS && (this.uncompressedSize = a.readInt(8)), this.compressedSize === e.MAX_VALUE_32BITS && (this.compressedSize = a.readInt(8)), this.localHeaderOffset === e.MAX_VALUE_32BITS && (this.localHeaderOffset = a.readInt(8)), this.diskNumberStart === e.MAX_VALUE_32BITS && (this.diskNumberStart = a.readInt(4)) } }, readExtraFields: function (a) { var b, c, d, e = a.index; for (this.extraFields = this.extraFields || {}; a.index < e + this.extraFieldsLength;)b = a.readInt(2), c = a.readInt(2), d = a.readString(c), this.extraFields[b] = { id: b, length: c, value: d } }, handleUTF8: function () { if (this.useUTF8()) this.fileName = g.utf8decode(this.fileName), this.fileComment = g.utf8decode(this.fileComment); else { var a = this.findExtraFieldUnicodePath(); null !== a && (this.fileName = a); var b = this.findExtraFieldUnicodeComment(); null !== b && (this.fileComment = b) } }, findExtraFieldUnicodePath: function () { var a = this.extraFields[28789]; if (a) { var b = new d(a.value); return 1 !== b.readInt(1) ? null : g.crc32(this.fileName) !== b.readInt(4) ? null : g.utf8decode(b.readString(a.length - 5)) } return null }, findExtraFieldUnicodeComment: function () { var a = this.extraFields[25461]; if (a) { var b = new d(a.value); return 1 !== b.readInt(1) ? null : g.crc32(this.fileComment) !== b.readInt(4) ? null : g.utf8decode(b.readString(a.length - 5)) } return null } }, b.exports = c }, { "./compressedObject": 2, "./object": 13, "./stringReader": 15, "./utils": 21 }], 24: [function (a, b) { "use strict"; var c = a("./lib/utils/common").assign, d = a("./lib/deflate"), e = a("./lib/inflate"), f = a("./lib/zlib/constants"), g = {}; c(g, d, e, f), b.exports = g }, { "./lib/deflate": 25, "./lib/inflate": 26, "./lib/utils/common": 27, "./lib/zlib/constants": 30 }], 25: [function (a, b, c) {
            "use strict"; function d(a, b) { var c = new s(b); if (c.push(a, !0), c.err) throw c.msg; return c.result } function e(a, b) { return b = b || {}, b.raw = !0, d(a, b) } function f(a, b) { return b = b || {}, b.gzip = !0, d(a, b) } var g = a("./zlib/deflate.js"), h = a("./utils/common"), i = a("./utils/strings"), j = a("./zlib/messages"), k = a("./zlib/zstream"), l = 0, m = 4, n = 0, o = 1, p = -1, q = 0, r = 8, s = function (a) {
                this.options = h.assign({ level: p, method: r, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: q, to: "" }, a || {}); var b = this.options; b.raw && b.windowBits > 0 ? b.windowBits = -b.windowBits : b.gzip && b.windowBits > 0 && b.windowBits < 16 && (b.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new k, this.strm.avail_out = 0; var c = g.deflateInit2(this.strm, b.level, b.method, b.windowBits, b.memLevel, b.strategy); if (c !== n) throw new Error(j[c]); b.header && g.deflateSetHeader(this.strm, b.header)
            }; s.prototype.push = function (a, b) { var c, d, e = this.strm, f = this.options.chunkSize; if (this.ended) return !1; d = b === ~~b ? b : b === !0 ? m : l, e.input = "string" == typeof a ? i.string2buf(a) : a, e.next_in = 0, e.avail_in = e.input.length; do { if (0 === e.avail_out && (e.output = new h.Buf8(f), e.next_out = 0, e.avail_out = f), c = g.deflate(e, d), c !== o && c !== n) return this.onEnd(c), this.ended = !0, !1; (0 === e.avail_out || 0 === e.avail_in && d === m) && this.onData("string" === this.options.to ? i.buf2binstring(h.shrinkBuf(e.output, e.next_out)) : h.shrinkBuf(e.output, e.next_out)) } while ((e.avail_in > 0 || 0 === e.avail_out) && c !== o); return d === m ? (c = g.deflateEnd(this.strm), this.onEnd(c), this.ended = !0, c === n) : !0 }, s.prototype.onData = function (a) { this.chunks.push(a) }, s.prototype.onEnd = function (a) { a === n && (this.result = "string" === this.options.to ? this.chunks.join("") : h.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg }, c.Deflate = s, c.deflate = d, c.deflateRaw = e, c.gzip = f
        }, { "./utils/common": 27, "./utils/strings": 28, "./zlib/deflate.js": 32, "./zlib/messages": 37, "./zlib/zstream": 39 }], 26: [function (a, b, c) { "use strict"; function d(a, b) { var c = new m(b); if (c.push(a, !0), c.err) throw c.msg; return c.result } function e(a, b) { return b = b || {}, b.raw = !0, d(a, b) } var f = a("./zlib/inflate.js"), g = a("./utils/common"), h = a("./utils/strings"), i = a("./zlib/constants"), j = a("./zlib/messages"), k = a("./zlib/zstream"), l = a("./zlib/gzheader"), m = function (a) { this.options = g.assign({ chunkSize: 16384, windowBits: 0, to: "" }, a || {}); var b = this.options; b.raw && b.windowBits >= 0 && b.windowBits < 16 && (b.windowBits = -b.windowBits, 0 === b.windowBits && (b.windowBits = -15)), !(b.windowBits >= 0 && b.windowBits < 16) || a && a.windowBits || (b.windowBits += 32), b.windowBits > 15 && b.windowBits < 48 && 0 === (15 & b.windowBits) && (b.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new k, this.strm.avail_out = 0; var c = f.inflateInit2(this.strm, b.windowBits); if (c !== i.Z_OK) throw new Error(j[c]); this.header = new l, f.inflateGetHeader(this.strm, this.header) }; m.prototype.push = function (a, b) { var c, d, e, j, k, l = this.strm, m = this.options.chunkSize; if (this.ended) return !1; d = b === ~~b ? b : b === !0 ? i.Z_FINISH : i.Z_NO_FLUSH, l.input = "string" == typeof a ? h.binstring2buf(a) : a, l.next_in = 0, l.avail_in = l.input.length; do { if (0 === l.avail_out && (l.output = new g.Buf8(m), l.next_out = 0, l.avail_out = m), c = f.inflate(l, i.Z_NO_FLUSH), c !== i.Z_STREAM_END && c !== i.Z_OK) return this.onEnd(c), this.ended = !0, !1; l.next_out && (0 === l.avail_out || c === i.Z_STREAM_END || 0 === l.avail_in && d === i.Z_FINISH) && ("string" === this.options.to ? (e = h.utf8border(l.output, l.next_out), j = l.next_out - e, k = h.buf2string(l.output, e), l.next_out = j, l.avail_out = m - j, j && g.arraySet(l.output, l.output, e, j, 0), this.onData(k)) : this.onData(g.shrinkBuf(l.output, l.next_out))) } while (l.avail_in > 0 && c !== i.Z_STREAM_END); return c === i.Z_STREAM_END && (d = i.Z_FINISH), d === i.Z_FINISH ? (c = f.inflateEnd(this.strm), this.onEnd(c), this.ended = !0, c === i.Z_OK) : !0 }, m.prototype.onData = function (a) { this.chunks.push(a) }, m.prototype.onEnd = function (a) { a === i.Z_OK && (this.result = "string" === this.options.to ? this.chunks.join("") : g.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg }, c.Inflate = m, c.inflate = d, c.inflateRaw = e, c.ungzip = d }, { "./utils/common": 27, "./utils/strings": 28, "./zlib/constants": 30, "./zlib/gzheader": 33, "./zlib/inflate.js": 35, "./zlib/messages": 37, "./zlib/zstream": 39 }], 27: [function (a, b, c) { "use strict"; var d = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; c.assign = function (a) { for (var b = Array.prototype.slice.call(arguments, 1); b.length;) { var c = b.shift(); if (c) { if ("object" != typeof c) throw new TypeError(c + "must be non-object"); for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]) } } return a }, c.shrinkBuf = function (a, b) { return a.length === b ? a : a.subarray ? a.subarray(0, b) : (a.length = b, a) }; var e = { arraySet: function (a, b, c, d, e) { if (b.subarray && a.subarray) return void a.set(b.subarray(c, c + d), e); for (var f = 0; d > f; f++)a[e + f] = b[c + f] }, flattenChunks: function (a) { var b, c, d, e, f, g; for (d = 0, b = 0, c = a.length; c > b; b++)d += a[b].length; for (g = new Uint8Array(d), e = 0, b = 0, c = a.length; c > b; b++)f = a[b], g.set(f, e), e += f.length; return g } }, f = { arraySet: function (a, b, c, d, e) { for (var f = 0; d > f; f++)a[e + f] = b[c + f] }, flattenChunks: function (a) { return [].concat.apply([], a) } }; c.setTyped = function (a) { a ? (c.Buf8 = Uint8Array, c.Buf16 = Uint16Array, c.Buf32 = Int32Array, c.assign(c, e)) : (c.Buf8 = Array, c.Buf16 = Array, c.Buf32 = Array, c.assign(c, f)) }, c.setTyped(d) }, {}], 28: [function (a, b, c) { "use strict"; function d(a, b) { if (65537 > b && (a.subarray && g || !a.subarray && f)) return String.fromCharCode.apply(null, e.shrinkBuf(a, b)); for (var c = "", d = 0; b > d; d++)c += String.fromCharCode(a[d]); return c } var e = a("./common"), f = !0, g = !0; try { String.fromCharCode.apply(null, [0]) } catch (h) { f = !1 } try { String.fromCharCode.apply(null, new Uint8Array(1)) } catch (h) { g = !1 } for (var i = new e.Buf8(256), j = 0; 256 > j; j++)i[j] = j >= 252 ? 6 : j >= 248 ? 5 : j >= 240 ? 4 : j >= 224 ? 3 : j >= 192 ? 2 : 1; i[254] = i[254] = 1, c.string2buf = function (a) { var b, c, d, f, g, h = a.length, i = 0; for (f = 0; h > f; f++)c = a.charCodeAt(f), 55296 === (64512 & c) && h > f + 1 && (d = a.charCodeAt(f + 1), 56320 === (64512 & d) && (c = 65536 + (c - 55296 << 10) + (d - 56320), f++)), i += 128 > c ? 1 : 2048 > c ? 2 : 65536 > c ? 3 : 4; for (b = new e.Buf8(i), g = 0, f = 0; i > g; f++)c = a.charCodeAt(f), 55296 === (64512 & c) && h > f + 1 && (d = a.charCodeAt(f + 1), 56320 === (64512 & d) && (c = 65536 + (c - 55296 << 10) + (d - 56320), f++)), 128 > c ? b[g++] = c : 2048 > c ? (b[g++] = 192 | c >>> 6, b[g++] = 128 | 63 & c) : 65536 > c ? (b[g++] = 224 | c >>> 12, b[g++] = 128 | c >>> 6 & 63, b[g++] = 128 | 63 & c) : (b[g++] = 240 | c >>> 18, b[g++] = 128 | c >>> 12 & 63, b[g++] = 128 | c >>> 6 & 63, b[g++] = 128 | 63 & c); return b }, c.buf2binstring = function (a) { return d(a, a.length) }, c.binstring2buf = function (a) { for (var b = new e.Buf8(a.length), c = 0, d = b.length; d > c; c++)b[c] = a.charCodeAt(c); return b }, c.buf2string = function (a, b) { var c, e, f, g, h = b || a.length, j = new Array(2 * h); for (e = 0, c = 0; h > c;)if (f = a[c++], 128 > f) j[e++] = f; else if (g = i[f], g > 4) j[e++] = 65533, c += g - 1; else { for (f &= 2 === g ? 31 : 3 === g ? 15 : 7; g > 1 && h > c;)f = f << 6 | 63 & a[c++], g--; g > 1 ? j[e++] = 65533 : 65536 > f ? j[e++] = f : (f -= 65536, j[e++] = 55296 | f >> 10 & 1023, j[e++] = 56320 | 1023 & f) } return d(j, e) }, c.utf8border = function (a, b) { var c; for (b = b || a.length, b > a.length && (b = a.length), c = b - 1; c >= 0 && 128 === (192 & a[c]);)c--; return 0 > c ? b : 0 === c ? b : c + i[a[c]] > b ? c : b } }, { "./common": 27 }], 29: [function (a, b) { "use strict"; function c(a, b, c, d) { for (var e = 65535 & a | 0, f = a >>> 16 & 65535 | 0, g = 0; 0 !== c;) { g = c > 2e3 ? 2e3 : c, c -= g; do e = e + b[d++] | 0, f = f + e | 0; while (--g); e %= 65521, f %= 65521 } return e | f << 16 | 0 } b.exports = c }, {}], 30: [function (a, b) { b.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 } }, {}], 31: [function (a, b) { "use strict"; function c() { for (var a, b = [], c = 0; 256 > c; c++) { a = c; for (var d = 0; 8 > d; d++)a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1; b[c] = a } return b } function d(a, b, c, d) { var f = e, g = d + c; a = -1 ^ a; for (var h = d; g > h; h++)a = a >>> 8 ^ f[255 & (a ^ b[h])]; return -1 ^ a } var e = c(); b.exports = d }, {}], 32: [function (a, b, c) { "use strict"; function d(a, b) { return a.msg = G[b], b } function e(a) { return (a << 1) - (a > 4 ? 9 : 0) } function f(a) { for (var b = a.length; --b >= 0;)a[b] = 0 } function g(a) { var b = a.state, c = b.pending; c > a.avail_out && (c = a.avail_out), 0 !== c && (C.arraySet(a.output, b.pending_buf, b.pending_out, c, a.next_out), a.next_out += c, b.pending_out += c, a.total_out += c, a.avail_out -= c, b.pending -= c, 0 === b.pending && (b.pending_out = 0)) } function h(a, b) { D._tr_flush_block(a, a.block_start >= 0 ? a.block_start : -1, a.strstart - a.block_start, b), a.block_start = a.strstart, g(a.strm) } function i(a, b) { a.pending_buf[a.pending++] = b } function j(a, b) { a.pending_buf[a.pending++] = b >>> 8 & 255, a.pending_buf[a.pending++] = 255 & b } function k(a, b, c, d) { var e = a.avail_in; return e > d && (e = d), 0 === e ? 0 : (a.avail_in -= e, C.arraySet(b, a.input, a.next_in, e, c), 1 === a.state.wrap ? a.adler = E(a.adler, b, e, c) : 2 === a.state.wrap && (a.adler = F(a.adler, b, e, c)), a.next_in += e, a.total_in += e, e) } function l(a, b) { var c, d, e = a.max_chain_length, f = a.strstart, g = a.prev_length, h = a.nice_match, i = a.strstart > a.w_size - jb ? a.strstart - (a.w_size - jb) : 0, j = a.window, k = a.w_mask, l = a.prev, m = a.strstart + ib, n = j[f + g - 1], o = j[f + g]; a.prev_length >= a.good_match && (e >>= 2), h > a.lookahead && (h = a.lookahead); do if (c = b, j[c + g] === o && j[c + g - 1] === n && j[c] === j[f] && j[++c] === j[f + 1]) { f += 2, c++; do; while (j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && j[++f] === j[++c] && m > f); if (d = ib - (m - f), f = m - ib, d > g) { if (a.match_start = b, g = d, d >= h) break; n = j[f + g - 1], o = j[f + g] } } while ((b = l[b & k]) > i && 0 !== --e); return g <= a.lookahead ? g : a.lookahead } function m(a) { var b, c, d, e, f, g = a.w_size; do { if (e = a.window_size - a.lookahead - a.strstart, a.strstart >= g + (g - jb)) { C.arraySet(a.window, a.window, g, g, 0), a.match_start -= g, a.strstart -= g, a.block_start -= g, c = a.hash_size, b = c; do d = a.head[--b], a.head[b] = d >= g ? d - g : 0; while (--c); c = g, b = c; do d = a.prev[--b], a.prev[b] = d >= g ? d - g : 0; while (--c); e += g } if (0 === a.strm.avail_in) break; if (c = k(a.strm, a.window, a.strstart + a.lookahead, e), a.lookahead += c, a.lookahead + a.insert >= hb) for (f = a.strstart - a.insert, a.ins_h = a.window[f], a.ins_h = (a.ins_h << a.hash_shift ^ a.window[f + 1]) & a.hash_mask; a.insert && (a.ins_h = (a.ins_h << a.hash_shift ^ a.window[f + hb - 1]) & a.hash_mask, a.prev[f & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = f, f++ , a.insert-- , !(a.lookahead + a.insert < hb));); } while (a.lookahead < jb && 0 !== a.strm.avail_in) } function n(a, b) { var c = 65535; for (c > a.pending_buf_size - 5 && (c = a.pending_buf_size - 5); ;) { if (a.lookahead <= 1) { if (m(a), 0 === a.lookahead && b === H) return sb; if (0 === a.lookahead) break } a.strstart += a.lookahead, a.lookahead = 0; var d = a.block_start + c; if ((0 === a.strstart || a.strstart >= d) && (a.lookahead = a.strstart - d, a.strstart = d, h(a, !1), 0 === a.strm.avail_out)) return sb; if (a.strstart - a.block_start >= a.w_size - jb && (h(a, !1), 0 === a.strm.avail_out)) return sb } return a.insert = 0, b === K ? (h(a, !0), 0 === a.strm.avail_out ? ub : vb) : a.strstart > a.block_start && (h(a, !1), 0 === a.strm.avail_out) ? sb : sb } function o(a, b) { for (var c, d; ;) { if (a.lookahead < jb) { if (m(a), a.lookahead < jb && b === H) return sb; if (0 === a.lookahead) break } if (c = 0, a.lookahead >= hb && (a.ins_h = (a.ins_h << a.hash_shift ^ a.window[a.strstart + hb - 1]) & a.hash_mask, c = a.prev[a.strstart & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = a.strstart), 0 !== c && a.strstart - c <= a.w_size - jb && (a.match_length = l(a, c)), a.match_length >= hb) if (d = D._tr_tally(a, a.strstart - a.match_start, a.match_length - hb), a.lookahead -= a.match_length, a.match_length <= a.max_lazy_match && a.lookahead >= hb) { a.match_length--; do a.strstart++ , a.ins_h = (a.ins_h << a.hash_shift ^ a.window[a.strstart + hb - 1]) & a.hash_mask, c = a.prev[a.strstart & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = a.strstart; while (0 !== --a.match_length); a.strstart++ } else a.strstart += a.match_length, a.match_length = 0, a.ins_h = a.window[a.strstart], a.ins_h = (a.ins_h << a.hash_shift ^ a.window[a.strstart + 1]) & a.hash_mask; else d = D._tr_tally(a, 0, a.window[a.strstart]), a.lookahead-- , a.strstart++; if (d && (h(a, !1), 0 === a.strm.avail_out)) return sb } return a.insert = a.strstart < hb - 1 ? a.strstart : hb - 1, b === K ? (h(a, !0), 0 === a.strm.avail_out ? ub : vb) : a.last_lit && (h(a, !1), 0 === a.strm.avail_out) ? sb : tb } function p(a, b) { for (var c, d, e; ;) { if (a.lookahead < jb) { if (m(a), a.lookahead < jb && b === H) return sb; if (0 === a.lookahead) break } if (c = 0, a.lookahead >= hb && (a.ins_h = (a.ins_h << a.hash_shift ^ a.window[a.strstart + hb - 1]) & a.hash_mask, c = a.prev[a.strstart & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = a.strstart), a.prev_length = a.match_length, a.prev_match = a.match_start, a.match_length = hb - 1, 0 !== c && a.prev_length < a.max_lazy_match && a.strstart - c <= a.w_size - jb && (a.match_length = l(a, c), a.match_length <= 5 && (a.strategy === S || a.match_length === hb && a.strstart - a.match_start > 4096) && (a.match_length = hb - 1)), a.prev_length >= hb && a.match_length <= a.prev_length) { e = a.strstart + a.lookahead - hb, d = D._tr_tally(a, a.strstart - 1 - a.prev_match, a.prev_length - hb), a.lookahead -= a.prev_length - 1, a.prev_length -= 2; do ++a.strstart <= e && (a.ins_h = (a.ins_h << a.hash_shift ^ a.window[a.strstart + hb - 1]) & a.hash_mask, c = a.prev[a.strstart & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = a.strstart); while (0 !== --a.prev_length); if (a.match_available = 0, a.match_length = hb - 1, a.strstart++ , d && (h(a, !1), 0 === a.strm.avail_out)) return sb } else if (a.match_available) { if (d = D._tr_tally(a, 0, a.window[a.strstart - 1]), d && h(a, !1), a.strstart++ , a.lookahead-- , 0 === a.strm.avail_out) return sb } else a.match_available = 1, a.strstart++ , a.lookahead-- } return a.match_available && (d = D._tr_tally(a, 0, a.window[a.strstart - 1]), a.match_available = 0), a.insert = a.strstart < hb - 1 ? a.strstart : hb - 1, b === K ? (h(a, !0), 0 === a.strm.avail_out ? ub : vb) : a.last_lit && (h(a, !1), 0 === a.strm.avail_out) ? sb : tb } function q(a, b) { for (var c, d, e, f, g = a.window; ;) { if (a.lookahead <= ib) { if (m(a), a.lookahead <= ib && b === H) return sb; if (0 === a.lookahead) break } if (a.match_length = 0, a.lookahead >= hb && a.strstart > 0 && (e = a.strstart - 1, d = g[e], d === g[++e] && d === g[++e] && d === g[++e])) { f = a.strstart + ib; do; while (d === g[++e] && d === g[++e] && d === g[++e] && d === g[++e] && d === g[++e] && d === g[++e] && d === g[++e] && d === g[++e] && f > e); a.match_length = ib - (f - e), a.match_length > a.lookahead && (a.match_length = a.lookahead) } if (a.match_length >= hb ? (c = D._tr_tally(a, 1, a.match_length - hb), a.lookahead -= a.match_length, a.strstart += a.match_length, a.match_length = 0) : (c = D._tr_tally(a, 0, a.window[a.strstart]), a.lookahead-- , a.strstart++), c && (h(a, !1), 0 === a.strm.avail_out)) return sb } return a.insert = 0, b === K ? (h(a, !0), 0 === a.strm.avail_out ? ub : vb) : a.last_lit && (h(a, !1), 0 === a.strm.avail_out) ? sb : tb } function r(a, b) { for (var c; ;) { if (0 === a.lookahead && (m(a), 0 === a.lookahead)) { if (b === H) return sb; break } if (a.match_length = 0, c = D._tr_tally(a, 0, a.window[a.strstart]), a.lookahead-- , a.strstart++ , c && (h(a, !1), 0 === a.strm.avail_out)) return sb } return a.insert = 0, b === K ? (h(a, !0), 0 === a.strm.avail_out ? ub : vb) : a.last_lit && (h(a, !1), 0 === a.strm.avail_out) ? sb : tb } function s(a) { a.window_size = 2 * a.w_size, f(a.head), a.max_lazy_match = B[a.level].max_lazy, a.good_match = B[a.level].good_length, a.nice_match = B[a.level].nice_length, a.max_chain_length = B[a.level].max_chain, a.strstart = 0, a.block_start = 0, a.lookahead = 0, a.insert = 0, a.match_length = a.prev_length = hb - 1, a.match_available = 0, a.ins_h = 0 } function t() { this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Y, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new C.Buf16(2 * fb), this.dyn_dtree = new C.Buf16(2 * (2 * db + 1)), this.bl_tree = new C.Buf16(2 * (2 * eb + 1)), f(this.dyn_ltree), f(this.dyn_dtree), f(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new C.Buf16(gb + 1), this.heap = new C.Buf16(2 * cb + 1), f(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new C.Buf16(2 * cb + 1), f(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0 } function u(a) { var b; return a && a.state ? (a.total_in = a.total_out = 0, a.data_type = X, b = a.state, b.pending = 0, b.pending_out = 0, b.wrap < 0 && (b.wrap = -b.wrap), b.status = b.wrap ? lb : qb, a.adler = 2 === b.wrap ? 0 : 1, b.last_flush = H, D._tr_init(b), M) : d(a, O) } function v(a) { var b = u(a); return b === M && s(a.state), b } function w(a, b) { return a && a.state ? 2 !== a.state.wrap ? O : (a.state.gzhead = b, M) : O } function x(a, b, c, e, f, g) { if (!a) return O; var h = 1; if (b === R && (b = 6), 0 > e ? (h = 0, e = -e) : e > 15 && (h = 2, e -= 16), 1 > f || f > Z || c !== Y || 8 > e || e > 15 || 0 > b || b > 9 || 0 > g || g > V) return d(a, O); 8 === e && (e = 9); var i = new t; return a.state = i, i.strm = a, i.wrap = h, i.gzhead = null, i.w_bits = e, i.w_size = 1 << i.w_bits, i.w_mask = i.w_size - 1, i.hash_bits = f + 7, i.hash_size = 1 << i.hash_bits, i.hash_mask = i.hash_size - 1, i.hash_shift = ~~((i.hash_bits + hb - 1) / hb), i.window = new C.Buf8(2 * i.w_size), i.head = new C.Buf16(i.hash_size), i.prev = new C.Buf16(i.w_size), i.lit_bufsize = 1 << f + 6, i.pending_buf_size = 4 * i.lit_bufsize, i.pending_buf = new C.Buf8(i.pending_buf_size), i.d_buf = i.lit_bufsize >> 1, i.l_buf = 3 * i.lit_bufsize, i.level = b, i.strategy = g, i.method = c, v(a) } function y(a, b) { return x(a, b, Y, $, _, W) } function z(a, b) { var c, h, k, l; if (!a || !a.state || b > L || 0 > b) return a ? d(a, O) : O; if (h = a.state, !a.output || !a.input && 0 !== a.avail_in || h.status === rb && b !== K) return d(a, 0 === a.avail_out ? Q : O); if (h.strm = a, c = h.last_flush, h.last_flush = b, h.status === lb) if (2 === h.wrap) a.adler = 0, i(h, 31), i(h, 139), i(h, 8), h.gzhead ? (i(h, (h.gzhead.text ? 1 : 0) + (h.gzhead.hcrc ? 2 : 0) + (h.gzhead.extra ? 4 : 0) + (h.gzhead.name ? 8 : 0) + (h.gzhead.comment ? 16 : 0)), i(h, 255 & h.gzhead.time), i(h, h.gzhead.time >> 8 & 255), i(h, h.gzhead.time >> 16 & 255), i(h, h.gzhead.time >> 24 & 255), i(h, 9 === h.level ? 2 : h.strategy >= T || h.level < 2 ? 4 : 0), i(h, 255 & h.gzhead.os), h.gzhead.extra && h.gzhead.extra.length && (i(h, 255 & h.gzhead.extra.length), i(h, h.gzhead.extra.length >> 8 & 255)), h.gzhead.hcrc && (a.adler = F(a.adler, h.pending_buf, h.pending, 0)), h.gzindex = 0, h.status = mb) : (i(h, 0), i(h, 0), i(h, 0), i(h, 0), i(h, 0), i(h, 9 === h.level ? 2 : h.strategy >= T || h.level < 2 ? 4 : 0), i(h, wb), h.status = qb); else { var m = Y + (h.w_bits - 8 << 4) << 8, n = -1; n = h.strategy >= T || h.level < 2 ? 0 : h.level < 6 ? 1 : 6 === h.level ? 2 : 3, m |= n << 6, 0 !== h.strstart && (m |= kb), m += 31 - m % 31, h.status = qb, j(h, m), 0 !== h.strstart && (j(h, a.adler >>> 16), j(h, 65535 & a.adler)), a.adler = 1 } if (h.status === mb) if (h.gzhead.extra) { for (k = h.pending; h.gzindex < (65535 & h.gzhead.extra.length) && (h.pending !== h.pending_buf_size || (h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), g(a), k = h.pending, h.pending !== h.pending_buf_size));)i(h, 255 & h.gzhead.extra[h.gzindex]), h.gzindex++; h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), h.gzindex === h.gzhead.extra.length && (h.gzindex = 0, h.status = nb) } else h.status = nb; if (h.status === nb) if (h.gzhead.name) { k = h.pending; do { if (h.pending === h.pending_buf_size && (h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), g(a), k = h.pending, h.pending === h.pending_buf_size)) { l = 1; break } l = h.gzindex < h.gzhead.name.length ? 255 & h.gzhead.name.charCodeAt(h.gzindex++) : 0, i(h, l) } while (0 !== l); h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), 0 === l && (h.gzindex = 0, h.status = ob) } else h.status = ob; if (h.status === ob) if (h.gzhead.comment) { k = h.pending; do { if (h.pending === h.pending_buf_size && (h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), g(a), k = h.pending, h.pending === h.pending_buf_size)) { l = 1; break } l = h.gzindex < h.gzhead.comment.length ? 255 & h.gzhead.comment.charCodeAt(h.gzindex++) : 0, i(h, l) } while (0 !== l); h.gzhead.hcrc && h.pending > k && (a.adler = F(a.adler, h.pending_buf, h.pending - k, k)), 0 === l && (h.status = pb) } else h.status = pb; if (h.status === pb && (h.gzhead.hcrc ? (h.pending + 2 > h.pending_buf_size && g(a), h.pending + 2 <= h.pending_buf_size && (i(h, 255 & a.adler), i(h, a.adler >> 8 & 255), a.adler = 0, h.status = qb)) : h.status = qb), 0 !== h.pending) { if (g(a), 0 === a.avail_out) return h.last_flush = -1, M } else if (0 === a.avail_in && e(b) <= e(c) && b !== K) return d(a, Q); if (h.status === rb && 0 !== a.avail_in) return d(a, Q); if (0 !== a.avail_in || 0 !== h.lookahead || b !== H && h.status !== rb) { var o = h.strategy === T ? r(h, b) : h.strategy === U ? q(h, b) : B[h.level].func(h, b); if ((o === ub || o === vb) && (h.status = rb), o === sb || o === ub) return 0 === a.avail_out && (h.last_flush = -1), M; if (o === tb && (b === I ? D._tr_align(h) : b !== L && (D._tr_stored_block(h, 0, 0, !1), b === J && (f(h.head), 0 === h.lookahead && (h.strstart = 0, h.block_start = 0, h.insert = 0))), g(a), 0 === a.avail_out)) return h.last_flush = -1, M } return b !== K ? M : h.wrap <= 0 ? N : (2 === h.wrap ? (i(h, 255 & a.adler), i(h, a.adler >> 8 & 255), i(h, a.adler >> 16 & 255), i(h, a.adler >> 24 & 255), i(h, 255 & a.total_in), i(h, a.total_in >> 8 & 255), i(h, a.total_in >> 16 & 255), i(h, a.total_in >> 24 & 255)) : (j(h, a.adler >>> 16), j(h, 65535 & a.adler)), g(a), h.wrap > 0 && (h.wrap = -h.wrap), 0 !== h.pending ? M : N) } function A(a) { var b; return a && a.state ? (b = a.state.status, b !== lb && b !== mb && b !== nb && b !== ob && b !== pb && b !== qb && b !== rb ? d(a, O) : (a.state = null, b === qb ? d(a, P) : M)) : O } var B, C = a("../utils/common"), D = a("./trees"), E = a("./adler32"), F = a("./crc32"), G = a("./messages"), H = 0, I = 1, J = 3, K = 4, L = 5, M = 0, N = 1, O = -2, P = -3, Q = -5, R = -1, S = 1, T = 2, U = 3, V = 4, W = 0, X = 2, Y = 8, Z = 9, $ = 15, _ = 8, ab = 29, bb = 256, cb = bb + 1 + ab, db = 30, eb = 19, fb = 2 * cb + 1, gb = 15, hb = 3, ib = 258, jb = ib + hb + 1, kb = 32, lb = 42, mb = 69, nb = 73, ob = 91, pb = 103, qb = 113, rb = 666, sb = 1, tb = 2, ub = 3, vb = 4, wb = 3, xb = function (a, b, c, d, e) { this.good_length = a, this.max_lazy = b, this.nice_length = c, this.max_chain = d, this.func = e }; B = [new xb(0, 0, 0, 0, n), new xb(4, 4, 8, 4, o), new xb(4, 5, 16, 8, o), new xb(4, 6, 32, 32, o), new xb(4, 4, 16, 16, p), new xb(8, 16, 32, 32, p), new xb(8, 16, 128, 128, p), new xb(8, 32, 128, 256, p), new xb(32, 128, 258, 1024, p), new xb(32, 258, 258, 4096, p)], c.deflateInit = y, c.deflateInit2 = x, c.deflateReset = v, c.deflateResetKeep = u, c.deflateSetHeader = w, c.deflate = z, c.deflateEnd = A, c.deflateInfo = "pako deflate (from Nodeca project)" }, { "../utils/common": 27, "./adler32": 29, "./crc32": 31, "./messages": 37, "./trees": 38 }], 33: [function (a, b) { "use strict"; function c() { this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1 } b.exports = c }, {}], 34: [function (a, b) { "use strict"; var c = 30, d = 12; b.exports = function (a, b) { var e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C; e = a.state, f = a.next_in, B = a.input, g = f + (a.avail_in - 5), h = a.next_out, C = a.output, i = h - (b - a.avail_out), j = h + (a.avail_out - 257), k = e.dmax, l = e.wsize, m = e.whave, n = e.wnext, o = e.window, p = e.hold, q = e.bits, r = e.lencode, s = e.distcode, t = (1 << e.lenbits) - 1, u = (1 << e.distbits) - 1; a: do { 15 > q && (p += B[f++] << q, q += 8, p += B[f++] << q, q += 8), v = r[p & t]; b: for (; ;) { if (w = v >>> 24, p >>>= w, q -= w, w = v >>> 16 & 255, 0 === w) C[h++] = 65535 & v; else { if (!(16 & w)) { if (0 === (64 & w)) { v = r[(65535 & v) + (p & (1 << w) - 1)]; continue b } if (32 & w) { e.mode = d; break a } a.msg = "invalid literal/length code", e.mode = c; break a } x = 65535 & v, w &= 15, w && (w > q && (p += B[f++] << q, q += 8), x += p & (1 << w) - 1, p >>>= w, q -= w), 15 > q && (p += B[f++] << q, q += 8, p += B[f++] << q, q += 8), v = s[p & u]; c: for (; ;) { if (w = v >>> 24, p >>>= w, q -= w, w = v >>> 16 & 255, !(16 & w)) { if (0 === (64 & w)) { v = s[(65535 & v) + (p & (1 << w) - 1)]; continue c } a.msg = "invalid distance code", e.mode = c; break a } if (y = 65535 & v, w &= 15, w > q && (p += B[f++] << q, q += 8, w > q && (p += B[f++] << q, q += 8)), y += p & (1 << w) - 1, y > k) { a.msg = "invalid distance too far back", e.mode = c; break a } if (p >>>= w, q -= w, w = h - i, y > w) { if (w = y - w, w > m && e.sane) { a.msg = "invalid distance too far back", e.mode = c; break a } if (z = 0, A = o, 0 === n) { if (z += l - w, x > w) { x -= w; do C[h++] = o[z++]; while (--w); z = h - y, A = C } } else if (w > n) { if (z += l + n - w, w -= n, x > w) { x -= w; do C[h++] = o[z++]; while (--w); if (z = 0, x > n) { w = n, x -= w; do C[h++] = o[z++]; while (--w); z = h - y, A = C } } } else if (z += n - w, x > w) { x -= w; do C[h++] = o[z++]; while (--w); z = h - y, A = C } for (; x > 2;)C[h++] = A[z++], C[h++] = A[z++], C[h++] = A[z++], x -= 3; x && (C[h++] = A[z++], x > 1 && (C[h++] = A[z++])) } else { z = h - y; do C[h++] = C[z++], C[h++] = C[z++], C[h++] = C[z++], x -= 3; while (x > 2); x && (C[h++] = C[z++], x > 1 && (C[h++] = C[z++])) } break } } break } } while (g > f && j > h); x = q >> 3, f -= x, q -= x << 3, p &= (1 << q) - 1, a.next_in = f, a.next_out = h, a.avail_in = g > f ? 5 + (g - f) : 5 - (f - g), a.avail_out = j > h ? 257 + (j - h) : 257 - (h - j), e.hold = p, e.bits = q } }, {}], 35: [function (a, b, c) {
            "use strict"; function d(a) { return (a >>> 24 & 255) + (a >>> 8 & 65280) + ((65280 & a) << 8) + ((255 & a) << 24) } function e() { this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new r.Buf16(320), this.work = new r.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0 } function f(a) { var b; return a && a.state ? (b = a.state, a.total_in = a.total_out = b.total = 0, a.msg = "", b.wrap && (a.adler = 1 & b.wrap), b.mode = K, b.last = 0, b.havedict = 0, b.dmax = 32768, b.head = null, b.hold = 0, b.bits = 0, b.lencode = b.lendyn = new r.Buf32(ob), b.distcode = b.distdyn = new r.Buf32(pb), b.sane = 1, b.back = -1, C) : F } function g(a) { var b; return a && a.state ? (b = a.state, b.wsize = 0, b.whave = 0, b.wnext = 0, f(a)) : F } function h(a, b) { var c, d; return a && a.state ? (d = a.state, 0 > b ? (c = 0, b = -b) : (c = (b >> 4) + 1, 48 > b && (b &= 15)), b && (8 > b || b > 15) ? F : (null !== d.window && d.wbits !== b && (d.window = null), d.wrap = c, d.wbits = b, g(a))) : F } function i(a, b) { var c, d; return a ? (d = new e, a.state = d, d.window = null, c = h(a, b), c !== C && (a.state = null), c) : F } function j(a) { return i(a, rb) } function k(a) { if (sb) { var b; for (p = new r.Buf32(512), q = new r.Buf32(32), b = 0; 144 > b;)a.lens[b++] = 8; for (; 256 > b;)a.lens[b++] = 9; for (; 280 > b;)a.lens[b++] = 7; for (; 288 > b;)a.lens[b++] = 8; for (v(x, a.lens, 0, 288, p, 0, a.work, { bits: 9 }), b = 0; 32 > b;)a.lens[b++] = 5; v(y, a.lens, 0, 32, q, 0, a.work, { bits: 5 }), sb = !1 } a.lencode = p, a.lenbits = 9, a.distcode = q, a.distbits = 5 } function l(a, b, c, d) { var e, f = a.state; return null === f.window && (f.wsize = 1 << f.wbits, f.wnext = 0, f.whave = 0, f.window = new r.Buf8(f.wsize)), d >= f.wsize ? (r.arraySet(f.window, b, c - f.wsize, f.wsize, 0), f.wnext = 0, f.whave = f.wsize) : (e = f.wsize - f.wnext, e > d && (e = d), r.arraySet(f.window, b, c - d, e, f.wnext), d -= e, d ? (r.arraySet(f.window, b, c - d, d, 0), f.wnext = d, f.whave = f.wsize) : (f.wnext += e, f.wnext === f.wsize && (f.wnext = 0), f.whave < f.wsize && (f.whave += e))), 0 } function m(a, b) {
                var c, e, f, g, h, i, j, m, n, o, p, q, ob, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, Ab = 0, Bb = new r.Buf8(4), Cb = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; if (!a || !a.state || !a.output || !a.input && 0 !== a.avail_in) return F; c = a.state, c.mode === V && (c.mode = W), h = a.next_out, f = a.output, j = a.avail_out, g = a.next_in, e = a.input, i = a.avail_in, m = c.hold, n = c.bits, o = i, p = j, xb = C; a: for (; ;)switch (c.mode) {
                    case K: if (0 === c.wrap) { c.mode = W; break } for (; 16 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (2 & c.wrap && 35615 === m) { c.check = 0, Bb[0] = 255 & m, Bb[1] = m >>> 8 & 255, c.check = t(c.check, Bb, 2, 0), m = 0, n = 0, c.mode = L; break } if (c.flags = 0, c.head && (c.head.done = !1), !(1 & c.wrap) || (((255 & m) << 8) + (m >> 8)) % 31) { a.msg = "incorrect header check", c.mode = lb; break } if ((15 & m) !== J) { a.msg = "unknown compression method", c.mode = lb; break } if (m >>>= 4, n -= 4, wb = (15 & m) + 8, 0 === c.wbits) c.wbits = wb; else if (wb > c.wbits) { a.msg = "invalid window size", c.mode = lb; break } c.dmax = 1 << wb, a.adler = c.check = 1, c.mode = 512 & m ? T : V, m = 0, n = 0; break; case L: for (; 16 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (c.flags = m, (255 & c.flags) !== J) { a.msg = "unknown compression method", c.mode = lb; break } if (57344 & c.flags) { a.msg = "unknown header flags set", c.mode = lb; break } c.head && (c.head.text = m >> 8 & 1), 512 & c.flags && (Bb[0] = 255 & m, Bb[1] = m >>> 8 & 255, c.check = t(c.check, Bb, 2, 0)), m = 0, n = 0, c.mode = M; case M: for (; 32 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.head && (c.head.time = m), 512 & c.flags && (Bb[0] = 255 & m, Bb[1] = m >>> 8 & 255, Bb[2] = m >>> 16 & 255, Bb[3] = m >>> 24 & 255, c.check = t(c.check, Bb, 4, 0)), m = 0, n = 0, c.mode = N; case N: for (; 16 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.head && (c.head.xflags = 255 & m, c.head.os = m >> 8), 512 & c.flags && (Bb[0] = 255 & m, Bb[1] = m >>> 8 & 255, c.check = t(c.check, Bb, 2, 0)), m = 0, n = 0, c.mode = O; case O: if (1024 & c.flags) { for (; 16 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.length = m, c.head && (c.head.extra_len = m), 512 & c.flags && (Bb[0] = 255 & m, Bb[1] = m >>> 8 & 255, c.check = t(c.check, Bb, 2, 0)), m = 0, n = 0 } else c.head && (c.head.extra = null); c.mode = P; case P: if (1024 & c.flags && (q = c.length, q > i && (q = i), q && (c.head && (wb = c.head.extra_len - c.length, c.head.extra || (c.head.extra = new Array(c.head.extra_len)), r.arraySet(c.head.extra, e, g, q, wb)), 512 & c.flags && (c.check = t(c.check, e, q, g)), i -= q, g += q, c.length -= q), c.length)) break a; c.length = 0, c.mode = Q; case Q: if (2048 & c.flags) { if (0 === i) break a; q = 0; do wb = e[g + q++], c.head && wb && c.length < 65536 && (c.head.name += String.fromCharCode(wb)); while (wb && i > q); if (512 & c.flags && (c.check = t(c.check, e, q, g)), i -= q, g += q, wb) break a } else c.head && (c.head.name = null); c.length = 0, c.mode = R; case R: if (4096 & c.flags) { if (0 === i) break a; q = 0; do wb = e[g + q++], c.head && wb && c.length < 65536 && (c.head.comment += String.fromCharCode(wb)); while (wb && i > q); if (512 & c.flags && (c.check = t(c.check, e, q, g)), i -= q, g += q, wb) break a } else c.head && (c.head.comment = null); c.mode = S; case S: if (512 & c.flags) { for (; 16 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (m !== (65535 & c.check)) { a.msg = "header crc mismatch", c.mode = lb; break } m = 0, n = 0 } c.head && (c.head.hcrc = c.flags >> 9 & 1, c.head.done = !0), a.adler = c.check = 0, c.mode = V; break; case T: for (; 32 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } a.adler = c.check = d(m), m = 0, n = 0, c.mode = U; case U: if (0 === c.havedict) return a.next_out = h, a.avail_out = j, a.next_in = g, a.avail_in = i, c.hold = m, c.bits = n, E; a.adler = c.check = 1, c.mode = V; case V: if (b === A || b === B) break a; case W: if (c.last) { m >>>= 7 & n, n -= 7 & n, c.mode = ib; break } for (; 3 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } switch (c.last = 1 & m, m >>>= 1, n -= 1, 3 & m) { case 0: c.mode = X; break; case 1: if (k(c), c.mode = bb, b === B) { m >>>= 2, n -= 2; break a } break; case 2: c.mode = $; break; case 3: a.msg = "invalid block type", c.mode = lb }m >>>= 2, n -= 2; break; case X: for (m >>>= 7 & n, n -= 7 & n; 32 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if ((65535 & m) !== (m >>> 16 ^ 65535)) { a.msg = "invalid stored block lengths", c.mode = lb; break } if (c.length = 65535 & m, m = 0, n = 0, c.mode = Y, b === B) break a; case Y: c.mode = Z; case Z: if (q = c.length) { if (q > i && (q = i), q > j && (q = j), 0 === q) break a; r.arraySet(f, e, g, q, h), i -= q, g += q, j -= q, h += q, c.length -= q; break } c.mode = V; break; case $: for (; 14 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (c.nlen = (31 & m) + 257, m >>>= 5, n -= 5, c.ndist = (31 & m) + 1, m >>>= 5, n -= 5, c.ncode = (15 & m) + 4, m >>>= 4, n -= 4, c.nlen > 286 || c.ndist > 30) { a.msg = "too many length or distance symbols", c.mode = lb; break } c.have = 0, c.mode = _; case _: for (; c.have < c.ncode;) { for (; 3 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.lens[Cb[c.have++]] = 7 & m, m >>>= 3, n -= 3 } for (; c.have < 19;)c.lens[Cb[c.have++]] = 0; if (c.lencode = c.lendyn, c.lenbits = 7, yb = { bits: c.lenbits }, xb = v(w, c.lens, 0, 19, c.lencode, 0, c.work, yb), c.lenbits = yb.bits, xb) { a.msg = "invalid code lengths set", c.mode = lb; break } c.have = 0, c.mode = ab; case ab: for (; c.have < c.nlen + c.ndist;) { for (; Ab = c.lencode[m & (1 << c.lenbits) - 1], qb = Ab >>> 24, rb = Ab >>> 16 & 255, sb = 65535 & Ab, !(n >= qb);) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (16 > sb) m >>>= qb, n -= qb, c.lens[c.have++] = sb; else { if (16 === sb) { for (zb = qb + 2; zb > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (m >>>= qb, n -= qb, 0 === c.have) { a.msg = "invalid bit length repeat", c.mode = lb; break } wb = c.lens[c.have - 1], q = 3 + (3 & m), m >>>= 2, n -= 2 } else if (17 === sb) { for (zb = qb + 3; zb > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } m >>>= qb, n -= qb, wb = 0, q = 3 + (7 & m), m >>>= 3, n -= 3 } else { for (zb = qb + 7; zb > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } m >>>= qb, n -= qb, wb = 0, q = 11 + (127 & m), m >>>= 7, n -= 7 } if (c.have + q > c.nlen + c.ndist) { a.msg = "invalid bit length repeat", c.mode = lb; break } for (; q--;)c.lens[c.have++] = wb } } if (c.mode === lb) break; if (0 === c.lens[256]) { a.msg = "invalid code -- missing end-of-block", c.mode = lb; break } if (c.lenbits = 9, yb = { bits: c.lenbits }, xb = v(x, c.lens, 0, c.nlen, c.lencode, 0, c.work, yb), c.lenbits = yb.bits, xb) { a.msg = "invalid literal/lengths set", c.mode = lb; break } if (c.distbits = 6, c.distcode = c.distdyn, yb = { bits: c.distbits }, xb = v(y, c.lens, c.nlen, c.ndist, c.distcode, 0, c.work, yb), c.distbits = yb.bits, xb) { a.msg = "invalid distances set", c.mode = lb; break } if (c.mode = bb, b === B) break a; case bb: c.mode = cb; case cb: if (i >= 6 && j >= 258) { a.next_out = h, a.avail_out = j, a.next_in = g, a.avail_in = i, c.hold = m, c.bits = n, u(a, p), h = a.next_out, f = a.output, j = a.avail_out, g = a.next_in, e = a.input, i = a.avail_in, m = c.hold, n = c.bits, c.mode === V && (c.back = -1); break } for (c.back = 0; Ab = c.lencode[m & (1 << c.lenbits) - 1], qb = Ab >>> 24, rb = Ab >>> 16 & 255, sb = 65535 & Ab, !(n >= qb);) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (rb && 0 === (240 & rb)) { for (tb = qb, ub = rb, vb = sb; Ab = c.lencode[vb + ((m & (1 << tb + ub) - 1) >> tb)], qb = Ab >>> 24, rb = Ab >>> 16 & 255, sb = 65535 & Ab, !(n >= tb + qb);) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } m >>>= tb, n -= tb, c.back += tb } if (m >>>= qb, n -= qb, c.back += qb, c.length = sb, 0 === rb) { c.mode = hb; break } if (32 & rb) { c.back = -1, c.mode = V; break } if (64 & rb) { a.msg = "invalid literal/length code", c.mode = lb; break } c.extra = 15 & rb, c.mode = db; case db: if (c.extra) { for (zb = c.extra; zb > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.length += m & (1 << c.extra) - 1, m >>>= c.extra, n -= c.extra, c.back += c.extra } c.was = c.length, c.mode = eb; case eb: for (; Ab = c.distcode[m & (1 << c.distbits) - 1], qb = Ab >>> 24, rb = Ab >>> 16 & 255, sb = 65535 & Ab, !(n >= qb);) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (0 === (240 & rb)) { for (tb = qb, ub = rb, vb = sb; Ab = c.distcode[vb + ((m & (1 << tb + ub) - 1) >> tb)], qb = Ab >>> 24, rb = Ab >>> 16 & 255, sb = 65535 & Ab, !(n >= tb + qb);) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } m >>>= tb, n -= tb, c.back += tb } if (m >>>= qb, n -= qb, c.back += qb, 64 & rb) { a.msg = "invalid distance code", c.mode = lb; break } c.offset = sb, c.extra = 15 & rb, c.mode = fb; case fb: if (c.extra) { for (zb = c.extra; zb > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } c.offset += m & (1 << c.extra) - 1, m >>>= c.extra, n -= c.extra, c.back += c.extra } if (c.offset > c.dmax) { a.msg = "invalid distance too far back", c.mode = lb; break } c.mode = gb; case gb: if (0 === j) break a;
                        if (q = p - j, c.offset > q) { if (q = c.offset - q, q > c.whave && c.sane) { a.msg = "invalid distance too far back", c.mode = lb; break } q > c.wnext ? (q -= c.wnext, ob = c.wsize - q) : ob = c.wnext - q, q > c.length && (q = c.length), pb = c.window } else pb = f, ob = h - c.offset, q = c.length; q > j && (q = j), j -= q, c.length -= q; do f[h++] = pb[ob++]; while (--q); 0 === c.length && (c.mode = cb); break; case hb: if (0 === j) break a; f[h++] = c.length, j-- , c.mode = cb; break; case ib: if (c.wrap) { for (; 32 > n;) { if (0 === i) break a; i-- , m |= e[g++] << n, n += 8 } if (p -= j, a.total_out += p, c.total += p, p && (a.adler = c.check = c.flags ? t(c.check, f, p, h - p) : s(c.check, f, p, h - p)), p = j, (c.flags ? m : d(m)) !== c.check) { a.msg = "incorrect data check", c.mode = lb; break } m = 0, n = 0 } c.mode = jb; case jb: if (c.wrap && c.flags) { for (; 32 > n;) { if (0 === i) break a; i-- , m += e[g++] << n, n += 8 } if (m !== (4294967295 & c.total)) { a.msg = "incorrect length check", c.mode = lb; break } m = 0, n = 0 } c.mode = kb; case kb: xb = D; break a; case lb: xb = G; break a; case mb: return H; case nb: default: return F
                }return a.next_out = h, a.avail_out = j, a.next_in = g, a.avail_in = i, c.hold = m, c.bits = n, (c.wsize || p !== a.avail_out && c.mode < lb && (c.mode < ib || b !== z)) && l(a, a.output, a.next_out, p - a.avail_out) ? (c.mode = mb, H) : (o -= a.avail_in, p -= a.avail_out, a.total_in += o, a.total_out += p, c.total += p, c.wrap && p && (a.adler = c.check = c.flags ? t(c.check, f, p, a.next_out - p) : s(c.check, f, p, a.next_out - p)), a.data_type = c.bits + (c.last ? 64 : 0) + (c.mode === V ? 128 : 0) + (c.mode === bb || c.mode === Y ? 256 : 0), (0 === o && 0 === p || b === z) && xb === C && (xb = I), xb)
            } function n(a) { if (!a || !a.state) return F; var b = a.state; return b.window && (b.window = null), a.state = null, C } function o(a, b) { var c; return a && a.state ? (c = a.state, 0 === (2 & c.wrap) ? F : (c.head = b, b.done = !1, C)) : F } var p, q, r = a("../utils/common"), s = a("./adler32"), t = a("./crc32"), u = a("./inffast"), v = a("./inftrees"), w = 0, x = 1, y = 2, z = 4, A = 5, B = 6, C = 0, D = 1, E = 2, F = -2, G = -3, H = -4, I = -5, J = 8, K = 1, L = 2, M = 3, N = 4, O = 5, P = 6, Q = 7, R = 8, S = 9, T = 10, U = 11, V = 12, W = 13, X = 14, Y = 15, Z = 16, $ = 17, _ = 18, ab = 19, bb = 20, cb = 21, db = 22, eb = 23, fb = 24, gb = 25, hb = 26, ib = 27, jb = 28, kb = 29, lb = 30, mb = 31, nb = 32, ob = 852, pb = 592, qb = 15, rb = qb, sb = !0; c.inflateReset = g, c.inflateReset2 = h, c.inflateResetKeep = f, c.inflateInit = j, c.inflateInit2 = i, c.inflate = m, c.inflateEnd = n, c.inflateGetHeader = o, c.inflateInfo = "pako inflate (from Nodeca project)"
        }, { "../utils/common": 27, "./adler32": 29, "./crc32": 31, "./inffast": 34, "./inftrees": 36 }], 36: [function (a, b) { "use strict"; var c = a("../utils/common"), d = 15, e = 852, f = 592, g = 0, h = 1, i = 2, j = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], k = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], l = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], m = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]; b.exports = function (a, b, n, o, p, q, r, s) { var t, u, v, w, x, y, z, A, B, C = s.bits, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0, K = 0, L = 0, M = 0, N = null, O = 0, P = new c.Buf16(d + 1), Q = new c.Buf16(d + 1), R = null, S = 0; for (D = 0; d >= D; D++)P[D] = 0; for (E = 0; o > E; E++)P[b[n + E]]++; for (H = C, G = d; G >= 1 && 0 === P[G]; G--); if (H > G && (H = G), 0 === G) return p[q++] = 20971520, p[q++] = 20971520, s.bits = 1, 0; for (F = 1; G > F && 0 === P[F]; F++); for (F > H && (H = F), K = 1, D = 1; d >= D; D++)if (K <<= 1, K -= P[D], 0 > K) return -1; if (K > 0 && (a === g || 1 !== G)) return -1; for (Q[1] = 0, D = 1; d > D; D++)Q[D + 1] = Q[D] + P[D]; for (E = 0; o > E; E++)0 !== b[n + E] && (r[Q[b[n + E]]++] = E); if (a === g ? (N = R = r, y = 19) : a === h ? (N = j, O -= 257, R = k, S -= 257, y = 256) : (N = l, R = m, y = -1), M = 0, E = 0, D = F, x = q, I = H, J = 0, v = -1, L = 1 << H, w = L - 1, a === h && L > e || a === i && L > f) return 1; for (var T = 0; ;) { T++ , z = D - J, r[E] < y ? (A = 0, B = r[E]) : r[E] > y ? (A = R[S + r[E]], B = N[O + r[E]]) : (A = 96, B = 0), t = 1 << D - J, u = 1 << I, F = u; do u -= t, p[x + (M >> J) + u] = z << 24 | A << 16 | B | 0; while (0 !== u); for (t = 1 << D - 1; M & t;)t >>= 1; if (0 !== t ? (M &= t - 1, M += t) : M = 0, E++ , 0 === --P[D]) { if (D === G) break; D = b[n + r[E]] } if (D > H && (M & w) !== v) { for (0 === J && (J = H), x += F, I = D - J, K = 1 << I; G > I + J && (K -= P[I + J], !(0 >= K));)I++ , K <<= 1; if (L += 1 << I, a === h && L > e || a === i && L > f) return 1; v = M & w, p[v] = H << 24 | I << 16 | x - q | 0 } } return 0 !== M && (p[x + M] = D - J << 24 | 64 << 16 | 0), s.bits = H, 0 } }, { "../utils/common": 27 }], 37: [function (a, b) { "use strict"; b.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" } }, {}], 38: [function (a, b, c) { "use strict"; function d(a) { for (var b = a.length; --b >= 0;)a[b] = 0 } function e(a) { return 256 > a ? gb[a] : gb[256 + (a >>> 7)] } function f(a, b) { a.pending_buf[a.pending++] = 255 & b, a.pending_buf[a.pending++] = b >>> 8 & 255 } function g(a, b, c) { a.bi_valid > V - c ? (a.bi_buf |= b << a.bi_valid & 65535, f(a, a.bi_buf), a.bi_buf = b >> V - a.bi_valid, a.bi_valid += c - V) : (a.bi_buf |= b << a.bi_valid & 65535, a.bi_valid += c) } function h(a, b, c) { g(a, c[2 * b], c[2 * b + 1]) } function i(a, b) { var c = 0; do c |= 1 & a, a >>>= 1, c <<= 1; while (--b > 0); return c >>> 1 } function j(a) { 16 === a.bi_valid ? (f(a, a.bi_buf), a.bi_buf = 0, a.bi_valid = 0) : a.bi_valid >= 8 && (a.pending_buf[a.pending++] = 255 & a.bi_buf, a.bi_buf >>= 8, a.bi_valid -= 8) } function k(a, b) { var c, d, e, f, g, h, i = b.dyn_tree, j = b.max_code, k = b.stat_desc.static_tree, l = b.stat_desc.has_stree, m = b.stat_desc.extra_bits, n = b.stat_desc.extra_base, o = b.stat_desc.max_length, p = 0; for (f = 0; U >= f; f++)a.bl_count[f] = 0; for (i[2 * a.heap[a.heap_max] + 1] = 0, c = a.heap_max + 1; T > c; c++)d = a.heap[c], f = i[2 * i[2 * d + 1] + 1] + 1, f > o && (f = o, p++), i[2 * d + 1] = f, d > j || (a.bl_count[f]++ , g = 0, d >= n && (g = m[d - n]), h = i[2 * d], a.opt_len += h * (f + g), l && (a.static_len += h * (k[2 * d + 1] + g))); if (0 !== p) { do { for (f = o - 1; 0 === a.bl_count[f];)f--; a.bl_count[f]-- , a.bl_count[f + 1] += 2, a.bl_count[o]-- , p -= 2 } while (p > 0); for (f = o; 0 !== f; f--)for (d = a.bl_count[f]; 0 !== d;)e = a.heap[--c], e > j || (i[2 * e + 1] !== f && (a.opt_len += (f - i[2 * e + 1]) * i[2 * e], i[2 * e + 1] = f), d--) } } function l(a, b, c) { var d, e, f = new Array(U + 1), g = 0; for (d = 1; U >= d; d++)f[d] = g = g + c[d - 1] << 1; for (e = 0; b >= e; e++) { var h = a[2 * e + 1]; 0 !== h && (a[2 * e] = i(f[h]++, h)) } } function m() { var a, b, c, d, e, f = new Array(U + 1); for (c = 0, d = 0; O - 1 > d; d++)for (ib[d] = c, a = 0; a < 1 << _[d]; a++)hb[c++] = d; for (hb[c - 1] = d, e = 0, d = 0; 16 > d; d++)for (jb[d] = e, a = 0; a < 1 << ab[d]; a++)gb[e++] = d; for (e >>= 7; R > d; d++)for (jb[d] = e << 7, a = 0; a < 1 << ab[d] - 7; a++)gb[256 + e++] = d; for (b = 0; U >= b; b++)f[b] = 0; for (a = 0; 143 >= a;)eb[2 * a + 1] = 8, a++ , f[8]++; for (; 255 >= a;)eb[2 * a + 1] = 9, a++ , f[9]++; for (; 279 >= a;)eb[2 * a + 1] = 7, a++ , f[7]++; for (; 287 >= a;)eb[2 * a + 1] = 8, a++ , f[8]++; for (l(eb, Q + 1, f), a = 0; R > a; a++)fb[2 * a + 1] = 5, fb[2 * a] = i(a, 5); kb = new nb(eb, _, P + 1, Q, U), lb = new nb(fb, ab, 0, R, U), mb = new nb(new Array(0), bb, 0, S, W) } function n(a) { var b; for (b = 0; Q > b; b++)a.dyn_ltree[2 * b] = 0; for (b = 0; R > b; b++)a.dyn_dtree[2 * b] = 0; for (b = 0; S > b; b++)a.bl_tree[2 * b] = 0; a.dyn_ltree[2 * X] = 1, a.opt_len = a.static_len = 0, a.last_lit = a.matches = 0 } function o(a) { a.bi_valid > 8 ? f(a, a.bi_buf) : a.bi_valid > 0 && (a.pending_buf[a.pending++] = a.bi_buf), a.bi_buf = 0, a.bi_valid = 0 } function p(a, b, c, d) { o(a), d && (f(a, c), f(a, ~c)), E.arraySet(a.pending_buf, a.window, b, c, a.pending), a.pending += c } function q(a, b, c, d) { var e = 2 * b, f = 2 * c; return a[e] < a[f] || a[e] === a[f] && d[b] <= d[c] } function r(a, b, c) { for (var d = a.heap[c], e = c << 1; e <= a.heap_len && (e < a.heap_len && q(b, a.heap[e + 1], a.heap[e], a.depth) && e++ , !q(b, d, a.heap[e], a.depth));)a.heap[c] = a.heap[e], c = e, e <<= 1; a.heap[c] = d } function s(a, b, c) { var d, f, i, j, k = 0; if (0 !== a.last_lit) do d = a.pending_buf[a.d_buf + 2 * k] << 8 | a.pending_buf[a.d_buf + 2 * k + 1], f = a.pending_buf[a.l_buf + k], k++ , 0 === d ? h(a, f, b) : (i = hb[f], h(a, i + P + 1, b), j = _[i], 0 !== j && (f -= ib[i], g(a, f, j)), d-- , i = e(d), h(a, i, c), j = ab[i], 0 !== j && (d -= jb[i], g(a, d, j))); while (k < a.last_lit); h(a, X, b) } function t(a, b) { var c, d, e, f = b.dyn_tree, g = b.stat_desc.static_tree, h = b.stat_desc.has_stree, i = b.stat_desc.elems, j = -1; for (a.heap_len = 0, a.heap_max = T, c = 0; i > c; c++)0 !== f[2 * c] ? (a.heap[++a.heap_len] = j = c, a.depth[c] = 0) : f[2 * c + 1] = 0; for (; a.heap_len < 2;)e = a.heap[++a.heap_len] = 2 > j ? ++j : 0, f[2 * e] = 1, a.depth[e] = 0, a.opt_len-- , h && (a.static_len -= g[2 * e + 1]); for (b.max_code = j, c = a.heap_len >> 1; c >= 1; c--)r(a, f, c); e = i; do c = a.heap[1], a.heap[1] = a.heap[a.heap_len--], r(a, f, 1), d = a.heap[1], a.heap[--a.heap_max] = c, a.heap[--a.heap_max] = d, f[2 * e] = f[2 * c] + f[2 * d], a.depth[e] = (a.depth[c] >= a.depth[d] ? a.depth[c] : a.depth[d]) + 1, f[2 * c + 1] = f[2 * d + 1] = e, a.heap[1] = e++ , r(a, f, 1); while (a.heap_len >= 2); a.heap[--a.heap_max] = a.heap[1], k(a, b), l(f, j, a.bl_count) } function u(a, b, c) { var d, e, f = -1, g = b[1], h = 0, i = 7, j = 4; for (0 === g && (i = 138, j = 3), b[2 * (c + 1) + 1] = 65535, d = 0; c >= d; d++)e = g, g = b[2 * (d + 1) + 1], ++h < i && e === g || (j > h ? a.bl_tree[2 * e] += h : 0 !== e ? (e !== f && a.bl_tree[2 * e]++ , a.bl_tree[2 * Y]++) : 10 >= h ? a.bl_tree[2 * Z]++ : a.bl_tree[2 * $]++ , h = 0, f = e, 0 === g ? (i = 138, j = 3) : e === g ? (i = 6, j = 3) : (i = 7, j = 4)) } function v(a, b, c) { var d, e, f = -1, i = b[1], j = 0, k = 7, l = 4; for (0 === i && (k = 138, l = 3), d = 0; c >= d; d++)if (e = i, i = b[2 * (d + 1) + 1], !(++j < k && e === i)) { if (l > j) { do h(a, e, a.bl_tree); while (0 !== --j) } else 0 !== e ? (e !== f && (h(a, e, a.bl_tree), j--), h(a, Y, a.bl_tree), g(a, j - 3, 2)) : 10 >= j ? (h(a, Z, a.bl_tree), g(a, j - 3, 3)) : (h(a, $, a.bl_tree), g(a, j - 11, 7)); j = 0, f = e, 0 === i ? (k = 138, l = 3) : e === i ? (k = 6, l = 3) : (k = 7, l = 4) } } function w(a) { var b; for (u(a, a.dyn_ltree, a.l_desc.max_code), u(a, a.dyn_dtree, a.d_desc.max_code), t(a, a.bl_desc), b = S - 1; b >= 3 && 0 === a.bl_tree[2 * cb[b] + 1]; b--); return a.opt_len += 3 * (b + 1) + 5 + 5 + 4, b } function x(a, b, c, d) { var e; for (g(a, b - 257, 5), g(a, c - 1, 5), g(a, d - 4, 4), e = 0; d > e; e++)g(a, a.bl_tree[2 * cb[e] + 1], 3); v(a, a.dyn_ltree, b - 1), v(a, a.dyn_dtree, c - 1) } function y(a) { var b, c = 4093624447; for (b = 0; 31 >= b; b++ , c >>>= 1)if (1 & c && 0 !== a.dyn_ltree[2 * b]) return G; if (0 !== a.dyn_ltree[18] || 0 !== a.dyn_ltree[20] || 0 !== a.dyn_ltree[26]) return H; for (b = 32; P > b; b++)if (0 !== a.dyn_ltree[2 * b]) return H; return G } function z(a) { pb || (m(), pb = !0), a.l_desc = new ob(a.dyn_ltree, kb), a.d_desc = new ob(a.dyn_dtree, lb), a.bl_desc = new ob(a.bl_tree, mb), a.bi_buf = 0, a.bi_valid = 0, n(a) } function A(a, b, c, d) { g(a, (J << 1) + (d ? 1 : 0), 3), p(a, b, c, !0) } function B(a) { g(a, K << 1, 3), h(a, X, eb), j(a) } function C(a, b, c, d) { var e, f, h = 0; a.level > 0 ? (a.strm.data_type === I && (a.strm.data_type = y(a)), t(a, a.l_desc), t(a, a.d_desc), h = w(a), e = a.opt_len + 3 + 7 >>> 3, f = a.static_len + 3 + 7 >>> 3, e >= f && (e = f)) : e = f = c + 5, e >= c + 4 && -1 !== b ? A(a, b, c, d) : a.strategy === F || f === e ? (g(a, (K << 1) + (d ? 1 : 0), 3), s(a, eb, fb)) : (g(a, (L << 1) + (d ? 1 : 0), 3), x(a, a.l_desc.max_code + 1, a.d_desc.max_code + 1, h + 1), s(a, a.dyn_ltree, a.dyn_dtree)), n(a), d && o(a) } function D(a, b, c) { return a.pending_buf[a.d_buf + 2 * a.last_lit] = b >>> 8 & 255, a.pending_buf[a.d_buf + 2 * a.last_lit + 1] = 255 & b, a.pending_buf[a.l_buf + a.last_lit] = 255 & c, a.last_lit++ , 0 === b ? a.dyn_ltree[2 * c]++ : (a.matches++ , b-- , a.dyn_ltree[2 * (hb[c] + P + 1)]++ , a.dyn_dtree[2 * e(b)]++), a.last_lit === a.lit_bufsize - 1 } var E = a("../utils/common"), F = 4, G = 0, H = 1, I = 2, J = 0, K = 1, L = 2, M = 3, N = 258, O = 29, P = 256, Q = P + 1 + O, R = 30, S = 19, T = 2 * Q + 1, U = 15, V = 16, W = 7, X = 256, Y = 16, Z = 17, $ = 18, _ = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], ab = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], bb = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], cb = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], db = 512, eb = new Array(2 * (Q + 2)); d(eb); var fb = new Array(2 * R); d(fb); var gb = new Array(db); d(gb); var hb = new Array(N - M + 1); d(hb); var ib = new Array(O); d(ib); var jb = new Array(R); d(jb); var kb, lb, mb, nb = function (a, b, c, d, e) { this.static_tree = a, this.extra_bits = b, this.extra_base = c, this.elems = d, this.max_length = e, this.has_stree = a && a.length }, ob = function (a, b) { this.dyn_tree = a, this.max_code = 0, this.stat_desc = b }, pb = !1; c._tr_init = z, c._tr_stored_block = A, c._tr_flush_block = C, c._tr_tally = D, c._tr_align = B }, { "../utils/common": 27 }], 39: [function (a, b) { "use strict"; function c() { this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0 } b.exports = c }, {}]
    }, {}, [9])(9)
});//Title: Custom DropDown plugin by PC
//Documentation: http://designwithpc.com/Plugins/ddslick
//Author: PC 
//Website: http://designwithpc.com
//Twitter: http://twitter.com/chaudharyp

(function ($) {

    $.fn.ddslick = function (method) {
        if (methods[method]) {
            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
        } else if (typeof method === 'object' || !method) {
            return methods.init.apply(this, arguments);
        } else {
            $.error('Method ' + method + ' does not exists.');
        }
    };

    var methods = {},

        //Set defauls for the control
        defaults = {
            data: [],
            keepJSONItemsOnTop: false,
            width: 'auto',
            height: null,
            selectText: "",
            defaultSelectedIndex: null,
            truncateDescription: true,
            imagePosition: "left",
            showSelectedHTML: true,
            clickOffToClose: true,
            embedCSS: true,
            onSelected: function () { }
        },

        ddOptionsHtml = '<ul class="dd-options"></ul>';

    ////CSS for ddSlick
    //ddslickCSS = '<style id="css-ddslick" type="text/css">' +
    //    '.dd-select{ border-radius:2px; border:solid 1px #ccc; position:relative; cursor:pointer;}' +
    //    '.dd-desc { color:#aaa; display:block; overflow: hidden; font-weight:normal; line-height: 1.4em; }' +
    //    '.dd-selected{ overflow:hidden; display:block; padding:10px; font-weight:bold;}' +
    //    '.dd-pointer{ width:0; height:0; position:absolute; right:10px; top:50%; margin-top:-3px;}' +
    //    '.dd-pointer-down{ border:solid 5px transparent; border-top:solid 5px #000; }' +
    //    '.dd-pointer-up{border:solid 5px transparent !important; border-bottom:solid 5px #000 !important; margin-top:-8px;}' +
    //    '.dd-options{ border:solid 1px #ccc; border-top:none; list-style:none; box-shadow:0px 1px 5px #ddd; display:none; position:absolute; z-index:2000; margin:0; padding:0;background:#fff; overflow:auto;}' +
    //    '.dd-option{ padding:10px; display:block; border-bottom:solid 1px #ddd; overflow:hidden; text-decoration:none; color:#333; cursor:pointer;-webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out;-o-transition: all 0.25s ease-in-out;-ms-transition: all 0.25s ease-in-out; }' +
    //    '.dd-options > li:last-child > .dd-option{ border-bottom:none;}' +
    //    '.dd-option:hover{ background:#f3f3f3; color:#000;}' +
    //    '.dd-selected-description-truncated { text-overflow: ellipsis; white-space:nowrap; }' +
    //    '.dd-option-selected { background:#f6f6f6; }' +
    //    '.dd-option-image, .dd-selected-image, .dd-selected-csssprite, dd-image-left{ vertical-align:middle; float:left; margin-right:5px; max-width:64px;}' +
    //    '.dd-image-right { float:right; margin-right:15px; margin-left:5px;}' +
    //    '.dd-container{ position:relative;}​ .dd-selected-text { font-weight:bold}​</style>';

    //Public methods 
    methods.init = function (userOptions) {
        //Preserve the original defaults by passing an empty object as the target
        //The object is used to get global flags like embedCSS.
        var options = $.extend({}, defaults, userOptions);

        ////CSS styles are only added once.
        //if ($('#css-ddslick').length <= 0 && options.embedCSS) {
        //    $(ddslickCSS).appendTo('head');
        //}

        //Apply on all selected elements
        return this.each(function () {
            //Preserve the original defaults by passing an empty object as the target 
            //The object is used to save drop-down's corresponding settings and data.
            var options = $.extend({}, defaults, userOptions);

            var obj = $(this),
                data = obj.data('ddslick');
            //If the plugin has not been initialized yet
            if (!data) {

                var ddSelect = [], ddJson = options.data;

                //Get data from HTML select options
                obj.find('option').each(function () {
                    var $this = $(this), thisData = $this.data();
                    ddSelect.push({
                        text: $.trim($this.text()),
                        value: $this.val(),
                        selected: $this.is(':selected'),
                        description: thisData.description,
                        cssSprite: thisData.csssprite,
                        imageSrc: thisData.imagesrc //keep it lowercase for HTML5 data-attributes
                    });
                });

                //Update Plugin data merging both HTML select data and JSON data for the dropdown
                if (options.keepJSONItemsOnTop)
                    $.merge(options.data, ddSelect);
                else options.data = $.merge(ddSelect, options.data);

                //Replace HTML select with empty placeholder, keep the original
                var original = obj, placeholder = $('<div>').attr('id', obj.attr('id') + '-dd-placeholder');
                obj.after(placeholder);
                obj = placeholder;

                //Add classes and append ddSelectHtml & ddOptionsHtml to the container
                ddSelectHtml = '<div class="dd-select"><input class="dd-selected-value" name="' + original.attr("name") + '" type="hidden" /><a class="dd-selected"></a><span class="dd-pointer dd-pointer-down"></span></div>';
                obj.addClass('dd-container').append(ddSelectHtml).append(ddOptionsHtml);

                // Inherit name attribute from original element
                obj.find("input.dd-selected-value")
                    .attr("id", $(original).attr("id"))
                    .attr("name", $(original).attr("name"));

                //Get newly created ddOptions and ddSelect to manipulate
                var ddSelect = obj.find('.dd-select'),
                    ddOptions = obj.find('.dd-options');

                //Set widths
                ddOptions.css({ width: options.width });
                ddSelect.css({ width: options.width, background: options.background });
                obj.css({ width: options.width });

                //Set height
                if (options.height != null)
                    ddOptions.css({ height: options.height, overflow: 'auto' });

                //Add ddOptions to the container. Replace with template engine later.
                $.each(options.data, function (index, item) {
                    if (item.selected) options.defaultSelectedIndex = index;
                    ddOptions.append('<li>' +
                        '<a class="dd-option">' +
                        (item.value ? ' <input class="dd-option-value" type="hidden" value="' + item.value + '" />' : '') +
                        (item.cssSprite ? ' <span class="dd-selected-csssprite' + (options.imagePosition == "right" ? ' dd-image-right ' + item.cssSprite : ' dd-image-left ' + item.cssSprite) + '" />' : '') +
                        (item.imageSrc ? ' <img class="dd-option-image' + (options.imagePosition == "right" ? ' dd-image-right' : '') + '" src="' + item.imageSrc + '" />' : '') +
                        (item.text ? ' <label class="dd-option-text">' + item.text + '</label>' : '') +
                        (item.description ? ' <small class="dd-option-description dd-desc">' + item.description + '</small>' : '') +
                        '</a>' +
                        '</li>');
                });

                //Save plugin data.
                var pluginData = {
                    settings: options,
                    original: original,
                    selectedIndex: -1,
                    selectedItem: null,
                    selectedData: null
                }
                obj.data('ddslick', pluginData);

                //Check if needs to show the select text, otherwise show selected or default selection
                if (options.selectText.length > 0 && options.defaultSelectedIndex == null) {
                    obj.find('.dd-selected').html(options.selectText);
                }
                else {
                    var index = (options.defaultSelectedIndex != null && options.defaultSelectedIndex >= 0 && options.defaultSelectedIndex < options.data.length)
                        ? options.defaultSelectedIndex
                        : 0;
                    selectIndex(obj, index);
                }

                //EVENTS
                //Displaying options
                obj.find('.dd-select').on('click.ddslick', function () {
                    open(obj);
                });

                //Selecting an option
                obj.find('.dd-option').on('click.ddslick', function () {
                    selectIndex(obj, $(this).closest('li').index());
                });

                //Click anywhere to close
                if (options.clickOffToClose) {
                    ddOptions.addClass('dd-click-off-close');
                    obj.on('click.ddslick', function (e) { e.stopPropagation(); });
                    //$('body').on('click', function () {
                    //    $('.dd-open').removeClass('dd-open');
                    //    $('.dd-click-off-close').slideUp(50).siblings('.dd-select').find('.dd-pointer').removeClass('dd-pointer-up');
                    //});
                }
            }
        });
    };

    //Public method to select an option by its index
    methods.select = function (options) {
        return this.each(function () {
            if (options.index !== undefined)
                selectIndex($(this), options.index);
            if (options.id)
                selectId($(this), options.id);
        });
    }

    //Public method to open drop down
    methods.open = function () {
        return this.each(function () {
            var $this = $(this),
                pluginData = $this.data('ddslick');

            //Check if plugin is initialized
            if (pluginData)
                open($this);
        });
    };

    //Public method to close drop down
    methods.close = function () {
        return this.each(function () {
            var $this = $(this),
                pluginData = $this.data('ddslick');

            //Check if plugin is initialized
            if (pluginData)
                close($this);
        });
    };

    //Public method to destroy. Unbind all events and restore the original Html select/options
    methods.destroy = function () {
        return this.each(function () {
            var $this = $(this),
                pluginData = $this.data('ddslick');

            //Check if already destroyed
            if (pluginData) {
                var originalElement = pluginData.original;
                $this.removeData('ddslick').unbind('.ddslick').replaceWith(originalElement);
            }
        });
    }

    //Private: Select id
    function selectId(obj, id) {

        var index = obj.find(".dd-option-value[value= '" + id + "']").parents("li").prevAll().length;
        selectIndex(obj, index);

    }

    //Private: Select index
    function selectIndex(obj, index) {

        //Get plugin data
        var pluginData = obj.data('ddslick');

        //Get required elements
        var ddSelected = obj.find('.dd-selected'),
            ddSelectedValue = ddSelected.siblings('.dd-selected-value'),
            ddOptions = obj.find('.dd-options'),
            ddPointer = ddSelected.siblings('.dd-pointer'),
            selectedOption = obj.find('.dd-option').eq(index),
            selectedLiItem = selectedOption.closest('li'),
            settings = pluginData.settings,
            selectedData = pluginData.settings.data[index];

        //Highlight selected option
        obj.find('.dd-option').removeClass('dd-option-selected');
        selectedOption.addClass('dd-option-selected');

        //Update or Set plugin data with new selection
        pluginData.selectedIndex = index;
        pluginData.selectedItem = selectedLiItem;
        if (selectedData != undefined) {

            pluginData.selectedData = selectedData;

            //If set to display to full html, add html
            if (settings.showSelectedHTML) {
                ddSelected.html(
                    (selectedData.cssSprite ? '<span class="dd-selected-csssprite' + (settings.imagePosition == "right" ? ' dd-image-right ' + selectedData.cssSprite : ' dd-image-left ' + selectedData.cssSprite) + '" />' : '') +
                    (selectedData.imageSrc ? '<img class="dd-selected-image' + (settings.imagePosition == "right" ? ' dd-image-right' : '') + '" src="' + selectedData.imageSrc + '" />' : '') +
                    (selectedData.text ? '<label class="dd-selected-text">' + selectedData.text + '</label>' : '') +
                    (selectedData.description ? '<small class="dd-selected-description dd-desc' + (settings.truncateDescription ? ' dd-selected-description-truncated' : '') + '" >' + selectedData.description + '</small>' : '')
                );

            }
            //Else only display text as selection
            else ddSelected.html(selectedData.text);

            //Updating selected option value
            ddSelectedValue.val(selectedData.value);

            //BONUS! Update the original element attribute with the new selection
            pluginData.original.val(selectedData.value);
        }
        obj.data('ddslick', pluginData);

        //Close options on selection
        close(obj);

        //Adjust appearence for selected option
        adjustSelectedHeight(obj);

        //Callback function on selection
        if (typeof settings.onSelected == 'function') {
            settings.onSelected.call(this, pluginData);
        }
    }

    //Private: Close the drop down options
    function open(obj) {

        var $this = obj.find('.dd-select'),
            ddOptions = $this.siblings('.dd-options'),
            ddPointer = $this.find('.dd-pointer'),
            wasOpen = ddOptions.is(':visible');

        //Close all open options (multiple plugins) on the page
        $('.dd-click-off-close').not(ddOptions).slideUp(50);
        $('.dd-pointer').removeClass('dd-pointer-up');
        $this.removeClass('dd-open');

        if (wasOpen) {
            ddOptions.slideUp('fast');
            ddPointer.removeClass('dd-pointer-up');
            $this.removeClass('dd-open');
        }
        else {
            $this.addClass('dd-open');
            ddOptions.slideDown('fast');
            ddPointer.addClass('dd-pointer-up');
        }

        //Fix text height (i.e. display title in center), if there is no description
        adjustOptionsHeight(obj);
    }

    //Private: Close the drop down options
    function close(obj) {
        //Close drop down and adjust pointer direction
        obj.find('.dd-select').removeClass('dd-open');
        obj.find('.dd-options').slideUp(50);
        obj.find('.dd-pointer').removeClass('dd-pointer-up').removeClass('dd-pointer-up');
    }

    //Private: Adjust appearence for selected option (move title to middle), when no desripction
    function adjustSelectedHeight(obj) {

        //Get height of dd-selected
        var lSHeight = obj.find('.dd-select').css('height');

        //Check if there is selected description
        var descriptionSelected = obj.find('.dd-selected-description');
        var imgSelected = obj.find('.dd-selected-image');
        var cssSpriteSelected = obj.find('.dd-selected-csssprite');
        if ((descriptionSelected.length <= 0 && imgSelected.length > 0) || (descriptionSelected.length <= 0 && cssSpriteSelected.length > 0)) {
            //  obj.find('.dd-selected-text').css('lineHeight', lSHeight);
        }
    }

    //Private: Adjust appearence for drop down options (move title to middle), when no desripction
    function adjustOptionsHeight(obj) {
        obj.find('.dd-option').each(function () {
            var $this = $(this);
            var lOHeight = $this.css('height');
            var descriptionOption = $this.find('.dd-option-description');
            var imgOption = obj.find('.dd-option-image');
            var cssSpriteOption = obj.find('.dd-selected-csssprite');
            if ((descriptionOption.length <= 0 && imgOption.length > 0) || (descriptionOption.length <= 0 && cssSpriteOption.length > 0)) {
                // $this.find('.dd-option-text').css('lineHeight', lOHeight);
            }
        });
    }

})(jQuery);

$('body').on('click', function () {
    $('.dd-open').removeClass('dd-open');
    $('.dd-click-off-close').slideUp(50).siblings('.dd-select').find('.dd-pointer').removeClass('dd-pointer-up');
});/*!jQuery Knob*/

/**

 * Downward compatible, touchable dial

 *

 * Version: 1.2.12

 * Requires: jQuery v1.7+

 *

 * Copyright (c) 2012 Anthony Terrien

 * Under MIT License (http://www.opensource.org/licenses/mit-license.php)

 *

 * Thanks to vor, eskimoblood, spiffistan, FabrizioC

 */(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var t={},n=Math.max,r=Math.min;t.c={};t.c.d=e(document);t.c.t=function(e){return e.originalEvent.touches.length-1};t.o=function(){var n=this;this.o=null;this.$=null;this.i=null;this.g=null;this.v=null;this.cv=null;this.x=0;this.y=0;this.w=0;this.h=0;this.$c=null;this.c=null;this.t=0;this.isInit=false;this.fgColor=null;this.pColor=null;this.dH=null;this.cH=null;this.eH=null;this.rH=null;this.scale=1;this.relative=false;this.relativeWidth=false;this.relativeHeight=false;this.$div=null;this.run=function(){var t=function(e,t){var r;for(r in t){n.o[r]=t[r]}n._carve().init();n._configure()._draw()};if(this.$.data("kontroled"))return;this.$.data("kontroled",true);this.extend();this.o=e.extend({min:this.$.data("min")!==undefined?this.$.data("min"):0,max:this.$.data("max")!==undefined?this.$.data("max"):100,stopper:true,readOnly:this.$.data("readonly")||this.$.attr("readonly")==="readonly",cursor:this.$.data("cursor")===true&&30||this.$.data("cursor")||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:this.$.data("displayinput")==null||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:false,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(e){return e},parse:function(e){return parseFloat(e)}},this.o);this.o.flip=this.o.rotation==="anticlockwise"||this.o.rotation==="acw";if(!this.o.inputColor){this.o.inputColor=this.o.fgColor}if(this.$.is("fieldset")){this.v={};this.i=this.$.find("input");this.i.each(function(t){var r=e(this);n.i[t]=r;n.v[t]=n.o.parse(r.val());r.bind("change blur",function(){var e={};e[t]=r.val();n.val(n._validate(e))})});this.$.find("legend").remove()}else{this.i=this.$;this.v=this.o.parse(this.$.val());this.v===""&&(this.v=this.o.min);this.$.bind("change blur",function(){n.val(n._validate(n.o.parse(n.$.val())))})}!this.o.displayInput&&this.$.hide();this.$c=e(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height});this.$div=e('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+"px;"+'"></div>');this.$.wrap(this.$div).before(this.$c);this.$div=this.$.parent();if(typeof G_vmlCanvasManager!=="undefined"){G_vmlCanvasManager.initElement(this.$c[0])}this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null;if(!this.c){throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}}}this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1);this.relativeWidth=this.o.width%1!==0&&this.o.width.indexOf("%");this.relativeHeight=this.o.height%1!==0&&this.o.height.indexOf("%");this.relative=this.relativeWidth||this.relativeHeight;this._carve();if(this.v instanceof Object){this.cv={};this.copy(this.v,this.cv)}else{this.cv=this.v}this.$.bind("configure",t).parent().bind("configure",t);this._listen()._configure()._xy().init();this.isInit=true;this.$.val(this.o.format(this.v));this._draw();return this};this._carve=function(){if(this.relative){var e=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),t=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(e,t)}else{this.w=this.o.width;this.h=this.o.height}this.$div.css({width:this.w+"px",height:this.h+"px"});this.$c.attr({width:this.w,height:this.h});if(this.scale!==1){this.$c[0].width=this.$c[0].width*this.scale;this.$c[0].height=this.$c[0].height*this.scale;this.$c.width(this.w);this.$c.height(this.h)}return this};this._draw=function(){var e=true;n.g=n.c;n.clear();n.dH&&(e=n.dH());e!==false&&n.draw()};this._touch=function(e){var r=function(e){var t=n.xy2val(e.originalEvent.touches[n.t].pageX,e.originalEvent.touches[n.t].pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};this.t=t.c.t(e);r(e);t.c.d.bind("touchmove.k",r).bind("touchend.k",function(){t.c.d.unbind("touchmove.k touchend.k");n.val(n.cv)});return this};this._mouse=function(e){var r=function(e){var t=n.xy2val(e.pageX,e.pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};r(e);t.c.d.bind("mousemove.k",r).bind("keyup.k",function(e){if(e.keyCode===27){t.c.d.unbind("mouseup.k mousemove.k keyup.k");if(n.eH&&n.eH()===false)return;n.cancel()}}).bind("mouseup.k",function(e){t.c.d.unbind("mousemove.k mouseup.k keyup.k");n.val(n.cv)});return this};this._xy=function(){var e=this.$c.offset();this.x=e.left;this.y=e.top;return this};this._listen=function(){if(!this.o.readOnly){this.$c.bind("mousedown",function(e){e.preventDefault();n._xy()._mouse(e)}).bind("touchstart",function(e){e.preventDefault();n._xy()._touch(e)});this.listen()}else{this.$.attr("readonly","readonly")}if(this.relative){e(window).resize(function(){n._carve().init();n._draw()})}return this};this._configure=function(){if(this.o.draw)this.dH=this.o.draw;if(this.o.change)this.cH=this.o.change;if(this.o.cancel)this.eH=this.o.cancel;if(this.o.release)this.rH=this.o.release;if(this.o.displayPrevious){this.pColor=this.h2rgba(this.o.fgColor,"0.4");this.fgColor=this.h2rgba(this.o.fgColor,"0.6")}else{this.fgColor=this.o.fgColor}return this};this._clear=function(){this.$c[0].width=this.$c[0].width};this._validate=function(e){var t=~~((e<0?-.5:.5)+e/this.o.step)*this.o.step;return Math.round(t*100)/100};this.listen=function(){};this.extend=function(){};this.init=function(){};this.change=function(e){};this.val=function(e){};this.xy2val=function(e,t){};this.draw=function(){};this.clear=function(){this._clear()};this.h2rgba=function(e,t){var n;e=e.substring(1,7);n=[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)];return"rgba("+n[0]+","+n[1]+","+n[2]+","+t+")"};this.copy=function(e,t){for(var n in e){t[n]=e[n]}}};t.Dial=function(){t.o.call(this);this.startAngle=null;this.xy=null;this.radius=null;this.lineWidth=null;this.cursorExt=null;this.w2=null;this.PI2=2*Math.PI;this.extend=function(){this.o=e.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:true},this.o)};this.val=function(e,t){if(null!=e){e=this.o.parse(e);if(t!==false&&e!=this.v&&this.rH&&this.rH(e)===false){return}this.cv=this.o.stopper?n(r(e,this.o.max),this.o.min):e;this.v=this.cv;this.$.val(this.o.format(this.v));this._draw()}else{return this.v}};this.xy2val=function(e,t){var i,s;i=Math.atan2(e-(this.x+this.w2),-(t-this.y-this.w2))-this.angleOffset;if(this.o.flip){i=this.angleArc-i-this.PI2}if(this.angleArc!=this.PI2&&i<0&&i>-.5){i=0}else if(i<0){i+=this.PI2}s=i*(this.o.max-this.o.min)/this.angleArc+this.o.min;this.o.stopper&&(s=n(r(s,this.o.max),this.o.min));return s};this.listen=function(){var t=this,i,s,o=function(e){e.preventDefault();var o=e.originalEvent,u=o.detail||o.wheelDeltaX,a=o.detail||o.wheelDeltaY,f=t._validate(t.o.parse(t.$.val()))+(u>0||a>0?t.o.step:u<0||a<0?-t.o.step:0);f=n(r(f,t.o.max),t.o.min);t.val(f,false);if(t.rH){clearTimeout(i);i=setTimeout(function(){t.rH(f);i=null},100);if(!s){s=setTimeout(function(){if(i)t.rH(f);s=null},200)}}},u,a,f=1,l={37:-t.o.step,38:t.o.step,39:t.o.step,40:-t.o.step};this.$.bind("keydown",function(i){var s=i.keyCode;if(s>=96&&s<=105){s=i.keyCode=s-48}u=parseInt(String.fromCharCode(s));if(isNaN(u)){s!==13&&s!==8&&s!==9&&s!==189&&(s!==190||t.$.val().match(/\./))&&i.preventDefault();if(e.inArray(s,[37,38,39,40])>-1){i.preventDefault();var o=t.o.parse(t.$.val())+l[s]*f;t.o.stopper&&(o=n(r(o,t.o.max),t.o.min));t.change(t._validate(o));t._draw();a=window.setTimeout(function(){f*=2},30)}}}).bind("keyup",function(e){if(isNaN(u)){if(a){window.clearTimeout(a);a=null;f=1;t.val(t.$.val())}}else{t.$.val()>t.o.max&&t.$.val(t.o.max)||t.$.val()<t.o.min&&t.$.val(t.o.min)}});this.$c.bind("mousewheel DOMMouseScroll",o);this.$.bind("mousewheel DOMMouseScroll",o)};this.init=function(){if(this.v<this.o.min||this.v>this.o.max){this.v=this.o.min}this.$.val(this.v);this.w2=this.w/2;this.cursorExt=this.o.cursor/100;this.xy=this.w2*this.scale;this.lineWidth=this.xy*this.o.thickness;this.lineCap=this.o.lineCap;this.radius=this.xy-this.lineWidth/2;this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset);this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc);this.angleOffset=this.o.angleOffset*Math.PI/180;this.angleArc=this.o.angleArc*Math.PI/180;this.startAngle=1.5*Math.PI+this.angleOffset;this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var e=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(this.w*3/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/e>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})};this.change=function(e){this.cv=e;this.$.val(this.o.format(e))};this.angle=function(e){return(e-this.o.min)*this.angleArc/(this.o.max-this.o.min)};this.arc=function(e){var t,n;e=this.angle(e);if(this.o.flip){t=this.endAngle+1e-5;n=t-e-1e-5}else{t=this.startAngle-1e-5;n=t+e+1e-5}this.o.cursor&&(t=n-this.cursorExt)&&(n=n+this.cursorExt);return{s:t,e:n,d:this.o.flip&&!this.o.cursor}};this.draw=function(){var e=this.g,t=this.arc(this.cv),n,r=1;e.lineWidth=this.lineWidth;e.lineCap=this.lineCap;if(this.o.bgColor!=="none"){e.beginPath();e.strokeStyle=this.o.bgColor;e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,true);e.stroke()}if(this.o.displayPrevious){n=this.arc(this.v);e.beginPath();e.strokeStyle=this.pColor;e.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d);e.stroke();r=this.cv==this.v}e.beginPath();e.strokeStyle=r?this.o.fgColor:this.fgColor;e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d);e.stroke()};this.cancel=function(){this.val(this.v)}};e.fn.dial=e.fn.knob=function(n){return this.each(function(){var r=new t.Dial;r.o=n;r.$=e(this);r.run()}).parent()}})//! moment.js
//! version : 2.17.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return od.apply(null,arguments)}
// This is done to register the method called with moment()
// without creating circular dependencies.
function b(a){od=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){
// IE8 will treat undefined and null as object if it wasn't for
// input != null
return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)
// even if its not own property I'd still call it non-empty
return!1;return!0}function f(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function g(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function h(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function i(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function j(a,b){for(var c in b)i(b,c)&&(a[c]=b[c]);return i(b,"toString")&&(a.toString=b.toString),i(b,"valueOf")&&(a.valueOf=b.valueOf),a}function k(a,b,c,d){return rb(a,b,c,d,!0).utc()}function l(){
// We need to deep clone this object.
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function m(a){return null==a._pf&&(a._pf=l()),a._pf}function n(a){if(null==a._isValid){var b=m(a),c=qd.call(b.parsedDateParts,function(a){return null!=a}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);if(a._strict&&(d=d&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return d;a._isValid=d}return a._isValid}function o(a){var b=k(NaN);return null!=a?j(m(b),a):m(b).userInvalidated=!0,b}function p(a){return void 0===a}function q(a,b){var c,d,e;if(p(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),p(b._i)||(a._i=b._i),p(b._f)||(a._f=b._f),p(b._l)||(a._l=b._l),p(b._strict)||(a._strict=b._strict),p(b._tzm)||(a._tzm=b._tzm),p(b._isUTC)||(a._isUTC=b._isUTC),p(b._offset)||(a._offset=b._offset),p(b._pf)||(a._pf=m(b)),p(b._locale)||(a._locale=b._locale),rd.length>0)for(c in rd)d=rd[c],e=b[d],p(e)||(a[d]=e);return a}
// Moment prototype object
function r(b){q(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
// Prevent infinite loop in case updateOffset creates new moment
// objects.
sd===!1&&(sd=!0,a.updateOffset(this),sd=!1)}function s(a){return a instanceof r||null!=a&&null!=a._isAMomentObject}function t(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function u(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=t(b)),c}
// compare two arrays, return the number of differences
function v(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;d<e;d++)(c&&a[d]!==b[d]||!c&&u(a[d])!==u(b[d]))&&g++;return g+f}function w(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function x(b,c){var d=!0;return j(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,b),d){for(var e,f=[],g=0;g<arguments.length;g++){if(e="","object"==typeof arguments[g]){e+="\n["+g+"] ";for(var h in arguments[0])e+=h+": "+arguments[0][h]+", ";e=e.slice(0,-2)}else e=arguments[g];f.push(e)}w(b+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function y(b,c){null!=a.deprecationHandler&&a.deprecationHandler(b,c),td[b]||(w(c),td[b]=!0)}function z(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function A(a){var b,c;for(c in a)b=a[c],z(b)?this[c]=b:this["_"+c]=b;this._config=a,
// Lenient ordinal parsing accepts just a number in addition to
// number + (possibly) stuff coming from _ordinalParseLenient.
this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function B(a,b){var c,e=j({},a);for(c in b)i(b,c)&&(d(a[c])&&d(b[c])?(e[c]={},j(e[c],a[c]),j(e[c],b[c])):null!=b[c]?e[c]=b[c]:delete e[c]);for(c in a)i(a,c)&&!i(b,c)&&d(a[c])&&(
// make sure changes to properties don't modify parent config
e[c]=j({},e[c]));return e}function C(a){null!=a&&this.set(a)}function D(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return z(d)?d.call(b,c):d}function E(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function F(){return this._invalidDate}function G(a){return this._ordinal.replace("%d",a)}function H(a,b,c,d){var e=this._relativeTime[c];return z(e)?e(a,b,c,d):e.replace(/%d/i,a)}function I(a,b){var c=this._relativeTime[a>0?"future":"past"];return z(c)?c(b):c.replace(/%s/i,b)}function J(a,b){var c=a.toLowerCase();Dd[c]=Dd[c+"s"]=Dd[b]=a}function K(a){return"string"==typeof a?Dd[a]||Dd[a.toLowerCase()]:void 0}function L(a){var b,c,d={};for(c in a)i(a,c)&&(b=K(c),b&&(d[b]=a[c]));return d}function M(a,b){Ed[a]=b}function N(a){var b=[];for(var c in a)b.push({unit:c,priority:Ed[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function O(b,c){return function(d){return null!=d?(Q(this,b,d),a.updateOffset(this,c),this):P(this,b)}}function P(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function Q(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}
// MOMENTS
function R(a){return a=K(a),z(this[a])?this[a]():this}function S(a,b){if("object"==typeof a){a=L(a);for(var c=N(a),d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else if(a=K(a),z(this[a]))return this[a](b);return this}function T(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}
// token:    'M'
// padded:   ['MM', 2]
// ordinal:  'Mo'
// callback: function () { this.month() + 1 }
function U(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Id[a]=e),b&&(Id[b[0]]=function(){return T(e.apply(this,arguments),b[1],b[2])}),c&&(Id[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function V(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function W(a){var b,c,d=a.match(Fd);for(b=0,c=d.length;b<c;b++)Id[d[b]]?d[b]=Id[d[b]]:d[b]=V(d[b]);return function(b){var e,f="";for(e=0;e<c;e++)f+=d[e]instanceof Function?d[e].call(b,a):d[e];return f}}
// format date using native date object
function X(a,b){return a.isValid()?(b=Y(b,a.localeData()),Hd[b]=Hd[b]||W(b),Hd[b](a)):a.localeData().invalidDate()}function Y(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Gd.lastIndex=0;d>=0&&Gd.test(a);)a=a.replace(Gd,c),Gd.lastIndex=0,d-=1;return a}function Z(a,b,c){$d[a]=z(b)?b:function(a,d){return a&&c?c:b}}function $(a,b){return i($d,a)?$d[a](b._strict,b._locale):new RegExp(_(a))}
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
function _(a){return aa(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function aa(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ba(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),f(b)&&(d=function(a,c){c[b]=u(a)}),c=0;c<a.length;c++)_d[a[c]]=d}function ca(a,b){ba(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function da(a,b,c){null!=b&&i(_d,a)&&_d[a](b,c._a,c,a)}function ea(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function fa(a,b){return a?c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||ke).test(b)?"format":"standalone"][a.month()]:this._months}function ga(a,b){return a?c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[ke.test(b)?"format":"standalone"][a.month()]:this._monthsShort}function ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse)for(
// this is not used
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)f=k([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(f,"").toLocaleLowerCase();return c?"MMM"===b?(e=je.call(this._shortMonthsParse,g),e!==-1?e:null):(e=je.call(this._longMonthsParse,g),e!==-1?e:null):"MMM"===b?(e=je.call(this._shortMonthsParse,g),e!==-1?e:(e=je.call(this._longMonthsParse,g),e!==-1?e:null)):(e=je.call(this._longMonthsParse,g),e!==-1?e:(e=je.call(this._shortMonthsParse,g),e!==-1?e:null))}function ia(a,b,c){var d,e,f;if(this._monthsParseExact)return ha.call(this,a,b,c);
// TODO: add sorting
// Sorting makes sure if one month (or abbr) is a prefix of another
// see sorting in computeMonthsParse
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;d<12;d++){
// test the regex
if(
// make the regex if we don't have it already
e=k([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}
// MOMENTS
function ja(a,b){var c;if(!a.isValid())
// No op
return a;if("string"==typeof b)if(/^\d+$/.test(b))b=u(b);else
// TODO: Another silent failure?
if(b=a.localeData().monthsParse(b),!f(b))return a;return c=Math.min(a.date(),ea(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ka(b){return null!=b?(ja(this,b),a.updateOffset(this,!0),this):P(this,"Month")}function la(){return ea(this.year(),this.month())}function ma(a){return this._monthsParseExact?(i(this,"_monthsRegex")||oa.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ne),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function na(a){return this._monthsParseExact?(i(this,"_monthsRegex")||oa.call(this),a?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=oe),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function oa(){function a(a,b){return b.length-a.length}var b,c,d=[],e=[],f=[];for(b=0;b<12;b++)
// make the regex if we don't have it already
c=k([2e3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(
// Sorting makes sure if one month (or abbr) is a prefix of another it
// will match the longer piece.
d.sort(a),e.sort(a),f.sort(a),b=0;b<12;b++)d[b]=aa(d[b]),e[b]=aa(e[b]);for(b=0;b<24;b++)f[b]=aa(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}
// HELPERS
function pa(a){return qa(a)?366:365}function qa(a){return a%4===0&&a%100!==0||a%400===0}function ra(){return qa(this.year())}function sa(a,b,c,d,e,f,g){
//can't just apply() to create a date:
//http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
var h=new Date(a,b,c,d,e,f,g);
//the date constructor remaps years 0-99 to 1900-1999
return a<100&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function ta(a){var b=new Date(Date.UTC.apply(null,arguments));
//the Date.UTC function remaps years 0-99 to 1900-1999
return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}
// start-of-first-week - start-of-year
function ua(a,b,c){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
d=7+b-c,
// first-week day local weekday -- which local weekday is fwd
e=(7+ta(a,0,d).getUTCDay()-b)%7;return-e+d-1}
//http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
function va(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ua(a,d,e),j=1+7*(b-1)+h+i;return j<=0?(f=a-1,g=pa(f)+j):j>pa(a)?(f=a+1,g=j-pa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function wa(a,b,c){var d,e,f=ua(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return g<1?(e=a.year()-1,d=g+xa(e,b,c)):g>xa(a.year(),b,c)?(d=g-xa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function xa(a,b,c){var d=ua(a,b,c),e=ua(a+1,b,c);return(pa(a)-d+e)/7}
// HELPERS
// LOCALES
function ya(a){return wa(a,this._week.dow,this._week.doy).week}function za(){return this._week.dow}function Aa(){return this._week.doy}
// MOMENTS
function Ba(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ca(a){var b=wa(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}
// HELPERS
function Da(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Ea(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Fa(a,b){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:this._weekdays}function Ga(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Ha(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ia(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)f=k([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=je.call(this._weekdaysParse,g),e!==-1?e:null):"ddd"===b?(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null):"dddd"===b?(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null))):"ddd"===b?(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=je.call(this._minWeekdaysParse,g),e!==-1?e:(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function Ja(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ia.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){
// test the regex
if(
// make the regex if we don't have it already
e=k([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}
// MOMENTS
function Ka(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Da(a,this.localeData()),this.add(a-b,"d")):b}function La(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Ma(a){if(!this.isValid())return null!=a?this:NaN;
// behaves the same as moment#day except
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
// as a setter, sunday should belong to the previous week.
if(null!=a){var b=Ea(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Na(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ue),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Oa(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ve),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pa(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=we),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g=[],h=[],i=[],j=[];for(b=0;b<7;b++)
// make the regex if we don't have it already
c=k([2e3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),j.push(d),j.push(e),j.push(f);for(
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
// will match the longer piece.
g.sort(a),h.sort(a),i.sort(a),j.sort(a),b=0;b<7;b++)h[b]=aa(h[b]),i[b]=aa(i[b]),j[b]=aa(j[b]);this._weekdaysRegex=new RegExp("^("+j.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}
// FORMATTING
function Ra(){return this.hours()%12||12}function Sa(){return this.hours()||24}function Ta(a,b){U(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}
// PARSING
function Ua(a,b){return b._meridiemParse}
// LOCALES
function Va(a){
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
// Using charAt should be more compatible.
return"p"===(a+"").toLowerCase().charAt(0)}function Wa(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Xa(a){return a?a.toLowerCase().replace("_","-"):a}
// pick the locale from the array
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
function Ya(a){for(var b,c,d,e,f=0;f<a.length;){for(e=Xa(a[f]).split("-"),b=e.length,c=Xa(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=Za(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&v(e,c,!0)>=b-1)
//the next array item is better than a shallower substring of this one
break;b--}f++}return null}function Za(a){var b=null;
// TODO: Find a better way to register and load all the locales in Node
if(!Be[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=xe._abbr,require("./locale/"+a),
// because defineLocale currently also sets the global locale, we
// want to undo that for lazy loaded locales
$a(b)}catch(a){}return Be[a]}
// This function will load locale and then set the global locale.  If
// no arguments are passed in, it will simply return the current global
// locale key.
function $a(a,b){var c;
// moment.duration._locale = moment._locale = data;
return a&&(c=p(b)?bb(a):_a(a,b),c&&(xe=c)),xe._abbr}function _a(a,b){if(null!==b){var c=Ae;if(b.abbr=a,null!=Be[a])y("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."),c=Be[a]._config;else if(null!=b.parentLocale){if(null==Be[b.parentLocale])return Ce[b.parentLocale]||(Ce[b.parentLocale]=[]),Ce[b.parentLocale].push({name:a,config:b}),null;c=Be[b.parentLocale]._config}
// backwards compat for now: also set the locale
// make sure we set the locale AFTER all child locales have been
// created, so we won't end up with the child locale set.
return Be[a]=new C(B(c,b)),Ce[a]&&Ce[a].forEach(function(a){_a(a.name,a.config)}),$a(a),Be[a]}
// useful for testing
return delete Be[a],null}function ab(a,b){if(null!=b){var c,d=Ae;
// MERGE
null!=Be[a]&&(d=Be[a]._config),b=B(d,b),c=new C(b),c.parentLocale=Be[a],Be[a]=c,
// backwards compat for now: also set the locale
$a(a)}else
// pass null for config to unupdate, useful for tests
null!=Be[a]&&(null!=Be[a].parentLocale?Be[a]=Be[a].parentLocale:null!=Be[a]&&delete Be[a]);return Be[a]}
// returns locale data
function bb(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return xe;if(!c(a)){if(
//short-circuit everything else
b=Za(a))return b;a=[a]}return Ya(a)}function cb(){return wd(Be)}function db(a){var b,c=a._a;return c&&m(a).overflow===-2&&(b=c[be]<0||c[be]>11?be:c[ce]<1||c[ce]>ea(c[ae],c[be])?ce:c[de]<0||c[de]>24||24===c[de]&&(0!==c[ee]||0!==c[fe]||0!==c[ge])?de:c[ee]<0||c[ee]>59?ee:c[fe]<0||c[fe]>59?fe:c[ge]<0||c[ge]>999?ge:-1,m(a)._overflowDayOfYear&&(b<ae||b>ce)&&(b=ce),m(a)._overflowWeeks&&b===-1&&(b=he),m(a)._overflowWeekday&&b===-1&&(b=ie),m(a).overflow=b),a}
// date from iso format
function eb(a){var b,c,d,e,f,g,h=a._i,i=De.exec(h)||Ee.exec(h);if(i){for(m(a).iso=!0,b=0,c=Ge.length;b<c;b++)if(Ge[b][1].exec(i[1])){e=Ge[b][0],d=Ge[b][2]!==!1;break}if(null==e)return void(a._isValid=!1);if(i[3]){for(b=0,c=He.length;b<c;b++)if(He[b][1].exec(i[3])){
// match[2] should be 'T' or space
f=(i[2]||" ")+He[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!Fe.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),kb(a)}else a._isValid=!1}
// date from iso format or fallback
function fb(b){var c=Ie.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(eb(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}
// Pick the first defined of two or three arguments.
function gb(a,b,c){return null!=a?a:null!=b?b:c}function hb(b){
// hooks is actually the exported moment object
var c=new Date(a.now());return b._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}
// convert an array to a date.
// the array should mirror the parameters below
// note: all values past the year are optional and will default to the lowest possible value.
// [year, month, day , hour, minute, second, millisecond]
function ib(a){var b,c,d,e,f=[];if(!a._d){
// Default to current date.
// * if no year, month, day of month are given, default to today
// * if day of month is given, default month and year
// * if month is given, default only year
// * if year is given, don't default anything
for(d=hb(a),
//compute day of the year from weeks and weekdays
a._w&&null==a._a[ce]&&null==a._a[be]&&jb(a),
//if the day of the year is set, figure out what it is
a._dayOfYear&&(e=gb(a._a[ae],d[ae]),a._dayOfYear>pa(e)&&(m(a)._overflowDayOfYear=!0),c=ta(e,0,a._dayOfYear),a._a[be]=c.getUTCMonth(),a._a[ce]=c.getUTCDate()),b=0;b<3&&null==a._a[b];++b)a._a[b]=f[b]=d[b];
// Zero out whatever was not defaulted, including time
for(;b<7;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];
// Check for 24:00:00.000
24===a._a[de]&&0===a._a[ee]&&0===a._a[fe]&&0===a._a[ge]&&(a._nextDay=!0,a._a[de]=0),a._d=(a._useUTC?ta:sa).apply(null,f),
// Apply timezone offset from input. The actual utcOffset can be changed
// with parseZone.
null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[de]=24)}}function jb(a){var b,c,d,e,f,g,h,i;if(b=a._w,null!=b.GG||null!=b.W||null!=b.E)f=1,g=4,
// TODO: We need to take the current isoWeekYear, but that depends on
// how we interpret now (local, utc, fixed offset). So create
// a now version of current config (take local/utc/offset flags, and
// create now).
c=gb(b.GG,a._a[ae],wa(sb(),1,4).year),d=gb(b.W,1),e=gb(b.E,1),(e<1||e>7)&&(i=!0);else{f=a._locale._week.dow,g=a._locale._week.doy;var j=wa(sb(),f,g);c=gb(b.gg,a._a[ae],j.year),
// Default to current week.
d=gb(b.w,j.week),null!=b.d?(
// weekday -- low day numbers are considered next week
e=b.d,(e<0||e>6)&&(i=!0)):null!=b.e?(
// local weekday -- counting starts from begining of week
e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):
// default to begining of week
e=f}d<1||d>xa(c,f,g)?m(a)._overflowWeeks=!0:null!=i?m(a)._overflowWeekday=!0:(h=va(c,d,e,f,g),a._a[ae]=h.year,a._dayOfYear=h.dayOfYear)}
// date from string and format string
function kb(b){
// TODO: Move this to another part of the creation flow to prevent circular deps
if(b._f===a.ISO_8601)return void eb(b);b._a=[],m(b).empty=!0;
// This array is used to make a Date, either with `new Date` or `Date.UTC`
var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Y(b._f,b._locale).match(Fd)||[],c=0;c<e.length;c++)f=e[c],d=(h.match($(f,b))||[])[0],
// console.log('token', token, 'parsedInput', parsedInput,
//         'regex', getParseRegexForToken(token, config));
d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&m(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),
// don't parse if it's not a known token
Id[f]?(d?m(b).empty=!1:m(b).unusedTokens.push(f),da(f,d,b)):b._strict&&!d&&m(b).unusedTokens.push(f);
// add remaining unparsed input length to the string
m(b).charsLeftOver=i-j,h.length>0&&m(b).unusedInput.push(h),
// clear _12h flag if hour is <= 12
b._a[de]<=12&&m(b).bigHour===!0&&b._a[de]>0&&(m(b).bigHour=void 0),m(b).parsedDateParts=b._a.slice(0),m(b).meridiem=b._meridiem,
// handle meridiem
b._a[de]=lb(b._locale,b._a[de],b._meridiem),ib(b),db(b)}function lb(a,b,c){var d;
// Fallback
return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&b<12&&(b+=12),d||12!==b||(b=0),b):b}
// date from string and array of format strings
function mb(a){var b,c,d,e,f;if(0===a._f.length)return m(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=q({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],kb(b),n(b)&&(
// if there is any input that was not parsed add a penalty for that format
f+=m(b).charsLeftOver,
//or tokens
f+=10*m(b).unusedTokens.length,m(b).score=f,(null==d||f<d)&&(d=f,c=b));j(a,c||b)}function nb(a){if(!a._d){var b=L(a._i);a._a=h([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),ib(a)}}function ob(a){var b=new r(db(pb(a)));
// Adding is smart enough around DST
return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function pb(a){var b=a._i,d=a._f;return a._locale=a._locale||bb(a._l),null===b||void 0===d&&""===b?o({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),s(b)?new r(db(b)):(g(b)?a._d=b:c(d)?mb(a):d?kb(a):qb(a),n(a)||(a._d=null),a))}function qb(b){var d=b._i;void 0===d?b._d=new Date(a.now()):g(d)?b._d=new Date(d.valueOf()):"string"==typeof d?fb(b):c(d)?(b._a=h(d.slice(0),function(a){return parseInt(a,10)}),ib(b)):"object"==typeof d?nb(b):f(d)?
// from milliseconds
b._d=new Date(d):a.createFromInputFallback(b)}function rb(a,b,f,g,h){var i={};
// object construction must be done this way.
// https://github.com/moment/moment/issues/1423
return f!==!0&&f!==!1||(g=f,f=void 0),(d(a)&&e(a)||c(a)&&0===a.length)&&(a=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=f,i._i=a,i._f=b,i._strict=g,ob(i)}function sb(a,b,c,d){return rb(a,b,c,d,!1)}
// Pick a moment m from moments so that m[fn](other) is true for all
// other. This relies on the function fn to be transitive.
//
// moments should either be an array of moment objects or an array, whose
// first element is an array of moment objects.
function tb(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return sb();for(d=b[0],e=1;e<b.length;++e)b[e].isValid()&&!b[e][a](d)||(d=b[e]);return d}
// TODO: Use [].sort instead?
function ub(){var a=[].slice.call(arguments,0);return tb("isBefore",a)}function vb(){var a=[].slice.call(arguments,0);return tb("isAfter",a)}function wb(a){var b=L(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;
// representation for dateAddRemove
this._milliseconds=+k+1e3*j+// 1000
6e4*i+// 1000 * 60
1e3*h*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
// Because of dateAddRemove treats 24 hours as different from a
// day when working around DST, we need to store them separately
this._days=+g+7*f,
// It is impossible translate months into days without knowing
// which months you are are talking about, so we have to store
// it separately.
this._months=+e+3*d+12*c,this._data={},this._locale=bb(),this._bubble()}function xb(a){return a instanceof wb}function yb(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}
// FORMATTING
function zb(a,b){U(a,0,0,function(){var a=this.utcOffset(),c="+";return a<0&&(a=-a,c="-"),c+T(~~(a/60),2)+b+T(~~a%60,2)})}function Ab(a,b){var c=(b||"").match(a);if(null===c)return null;var d=c[c.length-1]||[],e=(d+"").match(Me)||["-",0,0],f=+(60*e[1])+u(e[2]);return 0===f?0:"+"===e[0]?f:-f}
// Return a moment from input, that is local/utc/zone equivalent to model.
function Bb(b,c){var d,e;
// Use low-level api, because this fn is low-level api.
return c._isUTC?(d=c.clone(),e=(s(b)||g(b)?b.valueOf():sb(b).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),a.updateOffset(d,!1),d):sb(b).local()}function Cb(a){
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
// https://github.com/moment/moment/pull/1871
return 15*-Math.round(a._d.getTimezoneOffset()/15)}
// MOMENTS
// keepLocalTime = true means only change the timezone, without
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
// +0200, so we adjust the time as needed, to be valid.
//
// Keeping the time actually adds/subtracts (one hour)
// from the actual represented time. That is why we call updateOffset
// a second time. In case it wants us to change the offset again
// _changeInProgress == true case, then we have to adjust, because
// there is no such time in the given timezone.
function Db(b,c){var d,e=this._offset||0;if(!this.isValid())return null!=b?this:NaN;if(null!=b){if("string"==typeof b){if(b=Ab(Xd,b),null===b)return this}else Math.abs(b)<16&&(b=60*b);return!this._isUTC&&c&&(d=Cb(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Tb(this,Ob(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?e:Cb(this)}function Eb(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Fb(a){return this.utcOffset(0,a)}function Gb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Cb(this),"m")),this}function Hb(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var a=Ab(Wd,this._i);null!=a?this.utcOffset(a):this.utcOffset(0,!0)}return this}function Ib(a){return!!this.isValid()&&(a=a?sb(a).utcOffset():0,(this.utcOffset()-a)%60===0)}function Jb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kb(){if(!p(this._isDSTShifted))return this._isDSTShifted;var a={};if(q(a,this),a=pb(a),a._a){var b=a._isUTC?k(a._a):sb(a._a);this._isDSTShifted=this.isValid()&&v(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lb(){return!!this.isValid()&&!this._isUTC}function Mb(){return!!this.isValid()&&this._isUTC}function Nb(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ob(a,b){var c,d,e,g=a,
// matching against regexp is expensive, do it on demand
h=null;// checks for null or undefined
return xb(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:f(a)?(g={},b?g[b]=a:g.milliseconds=a):(h=Ne.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:u(h[ce])*c,h:u(h[de])*c,m:u(h[ee])*c,s:u(h[fe])*c,ms:u(yb(1e3*h[ge]))*c}):(h=Oe.exec(a))?(c="-"===h[1]?-1:1,g={y:Pb(h[2],c),M:Pb(h[3],c),w:Pb(h[4],c),d:Pb(h[5],c),h:Pb(h[6],c),m:Pb(h[7],c),s:Pb(h[8],c)}):null==g?g={}:"object"==typeof g&&("from"in g||"to"in g)&&(e=Rb(sb(g.from),sb(g.to)),g={},g.ms=e.milliseconds,g.M=e.months),d=new wb(g),xb(a)&&i(a,"_locale")&&(d._locale=a._locale),d}function Pb(a,b){
// We'd normally use ~~inp for this, but unfortunately it also
// converts floats to ints.
// inp may be undefined, so careful calling replace on it.
var c=a&&parseFloat(a.replace(",","."));
// apply sign while we're at it
return(isNaN(c)?0:c)*b}function Qb(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Rb(a,b){var c;return a.isValid()&&b.isValid()?(b=Bb(b,a),a.isBefore(b)?c=Qb(a,b):(c=Qb(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}
// TODO: remove 'name' arg after deprecation is removed
function Sb(a,b){return function(c,d){var e,f;
//invert the arguments, but complain about it
return null===d||isNaN(+d)||(y(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Ob(c,d),Tb(this,e,a),this}}function Tb(b,c,d,e){var f=c._milliseconds,g=yb(c._days),h=yb(c._months);b.isValid()&&(e=null==e||e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&Q(b,"Date",P(b,"Date")+g*d),h&&ja(b,P(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Ub(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Vb(b,c){
// We want to compare the start of today, vs this.
// Getting start-of-today depends on whether we're local/utc/offset or not.
var d=b||sb(),e=Bb(d,this).startOf("day"),f=a.calendarFormat(this,e)||"sameElse",g=c&&(z(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,sb(d)))}function Wb(){return new r(this)}function Xb(a,b){var c=s(a)?a:sb(a);return!(!this.isValid()||!c.isValid())&&(b=K(p(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf())}function Yb(a,b){var c=s(a)?a:sb(a);return!(!this.isValid()||!c.isValid())&&(b=K(p(b)?"millisecond":b),"millisecond"===b?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()<c.valueOf())}function Zb(a,b,c,d){return d=d||"()",("("===d[0]?this.isAfter(a,c):!this.isBefore(a,c))&&(")"===d[1]?this.isBefore(b,c):!this.isAfter(b,c))}function $b(a,b){var c,d=s(a)?a:sb(a);return!(!this.isValid()||!d.isValid())&&(b=K(b||"millisecond"),"millisecond"===b?this.valueOf()===d.valueOf():(c=d.valueOf(),this.clone().startOf(b).valueOf()<=c&&c<=this.clone().endOf(b).valueOf()))}function _b(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function ac(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function bc(a,b,c){var d,e,f,g;// 1000
// 1000 * 60
// 1000 * 60 * 60
// 1000 * 60 * 60 * 24, negate dst
// 1000 * 60 * 60 * 24 * 7, negate dst
return this.isValid()?(d=Bb(a,this),d.isValid()?(e=6e4*(d.utcOffset()-this.utcOffset()),b=K(b),"year"===b||"month"===b||"quarter"===b?(g=cc(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1e3:"minute"===b?f/6e4:"hour"===b?f/36e5:"day"===b?(f-e)/864e5:"week"===b?(f-e)/6048e5:f),c?g:t(g)):NaN):NaN}function cc(a,b){
// difference in months
var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),
// b is in (anchor - 1 month, anchor + 1 month)
f=a.clone().add(e,"months");
//check for negative zero, return zero if negative zero
// linear across the month
// linear across the month
return b-f<0?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)||0}function dc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ec(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?z(Date.prototype.toISOString)?this.toDate().toISOString():X(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):X(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}/**
 * Return a human readable representation of a moment that can
 * also be evaluated to get a new moment which is the same
 *
 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
 */
function fc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",b="";this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",b="Z");var c="["+a+'("]',d=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",f=b+'[")]';return this.format(c+d+e+f)}function gc(b){b||(b=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var c=X(this,b);return this.localeData().postformat(c)}function hc(a,b){return this.isValid()&&(s(a)&&a.isValid()||sb(a).isValid())?Ob({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ic(a){return this.from(sb(),a)}function jc(a,b){return this.isValid()&&(s(a)&&a.isValid()||sb(a).isValid())?Ob({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function kc(a){return this.to(sb(),a)}
// If passed a locale key, it will set the locale for this
// instance.  Otherwise, it will return the locale configuration
// variables for this instance.
function lc(a){var b;return void 0===a?this._locale._abbr:(b=bb(a),null!=b&&(this._locale=b),this)}function mc(){return this._locale}function nc(a){
// the following switch intentionally omits break keywords
// to utilize falling through the cases.
switch(a=K(a)){case"year":this.month(0);/* falls through */
case"quarter":case"month":this.date(1);/* falls through */
case"week":case"isoWeek":case"day":case"date":this.hours(0);/* falls through */
case"hour":this.minutes(0);/* falls through */
case"minute":this.seconds(0);/* falls through */
case"second":this.milliseconds(0)}
// weeks are a special case
// quarters are also special
return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function oc(a){
// 'date' is an alias for 'day', so it should be considered as such.
return a=K(a),void 0===a||"millisecond"===a?this:("date"===a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))}function pc(){return this._d.valueOf()-6e4*(this._offset||0)}function qc(){return Math.floor(this.valueOf()/1e3)}function rc(){return new Date(this.valueOf())}function sc(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function tc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function uc(){
// new Date(NaN).toJSON() === null
return this.isValid()?this.toISOString():null}function vc(){return n(this)}function wc(){return j({},m(this))}function xc(){return m(this).overflow}function yc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zc(a,b){U(0,[a,a.length],0,b)}
// MOMENTS
function Ac(a){return Ec.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Bc(a){return Ec.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Cc(){return xa(this.year(),1,4)}function Dc(){var a=this.localeData()._week;return xa(this.year(),a.dow,a.doy)}function Ec(a,b,c,d,e){var f;return null==a?wa(this,d,e).year:(f=xa(a,d,e),b>f&&(b=f),Fc.call(this,a,b,c,d,e))}function Fc(a,b,c,d,e){var f=va(a,b,c,d,e),g=ta(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}
// MOMENTS
function Gc(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}
// HELPERS
// MOMENTS
function Hc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function Ic(a,b){b[ge]=u(1e3*("0."+a))}
// MOMENTS
function Jc(){return this._isUTC?"UTC":""}function Kc(){return this._isUTC?"Coordinated Universal Time":""}function Lc(a){return sb(1e3*a)}function Mc(){return sb.apply(null,arguments).parseZone()}function Nc(a){return a}function Oc(a,b,c,d){var e=bb(),f=k().set(d,b);return e[c](f,a)}function Pc(a,b,c){if(f(a)&&(b=a,a=void 0),a=a||"",null!=b)return Oc(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=Oc(a,d,c,"month");return e}
// ()
// (5)
// (fmt, 5)
// (fmt)
// (true)
// (true, 5)
// (true, fmt, 5)
// (true, fmt)
function Qc(a,b,c,d){"boolean"==typeof a?(f(b)&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,f(b)&&(c=b,b=void 0),b=b||"");var e=bb(),g=a?e._week.dow:0;if(null!=c)return Oc(b,(c+g)%7,d,"day");var h,i=[];for(h=0;h<7;h++)i[h]=Oc(b,(h+g)%7,d,"day");return i}function Rc(a,b){return Pc(a,b,"months")}function Sc(a,b){return Pc(a,b,"monthsShort")}function Tc(a,b,c){return Qc(a,b,c,"weekdays")}function Uc(a,b,c){return Qc(a,b,c,"weekdaysShort")}function Vc(a,b,c){return Qc(a,b,c,"weekdaysMin")}function Wc(){var a=this._data;return this._milliseconds=Ze(this._milliseconds),this._days=Ze(this._days),this._months=Ze(this._months),a.milliseconds=Ze(a.milliseconds),a.seconds=Ze(a.seconds),a.minutes=Ze(a.minutes),a.hours=Ze(a.hours),a.months=Ze(a.months),a.years=Ze(a.years),this}function Xc(a,b,c,d){var e=Ob(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}
// supports only 2.0-style add(1, 's') or add(duration)
function Yc(a,b){return Xc(this,a,b,1)}
// supports only 2.0-style subtract(1, 's') or subtract(duration)
function Zc(a,b){return Xc(this,a,b,-1)}function $c(a){return a<0?Math.floor(a):Math.ceil(a)}function _c(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;
// if we have a mix of positive and negative values, bubble down first
// check: https://github.com/moment/moment/issues/2166
// The following code bubbles up values, see the tests for
// examples of what that means.
// convert days to months
// 12 months -> 1 year
return f>=0&&g>=0&&h>=0||f<=0&&g<=0&&h<=0||(f+=864e5*$c(bd(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=t(f/1e3),i.seconds=a%60,b=t(a/60),i.minutes=b%60,c=t(b/60),i.hours=c%24,g+=t(c/24),e=t(ad(g)),h+=e,g-=$c(bd(e)),d=t(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function ad(a){
// 400 years have 146097 days (taking into account leap year rules)
// 400 years have 12 months === 4800
return 4800*a/146097}function bd(a){
// the reverse of daysToMonths
return 146097*a/4800}function cd(a){var b,c,d=this._milliseconds;if(a=K(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+ad(b),"month"===a?c:c/12;switch(
// handle milliseconds separately because of floating point math errors (issue #1867)
b=this._days+Math.round(bd(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;
// Math.floor prevents floating point math errors here
case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}
// TODO: Use this.as('ms')?
function dd(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*u(this._months/12)}function ed(a){return function(){return this.as(a)}}function fd(a){return a=K(a),this[a+"s"]()}function gd(a){return function(){return this._data[a]}}function hd(){return t(this.days()/7)}
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
function id(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function jd(a,b,c){var d=Ob(a).abs(),e=of(d.as("s")),f=of(d.as("m")),g=of(d.as("h")),h=of(d.as("d")),i=of(d.as("M")),j=of(d.as("y")),k=e<pf.s&&["s",e]||f<=1&&["m"]||f<pf.m&&["mm",f]||g<=1&&["h"]||g<pf.h&&["hh",g]||h<=1&&["d"]||h<pf.d&&["dd",h]||i<=1&&["M"]||i<pf.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,id.apply(null,k)}
// This function allows you to set the rounding function for relative time strings
function kd(a){return void 0===a?of:"function"==typeof a&&(of=a,!0)}
// This function allows you to set a threshold for relative time strings
function ld(a,b){return void 0!==pf[a]&&(void 0===b?pf[a]:(pf[a]=b,!0))}function md(a){var b=this.localeData(),c=jd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function nd(){
// for ISO strings we do not use the normal bubbling rules:
//  * milliseconds bubble up until they become hours
//  * days do not bubble at all
//  * months bubble up until they become years
// This is because there is no context-free conversion between hours and days
// (think of clock changes)
// and also not between days and months (28-31 days per month)
var a,b,c,d=qf(this._milliseconds)/1e3,e=qf(this._days),f=qf(this._months);
// 3600 seconds -> 60 minutes -> 1 hour
a=t(d/60),b=t(a/60),d%=60,a%=60,
// 12 months -> 1 year
c=t(f/12),f%=12;
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var od,pd;pd=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var qd=pd,rd=a.momentProperties=[],sd=!1,td={};a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;var ud;ud=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)i(a,b)&&c.push(b);return c};var vd,wd=ud,xd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},yd={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"},zd="Invalid date",Ad="%d",Bd=/\d{1,2}/,Cd={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"},Dd={},Ed={},Fd=/(\[[^\[]*\])|(\\)?([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,Gd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hd={},Id={},Jd=/\d/,Kd=/\d\d/,Ld=/\d{3}/,Md=/\d{4}/,Nd=/[+-]?\d{6}/,Od=/\d\d?/,Pd=/\d\d\d\d?/,Qd=/\d\d\d\d\d\d?/,Rd=/\d{1,3}/,Sd=/\d{1,4}/,Td=/[+-]?\d{1,6}/,Ud=/\d+/,Vd=/[+-]?\d+/,Wd=/Z|[+-]\d\d:?\d\d/gi,Xd=/Z|[+-]\d\d(?::?\d\d)?/gi,Yd=/[+-]?\d+(\.\d{1,3})?/,Zd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,$d={},_d={},ae=0,be=1,ce=2,de=3,ee=4,fe=5,ge=6,he=7,ie=8;vd=Array.prototype.indexOf?Array.prototype.indexOf:function(a){
// I know
var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1};var je=vd;
// FORMATTING
U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),U("MMMM",0,0,function(a){return this.localeData().months(this,a)}),
// ALIASES
J("month","M"),
// PRIORITY
M("month",8),
// PARSING
Z("M",Od),Z("MM",Od,Kd),Z("MMM",function(a,b){return b.monthsShortRegex(a)}),Z("MMMM",function(a,b){return b.monthsRegex(a)}),ba(["M","MM"],function(a,b){b[be]=u(a)-1}),ba(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);
// if we didn't find a month name, mark the date as invalid.
null!=e?b[be]=e:m(c).invalidMonth=a});
// LOCALES
var ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=Zd,oe=Zd;
// FORMATTING
U("Y",0,0,function(){var a=this.year();return a<=9999?""+a:"+"+a}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),
// ALIASES
J("year","y"),
// PRIORITIES
M("year",1),
// PARSING
Z("Y",Vd),Z("YY",Od,Kd),Z("YYYY",Sd,Md),Z("YYYYY",Td,Nd),Z("YYYYYY",Td,Nd),ba(["YYYYY","YYYYYY"],ae),ba("YYYY",function(b,c){c[ae]=2===b.length?a.parseTwoDigitYear(b):u(b)}),ba("YY",function(b,c){c[ae]=a.parseTwoDigitYear(b)}),ba("Y",function(a,b){b[ae]=parseInt(a,10)}),
// HOOKS
a.parseTwoDigitYear=function(a){return u(a)+(u(a)>68?1900:2e3)};
// MOMENTS
var pe=O("FullYear",!0);
// FORMATTING
U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),
// ALIASES
J("week","w"),J("isoWeek","W"),
// PRIORITIES
M("week",5),M("isoWeek",5),
// PARSING
Z("w",Od),Z("ww",Od,Kd),Z("W",Od),Z("WW",Od,Kd),ca(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=u(a)});var qe={dow:0,// Sunday is the first day of the week.
doy:6};
// FORMATTING
U("d",0,"do","day"),U("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),U("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),U("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),
// ALIASES
J("day","d"),J("weekday","e"),J("isoWeekday","E"),
// PRIORITY
M("day",11),M("weekday",11),M("isoWeekday",11),
// PARSING
Z("d",Od),Z("e",Od),Z("E",Od),Z("dd",function(a,b){return b.weekdaysMinRegex(a)}),Z("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Z("dddd",function(a,b){return b.weekdaysRegex(a)}),ca(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);
// if we didn't get a weekday name, mark the date as invalid
null!=e?b.d=e:m(c).invalidWeekday=a}),ca(["d","e","E"],function(a,b,c,d){b[d]=u(a)});
// LOCALES
var re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),se="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),te="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ue=Zd,ve=Zd,we=Zd;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ra),U("k",["kk",2],0,Sa),U("hmm",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ta("a",!0),Ta("A",!1),
// ALIASES
J("hour","h"),
// PRIORITY
M("hour",13),Z("a",Ua),Z("A",Ua),Z("H",Od),Z("h",Od),Z("HH",Od,Kd),Z("hh",Od,Kd),Z("hmm",Pd),Z("hmmss",Qd),Z("Hmm",Pd),Z("Hmmss",Qd),ba(["H","HH"],de),ba(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),ba(["h","hh"],function(a,b,c){b[de]=u(a),m(c).bigHour=!0}),ba("hmm",function(a,b,c){var d=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d)),m(c).bigHour=!0}),ba("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d,2)),b[fe]=u(a.substr(e)),m(c).bigHour=!0}),ba("Hmm",function(a,b,c){var d=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d))}),ba("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d,2)),b[fe]=u(a.substr(e))});var xe,ye=/[ap]\.?m?\.?/i,ze=O("Hours",!0),Ae={calendar:xd,longDateFormat:yd,invalidDate:zd,ordinal:Ad,ordinalParse:Bd,relativeTime:Cd,months:le,monthsShort:me,week:qe,weekdays:re,weekdaysMin:te,weekdaysShort:se,meridiemParse:ye},Be={},Ce={},De=/^\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)?)?$/,Ee=/^\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)?)?$/,Fe=/Z|[+-]\d\d(?::?\d\d)?/,Ge=[["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}/],
// YYYYMM is NOT allowed by the standard
["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],He=[["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/]],Ie=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=x("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non 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(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),
// constant that refers to the ISO standard
a.ISO_8601=function(){};var Je=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=sb.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:o()}),Ke=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=sb.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:o()}),Le=function(){return Date.now?Date.now():+new Date};zb("Z",":"),zb("ZZ",""),
// PARSING
Z("Z",Xd),Z("ZZ",Xd),ba(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Ab(Xd,a)});
// HELPERS
// timezone chunker
// '+10:00' > ['10',  '00']
// '-1530'  > ['-15', '30']
var Me=/([\+\-]|\d\d)/gi;
// HOOKS
// This function will be called whenever a moment is mutated.
// It is intended to keep the offset in sync with the timezone.
a.updateOffset=function(){};
// ASP.NET json date format regex
var Ne=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Oe=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ob.fn=wb.prototype;var Pe=Sb(1,"add"),Qe=Sb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Re=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});
// FORMATTING
U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zc("gggg","weekYear"),zc("ggggg","weekYear"),zc("GGGG","isoWeekYear"),zc("GGGGG","isoWeekYear"),
// ALIASES
J("weekYear","gg"),J("isoWeekYear","GG"),
// PRIORITY
M("weekYear",1),M("isoWeekYear",1),
// PARSING
Z("G",Vd),Z("g",Vd),Z("GG",Od,Kd),Z("gg",Od,Kd),Z("GGGG",Sd,Md),Z("gggg",Sd,Md),Z("GGGGG",Td,Nd),Z("ggggg",Td,Nd),ca(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=u(a)}),ca(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),
// FORMATTING
U("Q",0,"Qo","quarter"),
// ALIASES
J("quarter","Q"),
// PRIORITY
M("quarter",7),
// PARSING
Z("Q",Jd),ba("Q",function(a,b){b[be]=3*(u(a)-1)}),
// FORMATTING
U("D",["DD",2],"Do","date"),
// ALIASES
J("date","D"),
// PRIOROITY
M("date",9),
// PARSING
Z("D",Od),Z("DD",Od,Kd),Z("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),ba(["D","DD"],ce),ba("Do",function(a,b){b[ce]=u(a.match(Od)[0],10)});
// MOMENTS
var Se=O("Date",!0);
// FORMATTING
U("DDD",["DDDD",3],"DDDo","dayOfYear"),
// ALIASES
J("dayOfYear","DDD"),
// PRIORITY
M("dayOfYear",4),
// PARSING
Z("DDD",Rd),Z("DDDD",Ld),ba(["DDD","DDDD"],function(a,b,c){c._dayOfYear=u(a)}),
// FORMATTING
U("m",["mm",2],0,"minute"),
// ALIASES
J("minute","m"),
// PRIORITY
M("minute",14),
// PARSING
Z("m",Od),Z("mm",Od,Kd),ba(["m","mm"],ee);
// MOMENTS
var Te=O("Minutes",!1);
// FORMATTING
U("s",["ss",2],0,"second"),
// ALIASES
J("second","s"),
// PRIORITY
M("second",15),
// PARSING
Z("s",Od),Z("ss",Od,Kd),ba(["s","ss"],fe);
// MOMENTS
var Ue=O("Seconds",!1);
// FORMATTING
U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),
// ALIASES
J("millisecond","ms"),
// PRIORITY
M("millisecond",16),
// PARSING
Z("S",Rd,Jd),Z("SS",Rd,Kd),Z("SSS",Rd,Ld);var Ve;for(Ve="SSSS";Ve.length<=9;Ve+="S")Z(Ve,Ud);for(Ve="S";Ve.length<=9;Ve+="S")ba(Ve,Ic);
// MOMENTS
var We=O("Milliseconds",!1);
// FORMATTING
U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Xe=r.prototype;Xe.add=Pe,Xe.calendar=Vb,Xe.clone=Wb,Xe.diff=bc,Xe.endOf=oc,Xe.format=gc,Xe.from=hc,Xe.fromNow=ic,Xe.to=jc,Xe.toNow=kc,Xe.get=R,Xe.invalidAt=xc,Xe.isAfter=Xb,Xe.isBefore=Yb,Xe.isBetween=Zb,Xe.isSame=$b,Xe.isSameOrAfter=_b,Xe.isSameOrBefore=ac,Xe.isValid=vc,Xe.lang=Re,Xe.locale=lc,Xe.localeData=mc,Xe.max=Ke,Xe.min=Je,Xe.parsingFlags=wc,Xe.set=S,Xe.startOf=nc,Xe.subtract=Qe,Xe.toArray=sc,Xe.toObject=tc,Xe.toDate=rc,Xe.toISOString=ec,Xe.inspect=fc,Xe.toJSON=uc,Xe.toString=dc,Xe.unix=qc,Xe.valueOf=pc,Xe.creationData=yc,
// Year
Xe.year=pe,Xe.isLeapYear=ra,
// Week Year
Xe.weekYear=Ac,Xe.isoWeekYear=Bc,
// Quarter
Xe.quarter=Xe.quarters=Gc,
// Month
Xe.month=ka,Xe.daysInMonth=la,
// Week
Xe.week=Xe.weeks=Ba,Xe.isoWeek=Xe.isoWeeks=Ca,Xe.weeksInYear=Dc,Xe.isoWeeksInYear=Cc,
// Day
Xe.date=Se,Xe.day=Xe.days=Ka,Xe.weekday=La,Xe.isoWeekday=Ma,Xe.dayOfYear=Hc,
// Hour
Xe.hour=Xe.hours=ze,
// Minute
Xe.minute=Xe.minutes=Te,
// Second
Xe.second=Xe.seconds=Ue,
// Millisecond
Xe.millisecond=Xe.milliseconds=We,
// Offset
Xe.utcOffset=Db,Xe.utc=Fb,Xe.local=Gb,Xe.parseZone=Hb,Xe.hasAlignedHourOffset=Ib,Xe.isDST=Jb,Xe.isLocal=Lb,Xe.isUtcOffset=Mb,Xe.isUtc=Nb,Xe.isUTC=Nb,
// Timezone
Xe.zoneAbbr=Jc,Xe.zoneName=Kc,
// Deprecations
Xe.dates=x("dates accessor is deprecated. Use date instead.",Se),Xe.months=x("months accessor is deprecated. Use month instead",ka),Xe.years=x("years accessor is deprecated. Use year instead",pe),Xe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Eb),Xe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kb);var Ye=C.prototype;Ye.calendar=D,Ye.longDateFormat=E,Ye.invalidDate=F,Ye.ordinal=G,Ye.preparse=Nc,Ye.postformat=Nc,Ye.relativeTime=H,Ye.pastFuture=I,Ye.set=A,
// Month
Ye.months=fa,Ye.monthsShort=ga,Ye.monthsParse=ia,Ye.monthsRegex=na,Ye.monthsShortRegex=ma,
// Week
Ye.week=ya,Ye.firstDayOfYear=Aa,Ye.firstDayOfWeek=za,
// Day of Week
Ye.weekdays=Fa,Ye.weekdaysMin=Ha,Ye.weekdaysShort=Ga,Ye.weekdaysParse=Ja,Ye.weekdaysRegex=Na,Ye.weekdaysShortRegex=Oa,Ye.weekdaysMinRegex=Pa,
// Hours
Ye.isPM=Va,Ye.meridiem=Wa,$a("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===u(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),
// Side effect imports
a.lang=x("moment.lang is deprecated. Use moment.locale instead.",$a),a.langData=x("moment.langData is deprecated. Use moment.localeData instead.",bb);var Ze=Math.abs,$e=ed("ms"),_e=ed("s"),af=ed("m"),bf=ed("h"),cf=ed("d"),df=ed("w"),ef=ed("M"),ff=ed("y"),gf=gd("milliseconds"),hf=gd("seconds"),jf=gd("minutes"),kf=gd("hours"),lf=gd("days"),mf=gd("months"),nf=gd("years"),of=Math.round,pf={s:45,// seconds to minute
m:45,// minutes to hour
h:22,// hours to day
d:26,// days to month
M:11},qf=Math.abs,rf=wb.prototype;
// Deprecations
// Side effect imports
// FORMATTING
// PARSING
// Side effect imports
return rf.abs=Wc,rf.add=Yc,rf.subtract=Zc,rf.as=cd,rf.asMilliseconds=$e,rf.asSeconds=_e,rf.asMinutes=af,rf.asHours=bf,rf.asDays=cf,rf.asWeeks=df,rf.asMonths=ef,rf.asYears=ff,rf.valueOf=dd,rf._bubble=_c,rf.get=fd,rf.milliseconds=gf,rf.seconds=hf,rf.minutes=jf,rf.hours=kf,rf.days=lf,rf.weeks=hd,rf.months=mf,rf.years=nf,rf.humanize=md,rf.toISOString=nd,rf.toString=nd,rf.toJSON=nd,rf.locale=lc,rf.localeData=mc,rf.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nd),rf.lang=Re,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Z("x",Vd),Z("X",Yd),ba("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),ba("x",function(a,b,c){c._d=new Date(u(a))}),a.version="2.17.1",b(sb),a.fn=Xe,a.min=ub,a.max=vb,a.now=Le,a.utc=k,a.unix=Lc,a.months=Rc,a.isDate=g,a.locale=$a,a.invalid=o,a.duration=Ob,a.isMoment=s,a.weekdays=Tc,a.parseZone=Mc,a.localeData=bb,a.isDuration=xb,a.monthsShort=Sc,a.weekdaysMin=Vc,a.defineLocale=_a,a.updateLocale=ab,a.locales=cb,a.weekdaysShort=Uc,a.normalizeUnits=K,a.relativeTimeRounding=kd,a.relativeTimeThreshold=ld,a.calendarFormat=Ub,a.prototype=Xe,a});/*!
 * FullCalendar v3.5.0
 * Docs & License: https://fullcalendar.io/
 * (c) 2017 Adam Shaw
 */
!function (t) { "function" == typeof define && define.amd ? define(["jquery", "moment"], t) : "object" == typeof exports ? module.exports = t(require("jquery"), require("moment")) : t(jQuery, moment) }(function (t, e) {
    function n(t) { return j(t, Gt) } function i(t, e) { e.left && t.css({ "border-left-width": 1, "margin-left": e.left - 1 }), e.right && t.css({ "border-right-width": 1, "margin-right": e.right - 1 }) } function s(t) { t.css({ "margin-left": "", "margin-right": "", "border-left-width": "", "border-right-width": "" }) } function r() { t("body").addClass("fc-not-allowed") } function o() { t("body").removeClass("fc-not-allowed") } function a(e, n, i) { var s = Math.floor(n / e.length), r = Math.floor(n - s * (e.length - 1)), o = [], a = [], u = [], c = 0; l(e), e.each(function (n, i) { var l = n === e.length - 1 ? r : s, h = t(i).outerHeight(!0); h < l ? (o.push(i), a.push(h), u.push(t(i).height())) : c += h }), i && (n -= c, s = Math.floor(n / o.length), r = Math.floor(n - s * (o.length - 1))), t(o).each(function (e, n) { var i = e === o.length - 1 ? r : s, l = a[e], c = u[e], h = i - (l - c); l < i && t(n).height(h) }) } function l(t) { t.height("") } function u(e) { var n = 0; return e.find("> *").each(function (e, i) { var s = t(i).outerWidth(); s > n && (n = s) }), n++, e.width(n), n } function c(t, e) { var n, i = t.add(e); return i.css({ position: "relative", left: -1 }), n = t.outerHeight() - e.outerHeight(), i.css({ position: "", left: "" }), n } function h(e) { var n = e.css("position"), i = e.parents().filter(function () { var e = t(this); return /(auto|scroll)/.test(e.css("overflow") + e.css("overflow-y") + e.css("overflow-x")) }).eq(0); return "fixed" !== n && i.length ? i : t(e[0].ownerDocument || document) } function d(t, e) { var n = t.offset(), i = n.left - (e ? e.left : 0), s = n.top - (e ? e.top : 0); return { left: i, right: i + t.outerWidth(), top: s, bottom: s + t.outerHeight() } } function f(t, e) { var n = t.offset(), i = p(t), s = n.left + w(t, "border-left-width") + i.left - (e ? e.left : 0), r = n.top + w(t, "border-top-width") + i.top - (e ? e.top : 0); return { left: s, right: s + t[0].clientWidth, top: r, bottom: r + t[0].clientHeight } } function g(t, e) { var n = t.offset(), i = n.left + w(t, "border-left-width") + w(t, "padding-left") - (e ? e.left : 0), s = n.top + w(t, "border-top-width") + w(t, "padding-top") - (e ? e.top : 0); return { left: i, right: i + t.width(), top: s, bottom: s + t.height() } } function p(t) { var e, n = t[0].offsetWidth - t[0].clientWidth, i = t[0].offsetHeight - t[0].clientHeight; return n = v(n), i = v(i), e = { left: 0, right: 0, top: 0, bottom: i }, m() && "rtl" == t.css("direction") ? e.left = n : e.right = n, e } function v(t) { return t = Math.max(0, t), t = Math.round(t) } function m() { return null === Wt && (Wt = y()), Wt } function y() { var e = t("<div><div/></div>").css({ position: "absolute", top: -1e3, left: 0, border: 0, padding: 0, overflow: "scroll", direction: "rtl" }).appendTo("body"), n = e.children(), i = n.offset().left > e.offset().left; return e.remove(), i } function w(t, e) { return parseFloat(t.css(e)) || 0 } function D(t) { return 1 == t.which && !t.ctrlKey } function b(t) { var e = t.originalEvent.touches; return e && e.length ? e[0].pageX : t.pageX } function S(t) { var e = t.originalEvent.touches; return e && e.length ? e[0].pageY : t.pageY } function E(t) { return /^touch/.test(t.type) } function C(t) { t.addClass("fc-unselectable").on("selectstart", R) } function T(t) { t.removeClass("fc-unselectable").off("selectstart", R) } function R(t) { t.preventDefault() } function I(t, e) { var n = { left: Math.max(t.left, e.left), right: Math.min(t.right, e.right), top: Math.max(t.top, e.top), bottom: Math.min(t.bottom, e.bottom) }; return n.left < n.right && n.top < n.bottom && n } function H(t, e) { return { left: Math.min(Math.max(t.left, e.left), e.right), top: Math.min(Math.max(t.top, e.top), e.bottom) } } function M(t) { return { left: (t.left + t.right) / 2, top: (t.top + t.bottom) / 2 } } function x(t, e) { return { left: t.left - e.left, top: t.top - e.top } } function z(e) { var n, i, s = [], r = []; for ("string" == typeof e ? r = e.split(/\s*,\s*/) : "function" == typeof e ? r = [e] : t.isArray(e) && (r = e), n = 0; n < r.length; n++) i = r[n], "string" == typeof i ? s.push("-" == i.charAt(0) ? { field: i.substring(1), order: -1 } : { field: i, order: 1 }) : "function" == typeof i && s.push({ func: i }); return s } function F(t, e, n) { var i, s; for (i = 0; i < n.length; i++) if (s = P(t, e, n[i])) return s; return 0 } function P(t, e, n) { return n.func ? n.func(t, e) : B(t[n.field], e[n.field]) * (n.order || 1) } function B(e, n) { return e || n ? null == n ? -1 : null == e ? 1 : "string" === t.type(e) || "string" === t.type(n) ? String(e).localeCompare(String(n)) : e - n : 0 } function k(t, n) { return e.duration({ days: t.clone().stripTime().diff(n.clone().stripTime(), "days"), ms: t.time() - n.time() }) } function A(t, n) { return e.duration({ days: t.clone().stripTime().diff(n.clone().stripTime(), "days") }) } function L(t, n, i) { return e.duration(Math.round(t.diff(n, i, !0)), i) } function O(t, e) { var n, i, s; for (n = 0; n < qt.length && (i = qt[n], !((s = V(i, t, e)) >= 1 && ot(s))) ; n++); return i } function N(t, e) { var n = O(t); return "week" === n && "object" == typeof e && e.days && (n = "day"), n } function V(t, n, i) { return null != i ? i.diff(n, t, !0) : e.isDuration(n) ? n.as(t) : n.end.diff(n.start, t, !0) } function U(t, e, n) { var i; return _(n) ? (e - t) / n : (i = n.asMonths(), Math.abs(i) >= 1 && ot(i) ? e.diff(t, "months", !0) / i : e.diff(t, "days", !0) / n.asDays()) } function G(t, e) { var n, i; return _(t) || _(e) ? t / e : (n = t.asMonths(), i = e.asMonths(), Math.abs(n) >= 1 && ot(n) && Math.abs(i) >= 1 && ot(i) ? n / i : t.asDays() / e.asDays()) } function W(t, n) { var i; return _(t) ? e.duration(t * n) : (i = t.asMonths(), Math.abs(i) >= 1 && ot(i) ? e.duration({ months: i * n }) : e.duration({ days: t.asDays() * n })) } function _(t) { return Boolean(t.hours() || t.minutes() || t.seconds() || t.milliseconds()) } function q(t) { return "[object Date]" === Object.prototype.toString.call(t) || t instanceof Date } function Y(t) { return "string" == typeof t && /^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t) } function j(t, e) { var n, i, s, r, o, a, l = {}; if (e) for (n = 0; n < e.length; n++) { for (i = e[n], s = [], r = t.length - 1; r >= 0; r--) if ("object" == typeof (o = t[r][i])) s.unshift(o); else if (void 0 !== o) { l[i] = o; break } s.length && (l[i] = j(s)) } for (n = t.length - 1; n >= 0; n--) { a = t[n]; for (i in a) i in l || (l[i] = a[i]) } return l } function Z(t, e) { for (var n in t) Q(t, n) && (e[n] = t[n]) } function Q(t, e) { return Yt.call(t, e) } function $(e, n, i) { if (t.isFunction(e) && (e = [e]), e) { var s, r; for (s = 0; s < e.length; s++) r = e[s].apply(n, i) || r; return r } } function X(t, e) { for (var n = 0, i = 0; i < t.length;) e(t[i]) ? (t.splice(i, 1), n++) : i++; return n } function K(t, e) { for (var n = 0, i = 0; i < t.length;) t[i] === e ? (t.splice(i, 1), n++) : i++; return n } function J() { for (var t = 0; t < arguments.length; t++) if (void 0 !== arguments[t]) return arguments[t] } function tt(t) { return (t + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#039;").replace(/"/g, "&quot;").replace(/\n/g, "<br />") } function et(t) { return t.replace(/&.*?;/g, "") } function nt(e) { var n = []; return t.each(e, function (t, e) { null != e && n.push(t + ":" + e) }), n.join(";") } function it(e) { var n = []; return t.each(e, function (t, e) { null != e && n.push(t + '="' + tt(e) + '"') }), n.join(" ") } function st(t) { return t.charAt(0).toUpperCase() + t.slice(1) } function rt(t, e) { return t - e } function ot(t) { return t % 1 == 0 } function at(t, e) { var n = t[e]; return function () { return n.apply(t, arguments) } } function lt(t, e, n) { var i, s, r, o, a, l = function () { var u = +new Date - o; u < e ? i = setTimeout(l, e - u) : (i = null, n || (a = t.apply(r, s), r = s = null)) }; return function () { r = this, s = arguments, o = +new Date; var u = n && !i; return i || (i = setTimeout(l, e)), u && (a = t.apply(r, s), r = s = null), a } } function ut(n, i, s) { var r, o, a, l, u = n[0], c = 1 == n.length && "string" == typeof u; return e.isMoment(u) || q(u) || void 0 === u ? l = e.apply(null, n) : (r = !1, o = !1, c ? jt.test(u) ? (u += "-01", n = [u], r = !0, o = !0) : (a = Zt.exec(u)) && (r = !a[5], o = !0) : t.isArray(u) && (o = !0), l = i || r ? e.utc.apply(e, n) : e.apply(null, n), r ? (l._ambigTime = !0, l._ambigZone = !0) : s && (o ? l._ambigZone = !0 : c && l.utcOffset(u))), l._fullCalendar = !0, l } function ct(t) { return "en" !== t.locale() ? t.clone().locale("en") : t } function ht() { } function dt(t, e) { var n; return Q(e, "constructor") && (n = e.constructor), "function" != typeof n && (n = e.constructor = function () { t.apply(this, arguments) }), n.prototype = Object.create(t.prototype), Z(e, n.prototype), Z(t, n), n } function ft(t, e) { t.then = function (n) { return "function" == typeof n ? ae.resolve(n(e)) : t } } function gt(t) { t.then = function (e, n) { return "function" == typeof n && n(), t } } function pt(t, e) { return !t && !e || !(!t || !e) && (t.component === e.component && vt(t, e) && vt(e, t)) } function vt(t, e) { for (var n in t) if (!/^(component|left|right|top|bottom)$/.test(n) && t[n] !== e[n]) return !1; return !0 } function mt(n) { var i, s, r, o, a = Vt.dataAttrPrefix; return a && (a += "-"), i = n.data(a + "event") || null, i && (i = "object" == typeof i ? t.extend({}, i) : {}, s = i.start, null == s && (s = i.time), r = i.duration, o = i.stick, delete i.start, delete i.time, delete i.duration, delete i.stick), null == s && (s = n.data(a + "start")), null == s && (s = n.data(a + "time")), null == r && (r = n.data(a + "duration")), null == o && (o = n.data(a + "stick")), s = null != s ? e.duration(s) : null, r = null != r ? e.duration(r) : null, o = Boolean(o), { eventProps: i, startTime: s, duration: r, stick: o } } function yt(t, e) { var n, i; for (n = 0; n < e.length; n++) if (i = e[n], i.leftCol <= t.rightCol && i.rightCol >= t.leftCol) return !0; return !1 } function wt(t, e) { return t.leftCol - e.leftCol } function Dt(t) { var e, n, i, s = []; for (e = 0; e < t.length; e++) { for (n = t[e], i = 0; i < s.length && Et(n, s[i]).length; i++); n.level = i, (s[i] || (s[i] = [])).push(n) } return s } function bt(t) { var e, n, i, s, r; for (e = 0; e < t.length; e++) for (n = t[e], i = 0; i < n.length; i++) for (s = n[i], s.forwardSegs = [], r = e + 1; r < t.length; r++) Et(s, t[r], s.forwardSegs) } function St(t) { var e, n, i = t.forwardSegs, s = 0; if (void 0 === t.forwardPressure) { for (e = 0; e < i.length; e++) n = i[e], St(n), s = Math.max(s, 1 + n.forwardPressure); t.forwardPressure = s } } function Et(t, e, n) { n = n || []; for (var i = 0; i < e.length; i++) Ct(t, e[i]) && n.push(e[i]); return n } function Ct(t, e) { return t.bottom > e.top && t.top < e.bottom } function Tt(t) { var e, n, i, s = []; for (e in t) for (n = t[e].eventInstances, i = 0; i < n.length; i++) s.push(n[i].toLegacy()); return s } function Rt(t) { this.items = t || [] } function It(e, n) { function i(t) { n = t } function s() { n.layout ? (g ? g.empty() : g = this.el = t("<div class='fc-toolbar " + n.extraClasses + "'/>"), g.append(o("left")).append(o("right")).append(o("center")).append('<div class="fc-clear"/>')) : r() } function r() { g && (g.remove(), g = f.el = null) } function o(i) { var s = e.theme, r = t('<div class="fc-' + i + '"/>'), o = n.layout[i], a = e.opt("customButtons") || {}, l = e.overrides.buttonText || {}, u = e.opt("buttonText") || {}; return o && t.each(o.split(" "), function (n) { var i, o = t(), c = !0; t.each(this.split(","), function (n, i) { var r, h, d, f, g, v, m, y; "title" == i ? (o = o.add(t("<h2>&nbsp;</h2>")), c = !1) : ((r = a[i]) ? (d = function (t) { r.click && r.click.call(y[0], t) }, (f = s.getCustomButtonIconClass(r)) || (f = s.getIconClass(i)) || (g = r.text)) : (h = e.getViewSpec(i)) ? (p.push(i), d = function () { e.changeView(i) }, (g = h.buttonTextOverride) || (f = s.getIconClass(i)) || (g = h.buttonTextDefault)) : e[i] && (d = function () { e[i]() }, (g = l[i]) || (f = s.getIconClass(i)) || (g = u[i])), d && (m = ["fc-" + i + "-button", s.getClass("button"), s.getClass("stateDefault")], g ? v = tt(g) : f && (v = "<span class='" + f + "'></span>"), y = t('<button type="button" class="' + m.join(" ") + '">' + v + "</button>").click(function (t) { y.hasClass(s.getClass("stateDisabled")) || (d(t), (y.hasClass(s.getClass("stateActive")) || y.hasClass(s.getClass("stateDisabled"))) && y.removeClass(s.getClass("stateHover"))) }).mousedown(function () { y.not("." + s.getClass("stateActive")).not("." + s.getClass("stateDisabled")).addClass(s.getClass("stateDown")) }).mouseup(function () { y.removeClass(s.getClass("stateDown")) }).hover(function () { y.not("." + s.getClass("stateActive")).not("." + s.getClass("stateDisabled")).addClass(s.getClass("stateHover")) }, function () { y.removeClass(s.getClass("stateHover")).removeClass(s.getClass("stateDown")) }), o = o.add(y))) }), c && o.first().addClass(s.getClass("cornerLeft")).end().last().addClass(s.getClass("cornerRight")).end(), o.length > 1 ? (i = t("<div/>"), c && i.addClass(s.getClass("buttonGroup")), i.append(o), r.append(i)) : r.append(o) }), r } function a(t) { g && g.find("h2").text(t) } function l(t) { g && g.find(".fc-" + t + "-button").addClass(e.theme.getClass("stateActive")) } function u(t) { g && g.find(".fc-" + t + "-button").removeClass(e.theme.getClass("stateActive")) } function c(t) { g && g.find(".fc-" + t + "-button").prop("disabled", !0).addClass(e.theme.getClass("stateDisabled")) } function h(t) { g && g.find(".fc-" + t + "-button").prop("disabled", !1).removeClass(e.theme.getClass("stateDisabled")) } function d() { return p } var f = this; f.setToolbarOptions = i, f.render = s, f.removeElement = r, f.updateTitle = a, f.activateButton = l, f.deactivateButton = u, f.disableButton = c, f.enableButton = h, f.getViewsWithButtons = d, f.el = null; var g, p = [] } function Ht(t, e, n) { var i; for (i = 0; i < t.length; i++) if (!e(t[i].eventInstance.toLegacy(), n ? n.toLegacy() : null)) return !1; return !0 } function Mt(t, e) { var n, i, s, r, o = e.toLegacy(); for (n = 0; n < t.length; n++) { if (i = t[n].eventInstance, s = i.def, !1 === (r = s.getOverlap())) return !1; if ("function" == typeof r && !r(i.toLegacy(), o)) return !1 } return !0 } function xt(e, n) { return null == n ? e : t.isFunction(n) ? e.filter(n) : (n += "", e.filter(function (t) { return t.id == n })) } function zt(e) { t.each(He, function (t, n) { null == e[t] && (e[t] = n(e)) }) } function Ft(t) { return e.localeData(t) || e.localeData("en") } function Pt(t, e) { var n, i, s = [], r = e.startMs; for (t.sort(Bt), n = 0; n < t.length; n++) i = t[n], i.startMs > r && s.push(new Me(r, i.startMs)), i.endMs > r && (r = i.endMs); return r < e.endMs && s.push(new Me(r, e.endMs)), s } function Bt(t, e) { return t.startMs - e.startMs } function kt(t, e) { return t.getPrimitive() == e.getPrimitive() } function At(t, e) { var n, i = []; for (n = 0; n < t.length; n++) i.push.apply(i, t[n].buildInstances(e)); return i } function Lt(t) { return t.map(function (t) { return new Ve(t.dateProfile.unzonedRange, t.def, t) }) } function Ot(t) { return t.map(function (t) { return t.dateProfile.unzonedRange }) } function Nt(t) { return t.map(function (t) { return t.componentFootprint }) } var Vt = t.fullCalendar = { version: "3.5.0", internalApiVersion: 9 }, Ut = Vt.views = {}; t.fn.fullCalendar = function (e) { var n = Array.prototype.slice.call(arguments, 1), i = this; return this.each(function (s, r) { var o, a = t(r), l = a.data("fullCalendar"); "string" == typeof e ? "getCalendar" === e ? s || (i = l) : "destroy" === e ? l && (l.destroy(), a.removeData("fullCalendar")) : l ? t.isFunction(l[e]) ? (o = l[e].apply(l, n), s || (i = o), "destroy" === e && a.removeData("fullCalendar")) : Vt.warn("'" + e + "' is an unknown FullCalendar method.") : Vt.warn("Attempting to call a FullCalendar method on an element with no calendar.") : l || (l = new Ee(a, e), a.data("fullCalendar", l), l.render()) }), i }; var Gt = ["header", "footer", "buttonText", "buttonIcons", "themeButtonIcons"]; Vt.applyAll = $, Vt.debounce = lt, Vt.isInt = ot, Vt.htmlEscape = tt, Vt.cssToStr = nt, Vt.proxy = at, Vt.capitaliseFirstLetter = st, Vt.getOuterRect = d, Vt.getClientRect = f, Vt.getContentRect = g, Vt.getScrollbarWidths = p; var Wt = null; Vt.preventDefault = R, Vt.intersectRects = I, Vt.parseFieldSpecs = z, Vt.compareByFieldSpecs = F, Vt.compareByFieldSpec = P, Vt.flexibleCompare = B, Vt.computeGreatestUnit = O, Vt.divideRangeByDuration = U, Vt.divideDurationByDuration = G, Vt.multiplyDuration = W, Vt.durationHasTime = _; var _t = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], qt = ["year", "month", "week", "day", "hour", "minute", "second", "millisecond"]; Vt.log = function () { var t = window.console; if (t && t.log) return t.log.apply(t, arguments) }, Vt.warn = function () { var t = window.console; return t && t.warn ? t.warn.apply(t, arguments) : Vt.log.apply(Vt, arguments) }; var Yt = {}.hasOwnProperty; Vt.removeExact = K; var jt = /^\s*\d{4}-\d\d$/, Zt = /^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/, Qt = e.fn, $t = t.extend({}, Qt), Xt = e.momentProperties; Xt.push("_fullCalendar"), Xt.push("_ambigTime"), Xt.push("_ambigZone"), Vt.moment = function () { return ut(arguments) }, Vt.moment.utc = function () { var t = ut(arguments, !0); return t.hasTime() && t.utc(), t }, Vt.moment.parseZone = function () { return ut(arguments, !0, !0) }, Qt.week = Qt.weeks = function (t) { var e = this._locale._fullCalendar_weekCalc; return null == t && "function" == typeof e ? e(this) : "ISO" === e ? $t.isoWeek.apply(this, arguments) : $t.week.apply(this, arguments) }, Qt.time = function (t) { if (!this._fullCalendar) return $t.time.apply(this, arguments); if (null == t) return e.duration({ hours: this.hours(), minutes: this.minutes(), seconds: this.seconds(), milliseconds: this.milliseconds() }); this._ambigTime = !1, e.isDuration(t) || e.isMoment(t) || (t = e.duration(t)); var n = 0; return e.isDuration(t) && (n = 24 * Math.floor(t.asDays())), this.hours(n + t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds()) }, Qt.stripTime = function () { return this._ambigTime || (this.utc(!0), this.set({ hours: 0, minutes: 0, seconds: 0, ms: 0 }), this._ambigTime = !0, this._ambigZone = !0), this }, Qt.hasTime = function () { return !this._ambigTime }, Qt.stripZone = function () { var t; return this._ambigZone || (t = this._ambigTime, this.utc(!0), this._ambigTime = t || !1, this._ambigZone = !0), this }, Qt.hasZone = function () { return !this._ambigZone }, Qt.local = function (t) { return $t.local.call(this, this._ambigZone || t), this._ambigTime = !1, this._ambigZone = !1, this }, Qt.utc = function (t) { return $t.utc.call(this, t), this._ambigTime = !1, this._ambigZone = !1, this }, Qt.utcOffset = function (t) { return null != t && (this._ambigTime = !1, this._ambigZone = !1), $t.utcOffset.apply(this, arguments) }, Qt.format = function () { return this._fullCalendar && arguments[0] ? Kt(this, arguments[0]) : this._ambigTime ? te(ct(this), "YYYY-MM-DD") : this._ambigZone ? te(ct(this), "YYYY-MM-DD[T]HH:mm:ss") : this._fullCalendar ? te(ct(this)) : $t.format.apply(this, arguments) }, Qt.toISOString = function () { return this._ambigTime ? te(ct(this), "YYYY-MM-DD") : this._ambigZone ? te(ct(this), "YYYY-MM-DD[T]HH:mm:ss") : this._fullCalendar ? $t.toISOString.apply(ct(this), arguments) : $t.toISOString.apply(this, arguments) }, function () { function t(t, e) { return c(s(e).fakeFormatString, t) } function e(t, e) { return $t.format.call(t, e) } function n(t, e, n, r, o) { var a; return t = Vt.moment.parseZone(t), e = Vt.moment.parseZone(e), a = t.localeData(), n = a.longDateFormat(n) || n, i(s(n), t, e, r || " - ", o) } function i(t, e, n, i, s) { var r, o, a, l = t.sameUnits, u = e.clone().stripZone(), c = n.clone().stripZone(), f = h(t.fakeFormatString, e), g = h(t.fakeFormatString, n), p = "", v = "", m = "", y = "", w = ""; for (r = 0; r < l.length && (!l[r] || u.isSame(c, l[r])) ; r++) p += f[r]; for (o = l.length - 1; o > r && (!l[o] || u.isSame(c, l[o])) && (o - 1 !== r || "." !== f[o]) ; o--) v = f[o] + v; for (a = r; a <= o; a++) m += f[a], y += g[a]; return (m || y) && (w = s ? y + i + m : m + i + y), d(p + w + v) } function s(t) { return D[t] || (D[t] = r(t)) } function r(t) { var e = o(t); return { fakeFormatString: l(e), sameUnits: u(e) } } function o(t) { for (var e, n = [], i = /\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g; e = i.exec(t) ;) e[1] ? n.push.apply(n, a(e[1])) : e[2] ? n.push({ maybe: o(e[2]) }) : e[3] ? n.push({ token: e[3] }) : e[5] && n.push.apply(n, a(e[5])); return n } function a(t) { return ". " === t ? [".", " "] : [t] } function l(t) { var e, n, i = []; for (e = 0; e < t.length; e++) n = t[e], "string" == typeof n ? i.push("[" + n + "]") : n.token ? n.token in y ? i.push(p + "[" + n.token + "]") : i.push(n.token) : n.maybe && i.push(v + l(n.maybe) + v); return i.join(g) } function u(t) { var e, n, i, s = []; for (e = 0; e < t.length; e++) n = t[e], n.token ? (i = w[n.token.charAt(0)], s.push(i ? i.unit : "second")) : n.maybe ? s.push.apply(s, u(n.maybe)) : s.push(null); return s } function c(t, e) { return d(h(t, e).join("")) } function h(t, n) { var i, s, r = [], o = e(n, t), a = o.split(g); for (i = 0; i < a.length; i++) s = a[i], s.charAt(0) === p ? r.push(y[s.substring(1)](n)) : r.push(s); return r } function d(t) { return t.replace(m, function (t, e) { return e.match(/[1-9]/) ? e : "" }) } function f(t) { var e, n, i, s, r = o(t); for (e = 0; e < r.length; e++) n = r[e], n.token && (i = w[n.token.charAt(0)]) && (!s || i.value > s.value) && (s = i); return s ? s.unit : null } Vt.formatDate = t, Vt.formatRange = n, Vt.oldMomentFormat = e, Vt.queryMostGranularFormatUnit = f; var g = "\v", p = "", v = "", m = new RegExp(v + "([^" + v + "]*)" + v, "g"), y = { t: function (t) { return e(t, "a").charAt(0) }, T: function (t) { return e(t, "A").charAt(0) } }, w = { Y: { value: 1, unit: "year" }, M: { value: 2, unit: "month" }, W: { value: 3, unit: "week" }, w: { value: 3, unit: "week" }, D: { value: 4, unit: "day" }, d: { value: 4, unit: "day" } }, D = {} }(); var Kt = Vt.formatDate, Jt = Vt.formatRange, te = Vt.oldMomentFormat; Vt.Class = ht, ht.extend = function () { var t, e = {}; for (t = 0; t < arguments.length; t++) Z(arguments[t], e); return dt(this, e) }, ht.mixin = function (t) { Z(t, this.prototype) }; var ee = Vt.EmitterMixin = { on: function (e, n) { return t(this).on(e, this._prepareIntercept(n)), this }, one: function (e, n) { return t(this).one(e, this._prepareIntercept(n)), this }, _prepareIntercept: function (e) { var n = function (t, n) { return e.apply(n.context || this, n.args || []) }; return e.guid || (e.guid = t.guid++), n.guid = e.guid, n }, off: function (e, n) { return t(this).off(e, n), this }, trigger: function (e) { var n = Array.prototype.slice.call(arguments, 1); return t(this).triggerHandler(e, { args: n }), this }, triggerWith: function (e, n, i) { return t(this).triggerHandler(e, { context: n, args: i }), this }, hasHandlers: function (e) { var n = t._data(this, "events"); return n && n[e] && n[e].length > 0 } }, ne = Vt.ListenerMixin = function () { var e = 0; return { listenerId: null, listenTo: function (e, n, i) { if ("object" == typeof n) for (var s in n) n.hasOwnProperty(s) && this.listenTo(e, s, n[s]); else "string" == typeof n && e.on(n + "." + this.getListenerNamespace(), t.proxy(i, this)) }, stopListeningTo: function (t, e) { t.off((e || "") + "." + this.getListenerNamespace()) }, getListenerNamespace: function () { return null == this.listenerId && (this.listenerId = e++), "_listener" + this.listenerId } } }(), ie = { standardPropMap: {}, applyRawProps: function (t) { var e, n = this.standardPropMap, i = {}, s = {}; for (e in t) !0 === n[e] ? this[e] = t[e] : !1 === n[e] ? i[e] = t[e] : s[e] = t[e]; return this.applyOtherRawProps(s), this.applyManualRawProps(i) }, applyManualRawProps: function (t) { return !0 }, applyOtherRawProps: function (t) { } }, se = function (t) { var e = this.prototype; e.standardPropMap = Object.create(e.standardPropMap), Z(t, e.standardPropMap) }, re = function (t, e) { var n, i = this.prototype.standardPropMap; for (n in i) null != t[n] && !0 === i[n] && (e[n] = t[n]) }, oe = ht.extend(ee, ne, { _props: null, _watchers: null, _globalWatchArgs: null, constructor: function () { this._watchers = {}, this._props = {}, this.applyGlobalWatchers() }, applyGlobalWatchers: function () { var t, e = this._globalWatchArgs || []; for (t = 0; t < e.length; t++) this.watch.apply(this, e[t]) }, has: function (t) { return t in this._props }, get: function (t) { return void 0 === t ? this._props : this._props[t] }, set: function (t, e) { var n; "string" == typeof t ? (n = {}, n[t] = void 0 === e ? null : e) : n = t, this.setProps(n) }, reset: function (t) { var e, n = this._props, i = {}; for (e in n) i[e] = void 0; for (e in t) i[e] = t[e]; this.setProps(i) }, unset: function (t) { var e, n, i = {}; for (e = "string" == typeof t ? [t] : t, n = 0; n < e.length; n++) i[e[n]] = void 0; this.setProps(i) }, setProps: function (t) { var e, n, i = {}, s = 0; for (e in t) "object" != typeof (n = t[e]) && n === this._props[e] || (i[e] = n, s++); if (s) { this.trigger("before:batchChange", i); for (e in i) n = i[e], this.trigger("before:change", e, n), this.trigger("before:change:" + e, n); for (e in i) n = i[e], void 0 === n ? delete this._props[e] : this._props[e] = n, this.trigger("change:" + e, n), this.trigger("change", e, n); this.trigger("batchChange", i) } }, watch: function (t, e, n, i) { var s = this; this.unwatch(t), this._watchers[t] = this._watchDeps(e, function (e) { var i = n.call(s, e); i && i.then ? (s.unset(t), i.then(function (e) { s.set(t, e) })) : s.set(t, i) }, function () { s.unset(t), i && i.call(s) }) }, unwatch: function (t) { var e = this._watchers[t]; e && (delete this._watchers[t], e.teardown()) }, _watchDeps: function (t, e, n) { function i(t, e, i) { 1 === ++a && u === l && (d = !0, n(), d = !1) } function s(t, n, i) { void 0 === n ? (i || void 0 === c[t] || u--, delete c[t]) : (i || void 0 !== c[t] || u++, c[t] = n), --a || u === l && (d || e(c)) } function r(t, e) { o.on(t, e), h.push([t, e]) } var o = this, a = 0, l = t.length, u = 0, c = {}, h = [], d = !1; return t.forEach(function (t) { var e = !1; "?" === t.charAt(0) && (t = t.substring(1), e = !0), r("before:change:" + t, function (n) { i(t, n, e) }), r("change:" + t, function (n) { s(t, n, e) }) }), t.forEach(function (t) { var e = !1; "?" === t.charAt(0) && (t = t.substring(1), e = !0), o.has(t) ? (c[t] = o.get(t), u++) : e && u++ }), u === l && e(c), { teardown: function () { for (var t = 0; t < h.length; t++) o.off(h[t][0], h[t][1]); h = null, u === l && n() }, flash: function () { u === l && (n(), e(c)) } } }, flash: function (t) { var e = this._watchers[t]; e && e.flash() } }); oe.watch = function () { var t = this.prototype; t._globalWatchArgs || (t._globalWatchArgs = []), t._globalWatchArgs.push(arguments) }, Vt.Model = oe; var ae = { construct: function (e) { var n = t.Deferred(), i = n.promise(); return "function" == typeof e && e(function (t) { n.resolve(t), ft(i, t) }, function () { n.reject(), gt(i) }), i }, resolve: function (e) { var n = t.Deferred().resolve(e), i = n.promise(); return ft(i, e), i }, reject: function () { var e = t.Deferred().reject(), n = e.promise(); return gt(n), n } }; Vt.Promise = ae; var le = ht.extend(ee, { q: null, isPaused: !1, isRunning: !1, constructor: function () { this.q = [] }, queue: function () { this.q.push.apply(this.q, arguments), this.tryStart() }, pause: function () { this.isPaused = !0 }, resume: function () { this.isPaused = !1, this.tryStart() }, tryStart: function () { !this.isRunning && this.canRunNext() && (this.isRunning = !0, this.trigger("start"), this.runNext()) }, canRunNext: function () { return !this.isPaused && this.q.length }, runNext: function () { this.runTask(this.q.shift()) }, runTask: function (t) { this.runTaskFunc(t) }, runTaskFunc: function (t) { function e() { n.canRunNext() ? n.runNext() : (n.isRunning = !1, n.trigger("stop")) } var n = this, i = t(); i && i.then ? i.then(e) : e() } }); Vt.TaskQueue = le; var ue = le.extend({ waitsByNamespace: null, waitNamespace: null, waitId: null, constructor: function (t) { le.call(this), this.waitsByNamespace = t || {} }, queue: function (t, e, n) { var i, s = { func: t, namespace: e, type: n }; e && (i = this.waitsByNamespace[e]), this.waitNamespace && (e === this.waitNamespace && null != i ? this.delayWait(i) : (this.clearWait(), this.tryStart())), this.compoundTask(s) && (this.waitNamespace || null == i ? this.tryStart() : this.startWait(e, i)) }, startWait: function (t, e) { this.waitNamespace = t, this.spawnWait(e) }, delayWait: function (t) { clearTimeout(this.waitId), this.spawnWait(t) }, spawnWait: function (t) { var e = this; this.waitId = setTimeout(function () { e.waitNamespace = null, e.tryStart() }, t) }, clearWait: function () { this.waitNamespace && (clearTimeout(this.waitId), this.waitId = null, this.waitNamespace = null) }, canRunNext: function () { if (!le.prototype.canRunNext.apply(this, arguments)) return !1; if (this.waitNamespace) { for (var t = this.q, e = 0; e < t.length; e++) if (t[e].namespace !== this.waitNamespace) return !0; return !1 } return !0 }, runTask: function (t) { this.runTaskFunc(t.func) }, compoundTask: function (t) { var e, n, i = this.q, s = !0; if (t.namespace && ("destroy" === t.type || "init" === t.type)) { for (e = i.length - 1; e >= 0; e--) n = i[e], n.namespace !== t.namespace || "add" !== n.type && "remove" !== n.type || i.splice(e, 1); "destroy" === t.type ? i.length && (n = i[i.length - 1], n.namespace === t.namespace && ("init" === n.type ? (s = !1, i.pop()) : "destroy" === n.type && (s = !1))) : "init" === t.type && i.length && (n = i[i.length - 1], n.namespace === t.namespace && "init" === n.type && i.pop()) } return s && i.push(t), s } }); Vt.RenderQueue = ue; var ce = ht.extend(ne, { isHidden: !0, options: null, el: null, margin: 10, constructor: function (t) { this.options = t || {} }, show: function () { this.isHidden && (this.el || this.render(), this.el.show(), this.position(), this.isHidden = !1, this.trigger("show")) }, hide: function () { this.isHidden || (this.el.hide(), this.isHidden = !0, this.trigger("hide")) }, render: function () { var e = this, n = this.options; this.el = t('<div class="fc-popover"/>').addClass(n.className || "").css({ top: 0, left: 0 }).append(n.content).appendTo(n.parentEl), this.el.on("click", ".fc-close", function () { e.hide() }), n.autoHide && this.listenTo(t(document), "mousedown", this.documentMousedown) }, documentMousedown: function (e) { this.el && !t(e.target).closest(this.el).length && this.hide() }, removeElement: function () { this.hide(), this.el && (this.el.remove(), this.el = null), this.stopListeningTo(t(document), "mousedown") }, position: function () { var e, n, i, s, r, o = this.options, a = this.el.offsetParent().offset(), l = this.el.outerWidth(), u = this.el.outerHeight(), c = t(window), d = h(this.el); s = o.top || 0, r = void 0 !== o.left ? o.left : void 0 !== o.right ? o.right - l : 0, d.is(window) || d.is(document) ? (d = c, e = 0, n = 0) : (i = d.offset(), e = i.top, n = i.left), e += c.scrollTop(), n += c.scrollLeft(), !1 !== o.viewportConstrain && (s = Math.min(s, e + d.outerHeight() - u - this.margin), s = Math.max(s, e + this.margin), r = Math.min(r, n + d.outerWidth() - l - this.margin), r = Math.max(r, n + this.margin)), this.el.css({ top: s - a.top, left: r - a.left }) }, trigger: function (t) { this.options[t] && this.options[t].apply(this, Array.prototype.slice.call(arguments, 1)) } }), he = Vt.CoordCache = ht.extend({ els: null, forcedOffsetParentEl: null, origin: null, boundingRect: null, isHorizontal: !1, isVertical: !1, lefts: null, rights: null, tops: null, bottoms: null, constructor: function (e) { this.els = t(e.els), this.isHorizontal = e.isHorizontal, this.isVertical = e.isVertical, this.forcedOffsetParentEl = e.offsetParent ? t(e.offsetParent) : null }, build: function () { var t = this.forcedOffsetParentEl; !t && this.els.length > 0 && (t = this.els.eq(0).offsetParent()), this.origin = t ? t.offset() : null, this.boundingRect = this.queryBoundingRect(), this.isHorizontal && this.buildElHorizontals(), this.isVertical && this.buildElVerticals() }, clear: function () { this.origin = null, this.boundingRect = null, this.lefts = null, this.rights = null, this.tops = null, this.bottoms = null }, ensureBuilt: function () { this.origin || this.build() }, buildElHorizontals: function () { var e = [], n = []; this.els.each(function (i, s) { var r = t(s), o = r.offset().left, a = r.outerWidth(); e.push(o), n.push(o + a) }), this.lefts = e, this.rights = n }, buildElVerticals: function () { var e = [], n = []; this.els.each(function (i, s) { var r = t(s), o = r.offset().top, a = r.outerHeight(); e.push(o), n.push(o + a) }), this.tops = e, this.bottoms = n }, getHorizontalIndex: function (t) { this.ensureBuilt(); var e, n = this.lefts, i = this.rights, s = n.length; for (e = 0; e < s; e++) if (t >= n[e] && t < i[e]) return e }, getVerticalIndex: function (t) { this.ensureBuilt(); var e, n = this.tops, i = this.bottoms, s = n.length; for (e = 0; e < s; e++) if (t >= n[e] && t < i[e]) return e }, getLeftOffset: function (t) { return this.ensureBuilt(), this.lefts[t] }, getLeftPosition: function (t) { return this.ensureBuilt(), this.lefts[t] - this.origin.left }, getRightOffset: function (t) { return this.ensureBuilt(), this.rights[t] }, getRightPosition: function (t) { return this.ensureBuilt(), this.rights[t] - this.origin.left }, getWidth: function (t) { return this.ensureBuilt(), this.rights[t] - this.lefts[t] }, getTopOffset: function (t) { return this.ensureBuilt(), this.tops[t] }, getTopPosition: function (t) { return this.ensureBuilt(), this.tops[t] - this.origin.top }, getBottomOffset: function (t) { return this.ensureBuilt(), this.bottoms[t] }, getBottomPosition: function (t) { return this.ensureBuilt(), this.bottoms[t] - this.origin.top }, getHeight: function (t) { return this.ensureBuilt(), this.bottoms[t] - this.tops[t] }, queryBoundingRect: function () { var t; return this.els.length > 0 && (t = h(this.els.eq(0)), !t.is(document)) ? f(t) : null }, isPointInBounds: function (t, e) { return this.isLeftInBounds(t) && this.isTopInBounds(e) }, isLeftInBounds: function (t) { return !this.boundingRect || t >= this.boundingRect.left && t < this.boundingRect.right }, isTopInBounds: function (t) { return !this.boundingRect || t >= this.boundingRect.top && t < this.boundingRect.bottom } }), de = Vt.DragListener = ht.extend(ne, {
        options: null, subjectEl: null, originX: null, originY: null, scrollEl: null, isInteracting: !1, isDistanceSurpassed: !1, isDelayEnded: !1, isDragging: !1, isTouch: !1, isGeneric: !1, delay: null, delayTimeoutId: null, minDistance: null, shouldCancelTouchScroll: !0, scrollAlwaysKills: !1, constructor: function (t) { this.options = t || {} }, startInteraction: function (e, n) { if ("mousedown" === e.type) { if (ge.get().shouldIgnoreMouse()) return; if (!D(e)) return; e.preventDefault() } this.isInteracting || (n = n || {}, this.delay = J(n.delay, this.options.delay, 0), this.minDistance = J(n.distance, this.options.distance, 0), this.subjectEl = this.options.subjectEl, C(t("body")), this.isInteracting = !0, this.isTouch = E(e), this.isGeneric = "dragstart" === e.type, this.isDelayEnded = !1, this.isDistanceSurpassed = !1, this.originX = b(e), this.originY = S(e), this.scrollEl = h(t(e.target)), this.bindHandlers(), this.initAutoScroll(), this.handleInteractionStart(e), this.startDelay(e), this.minDistance || this.handleDistanceSurpassed(e)) }, handleInteractionStart: function (t) { this.trigger("interactionStart", t) }, endInteraction: function (e, n) { this.isInteracting && (this.endDrag(e), this.delayTimeoutId && (clearTimeout(this.delayTimeoutId), this.delayTimeoutId = null), this.destroyAutoScroll(), this.unbindHandlers(), this.isInteracting = !1, this.handleInteractionEnd(e, n), T(t("body"))) }, handleInteractionEnd: function (t, e) { this.trigger("interactionEnd", t, e || !1) }, bindHandlers: function () { var e = ge.get(); this.isGeneric ? this.listenTo(t(document), { drag: this.handleMove, dragstop: this.endInteraction }) : this.isTouch ? this.listenTo(e, { touchmove: this.handleTouchMove, touchend: this.endInteraction, scroll: this.handleTouchScroll }) : this.listenTo(e, { mousemove: this.handleMouseMove, mouseup: this.endInteraction }), this.listenTo(e, { selectstart: R, contextmenu: R }) }, unbindHandlers: function () { this.stopListeningTo(ge.get()), this.stopListeningTo(t(document)) }, startDrag: function (t, e) { this.startInteraction(t, e), this.isDragging || (this.isDragging = !0, this.handleDragStart(t)) }, handleDragStart: function (t) { this.trigger("dragStart", t) }, handleMove: function (t) { var e = b(t) - this.originX, n = S(t) - this.originY, i = this.minDistance; this.isDistanceSurpassed || e * e + n * n >= i * i && this.handleDistanceSurpassed(t), this.isDragging && this.handleDrag(e, n, t) }, handleDrag: function (t, e, n) {
            this.trigger("drag", t, e, n),
            this.updateAutoScroll(n)
        }, endDrag: function (t) { this.isDragging && (this.isDragging = !1, this.handleDragEnd(t)) }, handleDragEnd: function (t) { this.trigger("dragEnd", t) }, startDelay: function (t) { var e = this; this.delay ? this.delayTimeoutId = setTimeout(function () { e.handleDelayEnd(t) }, this.delay) : this.handleDelayEnd(t) }, handleDelayEnd: function (t) { this.isDelayEnded = !0, this.isDistanceSurpassed && this.startDrag(t) }, handleDistanceSurpassed: function (t) { this.isDistanceSurpassed = !0, this.isDelayEnded && this.startDrag(t) }, handleTouchMove: function (t) { this.isDragging && this.shouldCancelTouchScroll && t.preventDefault(), this.handleMove(t) }, handleMouseMove: function (t) { this.handleMove(t) }, handleTouchScroll: function (t) { this.isDragging && !this.scrollAlwaysKills || this.endInteraction(t, !0) }, trigger: function (t) { this.options[t] && this.options[t].apply(this, Array.prototype.slice.call(arguments, 1)), this["_" + t] && this["_" + t].apply(this, Array.prototype.slice.call(arguments, 1)) }
    }); de.mixin({ isAutoScroll: !1, scrollBounds: null, scrollTopVel: null, scrollLeftVel: null, scrollIntervalId: null, scrollSensitivity: 30, scrollSpeed: 200, scrollIntervalMs: 50, initAutoScroll: function () { var t = this.scrollEl; this.isAutoScroll = this.options.scroll && t && !t.is(window) && !t.is(document), this.isAutoScroll && this.listenTo(t, "scroll", lt(this.handleDebouncedScroll, 100)) }, destroyAutoScroll: function () { this.endAutoScroll(), this.isAutoScroll && this.stopListeningTo(this.scrollEl, "scroll") }, computeScrollBounds: function () { this.isAutoScroll && (this.scrollBounds = d(this.scrollEl)) }, updateAutoScroll: function (t) { var e, n, i, s, r = this.scrollSensitivity, o = this.scrollBounds, a = 0, l = 0; o && (e = (r - (S(t) - o.top)) / r, n = (r - (o.bottom - S(t))) / r, i = (r - (b(t) - o.left)) / r, s = (r - (o.right - b(t))) / r, e >= 0 && e <= 1 ? a = e * this.scrollSpeed * -1 : n >= 0 && n <= 1 && (a = n * this.scrollSpeed), i >= 0 && i <= 1 ? l = i * this.scrollSpeed * -1 : s >= 0 && s <= 1 && (l = s * this.scrollSpeed)), this.setScrollVel(a, l) }, setScrollVel: function (t, e) { this.scrollTopVel = t, this.scrollLeftVel = e, this.constrainScrollVel(), !this.scrollTopVel && !this.scrollLeftVel || this.scrollIntervalId || (this.scrollIntervalId = setInterval(at(this, "scrollIntervalFunc"), this.scrollIntervalMs)) }, constrainScrollVel: function () { var t = this.scrollEl; this.scrollTopVel < 0 ? t.scrollTop() <= 0 && (this.scrollTopVel = 0) : this.scrollTopVel > 0 && t.scrollTop() + t[0].clientHeight >= t[0].scrollHeight && (this.scrollTopVel = 0), this.scrollLeftVel < 0 ? t.scrollLeft() <= 0 && (this.scrollLeftVel = 0) : this.scrollLeftVel > 0 && t.scrollLeft() + t[0].clientWidth >= t[0].scrollWidth && (this.scrollLeftVel = 0) }, scrollIntervalFunc: function () { var t = this.scrollEl, e = this.scrollIntervalMs / 1e3; this.scrollTopVel && t.scrollTop(t.scrollTop() + this.scrollTopVel * e), this.scrollLeftVel && t.scrollLeft(t.scrollLeft() + this.scrollLeftVel * e), this.constrainScrollVel(), this.scrollTopVel || this.scrollLeftVel || this.endAutoScroll() }, endAutoScroll: function () { this.scrollIntervalId && (clearInterval(this.scrollIntervalId), this.scrollIntervalId = null, this.handleScrollEnd()) }, handleDebouncedScroll: function () { this.scrollIntervalId || this.handleScrollEnd() }, handleScrollEnd: function () { } }); var fe = de.extend({ component: null, origHit: null, hit: null, coordAdjust: null, constructor: function (t, e) { de.call(this, e), this.component = t }, handleInteractionStart: function (t) { var e, n, i, s = this.subjectEl; this.component.hitsNeeded(), this.computeScrollBounds(), t ? (n = { left: b(t), top: S(t) }, i = n, s && (e = d(s), i = H(i, e)), this.origHit = this.queryHit(i.left, i.top), s && this.options.subjectCenter && (this.origHit && (e = I(this.origHit, e) || e), i = M(e)), this.coordAdjust = x(i, n)) : (this.origHit = null, this.coordAdjust = null), de.prototype.handleInteractionStart.apply(this, arguments) }, handleDragStart: function (t) { var e; de.prototype.handleDragStart.apply(this, arguments), (e = this.queryHit(b(t), S(t))) && this.handleHitOver(e) }, handleDrag: function (t, e, n) { var i; de.prototype.handleDrag.apply(this, arguments), i = this.queryHit(b(n), S(n)), pt(i, this.hit) || (this.hit && this.handleHitOut(), i && this.handleHitOver(i)) }, handleDragEnd: function () { this.handleHitDone(), de.prototype.handleDragEnd.apply(this, arguments) }, handleHitOver: function (t) { var e = pt(t, this.origHit); this.hit = t, this.trigger("hitOver", this.hit, e, this.origHit) }, handleHitOut: function () { this.hit && (this.trigger("hitOut", this.hit), this.handleHitDone(), this.hit = null) }, handleHitDone: function () { this.hit && this.trigger("hitDone", this.hit) }, handleInteractionEnd: function () { de.prototype.handleInteractionEnd.apply(this, arguments), this.origHit = null, this.hit = null, this.component.hitsNotNeeded() }, handleScrollEnd: function () { de.prototype.handleScrollEnd.apply(this, arguments), this.isDragging && (this.component.releaseHits(), this.component.prepareHits()) }, queryHit: function (t, e) { return this.coordAdjust && (t += this.coordAdjust.left, e += this.coordAdjust.top), this.component.queryHit(t, e) } }); Vt.touchMouseIgnoreWait = 500; var ge = ht.extend(ne, ee, { isTouching: !1, mouseIgnoreDepth: 0, handleScrollProxy: null, bind: function () { var e = this; this.listenTo(t(document), { touchstart: this.handleTouchStart, touchcancel: this.handleTouchCancel, touchend: this.handleTouchEnd, mousedown: this.handleMouseDown, mousemove: this.handleMouseMove, mouseup: this.handleMouseUp, click: this.handleClick, selectstart: this.handleSelectStart, contextmenu: this.handleContextMenu }), window.addEventListener("touchmove", this.handleTouchMoveProxy = function (n) { e.handleTouchMove(t.Event(n)) }, { passive: !1 }), window.addEventListener("scroll", this.handleScrollProxy = function (n) { e.handleScroll(t.Event(n)) }, !0) }, unbind: function () { this.stopListeningTo(t(document)), window.removeEventListener("touchmove", this.handleTouchMoveProxy), window.removeEventListener("scroll", this.handleScrollProxy, !0) }, handleTouchStart: function (t) { this.stopTouch(t, !0), this.isTouching = !0, this.trigger("touchstart", t) }, handleTouchMove: function (t) { this.isTouching && this.trigger("touchmove", t) }, handleTouchCancel: function (t) { this.isTouching && (this.trigger("touchcancel", t), this.stopTouch(t)) }, handleTouchEnd: function (t) { this.stopTouch(t) }, handleMouseDown: function (t) { this.shouldIgnoreMouse() || this.trigger("mousedown", t) }, handleMouseMove: function (t) { this.shouldIgnoreMouse() || this.trigger("mousemove", t) }, handleMouseUp: function (t) { this.shouldIgnoreMouse() || this.trigger("mouseup", t) }, handleClick: function (t) { this.shouldIgnoreMouse() || this.trigger("click", t) }, handleSelectStart: function (t) { this.trigger("selectstart", t) }, handleContextMenu: function (t) { this.trigger("contextmenu", t) }, handleScroll: function (t) { this.trigger("scroll", t) }, stopTouch: function (t, e) { this.isTouching && (this.isTouching = !1, this.trigger("touchend", t), e || this.startTouchMouseIgnore()) }, startTouchMouseIgnore: function () { var t = this, e = Vt.touchMouseIgnoreWait; e && (this.mouseIgnoreDepth++, setTimeout(function () { t.mouseIgnoreDepth-- }, e)) }, shouldIgnoreMouse: function () { return this.isTouching || Boolean(this.mouseIgnoreDepth) } }); !function () { var t = null, e = 0; ge.get = function () { return t || (t = new ge, t.bind()), t }, ge.needed = function () { ge.get(), e++ }, ge.unneeded = function () { --e || (t.unbind(), t = null) } }(); var pe = ht.extend(ne, { options: null, sourceEl: null, el: null, parentEl: null, top0: null, left0: null, y0: null, x0: null, topDelta: null, leftDelta: null, isFollowing: !1, isHidden: !1, isAnimating: !1, constructor: function (e, n) { this.options = n = n || {}, this.sourceEl = e, this.parentEl = n.parentEl ? t(n.parentEl) : e.parent() }, start: function (e) { this.isFollowing || (this.isFollowing = !0, this.y0 = S(e), this.x0 = b(e), this.topDelta = 0, this.leftDelta = 0, this.isHidden || this.updatePosition(), E(e) ? this.listenTo(t(document), "touchmove", this.handleMove) : this.listenTo(t(document), "mousemove", this.handleMove)) }, stop: function (e, n) { function i() { s.isAnimating = !1, s.removeElement(), s.top0 = s.left0 = null, n && n() } var s = this, r = this.options.revertDuration; this.isFollowing && !this.isAnimating && (this.isFollowing = !1, this.stopListeningTo(t(document)), e && r && !this.isHidden ? (this.isAnimating = !0, this.el.animate({ top: this.top0, left: this.left0 }, { duration: r, complete: i })) : i()) }, getEl: function () { var t = this.el; return t || (t = this.el = this.sourceEl.clone().addClass(this.options.additionalClass || "").css({ position: "absolute", visibility: "", display: this.isHidden ? "none" : "", margin: 0, right: "auto", bottom: "auto", width: this.sourceEl.width(), height: this.sourceEl.height(), opacity: this.options.opacity || "", zIndex: this.options.zIndex }), t.addClass("fc-unselectable"), t.appendTo(this.parentEl)), t }, removeElement: function () { this.el && (this.el.remove(), this.el = null) }, updatePosition: function () { var t, e; this.getEl(), null === this.top0 && (t = this.sourceEl.offset(), e = this.el.offsetParent().offset(), this.top0 = t.top - e.top, this.left0 = t.left - e.left), this.el.css({ top: this.top0 + this.topDelta, left: this.left0 + this.leftDelta }) }, handleMove: function (t) { this.topDelta = S(t) - this.y0, this.leftDelta = b(t) - this.x0, this.isHidden || this.updatePosition() }, hide: function () { this.isHidden || (this.isHidden = !0, this.el && this.el.hide()) }, show: function () { this.isHidden && (this.isHidden = !1, this.updatePosition(), this.getEl().show()) } }), ve = oe.extend({ children: null, el: null, isRTL: !1, nextDayThreshold: null, constructor: function () { oe.call(this), this.children = [], this.nextDayThreshold = e.duration(this.opt("nextDayThreshold")), this.isRTL = this.opt("isRTL") }, addChild: function (t) { this.children.push(t) }, opt: function (t) { }, publiclyTrigger: function () { var t = this._getCalendar(); return t.publiclyTrigger.apply(t, arguments) }, hasPublicHandlers: function () { var t = this._getCalendar(); return t.hasPublicHandlers.apply(t, arguments) }, setElement: function (t) { this.el = t, this.bindGlobalHandlers(), this.renderSkeleton() }, removeElement: function () { this.unrenderSkeleton(), this.unbindGlobalHandlers(), this.el.remove() }, bindGlobalHandlers: function () { }, unbindGlobalHandlers: function () { }, renderSkeleton: function () { }, unrenderSkeleton: function () { }, renderDates: function () { }, unrenderDates: function () { }, getNowIndicatorUnit: function () { }, renderNowIndicator: function (t) { this.callChildren("renderNowIndicator", t) }, unrenderNowIndicator: function () { this.callChildren("unrenderNowIndicator") }, renderBusinessHours: function () { this.callChildren("renderBusinessHours") }, unrenderBusinessHours: function () { this.callChildren("unrenderBusinessHours") }, renderEventsPayload: function (t) { this.callChildren("renderEventsPayload", t) }, unrenderEvents: function () { this.callChildren("unrenderEvents") }, getEventSegs: function () { var t, e = this.children, n = []; for (t = 0; t < e.length; t++) n.push.apply(n, e[t].getEventSegs()); return n }, renderDrag: function (t, e) { var n, i, s = null, r = this.children; for (n = 0; n < r.length; n++) (i = r[n].renderDrag(t, e)) && (s = s ? s.add(i) : i); return s }, unrenderDrag: function () { this.callChildren("unrenderDrag") }, renderSelectionFootprint: function (t) { this.callChildren("renderSelectionFootprint", t) }, unrenderSelection: function () { this.callChildren("unrenderSelection") }, hitsNeeded: function () { this.callChildren("hitsNeeded") }, hitsNotNeeded: function () { this.callChildren("hitsNotNeeded") }, prepareHits: function () { this.callChildren("prepareHits") }, releaseHits: function () { this.callChildren("releaseHits") }, queryHit: function (t, e) { var n, i, s = this.children; for (n = 0; n < s.length && !(i = s[n].queryHit(t, e)) ; n++); return i }, isEventDefDraggable: function (t) { return this.isEventDefStartEditable(t) }, isEventDefStartEditable: function (t) { var e = t.isStartExplicitlyEditable(); return null == e && null == (e = this.opt("eventStartEditable")) && (e = this.isEventDefGenerallyEditable(t)), e }, isEventDefGenerallyEditable: function (t) { var e = t.isExplicitlyEditable(); return null == e && (e = this.opt("editable")), e }, isEventDefResizableFromStart: function (t) { return this.opt("eventResizableFromStart") && this.isEventDefResizable(t) }, isEventDefResizableFromEnd: function (t) { return this.isEventDefResizable(t) }, isEventDefResizable: function (t) { var e = t.isDurationExplicitlyEditable(); return null == e && null == (e = this.opt("eventDurationEditable")) && (e = this.isEventDefGenerallyEditable(t)), e }, renderFgSegs: function (t) { }, unrenderFgSegs: function () { }, renderFgSegEls: function (e, n) { var i, s = this, r = this.hasPublicHandlers("eventRender"), o = "", a = []; if (e.length) { for (i = 0; i < e.length; i++) o += this.fgSegHtml(e[i], n); t(o).each(function (n, i) { var o = e[n], l = t(i); r && (l = s.filterEventRenderEl(o.footprint, l)), l && (l.data("fc-seg", o), o.el = l, a.push(o)) }) } return a }, fgSegHtml: function (t, e) { }, filterEventRenderEl: function (e, n) { var i = e.getEventLegacy(), s = this.publiclyTrigger("eventRender", { context: i, args: [i, n, this._getView()] }); return !1 === s ? n = null : s && !0 !== s && (n = t(s)), n }, buildGotoAnchorHtml: function (e, n, i) { var s, r, o, a; return t.isPlainObject(e) ? (s = e.date, r = e.type, o = e.forceOff) : s = e, s = Vt.moment(s), a = { date: s.format("YYYY-MM-DD"), type: r || "day" }, "string" == typeof n && (i = n, n = null), n = n ? " " + it(n) : "", i = i || "", !o && this.opt("navLinks") ? "<a" + n + ' data-goto="' + tt(JSON.stringify(a)) + '">' + i + "</a>" : "<span" + n + ">" + i + "</span>" }, formatRange: function (t, e, n, i) { var s = t.end; return e && (s = s.clone().subtract(1)), Jt(t.start, s, n, i, this.isRTL) }, getAllDayHtml: function () { return this.opt("allDayHtml") || tt(this.opt("allDayText")) }, getDayClasses: function (t, e) { var n, i = this._getView(), s = []; return i.activeUnzonedRange.containsDate(t) ? (s.push("fc-" + _t[t.day()]), i.isDateInOtherMonth(t) && s.push("fc-other-month"), n = i.calendar.getNow(), t.isSame(n, "day") ? (s.push("fc-today"), !0 !== e && s.push(i.calendar.theme.getClass("today"))) : t < n ? s.push("fc-past") : s.push("fc-future")) : s.push("fc-disabled-day"), s }, computeDayRange: function (t) { var e = this._getCalendar(), n = e.msToUtcMoment(t.startMs, !0), i = e.msToUtcMoment(t.endMs), s = +i.time(), r = i.clone().stripTime(); return s && s >= this.nextDayThreshold && r.add(1, "days"), r <= n && (r = n.clone().add(1, "days")), { start: n, end: r } }, isMultiDayRange: function (t) { var e = this.computeDayRange(t); return e.end.diff(e.start, "days") > 1 }, callChildren: function (t) { var e, n, i = Array.prototype.slice.call(arguments, 1), s = this.children; for (e = 0; e < s.length; e++) n = s[e], n[t].apply(n, i) }, _getCalendar: function () { return this.calendar || this.view.calendar }, _getView: function () { return this.view } }), me = Vt.Grid = ve.extend({ hasDayInteractions: !0, view: null, isRTL: null, unzonedRange: null, hitsNeededDepth: 0, dayClickListener: null, daySelectListener: null, segDragListener: null, segResizeListener: null, externalDragListener: null, constructor: function (t) { this.view = t, ve.call(this), this.initFillInternals(), this.dayClickListener = this.buildDayClickListener(), this.daySelectListener = this.buildDaySelectListener() }, opt: function (t) { return this.view.opt(t) }, setRange: function (t) { this.unzonedRange = t, this.rangeUpdated(), this.processRangeOptions() }, rangeUpdated: function () { }, processRangeOptions: function () { var t, e; this.eventTimeFormat = this.opt("eventTimeFormat") || this.opt("timeFormat") || this.computeEventTimeFormat(), t = this.opt("displayEventTime"), null == t && (t = this.computeDisplayEventTime()), e = this.opt("displayEventEnd"), null == e && (e = this.computeDisplayEventEnd()), this.displayEventTime = t, this.displayEventEnd = e }, hitsNeeded: function () { this.hitsNeededDepth++ || this.prepareHits() }, hitsNotNeeded: function () { this.hitsNeededDepth && !--this.hitsNeededDepth && this.releaseHits() }, getSafeHitFootprint: function (t) { var e = this.getHitFootprint(t); return this.view.activeUnzonedRange.containsRange(e.unzonedRange) ? e : null }, getHitFootprint: function (t) { }, getHitEl: function (t) { }, setElement: function (t) { ve.prototype.setElement.apply(this, arguments), this.hasDayInteractions && (C(t), this.bindDayHandler("touchstart", this.dayTouchStart), this.bindDayHandler("mousedown", this.dayMousedown)), this.bindSegHandlers() }, bindDayHandler: function (e, n) { var i = this; this.el.on(e, function (e) { if (!t(e.target).is(i.segSelector + "," + i.segSelector + " *,.fc-more,a[data-goto]")) return n.call(i, e) }) }, removeElement: function () { ve.prototype.removeElement.apply(this, arguments), this.clearDragListeners() }, bindGlobalHandlers: function () { ve.prototype.bindGlobalHandlers.apply(this, arguments), this.listenTo(t(document), { dragstart: this.externalDragStart, sortstart: this.externalDragStart }) }, unbindGlobalHandlers: function () { ve.prototype.unbindGlobalHandlers.apply(this, arguments), this.stopListeningTo(t(document)) }, dayMousedown: function (t) { ge.get().shouldIgnoreMouse() || (this.dayClickListener.startInteraction(t), this.opt("selectable") && this.daySelectListener.startInteraction(t, { distance: this.opt("selectMinDistance") })) }, dayTouchStart: function (t) { var e, n = this.view; n.isSelected || n.selectedEvent || (e = this.opt("selectLongPressDelay"), null == e && (e = this.opt("longPressDelay")), this.dayClickListener.startInteraction(t), this.opt("selectable") && this.daySelectListener.startInteraction(t, { delay: e })) }, clearDragListeners: function () { this.dayClickListener.endInteraction(), this.daySelectListener.endInteraction(), this.segDragListener && this.segDragListener.endInteraction(), this.segResizeListener && this.segResizeListener.endInteraction(), this.externalDragListener && this.externalDragListener.endInteraction() }, renderHighlight: function (t) { this.renderFill("highlight", this.componentFootprintToSegs(t)) }, unrenderHighlight: function () { this.unrenderFill("highlight") }, eventRangesToEventFootprints: function (t) { var e, n = []; for (e = 0; e < t.length; e++) n.push.apply(n, this.eventRangeToEventFootprints(t[e])); return n }, eventRangeToEventFootprints: function (t) { return [new Ue(new xe(t.unzonedRange, t.eventDef.isAllDay()), t.eventDef, t.eventInstance)] }, eventFootprintsToSegs: function (t) { var e, n = []; for (e = 0; e < t.length; e++) n.push.apply(n, this.eventFootprintToSegs(t[e])); return n }, eventFootprintToSegs: function (t, e) { var n, i, s, r = t.componentFootprint.unzonedRange; for (e && (r = r.intersect(e)), n = this.componentFootprintToSegs(t.componentFootprint), i = 0; i < n.length; i++) s = n[i], r.isStart || (s.isStart = !1), r.isEnd || (s.isEnd = !1), s.footprint = t; return n }, componentFootprintToSegs: function (t) { } }); me.mixin({ buildDayClickListener: function () { var t, e = this, n = new fe(this, { scroll: this.opt("dragScroll"), interactionStart: function () { t = n.origHit }, hitOver: function (e, n, i) { n || (t = null) }, hitOut: function () { t = null }, interactionEnd: function (n, i) { var s; !i && t && (s = e.getSafeHitFootprint(t)) && e.view.triggerDayClick(s, e.getHitEl(t), n) } }); return n.shouldCancelTouchScroll = !1, n.scrollAlwaysKills = !0, n } }), me.mixin({ buildDaySelectListener: function () { var t, e = this; return new fe(this, { scroll: this.opt("dragScroll"), interactionStart: function () { t = null }, dragStart: function () { e.view.unselect() }, hitOver: function (n, i, s) { var o, a; s && (o = e.getSafeHitFootprint(s), a = e.getSafeHitFootprint(n), t = o && a ? e.computeSelection(o, a) : null, t ? e.renderSelectionFootprint(t) : !1 === t && r()) }, hitOut: function () { t = null, e.unrenderSelection() }, hitDone: function () { o() }, interactionEnd: function (n, i) { !i && t && e.view.reportSelection(t, n) } }) }, renderSelectionFootprint: function (t) { this.renderHighlight(t) }, unrenderSelection: function () { this.unrenderHighlight() }, computeSelection: function (t, e) { var n = this.computeSelectionFootprint(t, e); return !(n && !this.isSelectionFootprintAllowed(n)) && n }, computeSelectionFootprint: function (t, e) { var n = [t.unzonedRange.startMs, t.unzonedRange.endMs, e.unzonedRange.startMs, e.unzonedRange.endMs]; return n.sort(rt), new xe(new Me(n[0], n[3]), t.isAllDay) }, isSelectionFootprintAllowed: function (t) { return this.view.validUnzonedRange.containsRange(t.unzonedRange) && this.view.calendar.isSelectionFootprintAllowed(t) } }), me.mixin({ businessHoursSegClasses: function (t) { return ["fc-nonbusiness", "fc-bgevent"] }, buildBusinessHourSegs: function (t) { return this.eventFootprintsToSegs(this.buildBusinessHourEventFootprints(t)) }, buildBusinessHourEventFootprints: function (t) { var e = this.view.calendar; return this._buildBusinessHourEventFootprints(t, e.opt("businessHours")) }, _buildBusinessHourEventFootprints: function (t, e) { var n, i, s = this.view.calendar; return n = s.buildBusinessInstanceGroup(t, e, this.unzonedRange), i = n ? n.sliceRenderRanges(this.unzonedRange, s) : [], this.eventRangesToEventFootprints(i) } }), me.mixin({ segs: null, eventTimeFormat: null, displayEventTime: null, displayEventEnd: null, computeEventTimeFormat: function () { return this.opt("smallTimeFormat") }, computeDisplayEventTime: function () { return !0 }, computeDisplayEventEnd: function () { return !0 }, renderEventsPayload: function (t) { var e, n, i, s, r, o = [], a = []; for (e in t) n = t[e], i = n.sliceRenderRanges(this.view.activeUnzonedRange), s = this.eventRangesToEventFootprints(i), r = this.eventFootprintsToSegs(s), n.getEventDef().hasBgRendering() ? o.push.apply(o, r) : a.push.apply(a, r); this.segs = [].concat(this.renderBgSegs(o) || o, this.renderFgSegs(a) || a) }, unrenderEvents: function () { this.handleSegMouseout(), this.clearDragListeners(), this.unrenderFgSegs(), this.unrenderBgSegs(), this.segs = null }, getEventSegs: function () { return this.segs || [] }, renderBgSegs: function (t) { return this.renderFill("bgEvent", t) }, unrenderBgSegs: function () { this.unrenderFill("bgEvent") }, bgEventSegEl: function (t, e) { return this.filterEventRenderEl(t.footprint, e) }, bgEventSegClasses: function (t) { var e = t.footprint.eventDef; return ["fc-bgevent"].concat(e.className, e.source.className) }, bgEventSegCss: function (t) { return { "background-color": this.getSegSkinCss(t)["background-color"] } }, getEventTimeText: function (t, e, n) { return this._getEventTimeText(t.eventInstance.dateProfile.start, t.eventInstance.dateProfile.end, t.componentFootprint.isAllDay, e, n) }, _getEventTimeText: function (t, e, n, i, s) { return null == i && (i = this.eventTimeFormat), null == s && (s = this.displayEventEnd), this.displayEventTime && !n ? s && e ? this.view.formatRange({ start: t, end: e }, !1, i) : t.format(i) : "" }, getSegClasses: function (t, e, n) { var i = this.view, s = ["fc-event", t.isStart ? "fc-start" : "fc-not-start", t.isEnd ? "fc-end" : "fc-not-end"].concat(this.getSegCustomClasses(t)); return e && s.push("fc-draggable"), n && s.push("fc-resizable"), i.isEventDefSelected(t.footprint.eventDef) && s.push("fc-selected"), s }, getSegCustomClasses: function (t) { var e = t.footprint.eventDef; return [].concat(e.className, e.source.className) }, getSegSkinCss: function (t) { return { "background-color": this.getSegBackgroundColor(t), "border-color": this.getSegBorderColor(t), color: this.getSegTextColor(t) } }, getSegBackgroundColor: function (t) { var e = t.footprint.eventDef; return e.backgroundColor || e.color || this.getSegDefaultBackgroundColor(t) }, getSegDefaultBackgroundColor: function (t) { var e = t.footprint.eventDef.source; return e.backgroundColor || e.color || this.opt("eventBackgroundColor") || this.opt("eventColor") }, getSegBorderColor: function (t) { var e = t.footprint.eventDef; return e.borderColor || e.color || this.getSegDefaultBorderColor(t) }, getSegDefaultBorderColor: function (t) { var e = t.footprint.eventDef.source; return e.borderColor || e.color || this.opt("eventBorderColor") || this.opt("eventColor") }, getSegTextColor: function (t) { return t.footprint.eventDef.textColor || this.getSegDefaultTextColor(t) }, getSegDefaultTextColor: function (t) { return t.footprint.eventDef.source.textColor || this.opt("eventTextColor") }, sortEventSegs: function (t) { t.sort(at(this, "compareEventSegs")) }, compareEventSegs: function (t, e) { var n = t.footprint.componentFootprint, i = n.unzonedRange, s = e.footprint.componentFootprint, r = s.unzonedRange; return i.startMs - r.startMs || r.endMs - r.startMs - (i.endMs - i.startMs) || s.isAllDay - n.isAllDay || F(t.footprint.eventDef, e.footprint.eventDef, this.view.eventOrderSpecs) } }), me.mixin({ segSelector: ".fc-event-container > *", mousedOverSeg: null, largeUnit: null, diffDates: function (t, e) { return this.largeUnit ? L(t, e, this.largeUnit) : k(t, e) }, bindSegHandlers: function () { this.bindSegHandlersToEl(this.el) }, bindSegHandlersToEl: function (t) { this.bindSegHandlerToEl(t, "touchstart", this.handleSegTouchStart), this.bindSegHandlerToEl(t, "mouseenter", this.handleSegMouseover), this.bindSegHandlerToEl(t, "mouseleave", this.handleSegMouseout), this.bindSegHandlerToEl(t, "mousedown", this.handleSegMousedown), this.bindSegHandlerToEl(t, "click", this.handleSegClick) }, bindSegHandlerToEl: function (e, n, i) { var s = this; e.on(n, this.segSelector, function (e) { var n = t(this).data("fc-seg"); if (n && !s.isDraggingSeg && !s.isResizingSeg) return i.call(s, n, e) }) }, handleSegClick: function (t, e) { !1 === this.publiclyTrigger("eventClick", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, this.view] }) && e.preventDefault() }, handleSegMouseover: function (t, e) { ge.get().shouldIgnoreMouse() || this.mousedOverSeg || (this.mousedOverSeg = t, this.view.isEventDefResizable(t.footprint.eventDef) && t.el.addClass("fc-allow-mouse-resize"), this.publiclyTrigger("eventMouseover", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, this.view] })) }, handleSegMouseout: function (t, e) { e = e || {}, this.mousedOverSeg && (t = t || this.mousedOverSeg, this.mousedOverSeg = null, this.view.isEventDefResizable(t.footprint.eventDef) && t.el.removeClass("fc-allow-mouse-resize"), this.publiclyTrigger("eventMouseout", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, this.view] })) }, handleSegMousedown: function (t, e) { !this.startSegResize(t, e, { distance: 5 }) && this.view.isEventDefDraggable(t.footprint.eventDef) && this.buildSegDragListener(t).startInteraction(e, { distance: 5 }) }, handleSegTouchStart: function (t, e) { var n, i, s = this.view, r = t.footprint.eventDef, o = s.isEventDefSelected(r), a = s.isEventDefDraggable(r), l = s.isEventDefResizable(r), u = !1; o && l && (u = this.startSegResize(t, e)), u || !a && !l || (i = this.opt("eventLongPressDelay"), null == i && (i = this.opt("longPressDelay")), n = a ? this.buildSegDragListener(t) : this.buildSegSelectListener(t), n.startInteraction(e, { delay: o ? 0 : i })) }, buildSegSelectListener: function (t) { var e = this, n = this.view, i = t.footprint.eventDef, s = t.footprint.eventInstance; if (this.segDragListener) return this.segDragListener; var r = this.segDragListener = new de({ dragStart: function (t) { r.isTouch && !n.isEventDefSelected(i) && s && n.selectEventInstance(s) }, interactionEnd: function (t) { e.segDragListener = null } }); return r }, isEventInstanceGroupAllowed: function (t) { var e, n = this.eventRangesToEventFootprints(t.getAllEventRanges()); for (e = 0; e < n.length; e++) if (!this.view.validUnzonedRange.containsRange(n[e].componentFootprint.unzonedRange)) return !1; return this.view.calendar.isEventInstanceGroupAllowed(t) }, renderHelperEventFootprints: function (t, e) { return this.renderHelperEventFootprintEls(t, e).addClass("fc-helper") }, renderHelperEventFootprintEls: function (t, e) { }, unrenderHelper: function () { }, fabricateEventFootprint: function (t) { var e, n = this.view.calendar, i = n.footprintToDateProfile(t), s = new ke(new _e(n)); return s.dateProfile = i, e = s.buildInstance(), new Ue(t, s, e) } }), me.mixin({ isDraggingSeg: !1, buildSegDragListener: function (t) { var e, n, i, s = this, a = this.view, l = a.calendar, u = l.eventManager, c = t.el, h = t.footprint.eventDef, d = t.footprint.eventInstance; if (this.segDragListener) return this.segDragListener; var f = this.segDragListener = new fe(a, { scroll: this.opt("dragScroll"), subjectEl: c, subjectCenter: !0, interactionStart: function (i) { t.component = s, e = !1, n = new pe(t.el, { additionalClass: "fc-dragging", parentEl: a.el, opacity: f.isTouch ? null : s.opt("dragOpacity"), revertDuration: s.opt("dragRevertDuration"), zIndex: 2 }), n.hide(), n.start(i) }, dragStart: function (n) { f.isTouch && !a.isEventDefSelected(h) && d && a.selectEventInstance(d), e = !0, s.handleSegMouseout(t, n), s.segDragStart(t, n), a.hideEventsWithId(h.id) }, hitOver: function (e, o, c) { var d, g, p, v, m = !0; t.hit && (c = t.hit), d = c.component.getSafeHitFootprint(c), g = e.component.getSafeHitFootprint(e), d && g ? (i = s.computeEventDropMutation(d, g, h), i ? (p = u.buildMutatedEventInstanceGroup(h.id, i), m = s.isEventInstanceGroupAllowed(p)) : m = !1) : m = !1, m || (i = null, r()), i && (v = a.renderDrag(s.eventRangesToEventFootprints(p.sliceRenderRanges(s.unzonedRange, l)), t)) ? (v.addClass("fc-dragging"), f.isTouch || s.applyDragOpacity(v), n.hide()) : n.show(), o && (i = null) }, hitOut: function () { a.unrenderDrag(), n.show(), i = null }, hitDone: function () { o() }, interactionEnd: function (r) { delete t.component, n.stop(!i, function () { e && (a.unrenderDrag(), s.segDragStop(t, r)), i ? a.reportEventDrop(d, i, c, r) : a.showEventsWithId(h.id) }), s.segDragListener = null } }); return f }, segDragStart: function (t, e) { this.isDraggingSeg = !0, this.publiclyTrigger("eventDragStart", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, {}, this.view] }) }, segDragStop: function (t, e) { this.isDraggingSeg = !1, this.publiclyTrigger("eventDragStop", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, {}, this.view] }) }, computeEventDropMutation: function (t, e, n) { var i, s, r, o = t.unzonedRange.getStart(), a = e.unzonedRange.getStart(), l = !1, u = !1, c = !1; return t.isAllDay !== e.isAllDay && (l = !0, e.isAllDay ? (c = !0, o.stripTime()) : u = !0), i = this.diffDates(a, o), s = new We, s.clearEnd = l, s.forceTimed = u, s.forceAllDay = c, s.setDateDelta(i), r = new Ge, r.setDateMutation(s), r }, applyDragOpacity: function (t) { var e = this.opt("dragOpacity"); null != e && t.css("opacity", e) } }), me.mixin({ isResizingSeg: !1, startSegResize: function (e, n, i) { return !!t(n.target).is(".fc-resizer") && (this.buildSegResizeListener(e, t(n.target).is(".fc-start-resizer")).startInteraction(n, i), !0) }, buildSegResizeListener: function (t, e) { var n, i, s = this, a = this.view, l = a.calendar, u = l.eventManager, c = t.el, h = t.footprint.eventDef, d = t.footprint.eventInstance; return this.segResizeListener = new fe(this, { scroll: this.opt("dragScroll"), subjectEl: c, interactionStart: function () { n = !1 }, dragStart: function (e) { n = !0, s.handleSegMouseout(t, e), s.segResizeStart(t, e) }, hitOver: function (n, o, c) { var d, f = !0, g = s.getSafeHitFootprint(c), p = s.getSafeHitFootprint(n); g && p ? (i = e ? s.computeEventStartResizeMutation(g, p, t.footprint) : s.computeEventEndResizeMutation(g, p, t.footprint), i ? (d = u.buildMutatedEventInstanceGroup(h.id, i), f = s.isEventInstanceGroupAllowed(d)) : f = !1) : f = !1, f ? i.isEmpty() && (i = null) : (i = null, r()), i && (a.hideEventsWithId(h.id), s.renderEventResize(s.eventRangesToEventFootprints(d.sliceRenderRanges(s.unzonedRange, l)), t)) }, hitOut: function () { i = null, a.showEventsWithId(h.id) }, hitDone: function () { s.unrenderEventResize(), o() }, interactionEnd: function (e) { n && s.segResizeStop(t, e), i ? a.reportEventResize(d, i, c, e) : a.showEventsWithId(h.id), s.segResizeListener = null } }) }, segResizeStart: function (t, e) { this.isResizingSeg = !0, this.publiclyTrigger("eventResizeStart", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, {}, this.view] }) }, segResizeStop: function (t, e) { this.isResizingSeg = !1, this.publiclyTrigger("eventResizeStop", { context: t.el[0], args: [t.footprint.getEventLegacy(), e, {}, this.view] }) }, computeEventStartResizeMutation: function (t, e, n) { var i, s, r = n.componentFootprint.unzonedRange, o = this.diffDates(e.unzonedRange.getStart(), t.unzonedRange.getStart()); return r.getStart().add(o) < r.getEnd() && (i = new We, i.setStartDelta(o), s = new Ge, s.setDateMutation(i), s) }, computeEventEndResizeMutation: function (t, e, n) { var i, s, r = n.componentFootprint.unzonedRange, o = this.diffDates(e.unzonedRange.getEnd(), t.unzonedRange.getEnd()); return r.getEnd().add(o) > r.getStart() && (i = new We, i.setEndDelta(o), s = new Ge, s.setDateMutation(i), s) }, renderEventResize: function (t, e) { }, unrenderEventResize: function () { } }), me.mixin({ isDraggingExternal: !1, externalDragStart: function (e, n) { var i, s; this.opt("droppable") && (i = t((n ? n.item : null) || e.target), s = this.opt("dropAccept"), (t.isFunction(s) ? s.call(i[0], i) : i.is(s)) && (this.isDraggingExternal || this.listenToExternalDrag(i, e, n))) }, listenToExternalDrag: function (t, e, n) { var i, s = this, a = this.view, l = mt(t); (s.externalDragListener = new fe(this, { interactionStart: function () { s.isDraggingExternal = !0 }, hitOver: function (t) { var e, n = !0, o = t.component.getSafeHitFootprint(t); o ? (i = s.computeExternalDrop(o, l), i ? (e = new Oe(i.buildInstances()), n = l.eventProps ? s.isEventInstanceGroupAllowed(e) : s.isExternalInstanceGroupAllowed(e)) : n = !1) : n = !1, n || (i = null, r()), i && s.renderDrag(s.eventRangesToEventFootprints(e.sliceRenderRanges(s.unzonedRange, a.calendar))) }, hitOut: function () { i = null }, hitDone: function () { o(), s.unrenderDrag() }, interactionEnd: function (e) { i && a.reportExternalDrop(i, Boolean(l.eventProps), Boolean(l.stick), t, e, n), s.isDraggingExternal = !1, s.externalDragListener = null } })).startDrag(e) }, computeExternalDrop: function (e, n) { var i, s = this.view.calendar, r = Vt.moment.utc(e.unzonedRange.startMs).stripZone(); return e.isAllDay && (n.startTime ? r.time(n.startTime) : r.stripTime()), n.duration && (i = r.clone().add(n.duration)), r = s.applyTimezone(r), i && (i = s.applyTimezone(i)), ke.parse(t.extend({}, n.eventProps, { start: r, end: i }), new _e(s)) }, isExternalInstanceGroupAllowed: function (t) { var e, n = this.view.calendar, i = this.eventRangesToEventFootprints(t.getAllEventRanges()); for (e = 0; e < i.length; e++) if (!this.view.validUnzonedRange.containsRange(i[e].componentFootprint.unzonedRange)) return !1; for (e = 0; e < i.length; e++) if (!n.isSelectionFootprintAllowed(i[e].componentFootprint)) return !1; return !0 } }), Vt.dataAttrPrefix = "", me.mixin({
        elsByFill: null, initFillInternals: function () { this.elsByFill = {} }, renderFill: function (t, e) { }, unrenderFill: function (t) { var e = this.elsByFill[t]; e && (e.remove(), delete this.elsByFill[t]) }, renderFillSegEls: function (e, n) {
            var i, s = this, r = this[e + "SegEl"], o = "", a = []; if (n.length) {
                for (i = 0; i < n.length; i++) o += this.fillSegHtml(e, n[i]); t(o).each(function (e, i) { var o = n[e], l = t(i); r && (l = r.call(s, o, l)), l && (l = t(l), l.is(s.fillSegTag) && (o.el = l, a.push(o))) })
            } return a
        }, fillSegTag: "div", fillSegHtml: function (t, e) { var n = this[t + "SegClasses"], i = this[t + "SegCss"], s = n ? n.call(this, e) : [], r = nt(i ? i.call(this, e) : {}); return "<" + this.fillSegTag + (s.length ? ' class="' + s.join(" ") + '"' : "") + (r ? ' style="' + r + '"' : "") + " />" }, highlightSegClasses: function () { return ["fc-highlight"] }
    }); var ye = Vt.DayTableMixin = { breakOnWeeks: !1, dayDates: null, dayIndices: null, daysPerRow: null, rowCnt: null, colCnt: null, colHeadFormat: null, updateDayTable: function () { for (var t, e, n, i = this.view, s = i.calendar, r = s.msToUtcMoment(this.unzonedRange.startMs, !0), o = s.msToUtcMoment(this.unzonedRange.endMs, !0), a = -1, l = [], u = []; r.isBefore(o) ;) i.isHiddenDay(r) ? l.push(a + .5) : (a++, l.push(a), u.push(r.clone())), r.add(1, "days"); if (this.breakOnWeeks) { for (e = u[0].day(), t = 1; t < u.length && u[t].day() != e; t++); n = Math.ceil(u.length / t) } else n = 1, t = u.length; this.dayDates = u, this.dayIndices = l, this.daysPerRow = t, this.rowCnt = n, this.updateDayTableCols() }, updateDayTableCols: function () { this.colCnt = this.computeColCnt(), this.colHeadFormat = this.opt("columnFormat") || this.computeColHeadFormat() }, computeColCnt: function () { return this.daysPerRow }, getCellDate: function (t, e) { return this.dayDates[this.getCellDayIndex(t, e)].clone() }, getCellRange: function (t, e) { var n = this.getCellDate(t, e); return { start: n, end: n.clone().add(1, "days") } }, getCellDayIndex: function (t, e) { return t * this.daysPerRow + this.getColDayIndex(e) }, getColDayIndex: function (t) { return this.isRTL ? this.colCnt - 1 - t : t }, getDateDayIndex: function (t) { var e = this.dayIndices, n = t.diff(this.dayDates[0], "days"); return n < 0 ? e[0] - 1 : n >= e.length ? e[e.length - 1] + 1 : e[n] }, computeColHeadFormat: function () { return this.rowCnt > 1 || this.colCnt > 10 ? "ddd" : this.colCnt > 1 ? this.opt("dayOfMonthFormat") : "dddd" }, sliceRangeByRow: function (t) { var e, n, i, s, r, o = this.daysPerRow, a = this.view.computeDayRange(t), l = this.getDateDayIndex(a.start), u = this.getDateDayIndex(a.end.clone().subtract(1, "days")), c = []; for (e = 0; e < this.rowCnt; e++) n = e * o, i = n + o - 1, s = Math.max(l, n), r = Math.min(u, i), s = Math.ceil(s), r = Math.floor(r), s <= r && c.push({ row: e, firstRowDayIndex: s - n, lastRowDayIndex: r - n, isStart: s === l, isEnd: r === u }); return c }, sliceRangeByDay: function (t) { var e, n, i, s, r, o, a = this.daysPerRow, l = this.view.computeDayRange(t), u = this.getDateDayIndex(l.start), c = this.getDateDayIndex(l.end.clone().subtract(1, "days")), h = []; for (e = 0; e < this.rowCnt; e++) for (n = e * a, i = n + a - 1, s = n; s <= i; s++) r = Math.max(u, s), o = Math.min(c, s), r = Math.ceil(r), o = Math.floor(o), r <= o && h.push({ row: e, firstRowDayIndex: r - n, lastRowDayIndex: o - n, isStart: r === u, isEnd: o === c }); return h }, renderHeadHtml: function () { var t = this.view.calendar.theme; return '<div class="fc-row ' + t.getClass("headerRow") + '"><table class="' + t.getClass("tableGrid") + '"><thead>' + this.renderHeadTrHtml() + "</thead></table></div>" }, renderHeadIntroHtml: function () { return this.renderIntroHtml() }, renderHeadTrHtml: function () { return "<tr>" + (this.isRTL ? "" : this.renderHeadIntroHtml()) + this.renderHeadDateCellsHtml() + (this.isRTL ? this.renderHeadIntroHtml() : "") + "</tr>" }, renderHeadDateCellsHtml: function () { var t, e, n = []; for (t = 0; t < this.colCnt; t++) e = this.getCellDate(0, t), n.push(this.renderHeadDateCellHtml(e)); return n.join("") }, renderHeadDateCellHtml: function (t, e, n) { var i = this.view, s = i.activeUnzonedRange.containsDate(t), r = ["fc-day-header", i.calendar.theme.getClass("widgetHeader")], o = tt(t.format(this.colHeadFormat)); return 1 === this.rowCnt ? r = r.concat(this.getDayClasses(t, !0)) : r.push("fc-" + _t[t.day()]), '<th class="' + r.join(" ") + '"' + (1 === (s && this.rowCnt) ? ' data-date="' + t.format("YYYY-MM-DD") + '"' : "") + (e > 1 ? ' colspan="' + e + '"' : "") + (n ? " " + n : "") + ">" + (s ? i.buildGotoAnchorHtml({ date: t, forceOff: this.rowCnt > 1 || 1 === this.colCnt }, o) : o) + "</th>" }, renderBgTrHtml: function (t) { return "<tr>" + (this.isRTL ? "" : this.renderBgIntroHtml(t)) + this.renderBgCellsHtml(t) + (this.isRTL ? this.renderBgIntroHtml(t) : "") + "</tr>" }, renderBgIntroHtml: function (t) { return this.renderIntroHtml() }, renderBgCellsHtml: function (t) { var e, n, i = []; for (e = 0; e < this.colCnt; e++) n = this.getCellDate(t, e), i.push(this.renderBgCellHtml(n)); return i.join("") }, renderBgCellHtml: function (t, e) { var n = this.view, i = n.activeUnzonedRange.containsDate(t), s = this.getDayClasses(t); return s.unshift("fc-day", n.calendar.theme.getClass("widgetContent")), '<td class="' + s.join(" ") + '"' + (i ? ' data-date="' + t.format("YYYY-MM-DD") + '"' : "") + (e ? " " + e : "") + "></td>" }, renderIntroHtml: function () { }, bookendCells: function (t) { var e = this.renderIntroHtml(); e && (this.isRTL ? t.append(e) : t.prepend(e)) } }, we = Vt.DayGrid = me.extend(ye, { numbersVisible: !1, bottomCoordPadding: 0, rowEls: null, cellEls: null, helperEls: null, rowCoordCache: null, colCoordCache: null, renderDates: function (t) { var e, n, i = this.view, s = this.rowCnt, r = this.colCnt, o = ""; for (e = 0; e < s; e++) o += this.renderDayRowHtml(e, t); for (this.el.html(o), this.rowEls = this.el.find(".fc-row"), this.cellEls = this.el.find(".fc-day, .fc-disabled-day"), this.rowCoordCache = new he({ els: this.rowEls, isVertical: !0 }), this.colCoordCache = new he({ els: this.cellEls.slice(0, this.colCnt), isHorizontal: !0 }), e = 0; e < s; e++) for (n = 0; n < r; n++) this.publiclyTrigger("dayRender", { context: i, args: [this.getCellDate(e, n), this.getCellEl(e, n), i] }) }, unrenderDates: function () { this.removeSegPopover() }, renderBusinessHours: function () { var t = this.buildBusinessHourSegs(!0); this.renderFill("businessHours", t, "bgevent") }, unrenderBusinessHours: function () { this.unrenderFill("businessHours") }, renderDayRowHtml: function (t, e) { var n = this.view.calendar.theme, i = ["fc-row", "fc-week", n.getClass("dayRow")]; return e && i.push("fc-rigid"), '<div class="' + i.join(" ") + '"><div class="fc-bg"><table class="' + n.getClass("tableGrid") + '">' + this.renderBgTrHtml(t) + '</table></div><div class="fc-content-skeleton"><table>' + (this.numbersVisible ? "<thead>" + this.renderNumberTrHtml(t) + "</thead>" : "") + "</table></div></div>" }, renderNumberTrHtml: function (t) { return "<tr>" + (this.isRTL ? "" : this.renderNumberIntroHtml(t)) + this.renderNumberCellsHtml(t) + (this.isRTL ? this.renderNumberIntroHtml(t) : "") + "</tr>" }, renderNumberIntroHtml: function (t) { return this.renderIntroHtml() }, renderNumberCellsHtml: function (t) { var e, n, i = []; for (e = 0; e < this.colCnt; e++) n = this.getCellDate(t, e), i.push(this.renderNumberCellHtml(n)); return i.join("") }, renderNumberCellHtml: function (t) { var e, n, i = this.view, s = "", r = i.activeUnzonedRange.containsDate(t), o = i.dayNumbersVisible && r; return o || i.cellWeekNumbersVisible ? (e = this.getDayClasses(t), e.unshift("fc-day-top"), i.cellWeekNumbersVisible && (n = "ISO" === t._locale._fullCalendar_weekCalc ? 1 : t._locale.firstDayOfWeek()), s += '<td tabindex="0" class="' + e.join(" ") + '"' + (r ? ' data-date="' + t.format() + '"' : "") + ">", i.cellWeekNumbersVisible && t.day() == n && (s += i.buildGotoAnchorHtml({ date: t, type: "week" }, { class: "fc-week-number" }, t.format("w"))), o && (s += i.buildGotoAnchorHtml(t, { class: "fc-day-number" }, t.date())), s += "</td>") : "<td/>" }, computeEventTimeFormat: function () { return this.opt("extraSmallTimeFormat") }, computeDisplayEventEnd: function () { return 1 == this.colCnt }, rangeUpdated: function () { this.updateDayTable() }, componentFootprintToSegs: function (t) { var e, n, i = this.sliceRangeByRow(t.unzonedRange); for (e = 0; e < i.length; e++) n = i[e], this.isRTL ? (n.leftCol = this.daysPerRow - 1 - n.lastRowDayIndex, n.rightCol = this.daysPerRow - 1 - n.firstRowDayIndex) : (n.leftCol = n.firstRowDayIndex, n.rightCol = n.lastRowDayIndex); return i }, prepareHits: function () { this.colCoordCache.build(), this.rowCoordCache.build(), this.rowCoordCache.bottoms[this.rowCnt - 1] += this.bottomCoordPadding }, releaseHits: function () { this.colCoordCache.clear(), this.rowCoordCache.clear() }, queryHit: function (t, e) { if (this.colCoordCache.isLeftInBounds(t) && this.rowCoordCache.isTopInBounds(e)) { var n = this.colCoordCache.getHorizontalIndex(t), i = this.rowCoordCache.getVerticalIndex(e); if (null != i && null != n) return this.getCellHit(i, n) } }, getHitFootprint: function (t) { var e = this.getCellRange(t.row, t.col); return new xe(new Me(e.start, e.end), !0) }, getHitEl: function (t) { return this.getCellEl(t.row, t.col) }, getCellHit: function (t, e) { return { row: t, col: e, component: this, left: this.colCoordCache.getLeftOffset(e), right: this.colCoordCache.getRightOffset(e), top: this.rowCoordCache.getTopOffset(t), bottom: this.rowCoordCache.getBottomOffset(t) } }, getCellEl: function (t, e) { return this.cellEls.eq(t * this.colCnt + e) }, renderDrag: function (t, e) { var n; for (n = 0; n < t.length; n++) this.renderHighlight(t[n].componentFootprint); if (e && e.component !== this) return this.renderHelperEventFootprints(t, e) }, unrenderDrag: function () { this.unrenderHighlight(), this.unrenderHelper() }, renderEventResize: function (t, e) { var n; for (n = 0; n < t.length; n++) this.renderHighlight(t[n].componentFootprint); return this.renderHelperEventFootprints(t, e) }, unrenderEventResize: function () { this.unrenderHighlight(), this.unrenderHelper() }, renderHelperEventFootprintEls: function (e, n) { var i, s = [], r = this.eventFootprintsToSegs(e); return r = this.renderFgSegEls(r), i = this.renderSegRows(r), this.rowEls.each(function (e, r) { var o, a = t(r), l = t('<div class="fc-helper-skeleton"><table/></div>'); o = n && n.row === e ? n.el.position().top : a.find(".fc-content-skeleton tbody").position().top, l.css("top", o).find("table").append(i[e].tbodyEl), a.append(l), s.push(l[0]) }), this.helperEls = t(s) }, unrenderHelper: function () { this.helperEls && (this.helperEls.remove(), this.helperEls = null) }, fillSegTag: "td", renderFill: function (e, n, i) { var s, r, o, a = []; for (n = this.renderFillSegEls(e, n), s = 0; s < n.length; s++) r = n[s], o = this.renderFillRow(e, r, i), this.rowEls.eq(r.row).append(o), a.push(o[0]); return this.elsByFill[e] ? this.elsByFill[e] = this.elsByFill[e].add(a) : this.elsByFill[e] = t(a), n }, renderFillRow: function (e, n, i) { var s, r, o = this.colCnt, a = n.leftCol, l = n.rightCol + 1; return i = i || e.toLowerCase(), s = t('<div class="fc-' + i + '-skeleton"><table><tr/></table></div>'), r = s.find("tr"), a > 0 && r.append('<td colspan="' + a + '"/>'), r.append(n.el.attr("colspan", l - a)), l < o && r.append('<td colspan="' + (o - l) + '"/>'), this.bookendCells(r), s } }); we.mixin({ rowStructs: null, unrenderEvents: function () { this.removeSegPopover(), me.prototype.unrenderEvents.apply(this, arguments) }, getEventSegs: function () { return me.prototype.getEventSegs.call(this).concat(this.popoverSegs || []) }, renderBgSegs: function (e) { var n = t.grep(e, function (t) { return t.footprint.componentFootprint.isAllDay }); return me.prototype.renderBgSegs.call(this, n) }, renderFgSegs: function (e) { var n; return e = this.renderFgSegEls(e), n = this.rowStructs = this.renderSegRows(e), this.rowEls.each(function (e, i) { t(i).find(".fc-content-skeleton > table").append(n[e].tbodyEl) }), e }, unrenderFgSegs: function () { for (var t, e = this.rowStructs || []; t = e.pop() ;) t.tbodyEl.remove(); this.rowStructs = null }, renderSegRows: function (t) { var e, n, i = []; for (e = this.groupSegRows(t), n = 0; n < e.length; n++) i.push(this.renderSegRow(n, e[n])); return i }, fgSegHtml: function (t, e) { var n, i, s = this.view, r = t.footprint.eventDef, o = t.footprint.componentFootprint.isAllDay, a = s.isEventDefDraggable(r), l = !e && o && t.isStart && s.isEventDefResizableFromStart(r), u = !e && o && t.isEnd && s.isEventDefResizableFromEnd(r), c = this.getSegClasses(t, a, l || u), h = nt(this.getSegSkinCss(t)), d = ""; return c.unshift("fc-day-grid-event", "fc-h-event"), t.isStart && (n = this.getEventTimeText(t.footprint)) && (d = '<span class="fc-time">' + tt(n) + "</span>"), i = '<span class="fc-title">' + (tt(r.title || "") || "&nbsp;") + "</span>", '<a tabindex="0" class="' + c.join(" ") + '"' + (r.url ? ' href="' + tt(r.url) + '"' : "") + (h ? ' style="' + h + '"' : "") + '><div class="fc-content">' + (this.isRTL ? i + " " + d : d + " " + i) + "</div>" + (l ? '<div class="fc-resizer fc-start-resizer" />' : "") + (u ? '<div class="fc-resizer fc-end-resizer" />' : "") + "</a>" }, renderSegRow: function (e, n) { function i(e) { for (; o < e;) c = (m[s - 1] || [])[o], c ? c.attr("rowspan", parseInt(c.attr("rowspan") || 1, 10) + 1) : (c = t("<td/>"), a.append(c)), v[s][o] = c, m[s][o] = c, o++ } var s, r, o, a, l, u, c, h = this.colCnt, d = this.buildSegLevels(n), f = Math.max(1, d.length), g = t("<tbody/>"), p = [], v = [], m = []; for (s = 0; s < f; s++) { if (r = d[s], o = 0, a = t("<tr/>"), p.push([]), v.push([]), m.push([]), r) for (l = 0; l < r.length; l++) { for (u = r[l], i(u.leftCol), c = t('<td class="fc-event-container"/>').append(u.el), u.leftCol != u.rightCol ? c.attr("colspan", u.rightCol - u.leftCol + 1) : m[s][o] = c; o <= u.rightCol;) v[s][o] = c, p[s][o] = u, o++; a.append(c) } i(h), this.bookendCells(a), g.append(a) } return { row: e, tbodyEl: g, cellMatrix: v, segMatrix: p, segLevels: d, segs: n } }, buildSegLevels: function (t) { var e, n, i, s = []; for (this.sortEventSegs(t), e = 0; e < t.length; e++) { for (n = t[e], i = 0; i < s.length && yt(n, s[i]) ; i++); n.level = i, (s[i] || (s[i] = [])).push(n) } for (i = 0; i < s.length; i++) s[i].sort(wt); return s }, groupSegRows: function (t) { var e, n = []; for (e = 0; e < this.rowCnt; e++) n.push([]); for (e = 0; e < t.length; e++) n[t[e].row].push(t[e]); return n } }), we.mixin({ segPopover: null, popoverSegs: null, removeSegPopover: function () { this.segPopover && this.segPopover.hide() }, limitRows: function (t) { var e, n, i = this.rowStructs || []; for (e = 0; e < i.length; e++) this.unlimitRow(e), !1 !== (n = !!t && ("number" == typeof t ? t : this.computeRowLevelLimit(e))) && this.limitRow(e, n) }, computeRowLevelLimit: function (e) { function n(e, n) { r = Math.max(r, t(n).outerHeight()) } var i, s, r, o = this.rowEls.eq(e), a = o.height(), l = this.rowStructs[e].tbodyEl.children(); for (i = 0; i < l.length; i++) if (s = l.eq(i).removeClass("fc-limited"), r = 0, s.find("> td > :first-child").each(n), s.position().top + r > a) return i; return !1 }, limitRow: function (e, n) { function i(i) { for (; S < i;) u = w.getCellSegs(e, S, n), u.length && (d = r[n - 1][S], y = w.renderMoreLink(e, S, u), m = t("<div/>").append(y), d.append(m), b.push(m[0])), S++ } var s, r, o, a, l, u, c, h, d, f, g, p, v, m, y, w = this, D = this.rowStructs[e], b = [], S = 0; if (n && n < D.segLevels.length) { for (s = D.segLevels[n - 1], r = D.cellMatrix, o = D.tbodyEl.children().slice(n).addClass("fc-limited").get(), a = 0; a < s.length; a++) { for (l = s[a], i(l.leftCol), h = [], c = 0; S <= l.rightCol;) u = this.getCellSegs(e, S, n), h.push(u), c += u.length, S++; if (c) { for (d = r[n - 1][l.leftCol], f = d.attr("rowspan") || 1, g = [], p = 0; p < h.length; p++) v = t('<td class="fc-more-cell"/>').attr("rowspan", f), u = h[p], y = this.renderMoreLink(e, l.leftCol + p, [l].concat(u)), m = t("<div/>").append(y), v.append(m), g.push(v[0]), b.push(v[0]); d.addClass("fc-limited").after(t(g)), o.push(d[0]) } } i(this.colCnt), D.moreEls = t(b), D.limitedEls = t(o) } }, unlimitRow: function (t) { var e = this.rowStructs[t]; e.moreEls && (e.moreEls.remove(), e.moreEls = null), e.limitedEls && (e.limitedEls.removeClass("fc-limited"), e.limitedEls = null) }, renderMoreLink: function (e, n, i) { var s = this, r = this.view; return t('<a tabindex="0" class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click", function (o) { var a = s.opt("eventLimitClick"), l = s.getCellDate(e, n), u = t(this), c = s.getCellEl(e, n), h = s.getCellSegs(e, n), d = s.resliceDaySegs(h, l), f = s.resliceDaySegs(i, l); "function" == typeof a && (a = s.publiclyTrigger("eventLimitClick", { context: r, args: [{ date: l.clone(), dayEl: c, moreEl: u, segs: d, hiddenSegs: f }, o, r] })), "popover" === a ? s.showSegPopover(e, n, u, d) : "string" == typeof a && r.calendar.zoomTo(l, a) }) }, showSegPopover: function (t, e, n, i) { var s, r, o = this, a = this.view, l = n.parent(); s = 1 == this.rowCnt ? a.el : this.rowEls.eq(t), r = { className: "fc-more-popover " + a.calendar.theme.getClass("popover"), content: this.renderSegPopoverContent(t, e, i), parentEl: a.el, top: s.offset().top, autoHide: !0, viewportConstrain: this.opt("popoverViewportConstrain"), hide: function () { if (o.popoverSegs) { var t, e, n; for (n = 0; n < o.popoverSegs.length; ++n) t = o.popoverSegs[n], e = t.footprint.getEventLegacy(), o.publiclyTrigger("eventDestroy", { context: e, args: [e, t.el, a] }) } o.segPopover.removeElement(), o.segPopover = null, o.popoverSegs = null } }, this.isRTL ? r.right = l.offset().left + l.outerWidth() + 1 : r.left = l.offset().left - 1, this.segPopover = new ce(r), this.segPopover.show(), this.bindSegHandlersToEl(this.segPopover.el) }, renderSegPopoverContent: function (e, n, i) { var s, r = this.view, o = r.calendar.theme, a = this.getCellDate(e, n).format(this.opt("dayPopoverFormat")), l = t('<div class="fc-header ' + o.getClass("popoverHeader") + '"><span tabindex="0" class="fc-close ' + o.getIconClass("close") + '"></span><span class="fc-title">' + tt(a) + '</span><div class="fc-clear"/></div><div class="fc-body ' + o.getClass("popoverContent") + '"><div class="fc-event-container"></div></div>'), u = l.find(".fc-event-container"); for (i = this.renderFgSegEls(i, !0), this.popoverSegs = i, s = 0; s < i.length; s++) this.hitsNeeded(), i[s].hit = this.getCellHit(e, n), this.hitsNotNeeded(), u.append(i[s].el); return l }, resliceDaySegs: function (t, e) { var n, i = e.clone(), s = i.clone().add(1, "days"), r = new Me(i, s), o = []; for (n = 0; n < t.length; n++) o.push.apply(o, this.eventFootprintToSegs(t[n].footprint, r)); return this.sortEventSegs(o), o }, getMoreLinkText: function (t) { var e = this.opt("eventLimitText"); return "function" == typeof e ? e(t) : "+" + t + " " + e }, getCellSegs: function (t, e, n) { for (var i, s = this.rowStructs[t].segMatrix, r = n || 0, o = []; r < s.length;) i = s[r][e], i && o.push(i), r++; return o } }); var De = Vt.TimeGrid = me.extend(ye, { dayRanges: null, slotDuration: null, snapDuration: null, snapsPerSlot: null, labelFormat: null, labelInterval: null, colEls: null, slatContainerEl: null, slatEls: null, nowIndicatorEls: null, colCoordCache: null, slatCoordCache: null, constructor: function () { me.apply(this, arguments), this.processOptions() }, renderDates: function () { this.el.html(this.renderHtml()), this.colEls = this.el.find(".fc-day, .fc-disabled-day"), this.slatContainerEl = this.el.find(".fc-slats"), this.slatEls = this.slatContainerEl.find("tr"), this.colCoordCache = new he({ els: this.colEls, isHorizontal: !0 }), this.slatCoordCache = new he({ els: this.slatEls, isVertical: !0 }), this.renderContentSkeleton() }, renderHtml: function () { var t = this.view.calendar.theme; return '<div class="fc-bg"><table class="' + t.getClass("tableGrid") + '">' + this.renderBgTrHtml(0) + '</table></div><div class="fc-slats"><table class="' + t.getClass("tableGrid") + '">' + this.renderSlatRowHtml() + "</table></div>" }, renderSlatRowHtml: function () { for (var t, n, i, s = this.view, r = s.calendar, o = r.theme, a = this.isRTL, l = "", u = e.duration(+this.view.minTime), c = e.duration(0) ; u < s.maxTime;) t = r.msToUtcMoment(this.unzonedRange.startMs).time(u), n = ot(G(c, this.labelInterval)), i = '<td class="fc-axis fc-time ' + o.getClass("widgetContent") + '" ' + s.axisStyleAttr() + ">" + (n ? "<span>" + tt(t.format(this.labelFormat)) + "</span>" : "") + "</td>", l += '<tr data-time="' + t.format("HH:mm:ss") + '"' + (n ? "" : ' class="fc-minor"') + ">" + (a ? "" : i) + '<td class="' + o.getClass("widgetContent") + '"/>' + (a ? i : "") + "</tr>", u.add(this.slotDuration), c.add(this.slotDuration); return l }, processOptions: function () { var n, i = this.opt("slotDuration"), s = this.opt("snapDuration"); i = e.duration(i), s = s ? e.duration(s) : i, this.slotDuration = i, this.snapDuration = s, this.snapsPerSlot = i / s, n = this.opt("slotLabelFormat"), t.isArray(n) && (n = n[n.length - 1]), this.labelFormat = n || this.opt("smallTimeFormat"), n = this.opt("slotLabelInterval"), this.labelInterval = n ? e.duration(n) : this.computeLabelInterval(i) }, computeLabelInterval: function (t) { var n, i, s; for (n = ln.length - 1; n >= 0; n--) if (i = e.duration(ln[n]), s = G(i, t), ot(s) && s > 1) return i; return e.duration(t) }, computeEventTimeFormat: function () { return this.opt("noMeridiemTimeFormat") }, computeDisplayEventEnd: function () { return !0 }, prepareHits: function () { this.colCoordCache.build(), this.slatCoordCache.build() }, releaseHits: function () { this.colCoordCache.clear() }, queryHit: function (t, e) { var n = this.snapsPerSlot, i = this.colCoordCache, s = this.slatCoordCache; if (i.isLeftInBounds(t) && s.isTopInBounds(e)) { var r = i.getHorizontalIndex(t), o = s.getVerticalIndex(e); if (null != r && null != o) { var a = s.getTopOffset(o), l = s.getHeight(o), u = (e - a) / l, c = Math.floor(u * n), h = o * n + c, d = a + c / n * l, f = a + (c + 1) / n * l; return { col: r, snap: h, component: this, left: i.getLeftOffset(r), right: i.getRightOffset(r), top: d, bottom: f } } } }, getHitFootprint: function (t) { var e, n = this.getCellDate(0, t.col), i = this.computeSnapTime(t.snap); return n.time(i), e = n.clone().add(this.snapDuration), new xe(new Me(n, e), !1) }, getHitEl: function (t) { return this.colEls.eq(t.col) }, rangeUpdated: function () { var t = this.view; this.updateDayTable(), this.dayRanges = this.dayDates.map(function (e) { return new Me(e.clone().add(t.minTime), e.clone().add(t.maxTime)) }) }, computeSnapTime: function (t) { return e.duration(this.view.minTime + this.snapDuration * t) }, componentFootprintToSegs: function (t) { var e, n = this.sliceRangeByTimes(t.unzonedRange); for (e = 0; e < n.length; e++) this.isRTL ? n[e].col = this.daysPerRow - 1 - n[e].dayIndex : n[e].col = n[e].dayIndex; return n }, sliceRangeByTimes: function (t) { var e, n, i = []; for (n = 0; n < this.daysPerRow; n++) (e = t.intersect(this.dayRanges[n])) && i.push({ startMs: e.startMs, endMs: e.endMs, isStart: e.isStart, isEnd: e.isEnd, dayIndex: n }); return i }, updateSize: function (t) { this.slatCoordCache.build(), t && this.updateSegVerticals([].concat(this.fgSegs || [], this.bgSegs || [], this.businessSegs || [])) }, getTotalSlatHeight: function () { return this.slatContainerEl.outerHeight() }, computeDateTop: function (t, n) { return this.computeTimeTop(e.duration(t - n.clone().stripTime())) }, computeTimeTop: function (t) { var e, n, i = this.slatEls.length, s = (t - this.view.minTime) / this.slotDuration; return s = Math.max(0, s), s = Math.min(i, s), e = Math.floor(s), e = Math.min(e, i - 1), n = s - e, this.slatCoordCache.getTopPosition(e) + this.slatCoordCache.getHeight(e) * n }, renderDrag: function (t, e) { var n; if (e) return this.renderHelperEventFootprints(t); for (n = 0; n < t.length; n++) this.renderHighlight(t[n].componentFootprint) }, unrenderDrag: function () { this.unrenderHelper(), this.unrenderHighlight() }, renderEventResize: function (t, e) { return this.renderHelperEventFootprints(t, e) }, unrenderEventResize: function () { this.unrenderHelper() }, renderHelperEventFootprintEls: function (t, e) { var n = this.eventFootprintsToSegs(t); return this.renderHelperSegs(n, e) }, unrenderHelper: function () { this.unrenderHelperSegs() }, renderBusinessHours: function () { this.renderBusinessSegs(this.buildBusinessHourSegs()) }, unrenderBusinessHours: function () { this.unrenderBusinessSegs() }, getNowIndicatorUnit: function () { return "minute" }, renderNowIndicator: function (e) { var n, i = this.componentFootprintToSegs(new xe(new Me(e, e.valueOf() + 1), !1)), s = this.computeDateTop(e, e), r = []; for (n = 0; n < i.length; n++) r.push(t('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top", s).appendTo(this.colContainerEls.eq(i[n].col))[0]); i.length > 0 && r.push(t('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top", s).appendTo(this.el.find(".fc-content-skeleton"))[0]), this.nowIndicatorEls = t(r) }, unrenderNowIndicator: function () { this.nowIndicatorEls && (this.nowIndicatorEls.remove(), this.nowIndicatorEls = null) }, renderSelectionFootprint: function (t) { this.opt("selectHelper") ? this.renderHelperEventFootprints([this.fabricateEventFootprint(t)]) : this.renderHighlight(t) }, unrenderSelection: function () { this.unrenderHelper(), this.unrenderHighlight() }, renderHighlight: function (t) { this.renderHighlightSegs(this.componentFootprintToSegs(t)) }, unrenderHighlight: function () { this.unrenderHighlightSegs() } }); De.mixin({ colContainerEls: null, fgContainerEls: null, bgContainerEls: null, helperContainerEls: null, highlightContainerEls: null, businessContainerEls: null, fgSegs: null, bgSegs: null, helperSegs: null, highlightSegs: null, businessSegs: null, renderContentSkeleton: function () { var e, n, i = ""; for (e = 0; e < this.colCnt; e++) i += '<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>'; n = t('<div class="fc-content-skeleton"><table><tr>' + i + "</tr></table></div>"), this.colContainerEls = n.find(".fc-content-col"), this.helperContainerEls = n.find(".fc-helper-container"), this.fgContainerEls = n.find(".fc-event-container:not(.fc-helper-container)"), this.bgContainerEls = n.find(".fc-bgevent-container"), this.highlightContainerEls = n.find(".fc-highlight-container"), this.businessContainerEls = n.find(".fc-business-container"), this.bookendCells(n.find("tr")), this.el.append(n) }, renderFgSegs: function (t) { return t = this.renderFgSegsIntoContainers(t, this.fgContainerEls), this.fgSegs = t, t }, unrenderFgSegs: function () { this.unrenderNamedSegs("fgSegs") }, renderHelperSegs: function (e, n) { var i, s, r, o = []; for (e = this.renderFgSegsIntoContainers(e, this.helperContainerEls), i = 0; i < e.length; i++) s = e[i], n && n.col === s.col && (r = n.el, s.el.css({ left: r.css("left"), right: r.css("right"), "margin-left": r.css("margin-left"), "margin-right": r.css("margin-right") })), o.push(s.el[0]); return this.helperSegs = e, t(o) }, unrenderHelperSegs: function () { this.unrenderNamedSegs("helperSegs") }, renderBgSegs: function (t) { return t = this.renderFillSegEls("bgEvent", t), this.updateSegVerticals(t), this.attachSegsByCol(this.groupSegsByCol(t), this.bgContainerEls), this.bgSegs = t, t }, unrenderBgSegs: function () { this.unrenderNamedSegs("bgSegs") }, renderHighlightSegs: function (t) { t = this.renderFillSegEls("highlight", t), this.updateSegVerticals(t), this.attachSegsByCol(this.groupSegsByCol(t), this.highlightContainerEls), this.highlightSegs = t }, unrenderHighlightSegs: function () { this.unrenderNamedSegs("highlightSegs") }, renderBusinessSegs: function (t) { t = this.renderFillSegEls("businessHours", t), this.updateSegVerticals(t), this.attachSegsByCol(this.groupSegsByCol(t), this.businessContainerEls), this.businessSegs = t }, unrenderBusinessSegs: function () { this.unrenderNamedSegs("businessSegs") }, groupSegsByCol: function (t) { var e, n = []; for (e = 0; e < this.colCnt; e++) n.push([]); for (e = 0; e < t.length; e++) n[t[e].col].push(t[e]); return n }, attachSegsByCol: function (t, e) { var n, i, s; for (n = 0; n < this.colCnt; n++) for (i = t[n], s = 0; s < i.length; s++) e.eq(n).append(i[s].el) }, unrenderNamedSegs: function (t) { var e, n = this[t]; if (n) { for (e = 0; e < n.length; e++) n[e].el.remove(); this[t] = null } }, renderFgSegsIntoContainers: function (t, e) { var n, i; for (t = this.renderFgSegEls(t), n = this.groupSegsByCol(t), i = 0; i < this.colCnt; i++) this.updateFgSegCoords(n[i]); return this.attachSegsByCol(n, e), t }, fgSegHtml: function (t, e) { var n, i, s, r = this.view, o = r.calendar, a = t.footprint.componentFootprint, l = a.isAllDay, u = t.footprint.eventDef, c = r.isEventDefDraggable(u), h = !e && t.isStart && r.isEventDefResizableFromStart(u), d = !e && t.isEnd && r.isEventDefResizableFromEnd(u), f = this.getSegClasses(t, c, h || d), g = nt(this.getSegSkinCss(t)); if (f.unshift("fc-time-grid-event", "fc-v-event"), r.isMultiDayRange(a.unzonedRange)) { if (t.isStart || t.isEnd) { var p = o.msToMoment(t.startMs), v = o.msToMoment(t.endMs); n = this._getEventTimeText(p, v, l), i = this._getEventTimeText(p, v, l, "LT"), s = this._getEventTimeText(p, v, l, null, !1) } } else n = this.getEventTimeText(t.footprint), i = this.getEventTimeText(t.footprint, "LT"), s = this.getEventTimeText(t.footprint, null, !1); return '<a tabindex="0" class="' + f.join(" ") + '"' + (u.url ? ' href="' + tt(u.url) + '"' : "") + (g ? ' style="' + g + '"' : "") + '><div class="fc-content">' + (n ? '<div class="fc-time" data-start="' + tt(s) + '" data-full="' + tt(i) + '"><span>' + tt(n) + "</span></div>" : "") + (u.title ? '<div class="fc-title">' + tt(u.title) + "</div>" : "") + '</div><div class="fc-bg"/>' + (d ? '<div class="fc-resizer fc-end-resizer" />' : "") + "</a>" }, updateSegVerticals: function (t) { this.computeSegVerticals(t), this.assignSegVerticals(t) }, computeSegVerticals: function (t) { var e, n, i; for (e = 0; e < t.length; e++) n = t[e], i = this.dayDates[n.dayIndex], n.top = this.computeDateTop(n.startMs, i), n.bottom = this.computeDateTop(n.endMs, i) }, assignSegVerticals: function (t) { var e, n; for (e = 0; e < t.length; e++) n = t[e], n.el.css(this.generateSegVerticalCss(n)) }, generateSegVerticalCss: function (t) { return { top: t.top, bottom: -t.bottom } }, updateFgSegCoords: function (t) { this.computeSegVerticals(t), this.computeFgSegHorizontals(t), this.assignSegVerticals(t), this.assignFgSegHorizontals(t) }, computeFgSegHorizontals: function (t) { var e, n, i; if (this.sortEventSegs(t), e = Dt(t), bt(e), n = e[0]) { for (i = 0; i < n.length; i++) St(n[i]); for (i = 0; i < n.length; i++) this.computeFgSegForwardBack(n[i], 0, 0) } }, computeFgSegForwardBack: function (t, e, n) { var i, s = t.forwardSegs; if (void 0 === t.forwardCoord) for (s.length ? (this.sortForwardSegs(s), this.computeFgSegForwardBack(s[0], e + 1, n), t.forwardCoord = s[0].backwardCoord) : t.forwardCoord = 1, t.backwardCoord = t.forwardCoord - (t.forwardCoord - n) / (e + 1), i = 0; i < s.length; i++) this.computeFgSegForwardBack(s[i], 0, t.forwardCoord) }, sortForwardSegs: function (t) { t.sort(at(this, "compareForwardSegs")) }, compareForwardSegs: function (t, e) { return e.forwardPressure - t.forwardPressure || (t.backwardCoord || 0) - (e.backwardCoord || 0) || this.compareEventSegs(t, e) }, assignFgSegHorizontals: function (t) { var e, n; for (e = 0; e < t.length; e++) n = t[e], n.el.css(this.generateFgSegHorizontalCss(n)), n.bottom - n.top < 30 && n.el.addClass("fc-short") }, generateFgSegHorizontalCss: function (t) { var e, n, i = this.opt("slotEventOverlap"), s = t.backwardCoord, r = t.forwardCoord, o = this.generateSegVerticalCss(t); return i && (r = Math.min(1, s + 2 * (r - s))), this.isRTL ? (e = 1 - r, n = s) : (e = s, n = 1 - r), o.zIndex = t.level + 1, o.left = 100 * e + "%", o.right = 100 * n + "%", i && t.forwardPressure && (o[this.isRTL ? "marginLeft" : "marginRight"] = 20), o } }); var be = Vt.View = ve.extend({
        type: null, name: null, title: null, calendar: null, viewSpec: null, options: null, renderQueue: null, batchRenderDepth: 0, isDatesRendered: !1, isEventsRendered: !1, isBaseRendered: !1, queuedScroll: null, isSelected: !1, selectedEventInstance: null, eventOrderSpecs: null, isHiddenDayHash: null, isNowIndicatorRendered: null, initialNowDate: null, initialNowQueriedMs: null, nowIndicatorTimeoutID: null, nowIndicatorIntervalID: null, constructor: function (t, e) { this.calendar = t, this.viewSpec = e, this.type = e.type, this.options = e.options, this.name = this.type, ve.call(this), this.initHiddenDays(), this.eventOrderSpecs = z(this.opt("eventOrder")), this.renderQueue = this.buildRenderQueue(), this.initAutoBatchRender(), this.initialize() }, buildRenderQueue: function () { var t = this, e = new ue({ event: this.opt("eventRenderWait") }); return e.on("start", function () { t.freezeHeight(), t.addScroll(t.queryScroll()) }), e.on("stop", function () { t.thawHeight(), t.popScroll() }), e }, initAutoBatchRender: function () { var t = this; this.on("before:change", function () { t.startBatchRender() }), this.on("change", function () { t.stopBatchRender() }) }, startBatchRender: function () { this.batchRenderDepth++ || this.renderQueue.pause() }, stopBatchRender: function () { --this.batchRenderDepth || this.renderQueue.resume() }, initialize: function () { }, opt: function (t) { return this.options[t] }, computeTitle: function () { var t; return t = /^(year|month)$/.test(this.currentRangeUnit) ? this.currentUnzonedRange : this.activeUnzonedRange, this.formatRange({ start: this.calendar.msToMoment(t.startMs, this.isRangeAllDay), end: this.calendar.msToMoment(t.endMs, this.isRangeAllDay) }, this.isRangeAllDay, this.opt("titleFormat") || this.computeTitleFormat(), this.opt("titleRangeSeparator")) }, computeTitleFormat: function () { return "year" == this.currentRangeUnit ? "YYYY" : "month" == this.currentRangeUnit ? this.opt("monthYearFormat") : this.currentRangeAs("days") > 1 ? "ll" : "LL" }, setElement: function (t) { ve.prototype.setElement.apply(this, arguments), this.bindBaseRenderHandlers() }, removeElement: function () { this.unsetDate(), this.unbindBaseRenderHandlers(), ve.prototype.removeElement.apply(this, arguments) }, setDate: function (t) { var e = this.get("dateProfile"), n = this.buildDateProfile(t, null, !0); return e && e.activeUnzonedRange.equals(n.activeUnzonedRange) || this.set("dateProfile", n), n.date }, unsetDate: function () { this.unset("dateProfile") }, requestDateRender: function (t) { var e = this; this.renderQueue.queue(function () { e.executeDateRender(t) }, "date", "init") }, requestDateUnrender: function () { var t = this; this.renderQueue.queue(function () { t.executeDateUnrender() }, "date", "destroy") }, fetchInitialEvents: function (t) { var e = this.calendar, n = t.isRangeAllDay && !this.usesMinMaxTime; return e.requestEvents(e.msToMoment(t.activeUnzonedRange.startMs, n), e.msToMoment(t.activeUnzonedRange.endMs, n)) }, bindEventChanges: function () { this.listenTo(this.calendar, "eventsReset", this.resetEvents) }, unbindEventChanges: function () { this.stopListeningTo(this.calendar, "eventsReset") }, setEvents: function (t) { this.set("currentEvents", t), this.set("hasEvents", !0) }, unsetEvents: function () { this.unset("currentEvents"), this.unset("hasEvents") }, resetEvents: function (t) { this.startBatchRender(), this.unsetEvents(), this.setEvents(t), this.stopBatchRender() }, requestEventsRender: function (t) { var e = this; this.renderQueue.queue(function () { e.executeEventsRender(t) }, "event", "init") }, requestEventsUnrender: function () { var t = this; this.renderQueue.queue(function () { t.executeEventsUnrender() }, "event", "destroy") }, executeDateRender: function (t, e) { this.setDateProfileForRendering(t), this.render && this.render(), this.renderDates(), this.updateSize(), this.renderBusinessHours(), this.startNowIndicator(), e || this.addScroll(this.computeInitialDateScroll()), this.isDatesRendered = !0, this.trigger("datesRendered") }, executeDateUnrender: function () {
            this.unselect(), this.stopNowIndicator(), this.trigger("before:datesUnrendered"), this.unrenderBusinessHours(), this.unrenderDates(),
            this.destroy && this.destroy(), this.isDatesRendered = !1
        }, bindBaseRenderHandlers: function () { var t = this; this.on("datesRendered.baseHandler", function () { t.onBaseRender() }), this.on("before:datesUnrendered.baseHandler", function () { t.onBeforeBaseUnrender() }) }, unbindBaseRenderHandlers: function () { this.off(".baseHandler") }, onBaseRender: function () { this.applyScreenState(), this.publiclyTrigger("viewRender", { context: this, args: [this, this.el] }) }, onBeforeBaseUnrender: function () { this.applyScreenState(), this.publiclyTrigger("viewDestroy", { context: this, args: [this, this.el] }) }, bindGlobalHandlers: function () { this.listenTo(ge.get(), { touchstart: this.processUnselect, mousedown: this.handleDocumentMousedown }) }, unbindGlobalHandlers: function () { this.stopListeningTo(ge.get()) }, startNowIndicator: function () { var t, n, i, s = this; this.opt("nowIndicator") && (t = this.getNowIndicatorUnit()) && (n = at(this, "updateNowIndicator"), this.initialNowDate = this.calendar.getNow(), this.initialNowQueriedMs = +new Date, this.renderNowIndicator(this.initialNowDate), this.isNowIndicatorRendered = !0, i = this.initialNowDate.clone().startOf(t).add(1, t) - this.initialNowDate, this.nowIndicatorTimeoutID = setTimeout(function () { s.nowIndicatorTimeoutID = null, n(), i = +e.duration(1, t), i = Math.max(100, i), s.nowIndicatorIntervalID = setInterval(n, i) }, i)) }, updateNowIndicator: function () { this.isNowIndicatorRendered && (this.unrenderNowIndicator(), this.renderNowIndicator(this.initialNowDate.clone().add(new Date - this.initialNowQueriedMs))) }, stopNowIndicator: function () { this.isNowIndicatorRendered && (this.nowIndicatorTimeoutID && (clearTimeout(this.nowIndicatorTimeoutID), this.nowIndicatorTimeoutID = null), this.nowIndicatorIntervalID && (clearTimeout(this.nowIndicatorIntervalID), this.nowIndicatorIntervalID = null), this.unrenderNowIndicator(), this.isNowIndicatorRendered = !1) }, updateSize: function (t) { var e; t && (e = this.queryScroll()), this.updateHeight(t), this.updateWidth(t), this.updateNowIndicator(), t && this.applyScroll(e) }, updateWidth: function (t) { }, updateHeight: function (t) { var e = this.calendar; this.setHeight(e.getSuggestedViewHeight(), e.isHeightAuto()) }, setHeight: function (t, e) { }, addForcedScroll: function (e) { this.addScroll(t.extend(e, { isForced: !0 })) }, addScroll: function (e) { var n = this.queuedScroll || (this.queuedScroll = {}); n.isForced || t.extend(n, e) }, popScroll: function () { this.applyQueuedScroll(), this.queuedScroll = null }, applyQueuedScroll: function () { this.queuedScroll && this.applyScroll(this.queuedScroll) }, queryScroll: function () { var e = {}; return this.isDatesRendered && t.extend(e, this.queryDateScroll()), e }, applyScroll: function (t) { this.isDatesRendered && this.applyDateScroll(t) }, computeInitialDateScroll: function () { return {} }, queryDateScroll: function () { return {} }, applyDateScroll: function (t) { }, freezeHeight: function () { this.calendar.freezeContentHeight() }, thawHeight: function () { this.calendar.thawContentHeight() }, executeEventsRender: function (t) { this.renderEvents ? this.renderEvents(Tt(t)) : this.renderEventsPayload(t), this.isEventsRendered = !0, this.onEventsRender() }, executeEventsUnrender: function () { this.onBeforeEventsUnrender(), this.destroyEvents && this.destroyEvents(), this.unrenderEvents(), this.isEventsRendered = !1 }, onEventsRender: function () { var t = this, e = this.hasPublicHandlers("eventAfterRender"); (e || this.hasPublicHandlers("eventAfterAllRender")) && this.applyScreenState(), e && this.getEventSegs().forEach(function (e) { var n; e.el && (n = e.footprint.getEventLegacy(), t.publiclyTrigger("eventAfterRender", { context: n, args: [n, e.el, t] })) }), this.publiclyTrigger("eventAfterAllRender", { context: this, args: [this] }) }, onBeforeEventsUnrender: function () { var t = this; this.hasPublicHandlers("eventDestroy") && (this.applyScreenState(), this.getEventSegs().forEach(function (e) { var n; e.el && (n = e.footprint.getEventLegacy(), t.publiclyTrigger("eventDestroy", { context: n, args: [n, e.el, t] })) })) }, applyScreenState: function () { this.thawHeight(), this.freezeHeight(), this.applyQueuedScroll() }, showEventsWithId: function (t) { this.getEventSegs().forEach(function (e) { e.footprint.eventDef.id === t && e.el && e.el.css("visibility", "") }) }, hideEventsWithId: function (t) { this.getEventSegs().forEach(function (e) { e.footprint.eventDef.id === t && e.el && e.el.css("visibility", "hidden") }) }, reportEventDrop: function (t, n, i, s) { var r = this.calendar.eventManager, o = r.mutateEventsWithId(t.def.id, n, this.calendar), a = n.dateMutation; a && (t.dateProfile = a.buildNewDateProfile(t.dateProfile, this.calendar)), this.triggerEventDrop(t, a && a.dateDelta || e.duration(), o, i, s) }, triggerEventDrop: function (t, e, n, i, s) { this.publiclyTrigger("eventDrop", { context: i[0], args: [t.toLegacy(), e, n, s, {}, this] }) }, reportExternalDrop: function (t, e, n, i, s, r) { e && this.calendar.eventManager.addEventDef(t, n), this.triggerExternalDrop(t, e, i, s, r) }, triggerExternalDrop: function (t, e, n, i, s) { this.publiclyTrigger("drop", { context: n[0], args: [t.dateProfile.start.clone(), i, s, this] }), e && this.publiclyTrigger("eventReceive", { context: this, args: [t.buildInstance().toLegacy(), this] }) }, reportEventResize: function (t, e, n, i) { var s = this.calendar.eventManager, r = s.mutateEventsWithId(t.def.id, e, this.calendar); t.dateProfile = e.dateMutation.buildNewDateProfile(t.dateProfile, this.calendar), this.triggerEventResize(t, e.dateMutation.endDelta, r, n, i) }, triggerEventResize: function (t, e, n, i, s) { this.publiclyTrigger("eventResize", { context: i[0], args: [t.toLegacy(), e, n, s, {}, this] }) }, select: function (t, e) { this.unselect(e), this.renderSelectionFootprint(t), this.reportSelection(t, e) }, renderSelectionFootprint: function (t, e) { this.renderSelection ? this.renderSelection(t.toLegacy(this.calendar)) : ve.prototype.renderSelectionFootprint.apply(this, arguments) }, reportSelection: function (t, e) { this.isSelected = !0, this.triggerSelect(t, e) }, triggerSelect: function (t, e) { var n = this.calendar.footprintToDateProfile(t); this.publiclyTrigger("select", { context: this, args: [n.start, n.end, e, this] }) }, unselect: function (t) { this.isSelected && (this.isSelected = !1, this.destroySelection && this.destroySelection(), this.unrenderSelection(), this.publiclyTrigger("unselect", { context: this, args: [t, this] })) }, selectEventInstance: function (t) { this.selectedEventInstance && this.selectedEventInstance === t || (this.unselectEventInstance(), this.getEventSegs().forEach(function (e) { e.footprint.eventInstance === t && e.el && e.el.addClass("fc-selected") }), this.selectedEventInstance = t) }, unselectEventInstance: function () { this.selectedEventInstance && (this.getEventSegs().forEach(function (t) { t.el && t.el.removeClass("fc-selected") }), this.selectedEventInstance = null) }, isEventDefSelected: function (t) { return this.selectedEventInstance && this.selectedEventInstance.def.id === t.id }, handleDocumentMousedown: function (t) { D(t) && this.processUnselect(t) }, processUnselect: function (t) { this.processRangeUnselect(t), this.processEventUnselect(t) }, processRangeUnselect: function (e) { var n; this.isSelected && this.opt("unselectAuto") && ((n = this.opt("unselectCancel")) && t(e.target).closest(n).length || this.unselect(e)) }, processEventUnselect: function (e) { this.selectedEventInstance && (t(e.target).closest(".fc-selected").length || this.unselectEventInstance()) }, triggerDayClick: function (t, e, n) { var i = this.calendar.footprintToDateProfile(t); this.publiclyTrigger("dayClick", { context: e, args: [i.start, n, this] }) }
    }); be.watch("displayingDates", ["dateProfile"], function (t) { this.requestDateRender(t.dateProfile) }, function () { this.requestDateUnrender() }), be.watch("initialEvents", ["dateProfile"], function (t) { return this.fetchInitialEvents(t.dateProfile) }), be.watch("bindingEvents", ["initialEvents"], function (t) { this.setEvents(t.initialEvents), this.bindEventChanges() }, function () { this.unbindEventChanges(), this.unsetEvents() }), be.watch("displayingEvents", ["displayingDates", "hasEvents"], function () { this.requestEventsRender(this.get("currentEvents")) }, function () { this.requestEventsUnrender() }), be.mixin({ currentUnzonedRange: null, currentRangeUnit: null, isRangeAllDay: !1, renderUnzonedRange: null, activeUnzonedRange: null, validUnzonedRange: null, dateIncrement: null, minTime: null, maxTime: null, usesMinMaxTime: !1, start: null, end: null, intervalStart: null, intervalEnd: null, setDateProfileForRendering: function (t) { var e = this.calendar; this.currentUnzonedRange = t.currentUnzonedRange, this.currentRangeUnit = t.currentRangeUnit, this.isRangeAllDay = t.isRangeAllDay, this.renderUnzonedRange = t.renderUnzonedRange, this.activeUnzonedRange = t.activeUnzonedRange, this.validUnzonedRange = t.validUnzonedRange, this.dateIncrement = t.dateIncrement, this.minTime = t.minTime, this.maxTime = t.maxTime, this.start = e.msToMoment(t.activeUnzonedRange.startMs, this.isRangeAllDay), this.end = e.msToMoment(t.activeUnzonedRange.endMs, this.isRangeAllDay), this.intervalStart = e.msToMoment(t.currentUnzonedRange.startMs, this.isRangeAllDay), this.intervalEnd = e.msToMoment(t.currentUnzonedRange.endMs, this.isRangeAllDay), this.title = this.computeTitle(), this.calendar.reportViewDatesChanged(this, t) }, buildPrevDateProfile: function (t) { var e = t.clone().startOf(this.currentRangeUnit).subtract(this.dateIncrement); return this.buildDateProfile(e, -1) }, buildNextDateProfile: function (t) { var e = t.clone().startOf(this.currentRangeUnit).add(this.dateIncrement); return this.buildDateProfile(e, 1) }, buildDateProfile: function (t, n, i) { var s, r, o, a, l = !t.hasTime(), u = this.buildValidRange(), c = null, h = null; return i && (t = this.calendar.msToUtcMoment(u.constrainDate(t), l)), s = this.buildCurrentRangeInfo(t, n), r = this.buildRenderRange(s.unzonedRange, s.unit), o = r.clone(), this.opt("showNonCurrentDates") || (o = o.intersect(s.unzonedRange)), c = e.duration(this.opt("minTime")), h = e.duration(this.opt("maxTime")), o = this.adjustActiveRange(o, c, h), o = o.intersect(u), o && (t = this.calendar.msToUtcMoment(o.constrainDate(t), l)), a = s.unzonedRange.intersectsWith(u), { validUnzonedRange: u, currentUnzonedRange: s.unzonedRange, currentRangeUnit: s.unit, isRangeAllDay: /^(year|month|week|day)$/.test(s.unit), activeUnzonedRange: o, renderUnzonedRange: r, minTime: c, maxTime: h, isValid: a, date: t, dateIncrement: this.buildDateIncrement(s.duration) } }, buildValidRange: function () { return this.getUnzonedRangeOption("validRange", this.calendar.getNow()) || new Me }, buildCurrentRangeInfo: function (t, e) { var n, i = null, s = null, r = null; return this.viewSpec.duration ? (i = this.viewSpec.duration, s = this.viewSpec.durationUnit, r = this.buildRangeFromDuration(t, e, i, s)) : (n = this.opt("dayCount")) ? (s = "day", r = this.buildRangeFromDayCount(t, e, n)) : (r = this.buildCustomVisibleRange(t)) ? s = O(r.getStart(), r.getEnd()) : (i = this.getFallbackDuration(), s = O(i), r = this.buildRangeFromDuration(t, e, i, s)), { duration: i, unit: s, unzonedRange: r } }, getFallbackDuration: function () { return e.duration({ days: 1 }) }, adjustActiveRange: function (t, e, n) { var i = t.getStart(), s = t.getEnd(); return this.usesMinMaxTime && (e < 0 && i.time(0).add(e), n > 864e5 && s.time(n - 864e5)), new Me(i, s) }, buildRangeFromDuration: function (t, n, i, s) { var r, o, a, l = this.opt("dateAlignment"), u = t.clone(); return i.as("days") <= 1 && this.isHiddenDay(u) && (u = this.skipHiddenDays(u, n), u.startOf("day")), l || (o = this.opt("dateIncrement"), o ? (a = e.duration(o), l = a < i ? N(a, o) : s) : l = s), u.startOf(l), r = u.clone().add(i), new Me(u, r) }, buildRangeFromDayCount: function (t, e, n) { var i, s = this.opt("dateAlignment"), r = 0, o = t.clone(); s && o.startOf(s), o.startOf("day"), o = this.skipHiddenDays(o, e), i = o.clone(); do { i.add(1, "day"), this.isHiddenDay(i) || r++ } while (r < n); return new Me(o, i) }, buildCustomVisibleRange: function (t) { var e = this.getUnzonedRangeOption("visibleRange", this.calendar.applyTimezone(t)); return !e || null !== e.startMs && null !== e.endMs ? e : null }, buildRenderRange: function (t, e) { return this.trimHiddenDays(t) }, buildDateIncrement: function (t) { var n, i = this.opt("dateIncrement"); return i ? e.duration(i) : (n = this.opt("dateAlignment")) ? e.duration(1, n) : t || e.duration({ days: 1 }) }, trimHiddenDays: function (t) { var e = t.getStart(), n = t.getEnd(); return e = this.skipHiddenDays(e), n = this.skipHiddenDays(n, -1, !0), new Me(e, n) }, currentRangeAs: function (t) { var n = this.currentUnzonedRange; return e.utc(n.endMs).diff(e.utc(n.startMs), t, !0) }, isDateInOtherMonth: function (t) { return !1 }, getUnzonedRangeOption: function (t) { var e = this.opt(t); if ("function" == typeof e && (e = e.apply(null, Array.prototype.slice.call(arguments, 1))), e) return this.calendar.parseUnzonedRange(e) }, initHiddenDays: function () { var e, n = this.opt("hiddenDays") || [], i = [], s = 0; for (!1 === this.opt("weekends") && n.push(0, 6), e = 0; e < 7; e++) (i[e] = -1 !== t.inArray(e, n)) || s++; if (!s) throw "invalid hiddenDays"; this.isHiddenDayHash = i }, isHiddenDay: function (t) { return e.isMoment(t) && (t = t.day()), this.isHiddenDayHash[t] }, skipHiddenDays: function (t, e, n) { var i = t.clone(); for (e = e || 1; this.isHiddenDayHash[(i.day() + (n ? e : 0) + 7) % 7];) i.add(e, "days"); return i } }); var Se = Vt.Scroller = ht.extend({ el: null, scrollEl: null, overflowX: null, overflowY: null, constructor: function (t) { t = t || {}, this.overflowX = t.overflowX || t.overflow || "auto", this.overflowY = t.overflowY || t.overflow || "auto" }, render: function () { this.el = this.renderEl(), this.applyOverflow() }, renderEl: function () { return this.scrollEl = t('<div class="fc-scroller"></div>') }, clear: function () { this.setHeight("auto"), this.applyOverflow() }, destroy: function () { this.el.remove() }, applyOverflow: function () { this.scrollEl.css({ "overflow-x": this.overflowX, "overflow-y": this.overflowY }) }, lockOverflow: function (t) { var e = this.overflowX, n = this.overflowY; t = t || this.getScrollbarWidths(), "auto" === e && (e = t.top || t.bottom || this.scrollEl[0].scrollWidth - 1 > this.scrollEl[0].clientWidth ? "scroll" : "hidden"), "auto" === n && (n = t.left || t.right || this.scrollEl[0].scrollHeight - 1 > this.scrollEl[0].clientHeight ? "scroll" : "hidden"), this.scrollEl.css({ "overflow-x": e, "overflow-y": n }) }, setHeight: function (t) { this.scrollEl.height(t) }, getScrollTop: function () { return this.scrollEl.scrollTop() }, setScrollTop: function (t) { this.scrollEl.scrollTop(t) }, getClientWidth: function () { return this.scrollEl[0].clientWidth }, getClientHeight: function () { return this.scrollEl[0].clientHeight }, getScrollbarWidths: function () { return p(this.scrollEl) } }); Rt.prototype.proxyCall = function (t) { var e = Array.prototype.slice.call(arguments, 1), n = []; return this.items.forEach(function (i) { n.push(i[t].apply(i, e)) }), n }; var Ee = Vt.Calendar = ht.extend(ee, { view: null, viewsByType: null, currentDate: null, theme: null, loadingLevel: 0, constructor: function (t, e) { ge.needed(), this.el = t, this.viewsByType = {}, this.viewSpecCache = {}, this.initOptionsInternals(e), this.initMomentInternals(), this.initCurrentDate(), this.initEventManager(), ze.call(this), this.initialize() }, initialize: function () { }, getView: function () { return this.view }, publiclyTrigger: function (e, n) { var i, s, r = this.opt(e); if (t.isPlainObject(n) ? (i = n.context, s = n.args) : t.isArray(n) && (s = n), null == i && (i = this.el[0]), s || (s = []), this.triggerWith(e, i, s), r) return r.apply(i, s) }, hasPublicHandlers: function (t) { return this.hasHandlers(t) || this.opt(t) }, instantiateView: function (t) { var e = this.getViewSpec(t); return new e.class(this, e) }, isValidViewType: function (t) { return Boolean(this.getViewSpec(t)) }, changeView: function (t, e) { e && (e.start && e.end ? this.recordOptionOverrides({ visibleRange: e }) : this.currentDate = this.moment(e).stripZone()), this.renderView(t) }, zoomTo: function (t, e) { var n; e = e || "day", n = this.getViewSpec(e) || this.getUnitViewSpec(e), this.currentDate = t.clone(), this.renderView(n ? n.type : null) }, initCurrentDate: function () { var t = this.opt("defaultDate"); this.currentDate = null != t ? this.moment(t).stripZone() : this.getNow() }, reportViewDatesChanged: function (t, e) { this.currentDate = e.date, this.setToolbarsTitle(t.title), this.updateToolbarButtons() }, prev: function () { var t = this.view.buildPrevDateProfile(this.currentDate); t.isValid && (this.currentDate = t.date, this.renderView()) }, next: function () { var t = this.view.buildNextDateProfile(this.currentDate); t.isValid && (this.currentDate = t.date, this.renderView()) }, prevYear: function () { this.currentDate.add(-1, "years"), this.renderView() }, nextYear: function () { this.currentDate.add(1, "years"), this.renderView() }, today: function () { this.currentDate = this.getNow(), this.renderView() }, gotoDate: function (t) { this.currentDate = this.moment(t).stripZone(), this.renderView() }, incrementDate: function (t) { this.currentDate.add(e.duration(t)), this.renderView() }, getDate: function () { return this.applyTimezone(this.currentDate) }, pushLoading: function () { this.loadingLevel++ || this.publiclyTrigger("loading", [!0, this.view]) }, popLoading: function () { --this.loadingLevel || this.publiclyTrigger("loading", [!1, this.view]) }, select: function (t, e) { this.view.select(this.buildSelectFootprint.apply(this, arguments)) }, unselect: function () { this.view && this.view.unselect() }, buildSelectFootprint: function (t, e) { var n, i = this.moment(t).stripZone(); return n = e ? this.moment(e).stripZone() : i.hasTime() ? i.clone().add(this.defaultTimedEventDuration) : i.clone().add(this.defaultAllDayEventDuration), new xe(new Me(i, n), !i.hasTime()) }, parseUnzonedRange: function (t) { var e = null, n = null; return t.start && (e = this.moment(t.start).stripZone()), t.end && (n = this.moment(t.end).stripZone()), e || n ? e && n && n.isBefore(e) ? null : new Me(e, n) : null }, rerenderEvents: function () { this.elementVisible() && this.view.flash("displayingEvents") }, initEventManager: function () { var t = this, e = new ze(this), n = this.opt("eventSources") || [], i = this.opt("events"); this.eventManager = e, i && n.unshift(i), e.on("release", function (e) { t.trigger("eventsReset", e) }), e.freeze(), n.forEach(function (n) { var i = qe.parse(n, t); i && e.addSource(i) }), e.thaw() }, requestEvents: function (t, e) { return this.eventManager.requestEvents(t, e, this.opt("timezone"), this.opt("lazyFetching")) } }); Ee.mixin({ dirDefaults: null, localeDefaults: null, overrides: null, dynamicOverrides: null, optionsModel: null, initOptionsInternals: function (e) { this.overrides = t.extend({}, e), this.dynamicOverrides = {}, this.optionsModel = new oe, this.populateOptionsHash() }, option: function (t, e) { var n; if ("string" == typeof t) { if (void 0 === e) return this.optionsModel.get(t); n = {}, n[t] = e, this.setOptions(n) } else "object" == typeof t && this.setOptions(t) }, opt: function (t) { return this.optionsModel.get(t) }, setOptions: function (t) { var e, n = 0; this.recordOptionOverrides(t); for (e in t) n++; if (1 === n) { if ("height" === e || "contentHeight" === e || "aspectRatio" === e) return void this.updateSize(!0); if ("defaultDate" === e) return; if ("businessHours" === e) return void (this.view && (this.view.unrenderBusinessHours(), this.view.renderBusinessHours())); if ("timezone" === e) return void this.view.flash("initialEvents") } this.renderHeader(), this.renderFooter(), this.viewsByType = {}, this.reinitView() }, populateOptionsHash: function () { var t, e, i, s, r; t = J(this.dynamicOverrides.locale, this.overrides.locale), e = Te[t], e || (t = Ee.defaults.locale, e = Te[t] || {}), i = J(this.dynamicOverrides.isRTL, this.overrides.isRTL, e.isRTL, Ee.defaults.isRTL), s = i ? Ee.rtlDefaults : {}, this.dirDefaults = s, this.localeDefaults = e, r = n([Ee.defaults, s, e, this.overrides, this.dynamicOverrides]), zt(r), this.optionsModel.reset(r) }, recordOptionOverrides: function (t) { var e; for (e in t) this.dynamicOverrides[e] = t[e]; this.viewSpecCache = {}, this.populateOptionsHash() } }), Ee.mixin({ defaultAllDayEventDuration: null, defaultTimedEventDuration: null, localeData: null, initMomentInternals: function () { var t = this; this.defaultAllDayEventDuration = e.duration(this.opt("defaultAllDayEventDuration")), this.defaultTimedEventDuration = e.duration(this.opt("defaultTimedEventDuration")), this.optionsModel.watch("buildingMomentLocale", ["?locale", "?monthNames", "?monthNamesShort", "?dayNames", "?dayNamesShort", "?firstDay", "?weekNumberCalculation"], function (e) { var n, i = e.weekNumberCalculation, s = e.firstDay; "iso" === i && (i = "ISO"); var r = Object.create(Ft(e.locale)); e.monthNames && (r._months = e.monthNames), e.monthNamesShort && (r._monthsShort = e.monthNamesShort), e.dayNames && (r._weekdays = e.dayNames), e.dayNamesShort && (r._weekdaysShort = e.dayNamesShort), null == s && "ISO" === i && (s = 1), null != s && (n = Object.create(r._week), n.dow = s, r._week = n), "ISO" !== i && "local" !== i && "function" != typeof i || (r._fullCalendar_weekCalc = i), t.localeData = r, t.currentDate && t.localizeMoment(t.currentDate) }) }, moment: function () { var t; return "local" === this.opt("timezone") ? (t = Vt.moment.apply(null, arguments), t.hasTime() && t.local()) : t = "UTC" === this.opt("timezone") ? Vt.moment.utc.apply(null, arguments) : Vt.moment.parseZone.apply(null, arguments), this.localizeMoment(t), t }, msToMoment: function (t, e) { var n = Vt.moment.utc(t); return e ? n.stripTime() : n = this.applyTimezone(n), this.localizeMoment(n), n }, msToUtcMoment: function (t, e) { var n = Vt.moment.utc(t); return e && n.stripTime(), this.localizeMoment(n), n }, localizeMoment: function (t) { t._locale = this.localeData }, getIsAmbigTimezone: function () { return "local" !== this.opt("timezone") && "UTC" !== this.opt("timezone") }, applyTimezone: function (t) { if (!t.hasTime()) return t.clone(); var e, n = this.moment(t.toArray()), i = t.time() - n.time(); return i && (e = n.clone().add(i), t.time() - e.time() == 0 && (n = e)), n }, footprintToDateProfile: function (t, e) { var n, i = Vt.moment.utc(t.unzonedRange.startMs); return e || (n = Vt.moment.utc(t.unzonedRange.endMs)), t.isAllDay ? (i.stripTime(), n && n.stripTime()) : (i = this.applyTimezone(i), n && (n = this.applyTimezone(n))), new Ne(i, n, this) }, getNow: function () { var t = this.opt("now"); return "function" == typeof t && (t = t()), this.moment(t).stripZone() }, humanizeDuration: function (t) { return t.locale(this.opt("locale")).humanize() }, getEventEnd: function (t) { return t.end ? t.end.clone() : this.getDefaultEventEnd(t.allDay, t.start) }, getDefaultEventEnd: function (t, e) { var n = e.clone(); return t ? n.stripTime().add(this.defaultAllDayEventDuration) : n.add(this.defaultTimedEventDuration), this.getIsAmbigTimezone() && n.stripZone(), n } }), Ee.mixin({ viewSpecCache: null, getViewSpec: function (t) { var e = this.viewSpecCache; return e[t] || (e[t] = this.buildViewSpec(t)) }, getUnitViewSpec: function (e) { var n, i, s; if (-1 != t.inArray(e, qt)) for (n = this.header.getViewsWithButtons(), t.each(Vt.views, function (t) { n.push(t) }), i = 0; i < n.length; i++) if ((s = this.getViewSpec(n[i])) && s.singleUnit == e) return s }, buildViewSpec: function (t) { for (var i, s, r, o, a, l = this.overrides.views || {}, u = [], c = [], h = [], d = t; d;) i = Ut[d], s = l[d], d = null, "function" == typeof i && (i = { class: i }), i && (u.unshift(i), c.unshift(i.defaults || {}), r = r || i.duration, d = d || i.type), s && (h.unshift(s), r = r || s.duration, d = d || s.type); return i = j(u), i.type = t, !!i.class && (r = r || this.dynamicOverrides.duration || this.overrides.duration, r && (o = e.duration(r), o.valueOf() && (a = N(o, r), i.duration = o, i.durationUnit = a, 1 === o.as(a) && (i.singleUnit = a, h.unshift(l[a] || {})))), i.defaults = n(c), i.overrides = n(h), this.buildViewSpecOptions(i), this.buildViewSpecButtonText(i, t), i) }, buildViewSpecOptions: function (t) { t.options = n([Ee.defaults, t.defaults, this.dirDefaults, this.localeDefaults, this.overrides, t.overrides, this.dynamicOverrides]), zt(t.options) }, buildViewSpecButtonText: function (t, e) { function n(n) { var i = n.buttonText || {}; return i[e] || (t.buttonTextKey ? i[t.buttonTextKey] : null) || (t.singleUnit ? i[t.singleUnit] : null) } t.buttonTextOverride = n(this.dynamicOverrides) || n(this.overrides) || t.overrides.buttonText, t.buttonTextDefault = n(this.localeDefaults) || n(this.dirDefaults) || t.defaults.buttonText || n(Ee.defaults) || (t.duration ? this.humanizeDuration(t.duration) : null) || e } }), Ee.mixin({ el: null, contentEl: null, suggestedViewHeight: null, windowResizeProxy: null, ignoreWindowResize: 0, render: function () { this.contentEl ? this.elementVisible() && (this.calcSize(), this.renderView()) : this.initialRender() }, initialRender: function () { var e = this, n = this.el; n.addClass("fc"), n.on("click.fc", "a[data-goto]", function (n) { var i = t(this), s = i.data("goto"), r = e.moment(s.date), o = s.type, a = e.view.opt("navLink" + st(o) + "Click"); "function" == typeof a ? a(r, n) : ("string" == typeof a && (o = a), e.zoomTo(r, o)) }), this.optionsModel.watch("settingTheme", ["?theme", "?themeSystem"], function (t) { var i = Qe.getThemeClass(t.themeSystem || t.theme), s = new i(e.optionsModel), r = s.getClass("widget"); e.theme = s, r && n.addClass(r) }, function () { var t = e.theme.getClass("widget"); e.theme = null, t && n.removeClass(t) }), this.optionsModel.watch("applyingDirClasses", ["?isRTL", "?locale"], function (t) { n.toggleClass("fc-ltr", !t.isRTL), n.toggleClass("fc-rtl", t.isRTL) }), this.contentEl = t("<div class='fc-view-container'/>").prependTo(n), this.initToolbars(), this.renderHeader(), this.renderFooter(), this.renderView(this.opt("defaultView")), this.opt("handleWindowResize") && t(window).resize(this.windowResizeProxy = lt(this.windowResize.bind(this), this.opt("windowResizeDelay"))) }, destroy: function () { this.view && this.view.removeElement(), this.toolbarsManager.proxyCall("removeElement"), this.contentEl.remove(), this.el.removeClass("fc fc-ltr fc-rtl"), this.optionsModel.unwatch("settingTheme"), this.el.off(".fc"), this.windowResizeProxy && (t(window).unbind("resize", this.windowResizeProxy), this.windowResizeProxy = null), ge.unneeded() }, elementVisible: function () { return this.el.is(":visible") }, renderView: function (e, n) { this.ignoreWindowResize++; var i = this.view && e && this.view.type !== e; i && (this.freezeContentHeight(), this.clearView()), !this.view && e && (this.view = this.viewsByType[e] || (this.viewsByType[e] = this.instantiateView(e)), this.view.setElement(t("<div class='fc-view fc-" + e + "-view' />").appendTo(this.contentEl)), this.toolbarsManager.proxyCall("activateButton", e)), this.view && (n && this.view.addForcedScroll(n), this.elementVisible() && this.view.setDate(this.currentDate)), i && this.thawContentHeight(), this.ignoreWindowResize-- }, clearView: function () { this.toolbarsManager.proxyCall("deactivateButton", this.view.type), this.view.removeElement(), this.view = null }, reinitView: function () { this.ignoreWindowResize++, this.freezeContentHeight(); var t = this.view.type, e = this.view.queryScroll(); this.clearView(), this.calcSize(), this.renderView(t, e), this.thawContentHeight(), this.ignoreWindowResize-- }, getSuggestedViewHeight: function () { return null === this.suggestedViewHeight && this.calcSize(), this.suggestedViewHeight }, isHeightAuto: function () { return "auto" === this.opt("contentHeight") || "auto" === this.opt("height") }, updateSize: function (t) { if (this.elementVisible()) return t && this._calcSize(), this.ignoreWindowResize++, this.view.updateSize(!0), this.ignoreWindowResize--, !0 }, calcSize: function () { this.elementVisible() && this._calcSize() }, _calcSize: function () { var t = this.opt("contentHeight"), e = this.opt("height"); this.suggestedViewHeight = "number" == typeof t ? t : "function" == typeof t ? t() : "number" == typeof e ? e - this.queryToolbarsHeight() : "function" == typeof e ? e() - this.queryToolbarsHeight() : "parent" === e ? this.el.parent().height() - this.queryToolbarsHeight() : Math.round(this.contentEl.width() / Math.max(this.opt("aspectRatio"), .5)) }, windowResize: function (t) { !this.ignoreWindowResize && t.target === window && this.view.renderUnzonedRange && this.updateSize(!0) && this.publiclyTrigger("windowResize", [this.view]) }, freezeContentHeight: function () { this.contentEl.css({ width: "100%", height: this.contentEl.height(), overflow: "hidden" }) }, thawContentHeight: function () { this.contentEl.css({ width: "", height: "", overflow: "" }) } }), Ee.mixin({ header: null, footer: null, toolbarsManager: null, initToolbars: function () { this.header = new It(this, this.computeHeaderOptions()), this.footer = new It(this, this.computeFooterOptions()), this.toolbarsManager = new Rt([this.header, this.footer]) }, computeHeaderOptions: function () { return { extraClasses: "fc-header-toolbar", layout: this.opt("header") } }, computeFooterOptions: function () { return { extraClasses: "fc-footer-toolbar", layout: this.opt("footer") } }, renderHeader: function () { var t = this.header; t.setToolbarOptions(this.computeHeaderOptions()), t.render(), t.el && this.el.prepend(t.el) }, renderFooter: function () { var t = this.footer; t.setToolbarOptions(this.computeFooterOptions()), t.render(), t.el && this.el.append(t.el) }, setToolbarsTitle: function (t) { this.toolbarsManager.proxyCall("updateTitle", t) }, updateToolbarButtons: function () { var t = this.getNow(), e = this.view, n = e.buildDateProfile(t), i = e.buildPrevDateProfile(this.currentDate), s = e.buildNextDateProfile(this.currentDate); this.toolbarsManager.proxyCall(n.isValid && !e.currentUnzonedRange.containsDate(t) ? "enableButton" : "disableButton", "today"), this.toolbarsManager.proxyCall(i.isValid ? "enableButton" : "disableButton", "prev"), this.toolbarsManager.proxyCall(s.isValid ? "enableButton" : "disableButton", "next") }, queryToolbarsHeight: function () { return this.toolbarsManager.items.reduce(function (t, e) { return t + (e.el ? e.el.outerHeight(!0) : 0) }, 0) } }); var Ce = { start: "09:00", end: "17:00", dow: [1, 2, 3, 4, 5], rendering: "inverse-background" }; Ee.prototype.buildCurrentBusinessFootprints = function (t) { return this._buildCurrentBusinessFootprints(t, this.opt("businessHours")) }, Ee.prototype._buildCurrentBusinessFootprints = function (t, e) { var n, i = this.eventManager.currentPeriod; return i && (n = this.buildBusinessInstanceGroup(t, e, i.unzonedRange)) ? this.eventInstancesToFootprints(n.eventInstances) : [] }, Ee.prototype.buildBusinessInstanceGroup = function (t, e, n) { var i, s = this.buildBusinessDefs(t, e); if (s.length) return i = new Oe(At(s, n)), i.explicitEventDef = s[0], i }, Ee.prototype.buildBusinessDefs = function (e, n) { var i, s = [], r = !1, o = []; for (!0 === n ? s = [{}] : t.isPlainObject(n) ? s = [n] : t.isArray(n) && (s = n, r = !0), i = 0; i < s.length; i++) r && !s[i].dow || o.push(this.buildBusinessDef(e, s[i])); return o }, Ee.prototype.buildBusinessDef = function (e, n) { var i = t.extend({}, Ce, n); return e && (i.start = null, i.end = null), Ae.parse(i, new _e(this)) }, Ee.prototype.isEventInstanceGroupAllowed = function (t) { var e, n = t.getEventDef(), i = this.eventRangesToEventFootprints(t.getAllEventRanges()), s = this.getPeerEventInstances(n), r = Lt(s), o = this.eventRangesToEventFootprints(r), a = n.getConstraint(), l = n.getOverlap(), u = this.opt("eventAllow"); for (e = 0; e < i.length; e++) if (!this.isFootprintAllowed(i[e].componentFootprint, o, a, l, i[e].eventInstance)) return !1; if (u) for (e = 0; e < i.length; e++) if (!1 === u(i[e].componentFootprint.toLegacy(this), i[e].getEventLegacy())) return !1; return !0 }, Ee.prototype.getPeerEventInstances = function (t) { return this.eventManager.getEventInstancesWithoutId(t.id) }, Ee.prototype.isSelectionFootprintAllowed = function (t) { var e, n = this.eventManager.getEventInstances(), i = Lt(n), s = this.eventRangesToEventFootprints(i); return !!this.isFootprintAllowed(t, s, this.opt("selectConstraint"), this.opt("selectOverlap")) && (!(e = this.opt("selectAllow")) || !1 !== e(t.toLegacy(this))) }, Ee.prototype.isFootprintAllowed = function (t, e, n, i, s) { var r, o; if (null != n && (r = this.constraintValToFootprints(n, t.isAllDay), !this.isFootprintWithinConstraints(t, r))) return !1; if (o = this.collectOverlapEventFootprints(e, t), !1 === i) { if (o.length) return !1 } else if ("function" == typeof i && !Ht(o, i, s)) return !1; return !(s && !Mt(o, s)) }, Ee.prototype.isFootprintWithinConstraints = function (t, e) { var n; for (n = 0; n < e.length; n++) if (this.footprintContainsFootprint(e[n], t)) return !0; return !1 }, Ee.prototype.constraintValToFootprints = function (t, e) { var n; return "businessHours" === t ? this.buildCurrentBusinessFootprints(e) : "object" == typeof t ? (n = this.parseEventDefToInstances(t), n ? this.eventInstancesToFootprints(n) : this.parseFootprints(t)) : null != t ? (n = this.eventManager.getEventInstancesWithId(t), this.eventInstancesToFootprints(n)) : void 0 }, Ee.prototype.eventInstancesToFootprints = function (t) { return Nt(this.eventRangesToEventFootprints(Lt(t))) }, Ee.prototype.collectOverlapEventFootprints = function (t, e) { var n, i = []; for (n = 0; n < t.length; n++) this.footprintsIntersect(e, t[n].componentFootprint) && i.push(t[n]); return i }, Ee.prototype.parseEventDefToInstances = function (t) { var e = this.eventManager.currentPeriod, n = Pe.parse(t, new _e(this)); return !!n && (e ? n.buildInstances(e.unzonedRange) : []) }, Ee.prototype.eventRangesToEventFootprints = function (t) { var e, n = []; for (e = 0; e < t.length; e++) n.push.apply(n, this.eventRangeToEventFootprints(t[e])); return n }, Ee.prototype.eventRangeToEventFootprints = function (t) { return [new Ue(new xe(t.unzonedRange, t.eventDef.isAllDay()), t.eventDef, t.eventInstance)] }, Ee.prototype.parseFootprints = function (t) { var e, n; return t.start && (e = this.moment(t.start), e.isValid() || (e = null)), t.end && (n = this.moment(t.end), n.isValid() || (n = null)), [new xe(new Me(e, n), e && !e.hasTime() || n && !n.hasTime())] }, Ee.prototype.footprintContainsFootprint = function (t, e) { return t.unzonedRange.containsRange(e.unzonedRange) }, Ee.prototype.footprintsIntersect = function (t, e) { return t.unzonedRange.intersectsWith(e.unzonedRange) }, Ee.mixin({
        getEventSources: function () { return this.eventManager.otherSources.slice() }, getEventSourceById: function (t) { return this.eventManager.getSourceById(_e.normalizeId(t)) }, addEventSource: function (t) { var e = qe.parse(t, this); e && this.eventManager.addSource(e) }, removeEventSources: function (t) { var e, n, i = this.eventManager; if (null == t) this.eventManager.removeAllSources(); else { for (e = i.multiQuerySources(t), i.freeze(), n = 0; n < e.length; n++) i.removeSource(e[n]); i.thaw() } }, removeEventSource: function (t) { var e, n = this.eventManager, i = n.querySources(t); for (n.freeze(), e = 0; e < i.length; e++) n.removeSource(i[e]); n.thaw() },
        refetchEventSources: function (t) { var e, n = this.eventManager, i = n.multiQuerySources(t); for (n.freeze(), e = 0; e < i.length; e++) n.refetchSource(i[e]); n.thaw() }, refetchEvents: function () { this.eventManager.refetchAllSources() }, renderEvents: function (t, e) { this.eventManager.freeze(); for (var n = 0; n < t.length; n++) this.renderEvent(t[n], e); this.eventManager.thaw() }, renderEvent: function (t, e) { var n = this.eventManager, i = Pe.parse(t, t.source || n.stickySource); i && n.addEventDef(i, e) }, removeEvents: function (t) { var e, n, i, s = this.eventManager, r = s.getEventInstances(), o = {}; if (null == t) s.removeAllEventDefs(); else { for (e = r.map(function (t) { return t.toLegacy() }), e = xt(e, t), i = 0; i < e.length; i++) n = this.eventManager.getEventDefByUid(e[i]._id), o[n.id] = !0; s.freeze(); for (i in o) s.removeEventDefsById(i); s.thaw() } }, clientEvents: function (t) { return xt(this.eventManager.getEventInstances().map(function (t) { return t.toLegacy() }), t) }, updateEvents: function (t) { this.eventManager.freeze(); for (var e = 0; e < t.length; e++) this.updateEvent(t[e]); this.eventManager.thaw() }, updateEvent: function (t) { var e, n, i = this.eventManager.getEventDefByUid(t._id); i instanceof ke && (e = i.buildInstance(), n = Ge.createFromRawProps(e, t, null), this.eventManager.mutateEventsWithId(i.id, n)) }
    }), Ee.defaults = { titleRangeSeparator: " – ", monthYearFormat: "MMMM YYYY", defaultTimedEventDuration: "02:00:00", defaultAllDayEventDuration: { days: 1 }, forceEventDuration: !1, nextDayThreshold: "09:00:00", defaultView: "month", aspectRatio: 1.35, header: { left: "title", center: "", right: "today prev,next" }, weekends: !0, weekNumbers: !1, weekNumberTitle: "W", weekNumberCalculation: "local", scrollTime: "06:00:00", minTime: "00:00:00", maxTime: "24:00:00", showNonCurrentDates: !0, lazyFetching: !0, startParam: "start", endParam: "end", timezoneParam: "timezone", timezone: !1, isRTL: !1, buttonText: { prev: "prev", next: "next", prevYear: "prev year", nextYear: "next year", year: "year", today: "today", month: "month", week: "week", day: "day" }, allDayText: "all-day", theme: !1, dragOpacity: .75, dragRevertDuration: 500, dragScroll: !0, unselectAuto: !0, dropAccept: "*", eventOrder: "title", eventLimit: !1, eventLimitText: "more", eventLimitClick: "popover", dayPopoverFormat: "LL", handleWindowResize: !0, windowResizeDelay: 100, longPressDelay: 1e3 }, Ee.englishDefaults = { dayPopoverFormat: "dddd, MMMM D" }, Ee.rtlDefaults = { header: { left: "next,prev today", center: "", right: "title" }, buttonIcons: { prev: "right-single-arrow", next: "left-single-arrow", prevYear: "right-double-arrow", nextYear: "left-double-arrow" }, themeButtonIcons: { prev: "circle-triangle-e", next: "circle-triangle-w", nextYear: "seek-prev", prevYear: "seek-next" } }; var Te = Vt.locales = {}; Vt.datepickerLocale = function (e, n, i) { var s = Te[e] || (Te[e] = {}); s.isRTL = i.isRTL, s.weekNumberTitle = i.weekHeader, t.each(Re, function (t, e) { s[t] = e(i) }), t.datepicker && (t.datepicker.regional[n] = t.datepicker.regional[e] = i, t.datepicker.regional.en = t.datepicker.regional[""], t.datepicker.setDefaults(i)) }, Vt.locale = function (e, i) { var s, r; s = Te[e] || (Te[e] = {}), i && (s = Te[e] = n([s, i])), r = Ft(e), t.each(Ie, function (t, e) { null == s[t] && (s[t] = e(r, s)) }), Ee.defaults.locale = e }; var Re = { buttonText: function (t) { return { prev: et(t.prevText), next: et(t.nextText), today: et(t.currentText) } }, monthYearFormat: function (t) { return t.showMonthAfterYear ? "YYYY[" + t.yearSuffix + "] MMMM" : "MMMM YYYY[" + t.yearSuffix + "]" } }, Ie = { dayOfMonthFormat: function (t, e) { var n = t.longDateFormat("l"); return n = n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g, ""), e.isRTL ? n += " ddd" : n = "ddd " + n, n }, mediumTimeFormat: function (t) { return t.longDateFormat("LT").replace(/\s*a$/i, "a") }, smallTimeFormat: function (t) { return t.longDateFormat("LT").replace(":mm", "(:mm)").replace(/(\Wmm)$/, "($1)").replace(/\s*a$/i, "a") }, extraSmallTimeFormat: function (t) { return t.longDateFormat("LT").replace(":mm", "(:mm)").replace(/(\Wmm)$/, "($1)").replace(/\s*a$/i, "t") }, hourFormat: function (t) { return t.longDateFormat("LT").replace(":mm", "").replace(/(\Wmm)$/, "").replace(/\s*a$/i, "a") }, noMeridiemTimeFormat: function (t) { return t.longDateFormat("LT").replace(/\s*a$/i, "") } }, He = { smallDayDateFormat: function (t) { return t.isRTL ? "D dd" : "dd D" }, weekFormat: function (t) { return t.isRTL ? "w[ " + t.weekNumberTitle + "]" : "[" + t.weekNumberTitle + " ]w" }, smallWeekFormat: function (t) { return t.isRTL ? "w[" + t.weekNumberTitle + "]" : "[" + t.weekNumberTitle + "]w" } }; Vt.locale("en", Ee.englishDefaults); var Me = Vt.UnzonedRange = ht.extend({ startMs: null, endMs: null, isStart: !0, isEnd: !0, constructor: function (t, n) { e.isMoment(t) && (t = t.clone().stripZone()), e.isMoment(n) && (n = n.clone().stripZone()), t && (this.startMs = t.valueOf()), n && (this.endMs = n.valueOf()) }, intersect: function (t) { var e = this.startMs, n = this.endMs, i = null; return null !== t.startMs && (e = null === e ? t.startMs : Math.max(e, t.startMs)), null !== t.endMs && (n = null === n ? t.endMs : Math.min(n, t.endMs)), (null === e || null === n || e < n) && (i = new Me(e, n), i.isStart = this.isStart && e === this.startMs, i.isEnd = this.isEnd && n === this.endMs), i }, intersectsWith: function (t) { return (null === this.endMs || null === t.startMs || this.endMs > t.startMs) && (null === this.startMs || null === t.endMs || this.startMs < t.endMs) }, containsRange: function (t) { return (null === this.startMs || null !== t.startMs && t.startMs >= this.startMs) && (null === this.endMs || null !== t.endMs && t.endMs <= this.endMs) }, containsDate: function (t) { var e = t.valueOf(); return (null === this.startMs || e >= this.startMs) && (null === this.endMs || e < this.endMs) }, constrainDate: function (t) { var e = t.valueOf(); return null !== this.startMs && e < this.startMs && (e = this.startMs), null !== this.endMs && e >= this.endMs && (e = this.endMs - 1), e }, equals: function (t) { return this.startMs === t.startMs && this.endMs === t.endMs }, clone: function () { var t = new Me(this.startMs, this.endMs); return t.isStart = this.isStart, t.isEnd = this.isEnd, t }, getStart: function () { if (null !== this.startMs) return Vt.moment.utc(this.startMs).stripZone() }, getEnd: function () { if (null !== this.endMs) return Vt.moment.utc(this.endMs).stripZone() } }), xe = Vt.ComponentFootprint = ht.extend({ unzonedRange: null, isAllDay: !1, constructor: function (t, e) { this.unzonedRange = t, this.isAllDay = e }, toLegacy: function (t) { return { start: t.msToMoment(this.unzonedRange.startMs, this.isAllDay), end: t.msToMoment(this.unzonedRange.endMs, this.isAllDay) } } }), ze = ht.extend(ee, ne, { currentPeriod: null, calendar: null, stickySource: null, otherSources: null, constructor: function (t) { this.calendar = t, this.stickySource = new Ye(t), this.otherSources = [] }, requestEvents: function (t, e, n, i) { return !i && this.currentPeriod && this.currentPeriod.isWithinRange(t, e) || this.setPeriod(new Fe(t, e, n)), this.currentPeriod.whenReleased() }, addSource: function (t) { this.otherSources.push(t), this.currentPeriod && this.currentPeriod.requestSource(t) }, removeSource: function (t) { K(this.otherSources, t), this.currentPeriod && this.currentPeriod.purgeSource(t) }, removeAllSources: function () { this.otherSources = [], this.currentPeriod && this.currentPeriod.purgeAllSources() }, refetchSource: function (t) { var e = this.currentPeriod; e && (e.freeze(), e.purgeSource(t), e.requestSource(t), e.thaw()) }, refetchAllSources: function () { var t = this.currentPeriod; t && (t.freeze(), t.purgeAllSources(), t.requestSources(this.getSources()), t.thaw()) }, getSources: function () { return [this.stickySource].concat(this.otherSources) }, multiQuerySources: function (e) { e ? t.isArray(e) || (e = [e]) : e = []; var n, i = []; for (n = 0; n < e.length; n++) i.push.apply(i, this.querySources(e[n])); return i }, querySources: function (e) { var n, i, s = this.otherSources; for (n = 0; n < s.length; n++) if ((i = s[n]) === e) return [i]; return (i = this.getSourceById(_e.normalizeId(e))) ? [i] : (e = qe.parse(e, this.calendar), e ? t.grep(s, function (t) { return kt(e, t) }) : void 0) }, getSourceById: function (e) { return t.grep(this.otherSources, function (t) { return t.id && t.id === e })[0] }, setPeriod: function (t) { this.currentPeriod && (this.unbindPeriod(this.currentPeriod), this.currentPeriod = null), this.currentPeriod = t, this.bindPeriod(t), t.requestSources(this.getSources()) }, bindPeriod: function (t) { this.listenTo(t, "release", function (t) { this.trigger("release", t) }) }, unbindPeriod: function (t) { this.stopListeningTo(t) }, getEventDefByUid: function (t) { if (this.currentPeriod) return this.currentPeriod.getEventDefByUid(t) }, addEventDef: function (t, e) { e && this.stickySource.addEventDef(t), this.currentPeriod && this.currentPeriod.addEventDef(t) }, removeEventDefsById: function (t) { this.getSources().forEach(function (e) { e.removeEventDefsById(t) }), this.currentPeriod && this.currentPeriod.removeEventDefsById(t) }, removeAllEventDefs: function () { this.getSources().forEach(function (t) { t.removeAllEventDefs() }), this.currentPeriod && this.currentPeriod.removeAllEventDefs() }, mutateEventsWithId: function (t, e) { var n, i = this.currentPeriod, s = []; return i ? (i.freeze(), n = i.getEventDefsById(t), n.forEach(function (t) { i.removeEventDef(t), s.push(e.mutateSingle(t)), i.addEventDef(t) }), i.thaw(), function () { i.freeze(); for (var t = 0; t < n.length; t++) i.removeEventDef(n[t]), s[t](), i.addEventDef(n[t]); i.thaw() }) : function () { } }, buildMutatedEventInstanceGroup: function (t, e) { var n, i, s = this.getEventDefsById(t), r = []; for (n = 0; n < s.length; n++) (i = s[n].clone()) instanceof ke && (e.mutateSingle(i), r.push.apply(r, i.buildInstances())); return new Oe(r) }, freeze: function () { this.currentPeriod && this.currentPeriod.freeze() }, thaw: function () { this.currentPeriod && this.currentPeriod.thaw() } });["getEventDefsById", "getEventInstances", "getEventInstancesWithId", "getEventInstancesWithoutId"].forEach(function (t) { ze.prototype[t] = function () { var e = this.currentPeriod; return e ? e[t].apply(e, arguments) : [] } }); var Fe = ht.extend(ee, { start: null, end: null, timezone: null, unzonedRange: null, requestsByUid: null, pendingCnt: 0, freezeDepth: 0, stuntedReleaseCnt: 0, releaseCnt: 0, eventDefsByUid: null, eventDefsById: null, eventInstanceGroupsById: null, constructor: function (t, e, n) { this.start = t, this.end = e, this.timezone = n, this.unzonedRange = new Me(t.clone().stripZone(), e.clone().stripZone()), this.requestsByUid = {}, this.eventDefsByUid = {}, this.eventDefsById = {}, this.eventInstanceGroupsById = {} }, isWithinRange: function (t, e) { return !t.isBefore(this.start) && !e.isAfter(this.end) }, requestSources: function (t) { this.freeze(); for (var e = 0; e < t.length; e++) this.requestSource(t[e]); this.thaw() }, requestSource: function (t) { var e = this, n = { source: t, status: "pending" }; this.requestsByUid[t.uid] = n, this.pendingCnt += 1, t.fetch(this.start, this.end, this.timezone).then(function (t) { "cancelled" !== n.status && (n.status = "completed", n.eventDefs = t, e.addEventDefs(t), e.pendingCnt--, e.tryRelease()) }, function () { "cancelled" !== n.status && (n.status = "failed", e.pendingCnt--, e.tryRelease()) }) }, purgeSource: function (t) { var e = this.requestsByUid[t.uid]; e && (delete this.requestsByUid[t.uid], "pending" === e.status ? (e.status = "cancelled", this.pendingCnt--, this.tryRelease()) : "completed" === e.status && e.eventDefs.forEach(this.removeEventDef.bind(this))) }, purgeAllSources: function () { var t, e, n = this.requestsByUid, i = 0; for (t in n) e = n[t], "pending" === e.status ? e.status = "cancelled" : "completed" === e.status && i++; this.requestsByUid = {}, this.pendingCnt = 0, i && this.removeAllEventDefs() }, getEventDefByUid: function (t) { return this.eventDefsByUid[t] }, getEventDefsById: function (t) { var e = this.eventDefsById[t]; return e ? e.slice() : [] }, addEventDefs: function (t) { for (var e = 0; e < t.length; e++) this.addEventDef(t[e]) }, addEventDef: function (t) { var e, n = this.eventDefsById, i = t.id, s = n[i] || (n[i] = []), r = t.buildInstances(this.unzonedRange); for (s.push(t), this.eventDefsByUid[t.uid] = t, e = 0; e < r.length; e++) this.addEventInstance(r[e], i) }, removeEventDefsById: function (t) { var e = this; this.getEventDefsById(t).forEach(function (t) { e.removeEventDef(t) }) }, removeAllEventDefs: function () { var e = t.isEmptyObject(this.eventDefsByUid); this.eventDefsByUid = {}, this.eventDefsById = {}, this.eventInstanceGroupsById = {}, e || this.tryRelease() }, removeEventDef: function (t) { var e = this.eventDefsById, n = e[t.id]; delete this.eventDefsByUid[t.uid], n && (K(n, t), n.length || delete e[t.id], this.removeEventInstancesForDef(t)) }, getEventInstances: function () { var t, e = this.eventInstanceGroupsById, n = []; for (t in e) n.push.apply(n, e[t].eventInstances); return n }, getEventInstancesWithId: function (t) { var e = this.eventInstanceGroupsById[t]; return e ? e.eventInstances.slice() : [] }, getEventInstancesWithoutId: function (t) { var e, n = this.eventInstanceGroupsById, i = []; for (e in n) e !== t && i.push.apply(i, n[e].eventInstances); return i }, addEventInstance: function (t, e) { var n = this.eventInstanceGroupsById; (n[e] || (n[e] = new Oe)).eventInstances.push(t), this.tryRelease() }, removeEventInstancesForDef: function (t) { var e, n = this.eventInstanceGroupsById, i = n[t.id]; i && (e = X(i.eventInstances, function (e) { return e.def === t }), i.eventInstances.length || delete n[t.id], e && this.tryRelease()) }, tryRelease: function () { this.pendingCnt || (this.freezeDepth ? this.stuntedReleaseCnt++ : this.release()) }, release: function () { this.releaseCnt++, this.trigger("release", this.eventInstanceGroupsById) }, whenReleased: function () { var t = this; return this.releaseCnt ? ae.resolve(this.eventInstanceGroupsById) : ae.construct(function (e) { t.one("release", e) }) }, freeze: function () { this.freezeDepth++ || (this.stuntedReleaseCnt = 0) }, thaw: function () { --this.freezeDepth || !this.stuntedReleaseCnt || this.pendingCnt || this.release() } }), Pe = { parse: function (t, n) { return Y(t.start) || e.isDuration(t.start) || Y(t.end) || e.isDuration(t.end) ? Ae.parse(t, n) : ke.parse(t, n) } }, Be = Vt.EventDef = ht.extend(ie, { source: null, id: null, rawId: null, uid: null, title: null, url: null, rendering: null, constraint: null, overlap: null, editable: null, startEditable: null, durationEditable: null, color: null, backgroundColor: null, borderColor: null, textColor: null, className: null, miscProps: null, constructor: function (t) { this.uid = String(Be.uuid++), this.source = t, this.className = [], this.miscProps = {} }, isAllDay: function () { }, buildInstances: function (t) { }, clone: function () { var e = new this.constructor(this.source); return e.id = this.id, e.rawId = this.rawId, e.uid = this.uid, Be.copyVerbatimStandardProps(this, e), e.className = this.className, e.miscProps = t.extend({}, this.miscProps), e }, hasInverseRendering: function () { return "inverse-background" === this.getRendering() }, hasBgRendering: function () { var t = this.getRendering(); return "inverse-background" === t || "background" === t }, getRendering: function () { return null != this.rendering ? this.rendering : this.source.rendering }, getConstraint: function () { return null != this.constraint ? this.constraint : null != this.source.constraint ? this.source.constraint : this.source.calendar.opt("eventConstraint") }, getOverlap: function () { return null != this.overlap ? this.overlap : null != this.source.overlap ? this.source.overlap : this.source.calendar.opt("eventOverlap") }, isStartExplicitlyEditable: function () { return null !== this.startEditable ? this.startEditable : this.source.startEditable }, isDurationExplicitlyEditable: function () { return null !== this.durationEditable ? this.durationEditable : this.source.durationEditable }, isExplicitlyEditable: function () { return null !== this.editable ? this.editable : this.source.editable }, toLegacy: function () { var e = t.extend({}, this.miscProps); return e._id = this.uid, e.source = this.source, e.className = this.className, e.allDay = this.isAllDay(), null != this.rawId && (e.id = this.rawId), Be.copyVerbatimStandardProps(this, e), e }, applyManualRawProps: function (e) { return null != e.id ? this.id = Be.normalizeId(this.rawId = e.id) : this.id = Be.generateId(), t.isArray(e.className) && (this.className = e.className), "string" == typeof e.className && (this.className = e.className.split(/\s+/)), !0 }, applyOtherRawProps: function (t) { this.miscProps = t } }); Be.allowRawProps = se, Be.copyVerbatimStandardProps = re, Be.uuid = 0, Be.normalizeId = function (t) { return String(t) }, Be.generateId = function () { return "_fc" + Be.uuid++ }, Be.allowRawProps({ id: !1, className: !1, source: !1, title: !0, url: !0, rendering: !0, constraint: !0, overlap: !0, editable: !0, startEditable: !0, durationEditable: !0, color: !0, backgroundColor: !0, borderColor: !0, textColor: !0 }), Be.parse = function (t, e) { var n = new this(e), i = e.calendar.opt("eventDataTransform"), s = e.eventDataTransform; return i && (t = i(t)), s && (t = s(t)), !!n.applyRawProps(t) && n }; var ke = Be.extend({ dateProfile: null, buildInstances: function () { return [this.buildInstance()] }, buildInstance: function () { return new Le(this, this.dateProfile) }, isAllDay: function () { return this.dateProfile.isAllDay() }, clone: function () { var t = Be.prototype.clone.call(this); return t.dateProfile = this.dateProfile, t }, rezone: function () { var t = this.source.calendar, e = this.dateProfile; this.dateProfile = new Ne(t.moment(e.start), e.end ? t.moment(e.end) : null, t) }, applyManualRawProps: function (t) { var e = Be.prototype.applyManualRawProps.apply(this, arguments), n = Ne.parse(t, this.source); return !!n && (this.dateProfile = n, e) } }); ke.allowRawProps({ start: !1, date: !1, end: !1, allDay: !1 }); var Ae = Be.extend({ startTime: null, endTime: null, dowHash: null, isAllDay: function () { return !this.startTime && !this.endTime }, buildInstances: function (t) { for (var e, n, i, s = this.source.calendar, r = t.getStart(), o = t.getEnd(), a = []; r.isBefore(o) ;) this.dowHash && !this.dowHash[r.day()] || (e = s.applyTimezone(r), n = e.clone(), i = null, this.startTime ? n.time(this.startTime) : n.stripTime(), this.endTime && (i = e.clone().time(this.endTime)), a.push(new Le(this, new Ne(n, i, s)))), r.add(1, "days"); return a }, setDow: function (t) { this.dowHash || (this.dowHash = {}); for (var e = 0; e < t.length; e++) this.dowHash[t[e]] = !0 }, clone: function () { var n = Be.prototype.clone.call(this); return n.startTime && (n.startTime = e.duration(this.startTime)), n.endTime && (n.endTime = e.duration(this.endTime)), this.dowHash && (n.dowHash = t.extend({}, this.dowHash)), n }, applyRawProps: function (t) { var n = Be.prototype.applyRawProps.apply(this, arguments); return t.start && (this.startTime = e.duration(t.start)), t.end && (this.endTime = e.duration(t.end)), t.dow && this.setDow(t.dow), n } }); Ae.allowRawProps({ start: !1, end: !1, dow: !1 }); var Le = ht.extend({ def: null, dateProfile: null, constructor: function (t, e) { this.def = t, this.dateProfile = e }, toLegacy: function () { var t = this.dateProfile, e = this.def.toLegacy(); return e.start = t.start.clone(), e.end = t.end ? t.end.clone() : null, e } }), Oe = ht.extend({ eventInstances: null, explicitEventDef: null, constructor: function (t) { this.eventInstances = t || [] }, getAllEventRanges: function () { return Lt(this.eventInstances) }, sliceRenderRanges: function (t) { return this.isInverse() ? this.sliceInverseRenderRanges(t) : this.sliceNormalRenderRanges(t) }, sliceNormalRenderRanges: function (t) { var e, n, i, s = this.eventInstances, r = []; for (e = 0; e < s.length; e++) n = s[e], (i = n.dateProfile.unzonedRange.intersect(t)) && r.push(new Ve(i, n.def, n)); return r }, sliceInverseRenderRanges: function (t) { var e = Ot(this.eventInstances), n = this.getEventDef(); return e = Pt(e, t), e.map(function (t) { return new Ve(t, n) }) }, isInverse: function () { return this.getEventDef().hasInverseRendering() }, getEventDef: function () { return this.explicitEventDef || this.eventInstances[0].def } }), Ne = ht.extend({ start: null, end: null, unzonedRange: null, constructor: function (t, e, n) { this.start = t, this.end = e || null, this.unzonedRange = this.buildUnzonedRange(n) }, isAllDay: function () { return !(this.start.hasTime() || this.end && this.end.hasTime()) }, buildUnzonedRange: function (t) { var e = this.start.clone().stripZone().valueOf(), n = this.getEnd(t).stripZone().valueOf(); return new Me(e, n) }, getEnd: function (t) { return this.end ? this.end.clone() : t.getDefaultEventEnd(this.isAllDay(), this.start) } }); Ne.parse = function (t, e) { var n = t.start || t.date, i = t.end; if (!n) return !1; var s = e.calendar, r = s.moment(n), o = i ? s.moment(i) : null, a = t.allDay, l = s.opt("forceEventDuration"); return !!r.isValid() && (!o || o.isValid() && o.isAfter(r) || (o = null), null == a && null == (a = e.allDayDefault) && (a = s.opt("allDayDefault")), !0 === a ? (r.stripTime(), o && o.stripTime()) : !1 === a && (r.hasTime() || r.time(0), o && !o.hasTime() && o.time(0)), !o && l && (o = s.getDefaultEventEnd(!r.hasTime(), r)), new Ne(r, o, s)) }; var Ve = ht.extend({ unzonedRange: null, eventDef: null, eventInstance: null, constructor: function (t, e, n) { this.unzonedRange = t, this.eventDef = e, n && (this.eventInstance = n) } }), Ue = Vt.EventFootprint = ht.extend({ componentFootprint: null, eventDef: null, eventInstance: null, constructor: function (t, e, n) { this.componentFootprint = t, this.eventDef = e, n && (this.eventInstance = n) }, getEventLegacy: function () { return (this.eventInstance || this.eventDef).toLegacy() } }), Ge = Vt.EventDefMutation = ht.extend({ dateMutation: null, rawProps: null, mutateSingle: function (t) { var e; return this.dateMutation && (e = t.dateProfile, t.dateProfile = this.dateMutation.buildNewDateProfile(e, t.source.calendar)), this.rawProps && t.applyRawProps(this.rawProps), e ? function () { t.dateProfile = e } : function () { } }, setDateMutation: function (t) { t && !t.isEmpty() ? this.dateMutation = t : this.dateMutation = null }, isEmpty: function () { return !this.dateMutation } }); Ge.createFromRawProps = function (t, e, n) { var i, s, r, o, a = t.def, l = {}; for (i in e) "object" != typeof e[i] && "start" !== i && "end" !== i && "allDay" !== i && "source" !== i && "_id" !== i && (l[i] = e[i]); return s = Ne.parse(e, a.source), s && (r = We.createFromDiff(t.dateProfile, s, n)), o = new Ge, o.rawProps = l, r && (o.dateMutation = r), o }; var We = ht.extend({ clearEnd: !1, forceTimed: !1, forceAllDay: !1, dateDelta: null, startDelta: null, endDelta: null, buildNewDateProfile: function (t, e) { var n = t.start.clone(), i = null, s = !1; return !this.clearEnd && t.end && (i = t.end.clone()), this.forceTimed ? (s = !0, n.hasTime() || n.time(0), i && !i.hasTime() && i.time(0)) : this.forceAllDay && (n.hasTime() && n.stripTime(), i && i.hasTime() && i.stripTime()), this.dateDelta && (s = !0, n.add(this.dateDelta), i && i.add(this.dateDelta)), this.endDelta && (s = !0, i || (i = e.getDefaultEventEnd(t.isAllDay(), n)), i.add(this.endDelta)), this.startDelta && (s = !0, n.add(this.startDelta)), s && (n = e.applyTimezone(n), i && (i = e.applyTimezone(i))), !i && e.opt("forceEventDuration") && (i = e.getDefaultEventEnd(t.isAllDay(), n)), new Ne(n, i, e) }, setDateDelta: function (t) { t && t.valueOf() ? this.dateDelta = t : this.dateDelta = null }, setStartDelta: function (t) { t && t.valueOf() ? this.startDelta = t : this.startDelta = null }, setEndDelta: function (t) { t && t.valueOf() ? this.endDelta = t : this.endDelta = null }, isEmpty: function () { return !(this.clearEnd || this.forceTimed || this.forceAllDay || this.dateDelta || this.startDelta || this.endDelta) } }); We.createFromDiff = function (t, e, n) { function i(t, i) { return n ? L(t, i, n) : e.isAllDay() ? A(t, i) : k(t, i) } var s, r, o, a, l = t.end && !e.end, u = t.isAllDay() && !e.isAllDay(), c = !t.isAllDay() && e.isAllDay(); return s = i(e.start, t.start), e.end && (r = i(e.unzonedRange.getEnd(), t.unzonedRange.getEnd()), o = r.subtract(s)), a = new We, a.clearEnd = l, a.forceTimed = u, a.forceAllDay = c, a.setDateDelta(s), a.setEndDelta(o), a }; var _e = ht.extend(ie, { calendar: null, id: null, uid: null, color: null, backgroundColor: null, borderColor: null, textColor: null, className: null, editable: null, startEditable: null, durationEditable: null, rendering: null, overlap: null, constraint: null, allDayDefault: null, eventDataTransform: null, constructor: function (t) { this.calendar = t, this.className = [], this.uid = String(_e.uuid++) }, fetch: function (t, e, n) { }, removeEventDefsById: function (t) { }, removeAllEventDefs: function () { }, getPrimitive: function (t) { }, parseEventDefs: function (t) { var e, n, i = []; for (e = 0; e < t.length; e++) (n = Pe.parse(t[e], this)) && i.push(n); return i }, applyManualRawProps: function (e) { return null != e.id && (this.id = _e.normalizeId(e.id)), t.isArray(e.className) ? this.className = e.className : "string" == typeof e.className && (this.className = e.className.split(/\s+/)), !0 } }); _e.allowRawProps = se, _e.uuid = 0, _e.normalizeId = function (t) { return t ? String(t) : null }, _e.allowRawProps({ id: !1, className: !1, color: !0, backgroundColor: !0, borderColor: !0, textColor: !0, editable: !0, startEditable: !0, durationEditable: !0, rendering: !0, overlap: !0, constraint: !0, allDayDefault: !0, eventDataTransform: !0 }), _e.parse = function (t, e) { var n = new this(e); return !("object" != typeof t || !n.applyRawProps(t)) && n }, Vt.EventSource = _e; var qe = { sourceClasses: [], registerClass: function (t) { this.sourceClasses.unshift(t) }, parse: function (t, e) { var n, i, s = this.sourceClasses; for (n = 0; n < s.length; n++) if (i = s[n].parse(t, e)) return i } }; Vt.EventSourceParser = qe; var Ye = _e.extend({ rawEventDefs: null, eventDefs: null, currentTimezone: null, constructor: function (t) { _e.apply(this, arguments), this.eventDefs = [] }, setRawEventDefs: function (t) { this.rawEventDefs = t, this.eventDefs = this.parseEventDefs(t) }, fetch: function (t, e, n) { var i, s = this.eventDefs; if (null !== this.currentTimezone && this.currentTimezone !== n) for (i = 0; i < s.length; i++) s[i] instanceof ke && s[i].rezone(); return this.currentTimezone = n, ae.resolve(s) }, addEventDef: function (t) { this.eventDefs.push(t) }, removeEventDefsById: function (t) { return X(this.eventDefs, function (e) { return e.id === t }) }, removeAllEventDefs: function () { this.eventDefs = [] }, getPrimitive: function () { return this.rawEventDefs }, applyManualRawProps: function (t) { var e = _e.prototype.applyManualRawProps.apply(this, arguments); return this.setRawEventDefs(t.events), e } }); Ye.allowRawProps({ events: !1 }), Ye.parse = function (e, n) { var i; return t.isArray(e.events) ? i = e : t.isArray(e) && (i = { events: e }), !!i && _e.parse.call(this, i, n) }, qe.registerClass(Ye), Vt.ArrayEventSource = Ye; var je = _e.extend({ func: null, fetch: function (t, e, n) { var i = this; return ae.construct(function (s) { i.func.call(this.calendar, t.clone(), e.clone(), n, function (t) { s(i.parseEventDefs(t)) }) }) }, getPrimitive: function () { return this.func }, applyManualRawProps: function (t) { var e = _e.prototype.applyManualRawProps.apply(this, arguments); return this.func = t.events, e } }); je.allowRawProps({ events: !1 }), je.parse = function (e, n) { var i; return t.isFunction(e.events) ? i = e : t.isFunction(e) && (i = { events: e }), !!i && _e.parse.call(this, i, n) }, qe.registerClass(je), Vt.FuncEventSource = je; var Ze = _e.extend({ startParam: null, endParam: null, timezoneParam: null, ajaxSettings: null, fetch: function (e, n, i) { var s = this, r = this.ajaxSettings, o = r.success, a = r.error, l = this.buildRequestParams(e, n, i); return ae.construct(function (e, n) { t.ajax(t.extend({}, Ze.AJAX_DEFAULTS, r, { data: l, success: function (i) { var r; i ? (r = $(o, this, arguments), t.isArray(r) && (i = r), e(s.parseEventDefs(i))) : n() }, error: function () { $(a, this, arguments), n() } })) }) }, buildRequestParams: function (e, n, i) { var s, r, o, a, l = this.calendar, u = this.ajaxSettings, c = {}; return s = this.startParam, null == s && (s = l.opt("startParam")), r = this.endParam, null == r && (r = l.opt("endParam")), o = this.timezoneParam, null == o && (o = l.opt("timezoneParam")), a = t.isFunction(u.data) ? u.data() : u.data || {}, t.extend(c, a), c[s] = e.format(), c[r] = n.format(), i && "local" !== i && (c[o] = i), c }, getPrimitive: function () { return this.ajaxSettings.url }, applyOtherRawProps: function (t) { _e.prototype.applyOtherRawProps.apply(this, arguments), this.ajaxSettings = t } }); Ze.AJAX_DEFAULTS = { dataType: "json", cache: !1 }, Ze.allowRawProps({ startParam: !0, endParam: !0, timezoneParam: !0 }), Ze.parse = function (t, e) { var n; return "string" == typeof t.url ? n = t : "string" == typeof t && (n = { url: t }), !!n && _e.parse.call(this, n, e) }, qe.registerClass(Ze), Vt.JsonFeedEventSource = Ze; var Qe = Vt.ThemeRegistry = { themeClassHash: {}, register: function (t, e) { this.themeClassHash[t] = e }, getThemeClass: function (t) { return t ? !0 === t ? Ke : this.themeClassHash[t] : Xe } }, $e = Vt.Theme = ht.extend({ classes: {}, iconClasses: {}, baseIconClass: "", iconOverrideOption: null, iconOverrideCustomButtonOption: null, iconOverridePrefix: "", constructor: function (t) { this.optionsModel = t, this.processIconOverride() }, processIconOverride: function () { this.iconOverrideOption && this.setIconOverride(this.optionsModel.get(this.iconOverrideOption)) }, setIconOverride: function (e) { var n, i; if (t.isPlainObject(e)) { n = t.extend({}, this.iconClasses); for (i in e) n[i] = this.applyIconOverridePrefix(e[i]); this.iconClasses = n } else !1 === e && (this.iconClasses = {}) }, applyIconOverridePrefix: function (t) { var e = this.iconOverridePrefix; return e && 0 !== t.indexOf(e) && (t = e + t), t }, getClass: function (t) { return this.classes[t] || "" }, getIconClass: function (t) { var e = this.iconClasses[t]; return e ? this.baseIconClass + " " + e : "" }, getCustomButtonIconClass: function (t) { var e; return this.iconOverrideCustomButtonOption && (e = t[this.iconOverrideCustomButtonOption]) ? this.baseIconClass + " " + this.applyIconOverridePrefix(e) : "" } }), Xe = $e.extend({ classes: { widget: "fc-unthemed", widgetHeader: "fc-widget-header", widgetContent: "fc-widget-content", buttonGroup: "fc-button-group", button: "fc-button", cornerLeft: "fc-corner-left", cornerRight: "fc-corner-right", stateDefault: "fc-state-default", stateActive: "fc-state-active", stateDisabled: "fc-state-disabled", stateHover: "fc-state-hover", stateDown: "fc-state-down", popoverHeader: "fc-widget-header", popoverContent: "fc-widget-content", headerRow: "fc-widget-header", dayRow: "fc-widget-content", listView: "fc-widget-content" }, baseIconClass: "fc-icon", iconClasses: { close: "fc-icon-x", prev: "fc-icon-left-single-arrow", next: "fc-icon-right-single-arrow", prevYear: "fc-icon-left-double-arrow", nextYear: "fc-icon-right-double-arrow" }, iconOverrideOption: "buttonIcons", iconOverrideCustomButtonOption: "icon", iconOverridePrefix: "fc-icon-" }); Qe.register("standard", Xe); var Ke = $e.extend({ classes: { widget: "ui-widget", widgetHeader: "ui-widget-header", widgetContent: "ui-widget-content", buttonGroup: "fc-button-group", button: "ui-button", cornerLeft: "ui-corner-left", cornerRight: "ui-corner-right", stateDefault: "ui-state-default", stateActive: "ui-state-active", stateDisabled: "ui-state-disabled", stateHover: "ui-state-hover", stateDown: "ui-state-down", today: "ui-state-highlight", popoverHeader: "ui-widget-header", popoverContent: "ui-widget-content", headerRow: "ui-widget-header", dayRow: "ui-widget-content", listView: "ui-widget-content" }, baseIconClass: "ui-icon", iconClasses: { close: "ui-icon-closethick", prev: "ui-icon-circle-triangle-w", next: "ui-icon-circle-triangle-e", prevYear: "ui-icon-seek-prev", nextYear: "ui-icon-seek-next" }, iconOverrideOption: "themeButtonIcons", iconOverrideCustomButtonOption: "themeIcon", iconOverridePrefix: "ui-icon-" }); Qe.register("jquery-ui", Ke); var Je = $e.extend({ classes: { widget: "fc-bootstrap3", tableGrid: "table-bordered", tableList: "table table-striped", buttonGroup: "btn-group", button: "btn btn-default", stateActive: "active", stateDisabled: "disabled", today: "alert alert-info", popover: "panel panel-default", popoverHeader: "panel-heading", popoverContent: "panel-body", headerRow: "panel-default", dayRow: "panel-default", listView: "panel panel-default" }, baseIconClass: "glyphicon", iconClasses: { close: "glyphicon-remove", prev: "glyphicon-chevron-left", next: "glyphicon-chevron-right", prevYear: "glyphicon-backward", nextYear: "glyphicon-forward" }, iconOverrideOption: "bootstrapGlyphicons", iconOverrideCustomButtonOption: "bootstrapGlyphicon", iconOverridePrefix: "glyphicon-" }); Qe.register("bootstrap3", Je); var tn = Vt.BasicView = be.extend({
        scroller: null, dayGridClass: we, dayGrid: null, dayNumbersVisible: !1, colWeekNumbersVisible: !1, cellWeekNumbersVisible: !1, weekNumberWidth: null, headContainerEl: null, headRowEl: null, initialize: function () { this.dayGrid = this.instantiateDayGrid(), this.addChild(this.dayGrid), this.scroller = new Se({ overflowX: "hidden", overflowY: "auto" }) }, instantiateDayGrid: function () { return new (this.dayGridClass.extend(en))(this) }, buildRenderRange: function (t, e) { var n = be.prototype.buildRenderRange.apply(this, arguments), i = this.calendar.msToUtcMoment(n.startMs, this.isRangeAllDay), s = this.calendar.msToUtcMoment(n.endMs, this.isRangeAllDay); return /^(year|month)$/.test(e) && (i.startOf("week"), s.weekday() && s.add(1, "week").startOf("week")), this.trimHiddenDays(new Me(i, s)) }, renderDates: function () { this.dayGrid.breakOnWeeks = /year|month|week/.test(this.currentRangeUnit), this.dayGrid.setRange(this.renderUnzonedRange), this.dayNumbersVisible = this.dayGrid.rowCnt > 1, this.opt("weekNumbers") && (this.opt("weekNumbersWithinDays") ? (this.cellWeekNumbersVisible = !0, this.colWeekNumbersVisible = !1) : (this.cellWeekNumbersVisible = !1, this.colWeekNumbersVisible = !0)), this.dayGrid.numbersVisible = this.dayNumbersVisible || this.cellWeekNumbersVisible || this.colWeekNumbersVisible, this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()), this.renderHead(), this.scroller.render(); var e = this.scroller.el.addClass("fc-day-grid-container"), n = t('<div class="fc-day-grid" />').appendTo(e); this.el.find(".fc-body > tr > td").append(e), this.dayGrid.setElement(n), this.dayGrid.renderDates(this.hasRigidRows()) }, renderHead: function () { this.headContainerEl = this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()), this.headRowEl = this.headContainerEl.find(".fc-row") }, unrenderDates: function () { this.dayGrid.unrenderDates(), this.dayGrid.removeElement(), this.scroller.destroy() }, renderSkeletonHtml: function () { var t = this.calendar.theme; return '<table class="' + t.getClass("tableGrid") + '"><thead class="fc-head"><tr><td class="fc-head-container ' + t.getClass("widgetHeader") + '"></td></tr></thead><tbody class="fc-body"><tr><td class="' + t.getClass("widgetContent") + '"></td></tr></tbody></table>' }, weekNumberStyleAttr: function () { return null !== this.weekNumberWidth ? 'style="width:' + this.weekNumberWidth + 'px"' : "" }, hasRigidRows: function () { var t = this.opt("eventLimit"); return t && "number" != typeof t }, updateWidth: function () {
            this.colWeekNumbersVisible && (this.weekNumberWidth = u(this.el.find(".fc-week-number")))
        }, setHeight: function (t, e) { var n, r, o = this.opt("eventLimit"); this.scroller.clear(), s(this.headRowEl), this.dayGrid.removeSegPopover(), o && "number" == typeof o && this.dayGrid.limitRows(o), n = this.computeScrollerHeight(t), this.setGridHeight(n, e), o && "number" != typeof o && this.dayGrid.limitRows(o), e || (this.scroller.setHeight(n), r = this.scroller.getScrollbarWidths(), (r.left || r.right) && (i(this.headRowEl, r), n = this.computeScrollerHeight(t), this.scroller.setHeight(n)), this.scroller.lockOverflow(r)) }, computeScrollerHeight: function (t) { return t - c(this.el, this.scroller.el) }, setGridHeight: function (t, e) { e ? l(this.dayGrid.rowEls) : a(this.dayGrid.rowEls, t, !0) }, computeInitialDateScroll: function () { return { top: 0 } }, queryDateScroll: function () { return { top: this.scroller.getScrollTop() } }, applyDateScroll: function (t) { void 0 !== t.top && this.scroller.setScrollTop(t.top) }, renderEventsPayload: function (t) { this.dayGrid.renderEventsPayload(t), this.updateHeight() }
    }), en = { renderHeadIntroHtml: function () { var t = this.view; return t.colWeekNumbersVisible ? '<th class="fc-week-number ' + t.calendar.theme.getClass("widgetHeader") + '" ' + t.weekNumberStyleAttr() + "><span>" + tt(this.opt("weekNumberTitle")) + "</span></th>" : "" }, renderNumberIntroHtml: function (t) { var e = this.view, n = this.getCellDate(t, 0); return e.colWeekNumbersVisible ? '<td class="fc-week-number" ' + e.weekNumberStyleAttr() + ">" + e.buildGotoAnchorHtml({ date: n, type: "week", forceOff: 1 === this.colCnt }, n.format("w")) + "</td>" : "" }, renderBgIntroHtml: function () { var t = this.view; return t.colWeekNumbersVisible ? '<td class="fc-week-number ' + t.calendar.theme.getClass("widgetContent") + '" ' + t.weekNumberStyleAttr() + "></td>" : "" }, renderIntroHtml: function () { var t = this.view; return t.colWeekNumbersVisible ? '<td class="fc-week-number" ' + t.weekNumberStyleAttr() + "></td>" : "" } }, nn = Vt.MonthView = tn.extend({ buildRenderRange: function () { var t, e = tn.prototype.buildRenderRange.apply(this, arguments), n = this.calendar.msToUtcMoment(e.startMs, this.isRangeAllDay), i = this.calendar.msToUtcMoment(e.endMs, this.isRangeAllDay); return this.isFixedWeeks() && (t = Math.ceil(i.diff(n, "weeks", !0)), i.add(6 - t, "weeks")), new Me(n, i) }, setGridHeight: function (t, e) { e && (t *= this.rowCnt / 6), a(this.dayGrid.rowEls, t, !e) }, isFixedWeeks: function () { return this.opt("fixedWeekCount") }, isDateInOtherMonth: function (t) { return t.month() !== e.utc(this.currentUnzonedRange.startMs).month() } }); Ut.basic = { class: tn }, Ut.basicDay = { type: "basic", duration: { days: 1 } }, Ut.basicWeek = { type: "basic", duration: { weeks: 1 } }, Ut.month = { class: nn, duration: { months: 1 }, defaults: { fixedWeekCount: !0 } }; var sn = Vt.AgendaView = be.extend({ scroller: null, timeGridClass: De, timeGrid: null, dayGridClass: we, dayGrid: null, axisWidth: null, headContainerEl: null, noScrollRowEls: null, bottomRuleEl: null, usesMinMaxTime: !0, initialize: function () { this.timeGrid = this.instantiateTimeGrid(), this.addChild(this.timeGrid), this.opt("allDaySlot") && (this.dayGrid = this.instantiateDayGrid(), this.addChild(this.dayGrid)), this.scroller = new Se({ overflowX: "hidden", overflowY: "auto" }) }, instantiateTimeGrid: function () { return new (this.timeGridClass.extend(rn))(this) }, instantiateDayGrid: function () { return new (this.dayGridClass.extend(on))(this) }, renderDates: function () { this.timeGrid.setRange(this.renderUnzonedRange), this.dayGrid && this.dayGrid.setRange(this.renderUnzonedRange), this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()), this.renderHead(), this.scroller.render(); var e = this.scroller.el.addClass("fc-time-grid-container"), n = t('<div class="fc-time-grid" />').appendTo(e); this.el.find(".fc-body > tr > td").append(e), this.timeGrid.setElement(n), this.timeGrid.renderDates(), this.bottomRuleEl = t('<hr class="fc-divider ' + this.calendar.theme.getClass("widgetHeader") + '"/>').appendTo(this.timeGrid.el), this.dayGrid && (this.dayGrid.setElement(this.el.find(".fc-day-grid")), this.dayGrid.renderDates(), this.dayGrid.bottomCoordPadding = this.dayGrid.el.next("hr").outerHeight()), this.noScrollRowEls = this.el.find(".fc-row:not(.fc-scroller *)") }, renderHead: function () { this.headContainerEl = this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml()) }, unrenderDates: function () { this.timeGrid.unrenderDates(), this.timeGrid.removeElement(), this.dayGrid && (this.dayGrid.unrenderDates(), this.dayGrid.removeElement()), this.scroller.destroy() }, renderSkeletonHtml: function () { var t = this.calendar.theme; return '<table class="' + t.getClass("tableGrid") + '"><thead class="fc-head"><tr><td class="fc-head-container ' + t.getClass("widgetHeader") + '"></td></tr></thead><tbody class="fc-body"><tr><td class="' + t.getClass("widgetContent") + '">' + (this.dayGrid ? '<div class="fc-day-grid"/><hr class="fc-divider ' + t.getClass("widgetHeader") + '"/>' : "") + "</td></tr></tbody></table>" }, axisStyleAttr: function () { return null !== this.axisWidth ? 'style="width:' + this.axisWidth + 'px"' : "" }, getNowIndicatorUnit: function () { return this.timeGrid.getNowIndicatorUnit() }, updateSize: function (t) { this.timeGrid.updateSize(t), be.prototype.updateSize.call(this, t) }, updateWidth: function () { this.axisWidth = u(this.el.find(".fc-axis")) }, setHeight: function (t, e) { var n, r, o; this.bottomRuleEl.hide(), this.scroller.clear(), s(this.noScrollRowEls), this.dayGrid && (this.dayGrid.removeSegPopover(), n = this.opt("eventLimit"), n && "number" != typeof n && (n = an), n && this.dayGrid.limitRows(n)), e || (r = this.computeScrollerHeight(t), this.scroller.setHeight(r), o = this.scroller.getScrollbarWidths(), (o.left || o.right) && (i(this.noScrollRowEls, o), r = this.computeScrollerHeight(t), this.scroller.setHeight(r)), this.scroller.lockOverflow(o), this.timeGrid.getTotalSlatHeight() < r && this.bottomRuleEl.show()) }, computeScrollerHeight: function (t) { return t - c(this.el, this.scroller.el) }, computeInitialDateScroll: function () { var t = e.duration(this.opt("scrollTime")), n = this.timeGrid.computeTimeTop(t); return n = Math.ceil(n), n && n++, { top: n } }, queryDateScroll: function () { return { top: this.scroller.getScrollTop() } }, applyDateScroll: function (t) { void 0 !== t.top && this.scroller.setScrollTop(t.top) }, getHitFootprint: function (t) { return t.component.getHitFootprint(t) }, getHitEl: function (t) { return t.component.getHitEl(t) }, renderEventsPayload: function (t) { var e, n, i = {}, s = {}; for (e in t) n = t[e], n.getEventDef().isAllDay() ? i[e] = n : s[e] = n; this.timeGrid.renderEventsPayload(s), this.dayGrid && this.dayGrid.renderEventsPayload(i), this.updateHeight() }, renderDrag: function (t, e) { if (t.length) { if (!t[0].componentFootprint.isAllDay) return this.timeGrid.renderDrag(t, e); if (this.dayGrid) return this.dayGrid.renderDrag(t, e) } }, renderSelectionFootprint: function (t) { t.isAllDay ? this.dayGrid && this.dayGrid.renderSelectionFootprint(t) : this.timeGrid.renderSelectionFootprint(t) } }), rn = { renderHeadIntroHtml: function () { var t, e = this.view, n = e.calendar.msToUtcMoment(this.unzonedRange.startMs, !0); return this.opt("weekNumbers") ? (t = n.format(this.opt("smallWeekFormat")), '<th class="fc-axis fc-week-number ' + e.calendar.theme.getClass("widgetHeader") + '" ' + e.axisStyleAttr() + ">" + e.buildGotoAnchorHtml({ date: n, type: "week", forceOff: this.colCnt > 1 }, tt(t)) + "</th>") : '<th class="fc-axis ' + e.calendar.theme.getClass("widgetHeader") + '" ' + e.axisStyleAttr() + "></th>" }, renderBgIntroHtml: function () { var t = this.view; return '<td class="fc-axis ' + t.calendar.theme.getClass("widgetContent") + '" ' + t.axisStyleAttr() + "></td>" }, renderIntroHtml: function () { return '<td class="fc-axis" ' + this.view.axisStyleAttr() + "></td>" } }, on = { renderBgIntroHtml: function () { var t = this.view; return '<td class="fc-axis ' + t.calendar.theme.getClass("widgetContent") + '" ' + t.axisStyleAttr() + "><span>" + t.getAllDayHtml() + "</span></td>" }, renderIntroHtml: function () { return '<td class="fc-axis" ' + this.view.axisStyleAttr() + "></td>" } }, an = 5, ln = [{ hours: 1 }, { minutes: 30 }, { minutes: 15 }, { seconds: 30 }, { seconds: 15 }]; Ut.agenda = { class: sn, defaults: { allDaySlot: !0, slotDuration: "00:30:00", slotEventOverlap: !0 } }, Ut.agendaDay = { type: "agenda", duration: { days: 1 } }, Ut.agendaWeek = { type: "agenda", duration: { weeks: 1 } }; var un = be.extend({ grid: null, scroller: null, initialize: function () { this.grid = new cn(this), this.addChild(this.grid), this.scroller = new Se({ overflowX: "hidden", overflowY: "auto" }) }, renderSkeleton: function () { this.el.addClass("fc-list-view " + this.calendar.theme.getClass("listView")), this.scroller.render(), this.scroller.el.appendTo(this.el), this.grid.setElement(this.scroller.scrollEl) }, unrenderSkeleton: function () { this.scroller.destroy() }, setHeight: function (t, e) { this.scroller.setHeight(this.computeScrollerHeight(t)) }, computeScrollerHeight: function (t) { return t - c(this.el, this.scroller.el) }, renderDates: function () { this.grid.setRange(this.renderUnzonedRange) }, isEventDefResizable: function (t) { return !1 }, isEventDefDraggable: function (t) { return !1 } }), cn = me.extend({ dayDates: null, dayRanges: null, segSelector: ".fc-list-item", hasDayInteractions: !1, rangeUpdated: function () { for (var t = this.view.calendar, e = t.msToUtcMoment(this.unzonedRange.startMs, !0), n = t.msToUtcMoment(this.unzonedRange.endMs, !0), i = [], s = []; e < n;) i.push(e.clone()), s.push(new Me(e, e.clone().add(1, "day"))), e.add(1, "day"); this.dayDates = i, this.dayRanges = s }, componentFootprintToSegs: function (t) { var e, n, i, s = this.view, r = this.dayRanges, o = []; for (e = 0; e < r.length; e++) if ((n = t.unzonedRange.intersect(r[e])) && (i = { startMs: n.startMs, endMs: n.endMs, isStart: n.isStart, isEnd: n.isEnd, dayIndex: e }, o.push(i), !i.isEnd && !t.isAllDay && t.unzonedRange.endMs < r[e + 1].startMs + s.nextDayThreshold)) { i.endMs = t.unzonedRange.endMs, i.isEnd = !0; break } return o }, computeEventTimeFormat: function () { return this.opt("mediumTimeFormat") }, handleSegClick: function (e, n) { var i; me.prototype.handleSegClick.apply(this, arguments), t(n.target).closest("a[href]").length || (i = e.footprint.eventDef.url) && !n.isDefaultPrevented() && (window.location.href = i) }, renderFgSegs: function (t) { return t = this.renderFgSegEls(t), t.length ? this.renderSegList(t) : this.renderEmptyMessage(), t }, renderEmptyMessage: function () { this.el.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">' + tt(this.opt("noEventsMessage")) + "</div></div></div>") }, renderSegList: function (e) { var n, i, s, r = this.groupSegsByDay(e), o = t('<table class="fc-list-table ' + this.view.calendar.theme.getClass("tableList") + '"><tbody/></table>'), a = o.find("tbody"); for (n = 0; n < r.length; n++) if (i = r[n]) for (a.append(this.dayHeaderHtml(this.dayDates[n])), this.sortEventSegs(i), s = 0; s < i.length; s++) a.append(i[s].el); this.el.empty().append(o) }, groupSegsByDay: function (t) { var e, n, i = []; for (e = 0; e < t.length; e++) n = t[e], (i[n.dayIndex] || (i[n.dayIndex] = [])).push(n); return i }, dayHeaderHtml: function (t) { var e = this.view, n = this.opt("listDayFormat"), i = this.opt("listDayAltFormat"); return '<tr class="fc-list-heading" data-date="' + t.format("YYYY-MM-DD") + '"><td class="' + e.calendar.theme.getClass("widgetHeader") + '" colspan="3">' + (n ? e.buildGotoAnchorHtml(t, { class: "fc-list-heading-main" }, tt(t.format(n))) : "") + (i ? e.buildGotoAnchorHtml(t, { class: "fc-list-heading-alt" }, tt(t.format(i))) : "") + "</td></tr>" }, fgSegHtml: function (t) { var e, n = this.view, i = n.calendar, s = i.theme, r = ["fc-list-item"].concat(this.getSegCustomClasses(t)), o = this.getSegBackgroundColor(t), a = t.footprint, l = a.eventDef, u = a.componentFootprint, c = l.url; return e = u.isAllDay ? n.getAllDayHtml() : n.isMultiDayRange(u.unzonedRange) ? t.isStart || t.isEnd ? tt(this._getEventTimeText(i.msToMoment(t.startMs), i.msToMoment(t.endMs), u.isAllDay)) : n.getAllDayHtml() : tt(this.getEventTimeText(a)), c && r.push("fc-has-url"), '<tr class="' + r.join(" ") + '">' + (this.displayEventTime ? '<td class="fc-list-item-time ' + s.getClass("widgetContent") + '">' + (e || "") + "</td>" : "") + '<td class="fc-list-item-marker ' + s.getClass("widgetContent") + '"><span class="fc-event-dot"' + (o ? ' style="background-color:' + o + '"' : "") + '></span></td><td class="fc-list-item-title ' + s.getClass("widgetContent") + '"><a' + (c ? ' href="' + tt(c) + '"' : "") + ">" + tt(l.title || "") + "</a></td></tr>" } }); return Ut.list = { class: un, buttonTextKey: "list", defaults: { buttonText: "list", listDayFormat: "LL", noEventsMessage: "No events to display" } }, Ut.listDay = { type: "list", duration: { days: 1 }, defaults: { listDayFormat: "dddd" } }, Ut.listWeek = { type: "list", duration: { weeks: 1 }, defaults: { listDayFormat: "dddd", listDayAltFormat: "LL" } }, Ut.listMonth = { type: "list", duration: { month: 1 }, defaults: { listDayAltFormat: "dddd" } }, Ut.listYear = { type: "list", duration: { year: 1 }, defaults: { listDayAltFormat: "dddd" } }, Vt
});

/*! highlight.js v9.13.1 | BSD3 License | git.io/hljslicense */
!function (e) { var n = "object" == typeof window && window || "object" == typeof self && self; "undefined" != typeof exports ? e(exports) : n && (n.hljs = e({}), "function" == typeof define && define.amd && define([], function () { return n.hljs })) }(function (e) { function n(e) { return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;") } function t(e) { return e.nodeName.toLowerCase() } function r(e, n) { var t = e && e.exec(n); return t && 0 === t.index } function a(e) { return k.test(e) } function i(e) { var n, t, r, i, o = e.className + " "; if (o += e.parentNode ? e.parentNode.className : "", t = M.exec(o)) return w(t[1]) ? t[1] : "no-highlight"; for (o = o.split(/\s+/), n = 0, r = o.length; r > n; n++)if (i = o[n], a(i) || w(i)) return i } function o(e) { var n, t = {}, r = Array.prototype.slice.call(arguments, 1); for (n in e) t[n] = e[n]; return r.forEach(function (e) { for (n in e) t[n] = e[n] }), t } function c(e) { var n = []; return function r(e, a) { for (var i = e.firstChild; i; i = i.nextSibling)3 === i.nodeType ? a += i.nodeValue.length : 1 === i.nodeType && (n.push({ event: "start", offset: a, node: i }), a = r(i, a), t(i).match(/br|hr|img|input/) || n.push({ event: "stop", offset: a, node: i })); return a }(e, 0), n } function u(e, r, a) { function i() { return e.length && r.length ? e[0].offset !== r[0].offset ? e[0].offset < r[0].offset ? e : r : "start" === r[0].event ? e : r : e.length ? e : r } function o(e) { function r(e) { return " " + e.nodeName + '="' + n(e.value).replace('"', "&quot;") + '"' } l += "<" + t(e) + E.map.call(e.attributes, r).join("") + ">" } function c(e) { l += "</" + t(e) + ">" } function u(e) { ("start" === e.event ? o : c)(e.node) } for (var s = 0, l = "", f = []; e.length || r.length;) { var g = i(); if (l += n(a.substring(s, g[0].offset)), s = g[0].offset, g === e) { f.reverse().forEach(c); do u(g.splice(0, 1)[0]), g = i(); while (g === e && g.length && g[0].offset === s); f.reverse().forEach(o) } else "start" === g[0].event ? f.push(g[0].node) : f.pop(), u(g.splice(0, 1)[0]) } return l + n(a.substr(s)) } function s(e) { return e.v && !e.cached_variants && (e.cached_variants = e.v.map(function (n) { return o(e, { v: null }, n) })), e.cached_variants || e.eW && [o(e)] || [e] } function l(e) { function n(e) { return e && e.source || e } function t(t, r) { return new RegExp(n(t), "m" + (e.cI ? "i" : "") + (r ? "g" : "")) } function r(a, i) { if (!a.compiled) { if (a.compiled = !0, a.k = a.k || a.bK, a.k) { var o = {}, c = function (n, t) { e.cI && (t = t.toLowerCase()), t.split(" ").forEach(function (e) { var t = e.split("|"); o[t[0]] = [n, t[1] ? Number(t[1]) : 1] }) }; "string" == typeof a.k ? c("keyword", a.k) : B(a.k).forEach(function (e) { c(e, a.k[e]) }), a.k = o } a.lR = t(a.l || /\w+/, !0), i && (a.bK && (a.b = "\\b(" + a.bK.split(" ").join("|") + ")\\b"), a.b || (a.b = /\B|\b/), a.bR = t(a.b), a.endSameAsBegin && (a.e = a.b), a.e || a.eW || (a.e = /\B|\b/), a.e && (a.eR = t(a.e)), a.tE = n(a.e) || "", a.eW && i.tE && (a.tE += (a.e ? "|" : "") + i.tE)), a.i && (a.iR = t(a.i)), null == a.r && (a.r = 1), a.c || (a.c = []), a.c = Array.prototype.concat.apply([], a.c.map(function (e) { return s("self" === e ? a : e) })), a.c.forEach(function (e) { r(e, a) }), a.starts && r(a.starts, i); var u = a.c.map(function (e) { return e.bK ? "\\.?(" + e.b + ")\\.?" : e.b }).concat([a.tE, a.i]).map(n).filter(Boolean); a.t = u.length ? t(u.join("|"), !0) : { exec: function () { return null } } } } r(e) } function f(e, t, a, i) { function o(e) { return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), "m") } function c(e, n) { var t, a; for (t = 0, a = n.c.length; a > t; t++)if (r(n.c[t].bR, e)) return n.c[t].endSameAsBegin && (n.c[t].eR = o(n.c[t].bR.exec(e)[0])), n.c[t] } function u(e, n) { if (r(e.eR, n)) { for (; e.endsParent && e.parent;)e = e.parent; return e } return e.eW ? u(e.parent, n) : void 0 } function s(e, n) { return !a && r(n.iR, e) } function p(e, n) { var t = R.cI ? n[0].toLowerCase() : n[0]; return e.k.hasOwnProperty(t) && e.k[t] } function d(e, n, t, r) { var a = r ? "" : j.classPrefix, i = '<span class="' + a, o = t ? "" : I; return i += e + '">', i + n + o } function h() { var e, t, r, a; if (!E.k) return n(k); for (a = "", t = 0, E.lR.lastIndex = 0, r = E.lR.exec(k); r;)a += n(k.substring(t, r.index)), e = p(E, r), e ? (M += e[1], a += d(e[0], n(r[0]))) : a += n(r[0]), t = E.lR.lastIndex, r = E.lR.exec(k); return a + n(k.substr(t)) } function b() { var e = "string" == typeof E.sL; if (e && !L[E.sL]) return n(k); var t = e ? f(E.sL, k, !0, B[E.sL]) : g(k, E.sL.length ? E.sL : void 0); return E.r > 0 && (M += t.r), e && (B[E.sL] = t.top), d(t.language, t.value, !1, !0) } function v() { y += null != E.sL ? b() : h(), k = "" } function m(e) { y += e.cN ? d(e.cN, "", !0) : "", E = Object.create(e, { parent: { value: E } }) } function N(e, n) { if (k += e, null == n) return v(), 0; var t = c(n, E); if (t) return t.skip ? k += n : (t.eB && (k += n), v(), t.rB || t.eB || (k = n)), m(t, n), t.rB ? 0 : n.length; var r = u(E, n); if (r) { var a = E; a.skip ? k += n : (a.rE || a.eE || (k += n), v(), a.eE && (k = n)); do E.cN && (y += I), E.skip || E.sL || (M += E.r), E = E.parent; while (E !== r.parent); return r.starts && (r.endSameAsBegin && (r.starts.eR = r.eR), m(r.starts, "")), a.rE ? 0 : n.length } if (s(n, E)) throw new Error('Illegal lexeme "' + n + '" for mode "' + (E.cN || "<unnamed>") + '"'); return k += n, n.length || 1 } var R = w(e); if (!R) throw new Error('Unknown language: "' + e + '"'); l(R); var x, E = i || R, B = {}, y = ""; for (x = E; x !== R; x = x.parent)x.cN && (y = d(x.cN, "", !0) + y); var k = "", M = 0; try { for (var C, A, S = 0; ;) { if (E.t.lastIndex = S, C = E.t.exec(t), !C) break; A = N(t.substring(S, C.index), C[0]), S = C.index + A } for (N(t.substr(S)), x = E; x.parent; x = x.parent)x.cN && (y += I); return { r: M, value: y, language: e, top: E } } catch (O) { if (O.message && -1 !== O.message.indexOf("Illegal")) return { r: 0, value: n(t) }; throw O } } function g(e, t) { t = t || j.languages || B(L); var r = { r: 0, value: n(e) }, a = r; return t.filter(w).filter(x).forEach(function (n) { var t = f(n, e, !1); t.language = n, t.r > a.r && (a = t), t.r > r.r && (a = r, r = t) }), a.language && (r.second_best = a), r } function p(e) { return j.tabReplace || j.useBR ? e.replace(C, function (e, n) { return j.useBR && "\n" === e ? "<br>" : j.tabReplace ? n.replace(/\t/g, j.tabReplace) : "" }) : e } function d(e, n, t) { var r = n ? y[n] : t, a = [e.trim()]; return e.match(/\bhljs\b/) || a.push("hljs"), -1 === e.indexOf(r) && a.push(r), a.join(" ").trim() } function h(e) { var n, t, r, o, s, l = i(e); a(l) || (j.useBR ? (n = document.createElementNS("http://www.w3.org/1999/xhtml", "div"), n.innerHTML = e.innerHTML.replace(/\n/g, "").replace(/<br[ \/]*>/g, "\n")) : n = e, s = n.textContent, r = l ? f(l, s, !0) : g(s), t = c(n), t.length && (o = document.createElementNS("http://www.w3.org/1999/xhtml", "div"), o.innerHTML = r.value, r.value = u(t, c(o), s)), r.value = p(r.value), e.innerHTML = r.value, e.className = d(e.className, l, r.language), e.result = { language: r.language, re: r.r }, r.second_best && (e.second_best = { language: r.second_best.language, re: r.second_best.r })) } function b(e) { j = o(j, e) } function v() { if (!v.called) { v.called = !0; var e = document.querySelectorAll("pre code"); E.forEach.call(e, h) } } function m() { addEventListener("DOMContentLoaded", v, !1), addEventListener("load", v, !1) } function N(n, t) { var r = L[n] = t(e); r.aliases && r.aliases.forEach(function (e) { y[e] = n }) } function R() { return B(L) } function w(e) { return e = (e || "").toLowerCase(), L[e] || L[y[e]] } function x(e) { var n = w(e); return n && !n.disableAutodetect } var E = [], B = Object.keys, L = {}, y = {}, k = /^(no-?highlight|plain|text)$/i, M = /\blang(?:uage)?-([\w-]+)\b/i, C = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, I = "</span>", j = { classPrefix: "hljs-", tabReplace: null, useBR: !1, languages: void 0 }; return e.highlight = f, e.highlightAuto = g, e.fixMarkup = p, e.highlightBlock = h, e.configure = b, e.initHighlighting = v, e.initHighlightingOnLoad = m, e.registerLanguage = N, e.listLanguages = R, e.getLanguage = w, e.autoDetection = x, e.inherit = o, e.IR = "[a-zA-Z]\\w*", e.UIR = "[a-zA-Z_]\\w*", e.NR = "\\b\\d+(\\.\\d+)?", e.CNR = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", e.BNR = "\\b(0b[01]+)", e.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", e.BE = { b: "\\\\[\\s\\S]", r: 0 }, e.ASM = { cN: "string", b: "'", e: "'", i: "\\n", c: [e.BE] }, e.QSM = { cN: "string", b: '"', e: '"', i: "\\n", c: [e.BE] }, e.PWM = { b: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, e.C = function (n, t, r) { var a = e.inherit({ cN: "comment", b: n, e: t, c: [] }, r || {}); return a.c.push(e.PWM), a.c.push({ cN: "doctag", b: "(?:TODO|FIXME|NOTE|BUG|XXX):", r: 0 }), a }, e.CLCM = e.C("//", "$"), e.CBCM = e.C("/\\*", "\\*/"), e.HCM = e.C("#", "$"), e.NM = { cN: "number", b: e.NR, r: 0 }, e.CNM = { cN: "number", b: e.CNR, r: 0 }, e.BNM = { cN: "number", b: e.BNR, r: 0 }, e.CSSNM = { cN: "number", b: e.NR + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", r: 0 }, e.RM = { cN: "regexp", b: /\//, e: /\/[gimuy]*/, i: /\n/, c: [e.BE, { b: /\[/, e: /\]/, r: 0, c: [e.BE] }] }, e.TM = { cN: "title", b: e.IR, r: 0 }, e.UTM = { cN: "title", b: e.UIR, r: 0 }, e.METHOD_GUARD = { b: "\\.\\s*" + e.UIR, r: 0 }, e }); hljs.registerLanguage("sql", function (e) { var t = e.C("--", "$"); return { cI: !0, i: /[<>{}*]/, c: [{ bK: "begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment with", e: /;/, eW: !0, l: /[\w\.]+/, k: { keyword: "as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek", literal: "true false null unknown", built_in: "array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp varchar varying void" }, c: [{ cN: "string", b: "'", e: "'", c: [e.BE, { b: "''" }] }, { cN: "string", b: '"', e: '"', c: [e.BE, { b: '""' }] }, { cN: "string", b: "`", e: "`", c: [e.BE] }, e.CNM, e.CBCM, t, e.HCM] }, e.CBCM, t, e.HCM] } });


//The MIT License(MIT)

//Copyright(c) 2016 - present ZeroTurnaround LLC

//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files(the "Software"), to deal
//    in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:

//The above copyright notice and this permission notice shall be included in all
//copies or substantial portions of the Software.

//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
//SOFTWARE.

!function (e, t) { "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.sqlFormatter = t() : e.sqlFormatter = t() }(this, function () {
    return function (e) { function t(n) { if (E[n]) return E[n].exports; var r = E[n] = { exports: {}, id: n, loaded: !1 }; return e[n].call(r.exports, r, r.exports, t), r.loaded = !0, r.exports } var E = {}; return t.m = e, t.c = E, t.p = "", t(0) }([function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } t.__esModule = !0; var r = E(24), o = n(r), T = E(25), R = n(T), N = E(26), i = n(N), A = E(27), I = n(A); t.default = { format: function (e, t) { switch (t = t || {}, t.language) { case "db2": return new o.default(t).format(e); case "n1ql": return new R.default(t).format(e); case "pl/sql": return new i.default(t).format(e); case "sql": case void 0: return new I.default(t).format(e); default: throw Error("Unsupported SQL dialect: " + t.language) } } }, e.exports = t.default }, function (e, t, E) { var n = E(12), r = "object" == typeof self && self && self.Object === Object && self, o = n || r || Function("return this")(); e.exports = o }, function (e, t, E) { function n(e) { return null == e ? void 0 === e ? N : R : i && i in Object(e) ? o(e) : T(e) } var r = E(9), o = E(48), T = E(57), R = "[object Null]", N = "[object Undefined]", i = r ? r.toStringTag : void 0; e.exports = n }, function (e, t, E) { function n(e, t) { var E = o(e, t); return r(E) ? E : void 0 } var r = E(39), o = E(50); e.exports = n }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(74), T = n(o), R = E(8), N = n(R), i = E(21), A = n(i), I = E(22), O = n(I), u = E(23), S = n(u), s = function () { function e(t, E) { r(this, e), this.cfg = t || {}, this.indentation = new A.default(this.cfg.indent), this.inlineBlock = new O.default, this.params = new S.default(this.cfg.params), this.tokenizer = E, this.previousReservedWord = {}, this.tokens = [], this.index = 0 } return e.prototype.format = function (e) { this.tokens = this.tokenizer.tokenize(e); var t = this.getFormattedQueryFromTokens(); return t.trim() }, e.prototype.getFormattedQueryFromTokens = function () { var e = this, t = ""; return this.tokens.forEach(function (E, n) { e.index = n, E.type === N.default.WHITESPACE || (E.type === N.default.LINE_COMMENT ? t = e.formatLineComment(E, t) : E.type === N.default.BLOCK_COMMENT ? t = e.formatBlockComment(E, t) : E.type === N.default.RESERVED_TOPLEVEL ? (t = e.formatToplevelReservedWord(E, t), e.previousReservedWord = E) : E.type === N.default.RESERVED_NEWLINE ? (t = e.formatNewlineReservedWord(E, t), e.previousReservedWord = E) : E.type === N.default.RESERVED ? (t = e.formatWithSpaces(E, t), e.previousReservedWord = E) : t = E.type === N.default.OPEN_PAREN ? e.formatOpeningParentheses(E, t) : E.type === N.default.CLOSE_PAREN ? e.formatClosingParentheses(E, t) : E.type === N.default.PLACEHOLDER ? e.formatPlaceholder(E, t) : "," === E.value ? e.formatComma(E, t) : ":" === E.value ? e.formatWithSpaceAfter(E, t) : "." === E.value || ";" === E.value ? e.formatWithoutSpaces(E, t) : e.formatWithSpaces(E, t)) }), t }, e.prototype.formatLineComment = function (e, t) { return this.addNewline(t + e.value) }, e.prototype.formatBlockComment = function (e, t) { return this.addNewline(this.addNewline(t) + this.indentComment(e.value)) }, e.prototype.indentComment = function (e) { return e.replace(/\n/g, "\n" + this.indentation.getIndent()) }, e.prototype.formatToplevelReservedWord = function (e, t) { return this.indentation.decreaseTopLevel(), t = this.addNewline(t), this.indentation.increaseToplevel(), t += this.equalizeWhitespace(e.value), this.addNewline(t) }, e.prototype.formatNewlineReservedWord = function (e, t) { return this.addNewline(t) + this.equalizeWhitespace(e.value) + " " }, e.prototype.equalizeWhitespace = function (e) { return e.replace(/\s+/g, " ") }, e.prototype.formatOpeningParentheses = function (e, t) { var E = [N.default.WHITESPACE, N.default.OPEN_PAREN, N.default.LINE_COMMENT]; return E.includes(this.previousToken().type) || (t = (0, T.default)(t)), t += e.value, this.inlineBlock.beginIfPossible(this.tokens, this.index), this.inlineBlock.isActive() || (this.indentation.increaseBlockLevel(), t = this.addNewline(t)), t }, e.prototype.formatClosingParentheses = function (e, t) { return this.inlineBlock.isActive() ? (this.inlineBlock.end(), this.formatWithSpaceAfter(e, t)) : (this.indentation.decreaseBlockLevel(), this.formatWithSpaces(e, this.addNewline(t))) }, e.prototype.formatPlaceholder = function (e, t) { return t + this.params.get(e) + " " }, e.prototype.formatComma = function (e, t) { return t = this.trimTrailingWhitespace(t) + e.value + " ", this.inlineBlock.isActive() ? t : /^LIMIT$/i.test(this.previousReservedWord.value) ? t : this.addNewline(t) }, e.prototype.formatWithSpaceAfter = function (e, t) { return this.trimTrailingWhitespace(t) + e.value + " " }, e.prototype.formatWithoutSpaces = function (e, t) { return this.trimTrailingWhitespace(t) + e.value }, e.prototype.formatWithSpaces = function (e, t) { return t + e.value + " " }, e.prototype.addNewline = function (e) { return (0, T.default)(e) + "\n" + this.indentation.getIndent() }, e.prototype.trimTrailingWhitespace = function (e) { return this.previousNonWhitespaceToken().type === N.default.LINE_COMMENT ? (0, T.default)(e) + "\n" : (0, T.default)(e) }, e.prototype.previousNonWhitespaceToken = function () { for (var e = 1; this.previousToken(e).type === N.default.WHITESPACE;)e++; return this.previousToken(e) }, e.prototype.previousToken = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; return this.tokens[this.index - e] || {} }, e }(); t.default = s, e.exports = t.default }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(66), T = n(o), R = E(63), N = n(R), i = E(8), A = n(i), I = function () { function e(t) { r(this, e), this.WHITESPACE_REGEX = /^(\s+)/, this.NUMBER_REGEX = /^((-\s*)?[0-9]+(\.[0-9]+)?|0x[0-9a-fA-F]+|0b[01]+)\b/, this.OPERATOR_REGEX = /^(!=|<>|==|<=|>=|!<|!>|\|\||::|->>|->|~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|.)/, this.BLOCK_COMMENT_REGEX = /^(\/\*[^]*?(?:\*\/|$))/, this.LINE_COMMENT_REGEX = this.createLineCommentRegex(t.lineCommentTypes), this.RESERVED_TOPLEVEL_REGEX = this.createReservedWordRegex(t.reservedToplevelWords), this.RESERVED_NEWLINE_REGEX = this.createReservedWordRegex(t.reservedNewlineWords), this.RESERVED_PLAIN_REGEX = this.createReservedWordRegex(t.reservedWords), this.WORD_REGEX = this.createWordRegex(t.specialWordChars), this.STRING_REGEX = this.createStringRegex(t.stringTypes), this.OPEN_PAREN_REGEX = this.createParenRegex(t.openParens), this.CLOSE_PAREN_REGEX = this.createParenRegex(t.closeParens), this.INDEXED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(t.indexedPlaceholderTypes, "[0-9]*"), this.IDENT_NAMED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(t.namedPlaceholderTypes, "[a-zA-Z0-9._$]+"), this.STRING_NAMED_PLACEHOLDER_REGEX = this.createPlaceholderRegex(t.namedPlaceholderTypes, this.createStringPattern(t.stringTypes)) } return e.prototype.createLineCommentRegex = function (e) { return RegExp("^((?:" + e.map(function (e) { return (0, N.default)(e) }).join("|") + ").*?(?:\n|$))") }, e.prototype.createReservedWordRegex = function (e) { var t = e.join("|").replace(/ /g, "\\s+"); return RegExp("^(" + t + ")\\b", "i") }, e.prototype.createWordRegex = function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; return RegExp("^([\\w" + e.join("") + "]+)") }, e.prototype.createStringRegex = function (e) { return RegExp("^(" + this.createStringPattern(e) + ")") }, e.prototype.createStringPattern = function (e) { var t = { "``": "((`[^`]*($|`))+)", "[]": "((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)", '""': '(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)', "''": "(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)", "N''": "((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)" }; return e.map(function (e) { return t[e] }).join("|") }, e.prototype.createParenRegex = function (e) { var t = this; return RegExp("^(" + e.map(function (e) { return t.escapeParen(e) }).join("|") + ")", "i") }, e.prototype.escapeParen = function (e) { return 1 === e.length ? (0, N.default)(e) : "\\b" + e + "\\b" }, e.prototype.createPlaceholderRegex = function (e, t) { if ((0, T.default)(e)) return !1; var E = e.map(N.default).join("|"); return RegExp("^((?:" + E + ")(?:" + t + "))") }, e.prototype.tokenize = function (e) { for (var t = [], E = void 0; e.length;)E = this.getNextToken(e, E), e = e.substring(E.value.length), t.push(E); return t }, e.prototype.getNextToken = function (e, t) { return this.getWhitespaceToken(e) || this.getCommentToken(e) || this.getStringToken(e) || this.getOpenParenToken(e) || this.getCloseParenToken(e) || this.getPlaceholderToken(e) || this.getNumberToken(e) || this.getReservedWordToken(e, t) || this.getWordToken(e) || this.getOperatorToken(e) }, e.prototype.getWhitespaceToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.WHITESPACE, regex: this.WHITESPACE_REGEX }) }, e.prototype.getCommentToken = function (e) { return this.getLineCommentToken(e) || this.getBlockCommentToken(e) }, e.prototype.getLineCommentToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.LINE_COMMENT, regex: this.LINE_COMMENT_REGEX }) }, e.prototype.getBlockCommentToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.BLOCK_COMMENT, regex: this.BLOCK_COMMENT_REGEX }) }, e.prototype.getStringToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.STRING, regex: this.STRING_REGEX }) }, e.prototype.getOpenParenToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.OPEN_PAREN, regex: this.OPEN_PAREN_REGEX }) }, e.prototype.getCloseParenToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.CLOSE_PAREN, regex: this.CLOSE_PAREN_REGEX }) }, e.prototype.getPlaceholderToken = function (e) { return this.getIdentNamedPlaceholderToken(e) || this.getStringNamedPlaceholderToken(e) || this.getIndexedPlaceholderToken(e) }, e.prototype.getIdentNamedPlaceholderToken = function (e) { return this.getPlaceholderTokenWithKey({ input: e, regex: this.IDENT_NAMED_PLACEHOLDER_REGEX, parseKey: function (e) { return e.slice(1) } }) }, e.prototype.getStringNamedPlaceholderToken = function (e) { var t = this; return this.getPlaceholderTokenWithKey({ input: e, regex: this.STRING_NAMED_PLACEHOLDER_REGEX, parseKey: function (e) { return t.getEscapedPlaceholderKey({ key: e.slice(2, -1), quoteChar: e.slice(-1) }) } }) }, e.prototype.getIndexedPlaceholderToken = function (e) { return this.getPlaceholderTokenWithKey({ input: e, regex: this.INDEXED_PLACEHOLDER_REGEX, parseKey: function (e) { return e.slice(1) } }) }, e.prototype.getPlaceholderTokenWithKey = function (e) { var t = e.input, E = e.regex, n = e.parseKey, r = this.getTokenOnFirstMatch({ input: t, regex: E, type: A.default.PLACEHOLDER }); return r && (r.key = n(r.value)), r }, e.prototype.getEscapedPlaceholderKey = function (e) { var t = e.key, E = e.quoteChar; return t.replace(RegExp((0, N.default)("\\") + E, "g"), E) }, e.prototype.getNumberToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.NUMBER, regex: this.NUMBER_REGEX }) }, e.prototype.getOperatorToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.OPERATOR, regex: this.OPERATOR_REGEX }) }, e.prototype.getReservedWordToken = function (e, t) { if (!t || !t.value || "." !== t.value) return this.getToplevelReservedToken(e) || this.getNewlineReservedToken(e) || this.getPlainReservedToken(e) }, e.prototype.getToplevelReservedToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.RESERVED_TOPLEVEL, regex: this.RESERVED_TOPLEVEL_REGEX }) }, e.prototype.getNewlineReservedToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.RESERVED_NEWLINE, regex: this.RESERVED_NEWLINE_REGEX }) }, e.prototype.getPlainReservedToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.RESERVED, regex: this.RESERVED_PLAIN_REGEX }) }, e.prototype.getWordToken = function (e) { return this.getTokenOnFirstMatch({ input: e, type: A.default.WORD, regex: this.WORD_REGEX }) }, e.prototype.getTokenOnFirstMatch = function (e) { var t = e.input, E = e.type, n = e.regex, r = t.match(n); if (r) return { type: E, value: r[1] } }, e }(); t.default = I, e.exports = t.default }, function (e, t) { function E(e) { var t = typeof e; return null != e && ("object" == t || "function" == t) } e.exports = E }, function (e, t) { function E(e) { return null != e && "object" == typeof e } e.exports = E }, function (e, t) { "use strict"; t.__esModule = !0, t.default = { WHITESPACE: "whitespace", WORD: "word", STRING: "string", RESERVED: "reserved", RESERVED_TOPLEVEL: "reserved-toplevel", RESERVED_NEWLINE: "reserved-newline", OPERATOR: "operator", OPEN_PAREN: "open-paren", CLOSE_PAREN: "close-paren", LINE_COMMENT: "line-comment", BLOCK_COMMENT: "block-comment", NUMBER: "number", PLACEHOLDER: "placeholder" }, e.exports = t.default }, function (e, t, E) { var n = E(1), r = n.Symbol; e.exports = r }, function (e, t, E) { function n(e) { return null == e ? "" : r(e) } var r = E(11); e.exports = n }, function (e, t, E) { function n(e) { if ("string" == typeof e) return e; if (T(e)) return o(e, n) + ""; if (R(e)) return A ? A.call(e) : ""; var t = e + ""; return "0" == t && 1 / e == -N ? "-0" : t } var r = E(9), o = E(33), T = E(15), R = E(19), N = 1 / 0, i = r ? r.prototype : void 0, A = i ? i.toString : void 0; e.exports = n }, function (e, t) { (function (t) { var E = "object" == typeof t && t && t.Object === Object && t; e.exports = E }).call(t, function () { return this }()) }, function (e, t) { function E(e) { var t = e && e.constructor, E = "function" == typeof t && t.prototype || n; return e === E } var n = Object.prototype; e.exports = E }, function (e, t) { function E(e) { if (null != e) { try { return r.call(e) } catch (e) { } try { return e + "" } catch (e) { } } return "" } var n = Function.prototype, r = n.toString; e.exports = E }, function (e, t) { var E = Array.isArray; e.exports = E }, function (e, t, E) { function n(e) { return null != e && o(e.length) && !r(e) } var r = E(17), o = E(18); e.exports = n }, function (e, t, E) { function n(e) { if (!o(e)) return !1; var t = r(e); return t == R || t == N || t == T || t == i } var r = E(2), o = E(6), T = "[object AsyncFunction]", R = "[object Function]", N = "[object GeneratorFunction]", i = "[object Proxy]"; e.exports = n }, function (e, t) { function E(e) { return "number" == typeof e && e > -1 && e % 1 == 0 && n >= e } var n = 9007199254740991; e.exports = E }, function (e, t, E) { function n(e) { return "symbol" == typeof e || o(e) && r(e) == T } var r = E(2), o = E(7), T = "[object Symbol]"; e.exports = n }, function (e, t) { e.exports = function (e) { return e.webpackPolyfill || (e.deprecate = function () { }, e.paths = [], e.children = [], e.webpackPolyfill = 1), e } }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(69), T = n(o), R = E(68), N = n(R), i = "top-level", A = "block-level", I = function () { function e(t) { r(this, e), this.indent = t || "  ", this.indentTypes = [] } return e.prototype.getIndent = function () { return (0, T.default)(this.indent, this.indentTypes.length) }, e.prototype.increaseToplevel = function () { this.indentTypes.push(i) }, e.prototype.increaseBlockLevel = function () { this.indentTypes.push(A) }, e.prototype.decreaseTopLevel = function () { (0, N.default)(this.indentTypes) === i && this.indentTypes.pop() }, e.prototype.decreaseBlockLevel = function () { for (; this.indentTypes.length > 0;){ var e = this.indentTypes.pop(); if (e !== i) break } }, e }(); t.default = I, e.exports = t.default }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(8), T = n(o), R = 50, N = function () { function e() { r(this, e), this.level = 0 } return e.prototype.beginIfPossible = function (e, t) { 0 === this.level && this.isInlineBlock(e, t) ? this.level = 1 : this.level > 0 ? this.level++ : this.level = 0 }, e.prototype.end = function () { this.level-- }, e.prototype.isActive = function () { return this.level > 0 }, e.prototype.isInlineBlock = function (e, t) { for (var E = 0, n = 0, r = t; e.length > r; r++){ var o = e[r]; if (E += o.value.length, E > R) return !1; if (o.type === T.default.OPEN_PAREN) n++; else if (o.type === T.default.CLOSE_PAREN && (n-- , 0 === n)) return !0; if (this.isForbiddenToken(o)) return !1 } return !1 }, e.prototype.isForbiddenToken = function (e) { var t = e.type, E = e.value; return t === T.default.RESERVED_TOPLEVEL || t === T.default.RESERVED_NEWLINE || t === T.default.COMMENT || t === T.default.BLOCK_COMMENT || ";" === E }, e }(); t.default = N, e.exports = t.default }, function (e, t) { "use strict"; function E(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var n = function () { function e(t) { E(this, e), this.params = t, this.index = 0 } return e.prototype.get = function (e) { var t = e.key, E = e.value; return this.params ? t ? this.params[t] : this.params[this.index++] : E }, e }(); t.default = n, e.exports = t.default }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(4), T = n(o), R = E(5), N = n(R), i = ["ABS", "ACTIVATE", "ALIAS", "ALL", "ALLOCATE", "ALLOW", "ALTER", "ANY", "ARE", "ARRAY", "AS", "ASC", "ASENSITIVE", "ASSOCIATE", "ASUTIME", "ASYMMETRIC", "AT", "ATOMIC", "ATTRIBUTES", "AUDIT", "AUTHORIZATION", "AUX", "AUXILIARY", "AVG", "BEFORE", "BEGIN", "BETWEEN", "BIGINT", "BINARY", "BLOB", "BOOLEAN", "BOTH", "BUFFERPOOL", "BY", "CACHE", "CALL", "CALLED", "CAPTURE", "CARDINALITY", "CASCADED", "CASE", "CAST", "CCSID", "CEIL", "CEILING", "CHAR", "CHARACTER", "CHARACTER_LENGTH", "CHAR_LENGTH", "CHECK", "CLOB", "CLONE", "CLOSE", "CLUSTER", "COALESCE", "COLLATE", "COLLECT", "COLLECTION", "COLLID", "COLUMN", "COMMENT", "COMMIT", "CONCAT", "CONDITION", "CONNECT", "CONNECTION", "CONSTRAINT", "CONTAINS", "CONTINUE", "CONVERT", "CORR", "CORRESPONDING", "COUNT", "COUNT_BIG", "COVAR_POP", "COVAR_SAMP", "CREATE", "CROSS", "CUBE", "CUME_DIST", "CURRENT", "CURRENT_DATE", "CURRENT_DEFAULT_TRANSFORM_GROUP", "CURRENT_LC_CTYPE", "CURRENT_PATH", "CURRENT_ROLE", "CURRENT_SCHEMA", "CURRENT_SERVER", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_TIMEZONE", "CURRENT_TRANSFORM_GROUP_FOR_TYPE", "CURRENT_USER", "CURSOR", "CYCLE", "DATA", "DATABASE", "DATAPARTITIONNAME", "DATAPARTITIONNUM", "DATE", "DAY", "DAYS", "DB2GENERAL", "DB2GENRL", "DB2SQL", "DBINFO", "DBPARTITIONNAME", "DBPARTITIONNUM", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFAULTS", "DEFINITION", "DELETE", "DENSERANK", "DENSE_RANK", "DEREF", "DESCRIBE", "DESCRIPTOR", "DETERMINISTIC", "DIAGNOSTICS", "DISABLE", "DISALLOW", "DISCONNECT", "DISTINCT", "DO", "DOCUMENT", "DOUBLE", "DROP", "DSSIZE", "DYNAMIC", "EACH", "EDITPROC", "ELEMENT", "ELSE", "ELSEIF", "ENABLE", "ENCODING", "ENCRYPTION", "END", "END-EXEC", "ENDING", "ERASE", "ESCAPE", "EVERY", "EXCEPTION", "EXCLUDING", "EXCLUSIVE", "EXEC", "EXECUTE", "EXISTS", "EXIT", "EXP", "EXPLAIN", "EXTENDED", "EXTERNAL", "EXTRACT", "FALSE", "FENCED", "FETCH", "FIELDPROC", "FILE", "FILTER", "FINAL", "FIRST", "FLOAT", "FLOOR", "FOR", "FOREIGN", "FREE", "FULL", "FUNCTION", "FUSION", "GENERAL", "GENERATED", "GET", "GLOBAL", "GOTO", "GRANT", "GRAPHIC", "GROUP", "GROUPING", "HANDLER", "HASH", "HASHED_VALUE", "HINT", "HOLD", "HOUR", "HOURS", "IDENTITY", "IF", "IMMEDIATE", "IN", "INCLUDING", "INCLUSIVE", "INCREMENT", "INDEX", "INDICATOR", "INDICATORS", "INF", "INFINITY", "INHERIT", "INNER", "INOUT", "INSENSITIVE", "INSERT", "INT", "INTEGER", "INTEGRITY", "INTERSECTION", "INTERVAL", "INTO", "IS", "ISOBID", "ISOLATION", "ITERATE", "JAR", "JAVA", "KEEP", "KEY", "LABEL", "LANGUAGE", "LARGE", "LATERAL", "LC_CTYPE", "LEADING", "LEAVE", "LEFT", "LIKE", "LINKTYPE", "LN", "LOCAL", "LOCALDATE", "LOCALE", "LOCALTIME", "LOCALTIMESTAMP", "LOCATOR", "LOCATORS", "LOCK", "LOCKMAX", "LOCKSIZE", "LONG", "LOOP", "LOWER", "MAINTAINED", "MATCH", "MATERIALIZED", "MAX", "MAXVALUE", "MEMBER", "MERGE", "METHOD", "MICROSECOND", "MICROSECONDS", "MIN", "MINUTE", "MINUTES", "MINVALUE", "MOD", "MODE", "MODIFIES", "MODULE", "MONTH", "MONTHS", "MULTISET", "NAN", "NATIONAL", "NATURAL", "NCHAR", "NCLOB", "NEW", "NEW_TABLE", "NEXTVAL", "NO", "NOCACHE", "NOCYCLE", "NODENAME", "NODENUMBER", "NOMAXVALUE", "NOMINVALUE", "NONE", "NOORDER", "NORMALIZE", "NORMALIZED", "NOT", "NULL", "NULLIF", "NULLS", "NUMERIC", "NUMPARTS", "OBID", "OCTET_LENGTH", "OF", "OFFSET", "OLD", "OLD_TABLE", "ON", "ONLY", "OPEN", "OPTIMIZATION", "OPTIMIZE", "OPTION", "ORDER", "OUT", "OUTER", "OVER", "OVERLAPS", "OVERLAY", "OVERRIDING", "PACKAGE", "PADDED", "PAGESIZE", "PARAMETER", "PART", "PARTITION", "PARTITIONED", "PARTITIONING", "PARTITIONS", "PASSWORD", "PATH", "PERCENTILE_CONT", "PERCENTILE_DISC", "PERCENT_RANK", "PIECESIZE", "PLAN", "POSITION", "POWER", "PRECISION", "PREPARE", "PREVVAL", "PRIMARY", "PRIQTY", "PRIVILEGES", "PROCEDURE", "PROGRAM", "PSID", "PUBLIC", "QUERY", "QUERYNO", "RANGE", "RANK", "READ", "READS", "REAL", "RECOVERY", "RECURSIVE", "REF", "REFERENCES", "REFERENCING", "REFRESH", "REGR_AVGX", "REGR_AVGY", "REGR_COUNT", "REGR_INTERCEPT", "REGR_R2", "REGR_SLOPE", "REGR_SXX", "REGR_SXY", "REGR_SYY", "RELEASE", "RENAME", "REPEAT", "RESET", "RESIGNAL", "RESTART", "RESTRICT", "RESULT", "RESULT_SET_LOCATOR", "RETURN", "RETURNS", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUND_CEILING", "ROUND_DOWN", "ROUND_FLOOR", "ROUND_HALF_DOWN", "ROUND_HALF_EVEN", "ROUND_HALF_UP", "ROUND_UP", "ROUTINE", "ROW", "ROWNUMBER", "ROWS", "ROWSET", "ROW_NUMBER", "RRN", "RUN", "SAVEPOINT", "SCHEMA", "SCOPE", "SCRATCHPAD", "SCROLL", "SEARCH", "SECOND", "SECONDS", "SECQTY", "SECURITY", "SENSITIVE", "SEQUENCE", "SESSION", "SESSION_USER", "SIGNAL", "SIMILAR", "SIMPLE", "SMALLINT", "SNAN", "SOME", "SOURCE", "SPECIFIC", "SPECIFICTYPE", "SQL", "SQLEXCEPTION", "SQLID", "SQLSTATE", "SQLWARNING", "SQRT", "STACKED", "STANDARD", "START", "STARTING", "STATEMENT", "STATIC", "STATMENT", "STAY", "STDDEV_POP", "STDDEV_SAMP", "STOGROUP", "STORES", "STYLE", "SUBMULTISET", "SUBSTRING", "SUM", "SUMMARY", "SYMMETRIC", "SYNONYM", "SYSFUN", "SYSIBM", "SYSPROC", "SYSTEM", "SYSTEM_USER", "TABLE", "TABLESAMPLE", "TABLESPACE", "THEN", "TIME", "TIMESTAMP", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TRAILING", "TRANSACTION", "TRANSLATE", "TRANSLATION", "TREAT", "TRIGGER", "TRIM", "TRUE", "TRUNCATE", "TYPE", "UESCAPE", "UNDO", "UNIQUE", "UNKNOWN", "UNNEST", "UNTIL", "UPPER", "USAGE", "USER", "USING", "VALIDPROC", "VALUE", "VARCHAR", "VARIABLE", "VARIANT", "VARYING", "VAR_POP", "VAR_SAMP", "VCAT", "VERSION", "VIEW", "VOLATILE", "VOLUMES", "WHEN", "WHENEVER", "WHILE", "WIDTH_BUCKET", "WINDOW", "WITH", "WITHIN", "WITHOUT", "WLM", "WRITE", "XMLELEMENT", "XMLEXISTS", "XMLNAMESPACES", "YEAR", "YEARS"], A = ["ADD", "AFTER", "ALTER COLUMN", "ALTER TABLE", "DELETE FROM", "EXCEPT", "FETCH FIRST", "FROM", "GROUP BY", "GO", "HAVING", "INSERT INTO", "INTERSECT", "LIMIT", "ORDER BY", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UNION ALL", "UPDATE", "VALUES", "WHERE"], I = ["AND", "CROSS JOIN", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN"], O = void 0, u = function () { function e(t) { r(this, e), this.cfg = t } return e.prototype.format = function (e) { return O || (O = new N.default({ reservedWords: i, reservedToplevelWords: A, reservedNewlineWords: I, stringTypes: ['""', "''", "``", "[]"], openParens: ["("], closeParens: [")"], indexedPlaceholderTypes: ["?"], namedPlaceholderTypes: [":"], lineCommentTypes: ["--"], specialWordChars: ["#", "@"] })), new T.default(this.cfg, O).format(e) }, e }(); t.default = u, e.exports = t.default }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(4), T = n(o), R = E(5), N = n(R), i = ["ALL", "ALTER", "ANALYZE", "AND", "ANY", "ARRAY", "AS", "ASC", "BEGIN", "BETWEEN", "BINARY", "BOOLEAN", "BREAK", "BUCKET", "BUILD", "BY", "CALL", "CASE", "CAST", "CLUSTER", "COLLATE", "COLLECTION", "COMMIT", "CONNECT", "CONTINUE", "CORRELATE", "COVER", "CREATE", "DATABASE", "DATASET", "DATASTORE", "DECLARE", "DECREMENT", "DELETE", "DERIVED", "DESC", "DESCRIBE", "DISTINCT", "DO", "DROP", "EACH", "ELEMENT", "ELSE", "END", "EVERY", "EXCEPT", "EXCLUDE", "EXECUTE", "EXISTS", "EXPLAIN", "FALSE", "FETCH", "FIRST", "FLATTEN", "FOR", "FORCE", "FROM", "FUNCTION", "GRANT", "GROUP", "GSI", "HAVING", "IF", "IGNORE", "ILIKE", "IN", "INCLUDE", "INCREMENT", "INDEX", "INFER", "INLINE", "INNER", "INSERT", "INTERSECT", "INTO", "IS", "JOIN", "KEY", "KEYS", "KEYSPACE", "KNOWN", "LAST", "LEFT", "LET", "LETTING", "LIKE", "LIMIT", "LSM", "MAP", "MAPPING", "MATCHED", "MATERIALIZED", "MERGE", "MINUS", "MISSING", "NAMESPACE", "NEST", "NOT", "NULL", "NUMBER", "OBJECT", "OFFSET", "ON", "OPTION", "OR", "ORDER", "OUTER", "OVER", "PARSE", "PARTITION", "PASSWORD", "PATH", "POOL", "PREPARE", "PRIMARY", "PRIVATE", "PRIVILEGE", "PROCEDURE", "PUBLIC", "RAW", "REALM", "REDUCE", "RENAME", "RETURN", "RETURNING", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "SATISFIES", "SCHEMA", "SELECT", "SELF", "SEMI", "SET", "SHOW", "SOME", "START", "STATISTICS", "STRING", "SYSTEM", "THEN", "TO", "TRANSACTION", "TRIGGER", "TRUE", "TRUNCATE", "UNDER", "UNION", "UNIQUE", "UNKNOWN", "UNNEST", "UNSET", "UPDATE", "UPSERT", "USE", "USER", "USING", "VALIDATE", "VALUE", "VALUED", "VALUES", "VIA", "VIEW", "WHEN", "WHERE", "WHILE", "WITH", "WITHIN", "WORK", "XOR"], A = ["DELETE FROM", "EXCEPT ALL", "EXCEPT", "EXPLAIN DELETE FROM", "EXPLAIN UPDATE", "EXPLAIN UPSERT", "FROM", "GROUP BY", "HAVING", "INFER", "INSERT INTO", "INTERSECT ALL", "INTERSECT", "LET", "LIMIT", "MERGE", "NEST", "ORDER BY", "PREPARE", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UNION ALL", "UNION", "UNNEST", "UPDATE", "UPSERT", "USE KEYS", "VALUES", "WHERE"], I = ["AND", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN", "XOR"], O = void 0, u = function () { function e(t) { r(this, e), this.cfg = t } return e.prototype.format = function (e) { return O || (O = new N.default({ reservedWords: i, reservedToplevelWords: A, reservedNewlineWords: I, stringTypes: ['""', "''", "``"], openParens: ["(", "[", "{"], closeParens: [")", "]", "}"], namedPlaceholderTypes: ["$"], lineCommentTypes: ["#", "--"] })), new T.default(this.cfg, O).format(e) }, e }(); t.default = u, e.exports = t.default }, function (e, t, E) { "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(4), T = n(o), R = E(5), N = n(R), i = ["A", "ACCESSIBLE", "AGENT", "AGGREGATE", "ALL", "ALTER", "ANY", "ARRAY", "AS", "ASC", "AT", "ATTRIBUTE", "AUTHID", "AVG", "BETWEEN", "BFILE_BASE", "BINARY_INTEGER", "BINARY", "BLOB_BASE", "BLOCK", "BODY", "BOOLEAN", "BOTH", "BOUND", "BULK", "BY", "BYTE", "C", "CALL", "CALLING", "CASCADE", "CASE", "CHAR_BASE", "CHAR", "CHARACTER", "CHARSET", "CHARSETFORM", "CHARSETID", "CHECK", "CLOB_BASE", "CLONE", "CLOSE", "CLUSTER", "CLUSTERS", "COALESCE", "COLAUTH", "COLLECT", "COLUMNS", "COMMENT", "COMMIT", "COMMITTED", "COMPILED", "COMPRESS", "CONNECT", "CONSTANT", "CONSTRUCTOR", "CONTEXT", "CONTINUE", "CONVERT", "COUNT", "CRASH", "CREATE", "CREDENTIAL", "CURRENT", "CURRVAL", "CURSOR", "CUSTOMDATUM", "DANGLING", "DATA", "DATE_BASE", "DATE", "DAY", "DECIMAL", "DEFAULT", "DEFINE", "DELETE", "DESC", "DETERMINISTIC", "DIRECTORY", "DISTINCT", "DO", "DOUBLE", "DROP", "DURATION", "ELEMENT", "ELSIF", "EMPTY", "ESCAPE", "EXCEPTIONS", "EXCLUSIVE", "EXECUTE", "EXISTS", "EXIT", "EXTENDS", "EXTERNAL", "EXTRACT", "FALSE", "FETCH", "FINAL", "FIRST", "FIXED", "FLOAT", "FOR", "FORALL", "FORCE", "FROM", "FUNCTION", "GENERAL", "GOTO", "GRANT", "GROUP", "HASH", "HEAP", "HIDDEN", "HOUR", "IDENTIFIED", "IF", "IMMEDIATE", "IN", "INCLUDING", "INDEX", "INDEXES", "INDICATOR", "INDICES", "INFINITE", "INSTANTIABLE", "INT", "INTEGER", "INTERFACE", "INTERVAL", "INTO", "INVALIDATE", "IS", "ISOLATION", "JAVA", "LANGUAGE", "LARGE", "LEADING", "LENGTH", "LEVEL", "LIBRARY", "LIKE", "LIKE2", "LIKE4", "LIKEC", "LIMITED", "LOCAL", "LOCK", "LONG", "MAP", "MAX", "MAXLEN", "MEMBER", "MERGE", "MIN", "MINUS", "MINUTE", "MLSLABEL", "MOD", "MODE", "MONTH", "MULTISET", "NAME", "NAN", "NATIONAL", "NATIVE", "NATURAL", "NATURALN", "NCHAR", "NEW", "NEXTVAL", "NOCOMPRESS", "NOCOPY", "NOT", "NOWAIT", "NULL", "NULLIF", "NUMBER_BASE", "NUMBER", "OBJECT", "OCICOLL", "OCIDATE", "OCIDATETIME", "OCIDURATION", "OCIINTERVAL", "OCILOBLOCATOR", "OCINUMBER", "OCIRAW", "OCIREF", "OCIREFCURSOR", "OCIROWID", "OCISTRING", "OCITYPE", "OF", "OLD", "ON", "ONLY", "OPAQUE", "OPEN", "OPERATOR", "OPTION", "ORACLE", "ORADATA", "ORDER", "ORGANIZATION", "ORLANY", "ORLVARY", "OTHERS", "OUT", "OVERLAPS", "OVERRIDING", "PACKAGE", "PARALLEL_ENABLE", "PARAMETER", "PARAMETERS", "PARENT", "PARTITION", "PASCAL", "PCTFREE", "PIPE", "PIPELINED", "PLS_INTEGER", "PLUGGABLE", "POSITIVE", "POSITIVEN", "PRAGMA", "PRECISION", "PRIOR", "PRIVATE", "PROCEDURE", "PUBLIC", "RAISE", "RANGE", "RAW", "READ", "REAL", "RECORD", "REF", "REFERENCE", "RELEASE", "RELIES_ON", "REM", "REMAINDER", "RENAME", "RESOURCE", "RESULT_CACHE", "RESULT", "RETURN", "RETURNING", "REVERSE", "REVOKE", "ROLLBACK", "ROW", "ROWID", "ROWNUM", "ROWTYPE", "SAMPLE", "SAVE", "SAVEPOINT", "SB1", "SB2", "SB4", "SECOND", "SEGMENT", "SELF", "SEPARATE", "SEQUENCE", "SERIALIZABLE", "SHARE", "SHORT", "SIZE_T", "SIZE", "SMALLINT", "SOME", "SPACE", "SPARSE", "SQL", "SQLCODE", "SQLDATA", "SQLERRM", "SQLNAME", "SQLSTATE", "STANDARD", "START", "STATIC", "STDDEV", "STORED", "STRING", "STRUCT", "STYLE", "SUBMULTISET", "SUBPARTITION", "SUBSTITUTABLE", "SUBTYPE", "SUCCESSFUL", "SUM", "SYNONYM", "SYSDATE", "TABAUTH", "TABLE", "TDO", "THE", "THEN", "TIME", "TIMESTAMP", "TIMEZONE_ABBR", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TIMEZONE_REGION", "TO", "TRAILING", "TRANSACTION", "TRANSACTIONAL", "TRIGGER", "TRUE", "TRUSTED", "TYPE", "UB1", "UB2", "UB4", "UID", "UNDER", "UNIQUE", "UNPLUG", "UNSIGNED", "UNTRUSTED", "USE", "USER", "USING", "VALIDATE", "VALIST", "VALUE", "VARCHAR", "VARCHAR2", "VARIABLE", "VARIANCE", "VARRAY", "VARYING", "VIEW", "VIEWS", "VOID", "WHENEVER", "WHILE", "WITH", "WORK", "WRAPPED", "WRITE", "YEAR", "ZONE"], A = ["ADD", "ALTER COLUMN", "ALTER TABLE", "BEGIN", "CONNECT BY", "DECLARE", "DELETE FROM", "DELETE", "END", "EXCEPT", "EXCEPTION", "FETCH FIRST", "FROM", "GROUP BY", "HAVING", "INSERT INTO", "INSERT", "INTERSECT", "LIMIT", "LOOP", "MODIFY", "ORDER BY", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "START WITH", "UNION ALL", "UNION", "UPDATE", "VALUES", "WHERE"], I = ["AND", "CROSS APPLY", "CROSS JOIN", "ELSE", "END", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER APPLY", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN", "WHEN", "XOR"], O = void 0, u = function () { function e(t) { r(this, e), this.cfg = t } return e.prototype.format = function (e) { return O || (O = new N.default({ reservedWords: i, reservedToplevelWords: A, reservedNewlineWords: I, stringTypes: ['""', "N''", "''", "``"], openParens: ["(", "CASE"], closeParens: [")", "END"], indexedPlaceholderTypes: ["?"], namedPlaceholderTypes: [":"], lineCommentTypes: ["--"], specialWordChars: ["_", "$", "#", ".", "@"] })), new T.default(this.cfg, O).format(e) }, e }(); t.default = u, e.exports = t.default }, function (e, t, E) {
        "use strict"; function n(e) { return e && e.__esModule ? e : { default: e } } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } t.__esModule = !0; var o = E(4), T = n(o), R = E(5), N = n(R), i = ["ACCESSIBLE", "ACTION", "AGAINST", "AGGREGATE", "ALGORITHM", "ALL", "ALTER", "ANALYSE", "ANALYZE", "AS", "ASC", "AUTOCOMMIT", "AUTO_INCREMENT", "BACKUP", "BEGIN", "BETWEEN", "BINLOG", "BOTH", "CASCADE", "CASE", "CHANGE", "CHANGED", "CHARACTER SET", "CHARSET", "CHECK", "CHECKSUM", "COLLATE", "COLLATION", "COLUMN", "COLUMNS", "COMMENT", "COMMIT", "COMMITTED", "COMPRESSED", "CONCURRENT", "CONSTRAINT", "CONTAINS", "CONVERT", "CREATE", "CROSS", "CURRENT_TIMESTAMP", "DATABASE", "DATABASES", "DAY", "DAY_HOUR", "DAY_MINUTE", "DAY_SECOND", "DEFAULT", "DEFINER", "DELAYED", "DELETE", "DESC", "DESCRIBE", "DETERMINISTIC", "DISTINCT", "DISTINCTROW", "DIV", "DO", "DROP", "DUMPFILE", "DUPLICATE", "DYNAMIC", "ELSE", "ENCLOSED", "END", "ENGINE", "ENGINES", "ENGINE_TYPE", "ESCAPE", "ESCAPED", "EVENTS", "EXEC", "EXECUTE", "EXISTS", "EXPLAIN", "EXTENDED", "FAST", "FETCH", "FIELDS", "FILE", "FIRST", "FIXED", "FLUSH", "FOR", "FORCE", "FOREIGN", "FULL", "FULLTEXT", "FUNCTION", "GLOBAL", "GRANT", "GRANTS", "GROUP_CONCAT", "HEAP", "HIGH_PRIORITY", "HOSTS", "HOUR", "HOUR_MINUTE", "HOUR_SECOND", "IDENTIFIED", "IF", "IFNULL", "IGNORE", "IN", "INDEX", "INDEXES", "INFILE", "INSERT", "INSERT_ID", "INSERT_METHOD", "INTERVAL", "INTO", "INVOKER", "IS", "ISOLATION", "KEY", "KEYS", "KILL", "LAST_INSERT_ID", "LEADING", "LEVEL", "LIKE", "LINEAR", "LINES", "LOAD", "LOCAL", "LOCK", "LOCKS", "LOGS", "LOW_PRIORITY", "MARIA", "MASTER", "MASTER_CONNECT_RETRY", "MASTER_HOST", "MASTER_LOG_FILE", "MATCH", "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", "MAX_UPDATES_PER_HOUR", "MAX_USER_CONNECTIONS", "MEDIUM", "MERGE", "MINUTE", "MINUTE_SECOND", "MIN_ROWS", "MODE", "MODIFY", "MONTH", "MRG_MYISAM", "MYISAM", "NAMES", "NATURAL", "NOT", "NOW()", "NULL", "OFFSET", "ON DELETE", "ON UPDATE", "ON", "ONLY", "OPEN", "OPTIMIZE", "OPTION", "OPTIONALLY", "OUTFILE", "PACK_KEYS", "PAGE", "PARTIAL", "PARTITION", "PARTITIONS", "PASSWORD", "PRIMARY", "PRIVILEGES", "PROCEDURE", "PROCESS", "PROCESSLIST", "PURGE", "QUICK", "RAID0", "RAID_CHUNKS", "RAID_CHUNKSIZE", "RAID_TYPE", "RANGE", "READ", "READ_ONLY", "READ_WRITE", "REFERENCES", "REGEXP", "RELOAD", "RENAME", "REPAIR", "REPEATABLE", "REPLACE", "REPLICATION", "RESET", "RESTORE", "RESTRICT", "RETURN", "RETURNS", "REVOKE", "RLIKE", "ROLLBACK", "ROW", "ROWS", "ROW_FORMAT", "SECOND", "SECURITY", "SEPARATOR", "SERIALIZABLE", "SESSION", "SHARE", "SHOW", "SHUTDOWN", "SLAVE", "SONAME", "SOUNDS", "SQL", "SQL_AUTO_IS_NULL", "SQL_BIG_RESULT", "SQL_BIG_SELECTS", "SQL_BIG_TABLES", "SQL_BUFFER_RESULT", "SQL_CACHE", "SQL_CALC_FOUND_ROWS", "SQL_LOG_BIN", "SQL_LOG_OFF", "SQL_LOG_UPDATE", "SQL_LOW_PRIORITY_UPDATES", "SQL_MAX_JOIN_SIZE", "SQL_NO_CACHE", "SQL_QUOTE_SHOW_CREATE", "SQL_SAFE_UPDATES", "SQL_SELECT_LIMIT", "SQL_SLAVE_SKIP_COUNTER", "SQL_SMALL_RESULT", "SQL_WARNINGS", "START", "STARTING", "STATUS", "STOP", "STORAGE", "STRAIGHT_JOIN", "STRING", "STRIPED", "SUPER", "TABLE", "TABLES", "TEMPORARY", "TERMINATED", "THEN", "TO", "TRAILING", "TRANSACTIONAL", "TRUE", "TRUNCATE", "TYPE", "TYPES", "UNCOMMITTED", "UNIQUE", "UNLOCK", "UNSIGNED", "USAGE", "USE", "USING", "VARIABLES", "VIEW", "WHEN", "WITH", "WORK", "WRITE", "YEAR_MONTH"], A = ["ADD", "AFTER", "ALTER COLUMN", "ALTER TABLE", "DELETE FROM", "EXCEPT", "FETCH FIRST", "FROM", "GROUP BY", "GO", "HAVING", "INSERT INTO", "INSERT", "INTERSECT", "LIMIT", "MODIFY", "ORDER BY", "SELECT", "SET CURRENT SCHEMA", "SET SCHEMA", "SET", "UNION ALL", "UNION", "UPDATE", "VALUES", "WHERE"], I = ["AND", "CROSS APPLY", "CROSS JOIN", "ELSE", "INNER JOIN", "JOIN", "LEFT JOIN", "LEFT OUTER JOIN", "OR", "OUTER APPLY", "OUTER JOIN", "RIGHT JOIN", "RIGHT OUTER JOIN", "WHEN", "XOR"], O = void 0, u = function () {
            function e(t) { r(this, e), this.cfg = t } return e.prototype.format = function (e) { return O || (O = new N.default({ reservedWords: i, reservedToplevelWords: A, reservedNewlineWords: I, stringTypes: ['""', "N''", "''", "``", "[]"], openParens: ["(", "CASE"], closeParens: [")", "END"], indexedPlaceholderTypes: ["?"], namedPlaceholderTypes: ["@", ":"], lineCommentTypes: ["#", "--"] })), new T.default(this.cfg, O).format(e) }, e
        }(); t.default = u, e.exports = t.default
    }, function (e, t, E) { var n = E(3), r = E(1), o = n(r, "DataView"); e.exports = o }, function (e, t, E) { var n = E(3), r = E(1), o = n(r, "Map"); e.exports = o }, function (e, t, E) { var n = E(3), r = E(1), o = n(r, "Promise"); e.exports = o }, function (e, t, E) { var n = E(3), r = E(1), o = n(r, "Set"); e.exports = o }, function (e, t, E) { var n = E(3), r = E(1), o = n(r, "WeakMap"); e.exports = o }, function (e, t) { function E(e, t) { for (var E = -1, n = null == e ? 0 : e.length, r = Array(n); ++E < n;)r[E] = t(e[E], E, e); return r } e.exports = E }, function (e, t) { function E(e) { return e.split("") } e.exports = E }, function (e, t) { function E(e, t, E, n) { for (var r = e.length, o = E + (n ? 1 : -1); n ? o-- : ++o < r;)if (t(e[o], o, e)) return o; return -1 } e.exports = E }, function (e, t, E) { function n(e, t, E) { return t === t ? T(e, t, E) : r(e, o, E) } var r = E(35), o = E(38), T = E(59); e.exports = n }, function (e, t, E) { function n(e) { return o(e) && r(e) == T } var r = E(2), o = E(7), T = "[object Arguments]"; e.exports = n }, function (e, t) { function E(e) { return e !== e } e.exports = E }, function (e, t, E) { function n(e) { if (!T(e) || o(e)) return !1; var t = r(e) ? S : i; return t.test(R(e)) } var r = E(17), o = E(54), T = E(6), R = E(14), N = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, A = Function.prototype, I = Object.prototype, O = A.toString, u = I.hasOwnProperty, S = RegExp("^" + O.call(u).replace(N, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); e.exports = n }, function (e, t, E) { function n(e) { return T(e) && o(e.length) && !!G[r(e)] } var r = E(2), o = E(18), T = E(7), R = "[object Arguments]", N = "[object Array]", i = "[object Boolean]", A = "[object Date]", I = "[object Error]", O = "[object Function]", u = "[object Map]", S = "[object Number]", s = "[object Object]", a = "[object RegExp]", L = "[object Set]", c = "[object String]", C = "[object WeakMap]", f = "[object ArrayBuffer]", p = "[object DataView]", l = "[object Float32Array]", d = "[object Float64Array]", P = "[object Int8Array]", D = "[object Int16Array]", U = "[object Int32Array]", M = "[object Uint8Array]", h = "[object Uint8ClampedArray]", _ = "[object Uint16Array]", v = "[object Uint32Array]", G = {}; G[l] = G[d] = G[P] = G[D] = G[U] = G[M] = G[h] = G[_] = G[v] = !0, G[R] = G[N] = G[f] = G[i] = G[p] = G[A] = G[I] = G[O] = G[u] = G[S] = G[s] = G[a] = G[L] = G[c] = G[C] = !1, e.exports = n }, function (e, t, E) { function n(e) { if (!r(e)) return o(e); var t = []; for (var E in Object(e)) R.call(e, E) && "constructor" != E && t.push(E); return t } var r = E(13), o = E(55), T = Object.prototype, R = T.hasOwnProperty; e.exports = n }, function (e, t) { function E(e, t) { var E = ""; if (!e || 1 > t || t > n) return E; do t % 2 && (E += e), t = r(t / 2), t && (e += e); while (t); return E } var n = 9007199254740991, r = Math.floor; e.exports = E }, function (e, t) { function E(e, t, E) { var n = -1, r = e.length; 0 > t && (t = -t > r ? 0 : r + t), E = E > r ? r : E, 0 > E && (E += r), r = t > E ? 0 : E - t >>> 0, t >>>= 0; for (var o = Array(r); ++n < r;)o[n] = e[n + t]; return o } e.exports = E }, function (e, t) { function E(e) { return function (t) { return e(t) } } e.exports = E }, function (e, t, E) { function n(e, t, E) { var n = e.length; return E = void 0 === E ? n : E, t || n > E ? r(e, t, E) : e } var r = E(43); e.exports = n }, function (e, t, E) { function n(e, t) { for (var E = e.length; E-- && r(t, e[E], 0) > -1;); return E } var r = E(36); e.exports = n }, function (e, t, E) { var n = E(1), r = n["__core-js_shared__"]; e.exports = r }, function (e, t, E) { function n(e) { var t = T.call(e, N), E = e[N]; try { e[N] = void 0; var n = !0 } catch (e) { } var r = R.call(e); return n && (t ? e[N] = E : delete e[N]), r } var r = E(9), o = Object.prototype, T = o.hasOwnProperty, R = o.toString, N = r ? r.toStringTag : void 0; e.exports = n }, function (e, t, E) { var n = E(28), r = E(29), o = E(30), T = E(31), R = E(32), N = E(2), i = E(14), A = "[object Map]", I = "[object Object]", O = "[object Promise]", u = "[object Set]", S = "[object WeakMap]", s = "[object DataView]", a = i(n), L = i(r), c = i(o), C = i(T), f = i(R), p = N; (n && p(new n(new ArrayBuffer(1))) != s || r && p(new r) != A || o && p(o.resolve()) != O || T && p(new T) != u || R && p(new R) != S) && (p = function (e) { var t = N(e), E = t == I ? e.constructor : void 0, n = E ? i(E) : ""; if (n) switch (n) { case a: return s; case L: return A; case c: return O; case C: return u; case f: return S }return t }), e.exports = p }, function (e, t) { function E(e, t) { return null == e ? void 0 : e[t] } e.exports = E }, function (e, t) { function E(e) { return A.test(e) } var n = "\\ud800-\\udfff", r = "\\u0300-\\u036f", o = "\\ufe20-\\ufe2f", T = "\\u20d0-\\u20ff", R = r + o + T, N = "\\ufe0e\\ufe0f", i = "\\u200d", A = RegExp("[" + i + n + R + N + "]"); e.exports = E }, function (e, t) { function E(e, t) { var E = typeof e; return t = null == t ? n : t, !!t && ("number" == E || "symbol" != E && r.test(e)) && e > -1 && e % 1 == 0 && t > e } var n = 9007199254740991, r = /^(?:0|[1-9]\d*)$/; e.exports = E }, function (e, t, E) { function n(e, t, E) { if (!R(E)) return !1; var n = typeof t; return !!("number" == n ? o(E) && T(t, E.length) : "string" == n && t in E) && r(E[t], e) } var r = E(62), o = E(16), T = E(52), R = E(6); e.exports = n }, function (e, t, E) { function n(e) { return !!o && o in e } var r = E(47), o = function () { var e = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : "" }(); e.exports = n }, function (e, t, E) { var n = E(58), r = n(Object.keys, Object); e.exports = r }, function (e, t, E) { (function (e) { var n = E(12), r = "object" == typeof t && t && !t.nodeType && t, o = r && "object" == typeof e && e && !e.nodeType && e, T = o && o.exports === r, R = T && n.process, N = function () { try { var e = o && o.require && o.require("util").types; return e ? e : R && R.binding && R.binding("util") } catch (e) { } }(); e.exports = N }).call(t, E(20)(e)) }, function (e, t) { function E(e) { return r.call(e) } var n = Object.prototype, r = n.toString; e.exports = E }, function (e, t) { function E(e, t) { return function (E) { return e(t(E)) } } e.exports = E }, function (e, t) { function E(e, t, E) { for (var n = E - 1, r = e.length; ++n < r;)if (e[n] === t) return n; return -1 } e.exports = E }, function (e, t, E) { function n(e) { return o(e) ? T(e) : r(e) } var r = E(34), o = E(51), T = E(61); e.exports = n }, function (e, t) { function E(e) { return e.match(l) || [] } var n = "\\ud800-\\udfff", r = "\\u0300-\\u036f", o = "\\ufe20-\\ufe2f", T = "\\u20d0-\\u20ff", R = r + o + T, N = "\\ufe0e\\ufe0f", i = "[" + n + "]", A = "[" + R + "]", I = "\\ud83c[\\udffb-\\udfff]", O = "(?:" + A + "|" + I + ")", u = "[^" + n + "]", S = "(?:\\ud83c[\\udde6-\\uddff]){2}", s = "[\\ud800-\\udbff][\\udc00-\\udfff]", a = "\\u200d", L = O + "?", c = "[" + N + "]?", C = "(?:" + a + "(?:" + [u, S, s].join("|") + ")" + c + L + ")*", f = c + L + C, p = "(?:" + [u + A + "?", A, S, s, i].join("|") + ")", l = RegExp(I + "(?=" + I + ")|" + p + f, "g"); e.exports = E }, function (e, t) { function E(e, t) { return e === t || e !== e && t !== t } e.exports = E }, function (e, t, E) { function n(e) { return e = r(e), e && T.test(e) ? e.replace(o, "\\$&") : e } var r = E(10), o = /[\\^$.*+?()[\]{}|]/g, T = RegExp(o.source); e.exports = n }, function (e, t, E) { var n = E(37), r = E(7), o = Object.prototype, T = o.hasOwnProperty, R = o.propertyIsEnumerable, N = n(function () { return arguments }()) ? n : function (e) { return r(e) && T.call(e, "callee") && !R.call(e, "callee") }; e.exports = N }, function (e, t, E) { (function (e) { var n = E(1), r = E(70), o = "object" == typeof t && t && !t.nodeType && t, T = o && "object" == typeof e && e && !e.nodeType && e, R = T && T.exports === o, N = R ? n.Buffer : void 0, i = N ? N.isBuffer : void 0, A = i || r; e.exports = A }).call(t, E(20)(e)) }, function (e, t, E) { function n(e) { if (null == e) return !0; if (N(e) && (R(e) || "string" == typeof e || "function" == typeof e.splice || i(e) || I(e) || T(e))) return !e.length; var t = o(e); if (t == O || t == u) return !e.size; if (A(e)) return !r(e).length; for (var E in e) if (s.call(e, E)) return !1; return !0 } var r = E(41), o = E(49), T = E(64), R = E(15), N = E(16), i = E(65), A = E(13), I = E(67), O = "[object Map]", u = "[object Set]", S = Object.prototype, s = S.hasOwnProperty; e.exports = n }, function (e, t, E) { var n = E(40), r = E(44), o = E(56), T = o && o.isTypedArray, R = T ? r(T) : n; e.exports = R }, function (e, t) { function E(e) { var t = null == e ? 0 : e.length; return t ? e[t - 1] : void 0 } e.exports = E }, function (e, t, E) { function n(e, t, E) { return t = (E ? o(e, t, E) : void 0 === t) ? 1 : T(t), r(R(e), t) } var r = E(42), o = E(53), T = E(72), R = E(10); e.exports = n }, function (e, t) { function E() { return !1 } e.exports = E }, function (e, t, E) { function n(e) { if (!e) return 0 === e ? e : 0; if (e = r(e), e === o || e === -o) { var t = 0 > e ? -1 : 1; return t * T } return e === e ? e : 0 } var r = E(73), o = 1 / 0, T = 1.7976931348623157e308; e.exports = n }, function (e, t, E) { function n(e) { var t = r(e), E = t % 1; return t === t ? E ? t - E : t : 0 } var r = E(71); e.exports = n }, function (e, t, E) { function n(e) { if ("number" == typeof e) return e; if (o(e)) return T; if (r(e)) { var t = "function" == typeof e.valueOf ? e.valueOf() : e; e = r(t) ? t + "" : t } if ("string" != typeof e) return 0 === e ? e : +e; e = e.replace(R, ""); var E = i.test(e); return E || A.test(e) ? I(e.slice(2), E ? 2 : 8) : N.test(e) ? T : +e } var r = E(6), o = E(19), T = NaN, R = /^\s+|\s+$/g, N = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, A = /^0o[0-7]+$/i, I = parseInt; e.exports = n }, function (e, t, E) { function n(e, t, E) { if (e = N(e), e && (E || void 0 === t)) return e.replace(i, ""); if (!e || !(t = r(t))) return e; var n = R(e), A = T(n, R(t)) + 1; return o(n, 0, A).join("") } var r = E(11), o = E(45), T = E(46), R = E(60), N = E(10), i = /\s+$/; e.exports = n }])
});

/*!
 * Bootstrap v3.3.5 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under the MIT license
 */
if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); +function (a) { "use strict"; var b = a.fn.jquery.split(" ")[0].split("."); if (b[0] < 2 && b[1] < 9 || 1 == b[0] && 9 == b[1] && b[2] < 1) throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher") }(jQuery), +function (a) { "use strict"; function b() { var a = document.createElement("bootstrap"), b = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; for (var c in b) if (void 0 !== a.style[c]) return { end: b[c] }; return !1 } a.fn.emulateTransitionEnd = function (b) { var c = !1, d = this; a(this).one("bsTransitionEnd", function () { c = !0 }); var e = function () { c || a(d).trigger(a.support.transition.end) }; return setTimeout(e, b), this }, a(function () { a.support.transition = b(), a.support.transition && (a.event.special.bsTransitionEnd = { bindType: a.support.transition.end, delegateType: a.support.transition.end, handle: function (b) { return a(b.target).is(this) ? b.handleObj.handler.apply(this, arguments) : void 0 } }) }) }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var c = a(this), e = c.data("bs.alert"); e || c.data("bs.alert", e = new d(this)), "string" == typeof b && e[b].call(c) }) } var c = '[data-dismiss="alert"]', d = function (b) { a(b).on("click", c, this.close) }; d.VERSION = "3.3.5", d.TRANSITION_DURATION = 150, d.prototype.close = function (b) { function c() { g.detach().trigger("closed.bs.alert").remove() } var e = a(this), f = e.attr("data-target"); f || (f = e.attr("href"), f = f && f.replace(/.*(?=#[^\s]*$)/, "")); var g = a(f); b && b.preventDefault(), g.length || (g = e.closest(".alert")), g.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (g.removeClass("in"), a.support.transition && g.hasClass("fade") ? g.one("bsTransitionEnd", c).emulateTransitionEnd(d.TRANSITION_DURATION) : c()) }; var e = a.fn.alert; a.fn.alert = b, a.fn.alert.Constructor = d, a.fn.alert.noConflict = function () { return a.fn.alert = e, this }, a(document).on("click.bs.alert.data-api", c, d.prototype.close) }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.button"), f = "object" == typeof b && b; e || d.data("bs.button", e = new c(this, f)), "toggle" == b ? e.toggle() : b && e.setState(b) }) } var c = function (b, d) { this.$element = a(b), this.options = a.extend({}, c.DEFAULTS, d), this.isLoading = !1 }; c.VERSION = "3.3.5", c.DEFAULTS = { loadingText: "loading..." }, c.prototype.setState = function (b) { var c = "disabled", d = this.$element, e = d.is("input") ? "val" : "html", f = d.data(); b += "Text", null == f.resetText && d.data("resetText", d[e]()), setTimeout(a.proxy(function () { d[e](null == f[b] ? this.options[b] : f[b]), "loadingText" == b ? (this.isLoading = !0, d.addClass(c).attr(c, c)) : this.isLoading && (this.isLoading = !1, d.removeClass(c).removeAttr(c)) }, this), 0) }, c.prototype.toggle = function () { var a = !0, b = this.$element.closest('[data-toggle="buttons"]'); if (b.length) { var c = this.$element.find("input"); "radio" == c.prop("type") ? (c.prop("checked") && (a = !1), b.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == c.prop("type") && (c.prop("checked") !== this.$element.hasClass("active") && (a = !1), this.$element.toggleClass("active")), c.prop("checked", this.$element.hasClass("active")), a && c.trigger("change") } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active") }; var d = a.fn.button; a.fn.button = b, a.fn.button.Constructor = c, a.fn.button.noConflict = function () { return a.fn.button = d, this }, a(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function (c) { var d = a(c.target); d.hasClass("btn") || (d = d.closest(".btn")), b.call(d, "toggle"), a(c.target).is('input[type="radio"]') || a(c.target).is('input[type="checkbox"]') || c.preventDefault() }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function (b) { a(b.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(b.type)) }) }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.carousel"), f = a.extend({}, c.DEFAULTS, d.data(), "object" == typeof b && b), g = "string" == typeof b ? b : f.slide; e || d.data("bs.carousel", e = new c(this, f)), "number" == typeof b ? e.to(b) : g ? e[g]() : f.interval && e.pause().cycle() }) } var c = function (b, c) { this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", a.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", a.proxy(this.pause, this)).on("mouseleave.bs.carousel", a.proxy(this.cycle, this)) }; c.VERSION = "3.3.5", c.TRANSITION_DURATION = 600, c.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0, keyboard: !0 }, c.prototype.keydown = function (a) { if (!/input|textarea/i.test(a.target.tagName)) { switch (a.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return } a.preventDefault() } }, c.prototype.cycle = function (b) { return b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(a.proxy(this.next, this), this.options.interval)), this }, c.prototype.getItemIndex = function (a) { return this.$items = a.parent().children(".item"), this.$items.index(a || this.$active) }, c.prototype.getItemForDirection = function (a, b) { var c = this.getItemIndex(b), d = "prev" == a && 0 === c || "next" == a && c == this.$items.length - 1; if (d && !this.options.wrap) return b; var e = "prev" == a ? -1 : 1, f = (c + e) % this.$items.length; return this.$items.eq(f) }, c.prototype.to = function (a) { var b = this, c = this.getItemIndex(this.$active = this.$element.find(".item.active")); return a > this.$items.length - 1 || 0 > a ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function () { b.to(a) }) : c == a ? this.pause().cycle() : this.slide(a > c ? "next" : "prev", this.$items.eq(a)) }, c.prototype.pause = function (b) { return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this }, c.prototype.next = function () { return this.sliding ? void 0 : this.slide("next") }, c.prototype.prev = function () { return this.sliding ? void 0 : this.slide("prev") }, c.prototype.slide = function (b, d) { var e = this.$element.find(".item.active"), f = d || this.getItemForDirection(b, e), g = this.interval, h = "next" == b ? "left" : "right", i = this; if (f.hasClass("active")) return this.sliding = !1; var j = f[0], k = a.Event("slide.bs.carousel", { relatedTarget: j, direction: h }); if (this.$element.trigger(k), !k.isDefaultPrevented()) { if (this.sliding = !0, g && this.pause(), this.$indicators.length) { this.$indicators.find(".active").removeClass("active"); var l = a(this.$indicators.children()[this.getItemIndex(f)]); l && l.addClass("active") } var m = a.Event("slid.bs.carousel", { relatedTarget: j, direction: h }); return a.support.transition && this.$element.hasClass("slide") ? (f.addClass(b), f[0].offsetWidth, e.addClass(h), f.addClass(h), e.one("bsTransitionEnd", function () { f.removeClass([b, h].join(" ")).addClass("active"), e.removeClass(["active", h].join(" ")), i.sliding = !1, setTimeout(function () { i.$element.trigger(m) }, 0) }).emulateTransitionEnd(c.TRANSITION_DURATION)) : (e.removeClass("active"), f.addClass("active"), this.sliding = !1, this.$element.trigger(m)), g && this.cycle(), this } }; var d = a.fn.carousel; a.fn.carousel = b, a.fn.carousel.Constructor = c, a.fn.carousel.noConflict = function () { return a.fn.carousel = d, this }; var e = function (c) { var d, e = a(this), f = a(e.attr("data-target") || (d = e.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, "")); if (f.hasClass("carousel")) { var g = a.extend({}, f.data(), e.data()), h = e.attr("data-slide-to"); h && (g.interval = !1), b.call(f, g), h && f.data("bs.carousel").to(h), c.preventDefault() } }; a(document).on("click.bs.carousel.data-api", "[data-slide]", e).on("click.bs.carousel.data-api", "[data-slide-to]", e), a(window).on("load", function () { a('[data-ride="carousel"]').each(function () { var c = a(this); b.call(c, c.data()) }) }) }(jQuery), +function (a) { "use strict"; function b(b) { var c, d = b.attr("data-target") || (c = b.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, ""); return a(d) } function c(b) { return this.each(function () { var c = a(this), e = c.data("bs.collapse"), f = a.extend({}, d.DEFAULTS, c.data(), "object" == typeof b && b); !e && f.toggle && /show|hide/.test(b) && (f.toggle = !1), e || c.data("bs.collapse", e = new d(this, f)), "string" == typeof b && e[b]() }) } var d = function (b, c) { this.$element = a(b), this.options = a.extend({}, d.DEFAULTS, c), this.$trigger = a('[data-toggle="collapse"][href="#' + b.id + '"],[data-toggle="collapse"][data-target="#' + b.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle() }; d.VERSION = "3.3.5", d.TRANSITION_DURATION = 350, d.DEFAULTS = { toggle: !0 }, d.prototype.dimension = function () { var a = this.$element.hasClass("width"); return a ? "width" : "height" }, d.prototype.show = function () { if (!this.transitioning && !this.$element.hasClass("in")) { var b, e = this.$parent && this.$parent.children(".panel").children(".in, .collapsing"); if (!(e && e.length && (b = e.data("bs.collapse"), b && b.transitioning))) { var f = a.Event("show.bs.collapse"); if (this.$element.trigger(f), !f.isDefaultPrevented()) { e && e.length && (c.call(e, "hide"), b || e.data("bs.collapse", null)); var g = this.dimension(); this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1; var h = function () { this.$element.removeClass("collapsing").addClass("collapse in")[g](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse") }; if (!a.support.transition) return h.call(this); var i = a.camelCase(["scroll", g].join("-")); this.$element.one("bsTransitionEnd", a.proxy(h, this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i]) } } } }, d.prototype.hide = function () { if (!this.transitioning && this.$element.hasClass("in")) { var b = a.Event("hide.bs.collapse"); if (this.$element.trigger(b), !b.isDefaultPrevented()) { var c = this.dimension(); this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1; var e = function () { this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse") }; return a.support.transition ? void this.$element[c](0).one("bsTransitionEnd", a.proxy(e, this)).emulateTransitionEnd(d.TRANSITION_DURATION) : e.call(this) } } }, d.prototype.toggle = function () { this[this.$element.hasClass("in") ? "hide" : "show"]() }, d.prototype.getParent = function () { return a(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(a.proxy(function (c, d) { var e = a(d); this.addAriaAndCollapsedClass(b(e), e) }, this)).end() }, d.prototype.addAriaAndCollapsedClass = function (a, b) { var c = a.hasClass("in"); a.attr("aria-expanded", c), b.toggleClass("collapsed", !c).attr("aria-expanded", c) }; var e = a.fn.collapse; a.fn.collapse = c, a.fn.collapse.Constructor = d, a.fn.collapse.noConflict = function () { return a.fn.collapse = e, this }, a(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function (d) { var e = a(this); e.attr("data-target") || d.preventDefault(); var f = b(e), g = f.data("bs.collapse"), h = g ? "toggle" : e.data(); c.call(f, h) }) }(jQuery), +function (a) { "use strict"; function b(b) { var c = b.attr("data-target"); c || (c = b.attr("href"), c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, "")); var d = c && a(c); return d && d.length ? d : b.parent() } function c(c) { c && 3 === c.which || (a(e).remove(), a(f).each(function () { var d = a(this), e = b(d), f = { relatedTarget: this }; e.hasClass("open") && (c && "click" == c.type && /input|textarea/i.test(c.target.tagName) && a.contains(e[0], c.target) || (e.trigger(c = a.Event("hide.bs.dropdown", f)), c.isDefaultPrevented() || (d.attr("aria-expanded", "false"), e.removeClass("open").trigger("hidden.bs.dropdown", f)))) })) } function d(b) { return this.each(function () { var c = a(this), d = c.data("bs.dropdown"); d || c.data("bs.dropdown", d = new g(this)), "string" == typeof b && d[b].call(c) }) } var e = ".dropdown-backdrop", f = '[data-toggle="dropdown"]', g = function (b) { a(b).on("click.bs.dropdown", this.toggle) }; g.VERSION = "3.3.5", g.prototype.toggle = function (d) { var e = a(this); if (!e.is(".disabled, :disabled")) { var f = b(e), g = f.hasClass("open"); if (c(), !g) { "ontouchstart" in document.documentElement && !f.closest(".navbar-nav").length && a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click", c); var h = { relatedTarget: this }; if (f.trigger(d = a.Event("show.bs.dropdown", h)), d.isDefaultPrevented()) return; e.trigger("focus").attr("aria-expanded", "true"), f.toggleClass("open").trigger("shown.bs.dropdown", h) } return !1 } }, g.prototype.keydown = function (c) { if (/(38|40|27|32)/.test(c.which) && !/input|textarea/i.test(c.target.tagName)) { var d = a(this); if (c.preventDefault(), c.stopPropagation(), !d.is(".disabled, :disabled")) { var e = b(d), g = e.hasClass("open"); if (!g && 27 != c.which || g && 27 == c.which) return 27 == c.which && e.find(f).trigger("focus"), d.trigger("click"); var h = " li:not(.disabled):visible a", i = e.find(".dropdown-menu" + h); if (i.length) { var j = i.index(c.target); 38 == c.which && j > 0 && j--, 40 == c.which && j < i.length - 1 && j++, ~j || (j = 0), i.eq(j).trigger("focus") } } } }; var h = a.fn.dropdown; a.fn.dropdown = d, a.fn.dropdown.Constructor = g, a.fn.dropdown.noConflict = function () { return a.fn.dropdown = h, this }, a(document).on("click.bs.dropdown.data-api", c).on("click.bs.dropdown.data-api", ".dropdown form", function (a) { a.stopPropagation() }).on("click.bs.dropdown.data-api", f, g.prototype.toggle).on("keydown.bs.dropdown.data-api", f, g.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", g.prototype.keydown) }(jQuery), +function (a) { "use strict"; function b(b, d) { return this.each(function () { var e = a(this), f = e.data("bs.modal"), g = a.extend({}, c.DEFAULTS, e.data(), "object" == typeof b && b); f || e.data("bs.modal", f = new c(this, g)), "string" == typeof b ? f[b](d) : g.show && f.show(d) }) } var c = function (b, c) { this.options = c, this.$body = a(document.body), this.$element = a(b), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, a.proxy(function () { this.$element.trigger("loaded.bs.modal") }, this)) }; c.VERSION = "3.3.5", c.TRANSITION_DURATION = 300, c.BACKDROP_TRANSITION_DURATION = 150, c.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }, c.prototype.toggle = function (a) { return this.isShown ? this.hide() : this.show(a) }, c.prototype.show = function (b) { var d = this, e = a.Event("show.bs.modal", { relatedTarget: b }); this.$element.trigger(e), this.isShown || e.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function () { d.$element.one("mouseup.dismiss.bs.modal", function (b) { a(b.target).is(d.$element) && (d.ignoreBackdropClick = !0) }) }), this.backdrop(function () { var e = a.support.transition && d.$element.hasClass("fade"); d.$element.parent().length || d.$element.appendTo(d.$body), d.$element.show().scrollTop(0), d.adjustDialog(), e && d.$element[0].offsetWidth, d.$element.addClass("in"), d.enforceFocus(); var f = a.Event("shown.bs.modal", { relatedTarget: b }); e ? d.$dialog.one("bsTransitionEnd", function () { d.$element.trigger("focus").trigger(f) }).emulateTransitionEnd(c.TRANSITION_DURATION) : d.$element.trigger("focus").trigger(f) })) }, c.prototype.hide = function (b) { b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", a.proxy(this.hideModal, this)).emulateTransitionEnd(c.TRANSITION_DURATION) : this.hideModal()) }, c.prototype.enforceFocus = function () { a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function (a) { this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.trigger("focus") }, this)) }, c.prototype.escape = function () { this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", a.proxy(function (a) { 27 == a.which && this.hide() }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal") }, c.prototype.resize = function () { this.isShown ? a(window).on("resize.bs.modal", a.proxy(this.handleUpdate, this)) : a(window).off("resize.bs.modal") }, c.prototype.hideModal = function () { var a = this; this.$element.hide(), this.backdrop(function () { a.$body.removeClass("modal-open"), a.resetAdjustments(), a.resetScrollbar(), a.$element.trigger("hidden.bs.modal") }) }, c.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove(), this.$backdrop = null }, c.prototype.backdrop = function (b) { var d = this, e = this.$element.hasClass("fade") ? "fade" : ""; if (this.isShown && this.options.backdrop) { var f = a.support.transition && e; if (this.$backdrop = a(document.createElement("div")).addClass("modal-backdrop " + e).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", a.proxy(function (a) { return this.ignoreBackdropClick ? void (this.ignoreBackdropClick = !1) : void (a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide())) }, this)), f && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b) return; f ? this.$backdrop.one("bsTransitionEnd", b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : b() } else if (!this.isShown && this.$backdrop) { this.$backdrop.removeClass("in"); var g = function () { d.removeBackdrop(), b && b() }; a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : g() } else b && b() }, c.prototype.handleUpdate = function () { this.adjustDialog() }, c.prototype.adjustDialog = function () { var a = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : "", paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : "" }) }, c.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: "", paddingRight: "" }) }, c.prototype.checkScrollbar = function () { var a = window.innerWidth; if (!a) { var b = document.documentElement.getBoundingClientRect(); a = b.right - Math.abs(b.left) } this.bodyIsOverflowing = document.body.clientWidth < a, this.scrollbarWidth = this.measureScrollbar() }, c.prototype.setScrollbar = function () { var a = parseInt(this.$body.css("padding-right") || 0, 10); this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", a + this.scrollbarWidth) }, c.prototype.resetScrollbar = function () { this.$body.css("padding-right", this.originalBodyPad) }, c.prototype.measureScrollbar = function () { var a = document.createElement("div"); a.className = "modal-scrollbar-measure", this.$body.append(a); var b = a.offsetWidth - a.clientWidth; return this.$body[0].removeChild(a), b }; var d = a.fn.modal; a.fn.modal = b, a.fn.modal.Constructor = c, a.fn.modal.noConflict = function () { return a.fn.modal = d, this }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function (c) { var d = a(this), e = d.attr("href"), f = a(d.attr("data-target") || e && e.replace(/.*(?=#[^\s]+$)/, "")), g = f.data("bs.modal") ? "toggle" : a.extend({ remote: !/#/.test(e) && e }, f.data(), d.data()); d.is("a") && c.preventDefault(), f.one("show.bs.modal", function (a) { a.isDefaultPrevented() || f.one("hidden.bs.modal", function () { d.is(":visible") && d.trigger("focus") }) }), b.call(f, g, this) }) }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.tooltip"), f = "object" == typeof b && b; (e || !/destroy|hide/.test(b)) && (e || d.data("bs.tooltip", e = new c(this, f)), "string" == typeof b && e[b]()) }) } var c = function (a, b) { this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", a, b) }; c.VERSION = "3.3.5", c.TRANSITION_DURATION = 150, c.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1, viewport: { selector: "body", padding: 0 } }, c.prototype.init = function (b, c, d) { if (this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d), this.$viewport = this.options.viewport && a(a.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = { click: !1, hover: !1, focus: !1 }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!"); for (var e = this.options.trigger.split(" "), f = e.length; f--;) { var g = e[f]; if ("click" == g) this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this)); else if ("manual" != g) { var h = "hover" == g ? "mouseenter" : "focusin", i = "hover" == g ? "mouseleave" : "focusout"; this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this)) } } this.options.selector ? this._options = a.extend({}, this.options, { trigger: "manual", selector: "" }) : this.fixTitle() }, c.prototype.getDefaults = function () { return c.DEFAULTS }, c.prototype.getOptions = function (b) { return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = { show: b.delay, hide: b.delay }), b }, c.prototype.getDelegateOptions = function () { var b = {}, c = this.getDefaults(); return this._options && a.each(this._options, function (a, d) { c[a] != d && (b[a] = d) }), b }, c.prototype.enter = function (b) { var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type); return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusin" == b.type ? "focus" : "hover"] = !0), c.tip().hasClass("in") || "in" == c.hoverState ? void (c.hoverState = "in") : (clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? void (c.timeout = setTimeout(function () { "in" == c.hoverState && c.show() }, c.options.delay.show)) : c.show()) }, c.prototype.isInStateTrue = function () { for (var a in this.inState) if (this.inState[a]) return !0; return !1 }, c.prototype.leave = function (b) { var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type); return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusout" == b.type ? "focus" : "hover"] = !1), c.isInStateTrue() ? void 0 : (clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? void (c.timeout = setTimeout(function () { "out" == c.hoverState && c.hide() }, c.options.delay.hide)) : c.hide()) }, c.prototype.show = function () { var b = a.Event("show.bs." + this.type); if (this.hasContent() && this.enabled) { this.$element.trigger(b); var d = a.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]); if (b.isDefaultPrevented() || !d) return; var e = this, f = this.tip(), g = this.getUID(this.type); this.setContent(), f.attr("id", g), this.$element.attr("aria-describedby", g), this.options.animation && f.addClass("fade"); var h = "function" == typeof this.options.placement ? this.options.placement.call(this, f[0], this.$element[0]) : this.options.placement, i = /\s?auto?\s?/i, j = i.test(h); j && (h = h.replace(i, "") || "top"), f.detach().css({ top: 0, left: 0, display: "block" }).addClass(h).data("bs." + this.type, this), this.options.container ? f.appendTo(this.options.container) : f.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type); var k = this.getPosition(), l = f[0].offsetWidth, m = f[0].offsetHeight; if (j) { var n = h, o = this.getPosition(this.$viewport); h = "bottom" == h && k.bottom + m > o.bottom ? "top" : "top" == h && k.top - m < o.top ? "bottom" : "right" == h && k.right + l > o.width ? "left" : "left" == h && k.left - l < o.left ? "right" : h, f.removeClass(n).addClass(h) } var p = this.getCalculatedOffset(h, k, l, m); this.applyPlacement(p, h); var q = function () { var a = e.hoverState; e.$element.trigger("shown.bs." + e.type), e.hoverState = null, "out" == a && e.leave(e) }; a.support.transition && this.$tip.hasClass("fade") ? f.one("bsTransitionEnd", q).emulateTransitionEnd(c.TRANSITION_DURATION) : q() } }, c.prototype.applyPlacement = function (b, c) { var d = this.tip(), e = d[0].offsetWidth, f = d[0].offsetHeight, g = parseInt(d.css("margin-top"), 10), h = parseInt(d.css("margin-left"), 10); isNaN(g) && (g = 0), isNaN(h) && (h = 0), b.top += g, b.left += h, a.offset.setOffset(d[0], a.extend({ using: function (a) { d.css({ top: Math.round(a.top), left: Math.round(a.left) }) } }, b), 0), d.addClass("in"); var i = d[0].offsetWidth, j = d[0].offsetHeight; "top" == c && j != f && (b.top = b.top + f - j); var k = this.getViewportAdjustedDelta(c, b, i, j); k.left ? b.left += k.left : b.top += k.top; var l = /top|bottom/.test(c), m = l ? 2 * k.left - e + i : 2 * k.top - f + j, n = l ? "offsetWidth" : "offsetHeight"; d.offset(b), this.replaceArrow(m, d[0][n], l) }, c.prototype.replaceArrow = function (a, b, c) { this.arrow().css(c ? "left" : "top", 50 * (1 - a / b) + "%").css(c ? "top" : "left", "") }, c.prototype.setContent = function () { var a = this.tip(), b = this.getTitle(); a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right") }, c.prototype.hide = function (b) { function d() { "in" != e.hoverState && f.detach(), e.$element.removeAttr("aria-describedby").trigger("hidden.bs." + e.type), b && b() } var e = this, f = a(this.$tip), g = a.Event("hide.bs." + this.type); return this.$element.trigger(g), g.isDefaultPrevented() ? void 0 : (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one("bsTransitionEnd", d).emulateTransitionEnd(c.TRANSITION_DURATION) : d(), this.hoverState = null, this) }, c.prototype.fixTitle = function () { var a = this.$element; (a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", "") }, c.prototype.hasContent = function () { return this.getTitle() }, c.prototype.getPosition = function (b) { b = b || this.$element; var c = b[0], d = "BODY" == c.tagName, e = c.getBoundingClientRect(); null == e.width && (e = a.extend({}, e, { width: e.right - e.left, height: e.bottom - e.top })); var f = d ? { top: 0, left: 0 } : b.offset(), g = { scroll: d ? document.documentElement.scrollTop || document.body.scrollTop : b.scrollTop() }, h = d ? { width: a(window).width(), height: a(window).height() } : null; return a.extend({}, e, g, h, f) }, c.prototype.getCalculatedOffset = function (a, b, c, d) { return "bottom" == a ? { top: b.top + b.height, left: b.left + b.width / 2 - c / 2 } : "top" == a ? { top: b.top - d, left: b.left + b.width / 2 - c / 2 } : "left" == a ? { top: b.top + b.height / 2 - d / 2, left: b.left - c } : { top: b.top + b.height / 2 - d / 2, left: b.left + b.width } }, c.prototype.getViewportAdjustedDelta = function (a, b, c, d) { var e = { top: 0, left: 0 }; if (!this.$viewport) return e; var f = this.options.viewport && this.options.viewport.padding || 0, g = this.getPosition(this.$viewport); if (/right|left/.test(a)) { var h = b.top - f - g.scroll, i = b.top + f - g.scroll + d; h < g.top ? e.top = g.top - h : i > g.top + g.height && (e.top = g.top + g.height - i) } else { var j = b.left - f, k = b.left + f + c; j < g.left ? e.left = g.left - j : k > g.right && (e.left = g.left + g.width - k) } return e }, c.prototype.getTitle = function () { var a, b = this.$element, c = this.options; return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title) }, c.prototype.getUID = function (a) { do a += ~~(1e6 * Math.random()); while (document.getElementById(a)); return a }, c.prototype.tip = function () { if (!this.$tip && (this.$tip = a(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!"); return this.$tip }, c.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow") }, c.prototype.enable = function () { this.enabled = !0 }, c.prototype.disable = function () { this.enabled = !1 }, c.prototype.toggleEnabled = function () { this.enabled = !this.enabled }, c.prototype.toggle = function (b) { var c = this; b && (c = a(b.currentTarget).data("bs." + this.type), c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c))), b ? (c.inState.click = !c.inState.click, c.isInStateTrue() ? c.enter(c) : c.leave(c)) : c.tip().hasClass("in") ? c.leave(c) : c.enter(c) }, c.prototype.destroy = function () { var a = this; clearTimeout(this.timeout), this.hide(function () { a.$element.off("." + a.type).removeData("bs." + a.type), a.$tip && a.$tip.detach(), a.$tip = null, a.$arrow = null, a.$viewport = null }) }; var d = a.fn.tooltip; a.fn.tooltip = b, a.fn.tooltip.Constructor = c, a.fn.tooltip.noConflict = function () { return a.fn.tooltip = d, this } }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.popover"), f = "object" == typeof b && b; (e || !/destroy|hide/.test(b)) && (e || d.data("bs.popover", e = new c(this, f)), "string" == typeof b && e[b]()) }) } var c = function (a, b) { this.init("popover", a, b) }; if (!a.fn.tooltip) throw new Error("Popover requires tooltip.js"); c.VERSION = "3.3.5", c.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }), c.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), c.prototype.constructor = c, c.prototype.getDefaults = function () { return c.DEFAULTS }, c.prototype.setContent = function () { var a = this.tip(), b = this.getTitle(), c = this.getContent(); a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof c ? "html" : "append" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide() }, c.prototype.hasContent = function () { return this.getTitle() || this.getContent() }, c.prototype.getContent = function () { var a = this.$element, b = this.options; return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content) }, c.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".arrow") }; var d = a.fn.popover; a.fn.popover = b, a.fn.popover.Constructor = c, a.fn.popover.noConflict = function () { return a.fn.popover = d, this } }(jQuery), +function (a) {
    "use strict"; function b(c, d) { this.$body = a(document.body), this.$scrollElement = a(a(c).is(document.body) ? window : c), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", a.proxy(this.process, this)), this.refresh(), this.process() } function c(c) { return this.each(function () { var d = a(this), e = d.data("bs.scrollspy"), f = "object" == typeof c && c; e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c]() }) } b.VERSION = "3.3.5", b.DEFAULTS = { offset: 10 }, b.prototype.getScrollHeight = function () { return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) }, b.prototype.refresh = function () { var b = this, c = "offset", d = 0; this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), a.isWindow(this.$scrollElement[0]) || (c = "position", d = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function () { var b = a(this), e = b.data("target") || b.attr("href"), f = /^#./.test(e) && a(e); return f && f.length && f.is(":visible") && [[f[c]().top + d, e]] || null }).sort(function (a, b) { return a[0] - b[0] }).each(function () { b.offsets.push(this[0]), b.targets.push(this[1]) }) }, b.prototype.process = function () { var a, b = this.$scrollElement.scrollTop() + this.options.offset, c = this.getScrollHeight(), d = this.options.offset + c - this.$scrollElement.height(), e = this.offsets, f = this.targets, g = this.activeTarget; if (this.scrollHeight != c && this.refresh(), b >= d) return g != (a = f[f.length - 1]) && this.activate(a); if (g && b < e[0]) return this.activeTarget = null, this.clear(); for (a = e.length; a--;) g != f[a] && b >= e[a] && (void 0 === e[a + 1] || b < e[a + 1]) && this.activate(f[a]) }, b.prototype.activate = function (b) {
        this.activeTarget = b, this.clear(); var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]', d = a(c).parents("li").addClass("active"); d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")),
        d.trigger("activate.bs.scrollspy")
    }, b.prototype.clear = function () { a(this.selector).parentsUntil(this.options.target, ".active").removeClass("active") }; var d = a.fn.scrollspy; a.fn.scrollspy = c, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function () { return a.fn.scrollspy = d, this }, a(window).on("load.bs.scrollspy.data-api", function () { a('[data-spy="scroll"]').each(function () { var b = a(this); c.call(b, b.data()) }) })
}(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.tab"); e || d.data("bs.tab", e = new c(this)), "string" == typeof b && e[b]() }) } var c = function (b) { this.element = a(b) }; c.VERSION = "3.3.5", c.TRANSITION_DURATION = 150, c.prototype.show = function () { var b = this.element, c = b.closest("ul:not(.dropdown-menu)"), d = b.data("target"); if (d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) { var e = c.find(".active:last a"), f = a.Event("hide.bs.tab", { relatedTarget: b[0] }), g = a.Event("show.bs.tab", { relatedTarget: e[0] }); if (e.trigger(f), b.trigger(g), !g.isDefaultPrevented() && !f.isDefaultPrevented()) { var h = a(d); this.activate(b.closest("li"), c), this.activate(h, h.parent(), function () { e.trigger({ type: "hidden.bs.tab", relatedTarget: b[0] }), b.trigger({ type: "shown.bs.tab", relatedTarget: e[0] }) }) } } }, c.prototype.activate = function (b, d, e) { function f() { g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), h ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu").length && b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), e && e() } var g = d.find("> .active"), h = e && a.support.transition && (g.length && g.hasClass("fade") || !!d.find("> .fade").length); g.length && h ? g.one("bsTransitionEnd", f).emulateTransitionEnd(c.TRANSITION_DURATION) : f(), g.removeClass("in") }; var d = a.fn.tab; a.fn.tab = b, a.fn.tab.Constructor = c, a.fn.tab.noConflict = function () { return a.fn.tab = d, this }; var e = function (c) { c.preventDefault(), b.call(a(this), "show") }; a(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', e).on("click.bs.tab.data-api", '[data-toggle="pill"]', e) }(jQuery), +function (a) { "use strict"; function b(b) { return this.each(function () { var d = a(this), e = d.data("bs.affix"), f = "object" == typeof b && b; e || d.data("bs.affix", e = new c(this, f)), "string" == typeof b && e[b]() }) } var c = function (b, d) { this.options = a.extend({}, c.DEFAULTS, d), this.$target = a(this.options.target).on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", a.proxy(this.checkPositionWithEventLoop, this)), this.$element = a(b), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition() }; c.VERSION = "3.3.5", c.RESET = "affix affix-top affix-bottom", c.DEFAULTS = { offset: 0, target: window }, c.prototype.getState = function (a, b, c, d) { var e = this.$target.scrollTop(), f = this.$element.offset(), g = this.$target.height(); if (null != c && "top" == this.affixed) return c > e ? "top" : !1; if ("bottom" == this.affixed) return null != c ? e + this.unpin <= f.top ? !1 : "bottom" : a - d >= e + g ? !1 : "bottom"; var h = null == this.affixed, i = h ? e : f.top, j = h ? g : b; return null != c && c >= e ? "top" : null != d && i + j >= a - d ? "bottom" : !1 }, c.prototype.getPinnedOffset = function () { if (this.pinnedOffset) return this.pinnedOffset; this.$element.removeClass(c.RESET).addClass("affix"); var a = this.$target.scrollTop(), b = this.$element.offset(); return this.pinnedOffset = b.top - a }, c.prototype.checkPositionWithEventLoop = function () { setTimeout(a.proxy(this.checkPosition, this), 1) }, c.prototype.checkPosition = function () { if (this.$element.is(":visible")) { var b = this.$element.height(), d = this.options.offset, e = d.top, f = d.bottom, g = Math.max(a(document).height(), a(document.body).height()); "object" != typeof d && (f = e = d), "function" == typeof e && (e = d.top(this.$element)), "function" == typeof f && (f = d.bottom(this.$element)); var h = this.getState(g, b, e, f); if (this.affixed != h) { null != this.unpin && this.$element.css("top", ""); var i = "affix" + (h ? "-" + h : ""), j = a.Event(i + ".bs.affix"); if (this.$element.trigger(j), j.isDefaultPrevented()) return; this.affixed = h, this.unpin = "bottom" == h ? this.getPinnedOffset() : null, this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix", "affixed") + ".bs.affix") } "bottom" == h && this.$element.offset({ top: g - b - f }) } }; var d = a.fn.affix; a.fn.affix = b, a.fn.affix.Constructor = c, a.fn.affix.noConflict = function () { return a.fn.affix = d, this }, a(window).on("load", function () { a('[data-spy="affix"]').each(function () { var c = a(this), d = c.data(); d.offset = d.offset || {}, null != d.offsetBottom && (d.offset.bottom = d.offsetBottom), null != d.offsetTop && (d.offset.top = d.offsetTop), b.call(c, d) }) }) }(jQuery);/*! Summernote v0.8.9 | (c) 2013- Alan Hong and other contributors | MIT license */(function (n) { typeof define == "function" && define.amd ? define(["jquery"], n) : typeof module == "object" && module.exports ? module.exports = n(require("jquery")) : n(window.jQuery) })(function (n) { var r = function () { var t = function (n) { return function (t) { return n === t } }, i = function (n, t) { return n === t }, r = function (n) { return function (t, i) { return t[n] === i[n] } }, u = function () { return !0 }, f = function () { return !1 }, e = function (n) { return function () { return !n.apply(n, arguments) } }, o = function (n, t) { return function (i) { return n(i) && t(i) } }, s = function (n) { return n }, h = function (n, t) { return function () { return n[t].apply(n, arguments) } }, c = 0, l = function (n) { var t = ++c + ""; return n ? n + t : t }, a = function (t) { var i = n(document); return { top: t.top + i.scrollTop(), left: t.left + i.scrollLeft(), width: t.right - t.left, height: t.bottom - t.top } }, v = function (n) { var i = {}; for (var t in n) n.hasOwnProperty(t) && (i[n[t]] = t); return i }, y = function (n, t) { return t = t || "", t + n.split(".").map(function (n) { return n.substring(0, 1).toUpperCase() + n.substring(1) }).join("") }; return { eq: t, eq2: i, peq2: r, ok: u, fail: f, self: s, not: e, and: o, invoke: h, uniqueId: l, rect2bnd: a, invertObject: v, namespaceToCamel: y } }(), i = function () { var u = function (n) { return n[0] }, t = function (n) { return n[n.length - 1] }, o = function (n) { return n.slice(0, n.length - 1) }, f = function (n) { return n.slice(1) }, s = function (n, t) { for (var r, i = 0, u = n.length; i < u; i++) if (r = n[i], t(r)) return r }, h = function (n, t) { for (var i = 0, r = n.length; i < r; i++) if (!t(n[i])) return !1; return !0 }, i = function (t, i) { return n.inArray(i, t) }, e = function (n, t) { return i(n, t) !== -1 }, c = function (n, t) { return t = t || r.self, n.reduce(function (n, i) { return n + t(i) }, 0) }, l = function (n) { for (var i = [], t = -1, r = n.length; ++t < r;) i[t] = n[t]; return i }, a = function (n) { return !n || !n.length }, v = function (n, i) { if (!n.length) return []; var r = f(n); return r.reduce(function (n, r) { var u = t(n); return i(t(u), r) ? u[u.length] = r : n[n.length] = [r], n }, [[u(n)]]) }, y = function (n) { for (var i = [], t = 0, r = n.length; t < r; t++) n[t] && i.push(n[t]); return i }, p = function (n) { for (var i = [], t = 0, r = n.length; t < r; t++) e(i, n[t]) || i.push(n[t]); return i }, w = function (n, t) { var r = i(n, t); return r === -1 ? null : n[r + 1] }, b = function (n, t) { var r = i(n, t); return r === -1 ? null : n[r - 1] }; return { head: u, last: t, initial: o, tail: f, prev: b, next: w, find: s, contains: e, all: h, sum: c, from: l, isEmpty: a, clusterBy: v, compact: y, unique: p } }(), w = typeof define == "function" && define.amd, tt = function (t) { var r = t === "Comic Sans MS" ? "Courier New" : "Comic Sans MS", i = n("<div>").css({ position: "absolute", left: "-9999px", top: "-9999px", fontSize: "200px" }).text("mmmmmmmmmwwwwwww").appendTo(document.body), u = i.css("fontFamily", r).width(), f = i.css("fontFamily", t + "," + r).width(); return i.remove(), u !== f }, h = navigator.userAgent, b = /MSIE|Trident/i.test(h), y, c, l, a; if (b && (c = /MSIE (\d+[.]\d+)/.exec(h), c && (y = parseFloat(c[1])), c = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(h), c && (y = parseFloat(c[1]))), l = /Edge\/\d+/.test(h), a = !!window.CodeMirror, !a && w && typeof require != "undefined") if (typeof require.resolve != "undefined") try { require.resolve("codemirror"); a = !0 } catch (ur) { } else typeof eval("require").specified != "undefined" && (a = eval("require").specified("codemirror")); var f = { isMac: navigator.appVersion.indexOf("Mac") > -1, isMSIE: b, isEdge: l, isFF: !l && /firefox/i.test(h), isPhantom: /PhantomJS/i.test(h), isWebkit: !l && /webkit/i.test(h), isChrome: !l && /chrome/i.test(h), isSafari: !l && /safari/i.test(h), browserVersion: y, jqueryVersion: parseFloat(n.fn.jquery), isSupportAmd: w, hasCodeMirror: a, isFontInstalled: tt, isW3CRangeSupport: !!document.createRange }, k = String.fromCharCode(160), it = "﻿", t = function () { var o = function (t) { return t && n(t).hasClass("note-editable") }, ui = function (t) { return t && n(t).hasClass("note-control-sizing") }, u = function (n) { return n = n.toUpperCase(), function (t) { return t && t.nodeName.toUpperCase() === n } }, s = function (n) { return n && n.nodeType === 3 }, fi = function (n) { return n && n.nodeType === 1 }, a = function (n) { return n && /^BR|^IMG|^HR|^IFRAME|^BUTTON/.test(n.nodeName.toUpperCase()) }, h = function (n) { return o(n) ? !1 : n && /^DIV|^P|^LI|^H[1-7]/.test(n.nodeName.toUpperCase()) }, ei = function (n) { return n && /^H[1-7]/.test(n.nodeName.toUpperCase()) }, oi = u("PRE"), st = u("LI"), si = function (n) { return h(n) && !st(n) }, ht = u("TABLE"), ct = u("DATA"), v = function (n) { return !nt(n) && !lt(n) && !hi(n) && !h(n) && !ht(n) && !g(n) && !ct(n) }, lt = function (n) { return n && /^UL|^OL/.test(n.nodeName.toUpperCase()) }, hi = u("HR"), at = function (n) { return n && /^TD|^TH/.test(n.nodeName.toUpperCase()) }, g = u("BLOCKQUOTE"), nt = function (n) { return at(n) || g(n) || o(n) }, vt = u("A"), ci = function (n) { return v(n) && !!p(n, h) }, li = function (n) { return v(n) && !p(n, h) }, ai = u("BODY"), vi = function (n, t) { return n.nextSibling === t || n.previousSibling === t }, yi = function (n, t) { t = t || r.ok; var i = []; return n.previousSibling && t(n.previousSibling) && i.push(n.previousSibling), i.push(n), n.nextSibling && t(n.nextSibling) && i.push(n.nextSibling), i }, y = f.isMSIE && f.browserVersion < 11 ? "&nbsp;" : "<br>", e = function (n) { return s(n) ? n.nodeValue.length : n ? n.childNodes.length : 0 }, tt = function (n) { var t = e(n); if (t === 0) return !0; if (s(n) || t !== 1 || n.innerHTML !== y) { if (i.all(n.childNodes, s) && n.innerHTML === "") return !0 } else return !0; return !1 }, yt = function (n) { a(n) || e(n) || (n.innerHTML = y) }, p = function (n, t) { while (n) { if (t(n)) return n; if (o(n)) break; n = n.parentNode } return null }, pi = function (n, t) { for (n = n.parentNode; n;) { if (e(n) !== 1) break; if (t(n)) return n; if (o(n)) break; n = n.parentNode } return null }, c = function (n, t) { t = t || r.fail; var i = []; return p(n, function (n) { return o(n) || i.push(n), t(n) }), i }, wi = function (n, t) { var r = c(n); return i.last(r.filter(t)) }, bi = function (t, i) { for (var u = c(t), r = i; r; r = r.parentNode) if (n.inArray(r, u) > -1) return r; return null }, ki = function (n, t) { t = t || r.fail; for (var i = []; n;) { if (t(n)) break; i.push(n); n = n.previousSibling } return i }, pt = function (n, t) { t = t || r.fail; for (var i = []; n;) { if (t(n)) break; i.push(n); n = n.nextSibling } return i }, di = function (n, t) { var i = []; return t = t || r.ok, function u(r) { n !== r && t(r) && i.push(r); for (var f = 0, e = r.childNodes.length; f < e; f++) u(r.childNodes[f]) }(n), i }, gi = function (t, i) { var u = t.parentNode, r = n("<" + i + ">")[0]; return u.insertBefore(r, t), r.appendChild(t), r }, rt = function (n, t) { var i = t.nextSibling, r = t.parentNode; return i ? r.insertBefore(n, i) : r.appendChild(n), n }, ut = function (t, i) { return n.each(i, function (n, i) { t.appendChild(i) }), t }, w = function (n) { return n.offset === 0 }, b = function (n) { return n.offset === e(n.node) }, wt = function (n) { return w(n) || b(n) }, bt = function (n, t) { while (n && n !== t) { if (l(n) !== 0) return !1; n = n.parentNode } return !0 }, kt = function (n, t) { if (!t) return !1; while (n && n !== t) { if (l(n) !== e(n.parentNode) - 1) return !1; n = n.parentNode } return !0 }, nr = function (n, t) { return w(n) && bt(n.node, t) }, tr = function (n, t) { return b(n) && kt(n.node, t) }, l = function (n) { for (var t = 0; n = n.previousSibling;) t += 1; return t }, d = function (n) { return !!(n && n.childNodes && n.childNodes.length) }, dt = function (n, t) { var i, r; if (n.offset === 0) { if (o(n.node)) return null; i = n.node.parentNode; r = l(n.node) } else d(n.node) ? (i = n.node.childNodes[n.offset - 1], r = e(i)) : (i = n.node, r = t ? 0 : n.offset - 1); return { node: i, offset: r } }, ft = function (n, t) { var i, r; if (e(n.node) === n.offset) { if (o(n.node)) return null; i = n.node.parentNode; r = l(n.node) + 1 } else d(n.node) ? (i = n.node.childNodes[n.offset], r = 0) : (i = n.node, r = t ? e(n.node) : n.offset + 1); return { node: i, offset: r } }, gt = function (n, t) { return n.node === t.node && n.offset === t.offset }, ir = function (n) { if (s(n.node) || !d(n.node) || tt(n.node)) return !0; var t = n.node.childNodes[n.offset - 1], i = n.node.childNodes[n.offset]; return (!t || a(t)) && (!i || a(i)) ? !0 : !1 }, rr = function (n, t) { while (n) { if (t(n)) return n; n = dt(n) } return null }, ur = function (n, t) { while (n) { if (t(n)) return n; n = ft(n) } return null }, fr = function (n) { if (!s(n.node)) return !1; var t = n.node.nodeValue.charAt(n.offset - 1); return t && t !== " " && t !== k }, er = function (n, t, i, r) { for (var u = n, f; u;) { if (i(u), gt(u, t)) break; f = r && n.node !== u.node && t.node !== u.node; u = ft(u, f) } }, or = function (n, t) { var i = c(t, r.eq(n)); return i.map(l).reverse() }, sr = function (n, t) { for (var i = n, r = 0, u = t.length; r < u; r++) i = i.childNodes.length <= t[r] ? i.childNodes[i.childNodes.length - 1] : i.childNodes[t[r]]; return i }, et = function (n, t) { var u = t && t.isSkipPaddingBlankHTML, f = t && t.isNotSplitEdgePoint, r, i; if (wt(n) && (s(n.node) || f)) { if (w(n)) return n.node; if (b(n)) return n.node.nextSibling } return s(n.node) ? n.node.splitText(n.offset) : (r = n.node.childNodes[n.offset], i = rt(n.node.cloneNode(!1), n.node), ut(i, pt(r)), u || (yt(n.node), yt(i)), i) }, ni = function (n, i, u) { var f = c(i.node, r.eq(n)); if (f.length) { if (f.length === 1) return et(i, u) } else return null; return f.reduce(function (n, r) { return n === i.node && (n = et(i, u)), et({ node: r, offset: n ? t.position(n) : e(r) }, u) }) }, hr = function (n, t) { var s = t ? h : nt, e = c(n.node, s), o = i.last(e) || n.node, r, u, f; return s(o) ? (r = e[e.length - 2], u = o) : (r = o, u = r.parentNode), f = r && ni(r, n, { isSkipPaddingBlankHTML: t, isNotSplitEdgePoint: t }), f || u !== n.node || (f = n.node.childNodes[n.offset]), { rightNode: f, container: u } }, ti = function (n) { return document.createElement(n) }, cr = function (n) { return document.createTextNode(n) }, ot = function (n, t) { var f, r, i, u; if (n && n.parentNode) { if (n.removeNode) return n.removeNode(t); if (f = n.parentNode, !t) { for (r = [], i = 0, u = n.childNodes.length; i < u; i++) r.push(n.childNodes[i]); for (i = 0, u = r.length; i < u; i++) f.insertBefore(r[i], n) } f.removeChild(n) } }, lr = function (n, t) { while (n) { if (o(n) || !t(n)) break; var i = n.parentNode; ot(n); n = i } }, ar = function (n, t) { if (n.nodeName.toUpperCase() === t.toUpperCase()) return n; var r = ti(t); return n.style.cssText && (r.style.cssText = n.style.cssText), ut(r, i.from(n.childNodes)), rt(r, n), ot(n), r }, ii = u("TEXTAREA"), ri = function (n, t) { var i = ii(n[0]) ? n.val() : n.html(); return t ? i.replace(/[\n\r]/g, "") : i }, vr = function (t, i) { var r = ri(t), u; return i && (u = /<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g, r = r.replace(u, function (n, t, i) { i = i.toUpperCase(); var r = /^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(i) && !!t, u = /^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(i); return n + (r || u ? "\n" : "") }), r = n.trim(r)), r }, yr = function (t) { var i = n(t), r = i.offset(), u = i.outerHeight(!0); return { left: r.left, top: r.top + u } }, pr = function (n, t) { Object.keys(t).forEach(function (i) { n.on(i, t[i]) }) }, wr = function (n, t) { Object.keys(t).forEach(function (i) { n.off(i, t[i]) }) }; return { NBSP_CHAR: k, ZERO_WIDTH_NBSP_CHAR: it, blank: y, emptyPara: "<p>" + y + "<\/p>", makePredByNodeName: u, isEditable: o, isControlSizing: ui, isText: s, isElement: fi, isVoid: a, isPara: h, isPurePara: si, isHeading: ei, isInline: v, isBlock: r.not(v), isBodyInline: li, isBody: ai, isParaInline: ci, isPre: oi, isList: lt, isTable: ht, isData: ct, isCell: at, isBlockquote: g, isBodyContainer: nt, isAnchor: vt, isDiv: u("DIV"), isLi: st, isBR: u("BR"), isSpan: u("SPAN"), isB: u("B"), isU: u("U"), isS: u("S"), isI: u("I"), isImg: u("IMG"), isTextarea: ii, isEmpty: tt, isEmptyAnchor: r.and(vt, tt), isClosestSibling: vi, withClosestSiblings: yi, nodeLength: e, isLeftEdgePoint: w, isRightEdgePoint: b, isEdgePoint: wt, isLeftEdgeOf: bt, isRightEdgeOf: kt, isLeftEdgePointOf: nr, isRightEdgePointOf: tr, prevPoint: dt, nextPoint: ft, isSamePoint: gt, isVisiblePoint: ir, prevPointUntil: rr, nextPointUntil: ur, isCharPoint: fr, walkPoint: er, ancestor: p, singleChildAncestor: pi, listAncestor: c, lastAncestor: wi, listNext: pt, listPrev: ki, listDescendant: di, commonAncestor: bi, wrap: gi, insertAfter: rt, appendChildNodes: ut, position: l, hasChildren: d, makeOffsetPath: or, fromOffsetPath: sr, splitTree: ni, splitPoint: hr, create: ti, createText: cr, remove: ot, removeWhile: lr, replace: ar, html: vr, value: ri, posFromPlaceholder: yr, attachEvents: pr, detachEvents: wr } }(), rt = function (u, f) { var e = this, o = n.summernote.ui; return this.memos = {}, this.modules = {}, this.layoutInfo = {}, this.options = f, this.initialize = function () { return this.layoutInfo = o.createLayout(u, f), this._initialize(), u.hide(), this }, this.destroy = function () { this._destroy(); u.removeData("summernote"); o.removeLayout(u, this.layoutInfo) }, this.reset = function () { var n = e.isDisabled(); this.code(t.emptyPara); this._destroy(); this._initialize(); n && e.disable() }, this._initialize = function () { var i = n.extend({}, this.options.buttons), t; Object.keys(i).forEach(function (n) { e.memo("button." + n, i[n]) }); t = n.extend({}, this.options.modules, n.summernote.plugins || {}); Object.keys(t).forEach(function (n) { e.module(n, t[n], !0) }); Object.keys(this.modules).forEach(function (n) { e.initializeModule(n) }) }, this._destroy = function () { Object.keys(this.modules).reverse().forEach(function (n) { e.removeModule(n) }); Object.keys(this.memos).forEach(function (n) { e.removeMemo(n) }) }, this.code = function (n) { var t = this.invoke("codeview.isActivated"); if (n === undefined) return this.invoke("codeview.sync"), t ? this.layoutInfo.codable.val() : this.layoutInfo.editable.html(); t ? this.layoutInfo.codable.val(n) : this.layoutInfo.editable.html(n); u.val(n); this.triggerEvent("change", n) }, this.isDisabled = function () { return this.layoutInfo.editable.attr("contenteditable") === "false" }, this.enable = function () { this.layoutInfo.editable.attr("contenteditable", !0); this.invoke("toolbar.activate", !0) }, this.disable = function () { this.invoke("codeview.isActivated") && this.invoke("codeview.deactivate"); this.layoutInfo.editable.attr("contenteditable", !1); this.invoke("toolbar.deactivate", !0) }, this.triggerEvent = function () { var n = i.head(arguments), t = i.tail(i.from(arguments)), f = this.options.callbacks[r.namespaceToCamel(n, "on")]; f && f.apply(u[0], t); u.trigger("summernote." + n, t) }, this.initializeModule = function (n) { var i = this.modules[n]; (i.shouldInitialize = i.shouldInitialize || r.ok, i.shouldInitialize()) && (i.initialize && i.initialize(), i.events && t.attachEvents(u, i.events)) }, this.module = function (n, t, i) { if (arguments.length === 1) return this.modules[n]; this.modules[n] = new t(this); i || this.initializeModule(n) }, this.removeModule = function (n) { var i = this.modules[n]; i.shouldInitialize() && (i.events && t.detachEvents(u, i.events), i.destroy && i.destroy()); delete this.modules[n] }, this.memo = function (n, t) { if (arguments.length === 1) return this.memos[n]; this.memos[n] = t }, this.removeMemo = function (n) { this.memos[n] && this.memos[n].destroy && this.memos[n].destroy(); delete this.memos[n] }, this.createInvokeHandler = function (t, i) { return function (r) { r.preventDefault(); e.invoke(t, i || n(r.target).closest("[data-value]").data("value")) } }, this.invoke = function () { var o = i.head(arguments), u = i.tail(i.from(arguments)), t = o.split("."), f = t.length > 1, e = f && i.head(t), r = f ? i.last(t) : i.head(t), n = this.modules[e || "editor"]; return !e && this[r] ? this[r].apply(this, u) : n && n[r] && n.shouldInitialize() ? n[r].apply(n, u) : void 0 }, this.initialize() }; n.fn.extend({ summernote: function () { var f = n.type(i.head(arguments)), e = f === "string", o = f === "object", t = o ? i.head(arguments) : {}, u, r; if (t = n.extend({}, n.summernote.options, t), t.langInfo = n.extend(!0, {}, n.summernote.lang["en-US"], n.summernote.lang[t.lang]), t.icons = n.extend(!0, {}, n.summernote.options.icons, t.icons), this.each(function (i, r) { var u = n(r), f; u.data("summernote") || (f = new rt(u, t), u.data("summernote", f), u.data("summernote").triggerEvent("init", f.layoutInfo)) }), u = this.first(), u.length) { if (r = u.data("summernote"), e) return r.invoke.apply(r, i.from(arguments)); t.focus && r.invoke("editor.focus") } return this } }); var ut = function (t, i, r, u) { this.render = function (f) { var e = n(t), o; if (r && r.contents && e.html(r.contents), r && r.className && e.addClass(r.className), r && r.data && n.each(r.data, function (n, t) { e.attr("data-" + n, t) }), r && r.click) e.on("click", r.click); return i && (o = e.find(".note-children-container"), i.forEach(function (n) { n.render(o.length ? o : e) })), u && u(e, r), r && r.callback && r.callback(e), f && f.append(e), e } }, o = { create: function (t, i) { return function () { var u = n.isArray(arguments[0]) ? arguments[0] : [], r = typeof arguments[1] == "object" ? arguments[1] : arguments[0]; return r && r.children && (u = r.children), new ut(t, u, r, i) } } }, ft = o.create('<div class="note-editor note-frame panel panel-default"/>'), et = o.create('<div class="note-toolbar panel-heading"/>'), ot = o.create('<div class="note-editing-area"/>'), st = o.create('<textarea class="note-codable"/>'), ht = o.create('<div class="note-editable panel-body" contentEditable="true"/>'), ct = o.create('<div class="note-statusbar">  <div class="note-resizebar">    <div class="note-icon-bar"/>    <div class="note-icon-bar"/>    <div class="note-icon-bar"/>  <\/div><\/div>'), lt = o.create('<div class="note-editor"/>'), at = o.create('<div class="note-editable" contentEditable="true"/>'), vt = o.create('<div class="note-btn-group btn-group">'), yt = o.create('<button type="button" class="note-btn btn btn-default btn-sm" tabindex="-1">', function (n, t) { t && t.tooltip && n.attr({ title: t.tooltip }).tooltip({ container: "body", trigger: "hover", placement: "bottom" }) }), pt = o.create('<div class="dropdown-menu">', function (t, i) { var r = n.isArray(i.items) ? i.items.map(function (n) { var t = typeof n == "string" ? n : n.value || "", r = i.template ? i.template(n) : n; return '<li><a href="#" data-value="' + t + '">' + r + "<\/a><\/li>" }).join("") : i.items; t.html(r) }), wt = o.create('<div class="dropdown-menu note-check">', function (t, i) { var r = n.isArray(i.items) ? i.items.map(function (n) { var t = typeof n == "string" ? n : n.value || "", r = i.template ? i.template(n) : n; return '<li><a href="#" data-value="' + t + '">' + d(i.checkClassName) + " " + r + "<\/a><\/li>" }).join("") : i.items; t.html(r) }), bt = o.create('<div class="note-color-palette"/>', function (n, t) { for (var i, s, r, f = [], u = 0, h = t.colors.length; u < h; u++) { var c = t.eventName, e = t.colors[u], o = []; for (i = 0, s = e.length; i < s; i++) r = e[i], o.push(['<button type="button" class="note-color-btn"', 'style="background-color:', r, '" ', 'data-event="', c, '" ', 'data-value="', r, '" ', 'title="', r, '" ', 'data-toggle="button" tabindex="-1"><\/button>'].join("")); f.push('<div class="note-color-row">' + o.join("") + "<\/div>") } n.html(f.join("")); n.find(".note-color-btn").tooltip({ container: "body", trigger: "hover", placement: "bottom" }) }), kt = o.create('<div class="modal" aria-hidden="false" tabindex="-1"/>', function (n, t) { t.fade && n.addClass("fade"); n.html(['<div class="modal-dialog">', '  <div class="modal-content">', t.title ? '    <div class="modal-header">      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;<\/span><\/button>      <h4 class="modal-title">' + t.title + "<\/h4>    <\/div>" : "", '    <div class="modal-body">' + t.body + "<\/div>", t.footer ? '    <div class="modal-footer">' + t.footer + "<\/div>" : "", "  <\/div>", "<\/div>"].join("")) }), dt = o.create('<div class="note-popover popover in">  <div class="arrow"/>  <div class="popover-content note-children-container"/><\/div>', function (n, t) { var i = typeof t.direction != "undefined" ? t.direction : "bottom"; n.addClass(i); t.hideArrow && n.find(".arrow").hide() }), d = function (n, t) { return t = t || "i", "<" + t + ' class="' + n + '"/>' }, s = { editor: ft, toolbar: et, editingArea: ot, codable: st, editable: ht, statusbar: ct, airEditor: lt, airEditable: at, buttonGroup: vt, button: yt, dropdown: pt, dropdownCheck: wt, palette: bt, dialog: kt, popover: dt, icon: d, toggleBtn: function (n, t) { n.toggleClass("disabled", !t); n.attr("disabled", !t) }, toggleBtnActive: function (n, t) { n.toggleClass("active", t) }, onDialogShown: function (n, t) { n.one("shown.bs.modal", t) }, onDialogHidden: function (n, t) { n.one("hidden.bs.modal", t) }, showDialog: function (n) { n.modal("show") }, hideDialog: function (n) { n.modal("hide") }, createLayout: function (n, t) { var i = (t.airMode ? s.airEditor([s.editingArea([s.airEditable()])]) : s.editor([s.toolbar(), s.editingArea([s.codable(), s.editable()]), s.statusbar()])).render(); return i.insertAfter(n), { note: n, editor: i, toolbar: i.find(".note-toolbar"), editingArea: i.find(".note-editing-area"), editable: i.find(".note-editable"), codable: i.find(".note-codable"), statusbar: i.find(".note-statusbar") } }, removeLayout: function (n, t) { n.html(t.editable.html()); t.editor.remove(); n.show() } }; n.summernote = n.summernote || { lang: {} }; n.extend(n.summernote.lang, { "en-US": { font: { bold: "Bold", italic: "Italic", underline: "Underline", clear: "Remove Font Style", height: "Line Height", name: "Font Family", strikethrough: "Strikethrough", subscript: "Subscript", superscript: "Superscript", size: "Font Size" }, image: { image: "Picture", insert: "Insert Image", resizeFull: "Resize Full", resizeHalf: "Resize Half", resizeQuarter: "Resize Quarter", floatLeft: "Float Left", floatRight: "Float Right", floatNone: "Float None", shapeRounded: "Shape: Rounded", shapeCircle: "Shape: Circle", shapeThumbnail: "Shape: Thumbnail", shapeNone: "Shape: None", dragImageHere: "Drag image or text here", dropImage: "Drop image or Text", selectFromFiles: "Select from files", maximumFileSize: "Maximum file size", maximumFileSizeError: "Maximum file size exceeded.", url: "Image URL", remove: "Remove Image" }, video: { video: "Video", videoLink: "Video Link", insert: "Insert Video", url: "Video URL?", providers: "(YouTube, Vimeo, Vine, Instagram, DailyMotion or Youku)" }, link: { link: "Link", insert: "Insert Link", unlink: "Unlink", edit: "Edit", textToDisplay: "Text to display", url: "To what URL should this link go?", openInNewWindow: "Open in new window" }, table: { table: "Table" }, hr: { insert: "Insert Horizontal Rule" }, style: { style: "Style", normal: "Normal", blockquote: "Quote", pre: "Code", h1: "Header 1", h2: "Header 2", h3: "Header 3", h4: "Header 4", h5: "Header 5", h6: "Header 6" }, lists: { unordered: "Unordered list", ordered: "Ordered list" }, options: { help: "Help", fullscreen: "Full Screen", codeview: "Code View" }, paragraph: { paragraph: "Paragraph", outdent: "Outdent", indent: "Indent", left: "Align left", center: "Align center", right: "Align right", justify: "Justify full" }, color: { recent: "Recent Color", more: "More Color", background: "Background Color", foreground: "Foreground Color", transparent: "Transparent", setTransparent: "Set transparent", reset: "Reset", resetToDefault: "Reset to default" }, shortcut: { shortcuts: "Keyboard shortcuts", close: "Close", textFormatting: "Text formatting", action: "Action", paragraphFormatting: "Paragraph formatting", documentStyle: "Document Style", extraKeys: "Extra keys" }, help: { insertParagraph: "Insert Paragraph", undo: "Undoes the last command", redo: "Redoes the last command", tab: "Tab", untab: "Untab", bold: "Set a bold style", italic: "Set a italic style", underline: "Set a underline style", strikethrough: "Set a strikethrough style", removeFormat: "Clean a style", justifyLeft: "Set left align", justifyCenter: "Set center align", justifyRight: "Set right align", justifyFull: "Set full align", insertUnorderedList: "Toggle unordered list", insertOrderedList: "Toggle ordered list", outdent: "Outdent on current paragraph", indent: "Indent on current paragraph", formatPara: "Change current block's format as a paragraph(P tag)", formatH1: "Change current block's format as H1", formatH2: "Change current block's format as H2", formatH3: "Change current block's format as H3", formatH4: "Change current block's format as H4", formatH5: "Change current block's format as H5", formatH6: "Change current block's format as H6", insertHorizontalRule: "Insert horizontal rule", "linkDialog.show": "Show Link Dialog" }, history: { undo: "Undo", redo: "Redo" }, specialChar: { specialChar: "SPECIAL CHARACTERS", select: "Select Special characters" } } }); var e = function () { var n = { BACKSPACE: 8, TAB: 9, ENTER: 13, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, NUM0: 48, NUM1: 49, NUM2: 50, NUM3: 51, NUM4: 52, NUM5: 53, NUM6: 54, NUM7: 55, NUM8: 56, B: 66, E: 69, I: 73, J: 74, K: 75, L: 76, R: 82, S: 83, U: 85, V: 86, Y: 89, Z: 90, SLASH: 191, LEFTBRACKET: 219, BACKSLASH: 220, RIGHTBRACKET: 221 }; return { isEdit: function (t) { return i.contains([n.BACKSPACE, n.TAB, n.ENTER, n.SPACE], t) }, isMove: function (t) { return i.contains([n.LEFT, n.UP, n.RIGHT, n.DOWN], t) }, nameFromCode: r.invertObject(n), code: n } }(), u = function () { var e = function (n, r) { for (var o = n.parentElement(), a = document.body.createTextRange(), s, h = i.from(o.childNodes), c, u, l, e, v, f = 0; f < h.length; f++) if (!t.isText(h[f])) { if (a.moveToElementText(h[f]), a.compareEndPoints("StartToStart", n) >= 0) break; s = h[f] } if (f !== 0 && t.isText(h[f - 1])) { for (c = document.body.createTextRange(), u = null, c.moveToElementText(s || o), c.collapse(!s), u = s ? s.nextSibling : o.firstChild, l = n.duplicate(), l.setEndPoint("StartToStart", c), e = l.text.replace(/[\r\n]/g, "").length; e > u.nodeValue.length && u.nextSibling;) e -= u.nodeValue.length, u = u.nextSibling; v = u.nodeValue; r && u.nextSibling && t.isText(u.nextSibling) && e === u.nodeValue.length && (e -= u.nodeValue.length, u = u.nextSibling); o = u; f = e } return { cont: o, offset: f } }, o = function (n) { var e = function (n, u) { var f, o, s, h; if (t.isText(n)) s = t.listPrev(n, r.not(t.isText)), h = i.last(s).previousSibling, f = h || n.parentNode, u += i.sum(i.tail(s), t.nodeLength), o = !h; else { if (f = n.childNodes[u] || n, t.isText(f)) return e(f, 0); u = 0; o = !1 } return { node: f, collapseToStart: o, offset: u } }, u = document.body.createTextRange(), f = e(n.node, n.offset); return u.moveToElementText(f.node), u.collapse(f.collapseToStart), u.moveStart("character", f.offset), u }, u = function (e, s, h, c) { var a, l; this.sc = e; this.so = s; this.ec = h; this.eo = c; a = function () { var n, t; return f.isW3CRangeSupport ? (n = document.createRange(), n.setStart(e, s), n.setEnd(h, c), n) : (t = o({ node: e, offset: s }), t.setEndPoint("EndToEnd", o({ node: h, offset: c })), t) }; this.getPoints = function () { return { sc: e, so: s, ec: h, eo: c } }; this.getStartPoint = function () { return { node: e, offset: s } }; this.getEndPoint = function () { return { node: h, offset: c } }; this.select = function () { var t = a(), n; return f.isW3CRangeSupport ? (n = document.getSelection(), n.rangeCount > 0 && n.removeAllRanges(), n.addRange(t)) : t.select(), this }; this.scrollIntoView = function (t) { var i = n(t).height(); return t.scrollTop + i < this.sc.offsetTop && (t.scrollTop += Math.abs(t.scrollTop + i - this.sc.offsetTop)), this }; this.normalize = function () { var i = function (n, i) { var r, u; if (t.isVisiblePoint(n) && !t.isEdgePoint(n) || t.isVisiblePoint(n) && t.isRightEdgePoint(n) && !i || t.isVisiblePoint(n) && t.isLeftEdgePoint(n) && i || t.isVisiblePoint(n) && t.isBlock(n.node) && t.isEmpty(n.node)) return n; if (r = t.ancestor(n.node, t.isBlock), (t.isLeftEdgePointOf(n, r) || t.isVoid(t.prevPoint(n).node)) && !i || (t.isRightEdgePointOf(n, r) || t.isVoid(t.nextPoint(n).node)) && i) { if (t.isVisiblePoint(n)) return n; i = !i } return u = i ? t.nextPointUntil(t.nextPoint(n), t.isVisiblePoint) : t.prevPointUntil(t.prevPoint(n), t.isVisiblePoint), u || n }, n = i(this.getEndPoint(), !1), r = this.isCollapsed() ? n : i(this.getStartPoint(), !0); return new u(r.node, r.offset, n.node, n.offset) }; this.nodes = function (n, u) { n = n || r.ok; var o = u && u.includeAncestor, s = u && u.fullyContains, h = this.getStartPoint(), c = this.getEndPoint(), f = [], e = []; return t.walkPoint(h, c, function (r) { if (!t.isEditable(r.node)) { var u; s ? (t.isLeftEdgePoint(r) && e.push(r.node), t.isRightEdgePoint(r) && i.contains(e, r.node) && (u = r.node)) : u = o ? t.ancestor(r.node, n) : r.node; u && n(u) && f.push(u) } }, !0), i.unique(f) }; this.commonAncestor = function () { return t.commonAncestor(e, h) }; this.expand = function (n) { var f = t.ancestor(e, n), r = t.ancestor(h, n), i; return !f && !r ? new u(e, s, h, c) : (i = this.getPoints(), f && (i.sc = f, i.so = 0), r && (i.ec = r, i.eo = t.nodeLength(r)), new u(i.sc, i.so, i.ec, i.eo)) }; this.collapse = function (n) { return n ? new u(e, s, e, s) : new u(h, c, h, c) }; this.splitText = function () { var i = e === h, n = this.getPoints(); return t.isText(h) && !t.isEdgePoint(this.getEndPoint()) && h.splitText(c), t.isText(e) && !t.isEdgePoint(this.getStartPoint()) && (n.sc = e.splitText(s), n.so = 0, i && (n.ec = n.sc, n.eo = c - s)), new u(n.sc, n.so, n.ec, n.eo) }; this.deleteContents = function () { if (this.isCollapsed()) return this; var f = this.splitText(), e = f.nodes(null, { fullyContains: !0 }), r = t.prevPointUntil(f.getStartPoint(), function (n) { return !i.contains(e, n.node) }), o = []; return n.each(e, function (n, i) { var u = i.parentNode; r.node !== u && t.nodeLength(u) === 1 && o.push(u); t.remove(i, !1) }), n.each(o, function (n, i) { t.remove(i, !1) }), new u(r.node, r.offset, r.node, r.offset).normalize() }; l = function (n) { return function () { var i = t.ancestor(e, n); return !!i && i === t.ancestor(h, n) } }; this.isOnEditable = l(t.isEditable); this.isOnList = l(t.isList); this.isOnAnchor = l(t.isAnchor); this.isOnCell = l(t.isCell); this.isOnData = l(t.isData); this.isLeftEdgeOf = function (n) { if (!t.isLeftEdgePoint(this.getStartPoint())) return !1; var i = t.ancestor(this.sc, n); return i && t.isLeftEdgeOf(this.sc, i) }; this.isCollapsed = function () { return e === h && s === c }; this.wrapBodyInlineWithPara = function () { var n, f, s, o, h; return t.isBodyContainer(e) && t.isEmpty(e) ? (e.innerHTML = t.emptyPara, new u(e.firstChild, 0, e.firstChild, 0)) : (n = this.normalize(), t.isParaInline(e) || t.isPara(e)) ? n : (t.isInline(n.sc) ? (s = t.listAncestor(n.sc, r.not(t.isInline)), f = i.last(s), t.isInline(f) || (f = s[s.length - 2] || n.sc.childNodes[n.so])) : f = n.sc.childNodes[n.so > 0 ? n.so - 1 : 0], o = t.listPrev(f, t.isParaInline).reverse(), o = o.concat(t.listNext(f.nextSibling, t.isParaInline)), o.length && (h = t.wrap(i.head(o), "p"), t.appendChildNodes(h, i.tail(o))), this.normalize()) }; this.insertNode = function (n) { var r = this.wrapBodyInlineWithPara().deleteContents(), i = t.splitPoint(r.getStartPoint(), t.isInline(n)); return i.rightNode ? i.rightNode.parentNode.insertBefore(n, i.rightNode) : i.container.appendChild(n), n }; this.pasteHTML = function (t) { var r = n("<div><\/div>").html(t)[0], u = i.from(r.childNodes), f = this.wrapBodyInlineWithPara().deleteContents(); return u.reverse().map(function (n) { return f.insertNode(n) }).reverse() }; this.toString = function () { var n = a(); return f.isW3CRangeSupport ? n.toString() : n.text }; this.getWordRange = function (n) { var i = this.getEndPoint(), r; return t.isCharPoint(i) ? (r = t.prevPointUntil(i, function (n) { return !t.isCharPoint(n) }), n && (i = t.nextPointUntil(i, function (n) { return !t.isCharPoint(n) })), new u(r.node, r.offset, i.node, i.offset)) : this }; this.bookmark = function (n) { return { s: { path: t.makeOffsetPath(n, e), offset: s }, e: { path: t.makeOffsetPath(n, h), offset: c } } }; this.paraBookmark = function (n) { return { s: { path: i.tail(t.makeOffsetPath(i.head(n), e)), offset: s }, e: { path: i.tail(t.makeOffsetPath(i.last(n), h)), offset: c } } }; this.getClientRects = function () { var n = a(); return n.getClientRects() } }; return { create: function (n, i, r, f) { if (arguments.length === 4) return new u(n, i, r, f); if (arguments.length === 2) return r = n, f = i, new u(n, i, r, f); var e = this.createFromSelection(); return !e && arguments.length === 1 ? (e = this.createFromNode(arguments[0]), e.collapse(t.emptyPara === arguments[0].innerHTML)) : e }, createFromSelection: function () { var s, h, c, l, r, o, a, v, y, n, i; if (f.isW3CRangeSupport) { if (r = document.getSelection(), r && r.rangeCount !== 0) { if (t.isBody(r.anchorNode)) return null } else return null; o = r.getRangeAt(0); s = o.startContainer; h = o.startOffset; c = o.endContainer; l = o.endOffset } else a = document.selection.createRange(), v = a.duplicate(), v.collapse(!1), y = a, y.collapse(!0), n = e(y, !0), i = e(v, !1), t.isText(n.node) && t.isLeftEdgePoint(n) && t.isTextNode(i.node) && t.isRightEdgePoint(i) && i.node.nextSibling === n.node && (n = i), s = n.cont, h = n.offset, c = i.cont, l = i.offset; return new u(s, h, c, l) }, createFromNode: function (n) { var r = n, f = 0, i = n, u = t.nodeLength(i); return t.isVoid(r) && (f = t.listPrev(r).length - 1, r = r.parentNode), t.isBR(i) ? (u = t.listPrev(i).length - 1, i = i.parentNode) : t.isVoid(i) && (u = t.listPrev(i).length, i = i.parentNode), this.create(r, f, i, u) }, createFromNodeBefore: function (n) { return this.createFromNode(n).collapse(!0) }, createFromNodeAfter: function (n) { return this.createFromNode(n).collapse() }, createFromBookmark: function (n, i) { var r = t.fromOffsetPath(n, i.s.path), f = i.s.offset, e = t.fromOffsetPath(n, i.e.path), o = i.e.offset; return new u(r, f, e, o) }, createFromParaBookmark: function (n, r) { var f = n.s.offset, e = n.e.offset, o = t.fromOffsetPath(i.head(r), n.s.path), s = t.fromOffsetPath(i.last(r), n.e.path); return new u(o, f, s, e) } } }(), g = function () { var t = function (t) { return n.Deferred(function (i) { n.extend(new FileReader, { onload: function (n) { var t = n.target.result; i.resolve(t) }, onerror: function () { i.reject(this) } }).readAsDataURL(t) }).promise() }, i = function (t) { return n.Deferred(function (i) { var r = n("<img>"); r.one("load", function () { r.off("error abort"); i.resolve(r) }).one("error abort", function () { r.off("load").detach(); i.reject(r) }).css({ display: "none" }).appendTo(document.body).attr("src", t) }).promise() }; return { readFileAsDataURL: t, createImage: i } }(), gt = function (n) { var i = [], t = -1, r = n[0], e = function () { var t = u.create(r); return { contents: n.html(), bookmark: t ? t.bookmark(r) : { s: { path: [], offset: 0 }, e: { path: [], offset: 0 } } } }, f = function (t) { t.contents !== null && n.html(t.contents); t.bookmark !== null && u.createFromBookmark(r, t.bookmark).select() }; this.rewind = function () { n.html() !== i[t].contents && this.recordUndo(); t = 0; f(i[t]) }; this.reset = function () { i = []; t = -1; n.html(""); this.recordUndo() }; this.undo = function () { n.html() !== i[t].contents && this.recordUndo(); 0 < t && (t--, f(i[t])) }; this.redo = function () { i.length - 1 > t && (t++, f(i[t])) }; this.recordUndo = function () { t++; i.length > t && (i = i.slice(0, t)); i.push(e()) } }, ni = function () { var u = function (t, i) { if (f.jqueryVersion < 1.9) { var r = {}; return n.each(i, function (n, i) { r[i] = t.css(i) }), r } return t.css.call(t, i) }; this.fromNode = function (n) { var t = u(n, ["font-family", "font-size", "text-align", "list-style-type", "line-height"]) || {}; return t["font-size"] = parseInt(t["font-size"], 10), t }; this.stylePara = function (i, r) { n.each(i.nodes(t.isPara, { includeAncestor: !0 }), function (t, i) { n(i).css(r) }) }; this.styleNodes = function (u, f) { var e, s, h; u = u.splitText(); var o = f && f.nodeName || "SPAN", c = !!(f && f.expandClosestSibling), l = !!(f && f.onlyPartialContains); return u.isCollapsed() ? [u.insertNode(t.create(o))] : (e = t.makePredByNodeName(o), s = u.nodes(t.isText, { fullyContains: !0 }).map(function (n) { return t.singleChildAncestor(n, e) || t.wrap(n, o) }), c ? (l && (h = u.nodes(), e = r.and(e, function (n) { return i.contains(h, n) })), s.map(function (r) { var u = t.withClosestSiblings(r, e), f = i.head(u), o = i.tail(u); return n.each(o, function (n, i) { t.appendChildNodes(f, i.childNodes); t.remove(i) }), i.head(u) })) : s) }; this.current = function (i) { var s = n(t.isElement(i.sc) ? i.sc : i.sc.parentNode), r = this.fromNode(s), f, e, u, o; try { r = n.extend(r, { "font-bold": document.queryCommandState("bold") ? "bold" : "normal", "font-italic": document.queryCommandState("italic") ? "italic" : "normal", "font-underline": document.queryCommandState("underline") ? "underline" : "normal", "font-subscript": document.queryCommandState("subscript") ? "subscript" : "normal", "font-superscript": document.queryCommandState("superscript") ? "superscript" : "normal", "font-strikethrough": document.queryCommandState("strikethrough") ? "strikethrough" : "normal" }) } catch (h) { } return i.isOnList() ? (f = ["circle", "disc", "disc-leading-zero", "square"], e = n.inArray(r["list-style-type"], f) > -1, r["list-style"] = e ? "unordered" : "ordered") : r["list-style"] = "none", u = t.ancestor(i.sc, t.isPara), u && u.style["line-height"] ? r["line-height"] = u.style.lineHeight : (o = parseInt(r["line-height"], 10) / parseInt(r["font-size"], 10), r["line-height"] = o.toFixed(1)), r.anchor = i.isOnAnchor() && t.ancestor(i.sc, t.isAnchor), r.ancestors = t.listAncestor(i.sc, t.isEditable), r.range = i, r } }, nt = function () { var f = this; this.insertOrderedList = function (n) { this.toggleList("OL", n) }; this.insertUnorderedList = function (n) { this.toggleList("UL", n) }; this.indent = function (f) { var o = this, e = u.create(f).wrapBodyInlineWithPara(), s = e.nodes(t.isPara, { includeAncestor: !0 }), h = i.clusterBy(s, r.peq2("parentNode")); n.each(h, function (r, u) { var f = i.head(u); t.isLi(f) ? o.wrapList(u, f.parentNode.nodeName) : n.each(u, function (t, i) { n(i).css("marginLeft", function (n, t) { return (parseInt(t, 10) || 0) + 25 }) }) }); e.select() }; this.outdent = function (f) { var o = this, e = u.create(f).wrapBodyInlineWithPara(), s = e.nodes(t.isPara, { includeAncestor: !0 }), h = i.clusterBy(s, r.peq2("parentNode")); n.each(h, function (r, u) { var f = i.head(u); t.isLi(f) ? o.releaseList([u]) : n.each(u, function (t, i) { n(i).css("marginLeft", function (n, t) { return t = parseInt(t, 10) || 0, t > 25 ? t - 25 : "" }) }) }); e.select() }; this.toggleList = function (e, o) { var c = u.create(o).wrapBodyInlineWithPara(), s = c.nodes(t.isPara, { includeAncestor: !0 }), v = c.paraBookmark(s), a = i.clusterBy(s, r.peq2("parentNode")), h, l; i.find(s, t.isPurePara) ? (h = [], n.each(a, function (n, t) { h = h.concat(f.wrapList(t, e)) }), s = h) : (l = c.nodes(t.isList, { includeAncestor: !0 }).filter(function (t) { return !n.nodeName(t, e) }), l.length ? n.each(l, function (n, i) { t.replace(i, e) }) : s = this.releaseList(a, !0)); u.createFromParaBookmark(v, s).select() }; this.wrapList = function (n, r) { var e = i.head(n), u = i.last(n), s = t.isList(e.previousSibling) && e.previousSibling, f = t.isList(u.nextSibling) && u.nextSibling, o = s || t.insertAfter(t.create(r || "UL"), u); return n = n.map(function (n) { return t.isPurePara(n) ? t.replace(n, "LI") : n }), t.appendChildNodes(o, n), f && (t.appendChildNodes(o, i.from(f.childNodes)), t.remove(f)), n }; this.releaseList = function (r, u) { var f = []; return n.each(r, function (r, e) { var s = i.head(e), c = i.last(e), o = u ? t.lastAncestor(s, t.isList) : s.parentNode, a = o.childNodes.length > 1 ? t.splitTree(o, { node: c.parentNode, offset: t.position(c) + 1 }, { isSkipPaddingBlankHTML: !0 }) : null, h = t.splitTree(o, { node: s.parentNode, offset: t.position(s) }, { isSkipPaddingBlankHTML: !0 }), l; e = u ? t.listDescendant(h, t.isLi) : i.from(h.childNodes).filter(t.isLi); (u || !t.isList(o.parentNode)) && (e = e.map(function (n) { return t.replace(n, "P") })); n.each(i.from(e).reverse(), function (n, i) { t.insertAfter(i, o) }); l = i.compact([o, h, a]); n.each(l, function (i, r) { var u = [r].concat(t.listDescendant(r, t.isList)); n.each(u.reverse(), function (n, i) { t.nodeLength(i) || t.remove(i, !0) }) }); f = f.concat(e) }), f } }, ti = function () { var i = new nt; this.insertTab = function (n, i) { var r = t.createText(new Array(i + 1).join(t.NBSP_CHAR)); n = n.deleteContents(); n.insertNode(r, !0); n = u.create(r, i); n.select() }; this.insertParagraph = function (r) { var o = u.create(r), f, e, s, h; if (o = o.deleteContents(), o = o.wrapBodyInlineWithPara(), f = t.ancestor(o.sc, t.isPara), f) { if (t.isEmpty(f) && t.isLi(f)) { i.toggleList(f.parentNode.nodeName); return } t.isEmpty(f) && t.isPara(f) && t.isBlockquote(f.parentNode) ? (t.insertAfter(f, f.parentNode), e = f) : (e = t.splitTree(f, o.getStartPoint()), s = t.listDescendant(f, t.isEmptyAnchor), s = s.concat(t.listDescendant(e, t.isEmptyAnchor)), n.each(s, function (n, i) { t.remove(i) }), (t.isHeading(e) || t.isPre(e)) && t.isEmpty(e) && (e = t.replace(e, "p"))) } else h = o.sc.childNodes[o.so], e = n(t.emptyPara)[0], h ? o.sc.insertBefore(e, h) : o.sc.appendChild(e); u.create(e, 0).normalize().select().scrollIntoView(r) } }, ii = function () { this.tab = function (n, r) { var f = t.ancestor(n.commonAncestor(), t.isCell), o = t.ancestor(f, t.isTable), s = t.listDescendant(o, t.isCell), e = i[r ? "prev" : "next"](s, f); e && u.create(e, 0).select() }; this.addRow = function (i, r) { for (var o = t.ancestor(i.commonAncestor(), t.isCell), u = n(o).closest("tr"), s = u.find("td").length, f = n("<tr><\/tr>"), e = 0; e < s; e++) f.append("<td>" + t.blank + "<\/td>"); r === "top" ? u.before(f) : u.after(f) }; this.addCol = function (i, r) { for (var s, e, u = t.ancestor(i.commonAncestor(), t.isCell), o = t.ancestor(u, t.isTable), h = n(u).closest("tr"), c = h.find("td").index(n(u)), l = n(o).find("tr").length, f = 0; f < l; f++) s = n(o).find("tr")[f], e = n(s).find("td")[c], r === "right" ? n(e).after("<td>" + t.blank + "<\/td>") : n(e).before("<td>" + t.blank + "<\/td>") }; this.deleteRow = function (i) { var r = t.ancestor(i.commonAncestor(), t.isCell); n(r).closest("table").find("tr").length == 1 ? n(r).closest("table").remove() : n(r).closest("tr").remove() }; this.deleteCol = function (i) { var r = t.ancestor(i.commonAncestor(), t.isCell), o = r, u = n(r).closest("td,th").prevAll("td,th").length, s = n(r).closest("td,th").nextAll("td,th").length, f = n(r).closest("table"), e; f != undefined && f.find("td").length == 1 ? n(r).closest("table").remove() : n(r).closest("table").find("tr").find("td:eq(" + u + "),th:eq(" + u + ")").remove(); e = n(r).closest("table").first("tr").find("td,th").length }; this.createTable = function (i, r, u) { for (var f, l, e, o, s = [], h, c = 0; c < i; c++) s.push("<td>" + t.blank + "<\/td>"); for (h = s.join(""), f = [], e = 0; e < r; e++) f.push("<tr>" + h + "<\/tr>"); return l = f.join(""), o = n("<table>" + l + "<\/table>"), u && u.tableClassName && o.addClass(u.tableClassName), o[0] } }, p = "bogus", ri = function (r) { var b = this, et = r.layoutInfo.note, rt = r.layoutInfo.editor, o = r.layoutInfo.editable, s = r.options, h = s.langInfo, v = o[0], d = null, y = new ni, w = new ii, ut = new ti, tt = new nt, it = new gt(o), ft, c; this.initialize = function () { o.on("keydown", function (n) { n.keyCode === e.code.ENTER && r.triggerEvent("enter", n); r.triggerEvent("keydown", n); n.isDefaultPrevented() || (s.shortcuts ? b.handleKeyMap(n) : b.preventDefaultEditableShortCuts(n)) }).on("keyup", function (n) { r.triggerEvent("keyup", n) }).on("focus", function (n) { r.triggerEvent("focus", n) }).on("blur", function (n) { r.triggerEvent("blur", n) }).on("mousedown", function (n) { r.triggerEvent("mousedown", n) }).on("mouseup", function (n) { r.triggerEvent("mouseup", n) }).on("scroll", function (n) { r.triggerEvent("scroll", n) }).on("paste", function (n) { r.triggerEvent("paste", n) }); o.html(t.html(et) || t.emptyPara); var n = f.isMSIE ? "DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted" : "input"; o.on(n, function () { r.triggerEvent("change", o.html()) }); rt.on("focusin", function (n) { r.triggerEvent("focusin", n) }).on("focusout", function (n) { r.triggerEvent("focusout", n) }); s.airMode || (s.width && rt.outerWidth(s.width), s.height && o.outerHeight(s.height), s.maxHeight && o.css("max-height", s.maxHeight), s.minHeight && o.css("min-height", s.minHeight)); it.recordUndo() }; this.destroy = function () { o.off() }; this.handleKeyMap = function (n) { var o = s.keyMap[f.isMac ? "mac" : "pc"], t = [], i, u; n.metaKey && t.push("CMD"); n.ctrlKey && !n.altKey && t.push("CTRL"); n.shiftKey && t.push("SHIFT"); i = e.nameFromCode[n.keyCode]; i && t.push(i); u = o[t.join("+")]; u ? (n.preventDefault(), r.invoke(u)) : e.isEdit(n.keyCode) && this.afterCommand() }; this.preventDefaultEditableShortCuts = function (n) { (n.ctrlKey || n.metaKey) && i.contains([66, 73, 85], n.keyCode) && n.preventDefault() }; this.createRange = function () { return this.focus(), u.create(v) }; this.saveRange = function (n) { d = this.createRange(); n && d.collapse().select() }; this.restoreRange = function () { d && (d.select(), this.focus()) }; this.saveTarget = function (n) { o.data("target", n) }; this.clearTarget = function () { o.removeData("target") }; this.restoreTarget = function () { return o.data("target") }; this.currentStyle = function () { var n = u.create(); return n && (n = n.normalize()), n ? y.current(n) : y.fromNode(o) }; this.styleFromNode = function (n) { return y.fromNode(n) }; this.undo = function () { r.triggerEvent("before.command", o.html()); it.undo(); r.triggerEvent("change", o.html()) }; r.memo("help.undo", h.help.undo); this.redo = function () { r.triggerEvent("before.command", o.html()); it.redo(); r.triggerEvent("change", o.html()) }; r.memo("help.redo", h.help.redo); var l = this.beforeCommand = function () { r.triggerEvent("before.command", o.html()); b.focus() }, a = this.afterCommand = function (n) { it.recordUndo(); n || r.triggerEvent("change", o.html()) }, k = ["bold", "italic", "underline", "strikethrough", "superscript", "subscript", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "formatBlock", "removeFormat", "backColor", "foreColor", "fontName"]; for (c = 0, ft = k.length; c < ft; c++) this[k[c]] = function (n) { return function (t) { l(); document.execCommand(n, !1, t); a(!0) } }(k[c]), r.memo("help." + k[c], h.help[k[c]]); for (this.tab = function () { var n = this.createRange(); n.isCollapsed() && n.isOnCell() ? w.tab(n) : (l(), ut.insertTab(n, s.tabSize), a()) }, r.memo("help.tab", h.help.tab), this.untab = function () { var n = this.createRange(); n.isCollapsed() && n.isOnCell() && w.tab(n, !0) }, r.memo("help.untab", h.help.untab), this.wrapCommand = function (n) { return function () { l(); n.apply(b, arguments); a() } }, this.insertParagraph = this.wrapCommand(function () { ut.insertParagraph(v) }), r.memo("help.insertParagraph", h.help.insertParagraph), this.insertOrderedList = this.wrapCommand(function () { tt.insertOrderedList(v) }), r.memo("help.insertOrderedList", h.help.insertOrderedList), this.insertUnorderedList = this.wrapCommand(function () { tt.insertUnorderedList(v) }), r.memo("help.insertUnorderedList", h.help.insertUnorderedList), this.indent = this.wrapCommand(function () { tt.indent(v) }), r.memo("help.indent", h.help.indent), this.outdent = this.wrapCommand(function () { tt.outdent(v) }), r.memo("help.outdent", h.help.outdent), this.insertImage = function (n, t) { return g.createImage(n, t).then(function (n) { l(); typeof t == "function" ? t(n) : (typeof t == "string" && n.attr("data-filename", t), n.css("width", Math.min(o.width(), n.width()))); n.show(); u.create(v).insertNode(n[0]); u.createFromNodeAfter(n[0]).select(); a() }).fail(function (n) { r.triggerEvent("image.upload.error", n) }) }, this.insertImages = function (t) { n.each(t, function (n, t) { var i = t.name; s.maximumImageFileSize && s.maximumImageFileSize < t.size ? r.triggerEvent("image.upload.error", h.image.maximumFileSizeError) : g.readFileAsDataURL(t).then(function (n) { return b.insertImage(n, i) }).fail(function () { r.triggerEvent("image.upload.error") }) }) }, this.insertImagesOrCallback = function (n) { var t = s.callbacks; t.onImageUpload ? r.triggerEvent("image.upload", n) : this.insertImages(n) }, this.insertNode = this.wrapCommand(function (n) { var t = this.createRange(); t.insertNode(n); u.createFromNodeAfter(n).select() }), this.insertText = this.wrapCommand(function (n) { var r = this.createRange(), i = r.insertNode(t.createText(n)); u.create(i, t.nodeLength(i)).select() }), this.getSelectedText = function () { var n = this.createRange(); return n.isOnAnchor() && (n = u.createFromNode(t.ancestor(n.sc, t.isAnchor))), n.toString() }, this.pasteHTML = this.wrapCommand(function (n) { var t = this.createRange().pasteHTML(n); u.createFromNodeAfter(i.last(t)).select() }), this.formatBlock = this.wrapCommand(function (n) { n = f.isMSIE ? "<" + n + ">" : n; document.execCommand("FormatBlock", !1, n) }), this.formatPara = function () { this.formatBlock("P") }, r.memo("help.formatPara", h.help.formatPara), c = 1; c <= 6; c++) this["formatH" + c] = function (n) { return function () { this.formatBlock("H" + n) } }(c), r.memo("help.formatH" + c, h.help["formatH" + c]); this.fontSize = function (r) { var e = this.createRange(), s, f; e && e.isCollapsed() ? (s = y.styleNodes(e), f = i.head(s), n(s).css({ "font-size": r + "px" }), f && !t.nodeLength(f) && (f.innerHTML = t.ZERO_WIDTH_NBSP_CHAR, u.createFromNodeAfter(f.firstChild).select(), o.data(p, f))) : (l(), n(y.styleNodes(e)).css({ "font-size": r + "px" }), a()) }; this.insertHorizontalRule = this.wrapCommand(function () { var n = this.createRange().insertNode(t.create("HR")); n.nextSibling && u.create(n.nextSibling, 0).normalize().select() }); r.memo("help.insertHorizontalRule", h.help.insertHorizontalRule); this.removeBogus = function () { var n = o.data(p), r, u; n && (r = i.find(i.from(n.childNodes), t.isText), u = r.nodeValue.indexOf(t.ZERO_WIDTH_NBSP_CHAR), u !== -1 && r.deleteData(u, 1), t.isEmpty(n) && t.remove(n), o.removeData(p)) }; this.lineHeight = this.wrapCommand(function (n) { y.stylePara(this.createRange(), { lineHeight: n }) }); this.unlink = function () { var n = this.createRange(), i; n.isOnAnchor() && (i = t.ancestor(n.sc, t.isAnchor), n = u.createFromNode(i), n.select(), l(), document.execCommand("unlink"), a()) }; this.createLink = this.wrapCommand(function (t) { var r = t.url, o = t.text, a = t.isNewWindow, e = t.range || this.createRange(), v = e.toString() !== o, f, h; typeof r == "string" && (r = r.trim()); s.onCreateLink && (r = s.onCreateLink(r)); f = []; v ? (e = e.deleteContents(), h = e.insertNode(n("<A>" + o + "<\/A>")[0]), f.push(h)) : f = y.styleNodes(e, { nodeName: "A", expandClosestSibling: !0, onlyPartialContains: !0 }); n.each(f, function (t, i) { r = /^[A-Za-z][A-Za-z0-9+-.]*\:[\/\/]?/.test(r) ? r : "http://" + r; n(i).attr("href", r); a ? n(i).attr("target", "_blank") : n(i).removeAttr("target") }); var p = u.createFromNodeBefore(i.head(f)), c = p.getStartPoint(), w = u.createFromNodeAfter(i.last(f)), l = w.getEndPoint(); u.create(c.node, c.offset, l.node, l.offset).select() }); this.getLinkInfo = function () { var u = this.createRange().expand(t.isAnchor), r = n(i.head(u.nodes(t.isAnchor))); return { range: u, text: u.toString(), isNewWindow: r.length ? r.attr("target") === "_blank" : !1, url: r.length ? r.attr("href") : "" } }; this.color = this.wrapCommand(function (n) { var t = n.foreColor, i = n.backColor; t && document.execCommand("foreColor", !1, t); i && document.execCommand("backColor", !1, i) }); this.insertTable = this.wrapCommand(function (n) { var t = n.split("x"), i = this.createRange().deleteContents(); i.insertNode(w.createTable(t[0], t[1], s)) }); this.addRow = function (n) { var t = this.createRange(o); t.isCollapsed() && t.isOnCell() && (l(), w.addRow(t, n), a()) }; this.addCol = function (n) { var t = this.createRange(o); t.isCollapsed() && t.isOnCell() && (l(), w.addCol(t, n), a()) }; this.deleteRow = function () { var n = this.createRange(o); n.isCollapsed() && n.isOnCell() && (l(), w.deleteRow(n), a()) }; this.deleteCol = function () { var n = this.createRange(o); n.isCollapsed() && n.isOnCell() && (l(), w.deleteCol(n), a()) }; this.floatMe = this.wrapCommand(function (t) { var i = n(this.restoreTarget()); i.css("float", t) }); this.resize = this.wrapCommand(function (t) { var i = n(this.restoreTarget()); i.css({ width: t * 100 + "%", height: "" }) }); this.resizeTo = function (n, t, i) { var u, f, r; i ? (f = n.y / n.x, r = t.data("ratio"), u = { width: r > f ? n.x : n.y / r, height: r > f ? n.x * r : n.y }) : u = { width: n.x, height: n.y }; t.css(u) }; this.removeMedia = this.wrapCommand(function () { var t = n(this.restoreTarget()).detach(); r.triggerEvent("media.delete", t, o) }); this.hasFocus = function () { return o.is(":focus") }; this.focus = function () { this.hasFocus() || o.focus() }; this.isEmpty = function () { return t.isEmpty(o[0]) || t.emptyPara === o.html() }; this.empty = function () { r.invoke("code", t.emptyPara) } }, ui = function (r) { var u = this, o = r.layoutInfo.editable; this.events = { "summernote.keydown": function (n, t) { u.needKeydownHook() && (t.ctrlKey || t.metaKey) && t.keyCode === e.code.V && (r.invoke("editor.saveRange"), u.$paste.focus(), setTimeout(function () { u.pasteByHook() }, 0)) } }; this.needKeydownHook = function () { return f.isMSIE && f.browserVersion > 10 || f.isFF }; this.initialize = function () { if (this.needKeydownHook()) { this.$paste = n('<div tabindex="-1" />').attr("contenteditable", !0).css({ position: "absolute", left: -1e5, opacity: 0 }); o.before(this.$paste); this.$paste.on("paste", function (n) { r.triggerEvent("paste", n) }) } else o.on("paste", this.pasteByEvent) }; this.destroy = function () { this.needKeydownHook() && (this.$paste.remove(), this.$paste = null) }; this.pasteByHook = function () { var o = this.$paste[0].firstChild, i, f, e; if (t.isImg(o)) { var h = o.src, u = atob(h.split(",")[1]), s = new Uint8Array(u.length); for (i = 0; i < u.length; i++) s[i] = u.charCodeAt(i); f = new Blob([s], { type: "image/png" }); f.name = "clipboard.png"; r.invoke("editor.restoreRange"); r.invoke("editor.focus"); r.invoke("editor.insertImagesOrCallback", [f]) } else e = n("<div />").html(this.$paste.html()).html(), r.invoke("editor.restoreRange"), r.invoke("editor.focus"), e && r.invoke("editor.pasteHTML", e); this.$paste.empty() }; this.pasteByEvent = function (n) { var t = n.originalEvent.clipboardData, u; t && t.items && t.items.length && (u = i.head(t.items), u.kind === "file" && u.type.indexOf("image/") !== -1 && r.invoke("editor.insertImagesOrCallback", [u.getAsFile()]), r.invoke("editor.afterCommand")) } }, fi = function (t) { var f = n(document), i = t.layoutInfo.editor, o = t.layoutInfo.editable, e = t.options, u = e.langInfo, r = n('<div class="note-dropzone">  <div class="note-dropzone-message"/><\/div>').prependTo(i); this.initialize = function () { if (e.disableDragAndDrop) f.on("drop", function (n) { n.preventDefault() }); else this.attachDragAndDropEvent() }; this.attachDragAndDropEvent = function () { var e = n(), s = r.find(".note-dropzone-message"); f.on("dragenter", function (n) { var f = t.invoke("codeview.isActivated"), o = i.width() > 0 && i.height() > 0; f || e.length || !o || (i.addClass("dragover"), r.width(i.width()), r.height(i.height()), s.text(u.image.dragImageHere)); e = e.add(n.target) }).on("dragleave", function (n) { e = e.not(n.target); e.length || i.removeClass("dragover") }).on("drop", function () { e = n(); i.removeClass("dragover") }); r.on("dragenter", function () { r.addClass("hover"); s.text(u.image.dropImage) }).on("dragleave", function () { r.removeClass("hover"); s.text(u.image.dragImageHere) }); r.on("drop", function (i) { var r = i.originalEvent.dataTransfer; r && r.files && r.files.length ? (i.preventDefault(), o.focus(), t.invoke("editor.insertImagesOrCallback", r.files)) : n.each(r.types, function (i, u) { var f = r.getData(u); u.toLowerCase().indexOf("text") > -1 ? t.invoke("editor.pasteHTML", f) : n(f).each(function () { t.invoke("editor.insertNode", this) }) }) }).on("dragover", !1) } }, v; f.hasCodeMirror && (f.isSupportAmd ? require(["codemirror"], function (n) { v = n }) : v = window.CodeMirror); var ei = function (n) { var e = n.layoutInfo.editor, r = n.layoutInfo.editable, i = n.layoutInfo.codable, u = n.options; this.sync = function () { var n = this.isActivated(); n && f.hasCodeMirror && i.data("cmEditor").save() }; this.isActivated = function () { return e.hasClass("codeview") }; this.toggle = function () { this.isActivated() ? this.deactivate() : this.activate(); n.triggerEvent("codeview.toggled") }; this.activate = function () { var o, s; if (i.val(t.html(r, u.prettifyHtml)), i.height(r.height()), n.invoke("toolbar.updateCodeview", !0), e.addClass("codeview"), i.focus(), f.hasCodeMirror) { if (o = v.fromTextArea(i[0], u.codemirror), u.codemirror.tern) { s = new v.TernServer(u.codemirror.tern); o.ternServer = s; o.on("cursorActivity", function (n) { s.updateArgHints(n) }) } o.setSize(null, r.outerHeight()); i.data("cmEditor", o) } }; this.deactivate = function () { var o, s, h; f.hasCodeMirror && (o = i.data("cmEditor"), i.val(o.getValue()), o.toTextArea()); s = t.value(i, u.prettifyHtml) || t.emptyPara; h = r.html() !== s; r.html(s); r.height(u.height ? i.height() : "auto"); e.removeClass("codeview"); h && n.triggerEvent("change", r.html(), r); r.focus(); n.invoke("toolbar.updateCodeview", !1) }; this.destroy = function () { this.isActivated() && this.deactivate() } }, oi = 24, si = function (t) { var r = n(document), u = t.layoutInfo.statusbar, f = t.layoutInfo.editable, i = t.options; this.initialize = function () { if (!i.airMode && !i.disableResizeEditor) u.on("mousedown", function (n) { n.preventDefault(); n.stopPropagation(); var t = f.offset().top - r.scrollTop(); r.on("mousemove", function (n) { var r = n.clientY - (t + oi); r = i.minheight > 0 ? Math.max(r, i.minheight) : r; r = i.maxHeight > 0 ? Math.min(r, i.maxHeight) : r; f.height(r) }).one("mouseup", function () { r.off("mousemove") }) }) }; this.destroy = function () { u.off(); u.remove() } }, hi = function (t) { var f = t.layoutInfo.editor, o = t.layoutInfo.toolbar, i = t.layoutInfo.editable, r = t.layoutInfo.codable, u = n(window), e = n("html, body"); this.toggle = function () { var n = function (n) { i.css("height", n.h); r.css("height", n.h); r.data("cmeditor") && r.data("cmeditor").setsize(null, n.h) }; f.toggleClass("fullscreen"); this.isFullscreen() ? (i.data("orgHeight", i.css("height")), u.on("resize", function () { n({ h: u.height() - o.outerHeight() }) }).trigger("resize"), e.css("overflow", "hidden")) : (u.off("resize"), n({ h: i.data("orgHeight") }), e.css("overflow", "visible")); t.invoke("toolbar.updateFullscreen", this.isFullscreen()) }; this.isFullscreen = function () { return f.hasClass("fullscreen") } }, ci = function (i) { var r = this, u = n(document), e = i.layoutInfo.editingArea, f = i.options; this.events = { "summernote.mousedown": function (n, t) { r.update(t.target) && t.preventDefault() }, "summernote.keyup summernote.scroll summernote.change summernote.dialog.shown": function () { r.update() } }; this.initialize = function () { this.$handle = n(['<div class="note-handle">', '<div class="note-control-selection">', '<div class="note-control-selection-bg"><\/div>', '<div class="note-control-holder note-control-nw"><\/div>', '<div class="note-control-holder note-control-ne"><\/div>', '<div class="note-control-holder note-control-sw"><\/div>', '<div class="', f.disableResizeImage ? "note-control-holder" : "note-control-sizing", ' note-control-se"><\/div>', f.disableResizeImage ? "" : '<div class="note-control-selection-info"><\/div>', "<\/div>", "<\/div>"].join("")).prependTo(e); this.$handle.on("mousedown", function (n) { if (t.isControlSizing(n.target)) { n.preventDefault(); n.stopPropagation(); var f = r.$handle.find(".note-control-selection").data("target"), e = f.offset(), o = u.scrollTop(); u.on("mousemove", function (n) { i.invoke("editor.resizeTo", { x: n.clientX - e.left, y: n.clientY - (e.top - o) }, f, !n.shiftKey); r.update(f[0]) }).one("mouseup", function (n) { n.preventDefault(); u.off("mousemove"); i.invoke("editor.afterCommand") }); f.data("ratio") || f.data("ratio", f.height() / f.width()) } }) }; this.destroy = function () { this.$handle.remove() }; this.update = function (r) { var e, o, h; if (t.isCell(r)) { i.invoke("tablePopover.update", r); return } if (i.invoke("tablePopover.hide", r), e = t.isImg(r), o = this.$handle.find(".note-control-selection"), i.invoke("imagePopover.update", r), e) { var u = n(r), s = u.position(), f = { w: u.outerWidth(!0), h: u.outerHeight(!0) }; o.css({ display: "block", left: s.left, top: s.top, width: f.w, height: f.h }).data("target", u); h = f.w + "x" + f.h; o.find(".note-control-selection-info").text(h); i.invoke("editor.saveTarget", r) } else this.hide(); return e }; this.hide = function () { i.invoke("editor.clearTarget"); this.$handle.children().hide() } }, li = function (t) { var r = this, u = "http://", f = /^([A-Za-z][A-Za-z0-9+-.]*\:[\/\/]?|mailto:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i; this.events = { "summernote.keyup": function (n, t) { t.isDefaultPrevented() || r.handleKeyup(t) }, "summernote.keydown": function (n, t) { r.handleKeydown(t) } }; this.initialize = function () { this.lastWordRange = null }; this.destroy = function () { this.lastWordRange = null }; this.replace = function () { var i, r, e, o; this.lastWordRange && (i = this.lastWordRange.toString(), r = i.match(f), r && (r[1] || r[2]) && (e = r[1] ? i : u + i, o = n("<a />").html(i).attr("href", e)[0], this.lastWordRange.insertNode(o), this.lastWordRange = null, t.invoke("editor.focus"))) }; this.handleKeydown = function (n) { if (i.contains([e.code.ENTER, e.code.SPACE], n.keyCode)) { var r = t.invoke("editor.createRange").getWordRange(); this.lastWordRange = r } }; this.handleKeyup = function (n) { i.contains([e.code.ENTER, e.code.SPACE], n.keyCode) && this.replace() } }, ai = function (n) { var i = n.layoutInfo.note; this.events = { "summernote.change": function () { i.val(n.invoke("code")) } }; this.shouldInitialize = function () { return t.isTextarea(i[0]) } }, vi = function (t) { var i = this, u = t.layoutInfo.editingArea, r = t.options; this.events = { "summernote.init summernote.change": function () { i.update() }, "summernote.codeview.toggled": function () { i.update() } }; this.shouldInitialize = function () { return !!r.placeholder }; this.initialize = function () { this.$placeholder = n('<div class="note-placeholder">'); this.$placeholder.on("click", function () { t.invoke("focus") }).text(r.placeholder).prependTo(u) }; this.destroy = function () { this.$placeholder.remove() }; this.update = function () { var n = !t.invoke("codeview.isActivated") && t.invoke("editor.isEmpty"); this.$placeholder.toggle(n) } }, yi = function (t) { var h = this, u = n.summernote.ui, c = t.layoutInfo.toolbar, e = t.options, o = e.langInfo, l = r.invertObject(e.keyMap[f.isMac ? "mac" : "pc"]), s = this.representShortcut = function (n) { var t = l[n]; return !e.shortcuts || !t ? "" : (f.isMac && (t = t.replace("CMD", "⌘").replace("SHIFT", "⇧")), t = t.replace("BACKSLASH", "\\").replace("SLASH", "/").replace("LEFTBRACKET", "[").replace("RIGHTBRACKET", "]"), " (" + t + ")") }; this.initialize = function () { this.addToolbarButtons(); this.addImagePopoverButtons(); this.addLinkPopoverButtons(); this.addTablePopoverButtons(); this.fontInstalledMap = {} }; this.destroy = function () { delete this.fontInstalledMap }; this.isFontInstalled = function (n) { return h.fontInstalledMap.hasOwnProperty(n) || (h.fontInstalledMap[n] = f.isFontInstalled(n) || i.contains(e.fontNamesIgnoreCheck, n)), h.fontInstalledMap[n] }; this.addToolbarButtons = function () { t.memo("button.style", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: u.icon(e.icons.magic) + " " + u.icon(e.icons.caret, "span"), tooltip: o.style.style, data: { toggle: "dropdown" } }), u.dropdown({ className: "dropdown-style", items: t.options.styleTags, template: function (n) { typeof n == "string" && (n = { tag: n, title: o.style.hasOwnProperty(n) ? o.style[n] : n }); var t = n.tag, i = n.title, r = n.style ? ' style="' + n.style + '" ' : "", u = n.className ? ' class="' + n.className + '"' : ""; return "<" + t + r + u + ">" + i + "<\/" + t + ">" }, click: t.createInvokeHandler("editor.formatBlock") })]).render() }); t.memo("button.bold", function () { return u.button({ className: "note-btn-bold", contents: u.icon(e.icons.bold), tooltip: o.font.bold + s("bold"), click: t.createInvokeHandler("editor.bold") }).render() }); t.memo("button.italic", function () { return u.button({ className: "note-btn-italic", contents: u.icon(e.icons.italic), tooltip: o.font.italic + s("italic"), click: t.createInvokeHandler("editor.italic") }).render() }); t.memo("button.underline", function () { return u.button({ className: "note-btn-underline", contents: u.icon(e.icons.underline), tooltip: o.font.underline + s("underline"), click: t.createInvokeHandler("editor.underline") }).render() }); t.memo("button.clear", function () { return u.button({ contents: u.icon(e.icons.eraser), tooltip: o.font.clear + s("removeFormat"), click: t.createInvokeHandler("editor.removeFormat") }).render() }); t.memo("button.strikethrough", function () { return u.button({ className: "note-btn-strikethrough", contents: u.icon(e.icons.strikethrough), tooltip: o.font.strikethrough + s("strikethrough"), click: t.createInvokeHandler("editor.strikethrough") }).render() }); t.memo("button.superscript", function () { return u.button({ className: "note-btn-superscript", contents: u.icon(e.icons.superscript), tooltip: o.font.superscript, click: t.createInvokeHandler("editor.superscript") }).render() }); t.memo("button.subscript", function () { return u.button({ className: "note-btn-subscript", contents: u.icon(e.icons.subscript), tooltip: o.font.subscript, click: t.createInvokeHandler("editor.subscript") }).render() }); t.memo("button.fontname", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: '<span class="note-current-fontname"/> ' + u.icon(e.icons.caret, "span"), tooltip: o.font.name, data: { toggle: "dropdown" } }), u.dropdownCheck({ className: "dropdown-fontname", checkClassName: e.icons.menuCheck, items: e.fontNames.filter(h.isFontInstalled), template: function (n) { return '<span style="font-family:' + n + '">' + n + "<\/span>" }, click: t.createInvokeHandler("editor.fontName") })]).render() }); t.memo("button.fontsize", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: '<span class="note-current-fontsize"/>' + u.icon(e.icons.caret, "span"), tooltip: o.font.size, data: { toggle: "dropdown" } }), u.dropdownCheck({ className: "dropdown-fontsize", checkClassName: e.icons.menuCheck, items: e.fontSizes, click: t.createInvokeHandler("editor.fontSize") })]).render() }); t.memo("button.color", function () { return u.buttonGroup({ className: "note-color", children: [u.button({ className: "note-current-color-button", contents: u.icon(e.icons.font + " note-recent-color"), tooltip: o.color.recent, click: function (i) { var r = n(i.currentTarget); t.invoke("editor.color", { backColor: r.attr("data-backColor"), foreColor: r.attr("data-foreColor") }) }, callback: function (n) { var t = n.find(".note-recent-color"); t.css("background-color", "#FFFF00"); n.attr("data-backColor", "#FFFF00") } }), u.button({ className: "dropdown-toggle", contents: u.icon(e.icons.caret, "span"), tooltip: o.color.more, data: { toggle: "dropdown" } }), u.dropdown({ items: ["<li>", '<div class="btn-group">', '  <div class="note-palette-title">' + o.color.background + "<\/div>", "  <div>", '    <button type="button" class="note-color-reset btn btn-default" data-event="backColor" data-value="inherit">', o.color.transparent, "    <\/button>", "  <\/div>", '  <div class="note-holder" data-event="backColor"/>', "<\/div>", '<div class="btn-group">', '  <div class="note-palette-title">' + o.color.foreground + "<\/div>", "  <div>", '    <button type="button" class="note-color-reset btn btn-default" data-event="removeFormat" data-value="foreColor">', o.color.resetToDefault, "    <\/button>", "  <\/div>", '  <div class="note-holder" data-event="foreColor"/>', "<\/div>", "<\/li>"].join(""), callback: function (t) { t.find(".note-holder").each(function () { var t = n(this); t.append(u.palette({ colors: e.colors, eventName: t.data("event") }).render()) }) }, click: function (i) { var r = n(i.target), u = r.data("event"), f = r.data("value"); if (u && f) { var e = u === "backColor" ? "background-color" : "color", o = r.closest(".note-color").find(".note-recent-color"), s = r.closest(".note-color").find(".note-current-color-button"); o.css(e, f); s.attr("data-" + u, f); t.invoke("editor." + u, f) } } })] }).render() }); t.memo("button.ul", function () { return u.button({ contents: u.icon(e.icons.unorderedlist), tooltip: o.lists.unordered + s("insertUnorderedList"), click: t.createInvokeHandler("editor.insertUnorderedList") }).render() }); t.memo("button.ol", function () { return u.button({ contents: u.icon(e.icons.orderedlist), tooltip: o.lists.ordered + s("insertOrderedList"), click: t.createInvokeHandler("editor.insertOrderedList") }).render() }); var i = u.button({ contents: u.icon(e.icons.alignLeft), tooltip: o.paragraph.left + s("justifyLeft"), click: t.createInvokeHandler("editor.justifyLeft") }), f = u.button({ contents: u.icon(e.icons.alignCenter), tooltip: o.paragraph.center + s("justifyCenter"), click: t.createInvokeHandler("editor.justifyCenter") }), c = u.button({ contents: u.icon(e.icons.alignRight), tooltip: o.paragraph.right + s("justifyRight"), click: t.createInvokeHandler("editor.justifyRight") }), l = u.button({ contents: u.icon(e.icons.alignJustify), tooltip: o.paragraph.justify + s("justifyFull"), click: t.createInvokeHandler("editor.justifyFull") }), a = u.button({ contents: u.icon(e.icons.outdent), tooltip: o.paragraph.outdent + s("outdent"), click: t.createInvokeHandler("editor.outdent") }), v = u.button({ contents: u.icon(e.icons.indent), tooltip: o.paragraph.indent + s("indent"), click: t.createInvokeHandler("editor.indent") }); t.memo("button.justifyLeft", r.invoke(i, "render")); t.memo("button.justifyCenter", r.invoke(f, "render")); t.memo("button.justifyRight", r.invoke(c, "render")); t.memo("button.justifyFull", r.invoke(l, "render")); t.memo("button.outdent", r.invoke(a, "render")); t.memo("button.indent", r.invoke(v, "render")); t.memo("button.paragraph", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: u.icon(e.icons.alignLeft) + " " + u.icon(e.icons.caret, "span"), tooltip: o.paragraph.paragraph, data: { toggle: "dropdown" } }), u.dropdown([u.buttonGroup({ className: "note-align", children: [i, f, c, l] }), u.buttonGroup({ className: "note-list", children: [a, v] })])]).render() }); t.memo("button.height", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: u.icon(e.icons.textHeight) + " " + u.icon(e.icons.caret, "span"), tooltip: o.font.height, data: { toggle: "dropdown" } }), u.dropdownCheck({ items: e.lineHeights, checkClassName: e.icons.menuCheck, className: "dropdown-line-height", click: t.createInvokeHandler("editor.lineHeight") })]).render() }); t.memo("button.table", function () { return u.buttonGroup([u.button({ className: "dropdown-toggle", contents: u.icon(e.icons.table) + " " + u.icon(e.icons.caret, "span"), tooltip: o.table.table, data: { toggle: "dropdown" } }), u.dropdown({ className: "note-table", items: '<div class="note-dimension-picker">  <div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>  <div class="note-dimension-picker-highlighted"/>  <div class="note-dimension-picker-unhighlighted"/><\/div><div class="note-dimension-display">1 x 1<\/div>' })], { callback: function (n) { var i = n.find(".note-dimension-picker-mousecatcher"); i.css({ width: e.insertTableMaxSize.col + "em", height: e.insertTableMaxSize.row + "em" }).mousedown(t.createInvokeHandler("editor.insertTable")).on("mousemove", h.tableMoveHandler) } }).render() }); t.memo("button.link", function () { return u.button({ contents: u.icon(e.icons.link), tooltip: o.link.link + s("linkDialog.show"), click: t.createInvokeHandler("linkDialog.show") }).render() }); t.memo("button.picture", function () { return u.button({ contents: u.icon(e.icons.picture), tooltip: o.image.image, click: t.createInvokeHandler("imageDialog.show") }).render() }); t.memo("button.video", function () { return u.button({ contents: u.icon(e.icons.video), tooltip: o.video.video, click: t.createInvokeHandler("videoDialog.show") }).render() }); t.memo("button.hr", function () { return u.button({ contents: u.icon(e.icons.minus), tooltip: o.hr.insert + s("insertHorizontalRule"), click: t.createInvokeHandler("editor.insertHorizontalRule") }).render() }); t.memo("button.fullscreen", function () { return u.button({ className: "btn-fullscreen", contents: u.icon(e.icons.arrowsAlt), tooltip: o.options.fullscreen, click: t.createInvokeHandler("fullscreen.toggle") }).render() }); t.memo("button.codeview", function () { return u.button({ className: "btn-codeview", contents: u.icon(e.icons.code), tooltip: o.options.codeview, click: t.createInvokeHandler("codeview.toggle") }).render() }); t.memo("button.redo", function () { return u.button({ contents: u.icon(e.icons.redo), tooltip: o.history.redo + s("redo"), click: t.createInvokeHandler("editor.redo") }).render() }); t.memo("button.undo", function () { return u.button({ contents: u.icon(e.icons.undo), tooltip: o.history.undo + s("undo"), click: t.createInvokeHandler("editor.undo") }).render() }); t.memo("button.help", function () { return u.button({ contents: u.icon(e.icons.question), tooltip: o.options.help, click: t.createInvokeHandler("helpDialog.show") }).render() }) }; this.addImagePopoverButtons = function () { t.memo("button.imageSize100", function () { return u.button({ contents: '<span class="note-fontsize-10">100%<\/span>', tooltip: o.image.resizeFull, click: t.createInvokeHandler("editor.resize", "1") }).render() }); t.memo("button.imageSize50", function () { return u.button({ contents: '<span class="note-fontsize-10">50%<\/span>', tooltip: o.image.resizeHalf, click: t.createInvokeHandler("editor.resize", "0.5") }).render() }); t.memo("button.imageSize25", function () { return u.button({ contents: '<span class="note-fontsize-10">25%<\/span>', tooltip: o.image.resizeQuarter, click: t.createInvokeHandler("editor.resize", "0.25") }).render() }); t.memo("button.floatLeft", function () { return u.button({ contents: u.icon(e.icons.alignLeft), tooltip: o.image.floatLeft, click: t.createInvokeHandler("editor.floatMe", "left") }).render() }); t.memo("button.floatRight", function () { return u.button({ contents: u.icon(e.icons.alignRight), tooltip: o.image.floatRight, click: t.createInvokeHandler("editor.floatMe", "right") }).render() }); t.memo("button.floatNone", function () { return u.button({ contents: u.icon(e.icons.alignJustify), tooltip: o.image.floatNone, click: t.createInvokeHandler("editor.floatMe", "none") }).render() }); t.memo("button.removeMedia", function () { return u.button({ contents: u.icon(e.icons.trash), tooltip: o.image.remove, click: t.createInvokeHandler("editor.removeMedia") }).render() }) }; this.addLinkPopoverButtons = function () { t.memo("button.linkDialogShow", function () { return u.button({ contents: u.icon(e.icons.link), tooltip: o.link.edit, click: t.createInvokeHandler("linkDialog.show") }).render() }); t.memo("button.unlink", function () { return u.button({ contents: u.icon(e.icons.unlink), tooltip: o.link.unlink, click: t.createInvokeHandler("editor.unlink") }).render() }) }; this.addTablePopoverButtons = function () { t.memo("button.addRowUp", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowUp), tooltip: "Add row before", click: t.createInvokeHandler("editor.addRow", "top") }).render() }); t.memo("button.addRowDown", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowDown), tooltip: "Add row after", click: t.createInvokeHandler("editor.addRow", "bottom") }).render() }); t.memo("button.addColLeft", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowLeft), tooltip: "Add column  left", click: t.createInvokeHandler("editor.addCol", "left") }).render() }); t.memo("button.addColRight", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowRight), tooltip: "Add column right", click: t.createInvokeHandler("editor.addCol", "right") }).render() }); t.memo("button.deleteRow", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowsH), tooltip: "delete row", click: t.createInvokeHandler("editor.deleteRow") }).render() }); t.memo("button.deleteCol", function () { return u.button({ className: "btn-md", contents: u.icon(e.icons.arrowsV), tooltip: "delete col", click: t.createInvokeHandler("editor.deleteCol") }).render() }) }; this.build = function (n, i) { for (var e, l, r, f = 0, o = i.length; f < o; f++) { var s = i[f], a = s[0], h = s[1], c = u.buttonGroup({ className: "note-" + a }).render(); for (e = 0, l = h.length; e < l; e++) r = t.memo("button." + h[e]), r && c.append(typeof r == "function" ? r(t) : r); c.appendTo(n) } }; this.updateCurrentStyle = function () { var r = t.invoke("editor.currentStyle"), e, u, f, o; this.updateBtnStates({ ".note-btn-bold": function () { return r["font-bold"] === "bold" }, ".note-btn-italic": function () { return r["font-italic"] === "italic" }, ".note-btn-underline": function () { return r["font-underline"] === "underline" }, ".note-btn-subscript": function () { return r["font-subscript"] === "subscript" }, ".note-btn-superscript": function () { return r["font-superscript"] === "superscript" }, ".note-btn-strikethrough": function () { return r["font-strikethrough"] === "strikethrough" } }); r["font-family"] && (e = r["font-family"].split(",").map(function (n) { return n.replace(/[\'\"]/g, "").replace(/\s+$/, "").replace(/^\s+/, "") }), u = i.find(e, h.isFontInstalled), c.find(".dropdown-fontname li a").each(function () { var t = n(this).data("value") + "" == u + ""; this.className = t ? "checked" : "" }), c.find(".note-current-fontname").text(u)); r["font-size"] && (f = r["font-size"], c.find(".dropdown-fontsize li a").each(function () { var t = n(this).data("value") + "" == f + ""; this.className = t ? "checked" : "" }), c.find(".note-current-fontsize").text(f)); r["line-height"] && (o = r["line-height"], c.find(".dropdown-line-height li a").each(function () { var t = n(this).data("value") + "" == o + ""; this.className = t ? "checked" : "" })) }; this.updateBtnStates = function (t) { n.each(t, function (n, t) { u.toggleBtnActive(c.find(n), t()) }) }; this.tableMoveHandler = function (t) { var o = 18, r = n(t.target.parentNode), h = r.next(), c = r.find(".note-dimension-picker-mousecatcher"), l = r.find(".note-dimension-picker-highlighted"), s = r.find(".note-dimension-picker-unhighlighted"), u, f, i; t.offsetX === undefined ? (f = n(t.target).offset(), u = { x: t.pageX - f.left, y: t.pageY - f.top }) : u = { x: t.offsetX, y: t.offsetY }; i = { c: Math.ceil(u.x / o) || 1, r: Math.ceil(u.y / o) || 1 }; l.css({ width: i.c + "em", height: i.r + "em" }); c.data("value", i.c + "x" + i.r); 3 < i.c && i.c < e.insertTableMaxSize.col && s.css({ width: i.c + 1 + "em" }); 3 < i.r && i.r < e.insertTableMaxSize.row && s.css({ height: i.r + 1 + "em" }); h.html(i.c + " x " + i.r) } }, pi = function (t) { var u = n.summernote.ui, f = t.layoutInfo.note, i = t.layoutInfo.toolbar, r = t.options; this.shouldInitialize = function () { return !r.airMode }; this.initialize = function () { r.toolbar = r.toolbar || []; r.toolbar.length ? t.invoke("buttons.build", i, r.toolbar) : i.hide(); r.toolbarContainer && i.appendTo(r.toolbarContainer); f.on("summernote.keyup summernote.mouseup summernote.change", function () { t.invoke("buttons.updateCurrentStyle") }); t.invoke("buttons.updateCurrentStyle") }; this.destroy = function () { i.children().remove() }; this.updateFullscreen = function (n) { u.toggleBtnActive(i.find(".btn-fullscreen"), n) }; this.updateCodeview = function (n) { u.toggleBtnActive(i.find(".btn-codeview"), n); n ? this.deactivate() : this.activate() }; this.activate = function (n) { var t = i.find("button"); n || (t = t.not(".btn-codeview")); u.toggleBtn(t, !0) }; this.deactivate = function (n) { var t = i.find("button"); n || (t = t.not(".btn-codeview")); u.toggleBtn(t, !1) } }, wi = function (t) { var i = this, r = n.summernote.ui, o = t.layoutInfo.editor, u = t.options, f = u.langInfo; this.initialize = function () { var t = u.dialogsInBody ? n(document.body) : o, i = '<div class="form-group"><label>' + f.link.textToDisplay + '<\/label><input class="note-link-text form-control" type="text" /><\/div><div class="form-group"><label>' + f.link.url + '<\/label><input class="note-link-url form-control" type="text" value="http://" /><\/div>' + (u.disableLinkTarget ? "" : '<div class="checkbox"><label><input type="checkbox" checked> ' + f.link.openInNewWindow + "<\/label><\/div>"), e = '<button href="#" class="btn btn-primary note-link-btn disabled" disabled>' + f.link.insert + "<\/button>"; this.$dialog = r.dialog({ className: "link-dialog", title: f.link.insert, fade: u.dialogsFade, body: i, footer: e }).render().appendTo(t) }; this.destroy = function () { r.hideDialog(this.$dialog); this.$dialog.remove() }; this.bindEnterKey = function (n, t) { n.on("keypress", function (n) { n.keyCode === e.code.ENTER && t.trigger("click") }) }; this.showLinkDialog = function (u) { return n.Deferred(function (n) { var f = i.$dialog.find(".note-link-text"), e = i.$dialog.find(".note-link-url"), o = i.$dialog.find(".note-link-btn"), s = i.$dialog.find("input[type=checkbox]"); r.onDialogShown(i.$dialog, function () { t.triggerEvent("dialog.shown"); u.url || (u.url = u.text); f.val(u.text); f.on("input", function () { r.toggleBtn(o, f.val() && e.val()); u.text = f.val() }); e.on("input", function () { r.toggleBtn(o, f.val() && e.val()); u.text || f.val(e.val()) }).val(u.url).trigger("focus"); r.toggleBtn(o, f.val() && e.val()); i.bindEnterKey(e, o); i.bindEnterKey(f, o); s.prop("checked", u.isNewWindow); o.one("click", function (t) { t.preventDefault(); n.resolve({ range: u.range, url: e.val(), text: f.val(), isNewWindow: s.is(":checked") }); i.$dialog.modal("hide") }) }); r.onDialogHidden(i.$dialog, function () { f.off("input keypress"); e.off("input keypress"); o.off("click"); n.state() === "pending" && n.reject() }); r.showDialog(i.$dialog) }).promise() }; this.show = function () { var n = t.invoke("editor.getLinkInfo"); t.invoke("editor.saveRange"); this.showLinkDialog(n).then(function (n) { t.invoke("editor.restoreRange"); t.invoke("editor.createLink", n) }).fail(function () { t.invoke("editor.restoreRange") }) }; t.memo("help.linkDialog.show", u.langInfo.help["linkDialog.show"]) }, bi = function (r) { var u = this, e = n.summernote.ui, f = r.options; this.events = { "summernote.keyup summernote.mouseup summernote.change summernote.scroll": function () { u.update() }, "summernote.dialog.shown": function () { u.hide() } }; this.shouldInitialize = function () { return !i.isEmpty(f.popover.link) }; this.initialize = function () { this.$popover = e.popover({ className: "note-link-popover", callback: function (n) { var t = n.find(".popover-content"); t.prepend('<span><a target="_blank"><\/a>&nbsp;<\/span>') } }).render().appendTo("body"); var n = this.$popover.find(".popover-content"); r.invoke("buttons.build", n, f.popover.link) }; this.destroy = function () { this.$popover.remove() }; this.update = function () { var i, u, f, e; if (!r.invoke("editor.hasFocus")) { this.hide(); return } i = r.invoke("editor.createRange"); i.isCollapsed() && i.isOnAnchor() ? (u = t.ancestor(i.sc, t.isAnchor), f = n(u).attr("href"), this.$popover.find("a").attr("href", f).html(f), e = t.posFromPlaceholder(u), this.$popover.css({ display: "block", left: e.left, top: e.top })) : this.hide() }; this.hide = function () { this.$popover.hide() } }, ki = function (t) { var i = this, r = n.summernote.ui, o = t.layoutInfo.editor, u = t.options, f = u.langInfo; this.initialize = function () { var c = u.dialogsInBody ? n(document.body) : o, i = "", t, e, s, h; u.maximumImageFileSize && (t = Math.floor(Math.log(u.maximumImageFileSize) / Math.log(1024)), e = (u.maximumImageFileSize / Math.pow(1024, t)).toFixed(2) * 1 + " " + " KMGTP"[t] + "B", i = "<small>" + f.image.maximumFileSize + " : " + e + "<\/small>"); s = '<div class="form-group note-group-select-from-files"><label>' + f.image.selectFromFiles + '<\/label><input class="note-image-input form-control" type="file" name="files" accept="image/*" multiple="multiple" />' + i + '<\/div><div class="form-group note-group-image-url" style="overflow:auto;"><label>' + f.image.url + '<\/label><input class="note-image-url form-control col-md-12" type="text" /><\/div>'; h = '<button href="#" class="btn btn-primary note-image-btn disabled" disabled>' + f.image.insert + "<\/button>"; this.$dialog = r.dialog({ title: f.image.insert, fade: u.dialogsFade, body: s, footer: h }).render().appendTo(c) }; this.destroy = function () { r.hideDialog(this.$dialog); this.$dialog.remove() }; this.bindEnterKey = function (n, t) { n.on("keypress", function (n) { n.keyCode === e.code.ENTER && t.trigger("click") }) }; this.show = function () { t.invoke("editor.saveRange"); this.showImageDialog().then(function (n) { r.hideDialog(i.$dialog); t.invoke("editor.restoreRange"); typeof n == "string" ? t.invoke("editor.insertImage", n) : t.invoke("editor.insertImagesOrCallback", n) }).fail(function () { t.invoke("editor.restoreRange") }) }; this.showImageDialog = function () { return n.Deferred(function (n) { var e = i.$dialog.find(".note-image-input"), u = i.$dialog.find(".note-image-url"), f = i.$dialog.find(".note-image-btn"); r.onDialogShown(i.$dialog, function () { t.triggerEvent("dialog.shown"); e.replaceWith(e.clone().on("change", function () { n.resolve(this.files || this.value) }).val("")); f.click(function (t) { t.preventDefault(); n.resolve(u.val()) }); u.on("keyup paste", function () { var n = u.val(); r.toggleBtn(f, n) }).val("").trigger("focus"); i.bindEnterKey(u, f) }); r.onDialogHidden(i.$dialog, function () { e.off("change"); u.off("keyup paste keypress"); f.off("click"); n.state() === "pending" && n.reject() }); r.showDialog(i.$dialog) }) } }, di = function (r) { var f = n.summernote.ui, u = r.options; this.shouldInitialize = function () { return !i.isEmpty(u.popover.image) }; this.initialize = function () { this.$popover = f.popover({ className: "note-image-popover" }).render().appendTo("body"); var n = this.$popover.find(".popover-content"); r.invoke("buttons.build", n, u.popover.image) }; this.destroy = function () { this.$popover.remove() }; this.update = function (n) { if (t.isImg(n)) { var i = t.posFromPlaceholder(n); this.$popover.css({ display: "block", left: i.left, top: i.top }) } else this.hide() }; this.hide = function () { this.$popover.hide() } }, gi = function (r) { var f = n.summernote.ui, u = r.options; this.shouldInitialize = function () { return !i.isEmpty(u.popover.table) }; this.initialize = function () { this.$popover = f.popover({ className: "note-table-popover" }).render().appendTo("body"); var n = this.$popover.find(".popover-content"); r.invoke("buttons.build", n, u.popover.table) }; this.destroy = function () { this.$popover.remove() }; this.update = function (n) { if (t.isCell(n)) { var i = t.posFromPlaceholder(n); this.$popover.css({ display: "block", left: i.left, top: i.top }) } else this.hide() }; this.hide = function () { this.$popover.hide() } }, nr = function (t) { var i = this, r = n.summernote.ui, o = t.layoutInfo.editor, f = t.options, u = f.langInfo; this.initialize = function () { var t = f.dialogsInBody ? n(document.body) : o, i = '<div class="form-group row-fluid"><label>' + u.video.url + ' <small class="text-muted">' + u.video.providers + '<\/small><\/label><input class="note-video-url form-control span12" type="text" /><\/div>', e = '<button href="#" class="btn btn-primary note-video-btn disabled" disabled>' + u.video.insert + "<\/button>"; this.$dialog = r.dialog({ title: u.video.insert, fade: f.dialogsFade, body: i, footer: e }).render().appendTo(t) }; this.destroy = function () { r.hideDialog(this.$dialog); this.$dialog.remove() }; this.bindEnterKey = function (n, t) { n.on("keypress", function (n) { n.keyCode === e.code.ENTER && t.trigger("click") }) }; this.createVideoNode = function (t) { var r = t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/), u = t.match(/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/), f = t.match(/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/), e = t.match(/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/), o = t.match(/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/), s = t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/), c = t.match(/^.+.(mp4|m4v)$/), l = t.match(/^.+.(ogg|ogv)$/), a = t.match(/^.+.(webm)$/), i, h; if (r && r[1].length === 11) h = r[1], i = n("<iframe>").attr("frameborder", 0).attr("src", "//www.youtube.com/embed/" + h).attr("width", "640").attr("height", "360"); else if (u && u[0].length) i = n("<iframe>").attr("frameborder", 0).attr("src", "https://instagram.com/p/" + u[1] + "/embed/").attr("width", "612").attr("height", "710").attr("scrolling", "no").attr("allowtransparency", "true"); else if (f && f[0].length) i = n("<iframe>").attr("frameborder", 0).attr("src", f[0] + "/embed/simple").attr("width", "600").attr("height", "600").attr("class", "vine-embed"); else if (e && e[3].length) i = n("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder", 0).attr("src", "//player.vimeo.com/video/" + e[3]).attr("width", "640").attr("height", "360"); else if (o && o[2].length) i = n("<iframe>").attr("frameborder", 0).attr("src", "//www.dailymotion.com/embed/video/" + o[2]).attr("width", "640").attr("height", "360"); else if (s && s[1].length) i = n("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder", 0).attr("height", "498").attr("width", "510").attr("src", "//player.youku.com/embed/" + s[1]); else if (c || l || a) i = n("<video controls>").attr("src", t).attr("width", "640").attr("height", "360"); else return !1; return i.addClass("note-video-clip"), i[0] }; this.show = function () { var n = t.invoke("editor.getSelectedText"); t.invoke("editor.saveRange"); this.showVideoDialog(n).then(function (n) { r.hideDialog(i.$dialog); t.invoke("editor.restoreRange"); var u = i.createVideoNode(n); u && t.invoke("editor.insertNode", u) }).fail(function () { t.invoke("editor.restoreRange") }) }; this.showVideoDialog = function (u) { return n.Deferred(function (n) { var f = i.$dialog.find(".note-video-url"), e = i.$dialog.find(".note-video-btn"); r.onDialogShown(i.$dialog, function () { t.triggerEvent("dialog.shown"); f.val(u).on("input", function () { r.toggleBtn(e, f.val()) }).trigger("focus"); e.click(function (t) { t.preventDefault(); n.resolve(f.val()) }); i.bindEnterKey(f, e) }); r.onDialogHidden(i.$dialog, function () { f.off("input"); e.off("click"); n.state() === "pending" && n.reject() }); r.showDialog(i.$dialog) }) } }, tr = function (t) { var u = this, i = n.summernote.ui, e = t.layoutInfo.editor, r = t.options, o = r.langInfo; this.createShortCutList = function () { var i = r.keyMap[f.isMac ? "mac" : "pc"]; return Object.keys(i).map(function (r) { var u = i[r], f = n('<div><div class="help-list-item"/><\/div>'); return f.append(n("<label><kbd>" + r + "<\/kdb><\/label>").css({ width: 180, "margin-right": 10 })).append(n("<span/>").html(t.memo("help." + u) || u)), f.html() }).join("") }; this.initialize = function () { var t = r.dialogsInBody ? n(document.body) : e, u = '<p class="text-center"><a href="http://summernote.org/" target="_blank">Summernote 0.8.2<\/a> · <a href="https://github.com/summernote/summernote" target="_blank">Project<\/a> · <a href="https://github.com/summernote/summernote/issues" target="_blank">Issues<\/a><\/p>'; this.$dialog = i.dialog({ title: o.options.help, fade: r.dialogsFade, body: this.createShortCutList(), footer: u, callback: function (n) { n.find(".modal-body").css({ "max-height": 300, overflow: "scroll" }) } }).render().appendTo(t) }; this.destroy = function () { i.hideDialog(this.$dialog); this.$dialog.remove() }; this.showHelpDialog = function () { return n.Deferred(function (n) { i.onDialogShown(u.$dialog, function () { t.triggerEvent("dialog.shown"); n.resolve() }); i.showDialog(u.$dialog) }).promise() }; this.show = function () { t.invoke("editor.saveRange"); this.showHelpDialog().then(function () { t.invoke("editor.restoreRange") }) } }, ir = function (u) { var e = this, s = n.summernote.ui, o = u.options, h = 20; this.events = { "summernote.keyup summernote.mouseup summernote.scroll": function () { e.update() }, "summernote.change summernote.dialog.shown": function () { e.hide() }, "summernote.focusout": function (n, i) { f.isFF || i.relatedTarget && t.ancestor(i.relatedTarget, r.eq(e.$popover[0])) || e.hide() } }; this.shouldInitialize = function () { return o.airMode && !i.isEmpty(o.popover.air) }; this.initialize = function () { this.$popover = s.popover({ className: "note-air-popover" }).render().appendTo("body"); var n = this.$popover.find(".popover-content"); u.invoke("buttons.build", n, o.popover.air) }; this.destroy = function () { this.$popover.remove() }; this.update = function () { var t = u.invoke("editor.currentStyle"), f, n; t.range && !t.range.isCollapsed() ? (f = i.last(t.range.getClientRects()), f && (n = r.rect2bnd(f), this.$popover.css({ display: "block", left: Math.max(n.left + n.width / 2, 0) - h, top: n.top + n.height }))) : this.hide() }; this.hide = function () { this.$popover.hide() } }, rr = function (f) { var o = this, l = n.summernote.ui, c = 5, h = f.options.hint || [], a = f.options.hintDirection || "bottom", s = n.isArray(h) ? h : [h]; this.events = { "summernote.keyup": function (n, t) { t.isDefaultPrevented() || o.handleKeyup(t) }, "summernote.keydown": function (n, t) { o.handleKeydown(t) }, "summernote.dialog.shown": function () { o.hide() } }; this.shouldInitialize = function () { return s.length > 0 }; this.initialize = function () { this.lastWordRange = null; this.$popover = l.popover({ className: "note-hint-popover", hideArrow: !0, direction: "" }).render().appendTo("body"); this.$popover.hide(); this.$content = this.$popover.find(".popover-content"); this.$content.on("click", ".note-hint-item", function () { o.$content.find(".active").removeClass("active"); n(this).addClass("active"); o.replace() }) }; this.destroy = function () { this.$popover.remove() }; this.selectItem = function (n) { this.$content.find(".active").removeClass("active"); n.addClass("active"); this.$content[0].scrollTop = n[0].offsetTop - this.$content.innerHeight() / 2 }; this.moveDown = function () { var t = this.$content.find(".note-hint-item.active"), i = t.next(), n; i.length ? this.selectItem(i) : (n = t.parent().next(), n.length || (n = this.$content.find(".note-hint-group").first()), this.selectItem(n.find(".note-hint-item").first())) }; this.moveUp = function () { var t = this.$content.find(".note-hint-item.active"), i = t.prev(), n; i.length ? this.selectItem(i) : (n = t.parent().prev(), n.length || (n = this.$content.find(".note-hint-group").last()), this.selectItem(n.find(".note-hint-item").last())) }; this.replace = function () { var t = this.$content.find(".note-hint-item.active"), n; t.length && (n = this.nodeFromItem(t), this.lastWordRange.insertNode(n), u.createFromNode(n).collapse().select(), this.lastWordRange = null, this.hide(), f.invoke("editor.focus")) }; this.nodeFromItem = function (n) { var r = s[n.data("index")], u = n.data("item"), i = r.content ? r.content(u) : u; return typeof i == "string" && (i = t.createText(i)), i }; this.createItemTemplates = function (t, i) { var r = s[t]; return i.map(function (i, u) { var f = n('<div class="note-hint-item"/>'); return f.append(r.template ? r.template(i) : i + ""), f.data({ index: t, item: i }), t === 0 && u === 0 && f.addClass("active"), f }) }; this.handleKeydown = function (n) { this.$popover.is(":visible") && (n.keyCode === e.code.ENTER ? (n.preventDefault(), this.replace()) : n.keyCode === e.code.UP ? (n.preventDefault(), this.moveUp()) : n.keyCode === e.code.DOWN && (n.preventDefault(), this.moveDown())) }; this.searchKeyword = function (n, t, i) { var r = s[n], u; r && r.match.test(t) && r.search ? (u = r.match.exec(t), r.search(u[1], i)) : i() }; this.createGroup = function (t, i) { var r = n('<div class="note-hint-group note-hint-group-' + t + '"/>'); return this.searchKeyword(t, i, function (n) { n = n || []; n.length && (r.html(o.createItemTemplates(t, n)), o.show()) }), r }; this.handleKeyup = function (n) { var u, h, t; if (i.contains([e.code.ENTER, e.code.UP, e.code.DOWN], n.keyCode)) { if (n.keyCode === e.code.ENTER && this.$popover.is(":visible")) return } else u = f.invoke("editor.createRange").getWordRange(), h = u.toString(), s.length && h ? (this.$content.empty(), t = r.rect2bnd(i.last(u.getClientRects())), t && (this.$popover.hide(), this.lastWordRange = u, s.forEach(function (n, t) { n.match.test(h) && o.createGroup(t, h).appendTo(o.$content) }), a === "top" ? this.$popover.css({ left: t.left, top: t.top - this.$popover.outerHeight() - c }) : this.$popover.css({ left: t.left, top: t.top + t.height + c }))) : this.hide() }; this.show = function () { this.$popover.show() }; this.hide = function () { this.$popover.hide() } }; n.summernote = n.extend(n.summernote, { version: "0.8.2", ui: s, dom: t, plugins: {}, options: { modules: { editor: ri, clipboard: ui, dropzone: fi, codeview: ei, statusbar: si, fullscreen: hi, handle: ci, hintPopover: rr, autoLink: li, autoSync: ai, placeholder: vi, buttons: yi, toolbar: pi, linkDialog: wi, linkPopover: bi, imageDialog: ki, imagePopover: di, tablePopover: gi, videoDialog: nr, helpDialog: tr, airPopover: ir }, buttons: {}, lang: "en-US", toolbar: [["style", ["style"]], ["font", ["bold", "underline", "clear"]], ["fontname", ["fontname"]], ["color", ["color"]], ["para", ["ul", "ol", "paragraph"]], ["table", ["table"]], ["insert", ["link", "picture"]], ], popover: { image: [["imagesize", ["imageSize100", "imageSize50", "imageSize25"]], ["float", ["floatLeft", "floatRight", "floatNone"]], ["remove", ["removeMedia"]]], link: [["link", ["linkDialogShow", "unlink"]]], table: [["add", ["addRowDown", "addRowUp", "addColLeft", "addColRight"]], ["delete", ["deleteRow", "deleteCol"]]], air: [["color", ["color"]], ["font", ["bold", "underline", "clear"]], ["para", ["ul", "paragraph"]], ["table", ["table"]], ["insert", ["link", "picture"]]] }, airMode: !1, width: null, height: null, focus: !1, tabSize: 4, styleWithSpan: !0, shortcuts: !0, textareaAutoSync: !0, direction: null, styleTags: ["p", "blockquote", "pre", "h1", "h2", "h3", "h4", "h5", "h6"], fontNames: ["Arial", "Arial Black", "Comic Sans MS", "Courier New", "Helvetica Neue", "Helvetica", "Impact", "Lucida Grande", "Tahoma", "Times New Roman", "Verdana"], fontSizes: ["8", "9", "10", "11", "12", "14", "18", "24", "36"], colors: [["#000000", "#424242", "#636363", "#9C9C94", "#CEC6CE", "#EFEFEF", "#F7F7F7", "#FFFFFF"], ["#FF0000", "#FF9C00", "#FFFF00", "#00FF00", "#00FFFF", "#0000FF", "#9C00FF", "#FF00FF"], ["#F7C6CE", "#FFE7CE", "#FFEFC6", "#D6EFD6", "#CEDEE7", "#CEE7F7", "#D6D6E7", "#E7D6DE"], ["#E79C9C", "#FFC69C", "#FFE79C", "#B5D6A5", "#A5C6CE", "#9CC6EF", "#B5A5D6", "#D6A5BD"], ["#E76363", "#F7AD6B", "#FFD663", "#94BD7B", "#73A5AD", "#6BADDE", "#8C7BC6", "#C67BA5"], ["#CE0000", "#E79439", "#EFC631", "#6BA54A", "#4A7B8C", "#3984C6", "#634AA5", "#A54A7B"], ["#9C0000", "#B56308", "#BD9400", "#397B21", "#104A5A", "#085294", "#311873", "#731842"], ["#630000", "#7B3900", "#846300", "#295218", "#083139", "#003163", "#21104A", "#4A1031"]], lineHeights: ["1.0", "1.2", "1.4", "1.5", "1.6", "1.8", "2.0", "3.0"], tableClassName: "table table-bordered", insertTableMaxSize: { col: 10, row: 10 }, dialogsInBody: !1, dialogsFade: !1, maximumImageFileSize: null, callbacks: { onInit: null, onFocus: null, onBlur: null, onEnter: null, onKeyup: null, onKeydown: null, onImageUpload: null, onImageUploadError: null }, codemirror: { mode: "text/html", htmlMode: !0, lineNumbers: !0 }, keyMap: { pc: { ENTER: "insertParagraph", "CTRL+Z": "undo", "CTRL+Y": "redo", TAB: "tab", "SHIFT+TAB": "untab", "CTRL+B": "bold", "CTRL+I": "italic", "CTRL+U": "underline", "CTRL+SHIFT+S": "strikethrough", "CTRL+BACKSLASH": "removeFormat", "CTRL+SHIFT+L": "justifyLeft", "CTRL+SHIFT+E": "justifyCenter", "CTRL+SHIFT+R": "justifyRight", "CTRL+SHIFT+J": "justifyFull", "CTRL+SHIFT+NUM7": "insertUnorderedList", "CTRL+SHIFT+NUM8": "insertOrderedList", "CTRL+LEFTBRACKET": "outdent", "CTRL+RIGHTBRACKET": "indent", "CTRL+NUM0": "formatPara", "CTRL+NUM1": "formatH1", "CTRL+NUM2": "formatH2", "CTRL+NUM3": "formatH3", "CTRL+NUM4": "formatH4", "CTRL+NUM5": "formatH5", "CTRL+NUM6": "formatH6", "CTRL+ENTER": "insertHorizontalRule", "CTRL+K": "linkDialog.show" }, mac: { ENTER: "insertParagraph", "CMD+Z": "undo", "CMD+SHIFT+Z": "redo", TAB: "tab", "SHIFT+TAB": "untab", "CMD+B": "bold", "CMD+I": "italic", "CMD+U": "underline", "CMD+SHIFT+S": "strikethrough", "CMD+BACKSLASH": "removeFormat", "CMD+SHIFT+L": "justifyLeft", "CMD+SHIFT+E": "justifyCenter", "CMD+SHIFT+R": "justifyRight", "CMD+SHIFT+J": "justifyFull", "CMD+SHIFT+NUM7": "insertUnorderedList", "CMD+SHIFT+NUM8": "insertOrderedList", "CMD+LEFTBRACKET": "outdent", "CMD+RIGHTBRACKET": "indent", "CMD+NUM0": "formatPara", "CMD+NUM1": "formatH1", "CMD+NUM2": "formatH2", "CMD+NUM3": "formatH3", "CMD+NUM4": "formatH4", "CMD+NUM5": "formatH5", "CMD+NUM6": "formatH6", "CMD+ENTER": "insertHorizontalRule", "CMD+K": "linkDialog.show" } }, icons: { align: "note-icon-align", alignCenter: "note-icon-align-center", alignJustify: "note-icon-align-justify", alignLeft: "note-icon-align-left", alignRight: "note-icon-align-right", arrowDown: "note-icon-arrow-circle-down", arrowLeft: "note-icon-arrow-circle-left", arrowRight: "note-icon-arrow-circle-right", arrowUp: "note-icon-arrow-circle-up", arrowsH: "note-icon-arrows-h", arrowsV: "note-icon-arrows-v", indent: "note-icon-align-indent", outdent: "note-icon-align-outdent", arrowsAlt: "note-icon-arrows-alt", bold: "note-icon-bold", caret: "note-icon-caret", circle: "note-icon-circle", close: "note-icon-close", code: "note-icon-code", eraser: "note-icon-eraser", font: "note-icon-font", frame: "note-icon-frame", italic: "note-icon-italic", link: "note-icon-link", unlink: "note-icon-chain-broken", magic: "note-icon-magic", menuCheck: "note-icon-check", minus: "note-icon-minus", orderedlist: "note-icon-orderedlist", pencil: "note-icon-pencil", picture: "note-icon-picture", question: "note-icon-question", redo: "note-icon-redo", square: "note-icon-square", strikethrough: "note-icon-strikethrough", subscript: "note-icon-subscript", superscript: "note-icon-superscript", table: "note-icon-table", textHeight: "note-icon-text-height", trash: "note-icon-trash", underline: "note-icon-underline", undo: "note-icon-undo", unorderedlist: "note-icon-unorderedlist", video: "note-icon-video" } } }) });/*!
 * //! https://d3js.org Version 4.13.0. Copyright 2017 Mike Bostock.
 Copyright 2010-2017 Mike Bostock

All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of the author nor the names of contributors may be used to
  endorse or promote products derived from this software without specific prior
   written permission.
  
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
!function () {
    function n(n, t) { return t > n ? -1 : n > t ? 1 : n >= t ? 0 : 0 / 0 } function t(n) { return null === n ? 0 / 0 : +n } function e(n) { return !isNaN(n) } function r(n) { return { left: function (t, e, r, u) { for (arguments.length < 3 && (r = 0), arguments.length < 4 && (u = t.length); u > r;){ var i = r + u >>> 1; n(t[i], e) < 0 ? r = i + 1 : u = i } return r }, right: function (t, e, r, u) { for (arguments.length < 3 && (r = 0), arguments.length < 4 && (u = t.length); u > r;){ var i = r + u >>> 1; n(t[i], e) > 0 ? u = i : r = i + 1 } return r } } } function u(n) { return n.length } function i(n) { for (var t = 1; n * t % 1;)t *= 10; return t } function o(n, t) { for (var e in t) Object.defineProperty(n.prototype, e, { value: t[e], enumerable: !1 }) } function a() { this._ = Object.create(null) } function c(n) { return (n += "") === da || n[0] === ma ? ma + n : n } function l(n) { return (n += "")[0] === ma ? n.slice(1) : n } function s(n) { return c(n) in this._ } function f(n) { return (n = c(n)) in this._ && delete this._[n] } function h() { var n = []; for (var t in this._) n.push(l(t)); return n } function g() { var n = 0; for (var t in this._)++n; return n } function p() { for (var n in this._) return !1; return !0 } function v() { this._ = Object.create(null) } function d(n, t, e) { return function () { var r = e.apply(t, arguments); return r === t ? n : r } } function m(n, t) { if (t in n) return t; t = t.charAt(0).toUpperCase() + t.slice(1); for (var e = 0, r = ya.length; r > e; ++e){ var u = ya[e] + t; if (u in n) return u } } function y() { } function M() { } function x(n) { function t() { for (var t, r = e, u = -1, i = r.length; ++u < i;)(t = r[u].on) && t.apply(this, arguments); return n } var e = [], r = new a; return t.on = function (t, u) { var i, o = r.get(t); return arguments.length < 2 ? o && o.on : (o && (o.on = null, e = e.slice(0, i = e.indexOf(o)).concat(e.slice(i + 1)), r.remove(t)), u && e.push(r.set(t, { on: u })), n) }, t } function b() { ta.event.preventDefault() } function _() { for (var n, t = ta.event; n = t.sourceEvent;)t = n; return t } function w(n) { for (var t = new M, e = 0, r = arguments.length; ++e < r;)t[arguments[e]] = x(t); return t.of = function (e, r) { return function (u) { try { var i = u.sourceEvent = ta.event; u.target = n, ta.event = u, t[u.type].apply(e, r) } finally { ta.event = i } } }, t } function S(n) { return xa(n, ka), n } function k(n) { return "function" == typeof n ? n : function () { return ba(n, this) } } function E(n) { return "function" == typeof n ? n : function () { return _a(n, this) } } function A(n, t) { function e() { this.removeAttribute(n) } function r() { this.removeAttributeNS(n.space, n.local) } function u() { this.setAttribute(n, t) } function i() { this.setAttributeNS(n.space, n.local, t) } function o() { var e = t.apply(this, arguments); null == e ? this.removeAttribute(n) : this.setAttribute(n, e) } function a() { var e = t.apply(this, arguments); null == e ? this.removeAttributeNS(n.space, n.local) : this.setAttributeNS(n.space, n.local, e) } return n = ta.ns.qualify(n), null == t ? n.local ? r : e : "function" == typeof t ? n.local ? a : o : n.local ? i : u } function N(n) { return n.trim().replace(/\s+/g, " ") } function C(n) { return new RegExp("(?:^|\\s+)" + ta.requote(n) + "(?:\\s+|$)", "g") } function z(n) { return (n + "").trim().split(/^|\s+/) } function q(n, t) { function e() { for (var e = -1; ++e < u;)n[e](this, t) } function r() { for (var e = -1, r = t.apply(this, arguments); ++e < u;)n[e](this, r) } n = z(n).map(L); var u = n.length; return "function" == typeof t ? r : e } function L(n) { var t = C(n); return function (e, r) { if (u = e.classList) return r ? u.add(n) : u.remove(n); var u = e.getAttribute("class") || ""; r ? (t.lastIndex = 0, t.test(u) || e.setAttribute("class", N(u + " " + n))) : e.setAttribute("class", N(u.replace(t, " "))) } } function T(n, t, e) { function r() { this.style.removeProperty(n) } function u() { this.style.setProperty(n, t, e) } function i() { var r = t.apply(this, arguments); null == r ? this.style.removeProperty(n) : this.style.setProperty(n, r, e) } return null == t ? r : "function" == typeof t ? i : u } function R(n, t) { function e() { delete this[n] } function r() { this[n] = t } function u() { var e = t.apply(this, arguments); null == e ? delete this[n] : this[n] = e } return null == t ? e : "function" == typeof t ? u : r } function D(n) { return "function" == typeof n ? n : (n = ta.ns.qualify(n)).local ? function () { return this.ownerDocument.createElementNS(n.space, n.local) } : function () { return this.ownerDocument.createElementNS(this.namespaceURI, n) } } function P() { var n = this.parentNode; n && n.removeChild(this) } function U(n) { return { __data__: n } } function j(n) { return function () { return Sa(this, n) } } function F(t) { return arguments.length || (t = n), function (n, e) { return n && e ? t(n.__data__, e.__data__) : !n - !e } } function H(n, t) { for (var e = 0, r = n.length; r > e; e++)for (var u, i = n[e], o = 0, a = i.length; a > o; o++)(u = i[o]) && t(u, o, e); return n } function O(n) { return xa(n, Aa), n } function Y(n) { var t, e; return function (r, u, i) { var o, a = n[i].update, c = a.length; for (i != e && (e = i, t = 0), u >= t && (t = u + 1); !(o = a[t]) && ++t < c;); return o } } function I(n, t, e) { function r() { var t = this[o]; t && (this.removeEventListener(n, t, t.$), delete this[o]) } function u() { var u = c(t, ra(arguments)); r.call(this), this.addEventListener(n, this[o] = u, u.$ = e), u._ = t } function i() { var t, e = new RegExp("^__on([^.]+)" + ta.requote(n) + "$"); for (var r in this) if (t = r.match(e)) { var u = this[r]; this.removeEventListener(t[1], u, u.$), delete this[r] } } var o = "__on" + n, a = n.indexOf("."), c = Z; a > 0 && (n = n.slice(0, a)); var l = Ca.get(n); return l && (n = l, c = V), a ? t ? u : r : t ? y : i } function Z(n, t) { return function (e) { var r = ta.event; ta.event = e, t[0] = this.__data__; try { n.apply(this, t) } finally { ta.event = r } } } function V(n, t) { var e = Z(n, t); return function (n) { var t = this, r = n.relatedTarget; r && (r === t || 8 & r.compareDocumentPosition(t)) || e.call(t, n) } } function X() { var n = ".dragsuppress-" + ++qa, t = "click" + n, e = ta.select(oa).on("touchmove" + n, b).on("dragstart" + n, b).on("selectstart" + n, b); if (za) { var r = ia.style, u = r[za]; r[za] = "none" } return function (i) { if (e.on(n, null), za && (r[za] = u), i) { var o = function () { e.on(t, null) }; e.on(t, function () { b(), o() }, !0), setTimeout(o, 0) } } } function $(n, t) { t.changedTouches && (t = t.changedTouches[0]); var e = n.ownerSVGElement || n; if (e.createSVGPoint) { var r = e.createSVGPoint(); if (0 > La && (oa.scrollX || oa.scrollY)) { e = ta.select("body").append("svg").style({ position: "absolute", top: 0, left: 0, margin: 0, padding: 0, border: "none" }, "important"); var u = e[0][0].getScreenCTM(); La = !(u.f || u.e), e.remove() } return La ? (r.x = t.pageX, r.y = t.pageY) : (r.x = t.clientX, r.y = t.clientY), r = r.matrixTransform(n.getScreenCTM().inverse()), [r.x, r.y] } var i = n.getBoundingClientRect(); return [t.clientX - i.left - n.clientLeft, t.clientY - i.top - n.clientTop] } function B() { return ta.event.changedTouches[0].identifier } function W() { return ta.event.target } function J() { return oa } function G(n) { return n > 0 ? 1 : 0 > n ? -1 : 0 } function K(n, t, e) { return (t[0] - n[0]) * (e[1] - n[1]) - (t[1] - n[1]) * (e[0] - n[0]) } function Q(n) { return n > 1 ? 0 : -1 > n ? Da : Math.acos(n) } function nt(n) { return n > 1 ? ja : -1 > n ? -ja : Math.asin(n) } function tt(n) { return ((n = Math.exp(n)) - 1 / n) / 2 } function et(n) { return ((n = Math.exp(n)) + 1 / n) / 2 } function rt(n) { return ((n = Math.exp(2 * n)) - 1) / (n + 1) } function ut(n) { return (n = Math.sin(n / 2)) * n } function it() { } function ot(n, t, e) { return this instanceof ot ? (this.h = +n, this.s = +t, void (this.l = +e)) : arguments.length < 2 ? n instanceof ot ? new ot(n.h, n.s, n.l) : xt("" + n, bt, ot) : new ot(n, t, e) } function at(n, t, e) { function r(n) { return n > 360 ? n -= 360 : 0 > n && (n += 360), 60 > n ? i + (o - i) * n / 60 : 180 > n ? o : 240 > n ? i + (o - i) * (240 - n) / 60 : i } function u(n) { return Math.round(255 * r(n)) } var i, o; return n = isNaN(n) ? 0 : (n %= 360) < 0 ? n + 360 : n, t = isNaN(t) ? 0 : 0 > t ? 0 : t > 1 ? 1 : t, e = 0 > e ? 0 : e > 1 ? 1 : e, o = .5 >= e ? e * (1 + t) : e + t - e * t, i = 2 * e - o, new dt(u(n + 120), u(n), u(n - 120)) } function ct(n, t, e) { return this instanceof ct ? (this.h = +n, this.c = +t, void (this.l = +e)) : arguments.length < 2 ? n instanceof ct ? new ct(n.h, n.c, n.l) : n instanceof st ? ht(n.l, n.a, n.b) : ht((n = _t((n = ta.rgb(n)).r, n.g, n.b)).l, n.a, n.b) : new ct(n, t, e) } function lt(n, t, e) { return isNaN(n) && (n = 0), isNaN(t) && (t = 0), new st(e, Math.cos(n *= Fa) * t, Math.sin(n) * t) } function st(n, t, e) { return this instanceof st ? (this.l = +n, this.a = +t, void (this.b = +e)) : arguments.length < 2 ? n instanceof st ? new st(n.l, n.a, n.b) : n instanceof ct ? lt(n.h, n.c, n.l) : _t((n = dt(n)).r, n.g, n.b) : new st(n, t, e) } function ft(n, t, e) { var r = (n + 16) / 116, u = r + t / 500, i = r - e / 200; return u = gt(u) * Ja, r = gt(r) * Ga, i = gt(i) * Ka, new dt(vt(3.2404542 * u - 1.5371385 * r - .4985314 * i), vt(-.969266 * u + 1.8760108 * r + .041556 * i), vt(.0556434 * u - .2040259 * r + 1.0572252 * i)) } function ht(n, t, e) { return n > 0 ? new ct(Math.atan2(e, t) * Ha, Math.sqrt(t * t + e * e), n) : new ct(0 / 0, 0 / 0, n) } function gt(n) { return n > .206893034 ? n * n * n : (n - 4 / 29) / 7.787037 } function pt(n) { return n > .008856 ? Math.pow(n, 1 / 3) : 7.787037 * n + 4 / 29 } function vt(n) { return Math.round(255 * (.00304 >= n ? 12.92 * n : 1.055 * Math.pow(n, 1 / 2.4) - .055)) } function dt(n, t, e) { return this instanceof dt ? (this.r = ~~n, this.g = ~~t, void (this.b = ~~e)) : arguments.length < 2 ? n instanceof dt ? new dt(n.r, n.g, n.b) : xt("" + n, dt, at) : new dt(n, t, e) } function mt(n) { return new dt(n >> 16, 255 & n >> 8, 255 & n) } function yt(n) { return mt(n) + "" } function Mt(n) { return 16 > n ? "0" + Math.max(0, n).toString(16) : Math.min(255, n).toString(16) } function xt(n, t, e) { var r, u, i, o = 0, a = 0, c = 0; if (r = /([a-z]+)\((.*)\)/i.exec(n)) switch (u = r[2].split(","), r[1]) { case "hsl": return e(parseFloat(u[0]), parseFloat(u[1]) / 100, parseFloat(u[2]) / 100); case "rgb": return t(St(u[0]), St(u[1]), St(u[2])) }return (i = tc.get(n)) ? t(i.r, i.g, i.b) : (null == n || "#" !== n.charAt(0) || isNaN(i = parseInt(n.slice(1), 16)) || (4 === n.length ? (o = (3840 & i) >> 4, o = o >> 4 | o, a = 240 & i, a = a >> 4 | a, c = 15 & i, c = c << 4 | c) : 7 === n.length && (o = (16711680 & i) >> 16, a = (65280 & i) >> 8, c = 255 & i)), t(o, a, c)) } function bt(n, t, e) { var r, u, i = Math.min(n /= 255, t /= 255, e /= 255), o = Math.max(n, t, e), a = o - i, c = (o + i) / 2; return a ? (u = .5 > c ? a / (o + i) : a / (2 - o - i), r = n == o ? (t - e) / a + (e > t ? 6 : 0) : t == o ? (e - n) / a + 2 : (n - t) / a + 4, r *= 60) : (r = 0 / 0, u = c > 0 && 1 > c ? 0 : r), new ot(r, u, c) } function _t(n, t, e) { n = wt(n), t = wt(t), e = wt(e); var r = pt((.4124564 * n + .3575761 * t + .1804375 * e) / Ja), u = pt((.2126729 * n + .7151522 * t + .072175 * e) / Ga), i = pt((.0193339 * n + .119192 * t + .9503041 * e) / Ka); return st(116 * u - 16, 500 * (r - u), 200 * (u - i)) } function wt(n) { return (n /= 255) <= .04045 ? n / 12.92 : Math.pow((n + .055) / 1.055, 2.4) } function St(n) { var t = parseFloat(n); return "%" === n.charAt(n.length - 1) ? Math.round(2.55 * t) : t } function kt(n) { return "function" == typeof n ? n : function () { return n } } function Et(n) { return n } function At(n) { return function (t, e, r) { return 2 === arguments.length && "function" == typeof e && (r = e, e = null), Nt(t, e, n, r) } } function Nt(n, t, e, r) { function u() { var n, t = c.status; if (!t && zt(c) || t >= 200 && 300 > t || 304 === t) { try { n = e.call(i, c) } catch (r) { return o.error.call(i, r), void 0 } o.load.call(i, n) } else o.error.call(i, c) } var i = {}, o = ta.dispatch("beforesend", "progress", "load", "error"), a = {}, c = new XMLHttpRequest, l = null; return !oa.XDomainRequest || "withCredentials" in c || !/^(http(s)?:)?\/\//.test(n) || (c = new XDomainRequest), "onload" in c ? c.onload = c.onerror = u : c.onreadystatechange = function () { c.readyState > 3 && u() }, c.onprogress = function (n) { var t = ta.event; ta.event = n; try { o.progress.call(i, c) } finally { ta.event = t } }, i.header = function (n, t) { return n = (n + "").toLowerCase(), arguments.length < 2 ? a[n] : (null == t ? delete a[n] : a[n] = t + "", i) }, i.mimeType = function (n) { return arguments.length ? (t = null == n ? null : n + "", i) : t }, i.responseType = function (n) { return arguments.length ? (l = n, i) : l }, i.response = function (n) { return e = n, i }, ["get", "post"].forEach(function (n) { i[n] = function () { return i.send.apply(i, [n].concat(ra(arguments))) } }), i.send = function (e, r, u) { if (2 === arguments.length && "function" == typeof r && (u = r, r = null), c.open(e, n, !0), null == t || "accept" in a || (a.accept = t + ",*/*"), c.setRequestHeader) for (var s in a) c.setRequestHeader(s, a[s]); return null != t && c.overrideMimeType && c.overrideMimeType(t), null != l && (c.responseType = l), null != u && i.on("error", u).on("load", function (n) { u(null, n) }), o.beforesend.call(i, c), c.send(null == r ? null : r), i }, i.abort = function () { return c.abort(), i }, ta.rebind(i, o, "on"), null == r ? i : i.get(Ct(r)) } function Ct(n) { return 1 === n.length ? function (t, e) { n(null == t ? e : null) } : n } function zt(n) { var t = n.responseType; return t && "text" !== t ? n.response : n.responseText } function qt() { var n = Lt(), t = Tt() - n; t > 24 ? (isFinite(t) && (clearTimeout(ic), ic = setTimeout(qt, t)), uc = 0) : (uc = 1, ac(qt)) } function Lt() { var n = Date.now(); for (oc = ec; oc;)n >= oc.t && (oc.f = oc.c(n - oc.t)), oc = oc.n; return n } function Tt() { for (var n, t = ec, e = 1 / 0; t;)t.f ? t = n ? n.n = t.n : ec = t.n : (t.t < e && (e = t.t), t = (n = t).n); return rc = n, e } function Rt(n, t) { return t - (n ? Math.ceil(Math.log(n) / Math.LN10) : 1) } function Dt(n, t) { var e = Math.pow(10, 3 * va(8 - t)); return { scale: t > 8 ? function (n) { return n / e } : function (n) { return n * e }, symbol: n } } function Pt(n) { var t = n.decimal, e = n.thousands, r = n.grouping, u = n.currency, i = r && e ? function (n, t) { for (var u = n.length, i = [], o = 0, a = r[0], c = 0; u > 0 && a > 0 && (c + a + 1 > t && (a = Math.max(1, t - c)), i.push(n.substring(u -= a, u + a)), !((c += a + 1) > t));)a = r[o = (o + 1) % r.length]; return i.reverse().join(e) } : Et; return function (n) { var e = lc.exec(n), r = e[1] || " ", o = e[2] || ">", a = e[3] || "-", c = e[4] || "", l = e[5], s = +e[6], f = e[7], h = e[8], g = e[9], p = 1, v = "", d = "", m = !1, y = !0; switch (h && (h = +h.substring(1)), (l || "0" === r && "=" === o) && (l = r = "0", o = "="), g) { case "n": f = !0, g = "g"; break; case "%": p = 100, d = "%", g = "f"; break; case "p": p = 100, d = "%", g = "r"; break; case "b": case "o": case "x": case "X": "#" === c && (v = "0" + g.toLowerCase()); case "c": y = !1; case "d": m = !0, h = 0; break; case "s": p = -1, g = "r" }"$" === c && (v = u[0], d = u[1]), "r" != g || h || (g = "g"), null != h && ("g" == g ? h = Math.max(1, Math.min(21, h)) : ("e" == g || "f" == g) && (h = Math.max(0, Math.min(20, h)))), g = sc.get(g) || Ut; var M = l && f; return function (n) { var e = d; if (m && n % 1) return ""; var u = 0 > n || 0 === n && 0 > 1 / n ? (n = -n, "-") : "-" === a ? "" : a; if (0 > p) { var c = ta.formatPrefix(n, h); n = c.scale(n), e = c.symbol + d } else n *= p; n = g(n, h); var x, b, _ = n.lastIndexOf("."); if (0 > _) { var w = y ? n.lastIndexOf("e") : -1; 0 > w ? (x = n, b = "") : (x = n.substring(0, w), b = n.substring(w)) } else x = n.substring(0, _), b = t + n.substring(_ + 1); !l && f && (x = i(x, 1 / 0)); var S = v.length + x.length + b.length + (M ? 0 : u.length), k = s > S ? new Array(S = s - S + 1).join(r) : ""; return M && (x = i(k + x, k.length ? s - b.length : 1 / 0)), u += v, n = x + b, ("<" === o ? u + n + k : ">" === o ? k + u + n : "^" === o ? k.substring(0, S >>= 1) + u + n + k.substring(S) : u + (M ? n : k + n)) + e } } } function Ut(n) { return n + "" } function jt() { this._ = new Date(arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]) } function Ft(n, t, e) { function r(t) { var e = n(t), r = i(e, 1); return r - t > t - e ? e : r } function u(e) { return t(e = n(new hc(e - 1)), 1), e } function i(n, e) { return t(n = new hc(+n), e), n } function o(n, r, i) { var o = u(n), a = []; if (i > 1) for (; r > o;)e(o) % i || a.push(new Date(+o)), t(o, 1); else for (; r > o;)a.push(new Date(+o)), t(o, 1); return a } function a(n, t, e) { try { hc = jt; var r = new jt; return r._ = n, o(r, t, e) } finally { hc = Date } } n.floor = n, n.round = r, n.ceil = u, n.offset = i, n.range = o; var c = n.utc = Ht(n); return c.floor = c, c.round = Ht(r), c.ceil = Ht(u), c.offset = Ht(i), c.range = a, n } function Ht(n) { return function (t, e) { try { hc = jt; var r = new jt; return r._ = t, n(r, e)._ } finally { hc = Date } } } function Ot(n) { function t(n) { function t(t) { for (var e, u, i, o = [], a = -1, c = 0; ++a < r;)37 === n.charCodeAt(a) && (o.push(n.slice(c, a)), null != (u = pc[e = n.charAt(++a)]) && (e = n.charAt(++a)), (i = N[e]) && (e = i(t, null == u ? "e" === e ? " " : "0" : u)), o.push(e), c = a + 1); return o.push(n.slice(c, a)), o.join("") } var r = n.length; return t.parse = function (t) { var r = { y: 1900, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0, Z: null }, u = e(r, n, t, 0); if (u != t.length) return null; "p" in r && (r.H = r.H % 12 + 12 * r.p); var i = null != r.Z && hc !== jt, o = new (i ? jt : hc); return "j" in r ? o.setFullYear(r.y, 0, r.j) : "w" in r && ("W" in r || "U" in r) ? (o.setFullYear(r.y, 0, 1), o.setFullYear(r.y, 0, "W" in r ? (r.w + 6) % 7 + 7 * r.W - (o.getDay() + 5) % 7 : r.w + 7 * r.U - (o.getDay() + 6) % 7)) : o.setFullYear(r.y, r.m, r.d), o.setHours(r.H + (0 | r.Z / 100), r.M + r.Z % 100, r.S, r.L), i ? o._ : o }, t.toString = function () { return n }, t } function e(n, t, e, r) { for (var u, i, o, a = 0, c = t.length, l = e.length; c > a;){ if (r >= l) return -1; if (u = t.charCodeAt(a++), 37 === u) { if (o = t.charAt(a++), i = C[o in pc ? t.charAt(a++) : o], !i || (r = i(n, e, r)) < 0) return -1 } else if (u != e.charCodeAt(r++)) return -1 } return r } function r(n, t, e) { _.lastIndex = 0; var r = _.exec(t.slice(e)); return r ? (n.w = w.get(r[0].toLowerCase()), e + r[0].length) : -1 } function u(n, t, e) { x.lastIndex = 0; var r = x.exec(t.slice(e)); return r ? (n.w = b.get(r[0].toLowerCase()), e + r[0].length) : -1 } function i(n, t, e) { E.lastIndex = 0; var r = E.exec(t.slice(e)); return r ? (n.m = A.get(r[0].toLowerCase()), e + r[0].length) : -1 } function o(n, t, e) { S.lastIndex = 0; var r = S.exec(t.slice(e)); return r ? (n.m = k.get(r[0].toLowerCase()), e + r[0].length) : -1 } function a(n, t, r) { return e(n, N.c.toString(), t, r) } function c(n, t, r) { return e(n, N.x.toString(), t, r) } function l(n, t, r) { return e(n, N.X.toString(), t, r) } function s(n, t, e) { var r = M.get(t.slice(e, e += 2).toLowerCase()); return null == r ? -1 : (n.p = r, e) } var f = n.dateTime, h = n.date, g = n.time, p = n.periods, v = n.days, d = n.shortDays, m = n.months, y = n.shortMonths; t.utc = function (n) { function e(n) { try { hc = jt; var t = new hc; return t._ = n, r(t) } finally { hc = Date } } var r = t(n); return e.parse = function (n) { try { hc = jt; var t = r.parse(n); return t && t._ } finally { hc = Date } }, e.toString = r.toString, e }, t.multi = t.utc.multi = ae; var M = ta.map(), x = It(v), b = Zt(v), _ = It(d), w = Zt(d), S = It(m), k = Zt(m), E = It(y), A = Zt(y); p.forEach(function (n, t) { M.set(n.toLowerCase(), t) }); var N = { a: function (n) { return d[n.getDay()] }, A: function (n) { return v[n.getDay()] }, b: function (n) { return y[n.getMonth()] }, B: function (n) { return m[n.getMonth()] }, c: t(f), d: function (n, t) { return Yt(n.getDate(), t, 2) }, e: function (n, t) { return Yt(n.getDate(), t, 2) }, H: function (n, t) { return Yt(n.getHours(), t, 2) }, I: function (n, t) { return Yt(n.getHours() % 12 || 12, t, 2) }, j: function (n, t) { return Yt(1 + fc.dayOfYear(n), t, 3) }, L: function (n, t) { return Yt(n.getMilliseconds(), t, 3) }, m: function (n, t) { return Yt(n.getMonth() + 1, t, 2) }, M: function (n, t) { return Yt(n.getMinutes(), t, 2) }, p: function (n) { return p[+(n.getHours() >= 12)] }, S: function (n, t) { return Yt(n.getSeconds(), t, 2) }, U: function (n, t) { return Yt(fc.sundayOfYear(n), t, 2) }, w: function (n) { return n.getDay() }, W: function (n, t) { return Yt(fc.mondayOfYear(n), t, 2) }, x: t(h), X: t(g), y: function (n, t) { return Yt(n.getFullYear() % 100, t, 2) }, Y: function (n, t) { return Yt(n.getFullYear() % 1e4, t, 4) }, Z: ie, "%": function () { return "%" } }, C = { a: r, A: u, b: i, B: o, c: a, d: Qt, e: Qt, H: te, I: te, j: ne, L: ue, m: Kt, M: ee, p: s, S: re, U: Xt, w: Vt, W: $t, x: c, X: l, y: Wt, Y: Bt, Z: Jt, "%": oe }; return t } function Yt(n, t, e) { var r = 0 > n ? "-" : "", u = (r ? -n : n) + "", i = u.length; return r + (e > i ? new Array(e - i + 1).join(t) + u : u) } function It(n) { return new RegExp("^(?:" + n.map(ta.requote).join("|") + ")", "i") } function Zt(n) { for (var t = new a, e = -1, r = n.length; ++e < r;)t.set(n[e].toLowerCase(), e); return t } function Vt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 1)); return r ? (n.w = +r[0], e + r[0].length) : -1 } function Xt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e)); return r ? (n.U = +r[0], e + r[0].length) : -1 } function $t(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e)); return r ? (n.W = +r[0], e + r[0].length) : -1 } function Bt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 4)); return r ? (n.y = +r[0], e + r[0].length) : -1 } function Wt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.y = Gt(+r[0]), e + r[0].length) : -1 } function Jt(n, t, e) { return /^[+-]\d{4}$/.test(t = t.slice(e, e + 5)) ? (n.Z = -t, e + 5) : -1 } function Gt(n) { return n + (n > 68 ? 1900 : 2e3) } function Kt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.m = r[0] - 1, e + r[0].length) : -1 } function Qt(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.d = +r[0], e + r[0].length) : -1 } function ne(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 3)); return r ? (n.j = +r[0], e + r[0].length) : -1 } function te(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.H = +r[0], e + r[0].length) : -1 } function ee(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.M = +r[0], e + r[0].length) : -1 } function re(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 2)); return r ? (n.S = +r[0], e + r[0].length) : -1 } function ue(n, t, e) { vc.lastIndex = 0; var r = vc.exec(t.slice(e, e + 3)); return r ? (n.L = +r[0], e + r[0].length) : -1 } function ie(n) { var t = n.getTimezoneOffset(), e = t > 0 ? "-" : "+", r = 0 | va(t) / 60, u = va(t) % 60; return e + Yt(r, "0", 2) + Yt(u, "0", 2) } function oe(n, t, e) { dc.lastIndex = 0; var r = dc.exec(t.slice(e, e + 1)); return r ? e + r[0].length : -1 } function ae(n) { for (var t = n.length, e = -1; ++e < t;)n[e][0] = this(n[e][0]); return function (t) { for (var e = 0, r = n[e]; !r[1](t);)r = n[++e]; return r[0](t) } } function ce() { } function le(n, t, e) { var r = e.s = n + t, u = r - n, i = r - u; e.t = n - i + (t - u) } function se(n, t) { n && xc.hasOwnProperty(n.type) && xc[n.type](n, t) } function fe(n, t, e) { var r, u = -1, i = n.length - e; for (t.lineStart(); ++u < i;)r = n[u], t.point(r[0], r[1], r[2]); t.lineEnd() } function he(n, t) { var e = -1, r = n.length; for (t.polygonStart(); ++e < r;)fe(n[e], t, 1); t.polygonEnd() } function ge() { function n(n, t) { n *= Fa, t = t * Fa / 2 + Da / 4; var e = n - r, o = e >= 0 ? 1 : -1, a = o * e, c = Math.cos(t), l = Math.sin(t), s = i * l, f = u * c + s * Math.cos(a), h = s * o * Math.sin(a); _c.add(Math.atan2(h, f)), r = n, u = c, i = l } var t, e, r, u, i; wc.point = function (o, a) { wc.point = n, r = (t = o) * Fa, u = Math.cos(a = (e = a) * Fa / 2 + Da / 4), i = Math.sin(a) }, wc.lineEnd = function () { n(t, e) } } function pe(n) { var t = n[0], e = n[1], r = Math.cos(e); return [r * Math.cos(t), r * Math.sin(t), Math.sin(e)] } function ve(n, t) { return n[0] * t[0] + n[1] * t[1] + n[2] * t[2] } function de(n, t) { return [n[1] * t[2] - n[2] * t[1], n[2] * t[0] - n[0] * t[2], n[0] * t[1] - n[1] * t[0]] } function me(n, t) { n[0] += t[0], n[1] += t[1], n[2] += t[2] } function ye(n, t) { return [n[0] * t, n[1] * t, n[2] * t] } function Me(n) { var t = Math.sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]); n[0] /= t, n[1] /= t, n[2] /= t } function xe(n) { return [Math.atan2(n[1], n[0]), nt(n[2])] } function be(n, t) { return va(n[0] - t[0]) < Ta && va(n[1] - t[1]) < Ta } function _e(n, t) { n *= Fa; var e = Math.cos(t *= Fa); we(e * Math.cos(n), e * Math.sin(n), Math.sin(t)) } function we(n, t, e) { ++Sc, Ec += (n - Ec) / Sc, Ac += (t - Ac) / Sc, Nc += (e - Nc) / Sc } function Se() { function n(n, u) { n *= Fa; var i = Math.cos(u *= Fa), o = i * Math.cos(n), a = i * Math.sin(n), c = Math.sin(u), l = Math.atan2(Math.sqrt((l = e * c - r * a) * l + (l = r * o - t * c) * l + (l = t * a - e * o) * l), t * o + e * a + r * c); kc += l, Cc += l * (t + (t = o)), zc += l * (e + (e = a)), qc += l * (r + (r = c)), we(t, e, r) } var t, e, r; Dc.point = function (u, i) { u *= Fa; var o = Math.cos(i *= Fa); t = o * Math.cos(u), e = o * Math.sin(u), r = Math.sin(i), Dc.point = n, we(t, e, r) } } function ke() { Dc.point = _e } function Ee() { function n(n, t) { n *= Fa; var e = Math.cos(t *= Fa), o = e * Math.cos(n), a = e * Math.sin(n), c = Math.sin(t), l = u * c - i * a, s = i * o - r * c, f = r * a - u * o, h = Math.sqrt(l * l + s * s + f * f), g = r * o + u * a + i * c, p = h && -Q(g) / h, v = Math.atan2(h, g); Lc += p * l, Tc += p * s, Rc += p * f, kc += v, Cc += v * (r + (r = o)), zc += v * (u + (u = a)), qc += v * (i + (i = c)), we(r, u, i) } var t, e, r, u, i; Dc.point = function (o, a) { t = o, e = a, Dc.point = n, o *= Fa; var c = Math.cos(a *= Fa); r = c * Math.cos(o), u = c * Math.sin(o), i = Math.sin(a), we(r, u, i) }, Dc.lineEnd = function () { n(t, e), Dc.lineEnd = ke, Dc.point = _e } } function Ae(n, t) { function e(e, r) { return e = n(e, r), t(e[0], e[1]) } return n.invert && t.invert && (e.invert = function (e, r) { return e = t.invert(e, r), e && n.invert(e[0], e[1]) }), e } function Ne() { return !0 } function Ce(n, t, e, r, u) { var i = [], o = []; if (n.forEach(function (n) { if (!((t = n.length - 1) <= 0)) { var t, e = n[0], r = n[t]; if (be(e, r)) { u.lineStart(); for (var a = 0; t > a; ++a)u.point((e = n[a])[0], e[1]); return u.lineEnd(), void 0 } var c = new qe(e, n, null, !0), l = new qe(e, null, c, !1); c.o = l, i.push(c), o.push(l), c = new qe(r, n, null, !1), l = new qe(r, null, c, !0), c.o = l, i.push(c), o.push(l) } }), o.sort(t), ze(i), ze(o), i.length) { for (var a = 0, c = e, l = o.length; l > a; ++a)o[a].e = c = !c; for (var s, f, h = i[0]; ;){ for (var g = h, p = !0; g.v;)if ((g = g.n) === h) return; s = g.z, u.lineStart(); do { if (g.v = g.o.v = !0, g.e) { if (p) for (var a = 0, l = s.length; l > a; ++a)u.point((f = s[a])[0], f[1]); else r(g.x, g.n.x, 1, u); g = g.n } else { if (p) { s = g.p.z; for (var a = s.length - 1; a >= 0; --a)u.point((f = s[a])[0], f[1]) } else r(g.x, g.p.x, -1, u); g = g.p } g = g.o, s = g.z, p = !p } while (!g.v); u.lineEnd() } } } function ze(n) { if (t = n.length) { for (var t, e, r = 0, u = n[0]; ++r < t;)u.n = e = n[r], e.p = u, u = e; u.n = e = n[0], e.p = u } } function qe(n, t, e, r) { this.x = n, this.z = t, this.o = e, this.e = r, this.v = !1, this.n = this.p = null } function Le(n, t, e, r) { return function (u, i) { function o(t, e) { var r = u(t, e); n(t = r[0], e = r[1]) && i.point(t, e) } function a(n, t) { var e = u(n, t); d.point(e[0], e[1]) } function c() { y.point = a, d.lineStart() } function l() { y.point = o, d.lineEnd() } function s(n, t) { v.push([n, t]); var e = u(n, t); x.point(e[0], e[1]) } function f() { x.lineStart(), v = [] } function h() { s(v[0][0], v[0][1]), x.lineEnd(); var n, t = x.clean(), e = M.buffer(), r = e.length; if (v.pop(), p.push(v), v = null, r) if (1 & t) { n = e[0]; var u, r = n.length - 1, o = -1; if (r > 0) { for (b || (i.polygonStart(), b = !0), i.lineStart(); ++o < r;)i.point((u = n[o])[0], u[1]); i.lineEnd() } } else r > 1 && 2 & t && e.push(e.pop().concat(e.shift())), g.push(e.filter(Te)) } var g, p, v, d = t(i), m = u.invert(r[0], r[1]), y = { point: o, lineStart: c, lineEnd: l, polygonStart: function () { y.point = s, y.lineStart = f, y.lineEnd = h, g = [], p = [] }, polygonEnd: function () { y.point = o, y.lineStart = c, y.lineEnd = l, g = ta.merge(g); var n = Fe(m, p); g.length ? (b || (i.polygonStart(), b = !0), Ce(g, De, n, e, i)) : n && (b || (i.polygonStart(), b = !0), i.lineStart(), e(null, null, 1, i), i.lineEnd()), b && (i.polygonEnd(), b = !1), g = p = null }, sphere: function () { i.polygonStart(), i.lineStart(), e(null, null, 1, i), i.lineEnd(), i.polygonEnd() } }, M = Re(), x = t(M), b = !1; return y } } function Te(n) { return n.length > 1 } function Re() { var n, t = []; return { lineStart: function () { t.push(n = []) }, point: function (t, e) { n.push([t, e]) }, lineEnd: y, buffer: function () { var e = t; return t = [], n = null, e }, rejoin: function () { t.length > 1 && t.push(t.pop().concat(t.shift())) } } } function De(n, t) { return ((n = n.x)[0] < 0 ? n[1] - ja - Ta : ja - n[1]) - ((t = t.x)[0] < 0 ? t[1] - ja - Ta : ja - t[1]) } function Pe(n) { var t, e = 0 / 0, r = 0 / 0, u = 0 / 0; return { lineStart: function () { n.lineStart(), t = 1 }, point: function (i, o) { var a = i > 0 ? Da : -Da, c = va(i - e); va(c - Da) < Ta ? (n.point(e, r = (r + o) / 2 > 0 ? ja : -ja), n.point(u, r), n.lineEnd(), n.lineStart(), n.point(a, r), n.point(i, r), t = 0) : u !== a && c >= Da && (va(e - u) < Ta && (e -= u * Ta), va(i - a) < Ta && (i -= a * Ta), r = Ue(e, r, i, o), n.point(u, r), n.lineEnd(), n.lineStart(), n.point(a, r), t = 0), n.point(e = i, r = o), u = a }, lineEnd: function () { n.lineEnd(), e = r = 0 / 0 }, clean: function () { return 2 - t } } } function Ue(n, t, e, r) { var u, i, o = Math.sin(n - e); return va(o) > Ta ? Math.atan((Math.sin(t) * (i = Math.cos(r)) * Math.sin(e) - Math.sin(r) * (u = Math.cos(t)) * Math.sin(n)) / (u * i * o)) : (t + r) / 2 } function je(n, t, e, r) { var u; if (null == n) u = e * ja, r.point(-Da, u), r.point(0, u), r.point(Da, u), r.point(Da, 0), r.point(Da, -u), r.point(0, -u), r.point(-Da, -u), r.point(-Da, 0), r.point(-Da, u); else if (va(n[0] - t[0]) > Ta) { var i = n[0] < t[0] ? Da : -Da; u = e * i / 2, r.point(-i, u), r.point(0, u), r.point(i, u) } else r.point(t[0], t[1]) } function Fe(n, t) { var e = n[0], r = n[1], u = [Math.sin(e), -Math.cos(e), 0], i = 0, o = 0; _c.reset(); for (var a = 0, c = t.length; c > a; ++a){ var l = t[a], s = l.length; if (s) for (var f = l[0], h = f[0], g = f[1] / 2 + Da / 4, p = Math.sin(g), v = Math.cos(g), d = 1; ;){ d === s && (d = 0), n = l[d]; var m = n[0], y = n[1] / 2 + Da / 4, M = Math.sin(y), x = Math.cos(y), b = m - h, _ = b >= 0 ? 1 : -1, w = _ * b, S = w > Da, k = p * M; if (_c.add(Math.atan2(k * _ * Math.sin(w), v * x + k * Math.cos(w))), i += S ? b + _ * Pa : b, S ^ h >= e ^ m >= e) { var E = de(pe(f), pe(n)); Me(E); var A = de(u, E); Me(A); var N = (S ^ b >= 0 ? -1 : 1) * nt(A[2]); (r > N || r === N && (E[0] || E[1])) && (o += S ^ b >= 0 ? 1 : -1) } if (!d++) break; h = m, p = M, v = x, f = n } } return (-Ta > i || Ta > i && 0 > _c) ^ 1 & o } function He(n) { function t(n, t) { return Math.cos(n) * Math.cos(t) > i } function e(n) { var e, i, c, l, s; return { lineStart: function () { l = c = !1, s = 1 }, point: function (f, h) { var g, p = [f, h], v = t(f, h), d = o ? v ? 0 : u(f, h) : v ? u(f + (0 > f ? Da : -Da), h) : 0; if (!e && (l = c = v) && n.lineStart(), v !== c && (g = r(e, p), (be(e, g) || be(p, g)) && (p[0] += Ta, p[1] += Ta, v = t(p[0], p[1]))), v !== c) s = 0, v ? (n.lineStart(), g = r(p, e), n.point(g[0], g[1])) : (g = r(e, p), n.point(g[0], g[1]), n.lineEnd()), e = g; else if (a && e && o ^ v) { var m; d & i || !(m = r(p, e, !0)) || (s = 0, o ? (n.lineStart(), n.point(m[0][0], m[0][1]), n.point(m[1][0], m[1][1]), n.lineEnd()) : (n.point(m[1][0], m[1][1]), n.lineEnd(), n.lineStart(), n.point(m[0][0], m[0][1]))) } !v || e && be(e, p) || n.point(p[0], p[1]), e = p, c = v, i = d }, lineEnd: function () { c && n.lineEnd(), e = null }, clean: function () { return s | (l && c) << 1 } } } function r(n, t, e) { var r = pe(n), u = pe(t), o = [1, 0, 0], a = de(r, u), c = ve(a, a), l = a[0], s = c - l * l; if (!s) return !e && n; var f = i * c / s, h = -i * l / s, g = de(o, a), p = ye(o, f), v = ye(a, h); me(p, v); var d = g, m = ve(p, d), y = ve(d, d), M = m * m - y * (ve(p, p) - 1); if (!(0 > M)) { var x = Math.sqrt(M), b = ye(d, (-m - x) / y); if (me(b, p), b = xe(b), !e) return b; var _, w = n[0], S = t[0], k = n[1], E = t[1]; w > S && (_ = w, w = S, S = _); var A = S - w, N = va(A - Da) < Ta, C = N || Ta > A; if (!N && k > E && (_ = k, k = E, E = _), C ? N ? k + E > 0 ^ b[1] < (va(b[0] - w) < Ta ? k : E) : k <= b[1] && b[1] <= E : A > Da ^ (w <= b[0] && b[0] <= S)) { var z = ye(d, (-m + x) / y); return me(z, p), [b, xe(z)] } } } function u(t, e) { var r = o ? n : Da - n, u = 0; return -r > t ? u |= 1 : t > r && (u |= 2), -r > e ? u |= 4 : e > r && (u |= 8), u } var i = Math.cos(n), o = i > 0, a = va(i) > Ta, c = gr(n, 6 * Fa); return Le(t, e, c, o ? [0, -n] : [-Da, n - Da]) } function Oe(n, t, e, r) { return function (u) { var i, o = u.a, a = u.b, c = o.x, l = o.y, s = a.x, f = a.y, h = 0, g = 1, p = s - c, v = f - l; if (i = n - c, p || !(i > 0)) { if (i /= p, 0 > p) { if (h > i) return; g > i && (g = i) } else if (p > 0) { if (i > g) return; i > h && (h = i) } if (i = e - c, p || !(0 > i)) { if (i /= p, 0 > p) { if (i > g) return; i > h && (h = i) } else if (p > 0) { if (h > i) return; g > i && (g = i) } if (i = t - l, v || !(i > 0)) { if (i /= v, 0 > v) { if (h > i) return; g > i && (g = i) } else if (v > 0) { if (i > g) return; i > h && (h = i) } if (i = r - l, v || !(0 > i)) { if (i /= v, 0 > v) { if (i > g) return; i > h && (h = i) } else if (v > 0) { if (h > i) return; g > i && (g = i) } return h > 0 && (u.a = { x: c + h * p, y: l + h * v }), 1 > g && (u.b = { x: c + g * p, y: l + g * v }), u } } } } } } function Ye(n, t, e, r) { function u(r, u) { return va(r[0] - n) < Ta ? u > 0 ? 0 : 3 : va(r[0] - e) < Ta ? u > 0 ? 2 : 1 : va(r[1] - t) < Ta ? u > 0 ? 1 : 0 : u > 0 ? 3 : 2 } function i(n, t) { return o(n.x, t.x) } function o(n, t) { var e = u(n, 1), r = u(t, 1); return e !== r ? e - r : 0 === e ? t[1] - n[1] : 1 === e ? n[0] - t[0] : 2 === e ? n[1] - t[1] : t[0] - n[0] } return function (a) { function c(n) { for (var t = 0, e = d.length, r = n[1], u = 0; e > u; ++u)for (var i, o = 1, a = d[u], c = a.length, l = a[0]; c > o; ++o)i = a[o], l[1] <= r ? i[1] > r && K(l, i, n) > 0 && ++t : i[1] <= r && K(l, i, n) < 0 && --t, l = i; return 0 !== t } function l(i, a, c, l) { var s = 0, f = 0; if (null == i || (s = u(i, c)) !== (f = u(a, c)) || o(i, a) < 0 ^ c > 0) { do l.point(0 === s || 3 === s ? n : e, s > 1 ? r : t); while ((s = (s + c + 4) % 4) !== f) } else l.point(a[0], a[1]) } function s(u, i) { return u >= n && e >= u && i >= t && r >= i } function f(n, t) { s(n, t) && a.point(n, t) } function h() { C.point = p, d && d.push(m = []), S = !0, w = !1, b = _ = 0 / 0 } function g() { v && (p(y, M), x && w && A.rejoin(), v.push(A.buffer())), C.point = f, w && a.lineEnd() } function p(n, t) { n = Math.max(-Uc, Math.min(Uc, n)), t = Math.max(-Uc, Math.min(Uc, t)); var e = s(n, t); if (d && m.push([n, t]), S) y = n, M = t, x = e, S = !1, e && (a.lineStart(), a.point(n, t)); else if (e && w) a.point(n, t); else { var r = { a: { x: b, y: _ }, b: { x: n, y: t } }; N(r) ? (w || (a.lineStart(), a.point(r.a.x, r.a.y)), a.point(r.b.x, r.b.y), e || a.lineEnd(), k = !1) : e && (a.lineStart(), a.point(n, t), k = !1) } b = n, _ = t, w = e } var v, d, m, y, M, x, b, _, w, S, k, E = a, A = Re(), N = Oe(n, t, e, r), C = { point: f, lineStart: h, lineEnd: g, polygonStart: function () { a = A, v = [], d = [], k = !0 }, polygonEnd: function () { a = E, v = ta.merge(v); var t = c([n, r]), e = k && t, u = v.length; (e || u) && (a.polygonStart(), e && (a.lineStart(), l(null, null, 1, a), a.lineEnd()), u && Ce(v, i, t, l, a), a.polygonEnd()), v = d = m = null } }; return C } } function Ie(n) { var t = 0, e = Da / 3, r = ir(n), u = r(t, e); return u.parallels = function (n) { return arguments.length ? r(t = n[0] * Da / 180, e = n[1] * Da / 180) : [180 * (t / Da), 180 * (e / Da)] }, u } function Ze(n, t) { function e(n, t) { var e = Math.sqrt(i - 2 * u * Math.sin(t)) / u; return [e * Math.sin(n *= u), o - e * Math.cos(n)] } var r = Math.sin(n), u = (r + Math.sin(t)) / 2, i = 1 + r * (2 * u - r), o = Math.sqrt(i) / u; return e.invert = function (n, t) { var e = o - t; return [Math.atan2(n, e) / u, nt((i - (n * n + e * e) * u * u) / (2 * u))] }, e } function Ve() { function n(n, t) { Fc += u * n - r * t, r = n, u = t } var t, e, r, u; Zc.point = function (i, o) { Zc.point = n, t = r = i, e = u = o }, Zc.lineEnd = function () { n(t, e) } } function Xe(n, t) { Hc > n && (Hc = n), n > Yc && (Yc = n), Oc > t && (Oc = t), t > Ic && (Ic = t) } function $e() { function n(n, t) { o.push("M", n, ",", t, i) } function t(n, t) { o.push("M", n, ",", t), a.point = e } function e(n, t) { o.push("L", n, ",", t) } function r() { a.point = n } function u() { o.push("Z") } var i = Be(4.5), o = [], a = { point: n, lineStart: function () { a.point = t }, lineEnd: r, polygonStart: function () { a.lineEnd = u }, polygonEnd: function () { a.lineEnd = r, a.point = n }, pointRadius: function (n) { return i = Be(n), a }, result: function () { if (o.length) { var n = o.join(""); return o = [], n } } }; return a } function Be(n) { return "m0," + n + "a" + n + "," + n + " 0 1,1 0," + -2 * n + "a" + n + "," + n + " 0 1,1 0," + 2 * n + "z" } function We(n, t) { Ec += n, Ac += t, ++Nc } function Je() { function n(n, r) { var u = n - t, i = r - e, o = Math.sqrt(u * u + i * i); Cc += o * (t + n) / 2, zc += o * (e + r) / 2, qc += o, We(t = n, e = r) } var t, e; Xc.point = function (r, u) { Xc.point = n, We(t = r, e = u) } } function Ge() { Xc.point = We } function Ke() { function n(n, t) { var e = n - r, i = t - u, o = Math.sqrt(e * e + i * i); Cc += o * (r + n) / 2, zc += o * (u + t) / 2, qc += o, o = u * n - r * t, Lc += o * (r + n), Tc += o * (u + t), Rc += 3 * o, We(r = n, u = t) } var t, e, r, u; Xc.point = function (i, o) { Xc.point = n, We(t = r = i, e = u = o) }, Xc.lineEnd = function () { n(t, e) } } function Qe(n) { function t(t, e) { n.moveTo(t + o, e), n.arc(t, e, o, 0, Pa) } function e(t, e) { n.moveTo(t, e), a.point = r } function r(t, e) { n.lineTo(t, e) } function u() { a.point = t } function i() { n.closePath() } var o = 4.5, a = { point: t, lineStart: function () { a.point = e }, lineEnd: u, polygonStart: function () { a.lineEnd = i }, polygonEnd: function () { a.lineEnd = u, a.point = t }, pointRadius: function (n) { return o = n, a }, result: y }; return a } function nr(n) {
        function t(n) { return (a ? r : e)(n) } function e(t) { return rr(t, function (e, r) { e = n(e, r), t.point(e[0], e[1]) }) } function r(t) { function e(e, r) { e = n(e, r), t.point(e[0], e[1]) } function r() { M = 0 / 0, S.point = i, t.lineStart() } function i(e, r) { var i = pe([e, r]), o = n(e, r); u(M, x, y, b, _, w, M = o[0], x = o[1], y = e, b = i[0], _ = i[1], w = i[2], a, t), t.point(M, x) } function o() { S.point = e, t.lineEnd() } function c() { r(), S.point = l, S.lineEnd = s } function l(n, t) { i(f = n, h = t), g = M, p = x, v = b, d = _, m = w, S.point = i } function s() { u(M, x, y, b, _, w, g, p, f, v, d, m, a, t), S.lineEnd = o, o() } var f, h, g, p, v, d, m, y, M, x, b, _, w, S = { point: e, lineStart: r, lineEnd: o, polygonStart: function () { t.polygonStart(), S.lineStart = c }, polygonEnd: function () { t.polygonEnd(), S.lineStart = r } }; return S } function u(t, e, r, a, c, l, s, f, h, g, p, v, d, m) {
            var y = s - t, M = f - e, x = y * y + M * M; if (x > 4 * i && d--) {
                var b = a + g, _ = c + p, w = l + v, S = Math.sqrt(b * b + _ * _ + w * w), k = Math.asin(w /= S), E = va(va(w) - 1) < Ta || va(r - h) < Ta ? (r + h) / 2 : Math.atan2(_, b), A = n(E, k), N = A[0], C = A[1], z = N - t, q = C - e, L = M * z - y * q;
(L*L/x>i||va((y*z+M*q)/x-.5)>.3||o>a*g+c*p+l*v)&&(u(t,e,r,a,c,l,N,C,E,b/=S,_/=S,w,d,m),m.point(N,C),u(N,C,E,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,o=Math.cos(30*Fa),a=16;return t.precision=function(n){return arguments.length?(a=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function tr(n){var t=nr(function(t,e){return n([t*Ha,e*Ha])});return function(n){return or(t(n))}}function er(n){this.stream=n}function rr(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ur(n){return ir(function(){return n})()}function ir(n){function t(n){return n=a(n[0]*Fa,n[1]*Fa),[n[0]*h+c,l-n[1]*h]}function e(n){return n=a.invert((n[0]-c)/h,(l-n[1])/h),n&&[n[0]*Ha,n[1]*Ha]}function r(){a=Ae(o=lr(m,y,M),i);var n=i(v,d);return c=g-n[0]*h,l=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,o,a,c,l,s,f=nr(function(n,t){return n=i(n,t),[n[0]*h+c,l-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,y=0,M=0,x=Pc,b=Et,_=null,w=null;return t.stream=function(n){return s&&(s.valid=!1),s=or(x(o,f(b(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(x=null==n?(_=n,Pc):He((_=+n)*Fa),u()):_},t.clipExtent=function(n){return arguments.length?(w=n,b=n?Ye(n[0][0],n[0][1],n[1][0],n[1][1]):Et,u()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Fa,d=n[1]%360*Fa,r()):[v*Ha,d*Ha]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Fa,y=n[1]%360*Fa,M=n.length>2?n[2]%360*Fa:0,r()):[m*Ha,y*Ha,M*Ha]},ta.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function or(n){return rr(n,function(t,e){n.point(t*Fa,e*Fa)})}function ar(n,t){return[n,t]}function cr(n,t){return[n>Da?n-Pa:-Da>n?n+Pa:n,t]}function lr(n,t,e){return n?t||e?Ae(fr(n),hr(t,e)):fr(n):t||e?hr(t,e):cr}function sr(n){return function(t,e){return t+=n,[t>Da?t-Pa:-Da>t?t+Pa:t,e]}}function fr(n){var t=sr(n);return t.invert=sr(-n),t}function hr(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*r+a*u;return[Math.atan2(c*i-s*o,a*r-l*u),nt(s*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*i-c*o;return[Math.atan2(c*i+l*o,a*r+s*u),nt(s*r-a*u)]},e}function gr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=pr(e,u),i=pr(e,i),(o>0?i>u:u>i)&&(u+=o*Pa)):(u=n+o*Pa,i=n-.5*c);for(var l,s=u;o>0?s>i:i>s;s-=c)a.point((l=xe([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],l[1])}}function pr(n,t){var e=pe(t);e[0]-=n,Me(e);var r=Q(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Ta)%(2*Math.PI)}function vr(n,t,e){var r=ta.range(n,t-Ta,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function dr(n,t,e){var r=ta.range(n,t-Ta,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function mr(n){return n.source}function yr(n){return n.target}function Mr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),l=u*Math.sin(n),s=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(ut(r-t)+u*o*ut(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*s,u=e*l+t*f,o=e*i+t*a;return[Math.atan2(u,r)*Ha,Math.atan2(o,Math.sqrt(r*r+u*u))*Ha]}:function(){return[n*Ha,t*Ha]};return p.distance=h,p}function xr(){function n(n,u){var i=Math.sin(u*=Fa),o=Math.cos(u),a=va((n*=Fa)-t),c=Math.cos(a);$c+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;Bc.point=function(u,i){t=u*Fa,e=Math.sin(i*=Fa),r=Math.cos(i),Bc.point=n},Bc.lineEnd=function(){Bc.point=Bc.lineEnd=y}}function br(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function _r(n,t){function e(n,t){o>0?-ja+Ta>t&&(t=-ja+Ta):t>ja-Ta&&(t=ja-Ta);var e=o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(Da/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=G(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-ja]},e):Sr}function wr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return va(u)<Ta?ar:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-G(u)*Math.sqrt(n*n+e*e)]},e)}function Sr(n,t){return[n,Math.log(Math.tan(Da/4+t/2))]}function kr(n){var t,e=ur(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=i.apply(e,arguments);if(o===e){if(t=null==n){var a=Da*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function Er(n,t){return[Math.log(Math.tan(Da/4+t/2)),-n]}function Ar(n){return n[0]}function Nr(n){return n[1]}function Cr(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&K(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function zr(n,t){return n[0]-t[0]||n[1]-t[1]}function qr(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Lr(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],l=e[1],s=t[1]-c,f=r[1]-l,h=(a*(c-l)-f*(u-i))/(f*o-a*s);return[u+h*o,c+h*s]}function Tr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Rr(){tu(this),this.edge=this.site=this.circle=null}function Dr(n){var t=ol.pop()||new Rr;return t.site=n,t}function Pr(n){Xr(n),rl.remove(n),ol.push(n),tu(n)}function Ur(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];Pr(n);for(var c=i;c.circle&&va(e-c.circle.x)<Ta&&va(r-c.circle.cy)<Ta;)i=c.P,a.unshift(c),Pr(c),c=i;a.unshift(c),Xr(c);for(var l=o;l.circle&&va(e-l.circle.x)<Ta&&va(r-l.circle.cy)<Ta;)o=l.N,a.push(l),Pr(l),l=o;a.push(l),Xr(l);var s,f=a.length;for(s=1;f>s;++s)l=a[s],c=a[s-1],Kr(l.edge,c.site,l.site,u);c=a[0],l=a[f-1],l.edge=Jr(c.site,l.site,null,u),Vr(c),Vr(l)}function jr(n){for(var t,e,r,u,i=n.x,o=n.y,a=rl._;a;)if(r=Fr(a,o)-i,r>Ta)a=a.L;else{if(u=i-Hr(a,o),!(u>Ta)){r>-Ta?(t=a.P,e=a):u>-Ta?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Dr(n);if(rl.insert(t,c),t||e){if(t===e)return Xr(t),e=Dr(t.site),rl.insert(c,e),c.edge=e.edge=Jr(t.site,c.site),Vr(t),Vr(e),void 0;if(!e)return c.edge=Jr(t.site,c.site),void 0;Xr(t),Xr(e);var l=t.site,s=l.x,f=l.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};Kr(e.edge,l,p,x),c.edge=Jr(l,n,null,x),e.edge=Jr(n,p,null,x),Vr(t),Vr(e)}}function Fr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,l=c-t;if(!l)return a;var s=a-r,f=1/i-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+u-i/2)))/f+r:(r+a)/2}function Hr(n,t){var e=n.N;if(e)return Fr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Or(n){this.site=n,this.edges=[]}function Yr(n){for(var t,e,r,u,i,o,a,c,l,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=el,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)s=a[o].end(),r=s.x,u=s.y,l=a[++o%c].start(),t=l.x,e=l.y,(va(r-t)>Ta||va(u-e)>Ta)&&(a.splice(o,0,new Qr(Gr(i.site,s,va(r-f)<Ta&&p-u>Ta?{x:f,y:va(t-f)<Ta?e:p}:va(u-p)<Ta&&h-r>Ta?{x:va(e-p)<Ta?t:h,y:p}:va(r-h)<Ta&&u-g>Ta?{x:h,y:va(t-h)<Ta?e:g}:va(u-g)<Ta&&r-f>Ta?{x:va(e-g)<Ta?t:f,y:g}:null),i.site,null)),++c)}function Ir(n,t){return t.angle-n.angle}function Zr(){tu(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vr(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,l=r.y-a,s=i.x-o,f=i.y-a,h=2*(c*f-l*s);if(!(h>=-Ra)){var g=c*c+l*l,p=s*s+f*f,v=(f*g-l*p)/h,d=(c*p-s*g)/h,f=d+a,m=al.pop()||new Zr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=il._;M;)if(m.y<M.y||m.y===M.y&&m.x<=M.x){if(!M.L){y=M.P;break}M=M.L}else{if(!M.R){y=M;break}M=M.R}il.insert(y,m),y||(ul=m)}}}}function Xr(n){var t=n.circle;t&&(t.P||(ul=t.N),il.remove(t),al.push(t),tu(t),n.circle=null)}function $r(n){for(var t,e=tl,r=Oe(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Br(t,n)||!r(t)||va(t.a.x-t.b.x)<Ta&&va(t.a.y-t.b.y)<Ta)&&(t.a=t.b=null,e.splice(u,1))}function Br(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,o=t[0][0],a=t[1][0],c=t[0][1],l=t[1][1],s=n.l,f=n.r,h=s.x,g=s.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(o>d||d>=a)return;if(h>p){if(i){if(i.y>=l)return}else i={x:d,y:c};e={x:d,y:l}}else{if(i){if(i.y<c)return}else i={x:d,y:l};e={x:d,y:c}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else{if(i){if(i.y<c)return}else i={x:(l-u)/r,y:l};e={x:(c-u)/r,y:c}}else if(v>g){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}return n.a=i,n.b=e,!0}function Wr(n,t){this.l=n,this.r=t,this.a=this.b=null}function Jr(n,t,e,r){var u=new Wr(n,t);return tl.push(u),e&&Kr(u,n,t,e),r&&Kr(u,t,n,r),el[n.i].edges.push(new Qr(u,n,t)),el[t.i].edges.push(new Qr(u,t,n)),u}function Gr(n,t,e){var r=new Wr(n,null);return r.a=t,r.b=e,tl.push(r),r}function Kr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Qr(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function nu(){this._=null}function tu(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function eu(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ru(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function uu(n){for(;n.L;)n=n.L;return n}function iu(n,t){var e,r,u,i=n.sort(ou).pop();for(tl=[],el=new Array(n.length),rl=new nu,il=new nu;;)if(u=ul,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(el[i.i]=new Or(i),jr(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;Ur(u.arc)}t&&($r(t),Yr(t));var o={cells:el,edges:tl};return rl=il=tl=el=null,o}function ou(n,t){return t.y-n.y||t.x-n.x}function au(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function cu(n){return n.x}function lu(n){return n.y}function su(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function fu(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var o=.5*(e+u),a=.5*(r+i),c=t.nodes;c[0]&&fu(n,c[0],e,r,o,a),c[1]&&fu(n,c[1],o,r,u,a),c[2]&&fu(n,c[2],e,a,o,i),c[3]&&fu(n,c[3],o,a,u,i)}}function hu(n,t,e,r,u,i,o){var a,c=1/0;return function l(n,s,f,h,g){if(!(s>i||f>o||r>h||u>g)){if(p=n.point){var p,v=t-p[0],d=e-p[1],m=v*v+d*d;if(c>m){var y=Math.sqrt(c=m);r=t-y,u=e-y,i=t+y,o=e+y,a=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:l(n,s,f,x,b);break;case 1:l(n,x,f,h,b);break;case 2:l(n,s,b,x,g);break;case 3:l(n,x,b,h,g)}}}(n,r,u,i,o),a}function gu(n,t){n=ta.rgb(n),t=ta.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,o=t.g-r,a=t.b-u;return function(n){return"#"+Mt(Math.round(e+i*n))+Mt(Math.round(r+o*n))+Mt(Math.round(u+a*n))}}function pu(n,t){var e,r={},u={};for(e in n)e in t?r[e]=mu(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function vu(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function du(n,t){var e,r,u,i=ll.lastIndex=sl.lastIndex=0,o=-1,a=[],c=[];for(n+="",t+="";(e=ll.exec(n))&&(r=sl.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),a[o]?a[o]+=u:a[++o]=u),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:vu(e,r)})),i=sl.lastIndex;return i<t.length&&(u=t.slice(i),a[o]?a[o]+=u:a[++o]=u),a.length<2?c[0]?(t=c[0].x,function(n){return t(n)+""}):function(){return t}:(t=c.length,function(n){for(var e,r=0;t>r;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function mu(n,t){for(var e,r=ta.interpolators.length;--r>=0&&!(e=ta.interpolators[r](n,t)););return e}function yu(n,t){var e,r=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(mu(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;o>e;++e)u[e]=t[e];return function(n){for(e=0;a>e;++e)u[e]=r[e](n);return u}}function Mu(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function xu(n){return function(t){return 1-n(1-t)}}function bu(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function _u(n){return n*n}function wu(n){return n*n*n}function Su(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function ku(n){return function(t){return Math.pow(t,n)}}function Eu(n){return 1-Math.cos(n*ja)}function Au(n){return Math.pow(2,10*(n-1))}function Nu(n){return 1-Math.sqrt(1-n*n)}function Cu(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Pa*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Pa/t)}}function zu(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function qu(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Lu(n,t){n=ta.hcl(n),t=ta.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return lt(e+i*n,r+o*n,u+a*n)+""}}function Tu(n,t){n=ta.hsl(n),t=ta.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return at(e+i*n,r+o*n,u+a*n)+""}}function Ru(n,t){n=ta.lab(n),t=ta.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,o=t.a-r,a=t.b-u;return function(n){return ft(e+i*n,r+o*n,u+a*n)+""}}function Du(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Pu(n){var t=[n.a,n.b],e=[n.c,n.d],r=ju(t),u=Uu(t,e),i=ju(Fu(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Ha,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Ha:0}function Uu(n,t){return n[0]*t[0]+n[1]*t[1]}function ju(n){var t=Math.sqrt(Uu(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Fu(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Hu(n,t){var e,r=[],u=[],i=ta.transform(n),o=ta.transform(t),a=i.translate,c=o.translate,l=i.rotate,s=o.rotate,f=i.skew,h=o.skew,g=i.scale,p=o.scale;return a[0]!=c[0]||a[1]!=c[1]?(r.push("translate(",null,",",null,")"),u.push({i:1,x:vu(a[0],c[0])},{i:3,x:vu(a[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),l!=s?(l-s>180?s+=360:s-l>180&&(l+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:vu(l,s)})):s&&r.push(r.pop()+"rotate("+s+")"),f!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:vu(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:vu(g[0],p[0])},{i:e-2,x:vu(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(n){for(var t,i=-1;++i<e;)r[(t=u[i]).i]=t.x(n);return r.join("")}}function Ou(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Yu(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Iu(n){for(var t=n.source,e=n.target,r=Vu(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function Zu(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Vu(n,t){if(n===t)return n;for(var e=Zu(n),r=Zu(t),u=e.pop(),i=r.pop(),o=null;u===i;)o=u,u=e.pop(),i=r.pop();return o}function Xu(n){n.fixed|=2}function $u(n){n.fixed&=-7}function Bu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Wu(n){n.fixed&=-5}function Ju(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,o=n.nodes,a=o.length,c=-1;++c<a;)i=o[c],null!=i&&(Ju(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var l=t*e[n.point.index];n.charge+=n.pointCharge=l,r+=l*n.point.x,u+=l*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function Gu(n,t){return ta.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=ri,n}function Ku(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(u=n.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function Qu(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,o=-1;++o<u;)e.push(i[o]);for(;null!=(n=r.pop());)t(n)}function ni(n){return n.children}function ti(n){return n.value}function ei(n,t){return t.value-n.value}function ri(n){return ta.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function ui(n){return n.x}function ii(n){return n.y}function oi(n,t,e){n.y0=t,n.y=e}function ai(n){return ta.range(n.length)}function ci(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function li(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function si(n){return n.reduce(fi,0)}function fi(n,t){return n+t[1]}function hi(n,t){return gi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function gi(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function pi(n){return[ta.min(n),ta.max(n)]}function vi(n,t){return n.value-t.value}function di(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function mi(n,t){n._pack_next=t,t._pack_prev=n}function yi(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Mi(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(l=e.length)){var e,r,u,i,o,a,c,l,s=1/0,f=-1/0,h=1/0,g=-1/0;if(e.forEach(xi),r=e[0],r.x=-r.r,r.y=0,t(r),l>1&&(u=e[1],u.x=u.r,u.y=0,t(u),l>2))for(i=e[2],wi(r,u,i),t(i),di(r,i),r._pack_prev=i,di(i,u),u=r._pack_next,o=3;l>o;o++){wi(r,u,i=e[o]);var p=0,v=1,d=1;for(a=u._pack_next;a!==u;a=a._pack_next,v++)if(yi(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!yi(c,i);c=c._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?mi(r,u=a):mi(r=c,u),o--):(di(r,i),u=i,t(i))}var m=(s+f)/2,y=(h+g)/2,M=0;for(o=0;l>o;o++)i=e[o],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(bi)}}function xi(n){n._pack_next=n._pack_prev=n}function bi(n){delete n._pack_next,delete n._pack_prev}function _i(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,o=u.length;++i<o;)_i(u[i],t,e,r)}function wi(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var o=t.r+e.r,a=u*u+i*i;o*=o,r*=r;var c=.5+(r-o)/(2*a),l=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=n.x+c*u+l*i,e.y=n.y+c*i-l*u}else e.x=n.x+r,e.y=n.y}function Si(n,t){return n.parent==t.parent?1:2}function ki(n){var t=n.children;return t.length?t[0]:n.t}function Ei(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ai(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Ni(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Ci(n,t,e){return n.a.parent===t.parent?n.a:e}function zi(n){return 1+ta.max(n,function(n){return n.y})}function qi(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Li(n){var t=n.children;return t&&t.length?Li(t[0]):n}function Ti(n){var t,e=n.children;return e&&(t=e.length)?Ti(e[t-1]):n}function Ri(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Di(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Pi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Ui(n){return n.rangeExtent?n.rangeExtent():Pi(n.range())}function ji(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Fi(n,t){var e,r=0,u=n.length-1,i=n[r],o=n[u];return i>o&&(e=r,r=u,u=e,e=i,i=o,o=e),n[r]=t.floor(i),n[u]=t.ceil(o),n}function Hi(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:bl}function Oi(n,t,e,r){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)u.push(e(n[o-1],n[o])),i.push(r(t[o-1],t[o]));return function(t){var e=ta.bisect(n,t,1,a)-1;return i[e](u[e](t))}}function Yi(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?Oi:ji,c=r?Yu:Ou;return o=u(n,t,c,e),a=u(t,n,c,mu),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(Du)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Xi(n,t)},i.tickFormat=function(t,e){return $i(n,t,e)},i.nice=function(t){return Zi(n,t),u()},i.copy=function(){return Yi(n,t,e,r)},u()}function Ii(n,t){return ta.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Zi(n,t){return Fi(n,Hi(Vi(n,t)[2]))}function Vi(n,t){null==t&&(t=10);var e=Pi(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Xi(n,t){return ta.range.apply(ta,Vi(n,t))}function $i(n,t,e){var r=Vi(n,t);if(e){var u=lc.exec(e);if(u.shift(),"s"===u[8]){var i=ta.formatPrefix(Math.max(va(r[0]),va(r[1])));return u[7]||(u[7]="."+Bi(i.scale(r[2]))),u[8]="f",e=ta.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+Wi(u[8],r)),e=u.join("")}else e=",."+Bi(r[2])+"f";return ta.format(e)}function Bi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Wi(n,t){var e=Bi(t[2]);return n in _l?Math.abs(e-Bi(Math.max(va(t[0]),va(t[1]))))+ +("e"!==n):e-2*("%"===n)}function Ji(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),o):t},o.nice=function(){var t=Fi(r.map(u),e?Math:Sl);return n.domain(t),r=t.map(i),o},o.ticks=function(){var n=Pi(r),o=[],a=n[0],c=n[1],l=Math.floor(u(a)),s=Math.ceil(u(c)),f=t%1?2:t;if(isFinite(s-l)){if(e){for(;s>l;l++)for(var h=1;f>h;h++)o.push(i(l)*h);o.push(i(l))}else for(o.push(i(l));l++<s;)for(var h=f-1;h>0;h--)o.push(i(l)*h);for(l=0;o[l]<a;l++);for(s=o.length;o[s-1]>c;s--);o=o.slice(l,s)}return o},o.tickFormat=function(n,t){if(!arguments.length)return wl;arguments.length<2?t=wl:"function"!=typeof t&&(t=ta.format(t));var r,a=Math.max(.1,n/o.ticks().length),c=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(n){return n/i(c(u(n)+r))<=a?t(n):""}},o.copy=function(){return Ji(n.copy(),t,e,r)},Ii(o,n)}function Gi(n,t,e){function r(t){return n(u(t))}var u=Ki(t),i=Ki(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Xi(e,n)},r.tickFormat=function(n,t){return $i(e,n,t)},r.nice=function(n){return r.domain(Zi(e,n))},r.exponent=function(o){return arguments.length?(u=Ki(t=o),i=Ki(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return Gi(n.copy(),t,e)},Ii(r,n)}function Ki(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Qi(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):0/0))-1)%i.length]}function r(t,e){return ta.range(n.length).map(function(n){return t+e*n})}var u,i,o;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new a;for(var i,o=-1,c=r.length;++o<c;)u.has(i=r[o])||u.set(i,n.push(i));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(i=n,o=0,t={t:"range",a:arguments},e):i},e.rangePoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],s=n.length<2?(c=(c+l)/2,0):(l-c)/(n.length-1+a);return i=r(c+s*a/2,s),o=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],s=n.length<2?(c=l=Math.round((c+l)/2),0):0|(l-c)/(n.length-1+a);return i=r(c+Math.round(s*a/2+(l-c-(n.length-1+a)*s)/2),s),o=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],s=u[l-0],f=u[1-l],h=(f-s)/(n.length-a+2*c);return i=r(s+h*c,h),l&&i.reverse(),o=h*(1-a),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],s=u[l-0],f=u[1-l],h=Math.floor((f-s)/(n.length-a+2*c));return i=r(s+Math.round((f-s-(n.length-a)*h)/2),h),l&&i.reverse(),o=Math.round(h*(1-a)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Pi(t.a[0])},e.copy=function(){return Qi(n,t)},e.domain(n)}function no(r,u){function i(){var n=0,t=u.length;for(a=[];++n<t;)a[n-1]=ta.quantile(r,n/t);return o}function o(n){return isNaN(n=+n)?void 0:u[ta.bisect(a,n)]}var a;return o.domain=function(u){return arguments.length?(r=u.map(t).filter(e).sort(n),i()):r},o.range=function(n){return arguments.length?(u=n,i()):u},o.quantiles=function(){return a},o.invertExtent=function(n){return n=u.indexOf(n),0>n?[0/0,0/0]:[n>0?a[n-1]:r[0],n<a.length?a[n]:r[r.length-1]]},o.copy=function(){return no(r,u)},i()}function to(n,t,e){function r(t){return e[Math.max(0,Math.min(o,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),o=e.length-1,r}var i,o;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?0/0:t/i+n,[t,t+1/i]},r.copy=function(){return to(n,t,e)},u()}function eo(n,t){function e(e){return e>=e?t[ta.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return eo(n,t)},e}function ro(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Xi(n,t)},t.tickFormat=function(t,e){return $i(n,t,e)},t.copy=function(){return ro(n)},t}function uo(){return 0}function io(n){return n.innerRadius}function oo(n){return n.outerRadius}function ao(n){return n.startAngle}function co(n){return n.endAngle}function lo(n){return n&&n.padAngle}function so(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function fo(n,t,e,r,u){var i=n[0]-t[0],o=n[1]-t[1],a=(u?r:-r)/Math.sqrt(i*i+o*o),c=a*o,l=-a*i,s=n[0]+c,f=n[1]+l,h=t[0]+c,g=t[1]+l,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(M*M*y-x*x),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,E=_-p,A=w-v,N=S-p,C=k-v;return E*E+A*A>N*N+C*C&&(_=S,w=k),[[_-c,w-l],[_*e/M,w*e/M]]}function ho(n){function t(t){function o(){l.push("M",i(n(s),a))}for(var c,l=[],s=[],f=-1,h=t.length,g=kt(e),p=kt(r);++f<h;)u.call(this,c=t[f],f)?s.push([+g.call(this,c,f),+p.call(this,c,f)]):s.length&&(o(),s=[]);return s.length&&o(),l.length?l.join(""):null}var e=Ar,r=Nr,u=Ne,i=go,o=i.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?i=n:(i=zl.get(n)||go).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function go(n){return n.join("L")}function po(n){return go(n)+"Z"}function vo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function mo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function yo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function Mo(n,t){return n.length<4?go(n):n[1]+_o(n.slice(1,-1),wo(n,t))}function xo(n,t){return n.length<3?go(n):n[0]+_o((n.push(n[0]),n),wo([n[n.length-2]].concat(n,[n[1]]),t))}function bo(n,t){return n.length<3?go(n):n[0]+_o(n,wo(n,t))}function _o(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return go(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],o=t[0],a=o,c=1;if(e&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=n[1],c=2),t.length>1){a=t[1],i=n[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var l=2;l<t.length;l++,c++)i=n[c],a=t[l],r+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(e){var s=n[c];r+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+s[0]+","+s[1]}return r}function wo(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],o=n[1],a=1,c=n.length;++a<c;)e=i,i=o,o=n[a],r.push([u*(o[0]-e[0]),u*(o[1]-e[1])]);return r}function So(n){if(n.length<3)return go(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],o=[u,u,u,(r=n[1])[0]],a=[i,i,i,r[1]],c=[u,",",i,"L",No(Tl,o),",",No(Tl,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),Co(c,o,a);return n.pop(),c.push("L",r),c.join("")}function ko(n){if(n.length<4)return go(n);for(var t,e=[],r=-1,u=n.length,i=[0],o=[0];++r<3;)t=n[r],i.push(t[0]),o.push(t[1]);for(e.push(No(Tl,i)+","+No(Tl,o)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Co(e,i,o);return e.join("")}function Eo(n){for(var t,e,r=-1,u=n.length,i=u+4,o=[],a=[];++r<4;)e=n[r%u],o.push(e[0]),a.push(e[1]);for(t=[No(Tl,o),",",No(Tl,a)],--r;++r<i;)e=n[r%u],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Co(t,o,a);return t.join("")}function Ao(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],o=n[0][1],a=n[e][0]-i,c=n[e][1]-o,l=-1;++l<=e;)r=n[l],u=l/e,r[0]=t*r[0]+(1-t)*(i+u*a),r[1]=t*r[1]+(1-t)*(o+u*c);return So(n)}function No(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Co(n,t,e){n.push("C",No(ql,t),",",No(ql,e),",",No(Ll,t),",",No(Ll,e),",",No(Tl,t),",",No(Tl,e))}function zo(n,t){return(t[1]-n[1])/(t[0]-n[0])}function qo(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],o=r[0]=zo(u,i);++t<e;)r[t]=(o+(o=zo(u=i,i=n[t+1])))/2;return r[t]=o,r}function Lo(n){for(var t,e,r,u,i=[],o=qo(n),a=-1,c=n.length-1;++a<c;)t=zo(n[a],n[a+1]),va(t)<Ta?o[a]=o[a+1]=0:(e=o[a]/t,r=o[a+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function To(n){return n.length<3?go(n):n[0]+_o(n,Lo(n))}function Ro(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]-ja,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Do(n){function t(t){function c(){v.push("M",a(n(m),f),s,l(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,M=t.length,x=kt(e),b=kt(u),_=e===r?function(){return g}:kt(r),w=u===i?function(){return p}:kt(i);++y<M;)o.call(this,h=t[y],y)?(d.push([g=+x.call(this,h,y),p=+b.call(this,h,y)]),m.push([+_.call(this,h,y),+w.call(this,h,y)])):d.length&&(c(),d=[],m=[]);return d.length&&c(),v.length?v.join(""):null}var e=Ar,r=Ar,u=0,i=Nr,o=Ne,a=go,c=a.key,l=a,s="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=zl.get(n)||go).key,l=a.reverse||a,s=a.closed?"M":"L",t):c
},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Po(n){return n.radius}function Uo(n){return[n.x,n.y]}function jo(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-ja;return[e*Math.cos(r),e*Math.sin(r)]}}function Fo(){return 64}function Ho(){return"circle"}function Oo(n){var t=Math.sqrt(n/Da);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Yo(n){return function(){var t,e;(t=this[n])&&(e=t[t.active])&&(--t.count?(delete t[t.active],t.active+=.5):delete this[n],e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function Io(n,t,e){return xa(n,Hl),n.namespace=t,n.id=e,n}function Zo(n,t,e,r){var u=n.id,i=n.namespace;return H(n,"function"==typeof e?function(n,o,a){n[i][u].tween.set(t,r(e.call(n,n.__data__,o,a)))}:(e=r(e),function(n){n[i][u].tween.set(t,e)}))}function Vo(n){return null==n&&(n=""),function(){this.textContent=n}}function Xo(n){return null==n?"__transition__":"__transition_"+n+"__"}function $o(n,t,e,r,u){var i=n[e]||(n[e]={active:0,count:0}),o=i[r];if(!o){var c=u.time;o=i[r]={tween:new a,time:c,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++i.count,ta.timer(function(u){function a(e){if(i.active>r)return s();var u=i[i.active];u&&(--i.count,delete i[i.active],u.event&&u.event.interrupt.call(n,n.__data__,u.index)),i.active=r,o.event&&o.event.start.call(n,n.__data__,t),o.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&v.push(r)}),h=o.ease,f=o.duration,ta.timer(function(){return p.c=l(e||1)?Ne:l,1},0,c)}function l(e){if(i.active!==r)return 1;for(var u=e/f,a=h(u),c=v.length;c>0;)v[--c].call(n,a);return u>=1?(o.event&&o.event.end.call(n,n.__data__,t),s()):void 0}function s(){return--i.count?delete i[r]:delete n[e],1}var f,h,g=o.delay,p=oc,v=[];return p.t=g+c,u>=g?a(u-g):(p.c=a,void 0)},0,c)}}function Bo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function Wo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function Jo(n){return n.toISOString()}function Go(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=ta.bisect(Wl,u);return i==Wl.length?[t.year,Vi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Wl[i-1]<Wl[i]/u?i-1:i]:[Kl,Vi(n,e)[2]]}return r.invert=function(t){return Ko(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(Ko)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,Ko(+e+1),t).length}var i=r.domain(),o=Pi(i),a=null==n?u(o,10):"number"==typeof n&&u(o,n);return a&&(n=a[0],t=a[1]),r.domain(Fi(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=Ko(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Ko(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Pi(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],Ko(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Go(n.copy(),t,e)},Ii(r,n)}function Ko(n){return new Date(n)}function Qo(n){return JSON.parse(n.responseText)}function na(n){var t=ua.createRange();return t.selectNode(ua.body),t.createContextualFragment(n.responseText)}var ta={version:"3.5.2"};Date.now||(Date.now=function(){return+new Date});var ea=[].slice,ra=function(n){return ea.call(n)},ua=document,ia=ua.documentElement,oa=window;try{ra(ia.childNodes)[0].nodeType}catch(aa){ra=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}try{ua.createElement("div").style.setProperty("opacity",0,"")}catch(ca){var la=oa.Element.prototype,sa=la.setAttribute,fa=la.setAttributeNS,ha=oa.CSSStyleDeclaration.prototype,ga=ha.setProperty;la.setAttribute=function(n,t){sa.call(this,n,t+"")},la.setAttributeNS=function(n,t,e){fa.call(this,n,t,e+"")},ha.setProperty=function(n,t,e){ga.call(this,n,t+"",e)}}ta.ascending=n,ta.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:0/0},ta.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},ta.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},ta.extent=function(n,t){var e,r,u,i=-1,o=n.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=n[i])&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<o;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},ta.sum=function(n,t){var r,u=0,i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)e(r=+n[o])&&(u+=r);else for(;++o<i;)e(r=+t.call(n,n[o],o))&&(u+=r);return u},ta.mean=function(n,r){var u,i=0,o=n.length,a=-1,c=o;if(1===arguments.length)for(;++a<o;)e(u=t(n[a]))?i+=u:--c;else for(;++a<o;)e(u=t(r.call(n,n[a],a)))?i+=u:--c;return c?i/c:void 0},ta.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},ta.median=function(r,u){var i,o=[],a=r.length,c=-1;if(1===arguments.length)for(;++c<a;)e(i=t(r[c]))&&o.push(i);else for(;++c<a;)e(i=t(u.call(r,r[c],c)))&&o.push(i);return o.length?ta.quantile(o.sort(n),.5):void 0},ta.variance=function(n,r){var u,i,o=n.length,a=0,c=0,l=-1,s=0;if(1===arguments.length)for(;++l<o;)e(u=t(n[l]))&&(i=u-a,a+=i/++s,c+=i*(u-a));else for(;++l<o;)e(u=t(r.call(n,n[l],l)))&&(i=u-a,a+=i/++s,c+=i*(u-a));return s>1?c/(s-1):void 0},ta.deviation=function(){var n=ta.variance.apply(this,arguments);return n?Math.sqrt(n):n};var pa=r(n);ta.bisectLeft=pa.left,ta.bisect=ta.bisectRight=pa.right,ta.bisector=function(t){return r(1===t.length?function(e,r){return n(t(e),r)}:t)},ta.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=0|Math.random()*i--,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},ta.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ta.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},ta.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=ta.min(arguments,u),e=new Array(t);++n<t;)for(var r,i=-1,o=e[n]=new Array(r);++i<r;)o[i]=arguments[i][n];return e},ta.transpose=function(n){return ta.zip.apply(ta,n)},ta.keys=function(n){var t=[];for(var e in n)t.push(e);return t},ta.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},ta.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},ta.merge=function(n){for(var t,e,r,u=n.length,i=-1,o=0;++i<u;)o+=n[i].length;for(e=new Array(o);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--o]=r[t];return e};var va=Math.abs;ta.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),1/0===(t-n)/e)throw new Error("infinite range");var r,u=[],o=i(va(e)),a=-1;if(n*=o,t*=o,e*=o,0>e)for(;(r=n+e*++a)>t;)u.push(r/o);else for(;(r=n+e*++a)<t;)u.push(r/o);return u},ta.map=function(n,t){var e=new a;if(n instanceof a)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)e.set(u,n[u]);else for(;++u<i;)e.set(t.call(n,r=n[u],u),r)}else for(var o in n)e.set(o,n[o]);return e};var da="__proto__",ma="\x00";o(a,{has:s,get:function(n){return this._[c(n)]},set:function(n,t){return this._[c(n)]=t},remove:f,keys:h,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:l(t),value:this._[t]});return n},size:g,empty:p,forEach:function(n){for(var t in this._)n.call(this,l(t),this._[t])}}),ta.nest=function(){function n(t,o,c){if(c>=i.length)return r?r.call(u,o):e?o.sort(e):o;for(var l,s,f,h,g=-1,p=o.length,v=i[c++],d=new a;++g<p;)(h=d.get(l=v(s=o[g])))?h.push(s):d.set(l,[s]);return t?(s=t(),f=function(e,r){s.set(e,n(t,r,c))}):(s={},f=function(e,r){s[e]=n(t,r,c)}),d.forEach(f),s}function t(n,e){if(e>=i.length)return n;var r=[],u=o[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],o=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(ta.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return o[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},ta.set=function(n){var t=new v;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},o(v,{has:s,add:function(n){return this._[c(n+="")]=!0,n},remove:f,values:h,size:g,empty:p,forEach:function(n){for(var t in this._)n.call(this,l(t))}}),ta.behavior={},ta.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=d(n,t,t[e]);return n};var ya=["webkit","ms","moz","Moz","o","O"];ta.dispatch=function(){for(var n=new M,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=x(n);return n},M.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ta.event=null,ta.requote=function(n){return n.replace(Ma,"\\$&")};var Ma=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,xa={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},ba=function(n,t){return t.querySelector(n)},_a=function(n,t){return t.querySelectorAll(n)},wa=ia.matches||ia[m(ia,"matchesSelector")],Sa=function(n,t){return wa.call(n,t)};"function"==typeof Sizzle&&(ba=function(n,t){return Sizzle(n,t)[0]||null},_a=Sizzle,Sa=Sizzle.matchesSelector),ta.selection=function(){return Na};var ka=ta.selection.prototype=[];ka.select=function(n){var t,e,r,u,i=[];n=k(n);for(var o=-1,a=this.length;++o<a;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var c=-1,l=r.length;++c<l;)(u=r[c])?(t.push(e=n.call(u,u.__data__,c,o)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return S(i)},ka.selectAll=function(n){var t,e,r=[];n=E(n);for(var u=-1,i=this.length;++u<i;)for(var o=this[u],a=-1,c=o.length;++a<c;)(e=o[a])&&(r.push(t=ra(n.call(e,e.__data__,a,u))),t.parentNode=e);return S(r)};var Ea={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ta.ns={prefix:Ea,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&(e=n.slice(0,t),n=n.slice(t+1)),Ea.hasOwnProperty(e)?{space:Ea[e],local:n}:n}},ka.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ta.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(A(t,n[t]));return this}return this.each(A(n,t))},ka.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=z(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!C(n[u]).test(t))return!1;return!0}for(t in n)this.each(q(t,n[t]));return this}return this.each(q(n,t))},ka.style=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t="");for(e in n)this.each(T(e,n[e],t));return this}if(2>r)return oa.getComputedStyle(this.node(),null).getPropertyValue(n);e=""}return this.each(T(n,t,e))},ka.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},ka.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},ka.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},ka.append=function(n){return n=D(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},ka.insert=function(n,t){return n=D(n),t=k(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},ka.remove=function(){return this.each(P)},ka.data=function(n,t){function e(n,e){var r,u,i,o=n.length,f=e.length,h=Math.min(o,f),g=new Array(f),p=new Array(f),v=new Array(o);if(t){var d,m=new a,y=new Array(o);for(r=-1;++r<o;)m.has(d=t.call(u=n[r],u.__data__,r))?v[r]=u:m.set(d,u),y[r]=d;for(r=-1;++r<f;)(u=m.get(d=t.call(e,i=e[r],r)))?u!==!0&&(g[r]=u,u.__data__=i):p[r]=U(i),m.set(d,!0);for(r=-1;++r<o;)m.get(y[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)u=n[r],i=e[r],u?(u.__data__=i,g[r]=u):p[r]=U(i);for(;f>r;++r)p[r]=U(e[r]);for(;o>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,c.push(p),l.push(g),s.push(v)}var r,u,i=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++i<o;)(u=r[i])&&(n[i]=u.__data__);return n}var c=O([]),l=S([]),s=S([]);if("function"==typeof n)for(;++i<o;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<o;)e(r=this[i],n);return l.enter=function(){return c},l.exit=function(){return s},l},ka.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},ka.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=j(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return S(u)},ka.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},ka.sort=function(n){n=F.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},ka.each=function(n){return H(this,function(t,e,r){n.call(t,t.__data__,e,r)})},ka.call=function(n){var t=ra(arguments);return n.apply(t[0]=this,t),this},ka.empty=function(){return!this.node()},ka.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},ka.size=function(){var n=0;return H(this,function(){++n}),n};var Aa=[];ta.selection.enter=O,ta.selection.enter.prototype=Aa,Aa.append=ka.append,Aa.empty=ka.empty,Aa.node=ka.node,Aa.call=ka.call,Aa.size=ka.size,Aa.select=function(n){for(var t,e,r,u,i,o=[],a=-1,c=this.length;++a<c;){r=(u=this[a]).update,o.push(t=[]),t.parentNode=u.parentNode;for(var l=-1,s=u.length;++l<s;)(i=u[l])?(t.push(r[l]=e=n.call(u.parentNode,i.__data__,l,a)),e.__data__=i.__data__):t.push(null)}return S(o)},Aa.insert=function(n,t){return arguments.length<2&&(t=Y(this)),ka.insert.call(this,n,t)},ta.select=function(n){var t=["string"==typeof n?ba(n,ua):n];return t.parentNode=ia,S([t])},ta.selectAll=function(n){var t=ra("string"==typeof n?_a(n,ua):n);return t.parentNode=ia,S([t])};var Na=ta.select(ia);ka.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(I(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(I(n,t,e))};var Ca=ta.map({mouseenter:"mouseover",mouseleave:"mouseout"});Ca.forEach(function(n){"on"+n in ua&&Ca.remove(n)});var za="onselectstart"in ua?null:m(ia.style,"userSelect"),qa=0;ta.mouse=function(n){return $(n,_())};var La=/WebKit/.test(oa.navigator.userAgent)?-1:0;ta.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=_().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return $(n,r)},ta.behavior.drag=function(){function n(){this.on("mousedown.drag",u).on("touchstart.drag",i)}function t(n,t,u,i,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:n,dy:e}))}function c(){t(h,v)&&(m.on(i+d,null).on(o+d,null),y(p&&ta.event.target===f),g({type:"dragend"}))}var l,s=this,f=ta.event.target,h=s.parentNode,g=e.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=ta.select(u()).on(i+d,a).on(o+d,c),y=X(),M=t(h,v);r?(l=r.apply(s,arguments),l=[l.x-M[0],l.y-M[1]]):l=[0,0],g({type:"dragstart"})}}var e=w(n,"drag","dragstart","dragend"),r=null,u=t(y,ta.mouse,J,"mousemove","mouseup"),i=t(B,ta.touch,W,"touchmove","touchend");return n.origin=function(t){return arguments.length?(r=t,n):r},ta.rebind(n,e,"on")},ta.touches=function(n,t){return arguments.length<2&&(t=_().touches),t?ra(t).map(function(t){var e=$(n,t);return e.identifier=t.identifier,e}):[]};var Ta=1e-6,Ra=Ta*Ta,Da=Math.PI,Pa=2*Da,Ua=Pa-Ta,ja=Da/2,Fa=Da/180,Ha=180/Da,Oa=Math.SQRT2,Ya=2,Ia=4;ta.interpolateZoom=function(n,t){function e(n){var t=n*y;if(m){var e=et(v),o=i/(Ya*h)*(e*rt(Oa*t+v)-tt(v));return[r+o*l,u+o*s,i*e/et(Oa*t+v)]}return[r+n*l,u+n*s,i*Math.exp(Oa*t)]}var r=n[0],u=n[1],i=n[2],o=t[0],a=t[1],c=t[2],l=o-r,s=a-u,f=l*l+s*s,h=Math.sqrt(f),g=(c*c-i*i+Ia*f)/(2*i*Ya*h),p=(c*c-i*i-Ia*f)/(2*c*Ya*h),v=Math.log(Math.sqrt(g*g+1)-g),d=Math.log(Math.sqrt(p*p+1)-p),m=d-v,y=(m||Math.log(c/i))/Oa;return e.duration=1e3*y,e},ta.behavior.zoom=function(){function n(n){n.on(z,s).on(Xa+".zoom",h).on("dblclick.zoom",g).on(T,f)}function t(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function e(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function r(n){k.k=Math.max(A[0],Math.min(A[1],n))}function u(n,t){t=e(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function i(t,e,i,o){t.__chart__={x:k.x,y:k.y,k:k.k},r(Math.pow(2,o)),u(v=e,i),t=ta.select(t),N>0&&(t=t.transition().duration(N)),t.call(n.event)}function o(){x&&x.domain(M.range().map(function(n){return(n-k.x)/k.k}).map(M.invert)),S&&S.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function a(n){C++||n({type:"zoomstart"})}function c(n){o(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function l(n){--C||n({type:"zoomend"}),v=null}function s(){function n(){s=1,u(ta.mouse(r),h),c(o)}function e(){f.on(q,null).on(L,null),g(s&&ta.event.target===i),l(o)}var r=this,i=ta.event.target,o=R.of(r,arguments),s=0,f=ta.select(oa).on(q,n).on(L,e),h=t(ta.mouse(r)),g=X();Fl.call(r),a(o)}function f(){function n(){var n=ta.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=t(n))}),n}function e(){var t=ta.event.target;ta.select(t).on(x,o).on(_,h),w.push(t);for(var e=ta.event.changedTouches,r=0,u=e.length;u>r;++r)d[e[r].identifier]=null;var a=n(),c=Date.now();if(1===a.length){if(500>c-y){var l=a[0];i(p,l,d[l.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),b()}y=c}else if(a.length>1){var l=a[0],s=a[1],f=l[0]-s[0],g=l[1]-s[1];m=f*f+g*g}}function o(){var n,t,e,i,o=ta.touches(p);Fl.call(p);for(var a=0,l=o.length;l>a;++a,i=null)if(e=o[a],i=d[e.identifier]){if(t)break;n=e,t=i}if(i){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+i[0])/2,(t[1]+i[1])/2],r(f*g)}y=null,u(n,t),c(v)}function h(){if(ta.event.touches.length){for(var t=ta.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}ta.selectAll(w).on(M,null),S.on(z,s).on(T,f),E(),l(v)}var g,p=this,v=R.of(p,arguments),d={},m=0,M=".zoom-"+ta.event.changedTouches[0].identifier,x="touchmove"+M,_="touchend"+M,w=[],S=ta.select(p),E=X();e(),a(v),S.on(z,null).on(T,e)}function h(){var n=R.of(this,arguments);m?clearTimeout(m):(p=t(v=d||ta.mouse(this)),Fl.call(this),a(n)),m=setTimeout(function(){m=null,l(n)},50),b(),r(Math.pow(2,.002*Za())*k.k),u(v,p),c(n)}function g(){var n=ta.mouse(this),e=Math.log(k.k)/Math.LN2;i(this,n,t(n),ta.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var p,v,d,m,y,M,x,_,S,k={x:0,y:0,k:1},E=[960,500],A=Va,N=250,C=0,z="mousedown.zoom",q="mousemove.zoom",L="mouseup.zoom",T="touchstart.zoom",R=w(n,"zoomstart","zoom","zoomend");return n.event=function(n){n.each(function(){var n=R.of(this,arguments),t=k;Ul?ta.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},a(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],u=v?v[0]:e/2,i=v?v[1]:r/2,o=ta.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:u-r[0]*a,y:i-r[1]*a,k:a},c(n)}}).each("interrupt.zoom",function(){l(n)}).each("end.zoom",function(){l(n)}):(this.__chart__=k,a(n),c(n),l(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},o(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:+t},o(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Va:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(d=t&&[+t[0],+t[1]],n):d},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(N=+t,n):N},n.x=function(t){return arguments.length?(x=t,M=t.copy(),k={x:0,y:0,k:1},n):x},n.y=function(t){return arguments.length?(S=t,_=t.copy(),k={x:0,y:0,k:1},n):S},ta.rebind(n,R,"on")};var Za,Va=[0,1/0],Xa="onwheel"in ua?(Za=function(){return-ta.event.deltaY*(ta.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ua?(Za=function(){return ta.event.wheelDelta},"mousewheel"):(Za=function(){return-ta.event.detail},"MozMousePixelScroll");ta.color=it,it.prototype.toString=function(){return this.rgb()+""},ta.hsl=ot;var $a=ot.prototype=new it;$a.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ot(this.h,this.s,this.l/n)},$a.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ot(this.h,this.s,n*this.l)},$a.rgb=function(){return at(this.h,this.s,this.l)},ta.hcl=ct;var Ba=ct.prototype=new it;Ba.brighter=function(n){return new ct(this.h,this.c,Math.min(100,this.l+Wa*(arguments.length?n:1)))},Ba.darker=function(n){return new ct(this.h,this.c,Math.max(0,this.l-Wa*(arguments.length?n:1)))},Ba.rgb=function(){return lt(this.h,this.c,this.l).rgb()},ta.lab=st;var Wa=18,Ja=.95047,Ga=1,Ka=1.08883,Qa=st.prototype=new it;Qa.brighter=function(n){return new st(Math.min(100,this.l+Wa*(arguments.length?n:1)),this.a,this.b)},Qa.darker=function(n){return new st(Math.max(0,this.l-Wa*(arguments.length?n:1)),this.a,this.b)},Qa.rgb=function(){return ft(this.l,this.a,this.b)},ta.rgb=dt;var nc=dt.prototype=new it;nc.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new dt(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new dt(u,u,u)},nc.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new dt(n*this.r,n*this.g,n*this.b)},nc.hsl=function(){return bt(this.r,this.g,this.b)},nc.toString=function(){return"#"+Mt(this.r)+Mt(this.g)+Mt(this.b)};var tc=ta.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});tc.forEach(function(n,t){tc.set(n,mt(t))}),ta.functor=kt,ta.xhr=At(Et),ta.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var o=Nt(n,t,null==e?r:u(e),i);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:u(n)):e},o}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=l)return o;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++<l;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}s=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++s):10===r&&(u=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;l>s;){var r=n.charCodeAt(s++),a=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++a);else if(r!==c)continue;return n.slice(t,s-a)}return n.slice(t)}for(var r,u,i={},o={},a=[],l=n.length,s=0,f=0;(r=e())!==o;){for(var h=[];r!==i&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,f++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new v,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(o).join(n)].concat(t.map(function(t){return u.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},ta.csv=ta.dsv(",","text/csv"),ta.tsv=ta.dsv("	","text/tab-separated-values");var ec,rc,uc,ic,oc,ac=oa[m(oa,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ta.timer=function(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,f:!1,n:null};rc?rc.n=i:ec=i,rc=i,uc||(ic=clearTimeout(ic),uc=1,ac(qt))},ta.timer.flush=function(){Lt(),Tt()},ta.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var cc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Dt);ta.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=ta.round(n,Rt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),cc[8+e/3]};var lc=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,sc=ta.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ta.round(n,Rt(n,t))).toFixed(Math.max(0,Math.min(20,Rt(n*(1+1e-15),t))))}}),fc=ta.time={},hc=Date;jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){gc.setUTCDate.apply(this._,arguments)},setDay:function(){gc.setUTCDay.apply(this._,arguments)},setFullYear:function(){gc.setUTCFullYear.apply(this._,arguments)},setHours:function(){gc.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){gc.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){gc.setUTCMinutes.apply(this._,arguments)},setMonth:function(){gc.setUTCMonth.apply(this._,arguments)},setSeconds:function(){gc.setUTCSeconds.apply(this._,arguments)},setTime:function(){gc.setTime.apply(this._,arguments)}};var gc=Date.prototype;fc.year=Ft(function(n){return n=fc.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),fc.years=fc.year.range,fc.years.utc=fc.year.utc.range,fc.day=Ft(function(n){var t=new hc(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),fc.days=fc.day.range,fc.days.utc=fc.day.utc.range,fc.dayOfYear=function(n){var t=fc.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=fc[n]=Ft(function(n){return(n=fc.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=fc.year(n).getDay();return Math.floor((fc.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});fc[n+"s"]=e.range,fc[n+"s"].utc=e.utc.range,fc[n+"OfYear"]=function(n){var e=fc.year(n).getDay();return Math.floor((fc.dayOfYear(n)+(e+t)%7)/7)}}),fc.week=fc.sunday,fc.weeks=fc.sunday.range,fc.weeks.utc=fc.sunday.utc.range,fc.weekOfYear=fc.sundayOfYear;var pc={"-":"",_:" ",0:"0"},vc=/^\s*\d+/,dc=/^%/;ta.locale=function(n){return{numberFormat:Pt(n),timeFormat:Ot(n)}};var mc=ta.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ta.format=mc.numberFormat,ta.geo={},ce.prototype={s:0,t:0,add:function(n){le(n,this.t,yc),le(yc.s,this.s,this),this.s?this.t+=yc.t:this.s=yc.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var yc=new ce;ta.geo.stream=function(n,t){n&&Mc.hasOwnProperty(n.type)?Mc[n.type](n,t):se(n,t)};var Mc={Feature:function(n,t){se(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)se(e[r].geometry,t)}},xc={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])
},LineString:function(n,t){fe(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)fe(e[r],t,0)},Polygon:function(n,t){he(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)he(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)se(e[r],t)}};ta.geo.area=function(n){return bc=0,ta.geo.stream(n,wc),bc};var bc,_c=new ce,wc={sphere:function(){bc+=4*Da},point:y,lineStart:y,lineEnd:y,polygonStart:function(){_c.reset(),wc.lineStart=ge},polygonEnd:function(){var n=2*_c;bc+=0>n?4*Da+n:n,wc.lineStart=wc.lineEnd=wc.point=y}};ta.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=pe([t*Fa,e*Fa]);if(m){var u=de(m,r),i=[u[1],-u[0],0],o=de(i,u);Me(o),o=xe(o);var c=t-p,l=c>0?1:-1,v=o[0]*Ha*l,d=va(c)>180;if(d^(v>l*p&&l*t>v)){var y=o[1]*Ha;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>l*p&&l*t>v)){var y=-o[1]*Ha;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=va(r)>180?r+(r>0?360:-360):r}else v=n,d=e;wc.point(n,e),t(n,e)}function i(){wc.lineStart()}function o(){u(v,d),wc.lineEnd(),va(y)>Ta&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function l(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var s,f,h,g,p,v,d,m,y,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=o,y=0,wc.polygonStart()},polygonEnd:function(){wc.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>_c?(s=-(h=180),f=-(g=90)):y>Ta?g=90:-Ta>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],ta.geo.stream(n,b);var t=M.length;if(t){M.sort(c);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],l(e[0],u)||l(e[1],u)?(a(u[0],e[1])>a(u[0],u[1])&&(u[1]=e[1]),a(e[0],u[1])>a(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var o,e,p=-1/0,t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(o=a(u[1],e[0]))>p&&(p=o,s=e[0],h=u[1])}return M=x=null,1/0===s||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[s,f],[h,g]]}}(),ta.geo.centroid=function(n){Sc=kc=Ec=Ac=Nc=Cc=zc=qc=Lc=Tc=Rc=0,ta.geo.stream(n,Dc);var t=Lc,e=Tc,r=Rc,u=t*t+e*e+r*r;return Ra>u&&(t=Cc,e=zc,r=qc,Ta>kc&&(t=Ec,e=Ac,r=Nc),u=t*t+e*e+r*r,Ra>u)?[0/0,0/0]:[Math.atan2(e,t)*Ha,nt(r/Math.sqrt(u))*Ha]};var Sc,kc,Ec,Ac,Nc,Cc,zc,qc,Lc,Tc,Rc,Dc={sphere:y,point:_e,lineStart:Se,lineEnd:ke,polygonStart:function(){Dc.lineStart=Ee},polygonEnd:function(){Dc.lineStart=Se}},Pc=Le(Ne,Pe,je,[-Da,-Da/2]),Uc=1e9;ta.geo.clipExtent=function(){var n,t,e,r,u,i,o={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(a){return arguments.length?(i=Ye(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),u&&(u.valid=!1,u=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ta.geo.conicEqualArea=function(){return Ie(Ze)}).raw=Ze,ta.geo.albers=function(){return ta.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ta.geo.albersUsa=function(){function n(n){var i=n[0],o=n[1];return t=null,e(i,o),t||(r(i,o),t)||u(i,o),t}var t,e,r,u,i=ta.geo.albers(),o=ta.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ta.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?o:u>=.166&&.234>u&&r>=-.214&&-.115>r?a:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),a.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),a.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var l=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*l,f-.238*l],[s+.455*l,f+.238*l]]).stream(c).point,r=o.translate([s-.307*l,f+.201*l]).clipExtent([[s-.425*l+Ta,f+.12*l+Ta],[s-.214*l-Ta,f+.234*l-Ta]]).stream(c).point,u=a.translate([s-.205*l,f+.212*l]).clipExtent([[s-.214*l+Ta,f+.166*l+Ta],[s-.115*l-Ta,f+.234*l-Ta]]).stream(c).point,n},n.scale(1070)};var jc,Fc,Hc,Oc,Yc,Ic,Zc={point:y,lineStart:y,lineEnd:y,polygonStart:function(){Fc=0,Zc.lineStart=Ve},polygonEnd:function(){Zc.lineStart=Zc.lineEnd=Zc.point=y,jc+=va(Fc/2)}},Vc={point:Xe,lineStart:y,lineEnd:y,polygonStart:y,polygonEnd:y},Xc={point:We,lineStart:Je,lineEnd:Ge,polygonStart:function(){Xc.lineStart=Ke},polygonEnd:function(){Xc.point=We,Xc.lineStart=Je,Xc.lineEnd=Ge}};ta.geo.path=function(){function n(n){return n&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),ta.geo.stream(n,o)),i.result()}function t(){return o=null,n}var e,r,u,i,o,a=4.5;return n.area=function(n){return jc=0,ta.geo.stream(n,u(Zc)),jc},n.centroid=function(n){return Ec=Ac=Nc=Cc=zc=qc=Lc=Tc=Rc=0,ta.geo.stream(n,u(Xc)),Rc?[Lc/Rc,Tc/Rc]:qc?[Cc/qc,zc/qc]:Nc?[Ec/Nc,Ac/Nc]:[0/0,0/0]},n.bounds=function(n){return Yc=Ic=-(Hc=Oc=1/0),ta.geo.stream(n,u(Vc)),[[Hc,Oc],[Yc,Ic]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||tr(n):Et,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new $e:new Qe(n),"function"!=typeof a&&i.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(ta.geo.albersUsa()).context(null)},ta.geo.transform=function(n){return{stream:function(t){var e=new er(t);for(var r in n)e[r]=n[r];return e}}},er.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ta.geo.projection=ur,ta.geo.projectionMutator=ir,(ta.geo.equirectangular=function(){return ur(ar)}).raw=ar.invert=ar,ta.geo.rotation=function(n){function t(t){return t=n(t[0]*Fa,t[1]*Fa),t[0]*=Ha,t[1]*=Ha,t}return n=lr(n[0]%360*Fa,n[1]*Fa,n.length>2?n[2]*Fa:0),t.invert=function(t){return t=n.invert(t[0]*Fa,t[1]*Fa),t[0]*=Ha,t[1]*=Ha,t},t},cr.invert=ar,ta.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=lr(-n[0]*Fa,-n[1]*Fa,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Ha,n[1]*=Ha}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=gr((t=+r)*Fa,u*Fa),n):t},n.precision=function(r){return arguments.length?(e=gr(t*Fa,(u=+r)*Fa),n):u},n.angle(90)},ta.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Fa,u=n[1]*Fa,i=t[1]*Fa,o=Math.sin(r),a=Math.cos(r),c=Math.sin(u),l=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*o)*e+(e=l*s-c*f*a)*e),c*s+l*f*a)},ta.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ta.range(Math.ceil(i/d)*d,u,d).map(h).concat(ta.range(Math.ceil(l/m)*m,c,m).map(g)).concat(ta.range(Math.ceil(r/p)*p,e,p).filter(function(n){return va(n%d)>Ta}).map(s)).concat(ta.range(Math.ceil(a/v)*v,o,v).filter(function(n){return va(n%m)>Ta}).map(f))}var e,r,u,i,o,a,c,l,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(c).slice(1),h(u).reverse().slice(1),g(l).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],l=+t[0][1],c=+t[1][1],i>u&&(t=i,i=u,u=t),l>c&&(t=l,l=c,c=t),n.precision(y)):[[i,l],[u,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(y)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=vr(a,o,90),f=dr(r,e,y),h=vr(l,c,90),g=dr(i,u,y),n):y},n.majorExtent([[-180,-90+Ta],[180,90-Ta]]).minorExtent([[-180,-80-Ta],[180,80+Ta]])},ta.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=mr,u=yr;return n.distance=function(){return ta.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},ta.geo.interpolate=function(n,t){return Mr(n[0]*Fa,n[1]*Fa,t[0]*Fa,t[1]*Fa)},ta.geo.length=function(n){return $c=0,ta.geo.stream(n,Bc),$c};var $c,Bc={sphere:y,point:y,lineStart:xr,lineEnd:y,polygonStart:y,polygonEnd:y},Wc=br(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ta.geo.azimuthalEqualArea=function(){return ur(Wc)}).raw=Wc;var Jc=br(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},Et);(ta.geo.azimuthalEquidistant=function(){return ur(Jc)}).raw=Jc,(ta.geo.conicConformal=function(){return Ie(_r)}).raw=_r,(ta.geo.conicEquidistant=function(){return Ie(wr)}).raw=wr;var Gc=br(function(n){return 1/n},Math.atan);(ta.geo.gnomonic=function(){return ur(Gc)}).raw=Gc,Sr.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-ja]},(ta.geo.mercator=function(){return kr(Sr)}).raw=Sr;var Kc=br(function(){return 1},Math.asin);(ta.geo.orthographic=function(){return ur(Kc)}).raw=Kc;var Qc=br(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ta.geo.stereographic=function(){return ur(Qc)}).raw=Qc,Er.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-ja]},(ta.geo.transverseMercator=function(){var n=kr(Er),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Er,ta.geom={},ta.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=kt(e),i=kt(r),o=n.length,a=[],c=[];for(t=0;o>t;t++)a.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(a.sort(zr),t=0;o>t;t++)c.push([a[t][0],-a[t][1]]);var l=Cr(a),s=Cr(c),f=s[0]===l[0],h=s[s.length-1]===l[l.length-1],g=[];for(t=l.length-1;t>=0;--t)g.push(n[a[l[t]][2]]);for(t=+f;t<s.length-h;++t)g.push(n[a[s[t]][2]]);return g}var e=Ar,r=Nr;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},ta.geom.polygon=function(n){return xa(n,nl),n};var nl=ta.geom.polygon.prototype=[];nl.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},nl.centroid=function(n){var t,e,r=-1,u=this.length,i=0,o=0,a=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],i+=(t[0]+a[0])*e,o+=(t[1]+a[1])*e;return[i*n,o*n]},nl.clip=function(n){for(var t,e,r,u,i,o,a=Tr(n),c=-1,l=this.length-Tr(this),s=this[l-1];++c<l;){for(t=n.slice(),n.length=0,u=this[c],i=t[(r=t.length-a)-1],e=-1;++e<r;)o=t[e],qr(o,s,u)?(qr(i,s,u)||n.push(Lr(i,o,s,u)),n.push(o)):qr(i,s,u)&&n.push(Lr(i,o,s,u)),i=o;a&&n.push(n[0]),s=u}return n};var tl,el,rl,ul,il,ol=[],al=[];Or.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Ir),t.length},Qr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nu.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=uu(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(eu(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ru(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(ru(this,e),n=e,e=n.U),e.C=!1,r.C=!0,eu(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,o=n.R;if(e=i?o?uu(o):i:o,u?u.L===n?u.L=e:u.R=e:this._=e,i&&o?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==o?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=o,o.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return n.C=!1,void 0;do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,eu(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ru(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,eu(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,ru(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,eu(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,ru(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},ta.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=a[0][0],u=a[0][1],i=a[1][0],o=a[1][1];return iu(e(n),a).cells.forEach(function(e,a){var c=e.edges,l=e.site,s=t[a]=c.length?c.map(function(n){var t=n.start();return[t.x,t.y]}):l.x>=r&&l.x<=i&&l.y>=u&&l.y<=o?[[r,o],[i,o],[i,u],[r,u]]:[];s.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Ta)*Ta,y:Math.round(o(n,t)/Ta)*Ta,i:t}})}var r=Ar,u=Nr,i=r,o=u,a=cl;return n?t(n):(t.links=function(n){return iu(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return iu(e(n)).cells.forEach(function(e,r){for(var u,i,o=e.site,a=e.edges.sort(Ir),c=-1,l=a.length,s=a[l-1].edge,f=s.l===o?s.r:s.l;++c<l;)u=s,i=f,s=a[c].edge,f=s.l===o?s.r:s.l,r<i.i&&r<f.i&&au(o,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=kt(r=n),t):r},t.y=function(n){return arguments.length?(o=kt(u=n),t):u},t.clipExtent=function(n){return arguments.length?(a=null==n?cl:n,t):a===cl?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===cl?null:a&&a[1]},t)};var cl=[[-1e6,-1e6],[1e6,1e6]];ta.geom.delaunay=function(n){return ta.geom.voronoi().triangles(n)},ta.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,o,a){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var c=n.x,s=n.y;if(null!=c)if(va(c-e)+va(s-r)<.01)l(n,t,e,r,u,i,o,a);else{var f=n.point;n.x=n.y=n.point=null,l(n,f,c,s,u,i,o,a),l(n,t,e,r,u,i,o,a)}else n.x=e,n.y=r,n.point=t}else l(n,t,e,r,u,i,o,a)}function l(n,t,e,r,u,o,a,c){var l=.5*(u+a),s=.5*(o+c),f=e>=l,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=su()),f?u=l:a=l,h?o=s:c=s,i(n,t,e,r,u,o,a,c)}var s,f,h,g,p,v,d,m,y,M=kt(a),x=kt(c);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,o)for(g=0;p>g;++g)s=n[g],s.x<v&&(v=s.x),s.y<d&&(d=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=su();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){fu(n,k,v,d,m,y)},k.find=function(n){return hu(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=s=null,k}var o,a=Ar,c=Nr;return(o=arguments.length)?(a=cu,c=lu,3===o&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(a=n,i):a},i.y=function(n){return arguments.length?(c=n,i):c},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},ta.interpolateRgb=gu,ta.interpolateObject=pu,ta.interpolateNumber=vu,ta.interpolateString=du;var ll=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sl=new RegExp(ll.source,"g");ta.interpolate=mu,ta.interpolators=[function(n,t){var e=typeof t;return("string"===e?tc.has(t)||/^(#|rgb\(|hsl\()/.test(t)?gu:du:t instanceof it?gu:Array.isArray(t)?yu:"object"===e&&isNaN(t)?pu:vu)(n,t)}],ta.interpolateArray=yu;var fl=function(){return Et},hl=ta.map({linear:fl,poly:ku,quad:function(){return _u},cubic:function(){return wu},sin:function(){return Eu},exp:function(){return Au},circle:function(){return Nu},elastic:Cu,back:zu,bounce:function(){return qu}}),gl=ta.map({"in":Et,out:xu,"in-out":bu,"out-in":function(n){return bu(xu(n))}});ta.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=hl.get(e)||fl,r=gl.get(r)||Et,Mu(r(e.apply(null,ea.call(arguments,1))))},ta.interpolateHcl=Lu,ta.interpolateHsl=Tu,ta.interpolateLab=Ru,ta.interpolateRound=Du,ta.transform=function(n){var t=ua.createElementNS(ta.ns.prefix.svg,"g");return(ta.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Pu(e?e.matrix:pl)})(n)},Pu.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var pl={a:1,b:0,c:0,d:1,e:0,f:0};ta.interpolateTransform=Hu,ta.layout={},ta.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Iu(n[e]));return t}},ta.layout.chord=function(){function n(){var n,l,f,h,g,p={},v=[],d=ta.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(l=0,g=-1;++g<i;)l+=u[h][g];v.push(l),m.push(ta.range(i)),n+=l}for(o&&d.sort(function(n,t){return o(v[n],v[t])}),a&&m.forEach(function(n,t){n.sort(function(n,e){return a(u[t][n],u[t][e])})}),n=(Pa-s*i)/n,l=0,h=-1;++h<i;){for(f=l,g=-1;++g<i;){var y=d[h],M=m[y][g],x=u[y][M],b=l,_=l+=x*n;p[y+"-"+M]={index:y,subindex:M,startAngle:b,endAngle:_,value:x}}r[y]={index:y,startAngle:f,endAngle:l,value:(l-f)/n},l+=s}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&t()}function t(){e.sort(function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,o,a,c,l={},s=0;return l.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,l):u},l.padding=function(n){return arguments.length?(s=n,e=r=null,l):s},l.sortGroups=function(n){return arguments.length?(o=n,e=r=null,l):o},l.sortSubgroups=function(n){return arguments.length?(a=n,e=null,l):a},l.sortChords=function(n){return arguments.length?(c=n,e&&t(),l):c},l.chords=function(){return e||n(),e},l.groups=function(){return r||n(),r},l},ta.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,o=t.cy-n.y,a=u-e,c=i*i+o*o;if(c>a*a/d){if(p>c){var l=t.charge/c;n.px-=i*l,n.py-=o*l}return!0}if(t.point&&c&&p>c){var l=t.pointCharge/c;n.px-=i*l,n.py-=o*l}}return!t.charge}}function t(n){n.px=ta.event.x,n.py=ta.event.y,a.resume()}var e,r,u,i,o,a={},c=ta.dispatch("start","tick","end"),l=[1,1],s=.9,f=vl,h=dl,g=-30,p=ml,v=.1,d=.64,m=[],y=[];return a.tick=function(){if((r*=.99)<.005)return c.end({type:"end",alpha:r=0}),!0;var t,e,a,f,h,p,d,M,x,b=m.length,_=y.length;for(e=0;_>e;++e)a=y[e],f=a.source,h=a.target,M=h.x-f.x,x=h.y-f.y,(p=M*M+x*x)&&(p=r*i[e]*((p=Math.sqrt(p))-u[e])/p,M*=p,x*=p,h.x-=M*(d=f.weight/(h.weight+f.weight)),h.y-=x*d,f.x+=M*(d=1-d),f.y+=x*d);if((d=r*v)&&(M=l[0]/2,x=l[1]/2,e=-1,d))for(;++e<b;)a=m[e],a.x+=(M-a.x)*d,a.y+=(x-a.y)*d;if(g)for(Ju(t=ta.geom.quadtree(m),r,o),e=-1;++e<b;)(a=m[e]).fixed||t.visit(n(a));for(e=-1;++e<b;)a=m[e],a.fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*s,a.y-=(a.py-(a.py=a.y))*s);c.tick({type:"tick",alpha:r})},a.nodes=function(n){return arguments.length?(m=n,a):m},a.links=function(n){return arguments.length?(y=n,a):y},a.size=function(n){return arguments.length?(l=n,a):l},a.linkDistance=function(n){return arguments.length?(f="function"==typeof n?n:+n,a):f},a.distance=a.linkDistance,a.linkStrength=function(n){return arguments.length?(h="function"==typeof n?n:+n,a):h},a.friction=function(n){return arguments.length?(s=+n,a):s},a.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,a):g},a.chargeDistance=function(n){return arguments.length?(p=n*n,a):Math.sqrt(p)},a.gravity=function(n){return arguments.length?(v=+n,a):v},a.theta=function(n){return arguments.length?(d=n*n,a):Math.sqrt(d)},a.alpha=function(n){return arguments.length?(n=+n,r?r=n>0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),ta.timer(a.tick)),a):r},a.start=function(){function n(n,r){if(!e){for(e=new Array(c),a=0;c>a;++a)e[a]=[];for(a=0;l>a;++a){var u=y[a];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var i,o=e[t],a=-1,l=o.length;++a<l;)if(!isNaN(i=o[a][n]))return i;return Math.random()*r}var t,e,r,c=m.length,s=y.length,p=l[0],v=l[1];for(t=0;c>t;++t)(r=m[t]).index=t,r.weight=0;for(t=0;s>t;++t)r=y[t],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;c>t;++t)r=m[t],isNaN(r.x)&&(r.x=n("x",p)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof f)for(t=0;s>t;++t)u[t]=+f.call(this,y[t],t);else for(t=0;s>t;++t)u[t]=f;if(i=[],"function"==typeof h)for(t=0;s>t;++t)i[t]=+h.call(this,y[t],t);else for(t=0;s>t;++t)i[t]=h;if(o=[],"function"==typeof g)for(t=0;c>t;++t)o[t]=+g.call(this,m[t],t);else for(t=0;c>t;++t)o[t]=g;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=ta.behavior.drag().origin(Et).on("dragstart.force",Xu).on("drag.force",t).on("dragend.force",$u)),arguments.length?(this.on("mouseover.force",Bu).on("mouseout.force",Wu).call(e),void 0):e},ta.rebind(a,c,"on")};var vl=20,dl=1,ml=1/0;ta.layout.hierarchy=function(){function n(u){var i,o=[u],a=[];for(u.depth=0;null!=(i=o.pop());)if(a.push(i),(l=e.call(n,i,i.depth))&&(c=l.length)){for(var c,l,s;--c>=0;)o.push(s=l[c]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=l}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return Qu(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),a}var t=ei,e=ni,r=ti;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ku(t,function(n){n.children&&(n.value=0)}),Qu(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ta.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(o=i.length)){var o,a,c,l=-1;for(r=t.value?r/t.value:0;++l<o;)n(a=i[l],e,c=a.value*r,u),e+=c}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var o=r.call(this,e,i);return n(o[0],0,u[0],u[1]/t(o[0])),o}var r=ta.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},Gu(e,r)},ta.layout.pie=function(){function n(o){var a,c=o.length,l=o.map(function(e,r){return+t.call(n,e,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof u?u.apply(this,arguments):u)-s,h=Math.min(Math.abs(f)/c,+("function"==typeof i?i.apply(this,arguments):i)),g=h*(0>f?-1:1),p=(f-c*g)/ta.sum(l),v=ta.range(c),d=[];return null!=e&&v.sort(e===yl?function(n,t){return l[t]-l[n]}:function(n,t){return e(o[n],o[t])}),v.forEach(function(n){d[n]={data:o[n],value:a=l[n],startAngle:s,endAngle:s+=a*p+g,padAngle:h}}),d}var t=Number,e=yl,r=0,u=Pa,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var yl={};ta.layout.stack=function(){function n(a,c){if(!(h=a.length))return a;var l=a.map(function(e,r){return t.call(n,e,r)}),s=l.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),o.call(n,t,e)]})}),f=e.call(n,s,c);l=ta.permute(l,f),s=ta.permute(s,f);var h,g,p,v,d=r.call(n,s,c),m=l[0].length;for(p=0;m>p;++p)for(u.call(n,l[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,l[g][p],v+=s[g-1][p][1],s[g][p][1]);return a}var t=Et,e=ai,r=ci,u=oi,i=ui,o=ii;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:Ml.get(t)||ai,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:xl.get(t)||ci,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(u=t,n):u},n};var Ml=ta.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(li),i=n.map(si),o=ta.range(r).sort(function(n,t){return u[n]-u[t]}),a=0,c=0,l=[],s=[];for(t=0;r>t;++t)e=o[t],c>a?(a+=i[e],l.push(e)):(c+=i[e],s.push(e));return s.reverse().concat(l)},reverse:function(n){return ta.range(n.length).reverse()},"default":ai}),xl=ta.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,o=[],a=0,c=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;i>e;++e)c[e]=(a-o[e])/2;return c},wiggle:function(n){var t,e,r,u,i,o,a,c,l,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=c=l=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,a=f[e][0]-f[e-1][0];s>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;i+=o*n[t][e][1]}g[e]=c-=u?i/u*a:0,l>c&&(l=c)}for(e=0;h>e;++e)g[e]-=l;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,o=1/u,a=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=o}for(e=0;i>e;++e)a[e]=0;return a},zero:ci});ta.layout.histogram=function(){function n(n,i){for(var o,a,c=[],l=n.map(e,this),s=r.call(this,l,i),f=u.call(this,s,l,i),i=-1,h=l.length,g=f.length-1,p=t?1:1/h;++i<g;)o=c[i]=[],o.dx=f[i+1]-(o.x=f[i]),o.y=0;if(g>0)for(i=-1;++i<h;)a=l[i],a>=s[0]&&a<=s[1]&&(o=c[ta.bisect(f,a,1,g)-1],o.y+=p,o.push(n[i]));return c}var t=!0,e=Number,r=pi,u=hi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=kt(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return gi(n,t)}:kt(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ta.layout.pack=function(){function n(n,i){var o=e.call(this,n,i),a=o[0],c=u[0],l=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,Qu(a,function(n){n.r=+s(n.value)}),Qu(a,Mi),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/l))/2;Qu(a,function(n){n.r+=f}),Qu(a,Mi),Qu(a,function(n){n.r-=f})}return _i(a,c/2,l/2,t?1:1/Math.max(2*a.r/c,2*a.r/l)),o}var t,e=ta.layout.hierarchy().sort(vi),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},Gu(n,e)},ta.layout.tree=function(){function n(n,u){var s=o.call(this,n,u),f=s[0],h=t(f);if(Qu(h,e),h.parent.m=-h.z,Ku(h,r),l)Ku(f,i);else{var g=f,p=f,v=f;Ku(f,function(n){n.x<g.x&&(g=n),n.x>p.x&&(p=n),n.depth>v.depth&&(v=n)});var d=a(g,p)/2-g.x,m=c[0]/(p.x+a(p,g)/2+d),y=c[1]/(v.depth||1);Ku(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,o=0,a=i.length;a>o;++o)r.push((i[o]=u={_:i[o],parent:t,children:(u=i[o].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Ni(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+a(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,o=t,c=u.parent.children[0],l=u.m,s=i.m,f=o.m,h=c.m;o=Ei(o),u=ki(u),o&&u;)c=ki(c),i=Ei(i),i.a=n,r=o.z+f-u.z-l+a(o._,u._),r>0&&(Ai(Ci(o,n,e),n,r),l+=r,s+=r),f+=o.m,l+=u.m,h+=c.m,s+=i.m;o&&!Ei(i)&&(i.t=o,i.m+=f-s),u&&!ki(c)&&(c.t=u,c.m+=l-h,e=n)}return e}function i(n){n.x*=c[0],n.y=n.depth*c[1]}var o=ta.layout.hierarchy().sort(null).value(null),a=Si,c=[1,1],l=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(l=null==(c=t)?i:null,n):l?null:c},n.nodeSize=function(t){return arguments.length?(l=null==(c=t)?null:i,n):l?c:null},Gu(n,o)},ta.layout.cluster=function(){function n(n,i){var o,a=t.call(this,n,i),c=a[0],l=0;Qu(c,function(n){var t=n.children;t&&t.length?(n.x=qi(t),n.y=zi(t)):(n.x=o?l+=e(n,o):0,n.y=0,o=n)});var s=Li(c),f=Ti(c),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return Qu(c,u?function(n){n.x=(n.x-c.x)*r[0],n.y=(c.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(c.y?n.y/c.y:1))*r[1]}),a}var t=ta.layout.hierarchy().sort(null).value(null),e=Si,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},Gu(n,t)},ta.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var o,a,c,l=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?l.dx:"dice"===g?l.dy:"slice-dice"===g?1&e.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(n(h,l.dx*l.dy/e.value),s.area=0;(c=h.length)>0;)s.push(o=h[c-1]),s.area+=o.area,"squarify"!==g||(a=r(s,v))<=p?(h.pop(),p=a):(s.area-=s.pop().area,u(s,v,l,!1),v=Math.min(l.dx,l.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,l,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,o=f(t),a=r.slice(),c=[];for(n(a,o.dx*o.dy/t.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,o=-1,a=n.length;++o<a;)(e=n[o].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,o=n.length,a=e.x,l=e.y,s=t?c(n.area/t):0;if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++i<o;)u=n[i],u.x=a,u.y=l,u.dy=s,a+=u.dx=Math.min(e.x+e.dx-a,s?c(u.area/s):0);u.z=!0,u.dx+=e.x+e.dx-a,e.y+=s,e.dy-=s}else{for((r||s>e.dx)&&(s=e.dx);++i<o;)u=n[i],u.x=a,u.y=l,u.dx=s,l+=u.dy=Math.min(e.y+e.dy-l,s?c(u.area/s):0);u.z=!1,u.dy+=e.y+e.dy-l,e.x+=s,e.dx-=s}}function i(r){var u=o||a(r),i=u[0];return i.x=0,i.y=0,i.dx=l[0],i.dy=l[1],o&&a.revalue(i),n([i],i.dx*i.dy/i.value),(o?e:t)(i),h&&(o=u),u}var o,a=ta.layout.hierarchy(),c=Math.round,l=[1,1],s=null,f=Ri,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(l=n,i):l},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?Ri(t):Di(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Di(t,n)}if(!arguments.length)return s;var r;return f=null==(s=n)?Ri:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(c=n?Math.round:Number,i):c!=Number},i.sticky=function(n){return arguments.length?(h=n,o=null,i):h
},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},Gu(i,a)},ta.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=ta.random.normal.apply(ta,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ta.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ta.scale={};var bl={floor:Et,ceil:Et};ta.scale.linear=function(){return Yi([0,1],[0,1],mu,!1)};var _l={s:1,g:1,p:1,r:1,e:1};ta.scale.log=function(){return Ji(ta.scale.linear().domain([0,1]),10,!0,[1,10])};var wl=ta.format(".0e"),Sl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ta.scale.pow=function(){return Gi(ta.scale.linear(),1,[0,1])},ta.scale.sqrt=function(){return ta.scale.pow().exponent(.5)},ta.scale.ordinal=function(){return Qi([],{t:"range",a:[[]]})},ta.scale.category10=function(){return ta.scale.ordinal().range(kl)},ta.scale.category20=function(){return ta.scale.ordinal().range(El)},ta.scale.category20b=function(){return ta.scale.ordinal().range(Al)},ta.scale.category20c=function(){return ta.scale.ordinal().range(Nl)};var kl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(yt),El=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(yt),Al=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(yt),Nl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(yt);ta.scale.quantile=function(){return no([],[])},ta.scale.quantize=function(){return to(0,1,[0,1])},ta.scale.threshold=function(){return eo([.5],[0,1])},ta.scale.identity=function(){return ro([0,1])},ta.svg={},ta.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),s=o.apply(this,arguments)-ja,f=a.apply(this,arguments)-ja,h=Math.abs(f-s),g=s>f?0:1;if(n>l&&(p=l,l=n,n=p),h>=Ua)return t(l,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,E=0,A=0,N=[];if((m=(+c.apply(this,arguments)||0)/2)&&(d=i===Cl?Math.sqrt(n*n+l*l):+i.apply(this,arguments),g||(A*=-1),l&&(A=nt(d/l*Math.sin(m))),n&&(E=nt(d/n*Math.sin(m)))),l){y=l*Math.cos(s+A),M=l*Math.sin(s+A),x=l*Math.cos(f-A),b=l*Math.sin(f-A);var C=Math.abs(f-s-2*A)<=Da?0:1;if(A&&so(y,M,x,b)===g^C){var z=(s+f)/2;y=l*Math.cos(z),M=l*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-E),w=n*Math.sin(f-E),S=n*Math.cos(s+E),k=n*Math.sin(s+E);var q=Math.abs(s-f+2*E)<=Da?0:1;if(E&&so(_,w,S,k)===1-g^q){var L=(s+f)/2;_=n*Math.cos(L),w=n*Math.sin(L),S=k=null}}else _=w=0;if((p=Math.min(Math.abs(l-n)/2,+u.apply(this,arguments)))>.001){v=l>n^g?0:1;var T=null==S?[_,w]:null==x?[y,M]:Lr([y,M],[S,k],[x,b],[_,w]),R=y-T[0],D=M-T[1],P=x-T[0],U=b-T[1],j=1/Math.sin(Math.acos((R*P+D*U)/(Math.sqrt(R*R+D*D)*Math.sqrt(P*P+U*U)))/2),F=Math.sqrt(T[0]*T[0]+T[1]*T[1]);if(null!=x){var H=Math.min(p,(l-F)/(j+1)),O=fo(null==S?[_,w]:[S,k],[y,M],l,H,g),Y=fo([x,b],[_,w],l,H,g);p===H?N.push("M",O[0],"A",H,",",H," 0 0,",v," ",O[1],"A",l,",",l," 0 ",1-g^so(O[1][0],O[1][1],Y[1][0],Y[1][1]),",",g," ",Y[1],"A",H,",",H," 0 0,",v," ",Y[0]):N.push("M",O[0],"A",H,",",H," 0 1,",v," ",Y[0])}else N.push("M",y,",",M);if(null!=S){var I=Math.min(p,(n-F)/(j-1)),Z=fo([y,M],[S,k],n,-I,g),V=fo([_,w],null==x?[y,M]:[x,b],n,-I,g);p===I?N.push("L",V[0],"A",I,",",I," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^so(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",I,",",I," 0 0,",v," ",Z[0]):N.push("L",V[0],"A",I,",",I," 0 0,",v," ",Z[0])}else N.push("L",_,",",w)}else N.push("M",y,",",M),null!=x&&N.push("A",l,",",l," 0 ",C,",",g," ",x,",",b),N.push("L",_,",",w),null!=S&&N.push("A",n,",",n," 0 ",q,",",1-g," ",S,",",k);return N.push("Z"),N.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=io,r=oo,u=uo,i=Cl,o=ao,a=co,c=lo;return n.innerRadius=function(t){return arguments.length?(e=kt(t),n):e},n.outerRadius=function(t){return arguments.length?(r=kt(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=kt(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==Cl?Cl:kt(t),n):i},n.startAngle=function(t){return arguments.length?(o=kt(t),n):o},n.endAngle=function(t){return arguments.length?(a=kt(t),n):a},n.padAngle=function(t){return arguments.length?(c=kt(t),n):c},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-ja;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Cl="auto";ta.svg.line=function(){return ho(Et)};var zl=ta.map({linear:go,"linear-closed":po,step:vo,"step-before":mo,"step-after":yo,basis:So,"basis-open":ko,"basis-closed":Eo,bundle:Ao,cardinal:bo,"cardinal-open":Mo,"cardinal-closed":xo,monotone:To});zl.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var ql=[0,2/3,1/3,0],Ll=[0,1/3,2/3,0],Tl=[0,1/6,2/3,1/6];ta.svg.line.radial=function(){var n=ho(Ro);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},mo.reverse=yo,yo.reverse=mo,ta.svg.area=function(){return Do(Et)},ta.svg.area.radial=function(){var n=Do(Ro);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ta.svg.chord=function(){function n(n,a){var c=t(this,i,n,a),l=t(this,o,n,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,l)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+u(l.r,l.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=a.call(n,u,r),o=c.call(n,u,r)-ja,s=l.call(n,u,r)-ja;return{r:i,a0:o,a1:s,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Da)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=mr,o=yr,a=Po,c=ao,l=co;return n.radius=function(t){return arguments.length?(a=kt(t),n):a},n.source=function(t){return arguments.length?(i=kt(t),n):i},n.target=function(t){return arguments.length?(o=kt(t),n):o},n.startAngle=function(t){return arguments.length?(c=kt(t),n):c},n.endAngle=function(t){return arguments.length?(l=kt(t),n):l},n},ta.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),o=e.call(this,n,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=mr,e=yr,r=Uo;return n.source=function(e){return arguments.length?(t=kt(e),n):t},n.target=function(t){return arguments.length?(e=kt(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ta.svg.diagonal.radial=function(){var n=ta.svg.diagonal(),t=Uo,e=n.projection;return n.projection=function(n){return arguments.length?e(jo(t=n)):t},n},ta.svg.symbol=function(){function n(n,r){return(Rl.get(t.call(this,n,r))||Oo)(e.call(this,n,r))}var t=Ho,e=Fo;return n.type=function(e){return arguments.length?(t=kt(e),n):t},n.size=function(t){return arguments.length?(e=kt(t),n):e},n};var Rl=ta.map({circle:Oo,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Pl)),e=t*Pl;return"M0,"+-t+"L"+e+",0"+" 0,"+t+" "+-e+",0"+"Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/Dl),e=t*Dl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/Dl),e=t*Dl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ta.svg.symbolTypes=Rl.keys();var Dl=Math.sqrt(3),Pl=Math.tan(30*Fa);ka.transition=function(n){for(var t,e,r=Ul||++Ol,u=Xo(n),i=[],o=jl||{time:Date.now(),ease:Su,delay:0,duration:250},a=-1,c=this.length;++a<c;){i.push(t=[]);for(var l=this[a],s=-1,f=l.length;++s<f;)(e=l[s])&&$o(e,s,u,r,o),t.push(e)}return Io(i,u,r)},ka.interrupt=function(n){return this.each(null==n?Fl:Yo(Xo(n)))};var Ul,jl,Fl=Yo(Xo()),Hl=[],Ol=0;Hl.call=ka.call,Hl.empty=ka.empty,Hl.node=ka.node,Hl.size=ka.size,ta.transition=function(n,t){return n&&n.transition?Ul?n.transition(t):n:Na.transition(n)},ta.transition.prototype=Hl,Hl.select=function(n){var t,e,r,u=this.id,i=this.namespace,o=[];n=k(n);for(var a=-1,c=this.length;++a<c;){o.push(t=[]);for(var l=this[a],s=-1,f=l.length;++s<f;)(r=l[s])&&(e=n.call(r,r.__data__,s,a))?("__data__"in r&&(e.__data__=r.__data__),$o(e,s,i,u,r[i][u]),t.push(e)):t.push(null)}return Io(o,i,u)},Hl.selectAll=function(n){var t,e,r,u,i,o=this.id,a=this.namespace,c=[];n=E(n);for(var l=-1,s=this.length;++l<s;)for(var f=this[l],h=-1,g=f.length;++h<g;)if(r=f[h]){i=r[a][o],e=n.call(r,r.__data__,h,l),c.push(t=[]);for(var p=-1,v=e.length;++p<v;)(u=e[p])&&$o(u,p,a,o,i),t.push(u)}return Io(c,a,o)},Hl.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=j(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]);for(var e=this[i],a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return Io(u,this.namespace,this.id)},Hl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):H(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Hl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?Hu:mu,a=ta.ns.qualify(n);return Zo(this,"attr."+n,t,a.local?i:u)},Hl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=ta.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Hl.style=function(n,t,e){function r(){this.style.removeProperty(n)}function u(t){return null==t?r:(t+="",function(){var r,u=oa.getComputedStyle(this,null).getPropertyValue(n);return u!==t&&(r=mu(u,t),function(t){this.style.setProperty(n,r(t),e)})})}var i=arguments.length;if(3>i){if("string"!=typeof n){2>i&&(t="");for(e in n)this.style(e,n[e],t);return this}e=""}return Zo(this,"style."+n,t,u)},Hl.styleTween=function(n,t,e){function r(r,u){var i=t.call(this,r,u,oa.getComputedStyle(this,null).getPropertyValue(n));return i&&function(t){this.style.setProperty(n,i(t),e)}}return arguments.length<3&&(e=""),this.tween("style."+n,r)},Hl.text=function(n){return Zo(this,"text",n,Vo)},Hl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Hl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ta.ease.apply(ta,arguments)),H(this,function(r){r[e][t].ease=n}))},Hl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:H(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Hl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:H(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Hl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=jl,i=Ul;try{Ul=e,H(this,function(t,u,i){jl=t[r][e],n.call(t,t.__data__,u,i)})}finally{jl=u,Ul=i}}else H(this,function(u){var i=u[r][e];(i.event||(i.event=ta.dispatch("start","end","interrupt"))).on(n,t)});return this},Hl.transition=function(){for(var n,t,e,r,u=this.id,i=++Ol,o=this.namespace,a=[],c=0,l=this.length;l>c;c++){a.push(n=[]);for(var t=this[c],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[o][u],$o(e,s,o,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Io(a,o,i)},ta.svg.axis=function(){function n(n){n.each(function(){var n,l=ta.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==c?f.ticks?f.ticks.apply(f,a):f.domain():c,g=null==t?f.tickFormat?f.tickFormat.apply(f,a):Et:t,p=l.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Ta),d=ta.transition(p.exit()).style("opacity",Ta).remove(),m=ta.transition(p.order()).style("opacity",1),y=Math.max(u,0)+o,M=Ui(f),x=l.selectAll(".domain").data([0]),b=(x.enter().append("path").attr("class","domain"),ta.transition(x));v.append("line"),v.append("text");var _,w,S,k,E=v.select("line"),A=m.select("line"),N=p.select("text").text(g),C=v.select("text"),z=m.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=Bo,_="x",S="y",w="x2",k="y2",N.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),b.attr("d","M"+M[0]+","+q*i+"V0H"+M[1]+"V"+q*i)):(n=Wo,_="y",S="x",w="y2",k="x2",N.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),b.attr("d","M"+q*i+","+M[0]+"H0V"+M[1]+"H"+q*i)),E.attr(k,q*u),C.attr(S,q*y),A.attr(w,0).attr(k,q*u),z.attr(_,0).attr(S,q*y),f.rangeBand){var L=f,T=L.rangeBand()/2;s=f=function(n){return L(n)+T}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=ta.scale.linear(),r=Yl,u=6,i=6,o=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Il?t+"":Yl,n):r},n.ticks=function(){return arguments.length?(a=arguments,n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var Yl="bottom",Il={top:1,right:1,bottom:1,left:1};ta.svg.brush=function(){function n(i){i.each(function(){var i=ta.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=i.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=i.selectAll(".resize").data(p,Et);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Zl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var s,f=ta.transition(i),h=ta.transition(o);c&&(s=Ui(c),h.attr("x",s[0]).attr("width",s[1]-s[0]),e(f)),l&&(s=Ui(l),h.attr("y",s[0]).attr("height",s[1]-s[0]),r(f)),t(f)})}function t(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+s[+/e$/.test(n)]+","+f[+/^s/.test(n)]+")"})}function e(n){n.select(".extent").attr("x",s[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function r(n){n.select(".extent").attr("y",f[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function u(){function u(){32==ta.event.keyCode&&(N||(y=null,z[0]-=s[1],z[1]-=f[1],N=2),b())}function p(){32==ta.event.keyCode&&2==N&&(z[0]+=s[1],z[1]+=f[1],N=0,b())}function v(){var n=ta.mouse(x),u=!1;M&&(n[0]+=M[0],n[1]+=M[1]),N||(ta.event.altKey?(y||(y=[(s[0]+s[1])/2,(f[0]+f[1])/2]),z[0]=s[+(n[0]<y[0])],z[1]=f[+(n[1]<y[1])]):y=null),E&&d(n,c,0)&&(e(S),u=!0),A&&d(n,l,1)&&(r(S),u=!0),u&&(t(S),w({type:"brush",mode:N?"move":"resize"}))}function d(n,t,e){var r,u,a=Ui(t),c=a[0],l=a[1],p=z[e],v=e?f:s,d=v[1]-v[0];return N&&(c-=p,l-=d+p),r=(e?g:h)?Math.max(c,Math.min(l,n[e])):n[e],N?u=(r+=p)+d:(y&&(p=Math.max(c,Math.min(l,2*y[e]-r))),r>p?(u=r,r=p):u=p),v[0]!=r||v[1]!=u?(e?o=null:i=null,v[0]=r,v[1]=u,!0):void 0}function m(){v(),S.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ta.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),w({type:"brushend"})}var y,M,x=this,_=ta.select(ta.event.target),w=a.of(x,arguments),S=ta.select(x),k=_.datum(),E=!/^(n|s)$/.test(k)&&c,A=!/^(e|w)$/.test(k)&&l,N=_.classed("extent"),C=X(),z=ta.mouse(x),q=ta.select(oa).on("keydown.brush",u).on("keyup.brush",p);if(ta.event.changedTouches?q.on("touchmove.brush",v).on("touchend.brush",m):q.on("mousemove.brush",v).on("mouseup.brush",m),S.interrupt().selectAll("*").interrupt(),N)z[0]=s[0]-z[0],z[1]=f[0]-z[1];else if(k){var L=+/w$/.test(k),T=+/^n/.test(k);M=[s[1-L]-z[0],f[1-T]-z[1]],z[0]=s[L],z[1]=f[T]}else ta.event.altKey&&(y=z.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),ta.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),v()}var i,o,a=w(n,"brushstart","brush","brushend"),c=null,l=null,s=[0,0],f=[0,0],h=!0,g=!0,p=Vl[0];return n.event=function(n){n.each(function(){var n=a.of(this,arguments),t={x:s,y:f,i:i,j:o},e=this.__chart__||t;this.__chart__=t,Ul?ta.select(this).transition().each("start.brush",function(){i=e.i,o=e.j,s=e.x,f=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=yu(s,t.x),r=yu(f,t.y);return i=o=null,function(u){s=t.x=e(u),f=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){i=t.i,o=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,p=Vl[!c<<1|!l],n):c},n.y=function(t){return arguments.length?(l=t,p=Vl[!c<<1|!l],n):l},n.clamp=function(t){return arguments.length?(c&&l?(h=!!t[0],g=!!t[1]):c?h=!!t:l&&(g=!!t),n):c&&l?[h,g]:c?h:l?g:null},n.extent=function(t){var e,r,u,a,h;return arguments.length?(c&&(e=t[0],r=t[1],l&&(e=e[0],r=r[0]),i=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(h=e,e=r,r=h),(e!=s[0]||r!=s[1])&&(s=[e,r])),l&&(u=t[0],a=t[1],c&&(u=u[1],a=a[1]),o=[u,a],l.invert&&(u=l(u),a=l(a)),u>a&&(h=u,u=a,a=h),(u!=f[0]||a!=f[1])&&(f=[u,a])),n):(c&&(i?(e=i[0],r=i[1]):(e=s[0],r=s[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(h=e,e=r,r=h))),l&&(o?(u=o[0],a=o[1]):(u=f[0],a=f[1],l.invert&&(u=l.invert(u),a=l.invert(a)),u>a&&(h=u,u=a,a=h))),c&&l?[[e,u],[r,a]]:c?[e,r]:l&&[u,a])},n.clear=function(){return n.empty()||(s=[0,0],f=[0,0],i=o=null),n},n.empty=function(){return!!c&&s[0]==s[1]||!!l&&f[0]==f[1]},ta.rebind(n,a,"on")};var Zl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Vl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xl=fc.format=mc.timeFormat,$l=Xl.utc,Bl=$l("%Y-%m-%dT%H:%M:%S.%LZ");Xl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Jo:Bl,Jo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Jo.toString=Bl.toString,fc.second=Ft(function(n){return new hc(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),fc.seconds=fc.second.range,fc.seconds.utc=fc.second.utc.range,fc.minute=Ft(function(n){return new hc(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),fc.minutes=fc.minute.range,fc.minutes.utc=fc.minute.utc.range,fc.hour=Ft(function(n){var t=n.getTimezoneOffset()/60;return new hc(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),fc.hours=fc.hour.range,fc.hours.utc=fc.hour.utc.range,fc.month=Ft(function(n){return n=fc.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),fc.months=fc.month.range,fc.months.utc=fc.month.utc.range;var Wl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Jl=[[fc.second,1],[fc.second,5],[fc.second,15],[fc.second,30],[fc.minute,1],[fc.minute,5],[fc.minute,15],[fc.minute,30],[fc.hour,1],[fc.hour,3],[fc.hour,6],[fc.hour,12],[fc.day,1],[fc.day,2],[fc.week,1],[fc.month,1],[fc.month,3],[fc.year,1]],Gl=Xl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",Ne]]),Kl={range:function(n,t,e){return ta.range(Math.ceil(n/e)*e,+t,e).map(Ko)},floor:Et,ceil:Et};Jl.year=fc.year,fc.scale=function(){return Go(ta.scale.linear(),Jl,Gl)};var Ql=Jl.map(function(n){return[n[0].utc,n[1]]}),ns=$l.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",Ne]]);Ql.year=fc.year.utc,fc.scale.utc=function(){return Go(ta.scale.linear(),Ql,ns)},ta.text=At(function(n){return n.responseText}),ta.json=function(n,t){return Nt(n,"application/json",Qo,t)},ta.html=function(n,t){return Nt(n,"text/html",na,t)},ta.xml=At(function(n){return n.responseXML}),"function"==typeof define&&define.amd?define(ta):"object"==typeof module&&module.exports&&(module.exports=ta),this.d3=ta}();/*!
 * jsTree - v3.3.1 - 2016-05-05 - (MIT)
 * http://jstree.com/
 *
 * Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
 *
 * Licensed same as jquery - under the terms of the MIT License
 *   http://www.opensource.org/licenses/mit-license.php
 */
/*!
 * if using jslint please allow for the jQuery global and use following options:
 * jslint: loopfunc: true, browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true
 */
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a,b){"use strict";if(!a.jstree){var c=0,d=!1,e=!1,f=!1,g=[],h=a("script:last").attr("src"),i=window.document,j=i.createElement("LI"),k,l;j.setAttribute("role","treeitem"),k=i.createElement("em"),k.className="jstree-icon jstree-ocl",k.setAttribute("role","presentation"),j.appendChild(k),k=i.createElement("A"),k.className="jstree-anchor",k.setAttribute("href","#"),k.setAttribute("tabindex","-1"),l=i.createElement("em"),l.className="jstree-icon jstree-themeicon",l.setAttribute("role","presentation"),k.appendChild(l),j.appendChild(k),k=l=null,a.jstree={version:"3.3.1",defaults:{plugins:[]},plugins:{},path:h&&-1!==h.indexOf("/")?h.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},a.jstree.create=function(b,d){var e=new a.jstree.core(++c),f=d;return d=a.extend(!0,{},a.jstree.defaults,d),f&&f.plugins&&(d.plugins=f.plugins),a.each(d.plugins,function(a,b){"core"!==a&&(e=e.plugin(b,d[b]))}),a(b).data("jstree",e),e.init(b,d),e},a.jstree.destroy=function(){a(".jstree:jstree").jstree("destroy"),a(i).off(".jstree")},a.jstree.core=function(a){this._id=a,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},a.jstree.reference=function(b){var c=null,d=null;if(!b||!b.id||b.tagName&&b.nodeType||(b=b.id),!d||!d.length)try{d=a(b)}catch(e){}if(!d||!d.length)try{d=a("#"+b.replace(a.jstree.idregex,"\\$&"))}catch(e){}return d&&d.length&&(d=d.closest(".jstree")).length&&(d=d.data("jstree"))?c=d:a(".jstree").each(function(){var d=a(this).data("jstree");return d&&d._model.data[b]?(c=d,!1):void 0}),c},a.fn.jstree=function(c){var d="string"==typeof c,e=Array.prototype.slice.call(arguments,1),f=null;return c!==!0||this.length?(this.each(function(){var g=a.jstree.reference(this),h=d&&g?g[c]:null;return f=d&&h?h.apply(g,e):null,g||d||c!==b&&!a.isPlainObject(c)||a.jstree.create(this,c),(g&&!d||c===!0)&&(f=g||!1),null!==f&&f!==b?!1:void 0}),null!==f&&f!==b?f:this):!1},a.expr[":"].jstree=a.expr.createPseudo(function(c){return function(c){return a(c).hasClass("jstree")&&a(c).data("jstree")!==b}}),a.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:a.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0},a.jstree.core.prototype={plugin:function(b,c){var d=a.jstree.plugins[b];return d?(this._data[b]={},d.prototype=this,new d(c,this)):this},init:function(b,c){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[a.jstree.root]={id:a.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=a(b).addClass("jstree jstree-"+this._id),this.settings=c,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='tree-item'><em class='jstree-icon jstree-ocl'></em><a class='jstree-anchor' href='#'><em class='jstree-icon jstree-themeicon-hidden'></em>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().height()||24,this.trigger("loading"),this.load_node(a.jstree.root)},destroy:function(a){if(this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(b){}a||this.element.empty(),this.teardown()},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")}),this.element=null},bind:function(){var b="",c=null,d=0;this.element.on("dblclick.jstree",function(a){if(a.target.tagName&&"input"===a.target.tagName.toLowerCase())return!0;if(i.selection&&i.selection.empty)i.selection.empty();else if(window.getSelection){var b=window.getSelection();try{b.removeAllRanges(),b.collapse()}catch(c){}}}).on("mousedown.jstree",a.proxy(function(a){a.target===this.element[0]&&(a.preventDefault(),d=+new Date)},this)).on("mousedown.jstree",".jstree-ocl",function(a){a.preventDefault()}).on("click.jstree",".jstree-ocl",a.proxy(function(a){this.toggle_node(a.target)},this)).on("dblclick.jstree",".jstree-anchor",a.proxy(function(a){return a.target.tagName&&"input"===a.target.tagName.toLowerCase()?!0:void(this.settings.core.dblclick_toggle&&this.toggle_node(a.target))},this)).on("click.jstree",".jstree-anchor",a.proxy(function(b){b.preventDefault(),b.currentTarget!==i.activeElement&&a(b.currentTarget).focus(),this.activate_node(b.currentTarget,b)},this)).on("keydown.jstree",".jstree-anchor",a.proxy(function(b){if(b.target.tagName&&"input"===b.target.tagName.toLowerCase())return!0;if(32!==b.which&&13!==b.which&&(b.shiftKey||b.ctrlKey||b.altKey||b.metaKey))return!0;var c=null;switch(this._data.core.rtl&&(37===b.which?b.which=39:39===b.which&&(b.which=37)),b.which){case 32:b.ctrlKey&&(b.type="click",a(b.currentTarget).trigger(b));break;case 13:b.type="click",a(b.currentTarget).trigger(b);break;case 37:b.preventDefault(),this.is_open(b.currentTarget)?this.close_node(b.currentTarget):(c=this.get_parent(b.currentTarget),c&&c.id!==a.jstree.root&&this.get_node(c,!0).children(".jstree-anchor").focus());break;case 38:b.preventDefault(),c=this.get_prev_dom(b.currentTarget),c&&c.length&&c.children(".jstree-anchor").focus();break;case 39:b.preventDefault(),this.is_closed(b.currentTarget)?this.open_node(b.currentTarget,function(a){this.get_node(a,!0).children(".jstree-anchor").focus()}):this.is_open(b.currentTarget)&&(c=this.get_node(b.currentTarget,!0).children(".jstree-children")[0],c&&a(this._firstChild(c)).children(".jstree-anchor").focus());break;case 40:b.preventDefault(),c=this.get_next_dom(b.currentTarget),c&&c.length&&c.children(".jstree-anchor").focus();break;case 106:this.open_all();break;case 36:b.preventDefault(),c=this._firstChild(this.get_container_ul()[0]),c&&a(c).children(".jstree-anchor").filter(":visible").focus();break;case 35:b.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().focus();break;case 113:b.preventDefault(),this.edit(b.currentTarget)}},this)).on("load_node.jstree",a.proxy(function(b,c){c.status&&(c.node.id!==a.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(a.proxy(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var b=[],c,d;for(c=0,d=this._data.core.selected.length;d>c;c++)b=b.concat(this._model.data[this._data.core.selected[c]].parents);for(b=a.vakata.array_unique(b),c=0,d=b.length;d>c;c++)this.open_node(b[c],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}},this),0))},this)).on("keypress.jstree",a.proxy(function(d){if(d.target.tagName&&"input"===d.target.tagName.toLowerCase())return!0;c&&clearTimeout(c),c=setTimeout(function(){b=""},500);var e=String.fromCharCode(d.which).toLowerCase(),f=this.element.find(".jstree-anchor").filter(":visible"),g=f.index(i.activeElement)||0,h=!1;if(b+=e,b.length>1){if(f.slice(g).each(a.proxy(function(c,d){return 0===a(d).text().toLowerCase().indexOf(b)?(a(d).focus(),h=!0,!1):void 0},this)),h)return;if(f.slice(0,g).each(a.proxy(function(c,d){return 0===a(d).text().toLowerCase().indexOf(b)?(a(d).focus(),h=!0,!1):void 0},this)),h)return}if(new RegExp("^"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(b)){if(f.slice(g+1).each(a.proxy(function(b,c){return a(c).text().toLowerCase().charAt(0)===e?(a(c).focus(),h=!0,!1):void 0},this)),h)return;if(f.slice(0,g+1).each(a.proxy(function(b,c){return a(c).text().toLowerCase().charAt(0)===e?(a(c).focus(),h=!0,!1):void 0},this)),h)return}},this)).on("init.jstree",a.proxy(function(){var a=this.settings.core.themes;this._data.core.themes.dots=a.dots,this._data.core.themes.stripes=a.stripes,this._data.core.themes.icons=a.icons,this.set_theme(a.name||"default",a.url),this.set_theme_variant(a.variant)},this)).on("loading.jstree",a.proxy(function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"]()},this)).on("blur.jstree",".jstree-anchor",a.proxy(function(b){this._data.core.focused=null,a(b.currentTarget).filter(".jstree-hovered").mouseleave(),this.element.attr("tabindex","0")},this)).on("focus.jstree",".jstree-anchor",a.proxy(function(b){var c=this.get_node(b.currentTarget);c&&c.id&&(this._data.core.focused=c.id),this.element.find(".jstree-hovered").not(b.currentTarget).mouseleave(),a(b.currentTarget).mouseenter(),this.element.attr("tabindex","-1")},this)).on("focus.jstree",a.proxy(function(){if(+new Date-d>500&&!this._data.core.focused){d=0;var a=this.get_node(this.element.attr("aria-activedescendant"),!0);a&&a.find("> .jstree-anchor").focus()}},this)).on("mouseenter.jstree",".jstree-anchor",a.proxy(function(a){this.hover_node(a.currentTarget)},this)).on("mouseleave.jstree",".jstree-anchor",a.proxy(function(a){this.dehover_node(a.currentTarget)},this))},unbind:function(){this.element.off(".jstree"),a(i).off(".jstree-"+this._id)},trigger:function(a,b){b||(b={}),b.instance=this,this.element.triggerHandler(a.replace(".jstree","")+".jstree",b)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(b){var c=this.settings.core.strings;return a.isFunction(c)?c.call(this,b):c&&c[b]?c[b]:b},_firstChild:function(a){a=a?a.firstChild:null;while(null!==a&&1!==a.nodeType)a=a.nextSibling;return a},_nextSibling:function(a){a=a?a.nextSibling:null;while(null!==a&&1!==a.nodeType)a=a.nextSibling;return a},_previousSibling:function(a){a=a?a.previousSibling:null;while(null!==a&&1!==a.nodeType)a=a.previousSibling;return a},get_node:function(b,c){b&&b.id&&(b=b.id);var d;try{if(this._model.data[b])b=this._model.data[b];else if("string"==typeof b&&this._model.data[b.replace(/^#/,"")])b=this._model.data[b.replace(/^#/,"")];else if("string"==typeof b&&(d=a("#"+b.replace(a.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[d.closest(".jstree-node").attr("id")])b=this._model.data[d.closest(".jstree-node").attr("id")];else if((d=a(b,this.element)).length&&this._model.data[d.closest(".jstree-node").attr("id")])b=this._model.data[d.closest(".jstree-node").attr("id")];else{if(!(d=a(b,this.element)).length||!d.hasClass("jstree"))return!1;b=this._model.data[a.jstree.root]}return c&&(b=b.id===a.jstree.root?this.element:a("#"+b.id.replace(a.jstree.idregex,"\\$&"),this.element)),b}catch(e){return!1}},get_path:function(b,c,d){if(b=b.parents?b:this.get_node(b),!b||b.id===a.jstree.root||!b.parents)return!1;var e,f,g=[];for(g.push(d?b.id:b.text),e=0,f=b.parents.length;f>e;e++)g.push(d?b.parents[e]:this.get_text(b.parents[e]));return g=g.reverse().slice(1),c?g.join(c):g},get_next_dom:function(b,c){var d;if(b=this.get_node(b,!0),b[0]===this.element[0]){d=this._firstChild(this.get_container_ul()[0]);while(d&&0===d.offsetHeight)d=this._nextSibling(d);return d?a(d):!1}if(!b||!b.length)return!1;if(c){d=b[0];do d=this._nextSibling(d);while(d&&0===d.offsetHeight);return d?a(d):!1}if(b.hasClass("jstree-open")){d=this._firstChild(b.children(".jstree-children")[0]);while(d&&0===d.offsetHeight)d=this._nextSibling(d);if(null!==d)return a(d)}d=b[0];do d=this._nextSibling(d);while(d&&0===d.offsetHeight);return null!==d?a(d):b.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(b,c){var d;if(b=this.get_node(b,!0),b[0]===this.element[0]){d=this.get_container_ul()[0].lastChild;while(d&&0===d.offsetHeight)d=this._previousSibling(d);return d?a(d):!1}if(!b||!b.length)return!1;if(c){d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);return d?a(d):!1}d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);if(null!==d){b=a(d);while(b.hasClass("jstree-open"))b=b.children(".jstree-children").first().children(".jstree-node:visible:last");return b}return d=b[0].parentNode.parentNode,d&&d.className&&-1!==d.className.indexOf("jstree-node")?a(d):!1},get_parent:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.parent:!1},get_children_dom:function(a){return a=this.get_node(a,!0),a[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):a&&a.length?a.children(".jstree-children").children(".jstree-node"):!1},is_parent:function(a){return a=this.get_node(a),a&&(a.state.loaded===!1||a.children.length>0)},is_loaded:function(a){return a=this.get_node(a),a&&a.state.loaded},is_loading:function(a){return a=this.get_node(a),a&&a.state&&a.state.loading},is_open:function(a){return a=this.get_node(a),a&&a.state.opened},is_closed:function(a){return a=this.get_node(a),a&&this.is_parent(a)&&!a.state.opened},is_leaf:function(a){return!this.is_parent(a)},load_node:function(b,c){var d,e,f,g,h;if(a.isArray(b))return this._load_nodes(b.slice(),c),!0;if(b=this.get_node(b),!b)return c&&c.call(this,b,!1),!1;if(b.state.loaded){for(b.state.loaded=!1,f=0,g=b.parents.length;g>f;f++)this._model.data[b.parents[f]].children_d=a.vakata.array_filter(this._model.data[b.parents[f]].children_d,function(c){return-1===a.inArray(c,b.children_d)});for(d=0,e=b.children_d.length;e>d;d++)this._model.data[b.children_d[d]].state.selected&&(h=!0),delete this._model.data[b.children_d[d]];h&&(this._data.core.selected=a.vakata.array_filter(this._data.core.selected,function(c){return-1===a.inArray(c,b.children_d)})),b.children=[],b.children_d=[],h&&this.trigger("changed",{action:"load_node",node:b,selected:this._data.core.selected})}return b.state.failed=!1,b.state.loading=!0,this.get_node(b,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(b,a.proxy(function(a){b=this._model.data[b.id],b.state.loading=!1,b.state.loaded=a,b.state.failed=!b.state.loaded;var d=this.get_node(b,!0),e=0,f=0,g=this._model.data,h=!1;for(e=0,f=b.children.length;f>e;e++)if(g[b.children[e]]&&!g[b.children[e]].state.hidden){h=!0;break}b.state.loaded&&d&&d.length&&(d.removeClass("jstree-closed jstree-open jstree-leaf"),h?"#"!==b.id&&d.addClass(b.state.opened?"jstree-open":"jstree-closed"):d.addClass("jstree-leaf")),d.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:b,status:a}),c&&c.call(this,b,a)},this)),!0},_load_nodes:function(a,b,c,d){var e=!0,f=function(){this._load_nodes(a,b,!0)},g=this._model.data,h,i,j=[];for(h=0,i=a.length;i>h;h++)g[a[h]]&&(!g[a[h]].state.loaded&&!g[a[h]].state.failed||!c&&d)&&(this.is_loading(a[h])||this.load_node(a[h],f),e=!1);if(e){for(h=0,i=a.length;i>h;h++)g[a[h]]&&g[a[h]].state.loaded&&j.push(a[h]);b&&!b.done&&(b.call(this,j),b.done=!0)}},load_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d=[],e=this._model.data,f=e[b.id].children_d,g,h;for(b.state&&!b.state.loaded&&d.push(b.id),g=0,h=f.length;h>g;g++)e[f[g]]&&e[f[g]].state&&!e[f[g]].state.loaded&&d.push(f[g]);d.length?this._load_nodes(d,function(){this.load_all(b,c)}):(c&&c.call(this,b),this.trigger("load_all",{node:b}))},_load_node:function(b,c){var d=this.settings.core.data,e;return d?a.isFunction(d)?d.call(this,b,a.proxy(function(d){d===!1?c.call(this,!1):this["string"==typeof d?"_append_html_data":"_append_json_data"](b,"string"==typeof d?a(a.parseHTML(d)).filter(function(){return 3!==this.nodeType}):d,function(a){c.call(this,a)})},this)):"object"==typeof d?d.url?(d=a.extend(!0,{},d),a.isFunction(d.url)&&(d.url=d.url.call(this,b)),a.isFunction(d.data)&&(d.data=d.data.call(this,b)),a.ajax(d).done(a.proxy(function(d,e,f){var g=f.getResponseHeader("Content-Type");return g&&-1!==g.indexOf("json")||"object"==typeof d?this._append_json_data(b,d,function(a){c.call(this,a)}):g&&-1!==g.indexOf("html")||"string"==typeof d?this._append_html_data(b,a(a.parseHTML(d)).filter(function(){return 3!==this.nodeType}),function(a){c.call(this,a)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:f})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))},this)).fail(a.proxy(function(a){c.call(this,!1),this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:a})},this.settings.core.error.call(this,this._data.core.last_error)},this))):(e=a.isArray(d)||a.isPlainObject(d)?JSON.parse(JSON.stringify(d)):d,b.id===a.jstree.root?this._append_json_data(b,e,function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))):"string"==typeof d?b.id===a.jstree.root?this._append_html_data(b,a(a.parseHTML(d)).filter(function(){return 3!==this.nodeType}),function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1)):c.call(this,!1):b.id===a.jstree.root?this._append_html_data(b,this._data.core.original_container_html.clone(!0),function(a){c.call(this,a)}):c.call(this,!1)},_node_changed:function(a){a=this.get_node(a),a&&this._model.changed.push(a.id)},_append_html_data:function(b,c,d){b=this.get_node(b),b.children=[],b.children_d=[];var e=c.is("ul")?c.children():c,f=b.id,g=[],h=[],i=this._model.data,j=i[f],k=this._data.core.selected.length,l,m,n;for(e.each(a.proxy(function(b,c){l=this._parse_model_from_html(a(c),f,j.parents.concat()),l&&(g.push(l),h.push(l),i[l].children_d.length&&(h=h.concat(i[l].children_d)))},this)),j.children=g,j.children_d=h,m=0,n=j.parents.length;n>m;m++)i[j.parents[m]].children_d=i[j.parents[m]].children_d.concat(h);this.trigger("model",{nodes:h,parent:f}),f!==a.jstree.root?(this._node_changed(f),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==k&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),d.call(this,!0)},_append_json_data:function(b,c,d,e){if(null!==this.element){b=this.get_node(b),b.children=[],b.children_d=[],c.d&&(c=c.d,"string"==typeof c&&(c=JSON.parse(c))),a.isArray(c)||(c=[c]);var f=null,g={df:this._model.default_state,dat:c,par:b.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},h=function(a,b){a.data&&(a=a.data);var c=a.dat,d=a.par,e=[],f=[],g=[],h=a.df,i=a.t_id,j=a.t_cnt,k=a.m,l=k[d],m=a.sel,n,o,p,q,r=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=a.id.toString(),f,i,j,l,m={id:e,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in h)h.hasOwnProperty(f)&&(m.state[f]=h[f]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(m.icon=a.data.jstree.icon),(m.icon===b||null===m.icon||""===m.icon)&&(m.icon=!0),a&&a.data&&(m.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(m.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(m.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(m.li_attr[f]=a.li_attr[f]);if(m.li_attr.id||(m.li_attr.id=e),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(m.a_attr[f]=a.a_attr[f]);for(a&&a.children&&a.children===!0&&(m.state.loaded=!1,m.children=[],m.children_d=[]),k[m.id]=m,f=0,i=m.children.length;i>f;f++)j=r(k[m.children[f]],m.id,d),l=k[j],m.children_d.push(j),l.children_d.length&&(m.children_d=m.children_d.concat(l.children_d));return delete a.data,delete a.children,k[m.id].original=a,m.state.selected&&g.push(m.id),m.id},s=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=!1,f,l,m,n,o;do e="j"+i+"_"+ ++j;while(k[e]);o={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in h)h.hasOwnProperty(f)&&(o.state[f]=h[f]);if(a&&a.id&&(o.id=a.id.toString()),a&&a.text&&(o.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(o.icon=a.data.jstree.icon),(o.icon===b||null===o.icon||""===o.icon)&&(o.icon=!0),a&&a.data&&(o.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(o.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(o.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(o.li_attr[f]=a.li_attr[f]);if(o.li_attr.id&&!o.id&&(o.id=o.li_attr.id.toString()),o.id||(o.id=e),o.li_attr.id||(o.li_attr.id=o.id),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(o.a_attr[f]=a.a_attr[f]);if(a&&a.children&&a.children.length){for(f=0,l=a.children.length;l>f;f++)m=s(a.children[f],o.id,d),n=k[m],o.children.push(m),n.children_d.length&&(o.children_d=o.children_d.concat(n.children_d));o.children_d=o.children_d.concat(o.children)}return a&&a.children&&a.children===!0&&(o.state.loaded=!1,o.children=[],o.children_d=[]),delete a.data,delete a.children,o.original=a,k[o.id]=o,o.state.selected&&g.push(o.id),o.id};if(c.length&&c[0].id!==b&&c[0].parent!==b){for(o=0,p=c.length;p>o;o++)c[o].children||(c[o].children=[]),k[c[o].id.toString()]=c[o];for(o=0,p=c.length;p>o;o++)k[c[o].parent.toString()].children.push(c[o].id.toString()),l.children_d.push(c[o].id.toString());for(o=0,p=l.children.length;p>o;o++)n=r(k[l.children[o]],d,l.parents.concat()),f.push(n),k[n].children_d.length&&(f=f.concat(k[n].children_d));for(o=0,p=l.parents.length;p>o;o++)k[l.parents[o]].children_d=k[l.parents[o]].children_d.concat(f);q={cnt:j,mod:k,sel:m,par:d,dpc:f,add:g}}else{for(o=0,p=c.length;p>o;o++)n=s(c[o],d,l.parents.concat()),n&&(e.push(n),f.push(n),k[n].children_d.length&&(f=f.concat(k[n].children_d)));for(l.children=e,l.children_d=f,o=0,p=l.parents.length;p>o;o++)k[l.parents[o]].children_d=k[l.parents[o]].children_d.concat(f);q={cnt:j,mod:k,sel:m,par:d,dpc:f,add:g}}return"undefined"!=typeof window&&"undefined"!=typeof window.document?q:void postMessage(q)},i=function(b,c){if(null!==this.element){this._cnt=b.cnt;var e,f=this._model.data;for(e in f)f.hasOwnProperty(e)&&f[e].state&&f[e].state.loading&&b.mod[e]&&(b.mod[e].state.loading=!0);if(this._model.data=b.mod,c){var g,h=b.add,i=b.sel,j=this._data.core.selected.slice();if(f=this._model.data,i.length!==j.length||a.vakata.array_unique(i.concat(j)).length!==i.length){for(e=0,g=i.length;g>e;e++)-1===a.inArray(i[e],h)&&-1===a.inArray(i[e],j)&&(f[i[e]].state.selected=!1);for(e=0,g=j.length;g>e;e++)-1===a.inArray(j[e],i)&&(f[j[e]].state.selected=!0)}}b.add.length&&(this._data.core.selected=this._data.core.selected.concat(b.add)),this.trigger("model",{nodes:b.dpc,parent:b.par}),b.par!==a.jstree.root?(this._node_changed(b.par),this.redraw()):this.redraw(!0),b.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),d.call(this,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+h.toString()],{type:"text/javascript"}))),!this._data.core.working||e?(this._data.core.working=!0,f=new window.Worker(this._wrk),f.onmessage=a.proxy(function(a){i.call(this,a.data,!0);try{f.terminate(),f=null}catch(b){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1},this),g.par?f.postMessage(g):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([b,c,d,!0])}catch(j){i.call(this,h(g),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else i.call(this,h(g),!1)}},_parse_model_from_html:function(c,d,e){e=e?[].concat(e):[],d&&e.unshift(d);var f,g,h=this._model.data,i={id:!1,text:!1,icon:!0,parent:d,parents:e,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},j,k,l;for(j in this._model.default_state)this._model.default_state.hasOwnProperty(j)&&(i.state[j]=this._model.default_state[j]);if(k=a.vakata.attributes(c,!0),a.each(k,function(b,c){return c=a.trim(c),c.length?(i.li_attr[b]=c,void("id"===b&&(i.id=c.toString()))):!0}),k=c.children("a").first(),k.length&&(k=a.vakata.attributes(k,!0),a.each(k,function(b,c){c=a.trim(c),c.length&&(i.a_attr[b]=c)})),k=c.children("a").first().length?c.children("a").first().clone():c.clone(),k.children("ins, i, ul").remove(),k=k.html(),k=a("<div />").html(k),i.text=this.settings.core.force_text?k.text():k.html(),k=c.data(),i.data=k?a.extend(!0,{},k):null,i.state.opened=c.hasClass("jstree-open"),i.state.selected=c.children("a").hasClass("jstree-clicked"),i.state.disabled=c.children("a").hasClass("jstree-disabled"),i.data&&i.data.jstree)for(j in i.data.jstree)i.data.jstree.hasOwnProperty(j)&&(i.state[j]=i.data.jstree[j]);k=c.children("a").children(".jstree-themeicon"),k.length&&(i.icon=k.hasClass("jstree-themeicon-hidden")?!1:k.attr("rel")),i.state.icon!==b&&(i.icon=i.state.icon),(i.icon===b||null===i.icon||""===i.icon)&&(i.icon=!0),k=c.children("ul").children("li");do l="j"+this._id+"_"+ ++this._cnt;while(h[l]);return i.id=i.li_attr.id?i.li_attr.id.toString():l,k.length?(k.each(a.proxy(function(b,c){f=this._parse_model_from_html(a(c),i.id,e),g=this._model.data[f],i.children.push(f),g.children_d.length&&(i.children_d=i.children_d.concat(g.children_d))},this)),i.children_d=i.children_d.concat(i.children)):c.hasClass("jstree-closed")&&(i.state.loaded=!1),i.li_attr["class"]&&(i.li_attr["class"]=i.li_attr["class"].replace("jstree-closed","").replace("jstree-open","")),i.a_attr["class"]&&(i.a_attr["class"]=i.a_attr["class"].replace("jstree-clicked","").replace("jstree-disabled","")),h[i.id]=i,i.state.selected&&this._data.core.selected.push(i.id),i.id},_parse_model_from_flat_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=a.id.toString(),f=this._model.data,g=this._model.default_state,h,i,j,k,l={id:e,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(h in g)g.hasOwnProperty(h)&&(l.state[h]=g[h]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(l.icon=a.data.jstree.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),a&&a.data&&(l.data=a.data,a.data.jstree))for(h in a.data.jstree)a.data.jstree.hasOwnProperty(h)&&(l.state[h]=a.data.jstree[h]);if(a&&"object"==typeof a.state)for(h in a.state)a.state.hasOwnProperty(h)&&(l.state[h]=a.state[h]);if(a&&"object"==typeof a.li_attr)for(h in a.li_attr)a.li_attr.hasOwnProperty(h)&&(l.li_attr[h]=a.li_attr[h]);if(l.li_attr.id||(l.li_attr.id=e),a&&"object"==typeof a.a_attr)for(h in a.a_attr)a.a_attr.hasOwnProperty(h)&&(l.a_attr[h]=a.a_attr[h]);for(a&&a.children&&a.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),f[l.id]=l,h=0,i=l.children.length;i>h;h++)j=this._parse_model_from_flat_json(f[l.children[h]],l.id,d),k=f[j],l.children_d.push(j),k.children_d.length&&(l.children_d=l.children_d.concat(k.children_d));return delete a.data,delete a.children,f[l.id].original=a,l.state.selected&&this._data.core.selected.push(l.id),l.id},_parse_model_from_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e=!1,f,g,h,i,j=this._model.data,k=this._model.default_state,l;do e="j"+this._id+"_"+ ++this._cnt;while(j[e]);l={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(f in k)k.hasOwnProperty(f)&&(l.state[f]=k[f]);if(a&&a.id&&(l.id=a.id.toString()),a&&a.text&&(l.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(l.icon=a.data.jstree.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),a&&a.data&&(l.data=a.data,a.data.jstree))for(f in a.data.jstree)a.data.jstree.hasOwnProperty(f)&&(l.state[f]=a.data.jstree[f]);if(a&&"object"==typeof a.state)for(f in a.state)a.state.hasOwnProperty(f)&&(l.state[f]=a.state[f]);if(a&&"object"==typeof a.li_attr)for(f in a.li_attr)a.li_attr.hasOwnProperty(f)&&(l.li_attr[f]=a.li_attr[f]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=e),l.li_attr.id||(l.li_attr.id=l.id),a&&"object"==typeof a.a_attr)for(f in a.a_attr)a.a_attr.hasOwnProperty(f)&&(l.a_attr[f]=a.a_attr[f]);if(a&&a.children&&a.children.length){for(f=0,g=a.children.length;g>f;f++)h=this._parse_model_from_json(a.children[f],l.id,d),i=j[h],l.children.push(h),i.children_d.length&&(l.children_d=l.children_d.concat(i.children_d));l.children_d=l.children_d.concat(l.children)}return a&&a.children&&a.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete a.data,delete a.children,l.original=a,j[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var b=this._model.force_full_redraw?this._model.data[a.jstree.root].children.concat([]):this._model.changed.concat([]),c=i.createElement("UL"),d,e,f,g=this._data.core.focused;for(e=0,f=b.length;f>e;e++)d=this.redraw_node(b[e],!0,this._model.force_full_redraw),d&&this._model.force_full_redraw&&c.appendChild(d);this._model.force_full_redraw&&(c.className=this.get_container_ul()[0].className,c.setAttribute("role","group"),this.element.empty().append(c)),null!==g&&(d=this.get_node(g,!0),d&&d.length&&d.children(".jstree-anchor")[0]!==i.activeElement?d.children(".jstree-anchor").focus():this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:b})},redraw:function(a){a&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(b){var c=this.get_node(b),d=!1,e=!1,f=!1,g=i;if(!c)return!1;if(c.id===a.jstree.root)return this.redraw(!0);if(b=this.get_node(b,!0),!b||!b.length)return!1;if(b.children(".jstree-children").remove(),b=b[0],c.children.length&&c.state.loaded){for(f=g.createElement("UL"),f.setAttribute("role","group"),f.className="jstree-children",d=0,e=c.children.length;e>d;d++)f.appendChild(this.redraw_node(c.children[d],!0,!0));b.appendChild(f)}},redraw_node:function(b,c,d,e){var f=this.get_node(b),g=!1,h=!1,k=!1,l=!1,m=!1,n=!1,o="",p=i,q=this._model.data,r=!1,s=!1,t=null,u=0,v=0,w=!1,x=!1;if(!f)return!1;if(f.id===a.jstree.root)return this.redraw(!0);if(c=c||0===f.children.length,b=i.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(f.id[0])?"\\3"+f.id[0]+" "+f.id.substr(1).replace(a.jstree.idregex,"\\$&"):f.id.replace(a.jstree.idregex,"\\$&"))):i.getElementById(f.id))b=a(b),
d||(g=b.parent().parent()[0],g===this.element[0]&&(g=null),h=b.index()),c||!f.children.length||b.children(".jstree-children").length||(c=!0),c||(k=b.children(".jstree-children")[0]),r=b.children(".jstree-anchor")[0]===i.activeElement,b.remove();else if(c=!0,!d){if(g=f.parent!==a.jstree.root?a("#"+f.parent.replace(a.jstree.idregex,"\\$&"),this.element)[0]:null,!(null===g||g&&q[f.parent].state.opened))return!1;h=a.inArray(f.id,null===g?q[a.jstree.root].children:q[f.parent].children)}b=j.cloneNode(!0),o="jstree-node ";for(l in f.li_attr)if(f.li_attr.hasOwnProperty(l)){if("id"===l)continue;"class"!==l?b.setAttribute(l,f.li_attr[l]):o+=f.li_attr[l]}for(f.a_attr.id||(f.a_attr.id=f.id+"_anchor"),b.setAttribute("aria-selected",!!f.state.selected),b.setAttribute("aria-level",f.parents.length),b.setAttribute("aria-labelledby",f.a_attr.id),f.state.disabled&&b.setAttribute("aria-disabled",!0),l=0,m=f.children.length;m>l;l++)if(!q[f.children[l]].state.hidden){w=!0;break}if(null!==f.parent&&q[f.parent]&&!f.state.hidden&&(l=a.inArray(f.id,q[f.parent].children),x=f.id,-1!==l))for(l++,m=q[f.parent].children.length;m>l;l++)if(q[q[f.parent].children[l]].state.hidden||(x=q[f.parent].children[l]),x!==f.id)break;f.state.hidden&&(o+=" jstree-hidden"),f.state.loaded&&!w?o+=" jstree-leaf":(o+=f.state.opened&&f.state.loaded?" jstree-open":" jstree-closed",b.setAttribute("aria-expanded",f.state.opened&&f.state.loaded)),x===f.id&&(o+=" jstree-last"),b.id=f.id,b.className=o,o=(f.state.selected?" jstree-clicked":"")+(f.state.disabled?" jstree-disabled":"");for(m in f.a_attr)if(f.a_attr.hasOwnProperty(m)){if("href"===m&&"#"===f.a_attr[m])continue;"class"!==m?b.childNodes[1].setAttribute(m,f.a_attr[m]):o+=" "+f.a_attr[m]}if(o.length&&(b.childNodes[1].className="jstree-anchor "+o),(f.icon&&f.icon!==!0||f.icon===!1)&&(f.icon===!1?b.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===f.icon.indexOf("/")&&-1===f.icon.indexOf(".")?b.childNodes[1].childNodes[0].className+=" "+f.icon+" jstree-themeicon-custom":(b.childNodes[1].childNodes[0].style.backgroundImage='url("'+f.icon+'")',b.childNodes[1].childNodes[0].style.backgroundPosition="center center",b.childNodes[1].childNodes[0].style.backgroundSize="auto",b.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?b.childNodes[1].appendChild(p.createTextNode(f.text)):b.childNodes[1].innerHTML+=f.text,c&&f.children.length&&(f.state.opened||e)&&f.state.loaded){for(n=p.createElement("UL"),n.setAttribute("role","group"),n.className="jstree-children",l=0,m=f.children.length;m>l;l++)n.appendChild(this.redraw_node(f.children[l],c,!0));b.appendChild(n)}if(k&&b.appendChild(k),!d){for(g||(g=this.element[0]),l=0,m=g.childNodes.length;m>l;l++)if(g.childNodes[l]&&g.childNodes[l].className&&-1!==g.childNodes[l].className.indexOf("jstree-children")){t=g.childNodes[l];break}t||(t=p.createElement("UL"),t.setAttribute("role","group"),t.className="jstree-children",g.appendChild(t)),g=t,h<g.childNodes.length?g.insertBefore(b,g.childNodes[h]):g.appendChild(b),r&&(u=this.element[0].scrollTop,v=this.element[0].scrollLeft,b.childNodes[1].focus(),this.element[0].scrollTop=u,this.element[0].scrollLeft=v)}return f.state.opened&&!f.state.loaded&&(f.state.opened=!1,setTimeout(a.proxy(function(){this.open_node(f.id,!1,0)},this),0)),b},open_node:function(c,d,e){var f,g,h,i;if(a.isArray(c)){for(c=c.slice(),f=0,g=c.length;g>f;f++)this.open_node(c[f],d,e);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(e=e===b?this.settings.core.animation:e,this.is_closed(c)?this.is_loaded(c)?(h=this.get_node(c,!0),i=this,h.length&&(e&&h.children(".jstree-children").length&&h.children(".jstree-children").stop(!0,!0),c.children.length&&!this._firstChild(h.children(".jstree-children")[0])&&this.draw_children(c),e?(this.trigger("before_open",{node:c}),h.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children(".jstree-children").stop(!0,!0).slideDown(e,function(){this.style.display="",i.element&&i.trigger("after_open",{node:c})})):(this.trigger("before_open",{node:c}),h[0].className=h[0].className.replace("jstree-closed","jstree-open"),h[0].setAttribute("aria-expanded",!0))),c.state.opened=!0,d&&d.call(this,c,!0),h.length||this.trigger("before_open",{node:c}),this.trigger("open_node",{node:c}),e&&h.length||this.trigger("after_open",{node:c}),!0):this.is_loading(c)?setTimeout(a.proxy(function(){this.open_node(c,d,e)},this),500):void this.load_node(c,function(a,b){return b?this.open_node(a,d,e):d?d.call(this,a,!1):!1}):(d&&d.call(this,c,!1),!1)):!1},_open_to:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c,d,e=b.parents;for(c=0,d=e.length;d>c;c+=1)c!==a.jstree.root&&this.open_node(e[c],!1,0);return a("#"+b.id.replace(a.jstree.idregex,"\\$&"),this.element)},close_node:function(c,d){var e,f,g,h;if(a.isArray(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.close_node(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?this.is_closed(c)?!1:(d=d===b?this.settings.core.animation:d,g=this,h=this.get_node(c,!0),c.state.opened=!1,this.trigger("close_node",{node:c}),void(h.length?d?h.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children(".jstree-children").stop(!0,!0).slideUp(d,function(){this.style.display="",h.children(".jstree-children").remove(),g.element&&g.trigger("after_close",{node:c})}):(h[0].className=h[0].className.replace("jstree-open","jstree-closed"),h.attr("aria-expanded",!1).children(".jstree-children").remove(),this.trigger("after_close",{node:c})):this.trigger("after_close",{node:c}))):!1},toggle_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.toggle_node(b[c]);return!0}return this.is_closed(b)?this.open_node(b):this.is_open(b)?this.close_node(b):void 0},open_all:function(b,c,d){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var e=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0),f,g,h;if(!e.length){for(f=0,g=b.children_d.length;g>f;f++)this.is_closed(this._model.data[b.children_d[f]])&&(this._model.data[b.children_d[f]].state.opened=!0);return this.trigger("open_all",{node:b})}d=d||e,h=this,e=this.is_closed(b)?e.find(".jstree-closed").addBack():e.find(".jstree-closed"),e.each(function(){h.open_node(this,function(a,b){b&&this.is_parent(a)&&this.open_all(a,c,d)},c||0)}),0===d.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(d)})},close_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0),e=this,f,g;for(d.length&&(d=this.is_open(b)?d.find(".jstree-open").addBack():d.find(".jstree-open"),a(d.get().reverse()).each(function(){e.close_node(this,c||0)})),f=0,g=b.children_d.length;g>f;f++)this._model.data[b.children_d[f]].state.opened=!1;this.trigger("close_all",{node:b})},is_disabled:function(a){return a=this.get_node(a),a&&a.state&&a.state.disabled},enable_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!1,this.get_node(b,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),void this.trigger("enable_node",{node:b})):!1},disable_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!0,this.get_node(b,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),void this.trigger("disable_node",{node:b})):!1},is_hidden:function(a){return a=this.get_node(a),a.state.hidden===!0},hide_node:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.hide_node(b[d],!0);return c||this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden||(b.state.hidden=!0,this._node_changed(b.parent),c||this.redraw(),this.trigger("hide_node",{node:b}))):!1},show_node:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.show_node(b[d],!0);return c||this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden&&(b.state.hidden=!1,this._node_changed(b.parent),c||this.redraw(),this.trigger("show_node",{node:b}))):!1},hide_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&!d[c].state.hidden&&(d[c].state.hidden=!0,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("hide_all",{nodes:e}),e},show_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&d[c].state.hidden&&(d[c].state.hidden=!1,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("show_all",{nodes:e}),e},activate_node:function(a,c){if(this.is_disabled(a))return!1;if(c&&"object"==typeof c||(c={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==b?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&(!c.shiftKey||this._data.core.last_clicked&&this.get_parent(a)&&this.get_parent(a)===this._data.core.last_clicked.parent))if(c.shiftKey){var d=this.get_node(a).id,e=this._data.core.last_clicked.id,f=this.get_node(this._data.core.last_clicked.parent).children,g=!1,h,i;for(h=0,i=f.length;i>h;h+=1)f[h]===d&&(g=!g),f[h]===e&&(g=!g),this.is_disabled(f[h])||!g&&f[h]!==d&&f[h]!==e?this.deselect_node(f[h],!0,c):this.is_hidden(f[h])||this.select_node(f[h],!0,!1,c);this.trigger("changed",{action:"select_node",node:this.get_node(a),selected:this._data.core.selected,event:c})}else this.is_selected(a)?this.deselect_node(a,!1,c):this.select_node(a,!1,!1,c);else!this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&this.is_selected(a)?this.deselect_node(a,!1,c):(this.deselect_all(!0),this.select_node(a,!1,!1,c),this._data.core.last_clicked=this.get_node(a));this.trigger("activate_node",{node:this.get_node(a),event:c})},hover_node:function(a){if(a=this.get_node(a,!0),!a||!a.length||a.children(".jstree-hovered").length)return!1;var b=this.element.find(".jstree-hovered"),c=this.element;b&&b.length&&this.dehover_node(b),a.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(a)}),setTimeout(function(){c.attr("aria-activedescendant",a[0].id)},0)},dehover_node:function(a){return a=this.get_node(a,!0),a&&a.length&&a.children(".jstree-hovered").length?(a.children(".jstree-anchor").removeClass("jstree-hovered"),void this.trigger("dehover_node",{node:this.get_node(a)})):!1},select_node:function(b,c,d,e){var f,g,h,i;if(a.isArray(b)){for(b=b.slice(),g=0,h=b.length;h>g;g++)this.select_node(b[g],c,d,e);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.selected||(b.state.selected=!0,this._data.core.selected.push(b.id),d||(f=this._open_to(b)),f&&f.length&&f.attr("aria-selected",!0).children(".jstree-anchor").addClass("jstree-clicked"),this.trigger("select_node",{node:b,selected:this._data.core.selected,event:e}),c||this.trigger("changed",{action:"select_node",node:b,selected:this._data.core.selected,event:e})))):!1},deselect_node:function(b,c,d){var e,f,g;if(a.isArray(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.deselect_node(b[e],c,d);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(g=this.get_node(b,!0),void(b.state.selected&&(b.state.selected=!1,this._data.core.selected=a.vakata.array_remove_item(this._data.core.selected,b.id),g.length&&g.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-clicked"),this.trigger("deselect_node",{node:b,selected:this._data.core.selected,event:d}),c||this.trigger("changed",{action:"deselect_node",node:b,selected:this._data.core.selected,event:d})))):!1},select_all:function(b){var c=this._data.core.selected.concat([]),d,e;for(this._data.core.selected=this._model.data[a.jstree.root].children_d.concat(),d=0,e=this._data.core.selected.length;e>d;d++)this._model.data[this._data.core.selected[d]]&&(this._model.data[this._data.core.selected[d]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),b||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:c})},deselect_all:function(a){var b=this._data.core.selected.concat([]),c,d;for(c=0,d=this._data.core.selected.length;d>c;c++)this._model.data[this._data.core.selected[c]]&&(this._model.data[this._data.core.selected[c]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").parent().attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:b}),a||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:b})},is_selected:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.selected:!1},get_selected:function(b){return b?a.map(this._data.core.selected,a.proxy(function(a){return this.get_node(a)},this)):this._data.core.selected.slice()},get_top_selected:function(b){var c=this.get_selected(!0),d={},e,f,g,h;for(e=0,f=c.length;f>e;e++)d[c[e].id]=c[e];for(e=0,f=c.length;f>e;e++)for(g=0,h=c[e].children_d.length;h>g;g++)d[c[e].children_d[g]]&&delete d[c[e].children_d[g]];c=[];for(e in d)d.hasOwnProperty(e)&&c.push(e);return b?a.map(c,a.proxy(function(a){return this.get_node(a)},this)):c},get_bottom_selected:function(b){var c=this.get_selected(!0),d=[],e,f;for(e=0,f=c.length;f>e;e++)c[e].children.length||d.push(c[e].id);return b?a.map(d,a.proxy(function(a){return this.get_node(a)},this)):d},get_state:function(){var b={core:{open:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}},c;for(c in this._model.data)this._model.data.hasOwnProperty(c)&&c!==a.jstree.root&&(this._model.data[c].state.opened&&b.core.open.push(c),this._model.data[c].state.selected&&b.core.selected.push(c));return b},set_state:function(c,d){if(c){if(c.core){var e,f,g,h,i;if(c.core.open)return a.isArray(c.core.open)&&c.core.open.length?this._load_nodes(c.core.open,function(a){this.open_node(a,!1,0),delete c.core.open,this.set_state(c,d)},!0):(delete c.core.open,this.set_state(c,d)),!1;if(c.core.scroll)return c.core.scroll&&c.core.scroll.left!==b&&this.element.scrollLeft(c.core.scroll.left),c.core.scroll&&c.core.scroll.top!==b&&this.element.scrollTop(c.core.scroll.top),delete c.core.scroll,this.set_state(c,d),!1;if(c.core.selected)return h=this,this.deselect_all(),a.each(c.core.selected,function(a,b){h.select_node(b,!1,!0)}),delete c.core.selected,this.set_state(c,d),!1;for(i in c)c.hasOwnProperty(i)&&"core"!==i&&-1===a.inArray(i,this.settings.plugins)&&delete c[i];if(a.isEmptyObject(c.core))return delete c.core,this.set_state(c,d),!1}return a.isEmptyObject(c)?(c=null,d&&d.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(b,c){this._data.core.state=c===!0?{}:this.get_state(),c&&a.isFunction(c)&&(this._data.core.state=c.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[a.jstree.root]={id:a.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var d=this.get_container_ul()[0].className;b||(this.element.html("<ul class='"+d+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='treeitem' id='j"+this._id+"_loading'><em class='jstree-icon jstree-ocl'></em><a class='jstree-anchor' href='#'><em class='jstree-icon jstree-themeicon-hidden'></em>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(a.jstree.root,function(b,c){c&&(this.get_container_ul()[0].className=d,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(a.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},refresh_node:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c=[],d=[],e=this._data.core.selected.concat([]);d.push(b.id),b.state.opened===!0&&c.push(b.id),this.get_node(b,!0).find(".jstree-open").each(function(){d.push(this.id),c.push(this.id)}),this._load_nodes(d,a.proxy(function(a){this.open_node(c,!1,0),this.select_node(e),this.trigger("refresh_node",{node:b,nodes:a})},this),!1,!0)},set_id:function(b,c){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var d,e,f=this._model.data,g=b.id;for(c=c.toString(),f[b.parent].children[a.inArray(b.id,f[b.parent].children)]=c,d=0,e=b.parents.length;e>d;d++)f[b.parents[d]].children_d[a.inArray(b.id,f[b.parents[d]].children_d)]=c;for(d=0,e=b.children.length;e>d;d++)f[b.children[d]].parent=c;for(d=0,e=b.children_d.length;e>d;d++)f[b.children_d[d]].parents[a.inArray(b.id,f[b.children_d[d]].parents)]=c;return d=a.inArray(b.id,this._data.core.selected),-1!==d&&(this._data.core.selected[d]=c),d=this.get_node(b.id,!0),d&&(d.attr("id",c),this.element.attr("aria-activedescendant")===b.id&&this.element.attr("aria-activedescendant",c)),delete f[b.id],b.id=c,b.li_attr.id=c,f[c]=b,this.trigger("set_id",{node:b,"new":b.id,old:g}),!0},get_text:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.text:!1},set_text:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.set_text(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.text=c,this.get_node(b,!0).length&&this.redraw_node(b.id),this.trigger("set_text",{obj:b,text:c}),!0):!1},get_json:function(b,c,d){if(b=this.get_node(b||a.jstree.root),!b)return!1;c&&c.flat&&!d&&(d=[]);var e={id:b.id,text:b.text,icon:this.get_icon(b),li_attr:a.extend(!0,{},b.li_attr),a_attr:a.extend(!0,{},b.a_attr),state:{},data:c&&c.no_data?!1:a.extend(!0,{},b.data)},f,g;if(c&&c.flat?e.parent=b.parent:e.children=[],!c||!c.no_state)for(f in b.state)b.state.hasOwnProperty(f)&&(e.state[f]=b.state[f]);if(c&&c.no_id&&(delete e.id,e.li_attr&&e.li_attr.id&&delete e.li_attr.id,e.a_attr&&e.a_attr.id&&delete e.a_attr.id),c&&c.flat&&b.id!==a.jstree.root&&d.push(e),!c||!c.no_children)for(f=0,g=b.children.length;g>f;f++)c&&c.flat?this.get_json(b.children[f],c,d):e.children.push(this.get_json(b.children[f],c));return c&&c.flat?d:b.id===a.jstree.root?e.children:e},create_node:function(c,d,e,f,g){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return!1;if(e=e===b?"last":e,!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(c))return this.load_node(c,function(){this.create_node(c,d,e,f,!0)});d||(d={text:this.get_string("New node")}),"string"==typeof d&&(d={text:d}),d.text===b&&(d.text=this.get_string("New node"));var h,i,j,k;switch(c.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":h=this.get_node(c.parent),e=a.inArray(c.id,h.children),c=h;break;case"after":h=this.get_node(c.parent),e=a.inArray(c.id,h.children)+1,c=h;break;case"inside":case"first":e=0;break;case"last":e=c.children.length;break;default:e||(e=0)}if(e>c.children.length&&(e=c.children.length),d.id||(d.id=!0),!this.check("create_node",d,c,e))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(d.id===!0&&delete d.id,d=this._parse_model_from_json(d,c.id,c.parents.concat()),!d)return!1;for(h=this.get_node(d),i=[],i.push(d),i=i.concat(h.children_d),this.trigger("model",{nodes:i,parent:c.id}),c.children_d=c.children_d.concat(i),j=0,k=c.parents.length;k>j;j++)this._model.data[c.parents[j]].children_d=this._model.data[c.parents[j]].children_d.concat(i);for(d=h,h=[],j=0,k=c.children.length;k>j;j++)h[j>=e?j+1:j]=c.children[j];return h[e]=d.id,c.children=h,this.redraw_node(c,!0),f&&f.call(this,this.get_node(d)),this.trigger("create_node",{node:this.get_node(d),parent:c.id,position:e}),d.id},rename_node:function(b,c){var d,e,f;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.rename_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=b.text,this.check("rename_node",b,this.get_parent(b),c)?(this.set_text(b,c),this.trigger("rename_node",{node:b,text:c,old:f}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.delete_node(b[c]);return!0}if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;if(e=this.get_node(b.parent),f=a.inArray(b.id,e.children),l=!1,!this.check("delete_node",b,e,f))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==f&&(e.children=a.vakata.array_remove(e.children,f)),g=b.children_d.concat([]),g.push(b.id),h=0,i=b.parents.length;i>h;h++)this._model.data[b.parents[h]].children_d=a.vakata.array_filter(this._model.data[b.parents[h]].children_d,function(b){return-1===a.inArray(b,g)});for(j=0,k=g.length;k>j;j++)if(this._model.data[g[j]].state.selected){l=!0;break}for(l&&(this._data.core.selected=a.vakata.array_filter(this._data.core.selected,function(b){return-1===a.inArray(b,g)})),this.trigger("delete_node",{node:b,parent:e.id}),l&&this.trigger("changed",{action:"delete_node",node:b,selected:this._data.core.selected,parent:e.id}),j=0,k=g.length;k>j;j++)delete this._model.data[g[j]];return-1!==a.inArray(this._data.core.focused,g)&&(this._data.core.focused=null,m=this.element[0].scrollTop,n=this.element[0].scrollLeft,e.id===a.jstree.root?this._model.data[a.jstree.root].children[0]&&this.get_node(this._model.data[a.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(e,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=m,this.element[0].scrollLeft=n),this.redraw_node(e,!0),!0},check:function(b,c,d,e,f){c=c&&c.id?c:this.get_node(c),d=d&&d.id?d:this.get_node(d);var g=b.match(/^move_node|copy_node|create_node$/i)?d:c,h=this.settings.core.check_callback;return"move_node"!==b&&"copy_node"!==b||f&&f.is_multi||c.id!==d.id&&("move_node"!==b||a.inArray(c.id,d.children)!==e)&&-1===a.inArray(d.id,c.children_d)?(g&&g.data&&(g=g.data),g&&g.functions&&(g.functions[b]===!1||g.functions[b]===!0)?(g.functions[b]===!1&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})}),g.functions[b]):h===!1||a.isFunction(h)&&h.call(this,b,c,d,e,f)===!1||h&&h[b]===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1):!0):(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.move_node(c,d,e,f,!0,!1,i)});if(a.isArray(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(r=this.move_node(c[j],d,e,f,g,!1,i))&&(d=r,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;if(l=(c.parent||a.jstree.root).toString(),n=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,o=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),p=!o||!o._id||this._id!==o._id,m=o&&o._id&&l&&o._model.data[l]&&o._model.data[l].children?a.inArray(c.id,o._model.data[l].children):-1,o&&o._id&&(c=o._model.data[c.id]),p)return(r=this.copy_node(c,d,e,f,g,!1,i))?(o&&o.delete_node(c),r):!1;switch(d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,n.children);break;case"after":e=a.inArray(d.id,n.children)+1;break;case"inside":case"first":e=0;break;case"last":e=n.children.length;break;default:e||(e=0)}if(e>n.children.length&&(e=n.children.length),!this.check("move_node",c,n,e,{core:!0,origin:i,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(c.parent===n.id){for(q=n.children.concat(),r=a.inArray(c.id,q),-1!==r&&(q=a.vakata.array_remove(q,r),e>r&&e--),r=[],s=0,t=q.length;t>s;s++)r[s>=e?s+1:s]=q[s];r[e]=c.id,n.children=r,this._node_changed(n.id),this.redraw(n.id===a.jstree.root)}else{for(r=c.children_d.concat(),r.push(c.id),s=0,t=c.parents.length;t>s;s++){for(q=[],w=o._model.data[c.parents[s]].children_d,u=0,v=w.length;v>u;u++)-1===a.inArray(w[u],r)&&q.push(w[u]);o._model.data[c.parents[s]].children_d=q}for(o._model.data[l].children=a.vakata.array_remove_item(o._model.data[l].children,c.id),s=0,t=n.parents.length;t>s;s++)this._model.data[n.parents[s]].children_d=this._model.data[n.parents[s]].children_d.concat(r);for(q=[],s=0,t=n.children.length;t>s;s++)q[s>=e?s+1:s]=n.children[s];for(q[e]=c.id,n.children=q,n.children_d.push(c.id),n.children_d=n.children_d.concat(c.children_d),c.parent=n.id,r=n.parents.concat(),r.unshift(n.id),w=c.parents.length,c.parents=r,r=r.concat(),s=0,t=c.children_d.length;t>s;s++)this._model.data[c.children_d[s]].parents=this._model.data[c.children_d[s]].parents.slice(0,-1*w),Array.prototype.push.apply(this._model.data[c.children_d[s]].parents,r);(l===a.jstree.root||n.id===a.jstree.root)&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(l),this._node_changed(n.id)),h||this.redraw()}return f&&f.call(this,c,n,e),this.trigger("move_node",{node:c,parent:n.id,position:e,old_parent:l,old_position:m,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id,old_instance:o,new_instance:this}),c.id},copy_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.copy_node(c,d,e,f,!0,!1,i)});if(a.isArray(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(m=this.copy_node(c[j],d,e,f,g,!0,i))&&(d=m,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;switch(q=(c.parent||a.jstree.root).toString(),r=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,s=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),t=!s||!s._id||this._id!==s._id,s&&s._id&&(c=s._model.data[c.id]),d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,r.children);break;case"after":e=a.inArray(d.id,r.children)+1;break;case"inside":case"first":e=0;break;case"last":e=r.children.length;break;default:e||(e=0)}if(e>r.children.length&&(e=r.children.length),!this.check("copy_node",c,r,e,{core:!0,origin:i,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(p=s?s.get_json(c,{no_id:!0,no_data:!0,no_state:!0}):c,!p)return!1;if(p.id===!0&&delete p.id,p=this._parse_model_from_json(p,r.id,r.parents.concat()),!p)return!1;for(m=this.get_node(p),c&&c.state&&c.state.loaded===!1&&(m.state.loaded=!1),l=[],l.push(p),l=l.concat(m.children_d),this.trigger("model",{nodes:l,parent:r.id}),n=0,o=r.parents.length;o>n;n++)this._model.data[r.parents[n]].children_d=this._model.data[r.parents[n]].children_d.concat(l);for(l=[],n=0,o=r.children.length;o>n;n++)l[n>=e?n+1:n]=r.children[n];return l[e]=m.id,r.children=l,r.children_d.push(m.id),r.children_d=r.children_d.concat(m.children_d),r.id===a.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(r.id),h||this.redraw(r.id===a.jstree.root),f&&f.call(this,m,r,e),this.trigger("copy_node",{node:m,original:c,parent:r.id,position:e,old_parent:q,old_position:s&&s._id&&q&&s._model.data[q]&&s._model.data[q].children?a.inArray(c.id,s._model.data[q].children):-1,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id,old_instance:s,new_instance:this}),m.id},cut:function(b){if(b||(b=this._data.core.selected.concat()),a.isArray(b)||(b=[b]),!b.length)return!1;var c=[],g,h,i;for(h=0,i=b.length;i>h;h++)g=this.get_node(b[h]),g&&g.id&&g.id!==a.jstree.root&&c.push(g);return c.length?(d=c,f=this,e="move_node",void this.trigger("cut",{node:b})):!1},copy:function(b){if(b||(b=this._data.core.selected.concat()),a.isArray(b)||(b=[b]),!b.length)return!1;var c=[],g,h,i;for(h=0,i=b.length;i>h;h++)g=this.get_node(b[h]),g&&g.id&&g.id!==a.jstree.root&&c.push(g);return c.length?(d=c,f=this,e="copy_node",void this.trigger("copy",{node:b})):!1},get_buffer:function(){return{mode:e,node:d,inst:f}},can_paste:function(){return e!==!1&&d!==!1},paste:function(a,b){return a=this.get_node(a),a&&e&&e.match(/^(copy_node|move_node)$/)&&d?(this[e](d,a,b,!1,!1,!1,f)&&this.trigger("paste",{parent:a.id,node:d,mode:e}),d=!1,e=!1,void(f=!1)):!1},clear_buffer:function(){d=!1,e=!1,f=!1,this.trigger("clear_buffer")},edit:function(b,c,d){var e,f,g,h,j,k,l,m,n,o=!1;return(b=this.get_node(b))?this.settings.core.check_callback===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_07",reason:"Could not edit node because of check_callback"},this.settings.core.error.call(this,this._data.core.last_error),!1):(n=b,c="string"==typeof c?c:b.text,this.set_text(b,""),b=this._open_to(b),n.text=c,e=this._data.core.rtl,f=this.element.width(),this._data.core.focused=n.id,g=b.children(".jstree-anchor").focus(),h=a("<span>"),j=c,k=a("<div />",{css:{position:"absolute",top:"-200px",left:e?"0px":"-1000px",visibility:"hidden"}}).appendTo("body"),l=a("<input />",{value:j,"class":"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:a.proxy(function(c){c.stopImmediatePropagation(),c.preventDefault();var e=h.children(".jstree-rename-input"),f=e.val(),i=this.settings.core.force_text,m;""===f&&(f=j),k.remove(),h.replaceWith(g),h.remove(),j=i?j:a("<div></div>").append(a.parseHTML(j)).html(),this.set_text(b,j),m=!!this.rename_node(b,i?a("<div></div>").text(f).text():a("<div></div>").append(a.parseHTML(f)).html()),m||this.set_text(b,j),this._data.core.focused=n.id,setTimeout(a.proxy(function(){var a=this.get_node(n.id,!0);a.length&&(this._data.core.focused=n.id,a.children(".jstree-anchor").focus())},this),0),d&&d.call(this,n,m,o),l=null},this),keydown:function(a){var b=a.which;27===b&&(o=!0,this.value=j),(27===b||13===b||37===b||38===b||39===b||40===b||32===b)&&a.stopImmediatePropagation(),(27===b||13===b)&&(a.preventDefault(),this.blur())},click:function(a){a.stopImmediatePropagation()},mousedown:function(a){a.stopImmediatePropagation()},keyup:function(a){l.width(Math.min(k.text("pW"+this.value).width(),f))},keypress:function(a){return 13===a.which?!1:void 0}}),m={fontFamily:g.css("fontFamily")||"",fontSize:g.css("fontSize")||"",fontWeight:g.css("fontWeight")||"",fontStyle:g.css("fontStyle")||"",fontStretch:g.css("fontStretch")||"",fontVariant:g.css("fontVariant")||"",letterSpacing:g.css("letterSpacing")||"",wordSpacing:g.css("wordSpacing")||""},h.attr("class",g.attr("class")).append(g.contents().clone()).append(l),g.replaceWith(h),k.css(m),l.css(m).width(Math.min(k.text("pW"+l[0].value).width(),f))[0].select(),void a(i).one("mousedown.jstree touchstart.jstree dnd_start.vakata",function(b){
l&&b.target!==l&&a(l).blur()})):!1},set_theme:function(b,c){if(!b)return!1;if(c===!0){var d=this.settings.core.themes.dir;d||(d=a.jstree.path+"/themes"),c=d+"/"+b+"/style.css"}c&&-1===a.inArray(c,g)&&(a("head").append('<link rel="stylesheet" href="'+c+'" type="text/css" />'),g.push(c)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=b,this.element.addClass("jstree-"+b),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+b+"-responsive"),this.trigger("set_theme",{theme:b})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(a){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=a,a&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},set_icon:function(c,d){var e,f,g,h;if(a.isArray(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.set_icon(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(h=c.icon,c.icon=d===!0||null===d||d===b||""===d?!0:d,g=this.get_node(c,!0).children(".jstree-anchor").children(".jstree-themeicon"),d===!1?this.hide_icon(c):d===!0||null===d||d===b||""===d?(g.removeClass("jstree-themeicon-custom "+h).css("background","").removeAttr("rel"),h===!1&&this.show_icon(c)):-1===d.indexOf("/")&&-1===d.indexOf(".")?(g.removeClass(h).css("background",""),g.addClass(d+" jstree-themeicon-custom").attr("rel",d),h===!1&&this.show_icon(c)):(g.removeClass(h).css("background",""),g.addClass("jstree-themeicon-custom").css("background","url('"+d+"') center center no-repeat").attr("rel",d),h===!1&&this.show_icon(c)),!0):!1},get_icon:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.icon:!1},hide_icon:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.hide_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(b.icon=!1,this.get_node(b,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0):!1},show_icon:function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.show_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(e=this.get_node(b,!0),b.icon=e.length?e.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"):!0,b.icon||(b.icon=!0),e.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0):!1}},a.vakata={},a.vakata.attributes=function(b,c){b=a(b)[0];var d=c?{}:[];return b&&b.attributes&&a.each(b.attributes,function(b,e){-1===a.inArray(e.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==e.value&&""!==a.trim(e.value)&&(c?d[e.name]=e.value:d.push(e.name))}),d},a.vakata.array_unique=function(a){var c=[],d,e,f,g={};for(d=0,f=a.length;f>d;d++)g[a[d]]===b&&(c.push(a[d]),g[a[d]]=!0);return c},a.vakata.array_remove=function(a,b){return a.splice(b,1),a},a.vakata.array_remove_item=function(b,c){var d=a.inArray(c,b);return-1!==d?a.vakata.array_remove(b,d):b},a.vakata.array_filter=function(a,b,c,d,e){if(a.filter)return a.filter(b,c);d=[];for(e in a)~~e+""==e+""&&e>=0&&b.call(c,a[e],+e,a)&&d.push(a[e]);return d},a.jstree.plugins.changed=function(a,b){var c=[];this.trigger=function(a,d){var e,f;if(d||(d={}),"changed"===a.replace(".jstree","")){d.changed={selected:[],deselected:[]};var g={};for(e=0,f=c.length;f>e;e++)g[c[e]]=1;for(e=0,f=d.selected.length;f>e;e++)g[d.selected[e]]?g[d.selected[e]]=2:d.changed.selected.push(d.selected[e]);for(e=0,f=c.length;f>e;e++)1===g[c[e]]&&d.changed.deselected.push(c[e]);c=d.selected.slice()}b.trigger.call(this,a,d)},this.refresh=function(a,d){return c=[],b.refresh.apply(this,arguments)}};var m=i.createElement("em");m.className="jstree-icon jstree-checkbox",m.setAttribute("role","presentation"),a.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0},a.jstree.plugins.checkbox=function(c,d){this.bind=function(){d.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",a.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")},this)).on("loading.jstree",a.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",a.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(a.proxy(this._undetermined,this),50)},this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",a.proxy(function(a,b){var c=this._model.data,d=c[b.parent],e=b.nodes,f,g;for(f=0,g=e.length;g>f;f++)c[e[f]].state.checked=c[e[f]].state.checked||c[e[f]].original&&c[e[f]].original.state&&c[e[f]].original.state.checked,c[e[f]].state.checked&&this._data.checkbox.selected.push(e[f])},this)),(-1!==this.settings.checkbox.cascade.indexOf("up")||-1!==this.settings.checkbox.cascade.indexOf("down"))&&this.element.on("model.jstree",a.proxy(function(b,c){var d=this._model.data,e=d[c.parent],f=c.nodes,g=[],h,i,j,k,l,m,n=this.settings.checkbox.cascade,o=this.settings.checkbox.tie_selection;if(-1!==n.indexOf("down"))if(e.state[o?"selected":"checked"]){for(i=0,j=f.length;j>i;i++)d[f[i]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(f)}else for(i=0,j=f.length;j>i;i++)if(d[f[i]].state[o?"selected":"checked"]){for(k=0,l=d[f[i]].children_d.length;l>k;k++)d[d[f[i]].children_d[k]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(d[f[i]].children_d)}if(-1!==n.indexOf("up")){for(i=0,j=e.children_d.length;j>i;i++)d[e.children_d[i]].children.length||g.push(d[e.children_d[i]].parent);for(g=a.vakata.array_unique(g),k=0,l=g.length;l>k;k++){e=d[g[k]];while(e&&e.id!==a.jstree.root){for(h=0,i=0,j=e.children.length;j>i;i++)h+=d[e.children[i]].state[o?"selected":"checked"];if(h!==j)break;e.state[o?"selected":"checked"]=!0,this._data[o?"core":"checkbox"].selected.push(e.id),m=this.get_node(e,!0),m&&m.length&&m.attr("aria-selected",!0).children(".jstree-anchor").addClass(o?"jstree-clicked":"jstree-checked"),e=this.get_node(e.parent)}}}this._data[o?"core":"checkbox"].selected=a.vakata.array_unique(this._data[o?"core":"checkbox"].selected)},this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",a.proxy(function(b,c){var d=c.node,e=this._model.data,f=this.get_node(d.parent),g=this.get_node(d,!0),h,i,j,k,l=this.settings.checkbox.cascade,m=this.settings.checkbox.tie_selection,n={},o=this._data[m?"core":"checkbox"].selected;for(h=0,i=o.length;i>h;h++)n[o[h]]=!0;if(-1!==l.indexOf("down"))for(h=0,i=d.children_d.length;i>h;h++)n[d.children_d[h]]=!0,k=e[d.children_d[h]],k.state[m?"selected":"checked"]=!0,k&&k.original&&k.original.state&&k.original.state.undetermined&&(k.original.state.undetermined=!1);if(-1!==l.indexOf("up"))while(f&&f.id!==a.jstree.root){for(j=0,h=0,i=f.children.length;i>h;h++)j+=e[f.children[h]].state[m?"selected":"checked"];if(j!==i)break;f.state[m?"selected":"checked"]=!0,n[f.id]=!0,k=this.get_node(f,!0),k&&k.length&&k.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),f=this.get_node(f.parent)}o=[];for(h in n)n.hasOwnProperty(h)&&o.push(h);this._data[m?"core":"checkbox"].selected=o,-1!==l.indexOf("down")&&g.length&&g.find(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked").parent().attr("aria-selected",!0)},this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",a.proxy(function(b,c){var d=this.get_node(a.jstree.root),e=this._model.data,f,g,h;for(f=0,g=d.children_d.length;g>f;f++)h=e[d.children_d[f]],h&&h.original&&h.original.state&&h.original.state.undetermined&&(h.original.state.undetermined=!1)},this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",a.proxy(function(b,c){var d=c.node,e=this.get_node(d,!0),f,g,h,i=this.settings.checkbox.cascade,j=this.settings.checkbox.tie_selection,k=this._data[j?"core":"checkbox"].selected,l={};if(d&&d.original&&d.original.state&&d.original.state.undetermined&&(d.original.state.undetermined=!1),-1!==i.indexOf("down"))for(f=0,g=d.children_d.length;g>f;f++)h=this._model.data[d.children_d[f]],h.state[j?"selected":"checked"]=!1,h&&h.original&&h.original.state&&h.original.state.undetermined&&(h.original.state.undetermined=!1);if(-1!==i.indexOf("up"))for(f=0,g=d.parents.length;g>f;f++)h=this._model.data[d.parents[f]],h.state[j?"selected":"checked"]=!1,h&&h.original&&h.original.state&&h.original.state.undetermined&&(h.original.state.undetermined=!1),h=this.get_node(d.parents[f],!0),h&&h.length&&h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(j?"jstree-clicked":"jstree-checked");for(l={},f=0,g=k.length;g>f;f++)-1!==i.indexOf("down")&&-1!==a.inArray(k[f],d.children_d)||-1!==i.indexOf("up")&&-1!==a.inArray(k[f],d.parents)||(l[k[f]]=!0);k=[];for(f in l)l.hasOwnProperty(f)&&k.push(f);this._data[j?"core":"checkbox"].selected=k,-1!==i.indexOf("down")&&e.length&&e.find(".jstree-anchor").removeClass(j?"jstree-clicked":"jstree-checked").parent().attr("aria-selected",!1)},this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",a.proxy(function(b,c){var d=this.get_node(c.parent),e=this._model.data,f,g,h,i,j=this.settings.checkbox.tie_selection;while(d&&d.id!==a.jstree.root&&!d.state[j?"selected":"checked"]){for(h=0,f=0,g=d.children.length;g>f;f++)h+=e[d.children[f]].state[j?"selected":"checked"];if(!(g>0&&h===g))break;d.state[j?"selected":"checked"]=!0,this._data[j?"core":"checkbox"].selected.push(d.id),i=this.get_node(d,!0),i&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(j?"jstree-clicked":"jstree-checked"),d=this.get_node(d.parent)}},this)).on("move_node.jstree",a.proxy(function(b,c){var d=c.is_multi,e=c.old_parent,f=this.get_node(c.parent),g=this._model.data,h,i,j,k,l,m=this.settings.checkbox.tie_selection;if(!d){h=this.get_node(e);while(h&&h.id!==a.jstree.root&&!h.state[m?"selected":"checked"]){for(i=0,j=0,k=h.children.length;k>j;j++)i+=g[h.children[j]].state[m?"selected":"checked"];if(!(k>0&&i===k))break;h.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),h=this.get_node(h.parent)}}h=f;while(h&&h.id!==a.jstree.root){for(i=0,j=0,k=h.children.length;k>j;j++)i+=g[h.children[j]].state[m?"selected":"checked"];if(i===k)h.state[m?"selected":"checked"]||(h.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"));else{if(!h.state[m?"selected":"checked"])break;h.state[m?"selected":"checked"]=!1,this._data[m?"core":"checkbox"].selected=a.vakata.array_remove_item(this._data[m?"core":"checkbox"].selected,h.id),l=this.get_node(h,!0),l&&l.length&&l.attr("aria-selected",!1).children(".jstree-anchor").removeClass(m?"jstree-clicked":"jstree-checked")}h=this.get_node(h.parent)}},this))},this._undetermined=function(){if(null!==this.element){var c,d,e,f,g={},h=this._model.data,i=this.settings.checkbox.tie_selection,j=this._data[i?"core":"checkbox"].selected,k=[],l=this;for(c=0,d=j.length;d>c;c++)if(h[j[c]]&&h[j[c]].parents)for(e=0,f=h[j[c]].parents.length;f>e;e++){if(g[h[j[c]].parents[e]]!==b)break;h[j[c]].parents[e]!==a.jstree.root&&(g[h[j[c]].parents[e]]=!0,k.push(h[j[c]].parents[e]))}for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var i=l.get_node(this),j;if(i.state.loaded){for(c=0,d=i.children_d.length;d>c;c++)if(j=h[i.children_d[c]],!j.state.loaded&&j.original&&j.original.state&&j.original.state.undetermined&&j.original.state.undetermined===!0)for(g[j.id]===b&&j.id!==a.jstree.root&&(g[j.id]=!0,k.push(j.id)),e=0,f=j.parents.length;f>e;e++)g[j.parents[e]]===b&&j.parents[e]!==a.jstree.root&&(g[j.parents[e]]=!0,k.push(j.parents[e]))}else if(i.original&&i.original.state&&i.original.state.undetermined&&i.original.state.undetermined===!0)for(g[i.id]===b&&i.id!==a.jstree.root&&(g[i.id]=!0,k.push(i.id)),e=0,f=i.parents.length;f>e;e++)g[i.parents[e]]===b&&i.parents[e]!==a.jstree.root&&(g[i.parents[e]]=!0,k.push(i.parents[e]))}),this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),c=0,d=k.length;d>c;c++)h[k[c]].state[i?"selected":"checked"]||(j=this.get_node(k[c],!0),j&&j.length&&j.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined"))}},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments)){var g,h,i=null,j=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(!this.settings.checkbox.tie_selection&&this._model.data[b.id].state.checked&&(i.className+=" jstree-checked"),j=m.cloneNode(!1),this._model.data[b.id].state.checkbox_disabled&&(j.className+=" jstree-checkbox-disabled"),i.insertBefore(j,i.childNodes[0]))}return e||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(a.proxy(this._undetermined,this),50)),b},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(b){b=this.get_node(b);var c=this.settings.checkbox.cascade,d,e,f=this.settings.checkbox.tie_selection,g=this._data[f?"core":"checkbox"].selected,h=this._model.data;if(!b||b.state[f?"selected":"checked"]===!0||-1===c.indexOf("undetermined")||-1===c.indexOf("down")&&-1===c.indexOf("up"))return!1;if(!b.state.loaded&&b.original.state.undetermined===!0)return!0;for(d=0,e=b.children_d.length;e>d;d++)if(-1!==a.inArray(b.children_d[d],g)||!h[b.children_d[d]].state.loaded&&h[b.children_d[d]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled||(b.state.checkbox_disabled=!0,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:b})))):!1},this.enable_checkbox=function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled&&(b.state.checkbox_disabled=!1,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:b})))):!1},this.activate_node=function(b,c){return a(c.target).hasClass("jstree-checkbox-disabled")?!1:(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||a(c.target).hasClass("jstree-checkbox"))&&(c.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!a(c.target).hasClass("jstree-checkbox")?d.activate_node.call(this,b,c):this.is_disabled(b)?!1:(this.is_checked(b)?this.uncheck_node(b,c):this.check_node(b,c),void this.trigger("activate_node",{node:this.get_node(b)})))},this.check_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.select_node(b,!1,!0,c);var d,e,f,g;if(a.isArray(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.check_node(b[e],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(d=this.get_node(b,!0),void(b.state.checked||(b.state.checked=!0,this._data.checkbox.selected.push(b.id),d&&d.length&&d.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.uncheck_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.deselect_node(b,!1,c);var d,e,f;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.uncheck_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.checked&&(b.state.checked=!1,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,b.id),f.length&&f.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var b=this._data.checkbox.selected.concat([]),c,d;for(this._data.checkbox.selected=this._model.data[a.jstree.root].children_d.concat(),c=0,d=this._data.checkbox.selected.length;d>c;c++)this._model.data[this._data.checkbox.selected[c]]&&(this._model.data[this._data.checkbox.selected[c]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var a=this._data.checkbox.selected.concat([]),b,c;for(b=0,c=this._data.checkbox.selected.length;c>b;b++)this._model.data[this._data.checkbox.selected[b]]&&(this._model.data[this._data.checkbox.selected[b]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:a})},this.is_checked=function(b){return this.settings.checkbox.tie_selection?this.is_selected(b):(b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.checked:!1)},this.get_checked=function(b){return this.settings.checkbox.tie_selection?this.get_selected(b):b?a.map(this._data.checkbox.selected,a.proxy(function(a){return this.get_node(a)},this)):this._data.checkbox.selected},this.get_top_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_top_selected(b);var c=this.get_checked(!0),d={},e,f,g,h;for(e=0,f=c.length;f>e;e++)d[c[e].id]=c[e];for(e=0,f=c.length;f>e;e++)for(g=0,h=c[e].children_d.length;h>g;g++)d[c[e].children_d[g]]&&delete d[c[e].children_d[g]];c=[];for(e in d)d.hasOwnProperty(e)&&c.push(e);return b?a.map(c,a.proxy(function(a){return this.get_node(a)},this)):c},this.get_bottom_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(b);var c=this.get_checked(!0),d=[],e,f;for(e=0,f=c.length;f>e;e++)c[e].children.length||d.push(c[e].id);return b?a.map(d,a.proxy(function(a){return this.get_node(a)},this)):d},this.load_node=function(b,c){var e,f,g,h,i,j;if(!a.isArray(b)&&!this.settings.checkbox.tie_selection&&(j=this.get_node(b),j&&j.state.loaded))for(e=0,f=j.children_d.length;f>e;e++)this._model.data[j.children_d[e]].state.checked&&(i=!0,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,j.children_d[e]));return d.load_node.apply(this,arguments)},this.get_state=function(){var a=d.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection?a:(a.checkbox=this._data.checkbox.selected.slice(),a)},this.set_state=function(b,c){var e=d.set_state.apply(this,arguments);if(e&&b.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var f=this;a.each(b.checkbox,function(a,b){f.check_node(b)})}return delete b.checkbox,this.set_state(b,c),!1}return e},this.refresh=function(a,b){return this.settings.checkbox.tie_selection||(this._data.checkbox.selected=[]),d.refresh.apply(this,arguments)}},a.jstree.defaults.conditionalselect=function(){return!0},a.jstree.plugins.conditionalselect=function(a,b){this.activate_node=function(a,c){this.settings.conditionalselect.call(this,this.get_node(a),c)&&b.activate_node.call(this,a,c)}},a.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(b,c){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.create_node(d,{},"last",function(a){setTimeout(function(){c.edit(a)},0)})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.edit(d)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.delete_node(c.get_selected()):c.delete_node(d)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.cut(c.get_top_selected()):c.cut(d)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.copy(c.get_top_selected()):c.copy(d)}},paste:{separator_before:!1,icon:!1,_disabled:function(b){return!a.jstree.reference(b.reference).can_paste()},separator_after:!1,label:"Paste",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.paste(d)}}}}}}},a.jstree.plugins.contextmenu=function(c,d){this.bind=function(){d.bind.call(this);var b=0,c=null,e,f;this.element.on("contextmenu.jstree",".jstree-anchor",a.proxy(function(a,d){"input"!==a.target.tagName.toLowerCase()&&(a.preventDefault(),b=a.ctrlKey?+new Date:0,(d||c)&&(b=+new Date+1e4),c&&clearTimeout(c),this.is_loading(a.currentTarget)||this.show_contextmenu(a.currentTarget,a.pageX,a.pageY,a))},this)).on("click.jstree",".jstree-anchor",a.proxy(function(c){this._data.contextmenu.visible&&(!b||+new Date-b>250)&&a.vakata.context.hide(),b=0},this)).on("touchstart.jstree",".jstree-anchor",function(b){b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(e=b.pageX,f=b.pageY,c=setTimeout(function(){a(b.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(a){c&&a.originalEvent&&a.originalEvent.changedTouches&&a.originalEvent.changedTouches[0]&&(Math.abs(e-a.pageX)>50||Math.abs(f-a.pageY)>50)&&clearTimeout(c)}).on("touchend.vakata.jstree",function(a){c&&clearTimeout(c)}),a(i).on("context_hide.vakata.jstree",a.proxy(function(a,b){this._data.contextmenu.visible=!1,b.reference.removeClass("jstree-context")},this))},this.teardown=function(){this._data.contextmenu.visible&&a.vakata.context.hide(),d.teardown.call(this)},this.show_contextmenu=function(c,d,e,f){if(c=this.get_node(c),!c||c.id===a.jstree.root)return!1;var g=this.settings.contextmenu,h=this.get_node(c,!0),i=h.children(".jstree-anchor"),j=!1,k=!1;(g.show_at_node||d===b||e===b)&&(j=i.offset(),d=j.left,e=j.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(c)&&this.activate_node(c,f),k=g.items,a.isFunction(k)&&(k=k.call(this,c,a.proxy(function(a){this._show_contextmenu(c,d,e,a)},this))),a.isPlainObject(k)&&this._show_contextmenu(c,d,e,k)},this._show_contextmenu=function(b,c,d,e){var f=this.get_node(b,!0),g=f.children(".jstree-anchor");a(i).one("context_show.vakata.jstree",a.proxy(function(b,c){var d="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";a(c.element).addClass(d),g.addClass("jstree-context")},this)),this._data.contextmenu.visible=!0,a.vakata.context.show(g,{x:c,y:d},e),this.trigger("show_contextmenu",{node:b,x:c,y:d})}},function(a){var b=!1,c={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};a.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(b){a(i).triggerHandler("context_"+b+".vakata",{reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}})},_execute:function(b){return b=c.items[b],b&&(!b._disabled||a.isFunction(b._disabled)&&!b._disabled({item:b,reference:c.reference,element:c.element}))&&b.action?b.action.call(null,{item:b,reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}}):!1},_parse:function(b,d){if(!b)return!1;d||(c.html="",c.items=[]);var e="",f=!1,g;return d&&(e+="<ul>"),a.each(b,function(b,d){return d?(c.items.push(d),!f&&d.separator_before&&(e+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;</a></li>"),f=!1,e+="<li class='"+(d._class||"")+(d._disabled===!0||a.isFunction(d._disabled)&&d._disabled({item:d,reference:c.reference,element:c.element})?" vakata-contextmenu-disabled ":"")+"' "+(d.shortcut?" data-shortcut='"+d.shortcut+"' ":"")+">",e+="<a href='#' rel='"+(c.items.length-1)+"'>",a.vakata.context.settings.icons&&(e+="<em ",d.icon&&(e+=-1!==d.icon.indexOf("/")||-1!==d.icon.indexOf(".")?" style='background:url(\""+d.icon+"\") center center no-repeat' ":" class='"+d.icon+"' "),e+="></em><span class='vakata-contextmenu-sep'>&#160;</span>"),e+=(a.isFunction(d.label)?d.label({item:b,reference:c.reference,element:c.element}):d.label)+(d.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+d.shortcut+'">'+(d.shortcut_label||"")+"</span>":"")+"</a>",d.submenu&&(g=a.vakata.context._parse(d.submenu,!0),g&&(e+=g)),e+="</li>",void(d.separator_after&&(e+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'style="margin-left:0px;"')+">&#160;</a></li>",f=!0))):!0}),e=e.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),d&&(e+="</ul>"),d||(c.html=e,a.vakata.context._trigger("parse")),e.length>10?e:!1},_show_submenu:function(c){if(c=a(c),c.length&&c.children("ul").length){var d=c.children("ul"),e=c.offset().left,f=e+c.outerWidth(),g=c.offset().top,h=d.width(),i=d.height(),j=a(window).width()+a(window).scrollLeft(),k=a(window).height()+a(window).scrollTop();b?c[f-(h+10+c.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):c[f+h>j&&e>j-f?"addClass":"removeClass"]("vakata-context-right"),g+i+10>k&&d.css("bottom","-1px"),c.hasClass("vakata-context-right")?h>e&&d.css("margin-right",e-h):h>j-f&&d.css("margin-left",j-f-h),d.show()}},show:function(d,e,f){var g,h,i,j,k,l,m,n,o=!0;switch(c.element&&c.element.length&&c.element.width(""),o){case!e&&!d:return!1;case!!e&&!!d:c.reference=d,c.position_x=e.x,c.position_y=e.y;break;case!e&&!!d:c.reference=d,g=d.offset(),c.position_x=g.left+d.outerHeight(),c.position_y=g.top;break;case!!e&&!d:c.position_x=e.x,c.position_y=e.y}d&&!f&&a(d).data("vakata_contextmenu")&&(f=a(d).data("vakata_contextmenu")),a.vakata.context._parse(f)&&c.element.html(c.html),c.items.length&&(c.element.appendTo("body"),h=c.element,i=c.position_x,j=c.position_y,k=h.width(),l=h.height(),m=a(window).width()+a(window).scrollLeft(),n=a(window).height()+a(window).scrollTop(),b&&(i-=h.outerWidth()-a(d).outerWidth(),i<a(window).scrollLeft()+20&&(i=a(window).scrollLeft()+20)),i+k+20>m&&(i=m-(k+20)),j+l+20>n&&(j=n-(l+20)),c.element.css({left:i,top:j}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),c.is_visible=!0,a.vakata.context._trigger("show"))},hide:function(){c.is_visible&&(c.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),c.is_visible=!1,a.vakata.context._trigger("hide"))}},a(function(){b="rtl"===a("body").css("direction");var d=!1;c.element=a("<ul class='vakata-context'></ul>"),c.element.on("mouseenter","li",function(b){b.stopImmediatePropagation(),a.contains(this,b.relatedTarget)||(d&&clearTimeout(d),c.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),a(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),a.vakata.context._show_submenu(this))}).on("mouseleave","li",function(b){a.contains(this,b.relatedTarget)||a(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(b){a(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),a.vakata.context.settings.hide_onmouseleave&&(d=setTimeout(function(b){return function(){a.vakata.context.hide()}}(this),a.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(b){b.preventDefault(),a(this).blur().parent().hasClass("vakata-context-disabled")||a.vakata.context._execute(a(this).attr("rel"))===!1||a.vakata.context.hide()}).on("keydown","a",function(b){var d=null;switch(b.which){case 13:case 32:b.type="mouseup",b.preventDefault(),a(b.currentTarget).trigger(b);break;case 37:c.is_visible&&(c.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 38:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),d.addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 39:c.is_visible&&(c.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 40:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),d.addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 27:a.vakata.context.hide(),b.preventDefault()}}).on("keydown",function(a){a.preventDefault();var b=c.element.find(".vakata-contextmenu-shortcut-"+a.which).parent();b.parent().not(".vakata-context-disabled")&&b.click()}),a(i).on("mousedown.vakata.jstree",function(b){
c.is_visible&&!a.contains(c.element[0],b.target)&&a.vakata.context.hide()}).on("context_show.vakata.jstree",function(a,d){c.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),b&&c.element.addClass("vakata-context-rtl").css("direction","rtl"),c.element.find("ul").hide().end()})})}(a),a.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1};var n,o;a.jstree.plugins.dnd=function(b,c){this.init=function(a,b){c.init.call(this,a,b),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in i.createElement("span")},this.bind=function(){c.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",a.proxy(function(b){if(this.settings.dnd.large_drag_target&&a(b.target).closest(".jstree-node")[0]!==b.currentTarget)return!0;if("touchstart"===b.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var c=this.get_node(b.target),d=this.is_selected(c)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,e=d>1?d+" "+this.get_string("nodes"):this.get_text(b.currentTarget);if(this.settings.core.force_text&&(e=a.vakata.html.escape(e)),c&&c.id&&c.id!==a.jstree.root&&(1===b.which||"touchstart"===b.type||"dragstart"===b.type)&&(this.settings.dnd.is_draggable===!0||a.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,d>1?this.get_top_selected(!0):[c],b))){if(n={jstree:!0,origin:this,obj:this.get_node(c,!0),nodes:d>1?this.get_top_selected():[c.id]},o=b.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),a.vakata.dnd.start(b,n,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><em class="jstree-icon jstree-er"></em>'+e+'<ins class="jstree-copy" style="display:none;">+</ins></div>');a.vakata.dnd._trigger("start",b,{helper:a(),element:o,data:n})}},this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",function(b){return b.preventDefault(),a.vakata.dnd._trigger("move",b,{helper:a(),element:o,data:n}),!1}).on("drop.jstree",a.proxy(function(b){return b.preventDefault(),a.vakata.dnd._trigger("stop",b,{helper:a(),element:o,data:n}),!1},this))},this.redraw_node=function(a,b,d,e){if(a=c.redraw_node.apply(this,arguments),a&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)a.setAttribute("draggable",!0);else{var f,g,h=null;for(f=0,g=a.childNodes.length;g>f;f++)if(a.childNodes[f]&&a.childNodes[f].className&&-1!==a.childNodes[f].className.indexOf("jstree-anchor")){h=a.childNodes[f];break}h&&h.setAttribute("draggable",!0)}return a}},a(function(){var c=!1,d=!1,e=!1,f=!1,g=a('<div id="jstree-marker">&#160;</div>').hide();a(i).on("dnd_start.vakata.jstree",function(a,b){c=!1,e=!1,b&&b.data&&b.data.jstree&&g.appendTo("body")}).on("dnd_move.vakata.jstree",function(h,i){if(f&&(i.event&&"dragover"===i.event.type&&i.event.target===e.target||clearTimeout(f)),i&&i.data&&i.data.jstree&&(!i.event.target.id||"jstree-marker"!==i.event.target.id)){e=i.event;var j=a.jstree.reference(i.event.target),k=!1,l=!1,m=!1,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;if(j&&j._data&&j._data.dnd)if(g.attr("class","jstree-"+j.get_theme()+(j.settings.core.themes.responsive?" jstree-dnd-responsive":"")),C=i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey)),i.helper.children().attr("class","jstree-"+j.get_theme()+" jstree-"+j.get_theme()+"-"+j.get_theme_variant()+" "+(j.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[C?"show":"hide"](),i.event.target!==j.element[0]&&i.event.target!==j.get_container_ul()[0]||0!==j.get_container_ul().children().length){if(k=j.settings.dnd.large_drop_target?a(i.event.target).closest(".jstree-node").children(".jstree-anchor"):a(i.event.target).closest(".jstree-anchor"),k&&k.length&&k.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(l=k.offset(),m=(i.event.pageY!==b?i.event.pageY:i.event.originalEvent.pageY)-l.top,q=k.outerHeight(),t=q/3>m?["b","i","a"]:m>q-q/3?["a","i","b"]:m>q/2?["i","a","b"]:["i","b","a"],a.each(t,function(b,e){switch(e){case"b":o=l.left-6,p=l.top,r=j.get_parent(k),s=k.parent().index();break;case"i":A=j.settings.dnd.inside_pos,B=j.get_node(k.parent()),o=l.left-2,p=l.top+q/2+1,r=B.id,s="first"===A?0:"last"===A?B.children.length:Math.min(A,B.children.length);break;case"a":o=l.left-6,p=l.top+q,r=j.get_parent(k),s=k.parent().index()+1}for(u=!0,v=0,w=i.data.nodes.length;w>v;v++)if(x=i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey))?"copy_node":"move_node",y=s,"move_node"===x&&"a"===e&&i.data.origin&&i.data.origin===j&&r===j.get_parent(i.data.nodes[v])&&(z=j.get_node(r),y>a.inArray(i.data.nodes[v],z.children)&&(y-=1)),u=u&&(j&&j.settings&&j.settings.dnd&&j.settings.dnd.check_while_dragging===!1||j.check(x,i.data.origin&&i.data.origin!==j?i.data.origin.get_node(i.data.nodes[v]):i.data.nodes[v],r,y,{dnd:!0,ref:j.get_node(k.parent()),pos:e,origin:i.data.origin,is_multi:i.data.origin&&i.data.origin!==j,is_foreign:!i.data.origin})),!u){j&&j.last_error&&(d=j.last_error());break}return"i"===e&&k.parent().is(".jstree-closed")&&j.settings.dnd.open_timeout&&(f=setTimeout(function(a,b){return function(){a.open_node(b)}}(j,k),j.settings.dnd.open_timeout)),u?(c={ins:j,par:r,pos:"i"!==e||"last"!==A||0!==s||j.is_loaded(B)?s:"last"},g.css({left:o+"px",top:p+"px"}).show(),i.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),i.event.originalEvent&&i.event.originalEvent.dataTransfer&&(i.event.originalEvent.dataTransfer.dropEffect=C?"copy":"move"),d={},t=!0,!1):void 0}),t===!0))return}else{for(u=!0,v=0,w=i.data.nodes.length;w>v;v++)if(u=u&&j.check(i.data.origin&&(i.data.origin.settings.dnd.always_copy||i.data.origin.settings.dnd.copy&&(i.event.metaKey||i.event.ctrlKey))?"copy_node":"move_node",i.data.origin&&i.data.origin!==j?i.data.origin.get_node(i.data.nodes[v]):i.data.nodes[v],a.jstree.root,"last",{dnd:!0,ref:j.get_node(a.jstree.root),pos:"i",origin:i.data.origin,is_multi:i.data.origin&&i.data.origin!==j,is_foreign:!i.data.origin}),!u)break;if(u)return c={ins:j,par:a.jstree.root,pos:"last"},g.hide(),i.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(i.event.originalEvent&&i.event.originalEvent.dataTransfer&&(i.event.originalEvent.dataTransfer.dropEffect=C?"copy":"move"))}c=!1,i.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),i.event.originalEvent&&i.event.originalEvent.dataTransfer&&(i.event.originalEvent.dataTransfer.dropEffect="none"),g.hide()}}).on("dnd_scroll.vakata.jstree",function(a,b){b&&b.data&&b.data.jstree&&(g.hide(),c=!1,e=!1,b.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(b,h){if(f&&clearTimeout(f),h&&h.data&&h.data.jstree){g.hide().detach();var i,j,k=[];if(c){for(i=0,j=h.data.nodes.length;j>i;i++)k[i]=h.data.origin?h.data.origin.get_node(h.data.nodes[i]):h.data.nodes[i];c.ins[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"copy_node":"move_node"](k,c.par,c.pos,!1,!1,!1,h.data.origin)}else i=a(h.event.target).closest(".jstree"),i.length&&d&&d.error&&"check"===d.error&&(i=i.jstree(!0),i&&i.settings.core.error.call(this,d));e=!1,c=!1}}).on("keyup.jstree keydown.jstree",function(b,h){h=a.vakata.dnd._get(),h&&h.data&&h.data.jstree&&("keyup"===b.type&&27===b.which?(f&&clearTimeout(f),c=!1,d=!1,e=!1,f=!1,g.hide().detach(),a.vakata.dnd._clean()):(h.helper.find(".jstree-copy").first()[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(b.metaKey||b.ctrlKey))?"show":"hide"](),e&&(e.metaKey=b.metaKey,e.ctrlKey=b.ctrlKey,a.vakata.dnd._trigger("move",e))))})}),function(a){a.vakata.html={div:a("<div />"),escape:function(b){return a.vakata.html.div.text(b).html()},strip:function(b){return a.vakata.html.div.empty().append(a.parseHTML(b)).text()}};var c={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};a.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:50},_trigger:function(c,d,e){e===b&&(e=a.vakata.dnd._get()),e.event=d,a(i).triggerHandler("dnd_"+c+".vakata",e)},_get:function(){return{data:c.data,element:c.element,helper:c.helper}},_clean:function(){c.helper&&c.helper.remove(),c.scroll_i&&(clearInterval(c.scroll_i),c.scroll_i=!1),c={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},a(i).off("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(i).off("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop)},_scroll:function(b){if(!c.scroll_e||!c.scroll_l&&!c.scroll_t)return c.scroll_i&&(clearInterval(c.scroll_i),c.scroll_i=!1),!1;if(!c.scroll_i)return c.scroll_i=setInterval(a.vakata.dnd._scroll,100),!1;if(b===!0)return!1;var d=c.scroll_e.scrollTop(),e=c.scroll_e.scrollLeft();c.scroll_e.scrollTop(d+c.scroll_t*a.vakata.dnd.settings.scroll_speed),c.scroll_e.scrollLeft(e+c.scroll_l*a.vakata.dnd.settings.scroll_speed),(d!==c.scroll_e.scrollTop()||e!==c.scroll_e.scrollLeft())&&a.vakata.dnd._trigger("scroll",c.scroll_e)},start:function(b,d,e){"touchstart"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_drag&&a.vakata.dnd.stop({});try{b.currentTarget.unselectable="on",b.currentTarget.onselectstart=function(){return!1},b.currentTarget.style&&(b.currentTarget.style.touchAction="none",b.currentTarget.style.msTouchAction="none",b.currentTarget.style.MozUserSelect="none")}catch(f){}return c.init_x=b.pageX,c.init_y=b.pageY,c.data=d,c.is_down=!0,c.element=b.currentTarget,c.target=b.target,c.is_touch="touchstart"===b.type,e!==!1&&(c.helper=a("<div id='vakata-dnd'></div>").html(e).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),a(i).on("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(i).on("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop),!1},drag:function(b){if("touchmove"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_down){if(!c.is_drag){if(!(Math.abs(b.pageX-c.init_x)>(c.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)||Math.abs(b.pageY-c.init_y)>(c.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)))return;c.helper&&(c.helper.appendTo("body"),c.helper_w=c.helper.outerWidth()),c.is_drag=!0,a.vakata.dnd._trigger("start",b)}var d=!1,e=!1,f=!1,g=!1,h=!1,j=!1,k=!1,l=!1,m=!1,n=!1;return c.scroll_t=0,c.scroll_l=0,c.scroll_e=!1,a(a(b.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(a(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var d=a(this),e=d.offset();return this.scrollHeight>this.offsetHeight&&(e.top+d.height()-b.pageY<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=1),b.pageY-e.top<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(e.left+d.width()-b.pageX<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=1),b.pageX-e.left<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=-1)),c.scroll_t||c.scroll_l?(c.scroll_e=a(this),!1):void 0}),c.scroll_e||(d=a(i),e=a(window),f=d.height(),g=e.height(),h=d.width(),j=e.width(),k=d.scrollTop(),l=d.scrollLeft(),f>g&&b.pageY-k<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=-1),f>g&&g-(b.pageY-k)<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_t=1),h>j&&b.pageX-l<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=-1),h>j&&j-(b.pageX-l)<a.vakata.dnd.settings.scroll_proximity&&(c.scroll_l=1),(c.scroll_t||c.scroll_l)&&(c.scroll_e=d)),c.scroll_e&&a.vakata.dnd._scroll(!0),c.helper&&(m=parseInt(b.pageY+a.vakata.dnd.settings.helper_top,10),n=parseInt(b.pageX+a.vakata.dnd.settings.helper_left,10),f&&m+25>f&&(m=f-50),h&&n+c.helper_w>h&&(n=h-(c.helper_w+2)),c.helper.css({left:n+"px",top:m+"px"})),a.vakata.dnd._trigger("move",b),!1}},stop:function(b){if("touchend"===b.type&&b.originalEvent&&b.originalEvent.changedTouches&&b.originalEvent.changedTouches[0]&&(b.pageX=b.originalEvent.changedTouches[0].pageX,b.pageY=b.originalEvent.changedTouches[0].pageY,b.target=i.elementFromPoint(b.originalEvent.changedTouches[0].pageX-window.pageXOffset,b.originalEvent.changedTouches[0].pageY-window.pageYOffset)),c.is_drag)a.vakata.dnd._trigger("stop",b);else if("touchend"===b.type&&b.target===c.target){var d=setTimeout(function(){a(b.target).click()},100);a(b.target).one("click",function(){d&&clearTimeout(d)})}return a.vakata.dnd._clean(),!1}}}(a),a.jstree.defaults.massload=null,a.jstree.plugins.massload=function(b,c){this.init=function(a,b){this._data.massload={},c.init.call(this,a,b)},this._load_nodes=function(b,d,e,f){var g=this.settings.massload,h=JSON.stringify(b),i=[],j=this._model.data,k,l,m;if(!e){for(k=0,l=b.length;l>k;k++)(!j[b[k]]||!j[b[k]].state.loaded&&!j[b[k]].state.failed||f)&&(i.push(b[k]),m=this.get_node(b[k],!0),m&&m.length&&m.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},i.length){if(a.isFunction(g))return g.call(this,i,a.proxy(function(a){var g,h;if(a)for(g in a)a.hasOwnProperty(g)&&(this._data.massload[g]=a[g]);for(g=0,h=b.length;h>g;g++)m=this.get_node(b[g],!0),m&&m.length&&m.removeClass("jstree-loading").attr("aria-busy",!1);c._load_nodes.call(this,b,d,e,f)},this));if("object"==typeof g&&g&&g.url)return g=a.extend(!0,{},g),a.isFunction(g.url)&&(g.url=g.url.call(this,i)),a.isFunction(g.data)&&(g.data=g.data.call(this,i)),a.ajax(g).done(a.proxy(function(a,g,h){var i,j;if(a)for(i in a)a.hasOwnProperty(i)&&(this._data.massload[i]=a[i]);for(i=0,j=b.length;j>i;i++)m=this.get_node(b[i],!0),m&&m.length&&m.removeClass("jstree-loading").attr("aria-busy",!1);c._load_nodes.call(this,b,d,e,f)},this)).fail(a.proxy(function(a){c._load_nodes.call(this,b,d,e,f)},this))}}return c._load_nodes.call(this,b,d,e,f)},this._load_node=function(b,d){var e=this._data.massload[b.id],f=null,g;return e?(f=this["string"==typeof e?"_append_html_data":"_append_json_data"](b,"string"==typeof e?a(a.parseHTML(e)).filter(function(){return 3!==this.nodeType}):e,function(a){d.call(this,a)}),g=this.get_node(b.id,!0),g&&g.length&&g.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[b.id],f):c._load_node.call(this,b,d)}},a.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},a.jstree.plugins.search=function(c,d){this.bind=function(){d.bind.call(this),this._data.search.str="",this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",a.proxy(function(b,c){if(this._data.search.som&&c.res.length){var d=this._model.data,e,f,g=[],h,i;for(e=0,f=c.res.length;f>e;e++)if(d[c.res[e]]&&!d[c.res[e]].state.hidden&&(g.push(c.res[e]),g=g.concat(d[c.res[e]].parents),this._data.search.smc))for(h=0,i=d[c.res[e]].children_d.length;i>h;h++)d[d[c.res[e]].children_d[h]]&&!d[d[c.res[e]].children_d[h]].state.hidden&&g.push(d[c.res[e]].children_d[h]);g=a.vakata.array_remove_item(a.vakata.array_unique(g),a.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(g,!0),this.redraw(!0)}},this)).on("clear_search.jstree",a.proxy(function(a,b){this._data.search.som&&b.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))},this))},this.search=function(c,d,e,f,g,h){if(c===!1||""===a.trim(c.toString()))return this.clear_search();f=this.get_node(f),f=f&&f.id?f.id:null,c=c.toString();var i=this.settings.search,j=i.ajax?i.ajax:!1,k=this._model.data,l=null,m=[],n=[],o,p;if(this._data.search.res.length&&!g&&this.clear_search(),e===b&&(e=i.show_only_matches),h===b&&(h=i.show_only_matches_children),!d&&j!==!1)return a.isFunction(j)?j.call(this,c,a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)})},this),f):(j=a.extend({},j),j.data||(j.data={}),j.data.str=c,f&&(j.data.inside=f),a.ajax(j).fail(a.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(j)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)})},this)));if(g||(this._data.search.str=c,this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=e,this._data.search.smc=h),l=new a.vakata.search(c,!0,{caseSensitive:i.case_sensitive,fuzzy:i.fuzzy}),a.each(k[f?f:a.jstree.root].children_d,function(a,b){var d=k[b];d.text&&!d.state.hidden&&(!i.search_leaves_only||d.state.loaded&&0===d.children.length)&&(i.search_callback&&i.search_callback.call(this,c,d)||!i.search_callback&&l.search(d.text).isMatch)&&(m.push(b),n=n.concat(d.parents))}),m.length){for(n=a.vakata.array_unique(n),o=0,p=n.length;p>o;o++)n[o]!==a.jstree.root&&k[n[o]]&&this.open_node(n[o],null,0)===!0&&this._data.search.opn.push(n[o]);g?(this._data.search.dom=this._data.search.dom.add(a(this.element[0].querySelectorAll("#"+a.map(m,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=a.vakata.array_unique(this._data.search.res.concat(m))):(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(m,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=m),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:c,res:this._data.search.res,show_only_matches:e})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(this._data.search.res,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=a()},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments),b&&-1!==a.inArray(b.id,this._data.search.res)){var g,h,i=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(i.className+=" jstree-search")}return b}},function(a){a.vakata.search=function(b,c,d){d=d||{},d=a.extend({},a.vakata.search.defaults,d),d.fuzzy!==!1&&(d.fuzzy=!0),b=d.caseSensitive?b:b.toLowerCase();var e=d.location,f=d.distance,g=d.threshold,h=b.length,i,j,k,l;return h>32&&(d.fuzzy=!1),d.fuzzy&&(i=1<<h-1,j=function(){var a={},c=0;for(c=0;h>c;c++)a[b.charAt(c)]=0;for(c=0;h>c;c++)a[b.charAt(c)]|=1<<h-c-1;return a}(),k=function(a,b){var c=a/h,d=Math.abs(e-b);return f?c+d/f:d?1:c}),l=function(a){if(a=d.caseSensitive?a:a.toLowerCase(),b===a||-1!==a.indexOf(b))return{isMatch:!0,score:0};if(!d.fuzzy)return{isMatch:!1,score:1};var c,f,l=a.length,m=g,n=a.indexOf(b,e),o,p,q=h+l,r,s,t,u,v,w=1,x=[];for(-1!==n&&(m=Math.min(k(0,n),m),n=a.lastIndexOf(b,e+h),-1!==n&&(m=Math.min(k(0,n),m))),n=-1,c=0;h>c;c++){o=0,p=q;while(p>o)k(c,e+p)<=m?o=p:q=p,p=Math.floor((q-o)/2+o);for(q=p,s=Math.max(1,e-p+1),t=Math.min(e+p,l)+h,u=new Array(t+2),u[t+1]=(1<<c)-1,f=t;f>=s;f--)if(v=j[a.charAt(f-1)],0===c?u[f]=(u[f+1]<<1|1)&v:u[f]=(u[f+1]<<1|1)&v|((r[f+1]|r[f])<<1|1)|r[f+1],u[f]&i&&(w=k(c,f-1),m>=w)){if(m=w,n=f-1,x.push(n),!(n>e))break;s=Math.max(1,2*e-n)}if(k(c+1,e)>m)break;r=u}return{isMatch:n>=0,score:w}},c===!0?{search:l}:l(c)},a.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(a),a.jstree.defaults.sort=function(a,b){return this.get_text(a)>this.get_text(b)?1:-1},a.jstree.plugins.sort=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("model.jstree",a.proxy(function(a,b){this.sort(b.parent,!0)},this)).on("rename_node.jstree create_node.jstree",a.proxy(function(a,b){this.sort(b.parent||b.node.parent,!1),this.redraw_node(b.parent||b.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",a.proxy(function(a,b){this.sort(b.parent,!1),this.redraw_node(b.parent,!0)},this))},this.sort=function(b,c){var d,e;if(b=this.get_node(b),b&&b.children&&b.children.length&&(b.children.sort(a.proxy(this.settings.sort,this)),c))for(d=0,e=b.children_d.length;e>d;d++)this.sort(b.children_d[d],!1)}};var p=!1;a.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1},a.jstree.plugins.state=function(b,c){this.bind=function(){c.bind.call(this);var b=a.proxy(function(){this.element.on(this.settings.state.events,a.proxy(function(){p&&clearTimeout(p),p=setTimeout(a.proxy(function(){this.save_state()},this),100)},this)),this.trigger("state_ready")},this);this.element.on("ready.jstree",a.proxy(function(a,c){this.element.one("restore_state.jstree",b),this.restore_state()||b()},this))},this.save_state=function(){var b={state:this.get_state(),ttl:this.settings.state.ttl,sec:+new Date};a.vakata.storage.set(this.settings.state.key,JSON.stringify(b))},this.restore_state=function(){var b=a.vakata.storage.get(this.settings.state.key);if(b)try{b=JSON.parse(b)}catch(c){return!1}return b&&b.ttl&&b.sec&&+new Date-b.sec>b.ttl?!1:(b&&b.state&&(b=b.state),b&&a.isFunction(this.settings.state.filter)&&(b=this.settings.state.filter.call(this,b)),b?(this.element.one("set_state.jstree",function(c,d){d.instance.trigger("restore_state",{state:a.extend(!0,{},b)})}),this.set_state(b),!0):!1)},this.clear_state=function(){return a.vakata.storage.del(this.settings.state.key)}},function(a,b){a.vakata.storage={set:function(a,b){return window.localStorage.setItem(a,b)},get:function(a){return window.localStorage.getItem(a)},del:function(a){return window.localStorage.removeItem(a)}}}(a),a.jstree.defaults.types={"default":{}},a.jstree.defaults.types[a.jstree.root]={},a.jstree.plugins.types=function(c,d){this.init=function(c,e){var f,g;if(e&&e.types&&e.types["default"])for(f in e.types)if("default"!==f&&f!==a.jstree.root&&e.types.hasOwnProperty(f))for(g in e.types["default"])e.types["default"].hasOwnProperty(g)&&e.types[f][g]===b&&(e.types[f][g]=e.types["default"][g]);d.init.call(this,c,e),this._model.data[a.jstree.root].type=a.jstree.root},this.refresh=function(b,c){d.refresh.call(this,b,c),this._model.data[a.jstree.root].type=a.jstree.root},this.bind=function(){this.element.on("model.jstree",a.proxy(function(c,d){var e=this._model.data,f=d.nodes,g=this.settings.types,h,i,j="default",k;for(h=0,i=f.length;i>h;h++){if(j="default",e[f[h]].original&&e[f[h]].original.type&&g[e[f[h]].original.type]&&(j=e[f[h]].original.type),e[f[h]].data&&e[f[h]].data.jstree&&e[f[h]].data.jstree.type&&g[e[f[h]].data.jstree.type]&&(j=e[f[h]].data.jstree.type),e[f[h]].type=j,e[f[h]].icon===!0&&g[j].icon!==b&&(e[f[h]].icon=g[j].icon),g[j].li_attr!==b&&"object"==typeof g[j].li_attr)for(k in g[j].li_attr)if(g[j].li_attr.hasOwnProperty(k)){if("id"===k)continue;e[f[h]].li_attr[k]===b?e[f[h]].li_attr[k]=g[j].li_attr[k]:"class"===k&&(e[f[h]].li_attr["class"]=g[j].li_attr["class"]+" "+e[f[h]].li_attr["class"])}if(g[j].a_attr!==b&&"object"==typeof g[j].a_attr)for(k in g[j].a_attr)if(g[j].a_attr.hasOwnProperty(k)){if("id"===k)continue;e[f[h]].a_attr[k]===b?e[f[h]].a_attr[k]=g[j].a_attr[k]:"href"===k&&"#"===e[f[h]].a_attr[k]?e[f[h]].a_attr.href=g[j].a_attr.href:"class"===k&&(e[f[h]].a_attr["class"]=g[j].a_attr["class"]+" "+e[f[h]].a_attr["class"])}}e[a.jstree.root].type=a.jstree.root},this)),d.bind.call(this)},this.get_json=function(b,c,e){var f,g,h=this._model.data,i=c?a.extend(!0,{},c,{no_id:!1}):{},j=d.get_json.call(this,b,i,e);if(j===!1)return!1;if(a.isArray(j))for(f=0,g=j.length;g>f;f++)j[f].type=j[f].id&&h[j[f].id]&&h[j[f].id].type?h[j[f].id].type:"default",c&&c.no_id&&(delete j[f].id,j[f].li_attr&&j[f].li_attr.id&&delete j[f].li_attr.id,j[f].a_attr&&j[f].a_attr.id&&delete j[f].a_attr.id);else j.type=j.id&&h[j.id]&&h[j.id].type?h[j.id].type:"default",c&&c.no_id&&(j=this._delete_ids(j));return j},this._delete_ids=function(b){if(a.isArray(b)){for(var c=0,d=b.length;d>c;c++)b[c]=this._delete_ids(b[c]);return b}return delete b.id,b.li_attr&&b.li_attr.id&&delete b.li_attr.id,b.a_attr&&b.a_attr.id&&delete b.a_attr.id,b.children&&a.isArray(b.children)&&(b.children=this._delete_ids(b.children)),b},this.check=function(c,e,f,g,h){if(d.check.call(this,c,e,f,g,h)===!1)return!1;e=e&&e.id?e:this.get_node(e),f=f&&f.id?f:this.get_node(f);var i=e&&e.id?h&&h.origin?h.origin:a.jstree.reference(e.id):null,j,k,l,m;switch(i=i&&i._model&&i._model.data?i._model.data:null,c){case"create_node":case"move_node":case"copy_node":if("move_node"!==c||-1===a.inArray(e.id,f.children)){if(j=this.get_rules(f),j.max_children!==b&&-1!==j.max_children&&j.max_children===f.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(j.valid_children!==b&&-1!==j.valid_children&&-1===a.inArray(e.type||"default",j.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(i&&e.children_d&&e.parents){for(k=0,l=0,m=e.children_d.length;m>l;l++)k=Math.max(k,i[e.children_d[l]].parents.length);k=k-e.parents.length+1}(0>=k||k===b)&&(k=1);do{if(j.max_depth!==b&&-1!==j.max_depth&&j.max_depth<k)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;f=this.get_node(f.parent),j=this.get_rules(f),k++}while(f)}}return!0},this.get_rules=function(a){if(a=this.get_node(a),!a)return!1;var c=this.get_type(a,!0);return c.max_depth===b&&(c.max_depth=-1),c.max_children===b&&(c.max_children=-1),c.valid_children===b&&(c.valid_children=-1),c},this.get_type=function(b,c){return b=this.get_node(b),b?c?a.extend({type:b.type},this.settings.types[b.type]):b.type:!1},this.set_type=function(c,d){var e=this._model.data,f,g,h,i,j,k,l,m;if(a.isArray(c)){for(c=c.slice(),g=0,h=c.length;h>g;g++)this.set_type(c[g],d);return!0}if(f=this.settings.types,c=this.get_node(c),!f[d]||!c)return!1;if(l=this.get_node(c,!0),l&&l.length&&(m=l.children(".jstree-anchor")),i=c.type,j=this.get_icon(c),c.type=d,(j===!0||f[i]&&f[i].icon!==b&&j===f[i].icon)&&this.set_icon(c,f[d].icon!==b?f[d].icon:!0),f[i].li_attr!==b&&"object"==typeof f[i].li_attr)for(k in f[i].li_attr)if(f[i].li_attr.hasOwnProperty(k)){if("id"===k)continue;"class"===k?(e[c.id].li_attr["class"]=(e[c.id].li_attr["class"]||"").replace(f[i].li_attr[k],""),l&&l.removeClass(f[i].li_attr[k])):e[c.id].li_attr[k]===f[i].li_attr[k]&&(e[c.id].li_attr[k]=null,l&&l.removeAttr(k))}if(f[i].a_attr!==b&&"object"==typeof f[i].a_attr)for(k in f[i].a_attr)if(f[i].a_attr.hasOwnProperty(k)){if("id"===k)continue;"class"===k?(e[c.id].a_attr["class"]=(e[c.id].a_attr["class"]||"").replace(f[i].a_attr[k],""),m&&m.removeClass(f[i].a_attr[k])):e[c.id].a_attr[k]===f[i].a_attr[k]&&("href"===k?(e[c.id].a_attr[k]="#",m&&m.attr("href","#")):(delete e[c.id].a_attr[k],m&&m.removeAttr(k)))}if(f[d].li_attr!==b&&"object"==typeof f[d].li_attr)for(k in f[d].li_attr)if(f[d].li_attr.hasOwnProperty(k)){if("id"===k)continue;e[c.id].li_attr[k]===b?(e[c.id].li_attr[k]=f[d].li_attr[k],l&&("class"===k?l.addClass(f[d].li_attr[k]):l.attr(k,f[d].li_attr[k]))):"class"===k&&(e[c.id].li_attr["class"]=f[d].li_attr[k]+" "+e[c.id].li_attr["class"],l&&l.addClass(f[d].li_attr[k]))}if(f[d].a_attr!==b&&"object"==typeof f[d].a_attr)for(k in f[d].a_attr)if(f[d].a_attr.hasOwnProperty(k)){if("id"===k)continue;e[c.id].a_attr[k]===b?(e[c.id].a_attr[k]=f[d].a_attr[k],m&&("class"===k?m.addClass(f[d].a_attr[k]):m.attr(k,f[d].a_attr[k]))):"href"===k&&"#"===e[c.id].a_attr[k]?(e[c.id].a_attr.href=f[d].a_attr.href,m&&m.attr("href",f[d].a_attr.href)):"class"===k&&(e[c.id].a_attr["class"]=f[d].a_attr["class"]+" "+e[c.id].a_attr["class"],m&&m.addClass(f[d].a_attr[k]))}return!0}},a.jstree.defaults.unique={case_sensitive:!1,duplicate:function(a,b){return a+" ("+b+")"}},a.jstree.plugins.unique=function(c,d){this.check=function(b,c,e,f,g){if(d.check.call(this,b,c,e,f,g)===!1)return!1;if(c=c&&c.id?c:this.get_node(c),e=e&&e.id?e:this.get_node(e),!e||!e.children)return!0;var h="rename_node"===b?f:c.text,i=[],j=this.settings.unique.case_sensitive,k=this._model.data,l,m;for(l=0,m=e.children.length;m>l;l++)i.push(j?k[e.children[l]].text:k[e.children[l]].text.toLowerCase());switch(j||(h=h.toLowerCase()),b){case"delete_node":return!0;case"rename_node":return l=-1===a.inArray(h,i)||c.text&&c.text[j?"toString":"toLowerCase"]()===h,l||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),l;case"create_node":return l=-1===a.inArray(h,i),l||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),l;case"copy_node":return l=-1===a.inArray(h,i),l||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),l;case"move_node":return l=c.parent===e.id&&(!g||!g.is_multi)||-1===a.inArray(h,i),l||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+h+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),l}return!0},this.create_node=function(c,e,f,g,h){if(!e||e.text===b){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return d.create_node.call(this,c,e,f,g,h);if(f=f===b?"last":f,
!f.toString().match(/^(before|after)$/)&&!h&&!this.is_loaded(c))return d.create_node.call(this,c,e,f,g,h);e||(e={});var i,j,k,l,m,n=this._model.data,o=this.settings.unique.case_sensitive,p=this.settings.unique.duplicate;for(j=i=this.get_string("New node"),k=[],l=0,m=c.children.length;m>l;l++)k.push(o?n[c.children[l]].text:n[c.children[l]].text.toLowerCase());l=1;while(-1!==a.inArray(o?j:j.toLowerCase(),k))j=p.call(this,i,++l).toString();e.text=j}return d.create_node.call(this,c,e,f,g,h)}};var q=i.createElement("DIV");if(q.setAttribute("unselectable","on"),q.setAttribute("role","presentation"),q.className="jstree-wholerow",q.innerHTML="&#160;",a.jstree.plugins.wholerow=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("ready.jstree set_state.jstree",a.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",a.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var c=!1,d,e;for(d=0,e=b.selected.length;e>d;d++)c=this.get_node(b.selected[d],!0),c&&c.length&&c.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",a.proxy(function(a,b){this.get_node(b.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",a.proxy(function(a,b){"hover_node"===a.type&&this.is_disabled(b.node)||this.get_node(b.node,!0).children(".jstree-wholerow")["hover_node"===a.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",a.proxy(function(b){if(this._data.contextmenu){b.preventDefault();var c=a.Event("contextmenu",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,pageX:b.pageX,pageY:b.pageY});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c)}},this)).on("click.jstree",".jstree-wholerow",function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",a.proxy(function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",a.proxy(function(a){return a.stopImmediatePropagation(),this.is_disabled(a.currentTarget)||this.hover_node(a.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",a.proxy(function(a){this.dehover_node(a.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),c.teardown.call(this)},this.redraw_node=function(b,d,e,f){if(b=c.redraw_node.apply(this,arguments)){var g=q.cloneNode(!0);-1!==a.inArray(b.id,this._data.core.selected)&&(g.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===b.id&&(g.className+=" jstree-wholerow-hovered"),b.insertBefore(g,b.childNodes[0])}return b}},i.registerElement&&Object&&Object.create){var r=Object.create(HTMLElement.prototype);r.createdCallback=function(){var b={core:{},plugins:[]},c;for(c in a.jstree.plugins)a.jstree.plugins.hasOwnProperty(c)&&this.attributes[c]&&(b.plugins.push(c),this.getAttribute(c)&&JSON.parse(this.getAttribute(c))&&(b[c]=JSON.parse(this.getAttribute(c))));for(c in a.jstree.defaults.core)a.jstree.defaults.core.hasOwnProperty(c)&&this.attributes[c]&&(b.core[c]=JSON.parse(this.getAttribute(c))||this.getAttribute(c));a(this).jstree(b)};try{i.registerElement("vakata-jstree",{prototype:r})}catch(s){}}}});/**
 * @license
 * lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
 */
;(function(){function t(t,n){return t.set(n[0],n[1]),t}function n(t,n){return t.add(n),t}function r(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function e(t,n,r,e){for(var u=-1,o=t?t.length:0;++u<o;){var i=t[u];n(e,i,r(i),t)}return e}function u(t,n){for(var r=-1,e=t?t.length:0;++r<e&&false!==n(t[r],r,t););return t}function o(t,n){for(var r=t?t.length:0;r--&&false!==n(t[r],r,t););
return t}function i(t,n){for(var r=-1,e=t?t.length:0;++r<e;)if(!n(t[r],r,t))return false;return true}function f(t,n){for(var r=-1,e=t?t.length:0,u=0,o=[];++r<e;){var i=t[r];n(i,r,t)&&(o[u++]=i)}return o}function c(t,n){return!(!t||!t.length)&&-1<d(t,n,0)}function a(t,n,r){for(var e=-1,u=t?t.length:0;++e<u;)if(r(n,t[e]))return true;return false}function l(t,n){for(var r=-1,e=t?t.length:0,u=Array(e);++r<e;)u[r]=n(t[r],r,t);return u}function s(t,n){for(var r=-1,e=n.length,u=t.length;++r<e;)t[u+r]=n[r];return t}function h(t,n,r,e){
var u=-1,o=t?t.length:0;for(e&&o&&(r=t[++u]);++u<o;)r=n(r,t[u],u,t);return r}function p(t,n,r,e){var u=t?t.length:0;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);return r}function _(t,n){for(var r=-1,e=t?t.length:0;++r<e;)if(n(t[r],r,t))return true;return false}function v(t,n,r){var e;return r(t,function(t,r,u){if(n(t,r,u))return e=r,false}),e}function g(t,n,r,e){var u=t.length;for(r+=e?1:-1;e?r--:++r<u;)if(n(t[r],r,t))return r;return-1}function d(t,n,r){if(n!==n)return g(t,b,r);--r;for(var e=t.length;++r<e;)if(t[r]===n)return r;
return-1}function y(t,n,r,e){--r;for(var u=t.length;++r<u;)if(e(t[r],n))return r;return-1}function b(t){return t!==t}function x(t,n){var r=t?t.length:0;return r?k(t,n)/r:q}function j(t){return function(n){return null==n?P:n[t]}}function w(t){return function(n){return null==t?P:t[n]}}function m(t,n,r,e,u){return u(t,function(t,u,o){r=e?(e=false,t):n(r,t,u,o)}),r}function A(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].c;return t}function k(t,n){for(var r,e=-1,u=t.length;++e<u;){var o=n(t[e]);o!==P&&(r=r===P?o:r+o);
}return r}function E(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}function O(t,n){return l(n,function(n){return[n,t[n]]})}function S(t){return function(n){return t(n)}}function I(t,n){return l(n,function(n){return t[n]})}function R(t,n){return t.has(n)}function W(t,n){for(var r=-1,e=t.length;++r<e&&-1<d(n,t[r],0););return r}function B(t,n){for(var r=t.length;r--&&-1<d(n,t[r],0););return r}function L(t){return"\\"+Ft[t]}function C(t){var n=false;if(null!=t&&typeof t.toString!="function")try{
n=!!(t+"")}catch(t){}return n}function U(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function M(t,n){return function(r){return t(n(r))}}function z(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){var i=t[r];i!==n&&"__lodash_placeholder__"!==i||(t[r]="__lodash_placeholder__",o[u++]=r)}return o}function D(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}function T(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=[t,t]}),r}function $(t){
if(Ut.test(t)){for(var n=Lt.lastIndex=0;Lt.test(t);)n++;t=n}else t=en(t);return t}function F(t){return Ut.test(t)?t.match(Lt)||[]:t.split("")}function N(w){function St(t){return Hu.call(t)}function It(t){if(ou(t)&&!Fi(t)&&!(t instanceof $t)){if(t instanceof Lt)return t;if(Gu.call(t,"__wrapped__"))return Oe(t)}return new Lt(t)}function Rt(){}function Lt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=P}function $t(t){this.__wrapped__=t,this.__actions__=[],
this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ft(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Zt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function qt(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function Kt(t){var n=-1,r=t?t.length:0;for(this.__data__=new qt;++n<r;)this.add(t[n])}function Gt(t){this.__data__=new Zt(t);
}function Yt(t,n){var r,e=Fi(t)||He(t)?E(t.length,Fu):[],u=e.length,o=!!u;for(r in t)!n&&!Gu.call(t,r)||o&&("length"==r||ge(r,u))||e.push(r);return e}function en(t,n,r,e){return t===P||Ye(t,Zu[r])&&!Gu.call(e,r)?n:t}function an(t,n,r){(r===P||Ye(t[n],r))&&(typeof n!="number"||r!==P||n in t)||(t[n]=r)}function ln(t,n,r){var e=t[n];Gu.call(t,n)&&Ye(e,r)&&(r!==P||n in t)||(t[n]=r)}function sn(t,n){for(var r=t.length;r--;)if(Ye(t[r][0],n))return r;return-1}function hn(t,n,r,e){return Po(t,function(t,u,o){
n(e,t,r(t),o)}),e}function pn(t,n){return t&&Br(n,bu(n),t)}function _n(t,n){for(var r=-1,e=null==t,u=n.length,o=Cu(u);++r<u;)o[r]=e?P:du(t,n[r]);return o}function vn(t,n,r){return t===t&&(r!==P&&(t=t<=r?t:r),n!==P&&(t=t>=n?t:n)),t}function gn(t,n,r,e,o,i,f){var c;if(e&&(c=i?e(t,o,i,f):e(t)),c!==P)return c;if(!uu(t))return t;if(o=Fi(t)){if(c=he(t),!n)return Wr(t,c)}else{var a=St(t),l="[object Function]"==a||"[object GeneratorFunction]"==a;if(Pi(t))return Er(t,n);if("[object Object]"==a||"[object Arguments]"==a||l&&!i){
if(C(t))return i?t:{};if(c=pe(l?{}:t),!n)return Lr(t,pn(c,t))}else{if(!Tt[a])return i?t:{};c=_e(t,a,gn,n)}}if(f||(f=new Gt),i=f.get(t))return i;if(f.set(t,c),!o)var s=r?Rn(t,bu,Ho):bu(t);return u(s||t,function(u,o){s&&(o=u,u=t[o]),ln(c,o,gn(u,n,r,e,o,t,f))}),c}function dn(t){var n=bu(t);return function(r){return yn(r,t,n)}}function yn(t,n,r){var e=r.length;if(null==t)return!e;for(t=Tu(t);e--;){var u=r[e],o=n[u],i=t[u];if(i===P&&!(u in t)||!o(i))return false}return true}function bn(t){return uu(t)?oo(t):{};
}function xn(t,n,r){if(typeof t!="function")throw new Nu("Expected a function");return ni(function(){t.apply(P,r)},n)}function jn(t,n,r,e){var u=-1,o=c,i=true,f=t.length,s=[],h=n.length;if(!f)return s;r&&(n=l(n,S(r))),e?(o=a,i=false):200<=n.length&&(o=R,i=false,n=new Kt(n));t:for(;++u<f;){var p=t[u],_=r?r(p):p,p=e||0!==p?p:0;if(i&&_===_){for(var v=h;v--;)if(n[v]===_)continue t;s.push(p)}else o(n,_,e)||s.push(p)}return s}function wn(t,n){var r=true;return Po(t,function(t,e,u){return r=!!n(t,e,u)}),r}function mn(t,n,r){
for(var e=-1,u=t.length;++e<u;){var o=t[e],i=n(o);if(null!=i&&(f===P?i===i&&!au(i):r(i,f)))var f=i,c=o}return c}function An(t,n){var r=[];return Po(t,function(t,e,u){n(t,e,u)&&r.push(t)}),r}function kn(t,n,r,e,u){var o=-1,i=t.length;for(r||(r=ve),u||(u=[]);++o<i;){var f=t[o];0<n&&r(f)?1<n?kn(f,n-1,r,e,u):s(u,f):e||(u[u.length]=f)}return u}function En(t,n){return t&&qo(t,n,bu)}function On(t,n){return t&&Vo(t,n,bu)}function Sn(t,n){return f(n,function(n){return nu(t[n])})}function In(t,n){n=ye(n,t)?[n]:Ar(n);
for(var r=0,e=n.length;null!=t&&r<e;)t=t[Ae(n[r++])];return r&&r==e?t:P}function Rn(t,n,r){return n=n(t),Fi(t)?n:s(n,r(t))}function Wn(t,n){return t>n}function Bn(t,n){return null!=t&&Gu.call(t,n)}function Ln(t,n){return null!=t&&n in Tu(t)}function Cn(t,n,r){for(var e=r?a:c,u=t[0].length,o=t.length,i=o,f=Cu(o),s=1/0,h=[];i--;){var p=t[i];i&&n&&(p=l(p,S(n))),s=jo(p.length,s),f[i]=!r&&(n||120<=u&&120<=p.length)?new Kt(i&&p):P}var p=t[0],_=-1,v=f[0];t:for(;++_<u&&h.length<s;){var g=p[_],d=n?n(g):g,g=r||0!==g?g:0;
if(v?!R(v,d):!e(h,d,r)){for(i=o;--i;){var y=f[i];if(y?!R(y,d):!e(t[i],d,r))continue t}v&&v.push(d),h.push(g)}}return h}function Un(t,n,r){var e={};return En(t,function(t,u,o){n(e,r(t),u,o)}),e}function Mn(t,n,e){return ye(n,t)||(n=Ar(n),t=me(t,n),n=We(n)),n=null==t?t:t[Ae(n)],null==n?P:r(n,t,e)}function zn(t){return ou(t)&&"[object ArrayBuffer]"==Hu.call(t)}function Dn(t){return ou(t)&&"[object Date]"==Hu.call(t)}function Tn(t,n,r,e,u){if(t===n)n=true;else if(null==t||null==n||!uu(t)&&!ou(n))n=t!==t&&n!==n;else t:{
var o=Fi(t),i=Fi(n),f="[object Array]",c="[object Array]";o||(f=St(t),f="[object Arguments]"==f?"[object Object]":f),i||(c=St(n),c="[object Arguments]"==c?"[object Object]":c);var a="[object Object]"==f&&!C(t),i="[object Object]"==c&&!C(n);if((c=f==c)&&!a)u||(u=new Gt),n=o||Gi(t)?ee(t,n,Tn,r,e,u):ue(t,n,f,Tn,r,e,u);else{if(!(2&e)&&(o=a&&Gu.call(t,"__wrapped__"),f=i&&Gu.call(n,"__wrapped__"),o||f)){t=o?t.value():t,n=f?n.value():n,u||(u=new Gt),n=Tn(t,n,r,e,u);break t}if(c)n:if(u||(u=new Gt),o=2&e,
f=bu(t),i=f.length,c=bu(n).length,i==c||o){for(a=i;a--;){var l=f[a];if(!(o?l in n:Gu.call(n,l))){n=false;break n}}if((c=u.get(t))&&u.get(n))n=c==n;else{c=true,u.set(t,n),u.set(n,t);for(var s=o;++a<i;){var l=f[a],h=t[l],p=n[l];if(r)var _=o?r(p,h,l,n,t,u):r(h,p,l,t,n,u);if(_===P?h!==p&&!Tn(h,p,r,e,u):!_){c=false;break}s||(s="constructor"==l)}c&&!s&&(r=t.constructor,e=n.constructor,r!=e&&"constructor"in t&&"constructor"in n&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(c=false)),
u.delete(t),u.delete(n),n=c}}else n=false;else n=false}}return n}function $n(t){return ou(t)&&"[object Map]"==St(t)}function Fn(t,n,r,e){var u=r.length,o=u,i=!e;if(null==t)return!o;for(t=Tu(t);u--;){var f=r[u];if(i&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return false}for(;++u<o;){var f=r[u],c=f[0],a=t[c],l=f[1];if(i&&f[2]){if(a===P&&!(c in t))return false}else{if(f=new Gt,e)var s=e(a,l,c,t,n,f);if(s===P?!Tn(l,a,e,3,f):!s)return false}}return true}function Nn(t){return!(!uu(t)||Vu&&Vu in t)&&(nu(t)||C(t)?Xu:wt).test(ke(t))}function Pn(t){
return uu(t)&&"[object RegExp]"==Hu.call(t)}function Zn(t){return ou(t)&&"[object Set]"==St(t)}function qn(t){return ou(t)&&eu(t.length)&&!!Dt[Hu.call(t)]}function Vn(t){return typeof t=="function"?t:null==t?Ou:typeof t=="object"?Fi(t)?Qn(t[0],t[1]):Hn(t):Wu(t)}function Kn(t){if(!xe(t))return bo(t);var n,r=[];for(n in Tu(t))Gu.call(t,n)&&"constructor"!=n&&r.push(n);return r}function Gn(t){if(!uu(t)){var n=[];if(null!=t)for(var r in Tu(t))n.push(r);return n}r=xe(t);var e=[];for(n in t)("constructor"!=n||!r&&Gu.call(t,n))&&e.push(n);
return e}function Jn(t,n){return t<n}function Yn(t,n){var r=-1,e=Qe(t)?Cu(t.length):[];return Po(t,function(t,u,o){e[++r]=n(t,u,o)}),e}function Hn(t){var n=ae(t);return 1==n.length&&n[0][2]?je(n[0][0],n[0][1]):function(r){return r===t||Fn(r,t,n)}}function Qn(t,n){return ye(t)&&n===n&&!uu(n)?je(Ae(t),n):function(r){var e=du(r,t);return e===P&&e===n?yu(r,t):Tn(n,e,P,3)}}function Xn(t,n,r,e,o){if(t!==n){if(!Fi(n)&&!Gi(n))var i=Gn(n);u(i||n,function(u,f){if(i&&(f=u,u=n[f]),uu(u)){o||(o=new Gt);var c=f,a=o,l=t[c],s=n[c],h=a.get(s);
if(h)an(t,c,h);else{var h=e?e(l,s,c+"",t,n,a):P,p=h===P;p&&(h=s,Fi(s)||Gi(s)?Fi(l)?h=l:Xe(l)?h=Wr(l):(p=false,h=gn(s,true)):fu(s)||He(s)?He(l)?h=vu(l):!uu(l)||r&&nu(l)?(p=false,h=gn(s,true)):h=l:p=false),p&&(a.set(s,h),Xn(h,s,r,e,a),a.delete(s)),an(t,c,h)}}else c=e?e(t[f],u,f+"",t,n,o):P,c===P&&(c=u),an(t,f,c)})}}function tr(t,n){var r=t.length;if(r)return n+=0>n?r:0,ge(n,r)?t[n]:P}function nr(t,n,r){var e=-1;return n=l(n.length?n:[Ou],S(fe())),t=Yn(t,function(t){return{a:l(n,function(n){return n(t)}),b:++e,c:t
}}),A(t,function(t,n){var e;t:{e=-1;for(var u=t.a,o=n.a,i=u.length,f=r.length;++e<i;){var c=Sr(u[e],o[e]);if(c){e=e>=f?c:c*("desc"==r[e]?-1:1);break t}}e=t.b-n.b}return e})}function rr(t,n){return t=Tu(t),er(t,n,function(n,r){return r in t})}function er(t,n,r){for(var e=-1,u=n.length,o={};++e<u;){var i=n[e],f=t[i];r(f,i)&&(o[i]=f)}return o}function ur(t){return function(n){return In(n,t)}}function or(t,n,r,e){var u=e?y:d,o=-1,i=n.length,f=t;for(t===n&&(n=Wr(n)),r&&(f=l(t,S(r)));++o<i;)for(var c=0,a=n[o],a=r?r(a):a;-1<(c=u(f,a,c,e));)f!==t&&fo.call(f,c,1),
fo.call(t,c,1);return t}function ir(t,n){for(var r=t?n.length:0,e=r-1;r--;){var u=n[r];if(r==e||u!==o){var o=u;if(ge(u))fo.call(t,u,1);else if(ye(u,t))delete t[Ae(u)];else{var u=Ar(u),i=me(t,u);null!=i&&delete i[Ae(We(u))]}}}}function fr(t,n){return t+po(mo()*(n-t+1))}function cr(t,n){var r="";if(!t||1>n||9007199254740991<n)return r;do n%2&&(r+=t),(n=po(n/2))&&(t+=t);while(n);return r}function ar(t,n){return n=xo(n===P?t.length-1:n,0),function(){for(var e=arguments,u=-1,o=xo(e.length-n,0),i=Cu(o);++u<o;)i[u]=e[n+u];
for(u=-1,o=Cu(n+1);++u<n;)o[u]=e[u];return o[n]=i,r(t,this,o)}}function lr(t,n,r,e){if(!uu(t))return t;n=ye(n,t)?[n]:Ar(n);for(var u=-1,o=n.length,i=o-1,f=t;null!=f&&++u<o;){var c=Ae(n[u]),a=r;if(u!=i){var l=f[c],a=e?e(l,c,f):P;a===P&&(a=uu(l)?l:ge(n[u+1])?[]:{})}ln(f,c,a),f=f[c]}return t}function sr(t,n,r){var e=-1,u=t.length;for(0>n&&(n=-n>u?0:u+n),r=r>u?u:r,0>r&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0,r=Cu(u);++e<u;)r[e]=t[e+n];return r}function hr(t,n){var r;return Po(t,function(t,e,u){return r=n(t,e,u),
!r}),!!r}function pr(t,n,r){var e=0,u=t?t.length:e;if(typeof n=="number"&&n===n&&2147483647>=u){for(;e<u;){var o=e+u>>>1,i=t[o];null!==i&&!au(i)&&(r?i<=n:i<n)?e=o+1:u=o}return u}return _r(t,n,Ou,r)}function _r(t,n,r,e){n=r(n);for(var u=0,o=t?t.length:0,i=n!==n,f=null===n,c=au(n),a=n===P;u<o;){var l=po((u+o)/2),s=r(t[l]),h=s!==P,p=null===s,_=s===s,v=au(s);(i?e||_:a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):p||v?0:e?s<=n:s<n)?u=l+1:o=l}return jo(o,4294967294)}function vr(t,n){for(var r=-1,e=t.length,u=0,o=[];++r<e;){
var i=t[r],f=n?n(i):i;if(!r||!Ye(f,c)){var c=f;o[u++]=0===i?0:i}}return o}function gr(t){return typeof t=="number"?t:au(t)?q:+t}function dr(t){if(typeof t=="string")return t;if(au(t))return No?No.call(t):"";var n=t+"";return"0"==n&&1/t==-Z?"-0":n}function yr(t,n,r){var e=-1,u=c,o=t.length,i=true,f=[],l=f;if(r)i=false,u=a;else if(200<=o){if(u=n?null:Jo(t))return D(u);i=false,u=R,l=new Kt}else l=n?[]:f;t:for(;++e<o;){var s=t[e],h=n?n(s):s,s=r||0!==s?s:0;if(i&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue t;
n&&l.push(h),f.push(s)}else u(l,h,r)||(l!==f&&l.push(h),f.push(s))}return f}function br(t,n,r,e){for(var u=t.length,o=e?u:-1;(e?o--:++o<u)&&n(t[o],o,t););return r?sr(t,e?0:o,e?o+1:u):sr(t,e?o+1:0,e?u:o)}function xr(t,n){var r=t;return r instanceof $t&&(r=r.value()),h(n,function(t,n){return n.func.apply(n.thisArg,s([t],n.args))},r)}function jr(t,n,r){for(var e=-1,u=t.length;++e<u;)var o=o?s(jn(o,t[e],n,r),jn(t[e],o,n,r)):t[e];return o&&o.length?yr(o,n,r):[]}function wr(t,n,r){for(var e=-1,u=t.length,o=n.length,i={};++e<u;)r(i,t[e],e<o?n[e]:P);
return i}function mr(t){return Xe(t)?t:[]}function Ar(t){return Fi(t)?t:ei(t)}function kr(t,n,r){var e=t.length;return r=r===P?e:r,!n&&r>=e?t:sr(t,n,r)}function Er(t,n){if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Or(t){var n=new t.constructor(t.byteLength);return new ro(n).set(new ro(t)),n}function Sr(t,n){if(t!==n){var r=t!==P,e=null===t,u=t===t,o=au(t),i=n!==P,f=null===n,c=n===n,a=au(n);if(!f&&!a&&!o&&t>n||o&&i&&c&&!f&&!a||e&&i&&c||!r&&c||!u)return 1;if(!e&&!o&&!a&&t<n||a&&r&&u&&!e&&!o||f&&r&&u||!i&&u||!c)return-1;
}return 0}function Ir(t,n,r,e){var u=-1,o=t.length,i=r.length,f=-1,c=n.length,a=xo(o-i,0),l=Cu(c+a);for(e=!e;++f<c;)l[f]=n[f];for(;++u<i;)(e||u<o)&&(l[r[u]]=t[u]);for(;a--;)l[f++]=t[u++];return l}function Rr(t,n,r,e){var u=-1,o=t.length,i=-1,f=r.length,c=-1,a=n.length,l=xo(o-f,0),s=Cu(l+a);for(e=!e;++u<l;)s[u]=t[u];for(l=u;++c<a;)s[l+c]=n[c];for(;++i<f;)(e||u<o)&&(s[l+r[i]]=t[u++]);return s}function Wr(t,n){var r=-1,e=t.length;for(n||(n=Cu(e));++r<e;)n[r]=t[r];return n}function Br(t,n,r,e){r||(r={});
for(var u=-1,o=n.length;++u<o;){var i=n[u],f=e?e(r[i],t[i],i,r,t):P;ln(r,i,f===P?t[i]:f)}return r}function Lr(t,n){return Br(t,Ho(t),n)}function Cr(t,n){return function(r,u){var o=Fi(r)?e:hn,i=n?n():{};return o(r,t,fe(u,2),i)}}function Ur(t){return ar(function(n,r){var e=-1,u=r.length,o=1<u?r[u-1]:P,i=2<u?r[2]:P,o=3<t.length&&typeof o=="function"?(u--,o):P;for(i&&de(r[0],r[1],i)&&(o=3>u?P:o,u=1),n=Tu(n);++e<u;)(i=r[e])&&t(n,i,e,o);return n})}function Mr(t,n){return function(r,e){if(null==r)return r;
if(!Qe(r))return t(r,e);for(var u=r.length,o=n?u:-1,i=Tu(r);(n?o--:++o<u)&&false!==e(i[o],o,i););return r}}function zr(t){return function(n,r,e){var u=-1,o=Tu(n);e=e(n);for(var i=e.length;i--;){var f=e[t?i:++u];if(false===r(o[f],f,o))break}return n}}function Dr(t,n,r){function e(){return(this&&this!==Vt&&this instanceof e?o:t).apply(u?r:this,arguments)}var u=1&n,o=Fr(t);return e}function Tr(t){return function(n){n=gu(n);var r=Ut.test(n)?F(n):P,e=r?r[0]:n.charAt(0);return n=r?kr(r,1).join(""):n.slice(1),
e[t]()+n}}function $r(t){return function(n){return h(ku(Au(n).replace(Wt,"")),t,"")}}function Fr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=bn(t.prototype),n=t.apply(r,n);return uu(n)?n:r;
}}function Nr(t,n,e){function u(){for(var i=arguments.length,f=Cu(i),c=i,a=ie(u);c--;)f[c]=arguments[c];return c=3>i&&f[0]!==a&&f[i-1]!==a?[]:z(f,a),i-=c.length,i<e?Xr(t,n,qr,u.placeholder,P,f,c,P,P,e-i):r(this&&this!==Vt&&this instanceof u?o:t,this,f)}var o=Fr(t);return u}function Pr(t){return function(n,r,e){var u=Tu(n);if(!Qe(n)){var o=fe(r,3);n=bu(n),r=function(t){return o(u[t],t,u)}}return r=t(n,r,e),-1<r?u[o?n[r]:r]:P}}function Zr(t){return ar(function(n){n=kn(n,1);var r=n.length,e=r,u=Lt.prototype.thru;
for(t&&n.reverse();e--;){var o=n[e];if(typeof o!="function")throw new Nu("Expected a function");if(u&&!i&&"wrapper"==oe(o))var i=new Lt([],(true))}for(e=i?e:r;++e<r;)var o=n[e],u=oe(o),f="wrapper"==u?Yo(o):P,i=f&&be(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?i[oe(f[0])].apply(i,f[3]):1==o.length&&be(o)?i[u]():i.thru(o);return function(){var t=arguments,e=t[0];if(i&&1==t.length&&Fi(e)&&200<=e.length)return i.plant(e).value();for(var u=0,t=r?n[u].apply(this,t):e;++u<r;)t=n[u].call(this,t);return t}})}function qr(t,n,r,e,u,o,i,f,c,a){
function l(){for(var d=arguments.length,y=Cu(d),b=d;b--;)y[b]=arguments[b];if(_){var x,j=ie(l),b=y.length;for(x=0;b--;)y[b]===j&&x++}if(e&&(y=Ir(y,e,u,_)),o&&(y=Rr(y,o,i,_)),d-=x,_&&d<a)return j=z(y,j),Xr(t,n,qr,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[t]:t,d=y.length,f){x=y.length;for(var w=jo(f.length,x),m=Wr(y);w--;){var A=f[w];y[w]=ge(A,x)?m[A]:P}}else v&&1<d&&y.reverse();return s&&c<d&&(y.length=c),this&&this!==Vt&&this instanceof l&&(b=g||Fr(b)),b.apply(j,y)}var s=128&n,h=1&n,p=2&n,_=24&n,v=512&n,g=p?P:Fr(t);
return l}function Vr(t,n){return function(r,e){return Un(r,t,n(e))}}function Kr(t,n){return function(r,e){var u;if(r===P&&e===P)return n;if(r!==P&&(u=r),e!==P){if(u===P)return e;typeof r=="string"||typeof e=="string"?(r=dr(r),e=dr(e)):(r=gr(r),e=gr(e)),u=t(r,e)}return u}}function Gr(t){return ar(function(n){return n=1==n.length&&Fi(n[0])?l(n[0],S(fe())):l(kn(n,1),S(fe())),ar(function(e){var u=this;return t(n,function(t){return r(t,u,e)})})})}function Jr(t,n){n=n===P?" ":dr(n);var r=n.length;return 2>r?r?cr(n,t):n:(r=cr(n,ho(t/$(n))),
Ut.test(n)?kr(F(r),0,t).join(""):r.slice(0,t))}function Yr(t,n,e,u){function o(){for(var n=-1,c=arguments.length,a=-1,l=u.length,s=Cu(l+c),h=this&&this!==Vt&&this instanceof o?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++n];return r(h,i?e:this,s)}var i=1&n,f=Fr(t);return o}function Hr(t){return function(n,r,e){e&&typeof e!="number"&&de(n,r,e)&&(r=e=P),n=su(n),r===P?(r=n,n=0):r=su(r),e=e===P?n<r?1:-1:su(e);var u=-1;r=xo(ho((r-n)/(e||1)),0);for(var o=Cu(r);r--;)o[t?r:++u]=n,n+=e;return o}}function Qr(t){
return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=_u(n),r=_u(r)),t(n,r)}}function Xr(t,n,r,e,u,o,i,f,c,a){var l=8&n,s=l?i:P;i=l?P:i;var h=l?o:P;return o=l?P:o,n=(n|(l?32:64))&~(l?64:32),4&n||(n&=-4),u=[t,n,u,h,s,o,i,f,c,a],r=r.apply(P,u),be(t)&&ti(r,u),r.placeholder=e,ri(r,t,n)}function te(t){var n=Du[t];return function(t,r){if(t=_u(t),r=jo(hu(r),292)){var e=(gu(t)+"e").split("e"),e=n(e[0]+"e"+(+e[1]+r)),e=(gu(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return n(t)}}function ne(t){
return function(n){var r=St(n);return"[object Map]"==r?U(n):"[object Set]"==r?T(n):O(n,t(n))}}function re(t,n,r,e,u,o,i,f){var c=2&n;if(!c&&typeof t!="function")throw new Nu("Expected a function");var a=e?e.length:0;if(a||(n&=-97,e=u=P),i=i===P?i:xo(hu(i),0),f=f===P?f:hu(f),a-=u?u.length:0,64&n){var l=e,s=u;e=u=P}var h=c?P:Yo(t);return o=[t,n,r,e,u,l,s,o,i,f],h&&(r=o[1],t=h[1],n=r|t,e=128==t&&8==r||128==t&&256==r&&o[7].length<=h[8]||384==t&&h[7].length<=h[8]&&8==r,131>n||e)&&(1&t&&(o[2]=h[2],n|=1&r?0:4),
(r=h[3])&&(e=o[3],o[3]=e?Ir(e,r,h[4]):r,o[4]=e?z(o[3],"__lodash_placeholder__"):h[4]),(r=h[5])&&(e=o[5],o[5]=e?Rr(e,r,h[6]):r,o[6]=e?z(o[5],"__lodash_placeholder__"):h[6]),(r=h[7])&&(o[7]=r),128&t&&(o[8]=null==o[8]?h[8]:jo(o[8],h[8])),null==o[9]&&(o[9]=h[9]),o[0]=h[0],o[1]=n),t=o[0],n=o[1],r=o[2],e=o[3],u=o[4],f=o[9]=null==o[9]?c?0:t.length:xo(o[9]-a,0),!f&&24&n&&(n&=-25),ri((h?Ko:ti)(n&&1!=n?8==n||16==n?Nr(t,n,f):32!=n&&33!=n||u.length?qr.apply(P,o):Yr(t,n,r,e):Dr(t,n,r),o),t,n)}function ee(t,n,r,e,u,o){
var i=2&u,f=t.length,c=n.length;if(f!=c&&!(i&&c>f))return false;if((c=o.get(t))&&o.get(n))return c==n;var c=-1,a=true,l=1&u?new Kt:P;for(o.set(t,n),o.set(n,t);++c<f;){var s=t[c],h=n[c];if(e)var p=i?e(h,s,c,n,t,o):e(s,h,c,t,n,o);if(p!==P){if(p)continue;a=false;break}if(l){if(!_(n,function(t,n){if(!l.has(n)&&(s===t||r(s,t,e,u,o)))return l.add(n)})){a=false;break}}else if(s!==h&&!r(s,h,e,u,o)){a=false;break}}return o.delete(t),o.delete(n),a}function ue(t,n,r,e,u,o,i){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)break;
t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":if(t.byteLength!=n.byteLength||!e(new ro(t),new ro(n)))break;return true;case"[object Boolean]":case"[object Date]":case"[object Number]":return Ye(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var f=U;case"[object Set]":if(f||(f=D),t.size!=n.size&&!(2&o))break;return(r=i.get(t))?r==n:(o|=1,i.set(t,n),n=ee(f(t),f(n),e,u,o,i),i.delete(t),n);case"[object Symbol]":
if(Fo)return Fo.call(t)==Fo.call(n)}return false}function oe(t){for(var n=t.name+"",r=Co[n],e=Gu.call(Co,n)?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==t)return u.name}return n}function ie(t){return(Gu.call(It,"placeholder")?It:t).placeholder}function fe(){var t=It.iteratee||Su,t=t===Su?Vn:t;return arguments.length?t(arguments[0],arguments[1]):t}function ce(t,n){var r=t.__data__,e=typeof n;return("string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?r[typeof n=="string"?"string":"hash"]:r.map;
}function ae(t){for(var n=bu(t),r=n.length;r--;){var e=n[r],u=t[e];n[r]=[e,u,u===u&&!uu(u)]}return n}function le(t,n){var r=null==t?P:t[n];return Nn(r)?r:P}function se(t,n,r){n=ye(n,t)?[n]:Ar(n);for(var e,u=-1,o=n.length;++u<o;){var i=Ae(n[u]);if(!(e=null!=t&&r(t,i)))break;t=t[i]}return e?e:(o=t?t.length:0,!!o&&eu(o)&&ge(i,o)&&(Fi(t)||He(t)))}function he(t){var n=t.length,r=t.constructor(n);return n&&"string"==typeof t[0]&&Gu.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function pe(t){return typeof t.constructor!="function"||xe(t)?{}:bn(eo(t));
}function _e(r,e,u,o){var i=r.constructor;switch(e){case"[object ArrayBuffer]":return Or(r);case"[object Boolean]":case"[object Date]":return new i((+r));case"[object DataView]":return e=o?Or(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":
return e=o?Or(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.length);case"[object Map]":return e=o?u(U(r),true):U(r),h(e,t,new r.constructor);case"[object Number]":case"[object String]":return new i(r);case"[object RegExp]":return e=new r.constructor(r.source,yt.exec(r)),e.lastIndex=r.lastIndex,e;case"[object Set]":return e=o?u(D(r),true):D(r),h(e,n,new r.constructor);case"[object Symbol]":return Fo?Tu(Fo.call(r)):{}}}function ve(t){return Fi(t)||He(t)||!!(co&&t&&t[co])}function ge(t,n){return n=null==n?9007199254740991:n,
!!n&&(typeof t=="number"||At.test(t))&&-1<t&&0==t%1&&t<n}function de(t,n,r){if(!uu(r))return false;var e=typeof n;return!!("number"==e?Qe(r)&&ge(n,r.length):"string"==e&&n in r)&&Ye(r[n],t)}function ye(t,n){if(Fi(t))return false;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!au(t))||(ut.test(t)||!et.test(t)||null!=n&&t in Tu(n))}function be(t){var n=oe(t),r=It[n];return typeof r=="function"&&n in $t.prototype&&(t===r||(n=Yo(r),!!n&&t===n[0]))}function xe(t){var n=t&&t.constructor;
return t===(typeof n=="function"&&n.prototype||Zu)}function je(t,n){return function(r){return null!=r&&(r[t]===n&&(n!==P||t in Tu(r)))}}function we(t,n,r,e,u,o){return uu(t)&&uu(n)&&(o.set(n,t),Xn(t,n,P,we,o),o.delete(n)),t}function me(t,n){return 1==n.length?t:In(t,sr(n,0,-1))}function Ae(t){if(typeof t=="string"||au(t))return t;var n=t+"";return"0"==n&&1/t==-Z?"-0":n}function ke(t){if(null!=t){try{return Ku.call(t)}catch(t){}return t+""}return""}function Ee(t,n){return u(V,function(r){var e="_."+r[0];
n&r[1]&&!c(t,e)&&t.push(e)}),t.sort()}function Oe(t){if(t instanceof $t)return t.clone();var n=new Lt(t.__wrapped__,t.__chain__);return n.__actions__=Wr(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function Se(t,n,r){var e=t?t.length:0;return e?(r=null==r?0:hu(r),0>r&&(r=xo(e+r,0)),g(t,fe(n,3),r)):-1}function Ie(t,n,r){var e=t?t.length:0;if(!e)return-1;var u=e-1;return r!==P&&(u=hu(r),u=0>r?xo(e+u,0):jo(u,e-1)),g(t,fe(n,3),u,true)}function Re(t){return t&&t.length?t[0]:P}function We(t){
var n=t?t.length:0;return n?t[n-1]:P}function Be(t,n){return t&&t.length&&n&&n.length?or(t,n):t}function Le(t){return t?Ao.call(t):t}function Ce(t){if(!t||!t.length)return[];var n=0;return t=f(t,function(t){if(Xe(t))return n=xo(t.length,n),true}),E(n,function(n){return l(t,j(n))})}function Ue(t,n){if(!t||!t.length)return[];var e=Ce(t);return null==n?e:l(e,function(t){return r(n,P,t)})}function Me(t){return t=It(t),t.__chain__=true,t}function ze(t,n){return n(t)}function De(){return this}function Te(t,n){
return(Fi(t)?u:Po)(t,fe(n,3))}function $e(t,n){return(Fi(t)?o:Zo)(t,fe(n,3))}function Fe(t,n){return(Fi(t)?l:Yn)(t,fe(n,3))}function Ne(t,n,r){var e=-1,u=lu(t),o=u.length,i=o-1;for(n=(r?de(t,n,r):n===P)?1:vn(hu(n),0,o);++e<n;)t=fr(e,i),r=u[t],u[t]=u[e],u[e]=r;return u.length=n,u}function Pe(t,n,r){return n=r?P:n,n=t&&null==n?t.length:n,re(t,128,P,P,P,P,n)}function Ze(t,n){var r;if(typeof n!="function")throw new Nu("Expected a function");return t=hu(t),function(){return 0<--t&&(r=n.apply(this,arguments)),
1>=t&&(n=P),r}}function qe(t,n,r){return n=r?P:n,t=re(t,8,P,P,P,P,P,n),t.placeholder=qe.placeholder,t}function Ve(t,n,r){return n=r?P:n,t=re(t,16,P,P,P,P,P,n),t.placeholder=Ve.placeholder,t}function Ke(t,n,r){function e(n){var r=c,e=a;return c=a=P,_=n,s=t.apply(e,r)}function u(t){var r=t-p;return t-=_,p===P||r>=n||0>r||g&&t>=l}function o(){var t=Ri();if(u(t))return i(t);var r,e=ni;r=t-_,t=n-(t-p),r=g?jo(t,l-r):t,h=e(o,r)}function i(t){return h=P,d&&c?e(t):(c=a=P,s)}function f(){var t=Ri(),r=u(t);if(c=arguments,
a=this,p=t,r){if(h===P)return _=t=p,h=ni(o,n),v?e(t):s;if(g)return h=ni(o,n),e(p)}return h===P&&(h=ni(o,n)),s}var c,a,l,s,h,p,_=0,v=false,g=false,d=true;if(typeof t!="function")throw new Nu("Expected a function");return n=_u(n)||0,uu(r)&&(v=!!r.leading,l=(g="maxWait"in r)?xo(_u(r.maxWait)||0,n):l,d="trailing"in r?!!r.trailing:d),f.cancel=function(){h!==P&&Go(h),_=0,c=p=a=h=P},f.flush=function(){return h===P?s:i(Ri())},f}function Ge(t,n){function r(){var e=arguments,u=n?n.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=t.apply(this,e),
r.cache=o.set(u,e),e)}if(typeof t!="function"||n&&typeof n!="function")throw new Nu("Expected a function");return r.cache=new(Ge.Cache||qt),r}function Je(t){if(typeof t!="function")throw new Nu("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Ye(t,n){return t===n||t!==t&&n!==n}function He(t){return Xe(t)&&Gu.call(t,"callee")&&(!io.call(t,"callee")||"[object Arguments]"==Hu.call(t));
}function Qe(t){return null!=t&&eu(t.length)&&!nu(t)}function Xe(t){return ou(t)&&Qe(t)}function tu(t){return!!ou(t)&&("[object Error]"==Hu.call(t)||typeof t.message=="string"&&typeof t.name=="string")}function nu(t){return t=uu(t)?Hu.call(t):"","[object Function]"==t||"[object GeneratorFunction]"==t}function ru(t){return typeof t=="number"&&t==hu(t)}function eu(t){return typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t}function uu(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function ou(t){
return!!t&&typeof t=="object"}function iu(t){return typeof t=="number"||ou(t)&&"[object Number]"==Hu.call(t)}function fu(t){return!(!ou(t)||"[object Object]"!=Hu.call(t)||C(t))&&(t=eo(t),null===t||(t=Gu.call(t,"constructor")&&t.constructor,typeof t=="function"&&t instanceof t&&Ku.call(t)==Yu))}function cu(t){return typeof t=="string"||!Fi(t)&&ou(t)&&"[object String]"==Hu.call(t)}function au(t){return typeof t=="symbol"||ou(t)&&"[object Symbol]"==Hu.call(t)}function lu(t){if(!t)return[];if(Qe(t))return cu(t)?F(t):Wr(t);
if(uo&&t[uo]){t=t[uo]();for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}return n=St(t),("[object Map]"==n?U:"[object Set]"==n?D:wu)(t)}function su(t){return t?(t=_u(t),t===Z||t===-Z?1.7976931348623157e308*(0>t?-1:1):t===t?t:0):0===t?t:0}function hu(t){t=su(t);var n=t%1;return t===t?n?t-n:t:0}function pu(t){return t?vn(hu(t),0,4294967295):0}function _u(t){if(typeof t=="number")return t;if(au(t))return q;if(uu(t)&&(t=typeof t.valueOf=="function"?t.valueOf():t,t=uu(t)?t+"":t),typeof t!="string")return 0===t?t:+t;
t=t.replace(at,"");var n=jt.test(t);return n||mt.test(t)?Pt(t.slice(2),n?2:8):xt.test(t)?q:+t}function vu(t){return Br(t,xu(t))}function gu(t){return null==t?"":dr(t)}function du(t,n,r){return t=null==t?P:In(t,n),t===P?r:t}function yu(t,n){return null!=t&&se(t,n,Ln)}function bu(t){return Qe(t)?Yt(t):Kn(t)}function xu(t){return Qe(t)?Yt(t,true):Gn(t)}function ju(t,n){return null==t?{}:er(t,Rn(t,xu,Qo),fe(n))}function wu(t){return t?I(t,bu(t)):[]}function mu(t){return jf(gu(t).toLowerCase())}function Au(t){
return(t=gu(t))&&t.replace(kt,un).replace(Bt,"")}function ku(t,n,r){return t=gu(t),n=r?P:n,n===P?Mt.test(t)?t.match(Ct)||[]:t.match(vt)||[]:t.match(n)||[]}function Eu(t){return function(){return t}}function Ou(t){return t}function Su(t){return Vn(typeof t=="function"?t:gn(t,true))}function Iu(t,n,r){var e=bu(n),o=Sn(n,e);null!=r||uu(n)&&(o.length||!e.length)||(r=n,n=t,t=this,o=Sn(n,bu(n)));var i=!(uu(r)&&"chain"in r&&!r.chain),f=nu(t);return u(o,function(r){var e=n[r];t[r]=e,f&&(t.prototype[r]=function(){
var n=this.__chain__;if(i||n){var r=t(this.__wrapped__);return(r.__actions__=Wr(this.__actions__)).push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,s([this.value()],arguments))})}),t}function Ru(){}function Wu(t){return ye(t)?j(Ae(t)):ur(t)}function Bu(){return[]}function Lu(){return false}w=w?cn.defaults(Vt.Object(),w,cn.pick(Vt,zt)):Vt;var Cu=w.Array,Uu=w.Date,Mu=w.Error,zu=w.Function,Du=w.Math,Tu=w.Object,$u=w.RegExp,Fu=w.String,Nu=w.TypeError,Pu=Cu.prototype,Zu=Tu.prototype,qu=w["__core-js_shared__"],Vu=function(){
var t=/[^.]+$/.exec(qu&&qu.keys&&qu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ku=zu.prototype.toString,Gu=Zu.hasOwnProperty,Ju=0,Yu=Ku.call(Tu),Hu=Zu.toString,Qu=Vt._,Xu=$u("^"+Ku.call(Gu).replace(ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),to=Jt?w.Buffer:P,no=w.Symbol,ro=w.Uint8Array,eo=M(Tu.getPrototypeOf,Tu),uo=no?no.iterator:P,oo=Tu.create,io=Zu.propertyIsEnumerable,fo=Pu.splice,co=no?no.isConcatSpreadable:P,ao=w.clearTimeout!==Vt.clearTimeout&&w.clearTimeout,lo=Uu&&Uu.now!==Vt.Date.now&&Uu.now,so=w.setTimeout!==Vt.setTimeout&&w.setTimeout,ho=Du.ceil,po=Du.floor,_o=Tu.getOwnPropertySymbols,vo=to?to.isBuffer:P,go=w.isFinite,yo=Pu.join,bo=M(Tu.keys,Tu),xo=Du.max,jo=Du.min,wo=w.parseInt,mo=Du.random,Ao=Pu.reverse,ko=le(w,"DataView"),Eo=le(w,"Map"),Oo=le(w,"Promise"),So=le(w,"Set"),Io=le(w,"WeakMap"),Ro=le(Tu,"create"),Wo=function(){
var t=le(Tu,"defineProperty"),n=le.name;return n&&2<n.length?t:P}(),Bo=Io&&new Io,Lo=!io.call({valueOf:1},"valueOf"),Co={},Uo=ke(ko),Mo=ke(Eo),zo=ke(Oo),Do=ke(So),To=ke(Io),$o=no?no.prototype:P,Fo=$o?$o.valueOf:P,No=$o?$o.toString:P;It.templateSettings={escape:tt,evaluate:nt,interpolate:rt,variable:"",imports:{_:It}},It.prototype=Rt.prototype,It.prototype.constructor=It,Lt.prototype=bn(Rt.prototype),Lt.prototype.constructor=Lt,$t.prototype=bn(Rt.prototype),$t.prototype.constructor=$t,Ft.prototype.clear=function(){
this.__data__=Ro?Ro(null):{}},Ft.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Ft.prototype.get=function(t){var n=this.__data__;return Ro?(t=n[t],"__lodash_hash_undefined__"===t?P:t):Gu.call(n,t)?n[t]:P},Ft.prototype.has=function(t){var n=this.__data__;return Ro?n[t]!==P:Gu.call(n,t)},Ft.prototype.set=function(t,n){return this.__data__[t]=Ro&&n===P?"__lodash_hash_undefined__":n,this},Zt.prototype.clear=function(){this.__data__=[]},Zt.prototype.delete=function(t){var n=this.__data__;
return t=sn(n,t),!(0>t)&&(t==n.length-1?n.pop():fo.call(n,t,1),true)},Zt.prototype.get=function(t){var n=this.__data__;return t=sn(n,t),0>t?P:n[t][1]},Zt.prototype.has=function(t){return-1<sn(this.__data__,t)},Zt.prototype.set=function(t,n){var r=this.__data__,e=sn(r,t);return 0>e?r.push([t,n]):r[e][1]=n,this},qt.prototype.clear=function(){this.__data__={hash:new Ft,map:new(Eo||Zt),string:new Ft}},qt.prototype.delete=function(t){return ce(this,t).delete(t)},qt.prototype.get=function(t){return ce(this,t).get(t);
},qt.prototype.has=function(t){return ce(this,t).has(t)},qt.prototype.set=function(t,n){return ce(this,t).set(t,n),this},Kt.prototype.add=Kt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Kt.prototype.has=function(t){return this.__data__.has(t)},Gt.prototype.clear=function(){this.__data__=new Zt},Gt.prototype.delete=function(t){return this.__data__.delete(t)},Gt.prototype.get=function(t){return this.__data__.get(t)},Gt.prototype.has=function(t){return this.__data__.has(t);
},Gt.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Zt){if(r=r.__data__,!Eo||199>r.length)return r.push([t,n]),this;r=this.__data__=new qt(r)}return r.set(t,n),this};var Po=Mr(En),Zo=Mr(On,true),qo=zr(),Vo=zr(true),Ko=Bo?function(t,n){return Bo.set(t,n),t}:Ou,Go=ao||function(t){return Vt.clearTimeout(t)},Jo=So&&1/D(new So([,-0]))[1]==Z?function(t){return new So(t)}:Ru,Yo=Bo?function(t){return Bo.get(t)}:Ru,Ho=_o?M(_o,Tu):Bu,Qo=_o?function(t){for(var n=[];t;)s(n,Ho(t)),t=eo(t);return n;
}:Bu;(ko&&"[object DataView]"!=St(new ko(new ArrayBuffer(1)))||Eo&&"[object Map]"!=St(new Eo)||Oo&&"[object Promise]"!=St(Oo.resolve())||So&&"[object Set]"!=St(new So)||Io&&"[object WeakMap]"!=St(new Io))&&(St=function(t){var n=Hu.call(t);if(t=(t="[object Object]"==n?t.constructor:P)?ke(t):P)switch(t){case Uo:return"[object DataView]";case Mo:return"[object Map]";case zo:return"[object Promise]";case Do:return"[object Set]";case To:return"[object WeakMap]"}return n});var Xo=qu?nu:Lu,ti=function(){
var t=0,n=0;return function(r,e){var u=Ri(),o=16-(u-n);if(n=u,0<o){if(150<=++t)return r}else t=0;return Ko(r,e)}}(),ni=so||function(t,n){return Vt.setTimeout(t,n)},ri=Wo?function(t,n,r){n+="";var e;e=(e=n.match(pt))?e[1].split(_t):[],r=Ee(e,r),e=r.length;var u=e-1;return r[u]=(1<e?"& ":"")+r[u],r=r.join(2<e?", ":" "),n=n.replace(ht,"{\n/* [wrapped with "+r+"] */\n"),Wo(t,"toString",{configurable:true,enumerable:false,value:Eu(n)})}:Ou,ei=Ge(function(t){t=gu(t);var n=[];return ot.test(t)&&n.push(""),t.replace(it,function(t,r,e,u){
n.push(e?u.replace(gt,"$1"):r||t)}),n}),ui=ar(function(t,n){return Xe(t)?jn(t,kn(n,1,Xe,true)):[]}),oi=ar(function(t,n){var r=We(n);return Xe(r)&&(r=P),Xe(t)?jn(t,kn(n,1,Xe,true),fe(r,2)):[]}),ii=ar(function(t,n){var r=We(n);return Xe(r)&&(r=P),Xe(t)?jn(t,kn(n,1,Xe,true),P,r):[]}),fi=ar(function(t){var n=l(t,mr);return n.length&&n[0]===t[0]?Cn(n):[]}),ci=ar(function(t){var n=We(t),r=l(t,mr);return n===We(r)?n=P:r.pop(),r.length&&r[0]===t[0]?Cn(r,fe(n,2)):[]}),ai=ar(function(t){var n=We(t),r=l(t,mr);return n===We(r)?n=P:r.pop(),
r.length&&r[0]===t[0]?Cn(r,P,n):[]}),li=ar(Be),si=ar(function(t,n){n=kn(n,1);var r=t?t.length:0,e=_n(t,n);return ir(t,l(n,function(t){return ge(t,r)?+t:t}).sort(Sr)),e}),hi=ar(function(t){return yr(kn(t,1,Xe,true))}),pi=ar(function(t){var n=We(t);return Xe(n)&&(n=P),yr(kn(t,1,Xe,true),fe(n,2))}),_i=ar(function(t){var n=We(t);return Xe(n)&&(n=P),yr(kn(t,1,Xe,true),P,n)}),vi=ar(function(t,n){return Xe(t)?jn(t,n):[]}),gi=ar(function(t){return jr(f(t,Xe))}),di=ar(function(t){var n=We(t);return Xe(n)&&(n=P),
jr(f(t,Xe),fe(n,2))}),yi=ar(function(t){var n=We(t);return Xe(n)&&(n=P),jr(f(t,Xe),P,n)}),bi=ar(Ce),xi=ar(function(t){var n=t.length,n=1<n?t[n-1]:P,n=typeof n=="function"?(t.pop(),n):P;return Ue(t,n)}),ji=ar(function(t){function n(n){return _n(n,t)}t=kn(t,1);var r=t.length,e=r?t[0]:0,u=this.__wrapped__;return!(1<r||this.__actions__.length)&&u instanceof $t&&ge(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:ze,args:[n],thisArg:P}),new Lt(u,this.__chain__).thru(function(t){return r&&!t.length&&t.push(P),
t})):this.thru(n)}),wi=Cr(function(t,n,r){Gu.call(t,r)?++t[r]:t[r]=1}),mi=Pr(Se),Ai=Pr(Ie),ki=Cr(function(t,n,r){Gu.call(t,r)?t[r].push(n):t[r]=[n]}),Ei=ar(function(t,n,e){var u=-1,o=typeof n=="function",i=ye(n),f=Qe(t)?Cu(t.length):[];return Po(t,function(t){var c=o?n:i&&null!=t?t[n]:P;f[++u]=c?r(c,t,e):Mn(t,n,e)}),f}),Oi=Cr(function(t,n,r){t[r]=n}),Si=Cr(function(t,n,r){t[r?0:1].push(n)},function(){return[[],[]]}),Ii=ar(function(t,n){if(null==t)return[];var r=n.length;return 1<r&&de(t,n[0],n[1])?n=[]:2<r&&de(n[0],n[1],n[2])&&(n=[n[0]]),
nr(t,kn(n,1),[])}),Ri=lo||function(){return Vt.Date.now()},Wi=ar(function(t,n,r){var e=1;if(r.length)var u=z(r,ie(Wi)),e=32|e;return re(t,e,n,r,u)}),Bi=ar(function(t,n,r){var e=3;if(r.length)var u=z(r,ie(Bi)),e=32|e;return re(n,e,t,r,u)}),Li=ar(function(t,n){return xn(t,1,n)}),Ci=ar(function(t,n,r){return xn(t,_u(n)||0,r)});Ge.Cache=qt;var Ui=ar(function(t,n){n=1==n.length&&Fi(n[0])?l(n[0],S(fe())):l(kn(n,1),S(fe()));var e=n.length;return ar(function(u){for(var o=-1,i=jo(u.length,e);++o<i;)u[o]=n[o].call(this,u[o]);
return r(t,this,u)})}),Mi=ar(function(t,n){var r=z(n,ie(Mi));return re(t,32,P,n,r)}),zi=ar(function(t,n){var r=z(n,ie(zi));return re(t,64,P,n,r)}),Di=ar(function(t,n){return re(t,256,P,P,P,kn(n,1))}),Ti=Qr(Wn),$i=Qr(function(t,n){return t>=n}),Fi=Cu.isArray,Ni=Ht?S(Ht):zn,Pi=vo||Lu,Zi=Qt?S(Qt):Dn,qi=Xt?S(Xt):$n,Vi=tn?S(tn):Pn,Ki=nn?S(nn):Zn,Gi=rn?S(rn):qn,Ji=Qr(Jn),Yi=Qr(function(t,n){return t<=n}),Hi=Ur(function(t,n){if(Lo||xe(n)||Qe(n))Br(n,bu(n),t);else for(var r in n)Gu.call(n,r)&&ln(t,r,n[r]);
}),Qi=Ur(function(t,n){Br(n,xu(n),t)}),Xi=Ur(function(t,n,r,e){Br(n,xu(n),t,e)}),tf=Ur(function(t,n,r,e){Br(n,bu(n),t,e)}),nf=ar(function(t,n){return _n(t,kn(n,1))}),rf=ar(function(t){return t.push(P,en),r(Xi,P,t)}),ef=ar(function(t){return t.push(P,we),r(af,P,t)}),uf=Vr(function(t,n,r){t[n]=r},Eu(Ou)),of=Vr(function(t,n,r){Gu.call(t,n)?t[n].push(r):t[n]=[r]},fe),ff=ar(Mn),cf=Ur(function(t,n,r){Xn(t,n,r)}),af=Ur(function(t,n,r,e){Xn(t,n,r,e)}),lf=ar(function(t,n){return null==t?{}:(n=l(kn(n,1),Ae),
rr(t,jn(Rn(t,xu,Qo),n)))}),sf=ar(function(t,n){return null==t?{}:rr(t,l(kn(n,1),Ae))}),hf=ne(bu),pf=ne(xu),_f=$r(function(t,n,r){return n=n.toLowerCase(),t+(r?mu(n):n)}),vf=$r(function(t,n,r){return t+(r?"-":"")+n.toLowerCase()}),gf=$r(function(t,n,r){return t+(r?" ":"")+n.toLowerCase()}),df=Tr("toLowerCase"),yf=$r(function(t,n,r){return t+(r?"_":"")+n.toLowerCase()}),bf=$r(function(t,n,r){return t+(r?" ":"")+jf(n)}),xf=$r(function(t,n,r){return t+(r?" ":"")+n.toUpperCase()}),jf=Tr("toUpperCase"),wf=ar(function(t,n){
try{return r(t,P,n)}catch(t){return tu(t)?t:new Mu(t)}}),mf=ar(function(t,n){return u(kn(n,1),function(n){n=Ae(n),t[n]=Wi(t[n],t)}),t}),Af=Zr(),kf=Zr(true),Ef=ar(function(t,n){return function(r){return Mn(r,t,n)}}),Of=ar(function(t,n){return function(r){return Mn(t,r,n)}}),Sf=Gr(l),If=Gr(i),Rf=Gr(_),Wf=Hr(),Bf=Hr(true),Lf=Kr(function(t,n){return t+n},0),Cf=te("ceil"),Uf=Kr(function(t,n){return t/n},1),Mf=te("floor"),zf=Kr(function(t,n){return t*n},1),Df=te("round"),Tf=Kr(function(t,n){return t-n},0);return It.after=function(t,n){
if(typeof n!="function")throw new Nu("Expected a function");return t=hu(t),function(){if(1>--t)return n.apply(this,arguments)}},It.ary=Pe,It.assign=Hi,It.assignIn=Qi,It.assignInWith=Xi,It.assignWith=tf,It.at=nf,It.before=Ze,It.bind=Wi,It.bindAll=mf,It.bindKey=Bi,It.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fi(t)?t:[t]},It.chain=Me,It.chunk=function(t,n,r){if(n=(r?de(t,n,r):n===P)?1:xo(hu(n),0),r=t?t.length:0,!r||1>n)return[];for(var e=0,u=0,o=Cu(ho(r/n));e<r;)o[u++]=sr(t,e,e+=n);
return o},It.compact=function(t){for(var n=-1,r=t?t.length:0,e=0,u=[];++n<r;){var o=t[n];o&&(u[e++]=o)}return u},It.concat=function(){for(var t=arguments.length,n=Cu(t?t-1:0),r=arguments[0],e=t;e--;)n[e-1]=arguments[e];return t?s(Fi(r)?Wr(r):[r],kn(n,1)):[]},It.cond=function(t){var n=t?t.length:0,e=fe();return t=n?l(t,function(t){if("function"!=typeof t[1])throw new Nu("Expected a function");return[e(t[0]),t[1]]}):[],ar(function(e){for(var u=-1;++u<n;){var o=t[u];if(r(o[0],this,e))return r(o[1],this,e);
}})},It.conforms=function(t){return dn(gn(t,true))},It.constant=Eu,It.countBy=wi,It.create=function(t,n){var r=bn(t);return n?pn(r,n):r},It.curry=qe,It.curryRight=Ve,It.debounce=Ke,It.defaults=rf,It.defaultsDeep=ef,It.defer=Li,It.delay=Ci,It.difference=ui,It.differenceBy=oi,It.differenceWith=ii,It.drop=function(t,n,r){var e=t?t.length:0;return e?(n=r||n===P?1:hu(n),sr(t,0>n?0:n,e)):[]},It.dropRight=function(t,n,r){var e=t?t.length:0;return e?(n=r||n===P?1:hu(n),n=e-n,sr(t,0,0>n?0:n)):[]},It.dropRightWhile=function(t,n){
return t&&t.length?br(t,fe(n,3),true,true):[]},It.dropWhile=function(t,n){return t&&t.length?br(t,fe(n,3),true):[]},It.fill=function(t,n,r,e){var u=t?t.length:0;if(!u)return[];for(r&&typeof r!="number"&&de(t,n,r)&&(r=0,e=u),u=t.length,r=hu(r),0>r&&(r=-r>u?0:u+r),e=e===P||e>u?u:hu(e),0>e&&(e+=u),e=r>e?0:pu(e);r<e;)t[r++]=n;return t},It.filter=function(t,n){return(Fi(t)?f:An)(t,fe(n,3))},It.flatMap=function(t,n){return kn(Fe(t,n),1)},It.flatMapDeep=function(t,n){return kn(Fe(t,n),Z)},It.flatMapDepth=function(t,n,r){
return r=r===P?1:hu(r),kn(Fe(t,n),r)},It.flatten=function(t){return t&&t.length?kn(t,1):[]},It.flattenDeep=function(t){return t&&t.length?kn(t,Z):[]},It.flattenDepth=function(t,n){return t&&t.length?(n=n===P?1:hu(n),kn(t,n)):[]},It.flip=function(t){return re(t,512)},It.flow=Af,It.flowRight=kf,It.fromPairs=function(t){for(var n=-1,r=t?t.length:0,e={};++n<r;){var u=t[n];e[u[0]]=u[1]}return e},It.functions=function(t){return null==t?[]:Sn(t,bu(t))},It.functionsIn=function(t){return null==t?[]:Sn(t,xu(t));
},It.groupBy=ki,It.initial=function(t){return t&&t.length?sr(t,0,-1):[]},It.intersection=fi,It.intersectionBy=ci,It.intersectionWith=ai,It.invert=uf,It.invertBy=of,It.invokeMap=Ei,It.iteratee=Su,It.keyBy=Oi,It.keys=bu,It.keysIn=xu,It.map=Fe,It.mapKeys=function(t,n){var r={};return n=fe(n,3),En(t,function(t,e,u){r[n(t,e,u)]=t}),r},It.mapValues=function(t,n){var r={};return n=fe(n,3),En(t,function(t,e,u){r[e]=n(t,e,u)}),r},It.matches=function(t){return Hn(gn(t,true))},It.matchesProperty=function(t,n){
return Qn(t,gn(n,true))},It.memoize=Ge,It.merge=cf,It.mergeWith=af,It.method=Ef,It.methodOf=Of,It.mixin=Iu,It.negate=Je,It.nthArg=function(t){return t=hu(t),ar(function(n){return tr(n,t)})},It.omit=lf,It.omitBy=function(t,n){return ju(t,Je(fe(n)))},It.once=function(t){return Ze(2,t)},It.orderBy=function(t,n,r,e){return null==t?[]:(Fi(n)||(n=null==n?[]:[n]),r=e?P:r,Fi(r)||(r=null==r?[]:[r]),nr(t,n,r))},It.over=Sf,It.overArgs=Ui,It.overEvery=If,It.overSome=Rf,It.partial=Mi,It.partialRight=zi,It.partition=Si,
It.pick=sf,It.pickBy=ju,It.property=Wu,It.propertyOf=function(t){return function(n){return null==t?P:In(t,n)}},It.pull=li,It.pullAll=Be,It.pullAllBy=function(t,n,r){return t&&t.length&&n&&n.length?or(t,n,fe(r,2)):t},It.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?or(t,n,P,r):t},It.pullAt=si,It.range=Wf,It.rangeRight=Bf,It.rearg=Di,It.reject=function(t,n){return(Fi(t)?f:An)(t,Je(fe(n,3)))},It.remove=function(t,n){var r=[];if(!t||!t.length)return r;var e=-1,u=[],o=t.length;for(n=fe(n,3);++e<o;){
var i=t[e];n(i,e,t)&&(r.push(i),u.push(e))}return ir(t,u),r},It.rest=function(t,n){if(typeof t!="function")throw new Nu("Expected a function");return n=n===P?n:hu(n),ar(t,n)},It.reverse=Le,It.sampleSize=Ne,It.set=function(t,n,r){return null==t?t:lr(t,n,r)},It.setWith=function(t,n,r,e){return e=typeof e=="function"?e:P,null==t?t:lr(t,n,r,e)},It.shuffle=function(t){return Ne(t,4294967295)},It.slice=function(t,n,r){var e=t?t.length:0;return e?(r&&typeof r!="number"&&de(t,n,r)?(n=0,r=e):(n=null==n?0:hu(n),
r=r===P?e:hu(r)),sr(t,n,r)):[]},It.sortBy=Ii,It.sortedUniq=function(t){return t&&t.length?vr(t):[]},It.sortedUniqBy=function(t,n){return t&&t.length?vr(t,fe(n,2)):[]},It.split=function(t,n,r){return r&&typeof r!="number"&&de(t,n,r)&&(n=r=P),r=r===P?4294967295:r>>>0,r?(t=gu(t))&&(typeof n=="string"||null!=n&&!Vi(n))&&(n=dr(n),!n&&Ut.test(t))?kr(F(t),0,r):t.split(n,r):[]},It.spread=function(t,n){if(typeof t!="function")throw new Nu("Expected a function");return n=n===P?0:xo(hu(n),0),ar(function(e){
var u=e[n];return e=kr(e,0,n),u&&s(e,u),r(t,this,e)})},It.tail=function(t){var n=t?t.length:0;return n?sr(t,1,n):[]},It.take=function(t,n,r){return t&&t.length?(n=r||n===P?1:hu(n),sr(t,0,0>n?0:n)):[]},It.takeRight=function(t,n,r){var e=t?t.length:0;return e?(n=r||n===P?1:hu(n),n=e-n,sr(t,0>n?0:n,e)):[]},It.takeRightWhile=function(t,n){return t&&t.length?br(t,fe(n,3),false,true):[]},It.takeWhile=function(t,n){return t&&t.length?br(t,fe(n,3)):[]},It.tap=function(t,n){return n(t),t},It.throttle=function(t,n,r){
var e=true,u=true;if(typeof t!="function")throw new Nu("Expected a function");return uu(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Ke(t,n,{leading:e,maxWait:n,trailing:u})},It.thru=ze,It.toArray=lu,It.toPairs=hf,It.toPairsIn=pf,It.toPath=function(t){return Fi(t)?l(t,Ae):au(t)?[t]:Wr(ei(t))},It.toPlainObject=vu,It.transform=function(t,n,r){var e=Fi(t)||Gi(t);if(n=fe(n,4),null==r)if(e||uu(t)){var o=t.constructor;r=e?Fi(t)?new o:[]:nu(o)?bn(eo(t)):{}}else r={};return(e?u:En)(t,function(t,e,u){
return n(r,t,e,u)}),r},It.unary=function(t){return Pe(t,1)},It.union=hi,It.unionBy=pi,It.unionWith=_i,It.uniq=function(t){return t&&t.length?yr(t):[]},It.uniqBy=function(t,n){return t&&t.length?yr(t,fe(n,2)):[]},It.uniqWith=function(t,n){return t&&t.length?yr(t,P,n):[]},It.unset=function(t,n){var r;if(null==t)r=true;else{r=t;var e=n,e=ye(e,r)?[e]:Ar(e);r=me(r,e),e=Ae(We(e)),r=!(null!=r&&Gu.call(r,e))||delete r[e]}return r},It.unzip=Ce,It.unzipWith=Ue,It.update=function(t,n,r){return null==t?t:lr(t,n,(typeof r=="function"?r:Ou)(In(t,n)),void 0);
},It.updateWith=function(t,n,r,e){return e=typeof e=="function"?e:P,null!=t&&(t=lr(t,n,(typeof r=="function"?r:Ou)(In(t,n)),e)),t},It.values=wu,It.valuesIn=function(t){return null==t?[]:I(t,xu(t))},It.without=vi,It.words=ku,It.wrap=function(t,n){return n=null==n?Ou:n,Mi(n,t)},It.xor=gi,It.xorBy=di,It.xorWith=yi,It.zip=bi,It.zipObject=function(t,n){return wr(t||[],n||[],ln)},It.zipObjectDeep=function(t,n){return wr(t||[],n||[],lr)},It.zipWith=xi,It.entries=hf,It.entriesIn=pf,It.extend=Qi,It.extendWith=Xi,
Iu(It,It),It.add=Lf,It.attempt=wf,It.camelCase=_f,It.capitalize=mu,It.ceil=Cf,It.clamp=function(t,n,r){return r===P&&(r=n,n=P),r!==P&&(r=_u(r),r=r===r?r:0),n!==P&&(n=_u(n),n=n===n?n:0),vn(_u(t),n,r)},It.clone=function(t){return gn(t,false,true)},It.cloneDeep=function(t){return gn(t,true,true)},It.cloneDeepWith=function(t,n){return gn(t,true,true,n)},It.cloneWith=function(t,n){return gn(t,false,true,n)},It.conformsTo=function(t,n){return null==n||yn(t,n,bu(n))},It.deburr=Au,It.defaultTo=function(t,n){return null==t||t!==t?n:t;
},It.divide=Uf,It.endsWith=function(t,n,r){t=gu(t),n=dr(n);var e=t.length,e=r=r===P?e:vn(hu(r),0,e);return r-=n.length,0<=r&&t.slice(r,e)==n},It.eq=Ye,It.escape=function(t){return(t=gu(t))&&X.test(t)?t.replace(H,on):t},It.escapeRegExp=function(t){return(t=gu(t))&&ct.test(t)?t.replace(ft,"\\$&"):t},It.every=function(t,n,r){var e=Fi(t)?i:wn;return r&&de(t,n,r)&&(n=P),e(t,fe(n,3))},It.find=mi,It.findIndex=Se,It.findKey=function(t,n){return v(t,fe(n,3),En)},It.findLast=Ai,It.findLastIndex=Ie,It.findLastKey=function(t,n){
return v(t,fe(n,3),On)},It.floor=Mf,It.forEach=Te,It.forEachRight=$e,It.forIn=function(t,n){return null==t?t:qo(t,fe(n,3),xu)},It.forInRight=function(t,n){return null==t?t:Vo(t,fe(n,3),xu)},It.forOwn=function(t,n){return t&&En(t,fe(n,3))},It.forOwnRight=function(t,n){return t&&On(t,fe(n,3))},It.get=du,It.gt=Ti,It.gte=$i,It.has=function(t,n){return null!=t&&se(t,n,Bn)},It.hasIn=yu,It.head=Re,It.identity=Ou,It.includes=function(t,n,r,e){return t=Qe(t)?t:wu(t),r=r&&!e?hu(r):0,e=t.length,0>r&&(r=xo(e+r,0)),
cu(t)?r<=e&&-1<t.indexOf(n,r):!!e&&-1<d(t,n,r)},It.indexOf=function(t,n,r){var e=t?t.length:0;return e?(r=null==r?0:hu(r),0>r&&(r=xo(e+r,0)),d(t,n,r)):-1},It.inRange=function(t,n,r){return n=su(n),r===P?(r=n,n=0):r=su(r),t=_u(t),t>=jo(n,r)&&t<xo(n,r)},It.invoke=ff,It.isArguments=He,It.isArray=Fi,It.isArrayBuffer=Ni,It.isArrayLike=Qe,It.isArrayLikeObject=Xe,It.isBoolean=function(t){return true===t||false===t||ou(t)&&"[object Boolean]"==Hu.call(t)},It.isBuffer=Pi,It.isDate=Zi,It.isElement=function(t){return!!t&&1===t.nodeType&&ou(t)&&!fu(t);
},It.isEmpty=function(t){if(Qe(t)&&(Fi(t)||typeof t=="string"||typeof t.splice=="function"||Pi(t)||He(t)))return!t.length;var n=St(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(Lo||xe(t))return!bo(t).length;for(var r in t)if(Gu.call(t,r))return false;return true},It.isEqual=function(t,n){return Tn(t,n)},It.isEqualWith=function(t,n,r){var e=(r=typeof r=="function"?r:P)?r(t,n):P;return e===P?Tn(t,n,r):!!e},It.isError=tu,It.isFinite=function(t){return typeof t=="number"&&go(t)},It.isFunction=nu,
It.isInteger=ru,It.isLength=eu,It.isMap=qi,It.isMatch=function(t,n){return t===n||Fn(t,n,ae(n))},It.isMatchWith=function(t,n,r){return r=typeof r=="function"?r:P,Fn(t,n,ae(n),r)},It.isNaN=function(t){return iu(t)&&t!=+t},It.isNative=function(t){if(Xo(t))throw new Mu("This method is not supported with core-js. Try https://github.com/es-shims.");return Nn(t)},It.isNil=function(t){return null==t},It.isNull=function(t){return null===t},It.isNumber=iu,It.isObject=uu,It.isObjectLike=ou,It.isPlainObject=fu,
It.isRegExp=Vi,It.isSafeInteger=function(t){return ru(t)&&-9007199254740991<=t&&9007199254740991>=t},It.isSet=Ki,It.isString=cu,It.isSymbol=au,It.isTypedArray=Gi,It.isUndefined=function(t){return t===P},It.isWeakMap=function(t){return ou(t)&&"[object WeakMap]"==St(t)},It.isWeakSet=function(t){return ou(t)&&"[object WeakSet]"==Hu.call(t)},It.join=function(t,n){return t?yo.call(t,n):""},It.kebabCase=vf,It.last=We,It.lastIndexOf=function(t,n,r){var e=t?t.length:0;if(!e)return-1;var u=e;if(r!==P&&(u=hu(r),
u=(0>u?xo(e+u,0):jo(u,e-1))+1),n!==n)return g(t,b,u-1,true);for(;u--;)if(t[u]===n)return u;return-1},It.lowerCase=gf,It.lowerFirst=df,It.lt=Ji,It.lte=Yi,It.max=function(t){return t&&t.length?mn(t,Ou,Wn):P},It.maxBy=function(t,n){return t&&t.length?mn(t,fe(n,2),Wn):P},It.mean=function(t){return x(t,Ou)},It.meanBy=function(t,n){return x(t,fe(n,2))},It.min=function(t){return t&&t.length?mn(t,Ou,Jn):P},It.minBy=function(t,n){return t&&t.length?mn(t,fe(n,2),Jn):P},It.stubArray=Bu,It.stubFalse=Lu,It.stubObject=function(){
return{}},It.stubString=function(){return""},It.stubTrue=function(){return true},It.multiply=zf,It.nth=function(t,n){return t&&t.length?tr(t,hu(n)):P},It.noConflict=function(){return Vt._===this&&(Vt._=Qu),this},It.noop=Ru,It.now=Ri,It.pad=function(t,n,r){t=gu(t);var e=(n=hu(n))?$(t):0;return!n||e>=n?t:(n=(n-e)/2,Jr(po(n),r)+t+Jr(ho(n),r))},It.padEnd=function(t,n,r){t=gu(t);var e=(n=hu(n))?$(t):0;return n&&e<n?t+Jr(n-e,r):t},It.padStart=function(t,n,r){t=gu(t);var e=(n=hu(n))?$(t):0;return n&&e<n?Jr(n-e,r)+t:t;
},It.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),t=gu(t).replace(at,""),wo(t,n||(bt.test(t)?16:10))},It.random=function(t,n,r){if(r&&typeof r!="boolean"&&de(t,n,r)&&(n=r=P),r===P&&(typeof n=="boolean"?(r=n,n=P):typeof t=="boolean"&&(r=t,t=P)),t===P&&n===P?(t=0,n=1):(t=su(t),n===P?(n=t,t=0):n=su(n)),t>n){var e=t;t=n,n=e}return r||t%1||n%1?(r=mo(),jo(t+r*(n-t+Nt("1e-"+((r+"").length-1))),n)):fr(t,n)},It.reduce=function(t,n,r){var e=Fi(t)?h:m,u=3>arguments.length;return e(t,fe(n,4),r,u,Po);
},It.reduceRight=function(t,n,r){var e=Fi(t)?p:m,u=3>arguments.length;return e(t,fe(n,4),r,u,Zo)},It.repeat=function(t,n,r){return n=(r?de(t,n,r):n===P)?1:hu(n),cr(gu(t),n)},It.replace=function(){var t=arguments,n=gu(t[0]);return 3>t.length?n:n.replace(t[1],t[2])},It.result=function(t,n,r){n=ye(n,t)?[n]:Ar(n);var e=-1,u=n.length;for(u||(t=P,u=1);++e<u;){var o=null==t?P:t[Ae(n[e])];o===P&&(e=u,o=r),t=nu(o)?o.call(t):o}return t},It.round=Df,It.runInContext=N,It.sample=function(t){t=Qe(t)?t:wu(t);var n=t.length;
return 0<n?t[fr(0,n-1)]:P},It.size=function(t){if(null==t)return 0;if(Qe(t))return cu(t)?$(t):t.length;var n=St(t);return"[object Map]"==n||"[object Set]"==n?t.size:Kn(t).length},It.snakeCase=yf,It.some=function(t,n,r){var e=Fi(t)?_:hr;return r&&de(t,n,r)&&(n=P),e(t,fe(n,3))},It.sortedIndex=function(t,n){return pr(t,n)},It.sortedIndexBy=function(t,n,r){return _r(t,n,fe(r,2))},It.sortedIndexOf=function(t,n){var r=t?t.length:0;if(r){var e=pr(t,n);if(e<r&&Ye(t[e],n))return e}return-1},It.sortedLastIndex=function(t,n){
    return pr(t, n, true)
}, It.sortedLastIndexBy = function (t, n, r) { return _r(t, n, fe(r, 2), true) }, It.sortedLastIndexOf = function (t, n) { if (t && t.length) { var r = pr(t, n, true) - 1; if (Ye(t[r], n)) return r } return -1 }, It.startCase = bf, It.startsWith = function (t, n, r) { return t = gu(t), r = vn(hu(r), 0, t.length), n = dr(n), t.slice(r, r + n.length) == n }, It.subtract = Tf, It.sum = function (t) { return t && t.length ? k(t, Ou) : 0 }, It.sumBy = function (t, n) { return t && t.length ? k(t, fe(n, 2)) : 0 }, It.template = function (t, n, r) {
    var escapedSharpRegExp = /\\#/g, sharpRegExp = /__HASH_SHARP__/g, e = It.templateSettings; t = t.replace(escapedSharpRegExp, "__HASH_SHARP__"); r && de(t, n, r) && (n = P), t = gu(t),
n=Xi({},n,e,en),r=Xi({},n.imports,e.imports,en);var u,o,i=bu(r),f=I(r,i),c=0;r=n.interpolate||Et;var a="__p+='";r=$u((n.escape||Et).source+"|"+r.source+"|"+(r===rt?dt:Et).source+"|"+(n.evaluate||Et).source+"|$","g");var l="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";if(t.replace(r,function(n,r,e,i,f,l){return e||(e=i),a+=t.slice(c,l).replace(Ot,L),r&&(u=true,a+="'+__e("+r+")+'"),f&&(o=true,a+="';"+f+";\n__p+='"),e&&(a+="'+((__t=("+e+"))==null?'':__t)+'"),c=l+n.length,n}),a+="';",(n=n.variable)||(a="with(obj){"+a+"}"),
a=(o?a.replace(K,""):a).replace(G,"$1").replace(J,"$1;"),a="function("+(n||"obj")+"){"+(n?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+a+"return __p}", a = a.replace(sharpRegExp, "#"), n=wf(function(){return zu(i,l+"return "+a).apply(P,f)}),n.source=a,tu(n))throw n;return n},It.times=function(t,n){if(t=hu(t),1>t||9007199254740991<t)return[];var r=4294967295,e=jo(t,4294967295);for(n=fe(n),t-=4294967295,e=E(e,n);++r<t;)n(r);return e},It.toFinite=su,
It.toInteger=hu,It.toLength=pu,It.toLower=function(t){return gu(t).toLowerCase()},It.toNumber=_u,It.toSafeInteger=function(t){return vn(hu(t),-9007199254740991,9007199254740991)},It.toString=gu,It.toUpper=function(t){return gu(t).toUpperCase()},It.trim=function(t,n,r){return(t=gu(t))&&(r||n===P)?t.replace(at,""):t&&(n=dr(n))?(t=F(t),r=F(n),n=W(t,r),r=B(t,r)+1,kr(t,n,r).join("")):t},It.trimEnd=function(t,n,r){return(t=gu(t))&&(r||n===P)?t.replace(st,""):t&&(n=dr(n))?(t=F(t),n=B(t,F(n))+1,kr(t,0,n).join("")):t;
},It.trimStart=function(t,n,r){return(t=gu(t))&&(r||n===P)?t.replace(lt,""):t&&(n=dr(n))?(t=F(t),n=W(t,F(n)),kr(t,n).join("")):t},It.truncate=function(t,n){var r=30,e="...";if(uu(n))var u="separator"in n?n.separator:u,r="length"in n?hu(n.length):r,e="omission"in n?dr(n.omission):e;t=gu(t);var o=t.length;if(Ut.test(t))var i=F(t),o=i.length;if(r>=o)return t;if(o=r-$(e),1>o)return e;if(r=i?kr(i,0,o).join(""):t.slice(0,o),u===P)return r+e;if(i&&(o+=r.length-o),Vi(u)){if(t.slice(o).search(u)){var f=r;for(u.global||(u=$u(u.source,gu(yt.exec(u))+"g")),
u.lastIndex=0;i=u.exec(f);)var c=i.index;r=r.slice(0,c===P?o:c)}}else t.indexOf(dr(u),o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},It.unescape=function(t){return(t=gu(t))&&Q.test(t)?t.replace(Y,fn):t},It.uniqueId=function(t){var n=++Ju;return gu(t)+n},It.upperCase=xf,It.upperFirst=jf,It.each=Te,It.eachRight=$e,It.first=Re,Iu(It,function(){var t={};return En(It,function(n,r){Gu.call(It.prototype,r)||(t[r]=n)}),t}(),{chain:false}),It.VERSION="4.15.0",u("bind bindKey curry curryRight partial partialRight".split(" "),function(t){
It[t].placeholder=It}),u(["drop","take"],function(t,n){$t.prototype[t]=function(r){var e=this.__filtered__;if(e&&!n)return new $t(this);r=r===P?1:xo(hu(r),0);var u=this.clone();return e?u.__takeCount__=jo(r,u.__takeCount__):u.__views__.push({size:jo(r,4294967295),type:t+(0>u.__dir__?"Right":"")}),u},$t.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),u(["filter","map","takeWhile"],function(t,n){var r=n+1,e=1==r||3==r;$t.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({
iteratee:fe(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}}),u(["head","last"],function(t,n){var r="take"+(n?"Right":"");$t.prototype[t]=function(){return this[r](1).value()[0]}}),u(["initial","tail"],function(t,n){var r="drop"+(n?"":"Right");$t.prototype[t]=function(){return this.__filtered__?new $t(this):this[r](1)}}),$t.prototype.compact=function(){return this.filter(Ou)},$t.prototype.find=function(t){return this.filter(t).head()},$t.prototype.findLast=function(t){return this.reverse().find(t);
},$t.prototype.invokeMap=ar(function(t,n){return typeof t=="function"?new $t(this):this.map(function(r){return Mn(r,t,n)})}),$t.prototype.reject=function(t){return this.filter(Je(fe(t)))},$t.prototype.slice=function(t,n){t=hu(t);var r=this;return r.__filtered__&&(0<t||0>n)?new $t(r):(0>t?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==P&&(n=hu(n),r=0>n?r.dropRight(-n):r.take(n-t)),r)},$t.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$t.prototype.toArray=function(){return this.take(4294967295);
},En($t.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),u=It[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);u&&(It.prototype[n]=function(){function n(t){return t=u.apply(It,s([t],f)),e&&h?t[0]:t}var i=this.__wrapped__,f=e?[1]:arguments,c=i instanceof $t,a=f[0],l=c||Fi(i);l&&r&&typeof a=="function"&&1!=a.length&&(c=l=false);var h=this.__chain__,p=!!this.__actions__.length,a=o&&!h,c=c&&!p;return!o&&l?(i=c?i:new $t(this),i=t.apply(i,f),i.__actions__.push({
func:ze,args:[n],thisArg:P}),new Lt(i,h)):a&&c?t.apply(this,f):(i=this.thru(n),a?e?i.value()[0]:i.value():i)})}),u("pop push shift sort splice unshift".split(" "),function(t){var n=Pu[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);It.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var u=this.value();return n.apply(Fi(u)?u:[],t)}return this[r](function(r){return n.apply(Fi(r)?r:[],t)})}}),En($t.prototype,function(t,n){var r=It[n];if(r){var e=r.name+"";
(Co[e]||(Co[e]=[])).push({name:n,func:r})}}),Co[qr(P,2).name]=[{name:"wrapper",func:P}],$t.prototype.clone=function(){var t=new $t(this.__wrapped__);return t.__actions__=Wr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Wr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Wr(this.__views__),t},$t.prototype.reverse=function(){if(this.__filtered__){var t=new $t(this);t.__dir__=-1,t.__filtered__=true}else t=this.clone(),t.__dir__*=-1;return t;
},$t.prototype.value=function(){var t,n=this.__wrapped__.value(),r=this.__dir__,e=Fi(n),u=0>r,o=e?n.length:0;t=o;for(var i=this.__views__,f=0,c=-1,a=i.length;++c<a;){var l=i[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":t-=s;break;case"take":t=jo(t,f+s);break;case"takeRight":f=xo(f,t-s)}}if(t={start:f,end:t},i=t.start,f=t.end,t=f-i,u=u?f:i-1,i=this.__iteratees__,f=i.length,c=0,a=jo(t,this.__takeCount__),!e||200>o||o==t&&a==t)return xr(n,this.__actions__);e=[];t:for(;t--&&c<a;){
for(u+=r,o=-1,l=n[u];++o<f;){var h=i[o],s=h.type,h=(0,h.iteratee)(l);if(2==s)l=h;else if(!h){if(1==s)continue t;break t}}e[c++]=l}return e},It.prototype.at=ji,It.prototype.chain=function(){return Me(this)},It.prototype.commit=function(){return new Lt(this.value(),this.__chain__)},It.prototype.next=function(){this.__values__===P&&(this.__values__=lu(this.value()));var t=this.__index__>=this.__values__.length,n=t?P:this.__values__[this.__index__++];return{done:t,value:n}},It.prototype.plant=function(t){
for(var n,r=this;r instanceof Rt;){var e=Oe(r);e.__index__=0,e.__values__=P,n?u.__wrapped__=e:n=e;var u=e,r=r.__wrapped__}return u.__wrapped__=t,n},It.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof $t?(this.__actions__.length&&(t=new $t(this)),t=t.reverse(),t.__actions__.push({func:ze,args:[Le],thisArg:P}),new Lt(t,this.__chain__)):this.thru(Le)},It.prototype.toJSON=It.prototype.valueOf=It.prototype.value=function(){return xr(this.__wrapped__,this.__actions__)},It.prototype.first=It.prototype.head,
uo&&(It.prototype[uo]=De),It}var P,Z=1/0,q=NaN,V=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],K=/\b__p\+='';/g,G=/\b(__p\+=)''\+/g,J=/(__e\(.*?\)|\b__t\))\+'';/g,Y=/&(?:amp|lt|gt|quot|#39|#96);/g,H=/[&<>"'`]/g,Q=RegExp(Y.source),X=RegExp(H.source),tt=/<%-([\s\S]+?)%>/g,nt=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ot=/^\./,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/[\\^$.*+?()[\]{}|]/g,ct=RegExp(ft.source),at=/^\s+|\s+$/g,lt=/^\s+/,st=/\s+$/,ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pt=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gt=/\\(\\)?/g,dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yt=/\w*$/,bt=/^0x/i,xt=/^[-+]0x[0-9a-f]+$/i,jt=/^0b[01]+$/i,wt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,At=/^(?:0|[1-9]\d*)$/,kt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Et=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,St="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?)*",It="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+St,Rt="(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]?|[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])",Wt=RegExp("['\u2019]","g"),Bt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),Lt=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+Rt+St,"g"),Ct=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d+",It].join("|"),"g"),Ut=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Dt={};
Dt["[object Float32Array]"]=Dt["[object Float64Array]"]=Dt["[object Int8Array]"]=Dt["[object Int16Array]"]=Dt["[object Int32Array]"]=Dt["[object Uint8Array]"]=Dt["[object Uint8ClampedArray]"]=Dt["[object Uint16Array]"]=Dt["[object Uint32Array]"]=true,Dt["[object Arguments]"]=Dt["[object Array]"]=Dt["[object ArrayBuffer]"]=Dt["[object Boolean]"]=Dt["[object DataView]"]=Dt["[object Date]"]=Dt["[object Error]"]=Dt["[object Function]"]=Dt["[object Map]"]=Dt["[object Number]"]=Dt["[object Object]"]=Dt["[object RegExp]"]=Dt["[object Set]"]=Dt["[object String]"]=Dt["[object WeakMap]"]=false;
var Tt={};Tt["[object Arguments]"]=Tt["[object Array]"]=Tt["[object ArrayBuffer]"]=Tt["[object DataView]"]=Tt["[object Boolean]"]=Tt["[object Date]"]=Tt["[object Float32Array]"]=Tt["[object Float64Array]"]=Tt["[object Int8Array]"]=Tt["[object Int16Array]"]=Tt["[object Int32Array]"]=Tt["[object Map]"]=Tt["[object Number]"]=Tt["[object Object]"]=Tt["[object RegExp]"]=Tt["[object Set]"]=Tt["[object String]"]=Tt["[object Symbol]"]=Tt["[object Uint8Array]"]=Tt["[object Uint8ClampedArray]"]=Tt["[object Uint16Array]"]=Tt["[object Uint32Array]"]=true,
Tt["[object Error]"]=Tt["[object Function]"]=Tt["[object WeakMap]"]=false;var $t,Ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nt=parseFloat,Pt=parseInt,Zt=typeof global=="object"&&global&&global.Object===Object&&global,qt=typeof self=="object"&&self&&self.Object===Object&&self,Vt=Zt||qt||Function("return this")(),Kt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gt=Kt&&typeof module=="object"&&module&&!module.nodeType&&module,Jt=Gt&&Gt.exports===Kt,Yt=Jt&&Zt.g;
t:{try{$t=Yt&&Yt.f("util");break t}catch(t){}$t=void 0}var Ht=$t&&$t.isArrayBuffer,Qt=$t&&$t.isDate,Xt=$t&&$t.isMap,tn=$t&&$t.isRegExp,nn=$t&&$t.isSet,rn=$t&&$t.isTypedArray,en=j("length"),un=w({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I",
"\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C",
"\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i",
"\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S",
"\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n",
"\u017f":"ss"}),on=w({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"}),fn=w({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"}),cn=N();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Vt._=cn, define(function(){return cn})):Gt?((Gt.exports=cn)._=cn,Kt._=cn):Vt._=cn}).call(this);/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
function SmartWizard(n,t){this.target=n;this.options=t;this.curStepIdx=t.selected;this.steps=$(n).children("ul").children("li").children("a");this.contentWidth=0;this.msgBox=$('<div class="msgBox"><div class="content"><\/div><a href="#" class="close">X<\/a><\/div>');this.elmStepContainer=$("<div><\/div>").addClass("stepContainer");this.loader=$("<div>Loading<\/div>").addClass("loader");this.buttons={next:$('<a tabindex="0" href="javascript:void(0)">'+t.labelNext+"<\/a>").addClass("buttonNext"),previous:$('<a tabindex="0" href="javascript:void(0)">'+t.labelPrevious+"<\/a>").addClass("buttonPrevious"),finish:$('<a tabindex="0" href="javascript:void(0)">'+t.labelFinish+"<\/a>").addClass("buttonFinish"),Other:$('<a tabindex="0" href="javascript:void(0)" style="display:none">'+t.labelOther+"<\/a>").addClass("buttonOther")};this.DisabledSteps={};this.GroupMap={};this.Counter=1;this.curGroupIdx=0;this.ProgressItems;this.ProgressCaptions;this.LastEvent="";var e=function(t){var u=$("<div><\/div>").addClass(nsConstants.ACTION_BAR),s,l,a,f,i,v,h,y,w,p,e,c;u.append(t.msgBox);$(".close",t.msgBox).click(function(){return t.msgBox.fadeOut("normal"),!1});s=t.target.children(nsConstants.STEPDIV_CONTROL_TYPE_SELECTOR);l=!1;t.target.children("ul").length==0&&(l=!0);a=$("<div/>").addClass("ProgressBarDivParent");f=$("<div/>").addClass("ProgressBarDiv");a.append(f);a.insertBefore(n);t.options.displayProgressBar||f.hide();i=$("<ul/>");f.prepend(i);v=$("<div/>").addClass("ProgressBarCaptionDiv");f.append(v);h=$("<ul/>");v.append(h);y="<span class='ProgressSaperator'><\/span>";w="<span class='ProgressCaption'><\/span>";t.options.progressBarCaption==="NUMBER"?i.addClass("ProgressBarCircle"):(i.addClass("ProgressBar"),y="");p=$("<ul/>");n.prepend(p);e=0;s.each(function(n,r){var u=$(r).first().children(".StepTitle"),a,v,w,o,b,k;u.length>1&&(u=$(u[1]));u.attr("tabindex","0");var f=u.text(),c=f,s=MVVMGlobal.GetControlAttribute(r,"sfwShowInHeader",nsCommon.GetActiveDivId(t));(s==undefined||s=="")&&(s="false");s.toLowerCase()==="true"&&(e++,t.options.progressBarCaption==="NUMBER"&&(c=e+""),a=$("<span/>").text(c).attr("title",f).addClass("stepSpan").attr("relatedstepid",$(r)[0].id),v=$("<li><\/li>").attr("id","Progress-"+e).append(a).append(y),t.options.progressBarCaption==="NUMBER"&&(w=$("<li><\/li>").text(f),h.append(w)),i.append(v));t.GroupMap[n]=e;o=$(r).attr("id");o==undefined&&(o="step-"+(n+1),$(r).attr("id",o));b=$("<span/>").addClass("stepDesc").text(f).attr("title",f);k=$("<li><\/li>").append($("<a><\/a>").attr("href","#"+o).append(b));l&&p.append(k)});t.steps=$(n).children("ul").children("li").children("a");t.ProgressItems=i.children("li");t.ProgressCaptions=h.children("li");$(t.ProgressItems[t.ProgressItems.length-1]).find(".ProgressSaperator").remove();t.options.enableOtherButton&&t.buttons.Other.show();t.target.children("ul").addClass("anchor");s.addClass("content");t.options.errorSteps&&t.options.errorSteps.length>0&&$.each(t.options.errorSteps,function(n,i){t.setError({stepnum:i,iserror:!0})});t.elmStepContainer.append(s);u.append(t.loader);t.target.append(t.elmStepContainer);u.append(t.buttons.previous).append(t.buttons.next).append(t.buttons.Other);t.target.append(u);t.options.includeFinishButton&&u.append(t.buttons.finish);this.contentWidth=t.elmStepContainer.width();$(t.buttons.next).click(function(){if(t.buttons.next.hasClass("buttonDisabled"))return!1;if(t.LastEvent="Next",$.isFunction(t.options.onNext)){var n={fromStep:t.curStepIdx+1};if(!t.options.onNext.call(this,t,n))return!1}return t.goForward(),!1});$(t.buttons.previous).click(function(){if(t.buttons.previous.hasClass("buttonDisabled"))return!1;if(t.LastEvent="Previous",$.isFunction(t.options.onPrevious)){var n={fromStep:t.curStepIdx+1};if(!t.options.onPrevious.call(this,t,n))return!1}return t.goBackward(),!1});$(t.buttons.Other).click(function(){if(t.buttons.Other.hasClass("buttonDisabled"))return!1;if(t.LastEvent="Other",$.isFunction(t.options.onOther)){var n={fromStep:t.curStepIdx+1};if(!t.options.onOther.call(this,t,n))return!1}return!1});$(t.buttons.finish).click(function(){var i,n;if(!$(this).hasClass("buttonDisabled"))if($.isFunction(t.options.onFinish)){if(i={fromStep:t.curStepIdx+1},t.LastEvent="Finish",!t.options.onFinish.call(this,t,i))return!1}else n=t.target.parents("form"),n&&n.length&&n.submit();return!1});$(t.ProgressItems).off("click.neoSmartWizardEvents").on("click.neoSmartWizardEvents",function(){var i,n;if(!$(this).hasClass("selectable")||!t.options.allowJumpingGroup)return!1;i=parseInt(this.id.split("-")[1]);for(n in t.GroupMap)if(n=parseInt(n),t.GroupMap[n]===i&&t.DisabledSteps[n]===!1)break;n>-1&&t.goToStep(n+1)});$(t.steps).off("click.neoSmartWizardEvents").on("click.neoSmartWizardEvents",function(n){var i,u,n,e,f,o;return t.options.allowJumpingSteps?t.steps.index(this)>=t.curStepIdx?!1:(i=nsUserFunctions.WizardStepClick,typeof i=="function"&&(u={activeDivID:ns.viewModel.currentModel,currentStepIndex:t.curStepIdx,stepTitle:$(this).text(),gointToStepIndex:t.steps.index(this)},n={},n.context=u,n.context=u,e=i(n),!e))?!1:(f=t.steps.index(this),o=t.steps.eq(f).attr("isDone")-0,o==1&&r(t,f),!1):!1});for(t.options.keyNavigation&&$(document).keyup(function(n){n.which==39?t.goForward():n.which==37&&t.goBackward()}),o(t),c=0;c<t.steps.length;c++)t.DisabledSteps[c+""]=!1;r(t,t.curStepIdx)},o=function(n){n.options.enableAllSteps?($(n.steps,n.target).removeClass("selected").removeClass("disabled").addClass("done"),$(n.steps,n.target).attr("isDone",1),n.options.allowJumpingSteps&&$(n.steps,n.target).addClass("donehover")):(n.options.hideStepsOnDisabled===!0?$(n.steps,n.target).removeClass("selected").removeClass("done").addClass("disabledHide"):$(n.steps,n.target).removeClass("selected").removeClass("done").addClass("disabled"),$(n.steps,n.target).attr("isDone",0),n.options.allowJumpingSteps&&$(n.steps,n.target).removeClass("donehover"));n.options.verticalWizard?nsWizard.PrepareVerticalWizard(n):$(n.steps,n.target).each(function(t){$($(this).attr("href").replace(/^.+#/,"#"),n.target).hide();$(this).attr("rel",t+1)})},i=function(n,t){return $($(t,n.target).attr("href").replace(/^.+#/,"#"),n.target)},r=function(n,t){for(var u;n.DisabledSteps[t+""]===!0&&t>=0&&t<n.steps.length;)n.DisabledSteps[t+""]===!0&&(t=t+n.Counter);var e=n.steps.eq(t),r=n.options.contentURL,o=n.options.contentURLData,h=e.data("hasContent"),s=t+1;r&&r.length>0?n.options.contentCache&&h?f(n,t):(r.indexOf("/")!==0&&(r="/"+r),u={url:r,type:n.options.ajaxType,data:{step_number:s},dataType:"text",beforeSend:function(){n.loader.show()},error:function(){n.loader.hide()},success:function(r){n.loader.hide();r&&r.length>0&&(e.data("hasContent",!0),i(n,e).html(r),f(n,t))}},o&&(u=$.extend(u,o(s))),$.ajax(u)):f(n,t)},f=function(n,t){for(var f=n.steps.eq(t),e,r,l,c;n.DisabledSteps[t+""]===!0&&t>=0&&t<n.steps.length;)n.DisabledSteps[t+""]===!0&&(t=t+n.Counter);for(f=n.steps.eq(t),$(n.ProgressItems).removeClass("ProgressHighlight"),$(n.ProgressCaptions).removeClass("Bold"),e=0;e<n.GroupMap[t];e++)$(n.ProgressItems[e]).addClass("ProgressDone");if(n.ProgressItems!==undefined&&n.ProgressItems.length>0&&n.GroupMap&&n.GroupMap.length>0&&n.GroupMap[t]>0?($(n.ProgressItems[n.GroupMap[t]-1]).addClass("ProgressHighlight"),$(n.ProgressCaptions[n.GroupMap[t]-1]).addClass("Bold"),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("tabindex",0),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("role","text"),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("aria-label","Step "+$(n.ProgressItems[n.GroupMap[t]-1])[0].id),n.options.allowJumpingGroup&&$(n.ProgressItems[n.GroupMap[t]-1]).addClass("selectable")):typeof n.ProgressItems[n.GroupMap[t]-1]!="undefined"&&($(n.ProgressItems[n.GroupMap[t]-1]).addClass("ProgressHighlight"),$(n.ProgressCaptions[n.GroupMap[t]-1]).addClass("Bold"),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("tabindex",0),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("role","text"),$(n.ProgressItems[n.GroupMap[t]-1]).children().attr("aria-label","Step "+$(n.ProgressItems[n.GroupMap[t]-1])[0].id),n.options.allowJumpingGroup&&$(n.ProgressItems[n.GroupMap[t]-1]).addClass("selectable")),r=n.steps.eq(n.curStepIdx),t!=n.curStepIdx&&$.isFunction(n.options.onLeaveStep)&&(l={fromStep:n.curStepIdx+1,toStep:t+1},!n.options.onLeaveStep.call(n,$(r),l)))return!1;if(n.elmStepContainer.height(i(n,f).outerHeight()),c=n.curStepIdx,n.curStepIdx=t,n.options.transitionEffect=="slide")i(n,r).slideUp("fast",function(){i(n,f).slideDown("fast");u(n,r,f)});else if(n.options.transitionEffect=="fade")i(n,r).fadeOut("fast",function(){i(n,f).fadeIn("fast");u(n,r,f)});else if(n.options.transitionEffect=="slideleft"){var o=null,s=null,h=0;t>c?(o=n.elmStepContainer.width()+10,s=0,h=0-i(n,r).outerWidth()):(o=20-i(n,f).outerWidth(),s=0,h=10+i(n,r).outerWidth());t==c?(o=$($(f,n.target).attr("href"),n.target).outerWidth()+20,s=0,h=0-$($(r,n.target).attr("href"),n.target).outerWidth()):$($(r,n.target).attr("href"),n.target).animate({left:h},"fast",function(){$($(r,n.target).attr("href"),n.target).hide()});i(n,f).css("left",o).show().animate({left:s},"fast",function(){u(n,r,f)})}else n.options.verticalWizard?(u(n,r,f),nsWizard.SetStateOfVerticalWizardSteps(n,r,f,i)):(i(n,r).hide(),i(n,f).show(),u(n,r,f));return!0},u=function(n,t,r){var e,f,o,u;if($(t,n.target).removeClass("selected"),$(t,n.target).addClass("done"),n.options.allowJumpingSteps){if($(t,n.target).addClass("donehover"),n.options.verticalWizard)if(e=parseInt(t[0].rel),f=parseInt(r[0].rel),e>f)for(u=f-1;u<n.steps.length;u++)n.elmStepContainer.find(n.steps[u].hash).addClass(nsConstants.DISABLE_PANEL_CLICK_EVENT);else i(n,t).removeClass(nsConstants.DISABLE_PANEL_CLICK_EVENT);$(r,n.target).removeClass("donehover")}if($(r,n.target).removeClass("disabled"),$(r,n.target).removeClass("disabledHide"),$(r,n.target).removeClass("done"),$(r,n.target).addClass("selected"),$(r,n.target).attr("isDone",1),s(n),$.isFunction(n.options.onShowStep)&&(o={fromStep:parseInt($(t).attr("rel")),toStep:parseInt($(r).attr("rel"))},!n.options.onShowStep.call(this,n,o)))return!1;if(n.options.noForwardJumping)for(u=n.curStepIdx+2;u<=n.steps.length;u++)n.disableStep(u)},s=function(n){var i,r,f,u,t;if(!n.options.cycleSteps){for(i=!1,r=!1,t=0;t<n.curStepIdx;t++)if(n.DisabledSteps[t]===!1){i=!0;break}for(t=n.curStepIdx+1;t<n.steps.length;t++)if(n.DisabledSteps[t]===!1){r=!0;break}0>=n.curStepIdx||!i?($(n.buttons.previous).addClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.previous).hide()):($(n.buttons.previous).removeClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.previous).show());n.steps.length-1<=n.curStepIdx||!r?($(n.buttons.next).addClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.next).hide()):($(n.buttons.next).removeClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.next).show())}if(n.options.includeFinishButton&&(n.options.enableFinishButton||n.currentStep()===n.steps.length?($(n.buttons.finish).removeClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.finish).show(),n.options.enableFinishButton=!0):($(n.buttons.finish).addClass("buttonDisabled"),n.options.hideButtonsOnDisabled&&$(n.buttons.finish).hide())),n.options.displayStepMode==="GROUPED"){for(f=n.currentGroup(),u=0,t=0;t<n.steps.length;t++)n.GroupMap[t]===f?(u++,$(n.steps[t]).show()):$(n.steps[t]).hide();u<2&&$(n.steps).hide()}else n.options.displayStepMode==="ALL"?$(n.steps).show():n.options.displayStepMode==="NONE"&&$(n.steps).hide()};SmartWizard.prototype.goForward=function(){this.Counter=1;var n=this.curStepIdx+1;if(this.steps.length<=n){if(!this.options.cycleSteps)return!1;n=0}r(this,n)};SmartWizard.prototype.goBackward=function(){this.Counter=-1;var n=this.curStepIdx-1;if(0>n){if(!this.options.cycleSteps)return!1;n=this.steps.length-1}r(this,n)};SmartWizard.prototype.goToStep=function(n){var t=n-1;return this.DisabledSteps[t+""]===!0?(alert("step "+n+" is disabled"),!1):t>=0&&t<this.steps.length?(r(this,t),!0):void 0};SmartWizard.prototype.enableStep=function(n){var t=n-1,i;if(this.DisabledSteps[t+""]=!1,t==this.curStepIdx||t<0||t>=this.steps.length)return!1;i=this.steps.eq(t);$(i,this.target).attr("isDone",1);$(i,this.target).removeClass("disabled").removeClass("selected").addClass("done");$this.options.allowJumpingSteps&&$(i,this.target).addClass("donehover")};SmartWizard.prototype.disableStep=function(n){var t=n-1,i;if(this.DisabledSteps[t+""]=!0,t==this.curStepIdx||t<0||t>=this.steps.length)return!1;i=this.steps.eq(t);$(i,this.target).attr("isDone",0);this.options.hideStepsOnDisabled===!0?$(i,this.target).removeClass("done").removeClass("selected").addClass("disabled"):$(i,this.target).removeClass("done").removeClass("selected").addClass("disabledHide");$this.options.allowJumpingSteps&&$(i,this.target).removeClass("donehover")};SmartWizard.prototype.currentStep=function(){return this.curStepIdx+1};SmartWizard.prototype.currentGroup=function(){return this.GroupMap[this.curStepIdx]};SmartWizard.prototype.showMessage=function(n){$(".content",this.msgBox).html(n);this.msgBox.show()};SmartWizard.prototype.hideMessage=function(){this.msgBox.fadeOut("normal")};SmartWizard.prototype.showError=function(n){this.setError(n,!0)};SmartWizard.prototype.hideError=function(n){this.setError(n,!1)};SmartWizard.prototype.setError=function(n,t){typeof n=="object"&&(t=n.iserror,n=n.stepnum);t?$(this.steps.eq(n-1),this.target).addClass("error"):$(this.steps.eq(n-1),this.target).removeClass("error")};SmartWizard.prototype.fixHeight=function(){var n=0,r=this.steps.eq(this.curStepIdx),t=i(this,r);t.children().each(function(){$(this).is(":visible")&&(n+=$(this).outerHeight())});t.height(n+5);this.elmStepContainer.height(n+20)};e(this)}function getTheDate(n,t){n=n||"";var i;return i=n?new Date(n):t.val()?new Date(t.val()):new Date,{day:i.getDay(),date:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function leapYear(n){return n%4==0&&(n%100!=0||n%400==0)}function daysInMonth(n,t){switch(n){case 1:return leapYear(t)?29:28;case 3:case 5:case 8:case 10:return 30;default:return 31}}function createCalendar(n){var u,r,i;n=n||{};var h=$("#datePickerADA"),c=$("#neodatePickerCalendar"),w=$("#closeDatePicker"),l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"],a=h.find("#monthAndYear"),v=c.find("tbody"),t=0,y=new Date(n.month+1+"/1/"+n.year).getDay(),p=daysInMonth(n.month,n.year);for(clearCalendar(),u=0;u<6;u+=1){var e=document.createElement("tr"),o=document.createDocumentFragment(),s="";for(r=0;r<7;r+=1)i=!0,(t!==0||r>=y)&&(t+=1),i=t===0||t>p,s+='<td tabindex="-1" role="button" class="'+(t===n.date?"selected":"")+'" aria-label="'+(i?"":l[r]+", "+t+" "+f[n.month]+", "+n.year)+'" data-date="'+(i?"":t)+'" data-month="'+(i?"":n.month)+'" data-year="'+(i?"":n.year)+'" aria-hidden="'+i+'">'+(i?"":t)+"<\/td>";e.innerHTML=s;$(o).append(e);v.append(o)}a.text(f[n.month]+" "+n.year)}function clearCalendar(){var n=$("#neodatePickerCalendar"),t=n.find("tbody");t.empty()}function getSelectedDate(){var n=$(".selected[data-date]"),t=parseInt(n.attr("data-date")),i=parseInt(n.attr("data-month")),r=parseInt(n.attr("data-year"));return{$currentCell:n,date:t,month:i,year:r}}function focusOnSelectedDate(){document.querySelectorAll(".selected[data-date]")[0].focus()}function changeByMonth(n,t,i){i=i||!1;var u,r=1;return i&&(r=-1),n=n+r,(n<0||n===12)&&(n=n=n<0?11:0,t=t+r),u=daysInMonth(n,t),{month:n,year:t,numDaysInMo:u}}function changeByYear(n,t,i){i=i||!1;var r,u=1;return i&&(u=-1),t=t+u,r=daysInMonth(n,t),{year:t,numDaysInMo:r}}function positionDatePicker(n,t,i){var f=$("#datePickerADA"),r=f[0],u=n.getBoundingClientRect();r.style.left=u[t]+"px";r.style.top=u[i]+"px"}function registerADADateEvents(){$("#datePickerADA").off(".neoADAdatepick");$("#datePickerADA").on("click.neoADAdatepick",'[data-date]:not([data-date=""])',function(){var r=$("#datePickerADA"),t=$(this),i=parseInt(t.attr("data-month"))+1+"/"+t.attr("data-date")+"/"+t.attr("data-year"),u=new Date(i),n=r.data("RelatedElemet");return n==undefined?!1:(i=Sagitec.nsFormatting.DateTimeFormatter.GetFormattedDateValue(u,n[0].DateFormat),n.val(i),$("#closeDatePicker").click(),n.focus(),!1)});$("#datePickerADA").on("click.neoADAdatepick","#closeDatePicker",function(){var n=$("#datePickerADA"),t;return(n.hide(),t=n.data("RelatedElemet"),t==undefined)?!1:(t.next().focus(),n.removeData("RelatedElemet"),!1)});$("#datePickerADA").on("keydown.neoADAdatepick",function(n){if(n.keyCode===NAME.keyboard.esc)return $("#closeDatePicker").trigger("click.neoADAdatepick"),!1});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){if(n.keyCode===NAME.keyboard.space||n.keyCode===NAME.keyboard.enter)return $(this).trigger("click.neoADAdatepick"),!1});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){var h,c;if(!n.shiftKey&&!n.ctrlKey&&(n.keyCode===NAME.keyboard.right||n.keyCode===NAME.keyboard.left||n.keyCode===NAME.keyboard.up||n.keyCode===NAME.keyboard.down)){var e=getSelectedDate(),l=e.$currentCell,a=e.date,r=e.month,u=e.year,f,t,s,i,o=daysInMonth(r,u);switch(n.keyCode){case NAME.keyboard.left:f=-1;break;case NAME.keyboard.right:f=1;break;case NAME.keyboard.up:f=-7;break;case NAME.keyboard.down:f=7;break;default:return!1}return(t=a+f,s=$("#datePickerADA").find('[data-date="'+t+'"]'),l.removeClass("selected"),s[0])?(s.addClass("selected"),focusOnSelectedDate(),!1):(t<=0?(i=changeByMonth(r,u,!0),r=i.month,u=i.year,o=i.numDaysInMo,t=o+t):t>o&&(t=t-o,i=changeByMonth(r,u),r=i.month,u=i.year),h=$("#datePickerADA"),c=h.data("RelatedElemet"),createCalendar(getTheDate(r+1+"/"+t+"/"+u,c)),focusOnSelectedDate(),!1)}});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){if(!n.ctrlKey&&!n.metaKey&&(n.keyCode===NAME.keyboard.pageUp||n.keyCode===NAME.keyboard.pageDown)||(n.ctrlKey||n.metaKey)&&(n.keyCode===NAME.keyboard.left||n.keyCode===NAME.keyboard.right))return n.keyCode===NAME.keyboard.pageUp||n.keyCode===NAME.keyboard.left?($("#backOneMonth").trigger("click.neoADAdatepick"),!1):($("#forwardOneMonth").trigger("click.neoADAdatepick"),!1)});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){if((n.ctrlKey||n.metaKey)&&(n.keyCode===NAME.keyboard.pageUp||n.keyCode===NAME.keyboard.pageDown)||(n.ctrlKey||n.metaKey)&&(n.keyCode===NAME.keyboard.up||n.keyCode===NAME.keyboard.down))return n.keyCode===NAME.keyboard.pageUp||n.keyCode===NAME.keyboard.up?($("#backOneYear").trigger("click.neoADAdatepick"),!1):($("#forwardOneYear").trigger("click.neoADAdatepick"),!1)});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){if(n.keyCode===NAME.keyboard.home){var t=getSelectedDate(),i=t.$currentCell,r=$("#datePickerADA").find('[data-date="1"]');return i.removeClass("selected"),r.addClass("selected"),focusOnSelectedDate(),!1}});$("#datePickerADA").on("keydown.neoADAdatepick","[data-date]",function(n){if(n.keyCode===NAME.keyboard.end){var t=getSelectedDate(),i=t.$currentCell,r=t.month,u=t.year,f=daysInMonth(r,u),e=$("#datePickerADA").find('[data-date="'+f+'"]');return i.removeClass("selected"),e.addClass("selected"),focusOnSelectedDate(),!1}});$("#datePickerADA").on("keydownneoADAdatepick","[data-date]",function(n){if(n.keyCode===84)return $("#goToToday").trigger("click.neoADAdatepick"),!1});$("#datePickerADA").find('[role="application"]').prevAll("div").find("button").last().on("keydown.neoADAdatepick",function(n){if(!n.shiftKey&&n.keyCode===NAME.keyboard.tab)return focusOnSelectedDate(),!1});$("#datePickerADA").find('[role="application"]').nextAll("div").find("button").first().on("keydown.neoADAdatepick",function(n){if(n.shiftKey&&n.keyCode===NAME.keyboard.tab)return focusOnSelectedDate(),!1});$("#datePickerADA").on("click.neoADAdatepick","#backOneMonth, #forwardOneMonth",function(){var t=getSelectedDate(),f=t.date,i=t.month,r=t.year,n,e,u,h=this.id==="backOneMonth"?!0:!1,o,s;return n=changeByMonth(i,r,h),i=n.month,r=n.year,u=n.numDaysInMo,e=f>u?u:f,o=$("#datePickerADA"),s=o.data("RelatedElemet"),createCalendar(getTheDate(i+1+"/"+e+"/"+r,s)),focusOnSelectedDate(),!1});$("#datePickerADA").on("click.neoADAdatepick","#backOneYear, #forwardOneYear",function(){var n=getSelectedDate(),u=n.date,f=n.month,t=n.year,i,e,r,h=this.id==="backOneYear"?!0:!1,o,s;return i=changeByYear(f,t,h),t=i.year,r=i.numDaysInMo,e=u>r?r:u,o=$("#datePickerADA"),s=o.data("RelatedElemet"),createCalendar(getTheDate(f+1+"/"+e+"/"+t,s)),focusOnSelectedDate(),!1});$("#datePickerADA").on("click.neoADAdatepick","#goToToday",function(){var n=new Date,t=$("#datePickerADA"),i=t.data("RelatedElemet");return createCalendar(getTheDate(n.getMonth()+1+"/"+n.getDate()+"/"+n.getFullYear(),i)),focusOnSelectedDate(),!1})}function bindClickEvents(n,t){n[0].DateFormat=t;var i=n.next();i.off("click.neoADAdatepick").on("click.neoADAdatepick",function(){var t=$(this).prev(),n;return createCalendar(getTheDate(null,t)),positionDatePicker(this,"left","bottom"),n=$("#datePickerADA"),n.show(),n.data("RelatedElemet",t),focusOnSelectedDate(),!1})}function InitializeADATest(){function f(){var r;$("#cssmenu").html(ns.istrFullMenuTemplate);var t=!1,n=window.navigator.userAgent,i=n.indexOf("MSIE ");(i>0||!!n.match(/Trident.*rv\:11\./))&&(t=!0);$("[sfwCBPanel='true']").kendoPanelBar({});r=selectnav("MenuUl",{label:"### Table of content ### ",nested:!0,indent:"--"});$("#selectnav1").on("change",function(){$(this).val()!==""&&$("#cssmenu").find("li[formid='"+$(this).val()+"']").trigger("click")})}function i(n){ns.displayActivity(!0);var t=function(){var i=nsRequest.getTemplate(n),f,t,e,r,o,u,h;(n.indexOf("Maintenance")>0||n.indexOf("Wizard")>0)&&(f=ns.Templates[n]!=undefined?ns.Templates[n].ExtraInfoFields:{},ns.viewModel[n]={ExtraInfoFields:f,DomainModel:{HeaderData:{ControlList:{DisabledControls:{},HiddenControls:{},ReadOnlyControls:{}},MaintenanceData:{}},DetailsData:{},KeysData:{},OtherData:{SenderKey:"NoSenderKeyRequired"}},ValidationSummary:[]},ns.viewModel[n].ExtraInfoFields.KeyField=0);i!=null&&(t=i.ExtraInfoFields.FormTitle,(t==null||t=="")&&(t=n),$("#ContentSplitter").html("<div id='"+n+"'><h1 class='formtitle'>"+t+"<\/h1>"+i.Template+"<div>"),ns.applyKendoUI("#ContentSplitter",n,n),$("label[data-bind]").text("test 001"));s(n);n.indexOf("Wizard")>0&&ns.ConfigureWizard($("#ContentSplitter"),n,n,n,n,!1,!1);$("select:not(:has(*))").each(function(){$(this).append("<option value='' text=''><\/option>");for(var n=0;n<5;n++)$(this).append("<option value='"+n+"' text='Option "+n+"'>Option "+n+"<\/option>")});(ns.iblnADATesting===!0||ns.iblnVisuallyImpaired===!0)&&(e=$("#"+n),nsCommon.ApplyADACompliances(e));r=nsUserFunctions.AfterADALoadFormData;typeof r=="function"&&(o={activeDivID:n,idomActiveDiv:$("#"+n)},u={},u.context=o,h=r(u));ns.displayActivity(!1)};setTimeout(t,500)}function s(t){var f={DomainModel:{KeysData:{},DetailsData:{}},ExtraInfoFields:{}},i,u,e;if($(".sfwgrid").each(function(){var n=$(this).attr("id");f.DomainModel.DetailsData[n]={FieldsType:{},Records:[]};f.DomainModel.KeysData[["CollectionOf_",n].join("")]=""}),lJsonGridResult=f.DomainModel,n={},lJsonGridResult!=null){var o=nsCommon.GetProperFormName(t),s=nsCommon.GetApplyUIData(t,t,t,o),h=$("#"+t),c={data:{DomainModel:lJsonGridResult},FormContainerId:"#ContentSplitter",FormContainer:h,ApplyUIData:s};for(gridid in lJsonGridResult.DetailsData)i=$("#ContentSplitter #"+gridid),i.length>0&&(u=i.attr("sfwcolumns"),u!=undefined&&(larrGridColumns=nsCommon.Eval(["(",u,")"].join(""))),i=$("#ContentSplitter #GridTable_"+gridid),n[gridid]=new MVVM.JQueryControls.GridView(i,t,c),e=[],e=u!=undefined?r(larrGridColumns,!1):r(n[gridid].iarrGridColumns,!0),n[gridid].iobjDataSourceOptions.data=e,n[gridid].init())}}function r(n,i){for(var s,o,c,a=[],u={},r,v=n,f=0;f<t;f++){for(u={},s=0;s<v.length;s++)if(r=v[s],o="",r.attributes!=undefined&&r.attributes.sfwDisplayLength!=undefined&&(o="_DisplayText"),r.format!=null&&r.format!=""?u[r.field+o]=r.field.toLowerCase().indexOf("date")>=0?neoFormat.GetFormatedValue(r.format,new Date):r.field.toLowerCase().indexOf("phone")>=0?neoFormat.GetFormatedValue(r.format,""+(1234567899+f)):neoFormat.GetFormatedValue(r.format,""+(1e3+f)):r.field=="rowSelect"?u.rowSelect=!1:r.field=="rowIndex"?u.rowIndex=f:u[r.field+o]=r.field.toLowerCase().indexOf("_id")>=0?1e3+f:"Test Value "+f,i){var e=r.field.split("_"),h=e.length-1,l=e[h];e[h]=Number(l)+1;c=e.join("_");u[c]=u[r.field+o];l=e[h];e[h]=Number(l)+1;c=e.join("_");u[c]=u[r.field+o]}a.push(u)}return a}function h(n,t){var e=nsCommon.GetActiveDivId(n.elmStepContainer[0]),i=$(n.elmStepContainer.find(".content")[t.toStep-1]),r,f;i.find(".StepTitle").length==2&&$(i.find(".StepTitle")[0]).remove();r={};f={};window.location.hash=i[0].id;(ns.iblnADATesting===!0||ns.iblnVisuallyImpaired===!0)&&nsCommon.ApplyADACompliances(i);u(n,t)}var t,e,o,n,u;if($(document).off(),$("*").off(),$("#CenterLeft").remove(),$("#TabsTree").appendTo($("body")),$("#TabsTree").hide(),$("#CenterLeftTabs").remove(),$("#crumDiv").remove(),$("#LookupName").remove(),$("#GlobalMessageDiv").remove(),$("#DashBoard").remove(),$("#NotificationBar").remove(),$("#SouthSplitter").remove(),t=5,$(function(){var i,n,r,u,t,e;ns.blnLoading=!0;ns.blnUseSlideoutForLookup=!1;ns.iblnShowTaglistForCriteria=!0;ns.iblnShowToolBarForGrid=!1;ns.Language="en-US";nsCorr.UseLocalTool=!0;$("#header").css({float:"left",width:"100%",height:"130px","background-size":"cover"});$("#cssmenu").css("height","auto !important");i=function(){$(".sub-menu").css({"max-height":"600px",overflow:"auto","z-index":"9999"})};setTimeout(i,500);$("#NorthSplitter").css({float:"left",width:"100%"});$("#MiddleSplitter").css("top","0px !important");$("#CenterMiddle").css({float:"left",width:"100%"});$("#CenterSplitter").css({float:"left",width:"100%"});$("#ContentSplitter").css({width:"85%","min-height":"auto",margin:"0px auto",height:"calc(100vh - 150px)",overflow:"auto"});ns.ADALandingPage="wfmPersonLookup";n=nsUserFunctions.GetADALandingPage;typeof n=="function"&&(ns.ADALandingPage=n());ns.LandingPage=ns.ADALandingPage;ns.viewModel.currentForm=ns.LandingPage;ns.viewModel.currentModel=ns.LandingPage;FrameworkInitilize();r={MenuTempate:ns.istrMenuTemplate};f(r);(ns.iblnADATesting===!0||ns.iblnVisuallyImpaired===!0)&&(u=$("html"),nsCommon.ApplyADACompliances(u));t=nsUserFunctions.AfterInitializeADATest;typeof t=="function"&&(e=t())}),window.MVVMGlobal!=undefined){function c(){MVVMGlobal.RegisterEvents()}function FrameworkInitilize(){MVVMGlobal.FrameworkInitilize()}nsCommon.SyncPost=nsRequest.SyncPost;function l(n,t,i){return MVVMGlobal.GetControlAttribute(n,t,i)}ns.getTemplate=nsRequest.getTemplate;function a(n){MVVMGlobal.setRequestingForm(n)}function v(n){MVVMGlobal.Extend_Custom(n)}function y(n){MVVMGlobal.showDiv(n)}function p(n){nsEvents.OnDeleteNodeClick(n)}e=MVVMGlobal.LoadLookupNames;o=MVVMGlobal.setLookupFormTitle;MVVM!=undefined&&MVVM.KendoControls!=undefined&&MVVM.KendoControls.TabSheet!=undefined&&MVVM.KendoControls.TabSheet.prototype!=undefined&&MVVM.KendoControls.TabSheet.prototype.disable!=undefined&&(MVVM.KendoControls.TabSheet.prototype.disable=function(){});PopulateDirtyFormList=MVVMGlobal.PopulateDirtyFormList}$(document).off("click.neoEvents",".menuItem");$(document).on("click.neoEvents",".menuItem",function(){var n,r,t;(ns.blnFromTreeview=!1,this.attributes.FormID!=undefined)&&(ns.blnMenuClicked=!0,n=this.getAttribute("FormID"),delete ns.arrNeedToRefresh[n],ns.setSenderData("",n,""),ns.MainLookup!==undefined&&ns.activeLookup.divID.indexOf("CenterLeft")>0&&(ns.activeLookup=ns.MainLookup),n=this.getAttribute("FormID"),ns.viewModel.FromMenu=!0,n.indexOf(nsConstants.LOOKUP)>0&&(r=nsCommon.GetProperFormName(n),nsCommon.sessionRemove([r,nsConstants.UNDERSCORE_ACTIVITY_INSTANCE_DETAILS].join(""))),n.indexOf(nsConstants.LOOKUP)===0&&ns.blnUseSlideoutForLookup&&($(nsConstants.SLIDEOUT_LOOKUP_SELECTOR)[0].style.display==="none"||$(nsConstants.SLIDEOUT_LOOKUP_SELECTOR)[0].style.display==="")&&$("#SearchTriger").trigger("click"),ns.settings=undefined,ns.HashChangedFormCode=!1,ns.SenderID="",ns.SenderForm="",ns.SenderKey="",ns.viewModel.srcElement=undefined,ns.sfwPageMode="",t=$(this),t.attr("sfwPageMode")!=undefined&&t.attr("sfwPageMode")=="New"&&(ns.sfwPageMode="New"),window.location.hash=n,i(n),ns.viewModel.EnableRestore=!1)});MVVMGlobal.FrameworkInitilize=function(){if(ns.iblnADATesting===!0||ns.iblnVisuallyImpaired===!0){var n=$("html");nsCommon.ApplyADACompliances(n)}MVVM.Controls.TreeView!=null&&(ns.tabsTreeView=MVVM.Controls.TreeView.CreateInstance($("#TabsTree"),{data:null}));ns.activityComplete();i(ns.LandingPage)};n={};nsUserFunctions.AfterApplyingUI=function(){return};nsCommon.SetWidgetControlByDivID=function(n,t,i,r){if(ns.Templates[i].WidgetControls[n]=t,r==="sfwTabContainer")for(var u in t.idictTabs)ns.Templates[i].WidgetControls[u]=t.idictTabs[u]};nsCommon.IsControlHiddenOrReadOnly=function(){return!1};MVVMGlobal.PopulateDropDownList=function(n,t){var r=null,f="",h,l,a;ns.SenderID=n.id;var i=nsCommon.GetActiveDivId(n),o=nsCommon.GetProperFormName(nsCommon.GetFormNameFromDivID(i)),w=MVVMGlobal.GetControlAttribute(n,"sfwObjectID",i),s=MVVMGlobal.GetControlAttribute(n,"sfwCodeGroup",i),v=MVVMGlobal.GetControlAttribute(n,"sfwCodeTable",i),y=MVVMGlobal.GetControlAttribute(n,"sfwCodeMethod",i),b=$(n).attr("DataValueField"),k=$(n).attr("DataTextField"),d=MVVMGlobal.GetControlAttribute(n,"sfwParameters",i),e,p=!1;if(($(n).closest(nsConstants.DIV_LISTVIEW_ITEMS).length>0&&(p=!0,e=nsCommon.GetWidgetByActiveDivIdAndControlId(i,$(n).closest(nsConstants.LISTVIEW_CONTAINER_STARTWITH_SELECTOR)[0].id)),y==null)&&v==null){if(s!=null)r="GetDropDownValuesFromCode",f={aintCodeID:s,astrParameters:f};else return;f.FormName=o.replace("wfmhtx","htx");r=r.indexOf("?")>0?[r,"&SenderID=",ns.SenderID].join(""):[r,"?SenderID=",ns.SenderID].join("");h=ns.SenderKey;ns.viewModel[i]!=undefined&&(ns.SenderKey=ns.viewModel[i].SenderKey);r=[r,"&SenderForm=",o,"&SenderKey=",ns.SenderKey].join("");ns.SenderKey=h;var c=$(n).closest('div[PopupDialog="true"]'),u=i;c.length>0&&!(i.indexOf("wfmwfp")==0||i.indexOf("wfp")==0)&&(u=c[0].id);ns.viewModel[u]!=undefined&&ns.viewModel[u].ListControlData!=undefined&&ns.viewModel[u].ListControlData[$(n)[0].id]!=undefined&&ns.viewModel[u].ListControlData[$(n)[0].id].length>0?(l=ns.viewModel[u].ListControlData[$(n)[0].id],SetCascadingDropDownValue(l,n,u,t,e,!0),ns.viewModel[u].ListControlData[$(n)[0].id]=null,delete ns.viewModel[u].ListControlData[$(n)[0].id]):r==null||!1||(a=MVVMGlobal.GetPrefixforAjaxCall(),$.ajax({url:[a,"api/",ns.ControllerName,"/",r].join(""),async:!1,data:JSON.stringify(f),dataType:nsConstants.TEXT,type:"POST",cache:!1,headers:MVVMGlobal.GetHeaders(),contentType:"application/json; charset=utf-8",success:function(r){var f,o,u,s;SessionEvents.ResetTimer();ns.sessionStartTime=(new Date).getTime();f=$(n).closest('div[PopupDialog="true"]');o=i;f.length>0&&!(i.indexOf("wfmwfp")==0||i.indexOf("wfp")==0)&&(o=f[0].id);u=r;u!=null&&u.split!==undefined&&(s=u.split(";"),SetCascadingDropDownValue(s,n,o,t,e))},error:function(t){t.status===403?ns.logoutSesssion():alert(["Error occurred in ",r," for control '",$(n).attr("sfwCascading"),"'."].join(""))}}))}};nsCommon.GetOptionsForDropdown=function(n,t){var s={},u=ns.viewModel.currentModel,i,f,h,e,o,r;return(n.formname!=undefined&&n.formname.indexOf(nsConstants.BPM_WORKFLOW_CENTERLEFT_MAINTENANCE)==0&&(u=n.formname),i=nsCommon.GetProperFormName(u),i==nsConstants.CORRESPONDENCE_CLIENT_MVVM_CORR_DIV||i==nsConstants.REPORT_CLIENT_MVVM_RPT_DIV||i.indexOf("rpt")==0||i.indexOf("wfmwfp")==0||i.indexOf(nsConstants.LOOKUP)>0||i.indexOf("cor")==0?ns.Templates[i]!=undefined&&ns.Templates[i].HeaderData!=undefined&&ns.Templates[i].HeaderData.ControlList!=undefined&&(s=ns.Templates[i].HeaderData.ControlList.HiddenControls):(f=ns.viewModel[u],f!=undefined&&f.HeaderData!=undefined&&f.HeaderData.ControlList!=undefined&&f.HeaderData.ControlList.HiddenControls!=undefined&&(s=f.HeaderData.ControlList.HiddenControls)),n.formname!=undefined&&n.formname!=null&&ns.SenderForm!==undefined&&ns.SenderForm!==null&&ns.SenderForm.indexOf("cor")!=0&&(ns.SenderForm=nsCommon.GetProperFormName(n.formname)),ns.SenderID=="ddlInitialPageSiteMap")?nsRequest.SyncPost("GetInitialPageSiteMapItems",n):n.sfwcodegroup==undefined?void 0:(h=!1,e=nsCommon.GetDataItemFromDivID(u),e!=undefined&&e.IsViewOnly===!0&&(h=!0),ns.viewModel[u]!=undefined&&(ns.SenderKey=ns.viewModel[u].SenderKey),n.sfwcodegroup!==undefined)?(o=n.sfwcodegroup,r=null,n.sfwdata1equalto==undefined&&n.sfwdata2equalto==undefined&&n.sfwdata3equalto==undefined&&(r=nsCommon.localStorageGet(["CodeValues_",ns.Language,"_",o,"_",t].join(""))),(r===null||r===undefined||n.isdropdown=="false"&&(n.islistcontrol==undefined||n.islistcontrol=="false"))&&(r=nsRequest.SyncPost("GetDropDownValues",n),(n.isdropdown!=="false"||n.islistcontrol!=="false")&&n.sfwdata1equalto==undefined&&n.sfwdata2equalto==undefined&&n.sfwdata3equalto==undefined&&(r.ExtraInfoFields==undefined||r.ExtraInfoFields!=undefined&&r.ExtraInfoFields.AccessDenied==undefined)&&nsCommon.localStorageSet(["CodeValues_",ns.Language,"_",o,"_",t].join(""),r)),r):void 0};nsCommon.GetWidgetControlsByDivID=function(){return n};nsEvents.clickHandler=function(){return!1};u=nsWizard.showStepCallback;nsWizard.showStepCallback=h}var LastTriggerClicked,CryptoJS,selectnav,Validator,NAME,XLSX,XLS;(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function wt(n){for(var t=n.css("visibility");t==="inherit";)n=n.parent(),t=n.css("visibility");return t!=="hidden"}function ai(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&i!==0))return i;n=n.parent()}return 0}function y(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=p(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function p(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,w)}function w(){n.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))}function f(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}function i(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var b,l,o,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,c,pt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,v,hi,ci,li,t,vi,yi,r,pi,wi,bi,e,ki,di,gi,nr,tr,ir,rr,ur,fr;n.ui=n.ui||{};b=n.ui.version="1.12.1";
/*!
     * jQuery UI Widget 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
l=0;o=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;(u=i[f])!=null;f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s;return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function u(n){return i.prototype[t].apply(this,n)}return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var f=o.call(arguments,1),u=0,e=f.length,i,r;u<e;u++)for(i in f[u])r=f[u][i],f[u].hasOwnProperty(i)&&r!==undefined&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var s=typeof u=="string",e=o.call(arguments,1),f=this;return s?this.length||u!=="instance"?this.each(function(){var i,o=n.data(this,r);return u==="instance"?(f=o,!1):o?!n.isFunction(o[u])||u.charAt(0)==="_"?n.error("no such method '"+u+"' for "+t+" widget instance"):(i=o[u].apply(o,e),i!==o&&i!==undefined?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=undefined:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=l++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return n==="classes"&&this._setOptionClasses(t),this.options[n]=t,n==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)(r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length)&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function u(u,f){for(var o,e=0;e<u.length;e++)o=r.classesElementLookup[u[e]]||n(),o=t.add?n(n.unique(o.get().concat(t.element.get()))):n(o.not(t.element).get()),r.classesElementLookup[u[e]]=o,i.push(u[e]),f&&t.classes[u[e]]&&i.push(t.classes[u[e]])}var i=[],r=this;return t=n.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&u(t.keys.match(/\S+/g)||[],!0),t.extra&&u(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){n.inArray(t.target,u)!==-1&&(i.classesElementLookup[r]=n(u.not(t.target).get()))})},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){r=typeof r=="boolean"?r:i;var u=typeof n=="string"||n===null,f={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r};return f.element.toggleClass(this._classes(f),r),this},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];if(c)f.on(h,c,o);else i.on(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i).off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});k=n.widget;
/*!
     * jQuery UI Position 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     *
     * http://api.jqueryui.com/position/
     */
(function(){function c(n,t,i){return[parseFloat(n[0])*(h.test(n[0])?t/100:1),parseFloat(n[1])*(h.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function a(t){var i=t[0];return i.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var u,i=Math.max,t=Math.abs,f=/left|center|right/,e=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,l=n.fn.position;n.position={scrollbarWidth:function(){if(u!==undefined)return u;var r,i,t=n("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]),u=!!i[0]&&i[0].nodeType===9,f=!r&&!u;return{element:i,isWindow:r,isDocument:u,offset:f?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return l.apply(this,arguments);u=n.extend({},u);var w,h,v,p,y,k,d=n(u.of),nt=n.position.getWithinInfo(u.within),tt=n.position.getScrollInfo(nt),b=(u.collision||"flip").split(" "),g={};return k=a(d),d[0].preventDefault&&(u.at="left top"),h=k.width,v=k.height,p=k.offset,y=n.extend({},p),n.each(["my","at"],function(){var n=(u[this]||"").split(" "),t,i;n.length===1&&(n=f.test(n[0])?n.concat(["center"]):e.test(n[0])?["center"].concat(n):["center","center"]);n[0]=f.test(n[0])?n[0]:"center";n[1]=e.test(n[1])?n[1]:"center";t=o.exec(n[0]);i=o.exec(n[1]);g[this]=[t?t[0]:0,i?i[0]:0];u[this]=[s.exec(n[0])[0],s.exec(n[1])[0]]}),b.length===1&&(b[1]=b[0]),u.at[0]==="right"?y.left+=h:u.at[0]==="center"&&(y.left+=h/2),u.at[1]==="bottom"?y.top+=v:u.at[1]==="center"&&(y.top+=v/2),w=c(g.at,h,v),y.left+=w[0],y.top+=w[1],this.each(function(){var a,k,e=n(this),o=e.outerWidth(),s=e.outerHeight(),it=r(this,"marginLeft"),rt=r(this,"marginTop"),ut=o+it+r(this,"marginRight")+tt.width,ft=s+rt+r(this,"marginBottom")+tt.height,f=n.extend({},y),l=c(g.my,e.outerWidth(),e.outerHeight());u.my[0]==="right"?f.left-=o:u.my[0]==="center"&&(f.left-=o/2);u.my[1]==="bottom"?f.top-=s:u.my[1]==="center"&&(f.top-=s/2);f.left+=l[0];f.top+=l[1];a={marginLeft:it,marginTop:rt};n.each(["left","top"],function(t,i){n.ui.position[b[t]]&&n.ui.position[b[t]][i](f,{targetWidth:h,targetHeight:v,elemWidth:o,elemHeight:s,collisionPosition:a,collisionWidth:ut,collisionHeight:ft,offset:[w[0]+l[0],w[1]+l[1]],my:u.my,at:u.at,within:nt,elem:e})});u.using&&(k=function(n){var r=p.left-f.left,a=r+h-o,c=p.top-f.top,y=c+v-s,l={target:{element:d,left:p.left,top:p.top,width:h,height:v},element:{element:e,left:f.left,top:f.top,width:o,height:s},horizontal:a<0?"left":r>0?"right":"center",vertical:y<0?"top":c>0?"bottom":"middle"};h<o&&t(r+a)<h&&(l.horizontal="center");v<s&&t(c+y)<v&&(l.vertical="middle");l.important=i(t(r),t(a))>i(t(c),t(y))?"horizontal":"vertical";u.using.call(this,n,l)});e.offset(n.extend(f,{using:k}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,r=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?r>0&&f<=0?(h=n.left+r+t.collisionWidth-o-u,n.left+=r-h):n.left=f>0&&r<=0?u:r>f?u+o-t.collisionWidth:u:r>0?n.left+=r:f>0?n.left-=f:n.left=i(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,r=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?r>0&&f<=0?(h=n.top+r+t.collisionHeight-e-u,n.top+=r-h):n.top=f>0&&r<=0?u:r>f?u+e-t.collisionHeight:u:r>0?n.top+=r:f>0?n.top-=f:n.top=i(n.top-s,n.top)}},flip:{left:function(n,i){var r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-o,v=l+i.collisionWidth-c-o,u=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,f=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,e=-2*i.offset[0],s,h;a<0?(s=n.left+u+f+e+i.collisionWidth-c-y,(s<0||s<t(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-i.collisionPosition.marginLeft+u+f+e-o,(h>0||t(h)<v)&&(n.left+=u+f+e))},top:function(n,i){var r=i.within,y=r.offset.top+r.scrollTop,c=r.height,o=r.isWindow?r.scrollTop:r.offset.top,l=n.top-i.collisionPosition.marginTop,a=l-o,v=l+i.collisionHeight-c-o,p=i.my[1]==="top",u=p?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,f=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,e=-2*i.offset[1],s,h;a<0?(h=n.top+u+f+e+i.collisionHeight-c-y,(h<0||h<t(a))&&(n.top+=u+f+e)):v>0&&(s=n.top-i.collisionPosition.marginTop+u+f+e-o,(s>0||t(s)<v)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}}})();d=n.ui.position;
/*!
     * jQuery UI :data 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
g=n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});
/*!
     * jQuery UI Disable Selection 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
nt=n.fn.extend({disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});
/*!
     * jQuery UI Effects 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
var u="ui-effects-",s="ui-effects-style",h="ui-effects-animated",a=n;n.effects={effect:{}};
/*!
     * jQuery Color Animations v2.1.2
     * https://github.com/jquery/jquery-color
     *
     * Copyright 2014 jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     *
     * Date: Wed Jan 16 08:47:09 2013 -0600
     */
(function(n,t){function e(n,t,i){var r=s[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:r.max<n?r.max:n}function l(t){var e=i(),o=e._rgba=[];return(t=t.toLowerCase(),r(v,function(n,i){var r,s=i.re.exec(t),h=s&&i.parse(s),f=i.space||"rgba";if(h)return r=e[f](h),e[u[f].cache]=r[u[f].cache],o=e._rgba=r._rgba,!1}),o.length)?(o.join()==="0,0,0,0"&&n.extend(o,f.transparent),e):f[t]}function o(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}var a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=i.support={},c=n("<p>")[0],f,r=n.each;c.style.cssText="background-color:rgba(1,1,1,.5)";h.rgba=c.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,s,h,c){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(s),s=t);var a=this,v=n.type(o),y=this._rgba=[];return(s!==t&&(o=[o,s,h,c],v="array"),v==="string")?this.parse(l(o)||f._default):v==="array"?(r(u.rgba.props,function(n,t){y[t.idx]=e(o[t.idx],t)}),this):v==="object"?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if(n==="alpha"||o[n]==null)return;a[u]=i.to(a._rgba)}a[u][t.idx]=e(o[n],t,!0)});a[u]&&n.inArray(null,a[u].slice(0,3))<0&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):void 0},is:function(n){var e=i(n),t=!0,f=this;return r(u,function(n,i){var o,u=e[i.cache];return u&&(o=f[i.cache]||i.to&&i.to(f._rgba)||[],r(i.props,function(n,i){if(u[i.idx]!=null)return t=u[i.idx]===o[i.idx]})),t}),t},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var f=i(n),c=f._space(),o=u[c],l=this.alpha()===0?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),h=a.slice();return f=f[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=f[c],o=s[i.type]||{};u!==null&&(r===null?h[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),h[c]=e((u-r)*t+r,i)))}),this[c](h)},blend:function(t){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return n==null?t>2?1:0:n});return t[3]===1&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return t[3]===1&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(r*255)),"#"+n.map(i,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(o(f,i,r+1/3)*255),Math.round(o(f,i,r)*255),Math.round(o(f,i,r-1/3)*255),e]};r(u,function(u,f){var s=f.props,o=f.cache,h=f.to,c=f.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v=a==="array"||a==="object"?u:arguments,f=this[o].slice();return r(s,function(n,t){var i=v[a==="object"?n:t.idx];i==null&&(i=f[t.idx]);f[t.idx]=e(i,t)}),c?(l=i(c(f)),l[o]=f,l):i(f)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f=n.type(i),h=t==="alpha"?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx],e;return f==="undefined"?s:(f==="function"&&(i=i.call(this,s),f=n.type(i)),i==null&&r.empty)?this:(f==="string"&&(e=a.exec(i),e&&(i=s+parseFloat(e[2])*(e[1]==="+"?1:-1))),o[r.idx]=i,this[h](o))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if(u!=="transparent"&&(n.type(u)!=="string"||(o=l(u)))){if(u=i(o||u),!h.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?t.parentNode:t;(e===""||e==="transparent")&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(s){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(s){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};f=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(a),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],typeof i[r]=="string"&&(f[n.camelCase(r)]=i[r]);else for(r in i)typeof i[r]=="string"&&(f[r]=i[r]);return f}function u(t,i){var e={},u,f;for(u in i)f=i[u],t[u]!==f&&(r[u]||(n.fx.step[u]||!isNaN(parseFloat(f)))&&(e[u]=f));return e}var i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(a.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(r,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var e=n(this),h=e.attr("class")||"",o,f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(i,function(n,t){r[t]&&e[t+"Class"](r[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=u(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return typeof r=="boolean"||r===undefined?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},i==null&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:n.isFunction(t)?!0:typeof t=="object"&&!t.effect?!0:!1}function r(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:i[2]==="auto"?r:parseFloat(i[2]),bottom:i[3]==="auto"?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.filters&&n.expr.filters.animated&&(n.expr.filters.animated=function(t){return function(i){return!!n(i).data(h)||t(i)}}(n.expr.filters.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;i<r;i++)t[i]!==null&&n.data(u+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,f=t.length;i<f;i++)t[i]!==null&&(r=n.data(u+t[i]),n.css(t[i],r))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),t.css("position")==="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.12.1",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(t===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=i!=="horizontal"?(t||100)/100:1,u=i!=="vertical"?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(s,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(s)||"";n.removeData(s)},mode:function(n,t){var i=n.is(":hidden");return t==="toggle"&&(t=i?"show":"hide"),(i?t==="hide":t==="show")&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),f=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(u+"placeholder",i)),t.css({position:r,left:f.left,top:f.top}),i},removePlaceholder:function(n){var t=u+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function a(t){function l(){o.removeData(h);n.effects.cleanUp(o);i.mode==="hide"&&o.hide();s()}function s(){n.isFunction(f)&&f.call(o[0]);n.isFunction(t)&&t()}var o=n(this);i.mode=c.shift();n.uiBackCompat===!1||u?i.mode==="none"?(o[r](),s()):e.call(o[0],i,l):(o.is(":hidden")?r==="hide":r==="show")?(o[r](),s()):e.call(o[0],i,s)}var i=t.apply(this,arguments),e=n.effects.effect[i.effect],u=e.mode,o=i.queue,s=o||"fx",f=i.complete,r=i.mode,c=[],l=function(t){var f=n(this),i=n.effects.mode(f,r)||u;f.data(h,!0);c.push(i);u&&(i==="show"||i===u&&i==="hide")&&f.show();u&&i==="none"||n.effects.saveStyle(f);n.isFunction(t)&&t()};return n.fx.off||!e?r?this[r](i.duration,f):this.each(function(){f&&f.call(this)}):o===!1?this.each(l).each(a):this.queue(s,l).queue(s,a)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||typeof r=="boolean")return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();n.isFunction(i)&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),typeof t.end=="string"&&(t.end=r(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}();c=n.effects;
/*!
     * jQuery UI Effects Blind 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
tt=n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];t.mode==="show"&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Bounce 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
it=n.effects.define("bounce",function(t,i){var e,o,a,u=n(this),p=t.mode,s=p==="hide",w=p==="show",h=t.direction||"up",r=t.distance,v=t.times||5,b=v*2+(w||s?1:0),c=t.duration/b,l=t.easing,f=h==="up"||h==="down"?"top":"left",y=h==="up"||h==="left",k=0,d=u.queue().length;for(n.effects.createPlaceholder(u),a=u.css(f),r||(r=u[f==="top"?"outerHeight":"outerWidth"]()/3),w&&(o={opacity:1},o[f]=a,u.css("opacity",0).css(f,y?-r*2:r*2).animate(o,c,l)),s&&(r=r/Math.pow(2,v-1)),o={},o[f]=a;k<v;k++)e={},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l).animate(o,c,l),r=s?r*2:r/2;s&&(e={opacity:0},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l));u.queue(i);n.effects.unshift(u,d,b+1)});
/*!
     * jQuery UI Effects Clip 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
rt=n.effects.define("clip","hide",function(t,i){var r,u={},f=n(this),e=t.direction||"vertical",o=e==="both",s=o||e==="horizontal",h=o||e==="vertical";r=f.cssClip();u.clip={top:h?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:h?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(f);t.mode==="show"&&(f.cssClip(u.clip),u.clip=r);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Drop 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ut=n.effects.define("drop","hide",function(t,i){var e,u=n(this),h=t.mode,c=h==="show",f=t.direction||"left",o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left"?"-=":"+=",l=s==="+="?"-=":"+=",r={opacity:0};n.effects.createPlaceholder(u);e=t.distance||u[o==="top"?"outerHeight":"outerWidth"](!0)/2;r[o]=s+e;c&&(u.css(r),r[o]=l+e,r.opacity=1);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Explode 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ft=n.effects.define("explode","hide",function(t,i){function k(){p.push(this);p.length===e*c&&d()}function d(){o.css({visibility:"visible"});n(p).remove();i()}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),b=t.mode,f=b==="show",w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;r<e;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;u<c;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,k)});
/*!
     * jQuery UI Effects Fade 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
et=n.effects.define("fade","toggle",function(t,i){var r=t.mode==="show";n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Fold 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ot=n.effects.define("fold","hide",function(t,i){var u=n(this),l=t.mode,v=l==="show",y=l==="hide",o=t.size||15,a=/([0-9]+)%/.exec(o),p=!!t.horizFirst,f=p?["right","bottom"]:["bottom","right"],s=t.duration/2,h=n.effects.createPlaceholder(u),e=u.cssClip(),c={clip:n.extend({},e)},r={clip:n.extend({},e)},w=[e[f[0]],e[f[1]]],b=u.queue().length;a&&(o=parseInt(a[1],10)/100*w[y?0:1]);c.clip[f[0]]=o;r.clip[f[0]]=o;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),h&&h.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){h&&h.animate(n.effects.clipToBox(c),s,t.easing).animate(n.effects.clipToBox(r),s,t.easing);i()}).animate(c,s,t.easing).animate(r,s,t.easing).queue(i);n.effects.unshift(u,b,4)});
/*!
     * jQuery UI Effects Highlight 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
st=n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};t.mode==="hide"&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Size 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ht=n.effects.define("size",function(t,i){var l,r,p,u=n(this),v=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=t.mode,y=w!=="effect",c=t.scale||"both",b=t.origin||["middle","center"],k=u.css("position"),a=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);w==="show"&&(p=f,f=e,e=p);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};(c==="box"||c==="both")&&(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,s,r.from.y,f),e=n.effects.setTransition(u,s,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,h,r.from.x,f),e=n.effects.setTransition(u,h,r.to.x,e)));(c==="content"||c==="both")&&r.from.y!==r.to.y&&(f=n.effects.setTransition(u,v,r.from.y,f),e=n.effects.setTransition(u,v,r.to.y,e));b&&(l=n.effects.getBaseline(b,o),f.top=(o.outerHeight-f.outerHeight)*l.y+a.top,f.left=(o.outerWidth-f.outerWidth)*l.x+a.left,e.top=(o.outerHeight-e.outerHeight)*l.y+a.top,e.left=(o.outerWidth-e.outerWidth)*l.x+a.left);u.css(f);(c==="content"||c==="both")&&(s=s.concat(["marginTop","marginBottom"]).concat(v),h=h.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var i=n(this),u=n.effects.scaledDimensions(i),f={height:u.height*r.from.y,width:u.width*r.from.x,outerHeight:u.outerHeight*r.from.y,outerWidth:u.outerWidth*r.from.x},e={height:u.height*r.to.y,width:u.width*r.to.x,outerHeight:u.height*r.to.y,outerWidth:u.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(i,s,r.from.y,f),e=n.effects.setTransition(i,s,r.to.y,e));r.from.x!==r.to.x&&(f=n.effects.setTransition(i,h,r.from.x,f),e=n.effects.setTransition(i,h,r.to.x,e));y&&n.effects.saveStyle(i);i.css(f);i.animate(e,t.duration,t.easing,function(){y&&n.effects.restoreStyle(i)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();e.opacity===0&&u.css("opacity",f.opacity);y||(u.css("position",k==="static"?"relative":k).offset(t),n.effects.saveStyle(u));i()}})});
/*!
     * jQuery UI Effects Scale 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ct=n.effects.define("scale",function(t,i){var u=n(this),f=t.mode,e=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:f!=="effect"?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,e,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});
/*!
     * jQuery UI Effects Puff 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
lt=n.effects.define("puff","hide",function(t,i){var r=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,r,i)});
/*!
     * jQuery UI Effects Pulsate 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
at=n.effects.define("pulsate","show",function(t,i){var r=n(this),e=t.mode,o=e==="show",c=e==="hide",l=o||c,f=(t.times||5)*2+(l?1:0),s=t.duration/f,u=0,h=1,a=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1);h<f;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,a,f+1)});
/*!
     * jQuery UI Effects Shake 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
vt=n.effects.define("shake",function(t,i){var l=1,r=n(this),f=t.direction||"left",e=t.distance||20,a=t.times||3,v=a*2+1,u=Math.round(t.duration/v),o=f==="up"||f==="down"?"top":"left",s=f==="up"||f==="left",h={},c={},y={},p=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+e*2,y[o]=(s?"-=":"+=")+e*2,r.animate(h,u,t.easing);l<a;l++)r.animate(c,u,t.easing).animate(y,u,t.easing);r.animate(c,u,t.easing).animate(h,u/2,t.easing).queue(i);n.effects.unshift(r,p,v+1)});
/*!
     * jQuery UI Effects Slide 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
yt=n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",l=f==="up"||f==="left",a=t.distance||u[e==="top"?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];c==="show"&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});
/*!
     * jQuery UI Effects Transfer 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.uiBackCompat!==!1&&(c=n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}));pt=c;
/*!
     * jQuery UI Focusable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.ui.focusable=function(t,i){var u,f,e,r,o,s=t.nodeName.toLowerCase();return"area"===s?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap='#"+f+"']"),e.length>0&&e.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(r=!t.disabled,r&&(o=n(t).closest("fieldset")[0],o&&(r=!o.disabled))):r="a"===s?t.href||i:i,r&&n(t).is(":visible")&&wt(n(t)))};n.extend(n.expr[":"],{focusable:function(t){return n.ui.focusable(t,n.attr(t,"tabindex")!=null)}});bt=n.ui.focusable;kt=n.fn.form=function(){return typeof this[0].form=="string"?this.closest("form"):n(this[0].form)};
/*!
     * jQuery UI Form Reset Mixin 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
dt=n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var n=this.form.data("ui-form-reset-instances")||[];if(!n.length)this.form.on("reset.ui-form-reset",this._formResetHandler);n.push(this);this.form.data("ui-form-reset-instances",n)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(n.inArray(this,t),1);t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};
/*!
     * jQuery UI Support for jQuery core 1.7.x 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     *
     */
n.fn.jquery.substring(0,3)==="1.7"&&(n.each(["Width","Height"],function(t,i){function f(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e=i==="Width"?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),u={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return t===undefined?u["inner"+i].call(this):this.each(function(){n(this).css(r,f(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return typeof t!="number"?u["outer"+i].call(this,t):this.each(function(){n(this).css(r,f(this,t,!0,e)+"px")})}}),n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});
/*!
     * jQuery UI Keycode 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
gt=n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};ni=n.ui.escapeSelector=function(){var n=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(n,"\\$1")}}();
/*!
     * jQuery UI Labels 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ti=n.fn.labels=function(){var t,r,u,i,f;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),u=this.attr("id"),u&&(t=this.eq(0).parents().last(),f=t.add(t.length?t.siblings():this.siblings()),r="label[for='"+n.ui.escapeSelector(u)+"']",i=i.add(f.find(r).addBack(r))),this.pushStack(i))};
/*!
     * jQuery UI Scroll Parent 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ii=n.fn.scrollParent=function(t){var i=this.css("position"),u=i==="absolute",f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&t.css("position")==="static"?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return i==="fixed"||!r.length?n(this[0].ownerDocument||document):r};
/*!
     * jQuery UI Tabbable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ri=n.extend(n.expr[":"],{tabbable:function(t){var i=n.attr(t,"tabindex"),r=i!=null;return(!r||i>=0)&&n.ui.focusable(t,r)}});
/*!
     * jQuery UI Unique ID 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ui=n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});
/*!
     * jQuery UI Accordion 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
fi=n.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||t.active!==!1&&t.active!=null||(t.active=0);this._processPanels();t.active<0&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var i,r,t=this.options.icons;t&&(i=n("<span>"),this._addClass(i,"ui-accordion-header-icon","ui-icon "+t.header),i.prependTo(this.headers),r=this.active.children(".ui-accordion-header-icon"),this._removeClass(r,t.header)._addClass(r,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t));this._super(n,t);n!=="collapsible"||t||this.options.active!==!1||this._activate(0);n==="icons"&&(this._destroyIcons(),t&&this._createIcons())},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();(t.active!==!1||t.collapsible!==!0)&&this.headers.length?t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active):(t.active=!1,this.active=n());this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers=this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);r==="fill"?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var e,o,i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],s=f&&i.collapsible,c=s?n():r.next(),l=u.next(),h={oldHeader:u,oldPanel:l,newHeader:s?n():r,newPanel:c};(t.preventDefault(),(!f||i.collapsible)&&this._trigger("beforeActivate",t,h)!==!1)&&(i.active=s?!1:this.headers.index(r),this.active=f?n():r,this._toggle(h),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(e=u.children(".ui-accordion-header-icon"),this._removeClass(e,null,i.icons.activeHeader)._addClass(e,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return parseInt(n(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.css("box-sizing"),a=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=a&&e.down||e,s=function(){c._toggleComplete(i)};if(typeof f=="number"&&(u=f),typeof f=="string"&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,!t.length)return n.animate(this.showProps,u,r,s);if(!n.length)return t.animate(this.hideProps,u,r,s);h=n.show().outerHeight();t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}});n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);i.prop!=="height"?l==="content-box"&&(o+=i.now):c.options.heightStyle!=="content"&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}})},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});ei=n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t||(t=n.body),t.nodeName||(t=n.body),t};
/*!
     * jQuery UI Menu 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
oi=n.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass("ui-menu","ui-widget ui-widget-content");this._on({"mousedown .ui-menu-item":function(n){n.preventDefault()},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget);r[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){var i=!n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n);this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show();i.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,u,r,f,e=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=!1;u=this.previousFilter||"";f=!1;r=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===u?f=!0:r=u+r;i=this._filterMenuItems(r);i=f&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}e&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var u,t,f,i,e,r=this,s=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);f=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),u=n("<span>").data("ui-menu-submenu-caret",!0);r._addClass(u,"ui-menu-icon","ui-icon "+s);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});this._addClass(f,"ui-menu","ui-widget ui-widget-content ui-front");u=o.add(this.element);t=u.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);r._isDivider(t)&&r._addClass(t,"ui-menu-divider","ui-widget-content")});i=t.not(".ui-menu-item, .ui-menu-divider");e=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper");t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){if(n==="icons"){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",String(n));this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i,r,u;this.blur(n,n&&n.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children(".ui-menu-item-wrapper");this._addClass(r,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));u=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(u,null,"ui-state-active");n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0));r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[t]());this.focus(i,r)},nextPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r-u<0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(n.trim(n(this).children(".ui-menu-item-wrapper").text()))})}});
/*!
     * jQuery UI Autocomplete 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f||!e&&this._isContentEditable(this.element);this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0;r=!0;i=!0;return}t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,i){var r,u;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}u=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value);r=i.item.attr("aria-label")||u.value;r&&n.trim(r).length&&(this.liveRegion.children().hide(),n("<div>").text(r).appendTo(this.liveRegion))},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var t=++this.requestIndex;return n.proxy(function(n){t===this.requestIndex&&this.__response(n);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this.isMultiLine||this._value(this.term);this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return t==="inherit"?this._isContentEditable(n.parent()):t==="true"}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),n("<div>").text(i).appendTo(this.liveRegion))}});si=n.ui.autocomplete;
/*!
     * jQuery UI Controlgroup 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
v=/ui-corner-([a-z]){2,6}/g;hi=n.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u){if(r==="controlgroupLabel"){f=t.element.find(u);f.each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")});t._addClass(f,null,"ui-widget ui-widget-content ui-state-default");i=i.concat(f.get());return}n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),f=u[r]("instance"),o=n.widget.extend({},e),s;r==="button"&&u.parent(".ui-spinner").length||(f||(f=u[r]()[r]("instance")),f&&(o.classes=t._resolveClassesValues(o.classes,f)),u[r](o),s=u[r]("widget"),n.data(s[0],"ui-controlgroup-data",f?f:u[r]("instance")),i.push(s[0]))}))}});this.childWidgets=n(n.unique(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var r=n(this),i=r.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,i)},_buildSimpleOptions:function(n,t){var i=this.options.direction==="vertical",r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){var t=this._buildSimpleOptions(n,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t=this.options.direction==="vertical";return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(u){var f=i.options.classes[u]||"";f=n.trim(f.replace(v,""));r[u]=(f+" "+t[u]).replace(/\s+/g," ")}),r},_setOption:function(n,t){if(n==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(n,t),n==="disabled"){this._callChildMethod(t?"disable":"enable");return}this.refresh()},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;this.options.onlyVisible&&(t=t.filter(":visible"));t.length&&(n.each(["first","last"],function(n,r){var u=t[r]().data("ui-controlgroup-data"),f;u&&i["_"+u.widgetName+"Options"]?(f=i["_"+u.widgetName+"Options"](t.length===1?"only":r),f.classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});
/*!
     * jQuery UI Checkboxradio 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,u=this,r=this._super()||{};return this._readType(),i=this.element.labels(),this.label=n(i[i.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){u.originalLabel+=this.nodeType===3?n(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),t=this.element[0].disabled,t!=null&&(r.disabled=t),r},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();this.options.disabled==null&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover"));this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;t==="input"&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,i=this.element[0].name,r="input[name='"+n.ui.escapeSelector(i)+"']";return i?(t=this.form.length?n(this.form[0].elements).filter(r):n(r).filter(function(){return n(this).form().length===0}),t.not(this.element)):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);this.type==="radio"&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if(n!=="label"||t){if(this._super(n,t),n==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",t);this.element[0].disabled=t;return}this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));this.iconSpace&&(n=n.not(this.iconSpace[0]));n.remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);this.options.label!==null&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);ci=n.ui.checkboxradio;
/*!
     * jQuery UI Button 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var n,t=this._super()||{};return this.isInput=this.element.is("input"),n=this.element[0].disabled,n!=null&&(t.disabled=n),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u=t!=="iconPosition",r=u?this.options.iconPosition:i,f=r==="top"||r==="bottom";this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=n.showLabel===undefined?this.options.showLabel:n.showLabel,i=n.icon===undefined?this.options.icon:n.icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){n==="icon"&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));n==="iconPosition"&&this._updateIcon(n,t);n==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());n==="label"&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);n==="disabled"&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon);this._super()},_setOption:function(n,t){if(n==="text"){this._super("showLabel",t);return}n==="showLabel"&&(this.options.text=t);n==="icon"&&(this.options.icons.primary=t);n==="icons"&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end")));this._superApply(arguments)}}),n.fn.button=function(t){return function(){return!this.length||this.length&&this[0].tagName!=="INPUT"||this.length&&this[0].tagName==="INPUT"&&this.attr("type")!=="checkbox"&&this.attr("type")!=="radio"?t.apply(this,arguments):(n.ui.checkboxradio||n.error("Checkboxradio widget missing"),arguments.length===0)?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments)}}(n.fn.button),n.fn.buttonset=function(){return(n.ui.controlgroup||n.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2])?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});li=n.ui.button;
/*!
     * jQuery UI Datepicker 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.extend(n.ui,{datepicker:{version:"1.12.1"}});n.extend(y.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return f(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?p(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);if(i.append=n([]),i.trigger=n([]),!r.hasClass(this.markerClassName)){this._attachments(r,i);r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp);this._autoSize(i);n.data(t,"datepicker",i);i.settings.disabled&&this._disableDatepicker(t)}},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");if(i.append&&i.append.remove(),e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),u==="focus"||u==="both")t.on("focus",this._showDatepicker);if(u==="button"||u==="both"){r=this._get(i,"buttonText");f=this._get(i,"buttonImage");i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r));t[o?"before":"after"](i.trigger);i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,u,e){var s,h,c,l,a,o=this._dialogInst;if(!o){this.uuid+=1;s="dp"+this.uuid;this._dialogInput=n("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.on("keydown",this._doKeyDown);n("body").append(this._dialogInput);o=this._dialogInst=this._newInst(this._dialogInput,!1);o.settings={};n.data(this._dialogInput[0],"datepicker",o)}return f(o.settings,u||{}),i=i&&i.constructor===Date?this._formatDate(o,i):i,this._dialogInput.val(i),this._pos=e?e.length?e:[e.pageX,e.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+l,c/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(i){var r,u=n(i),f=n.data(i,"datepicker");u.hasClass(this.markerClassName)&&(r=i.nodeName.toLowerCase(),n.removeData(i,"datepicker"),r==="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(r==="div"||r==="span")&&u.removeClass(this.markerClassName).empty(),t===f&&(t=null))},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),i==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(i==="div"||i==="span")&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var e,h,o,s,u=this._getInst(t);if(arguments.length===2&&typeof i=="string")return i==="defaults"?n.extend({},n.datepicker._defaults):u?i==="all"?n.extend({},u.settings):this._get(u,i):null;e=i||{};typeof i=="string"&&(e={},e[i]=r);u&&(this._curInst===u&&this._hideDatepicker(),h=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(u,"min"),s=this._getMinMaxDate(u,"max"),f(u.settings,e),o!==null&&e.dateFormat!==undefined&&e.minDate===undefined&&(u.settings.minDate=this._formatDate(u,o)),s!==null&&e.dateFormat!==undefined&&e.maxDate===undefined&&(u.settings.maxDate=this._formatDate(u,s)),"disabled"in e&&(e.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),u),this._autoSize(u),this._setDate(u,h),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,r,u,e,h;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(f(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")==="fixed",!r}),u={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),u=n.datepicker._checkOffset(i,u,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",ai(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i))}},_updateDatepicker:function(i){this.maxRows=4;t=i;i.dpDiv.empty().append(this._generateHTML(i));this._attachHandlers(i);var r,u=this._getNumberOfMonths(i),f=u[1],e=i.dpDiv.find("."+this._dayOverClass+" a");e.length>0&&w.apply(e.get(0));i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");f>1&&i.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");i.dpDiv[(u[0]!==1||u[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");i===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus");i.yearshtml&&(r=i.yearshtml,setTimeout(function(){r===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year:first").replaceWith(i.yearshtml);r=i.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;i&&(!t||i===n.data(t,"datepicker"))&&this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r==="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).val(u))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r=n==="@"?14:n==="!"?20:n==="y"&&u?4:n==="o"?3:2,e=n==="y"?r:1,o=new RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;o<t.length;o++)if(w)t.charAt(o)!=="'"||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return n.settings[t]!==undefined?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,o,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),f=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),e=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=e[0]!==1||e[1]!==1,ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-e[0]*e[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(f?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(f?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",y=0;y<e[0];y++){for(ct="",this.maxRows=4,p=0;p<e[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",e[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(f?"right":"left");break;case e[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(f?"left":"right");break;default:u+=" ui-datepicker-group-middle";l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&y===0?f?ut:rt:"")+(/all|right/.test(l)&&y===0?f?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",o=0;o<7;o++)vt=(o+c)%7,at+="<th scope='col'"+((o+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",o=0;o<7;o++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((o+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+((!a||g)&&d[2]?" title='"+d[2].replace(/'/g,"&#39;")+"'":"")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++;t>11&&(t=0,r++);u+="<\/tbody><\/table>"+(ti?"<\/div>"+(e[0]>0&&p===e[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.selectedYear+(i==="Y"?t:0),f=n.selectedMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;if(!n.datepicker.initialized){n(document).on("mousedown",n.datepicker._checkExternalClick);n.datepicker.initialized=!0}n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new y;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.12.1";vi=n.datepicker;yi=n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
     * jQuery UI Mouse 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
r=!1;n(document).on("mouseup",function(){r=!1});var er=n.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!r){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,u=t.which===1,f=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;if(!u||f||!this._mouseCapture(t))return!0;if(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))return t.preventDefault(),!0;!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(n){return i._mouseMove(n)};this._mouseUpDelegate=function(n){return i._mouseUp(n)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);return t.preventDefault(),r=!0,!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return((t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;r=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),or=n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}},sr=n.ui.safeBlur=function(t){t&&t.nodeName.toLowerCase()!=="body"&&n(t).trigger("blur")};
/*!
     * jQuery UI Draggable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.draggable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);n==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(this._blurActiveElement(t),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]),r=n(t.target);r.closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return n(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var r=this.options,u=n.isFunction(r.helper),i=u?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),u&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f,t,i,r=this.options,u=this.document[0];if(this.relativeContainer=null,!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)},_convertPositionTo:function(n,t){t||(t=this.position);var i=n==="absolute"?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),r.axis==="y"&&(e=this.originalPageX),r.axis==="x"&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])&&(f=!1),f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&i.scrollParentNotHidden[0].tagName!=="HTML"&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&e.tagName!=="HTML"?(u.axis&&u.axis==="x"||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&u.axis==="y"||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&u.axis==="x"||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&u.axis==="y"||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left-r.margins.left,a=c+r.snapElements[u].width,l=r.snapElements[u].top-r.margins.top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left));w=e||o||s||h;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left));!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=e||o||s||h||w}}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});pi=n.ui.draggable;
/*!
     * jQuery UI Resizable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.resizable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},_create:function(){var r,t=this.options,i=this;if(this._addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper' style='overflow: hidden;'><\/div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(r),this._proportionallyResize()),this._setupHandles(),t.autoHide)n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){this._super(n,t);switch(n){case"handles":this._removeHandles();this._setupHandles()}},_setupHandles:function(){var u=this.options,i,r,f,o,t,e=this;if(this.handles=u.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=n(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},r=0;r<f.length;r++)i=n.trim(f[r]),o="ui-resizable-"+i,t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:u.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.append(t);this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});u.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",e==="auto"?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return(this._updatePrevProperties(),!f)?!1:(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:Infinity,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:Infinity};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),u<t.maxWidth&&(t.maxWidth=u),e<t.maxHeight&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),r==="sw"&&(n.left=t.left+(i.width-n.width),n.top=null),r==="nw"&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];t<4;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div style='overflow:hidden;'><\/div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);t!=="resize"&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance"),i=t.options;n(i.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&i>=0&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");n.uiBackCompat!==!1&&typeof t.options.ghost=="string"&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,o=t.originalSize,s=t.originalPosition,c=t.axis,l=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,f=l[0]||1,e=l[1]||1,a=Math.round((y.width-o.width)/f)*f,v=Math.round((y.height-o.height)/e)*e,r=o.width+a,u=o.height+v,p=i.maxWidth&&i.maxWidth<r,w=i.maxHeight&&i.maxHeight<u,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=f);k&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=s.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=s.left-a):((u-e<=0||r-f<=0)&&(h=t._getPaddingPlusBorderDimensions(this)),u-e>0?(t.size.height=u,t.position.top=s.top-v):(u=e-h.height,t.size.height=u,t.position.top=s.top+o.height-u),r-f>0?(t.size.width=r,t.position.left=s.left-a):(r=f-h.width,t.size.width=r,t.position.left=s.left+o.width-r))}});wi=n.ui.resizable;
/*!
     * jQuery UI Dialog 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0;this.opener=n(n.ui.safeActiveElement(this.document[0]));this._size();this._position();this._createOverlay();this._moveToTop(null,!0);this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).trigger("focus")},_keepFocus:function(t){function i(){var t=n.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault();i.call(this);this._delay(i)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE){t.preventDefault();this.close(t);return}if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),u=i.filter(":last");t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}n.each(t,function(t,r){var u,f;r=n.isFunction(r)?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;f={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;typeof r.text=="boolean"&&delete r.text;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})});this._addClass(this.uiDialog,"ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,of:t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e=typeof u=="string"?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);i!==-1&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var f,u,r=this.uiDialog;t!=="disabled"&&(this._super(t,i),t==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),t==="buttons"&&this._createButtons(),t==="closeText"&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),t==="draggable"&&(f=r.is(":data(ui-draggable)"),f&&!i&&r.draggable("destroy"),!f&&i&&this._makeDraggable()),t==="position"&&this._position(),t==="resizable"&&(u=r.is(":data(ui-resizable)"),u&&!i&&r.resizable("destroy"),u&&typeof i=="string"&&r.resizable("option","handles",i),u||i===!1||this._makeResizable()),t==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none";n.height==="auto"?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1});this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){if(!t&&!this._allowInteraction(n)){n.preventDefault();var i=this._trackingInstances();i!=undefined&&i.length>0?i[0]._focusTabbable():this._off(this.document,"focusin")}}});this.overlay=n("<div>").appendTo(this._appendTo());this._addClass(this.overlay,null,"ui-widget-overlay ui-front");this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays"));this.overlay.remove();this.overlay=null}}});n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){n==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});bi=n.ui.dialog;
/*!
     * jQuery UI Droppable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,r=i.accept;this.isover=!1;this.isout=!0;this.accept=n.isFunction(r)?r:function(n){return n.is(r)};this.proportions=function(){if(arguments.length)t=arguments[0];else return t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(i.scope);i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;t<n.length;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if(t==="accept")this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if(t==="scope"){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!r||(r.currentItem||r.element)[0]===this.element[0]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&e(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return u=!0,!1}),u)?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});e=n.ui.intersect=function(){function n(n,t,i){return n>=t&&n<t+i}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return f<=o&&h<=l&&e<=s&&c<=a;case"intersect":return f<o+t.helperProportions.width/2&&h-t.helperProportions.width/2<l&&e<s+t.helperProportions.height/2&&c-t.helperProportions.height/2<a;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&s<=a||c>=e&&c<=a||s<e&&c>a)&&(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,o,f,s=e(t,this,this.options.tolerance,i),u=!s&&this.isover?"isout":s&&!this.isover?"isover":null;u&&(this.options.greedy&&(o=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===o}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.uiBackCompat!==!1&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});ki=n.ui.droppable;
/*!
     * jQuery UI Progressbar 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
di=n.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){if(n===undefined)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return n===undefined&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){n==="max"&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});
/*!
     * jQuery UI Selectable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
gi=n.widget("ui.selectable",n.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),u=i.offset(),r={left:u.left-t.elementPos.left,top:u.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;(this.opos=[t.pageX,t.pageY],this.elementPos=n(this.element[0]).offset(),this.options.disabled)||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return r>f&&(o=f,f=r,r=o),u>e&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,s.tolerance==="touch"?c=!(h.left>f||h.right<r||h.top>e||h.bottom<u):s.tolerance==="fit"&&(c=h.left>r&&h.right<f&&h.top>u&&h.bottom<e),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});
/*!
     * jQuery UI Selectmenu 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
nr=n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.focus();n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);this.options.width!==!1&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");t.focusIndex!=null&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var n,t=this.element.find("option");(this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length)&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length)&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),u+=":not(.ui-state-disabled)");r=n==="first"||n==="last"?i[n==="first"?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){if(n==="icons"){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(n,t);n==="appendTo"&&this.menuWrap.appendTo(this._appendTo());n==="width"&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;if(n===!1){this.button.css("width","");return}n===null&&(n=this.element.show().outerWidth(),this.element.hide());this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);
/*!
     * jQuery UI Slider 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
tr=n.widget("ui.slider",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),(t.range==="min"||t.range==="max")&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:t!==undefined?t:this.value()};return this._hasMultipleValues()&&(r.value=t!==undefined?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var u,r,f=this.value(),e=this.values();(this._hasMultipleValues()&&(r=this.values(t?0:1),f=this.values(t),this.options.values.length===2&&this.options.range===!0&&(i=t===0?Math.min(r,i):Math.max(r,i)),e[t]=i),i!==f)&&(u=this._trigger("slide",n,this._uiHash(t,i,e)),u!==!1)&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i);this._refreshValue();this._change(null,t);return}if(arguments.length)if(n.isArray(arguments[0])){for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()}else return this._hasMultipleValues()?this._values(t):this.value();else return this._values()},_setOption:function(t,i){var r,u=0;t==="range"&&this.options.range===!0&&(i==="min"?(this.options.value=this._values(0),this.options.values=null):i==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));n.isArray(this.options.values)&&(u=this.options.values.length);this._super(t,i);switch(t){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(i);this.handles.css(i==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=u-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],this._trimAlignValue(r);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step,r=Math.round((n-i)/t)*t;n=r+i;n>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){n==="vertical"&&this.range.css({width:"",left:""});n==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o[r.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),e=this._start(t,f),e===!1))return}u=this.options.step;r=this._hasMultipleValues()?i=this.values(f):i=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});
/*!
     * jQuery UI Sortable 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
ir=n.widget("ui.sortable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return n>=t&&n<t+i},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);n==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&u.cursor!=="auto"&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-this.document.scrollTop()<i.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-i.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<i.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+i.scrollSpeed)),t.pageX-this.document.scrollLeft()<i.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-i.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<i.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;e>=0;e--)if((u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o)&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[o===1?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],f):!0)){if(this.direction=o===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(u))this._rearrange(t,u);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft));r&&r!=="y"||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var t,i,r=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u;return f?(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?i==="right"||t==="down"?2:1:t&&(t==="down"?2:1)):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?i==="right"&&u||i==="left"&&!u:t&&(t==="down"&&r||t==="up"&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;u<l;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1;this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)(r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0])||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",r||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),u==="tbody"?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):u==="tr"?t._createTrPlaceholder(t.currentItem,i):u==="img"&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(this.containers.length===1)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"pageX":"pageY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),Math.abs(t[h]-o)<c&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i]){this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||n(r.appendTo!=="parent"?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!=="hidden",this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});
/*!
     * jQuery UI Spinner 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this.value()!==""&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);u!=null&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",n)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100);n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var t=this.element[0]===n.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;(i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur;r.call(this)}),this._start(t)!==!1)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return!this.spinning&&this._trigger("start",n)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var u,i,r;if(n==="culture"||n==="numberFormat"){u=this._parse(this.element.val());this.options[n]=t;this.element.val(this._format(u));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t));n==="icons"&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:i(function(n){this._super(n)}),_parse:function(n){return typeof n=="string"&&n!==""&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),n===""||isNaN(n)?null:n},_format:function(n){return n===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return n===null?!1:n===this._adjustValue(n)},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:i(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:i(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:i(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:i(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());i(this._value).call(this,n)},widget:function(){return this.uiSpinner}});n.uiBackCompat!==!1&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});rr=n.ui.spinner;
/*!
     * jQuery UI Tabs 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:t.preventDefault();clearTimeout(this.activating);this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(i===this.options.active?!1:i);return;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){if(n==="active"){this._activate(t);return}this._super(n,t);n==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0));n==="event"&&this._setupEvents(t);n==="heightStyle"&&this._setupHeightStyle(t)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({role:"presentation",tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,u,r;for(n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;u=this.tabs[r];r++)i=n(u),t===!0||n.inArray(r,t)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):t==="auto"&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};(t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1)||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+n.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(t===undefined?i=!1:(t=this._getIndex(t),i=n.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(t===undefined)i=!0;else{if(t=this._getIndex(t),n.inArray(t,i)!==-1)return;i=n.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var r=this,u=this.tabs.eq(t),e=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f},s=function(n,t){t==="abort"&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);s(u,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.uiBackCompat!==!1&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});ur=n.ui.tabs;
/*!
     * jQuery UI Tooltip 1.12.1
     * http://jqueryui.com
     *
     * Copyright jQuery Foundation and other contributors
     * Released under the MIT license.
     * http://jquery.org/license
     */
n.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title")||"";return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i);t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);r!==-1&&i.splice(r,1);t.removeData("ui-tooltip-id");i=n.trim(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var r,i=this.options.content,u=this,f=t?t.type:null;if(typeof i=="string"||i.nodeType||i.jquery)return this._open(t,n,i);r=i.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})});r&&this._open(t,n,r)},_open:function(t,i,r){function s(n){(o.of=n,u.is(":hidden"))||u.position(o)}var f,u,h,e,o=n.extend({},this.options.position);if(r){if(f=this._find(i),f){f.tooltip.find(".ui-tooltip-content").html(r);return}i.is("[title]")&&(t&&t.type==="mouseover"?i.attr("title",""):i.removeAttr("title"));f=this._tooltip(i);u=f.tooltip;this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();e=n("<div>").html(u.find(".ui-tooltip-content").html());e.removeAttr("name").find("[name]").removeAttr("name");e.removeAttr("id").find("[id]").removeAttr("id");e.appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):u.position(n.extend({of:i},this.options.position));u.hide();this._show(u,this.options.show);this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(s(o.of),clearInterval(h))},n.fx.interval));this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)});t&&t.type!=="mouseover"||(r.mouseleave="close");t&&t.type!=="focusin"||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);if(!r){i.removeData("ui-tooltip-open");return}(u=r.tooltip,r.closing)||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1))},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){var t=n.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0];t.close(f,!0);n("#"+i).remove();u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});n.uiBackCompat!==!1&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});fr=n.ui.tooltip});$.widget.bridge("uijQtooltip",$.ui.tooltip),function(n,t,i){typeof define=="function"&&define.amd?define(["jquery"],function(r){return i(r,n,t),r.mobile}):i(n.jQuery,n,t)}(this,document,function(n,t,i){
/*!
 * jQuery hashchange event - v1.3 - 7/21/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,n,t){function u(n){return n=n||location.href,"#"+n.replace(/^[^#]*#?(.*)$/,"$1")}var r="hashchange",f=i,e,s=$.event.special,h=f.documentMode,o="on"+r in n&&(h===t||h>7);$.fn[r]=function(n){return n?this.bind(r,n):this.trigger(r)};$.fn[r].delay=50;s[r]=$.extend(s[r],{setup:function(){if(o)return!1;$(e.start)},teardown:function(){if(o)return!1;$(e.stop)}});e=function(){function l(){var i=u(),t=a(s);i!==s?(c(s=i,t),$(n).trigger(r)):t!==s&&(location.href=location.href.replace(/#.*/,"")+t);e=setTimeout(l,$.fn[r].delay)}var i={},e,s=u(),h=function(n){return n},c=h,a=h;return i.start=function(){e||l()},i.stop=function(){e&&clearTimeout(e);e=t},!n.attachEvent||n.addEventListener||o||function(){var n,t;i.start=function(){n||(t=$.fn[r].src,t=t&&t+u(),n=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){t||c(u());l()}).attr("src",t||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{event.propertyName==="title"&&(n.document.title=f.title)}catch(t){}})};i.stop=h;a=function(){return u(n.location.href)};c=function(t,i){var u=n.document,e=$.fn[r].domain;t!==i&&(u.title=f.title,u.open(),e&&u.write('<script>document.domain="'+e+'"<\/script>'),u.close(),n.location.hash=t)}}(),i}()})(n,this),function(n){n.mobile={}}(n),function(n){n.extend(n.mobile,{version:"1.4.5",subPageUrlKey:"ui-page",hideUrlBar:!0,keepNative:":jqmData(role='none'), :jqmData(role='nojs')",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:0,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"a",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,buttonMarkup:{hoverDelay:200},dynamicBaseEnabled:!0,pageContainer:n(),allowCrossDomainPages:!1,dialogHashKey:"&ui-state=dialog"})}(n,this),function(n,t,i){var r={},u=n.find,f=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,e=/:jqmData\(([^)]*)\)/g;n.extend(n.mobile,{ns:"",getAttribute:function(t,i){var r;t=t.jquery?t[0]:t;t&&t.getAttribute&&(r=t.getAttribute("data-"+n.mobile.ns+i));try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:f.test(r)?JSON.parse(r):r}catch(u){}return r},nsNormalizeDict:r,nsNormalize:function(t){return r[t]||(r[t]=n.camelCase(n.mobile.ns+t))},closestPageData:function(n){return n.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page")}});n.fn.jqmData=function(t,r){var u;return typeof t!="undefined"&&(t&&(t=n.mobile.nsNormalize(t)),u=arguments.length<2||r===i?this.data(t):this.data(t,r)),u};n.jqmData=function(t,i,r){var u;return typeof i!="undefined"&&(u=n.data(t,i?n.mobile.nsNormalize(i):i,r)),u};n.fn.jqmRemoveData=function(t){return this.removeData(n.mobile.nsNormalize(t))};n.jqmRemoveData=function(t,i){return n.removeData(t,n.mobile.nsNormalize(i))};n.find=function(t,i,r,f){return t.indexOf(":jqmData")>-1&&(t=t.replace(e,"[data-"+(n.mobile.ns||"")+"$1]")),u.call(this,t,i,r,f)};n.extend(n.find,u)}(n,this);
/*!
 * jQuery UI Core c0ab71056b936627e8a7821f03c044aec6280a40
 * http://jqueryui.com
 *
 * Copyright 2013 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
(function(n,t){function r(t,i){var r,f,e,o=t.nodeName.toLowerCase();return"area"===o?(r=t.parentNode,f=r.name,!t.href||!f||r.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap=#"+f+"]")[0],!!e&&u(e)):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&u(t)}function u(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}var f=0,e=/^ui-id-\d+$/;n.ui=n.ui||{};n.extend(n.ui,{version:"c0ab71056b936627e8a7821f03c044aec6280a40",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({focus:function(t){return function(i,r){return typeof i=="number"?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(this[0].ownerDocument||i):t},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++f)})},removeUniqueId:function(){return this.each(function(){e.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return r(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),u=isNaN(i);return(u||i>=0)&&r(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.support.selectstart="onselectstart"in i.createElement("div");n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(r){if(r!==t)return this.css("zIndex",r);if(this.length)for(var u=n(this[0]),f,e;u.length&&u[0]!==i;){if(f=u.css("position"),(f==="absolute"||f==="relative"||f==="fixed")&&(e=parseInt(u.css("zIndex"),10),!isNaN(e)&&e!==0))return e;u=u.parent()}return 0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}}})(n),function(n,t){var r=function(t,i){var u=t.parent(),r=[],f=function(){var t=n(this),i=n.mobile.toolbar&&t.data("mobile-toolbar")?t.toolbar("option"):{position:t.attr("data-"+n.mobile.ns+"position"),updatePagePadding:t.attr("data-"+n.mobile.ns+"update-page-padding")!==!1};return!(i.position==="fixed"&&i.updatePagePadding===!0)},e=u.children(":jqmData(role='header')").filter(f),s=t.children(":jqmData(role='header')"),o=u.children(":jqmData(role='footer')").filter(f),h=t.children(":jqmData(role='footer')");return s.length===0&&e.length>0&&(r=r.concat(e.toArray())),h.length===0&&o.length>0&&(r=r.concat(o.toArray())),n.each(r,function(t,r){i-=n(r).outerHeight()}),Math.max(0,i)};n.extend(n.mobile,{window:n(t),document:n(i),keyCode:n.ui.keyCode,behaviors:{},silentScroll:function(i){n.type(i)!=="number"&&(i=n.mobile.defaultHomeScroll);n.event.special.scrollstart.enabled=!1;setTimeout(function(){t.scrollTo(0,i);n.mobile.document.trigger("silentscroll",{x:0,y:i})},20);setTimeout(function(){n.event.special.scrollstart.enabled=!0},150)},getClosestBaseUrl:function(t){var i=n(t).closest(".ui-page").jqmData("url"),r=n.mobile.path.documentBase.hrefNoHash;return n.mobile.dynamicBaseEnabled&&i&&n.mobile.path.isPath(i)||(i=r),n.mobile.path.makeUrlAbsolute(i,r)},removeActiveLinkClass:function(t){!n.mobile.activeClickedLink||n.mobile.activeClickedLink.closest("."+n.mobile.activePageClass).length&&!t||n.mobile.activeClickedLink.removeClass(n.mobile.activeBtnClass);n.mobile.activeClickedLink=null},getInheritedTheme:function(n,t){for(var i=n[0],u="",r,f;i;){if(r=i.className||"",r&&(f=/ui-(bar|body|overlay)-([a-z])\b/.exec(r))&&(u=f[2]))break;i=i.parentNode}return u||t||"a"},enhanceable:function(n){return this.haveParents(n,"enhance")},hijackable:function(n){return this.haveParents(n,"ajax")},haveParents:function(t,i){if(!n.mobile.ignoreContentEnabled)return t;for(var h=t.length,f=n(),r,o,e,s,u=0;u<h;u++){for(o=t.eq(u),e=!1,r=t[u];r;){if(s=r.getAttribute?r.getAttribute("data-"+n.mobile.ns+i):"",s==="false"){e=!0;break}r=r.parentNode}e||(f=f.add(o))}return f},getScreenHeight:function(){return t.innerHeight||n.mobile.window.height()},resetActivePageHeight:function(t){var i=n("."+n.mobile.activePageClass),u=i.height(),f=i.outerHeight(!0);t=r(i,typeof t=="number"?t:n.mobile.getScreenHeight());i.css("min-height","");i.height()<t&&i.css("min-height",t-(f-u))},loading:function(){var t=this.loading._widget||n(n.mobile.loader.prototype.defaultHtml).loader(),i=t.loader.apply(t,arguments);return this.loading._widget=t,i}});n.addDependents=function(t,i){var r=n(t),u=r.jqmData("dependents")||n();r.jqmData("dependents",n(u).add(i))};n.fn.extend({removeWithDependents:function(){n.removeWithDependents(this)},enhanceWithin:function(){var t,i={},r=n.mobile.page.prototype.keepNativeSelector(),u=this;n.mobile.nojs&&n.mobile.nojs(this);n.mobile.links&&n.mobile.links(this);n.mobile.degradeInputsWithin&&n.mobile.degradeInputsWithin(this);n.fn.buttonMarkup&&this.find(n.fn.buttonMarkup.initSelector).not(r).jqmEnhanceable().buttonMarkup();n.fn.fieldcontain&&this.find(":jqmData(role='fieldcontain')").not(r).jqmEnhanceable().fieldcontain();n.each(n.mobile.widgets,function(t,f){if(f.initSelector){var e=n.mobile.enhanceable(u.find(f.initSelector));e.length>0&&(e=e.not(r));e.length>0&&(i[f.prototype.widgetName]=e)}});for(t in i)i[t][t]();return this},addDependents:function(t){n.addDependents(this,t)},getEncodedText:function(){return n("<a>").text(this.text()).html()},jqmEnhanceable:function(){return n.mobile.enhanceable(this)},jqmHijackable:function(){return n.mobile.hijackable(this)}});n.removeWithDependents=function(t){var i=n(t);(i.jqmData("dependents")||n()).remove();i.remove()};n.addDependents=function(t,i){var r=n(t),u=r.jqmData("dependents")||n();r.jqmData("dependents",n(u).add(i))};n.find.matches=function(t,i){return n.find(t,null,null,i)};n.find.matchesSelector=function(t,i){return n.find(i,null,null,[t]).length>0}}(n,this),function(n){
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
t.matchMedia=t.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(i);n.mobile.media=function(n){return t.matchMedia(n).matches}}(n),function(n){var t={touch:"ontouchend"in i};n.mobile.support=n.mobile.support||{};n.extend(n.support,t);n.extend(n.mobile.support,t)}(n),function(n){n.extend(n.support,{orientation:"orientation"in t&&"onorientationchange"in t})}(n),function(n,r){function f(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+o.join(t+" ")+t).split(" ");for(var u in i)if(h[i[u]]!==r)return!0}function a(){var r=t,f=!!r.document.createElementNS&&!!r.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&!(r.opera&&navigator.userAgent.indexOf("Chrome")===-1),u=function(t){t&&f||n("html").addClass("ui-nosvg")},i=new r.Image;i.onerror=function(){u(!1)};i.onload=function(){u(i.width===1&&i.height===1)};i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}function v(){var h="transform-3d",f=n.mobile.media("(-"+o.join("-"+h+"),(-")+"-"+h+"),("+h+")"),e,c,s;if(f)return!!f;e=i.createElement("div");c={MozTransform:"-moz-transform",transform:"transform"};u.append(e);for(s in c)e.style[s]!==r&&(e.style[s]="translate3d( 100px, 1px, 1px )",f=t.getComputedStyle(e).getPropertyValue(c[s]));return!!f&&f!=="none"}function y(){var r=location.protocol+"//"+location.host+location.pathname+"ui-dir/",t=n("head base"),i=null,f="",e,o;return t.length?f=t.attr("href"):t=i=n("<base>",{href:r}).appendTo("head"),e=n("<a href='testurl' />").prependTo(u),o=e[0].href,t[0].href=f||location.pathname,i&&i.remove(),o.indexOf(r)===0}function p(){var n=i.createElement("x"),r=i.documentElement,u=t.getComputedStyle,f;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",r.appendChild(n),f=u&&u(n,"").pointerEvents==="auto",r.removeChild(n),!!f):!1}function w(){var n=i.createElement("div");return typeof n.getBoundingClientRect!="undefined"}function b(){var f=t,n=navigator.userAgent,r=navigator.platform,e=n.match(/AppleWebKit\/([0-9]+)/),i=!!e&&e[1],o=n.match(/Fennec\/([0-9]+)/),s=!!o&&o[1],u=n.match(/Opera Mobi\/([0-9]+)/),h=!!u&&u[1];return(r.indexOf("iPhone")>-1||r.indexOf("iPad")>-1||r.indexOf("iPod")>-1)&&i&&i<534||f.operamini&&{}.toString.call(f.operamini)==="[object OperaMini]"||u&&h<7458||n.indexOf("Android")>-1&&i&&i<533||s&&s<6||"palmGetResource"in t&&i&&i<534||n.indexOf("MeeGo")>-1&&n.indexOf("NokiaBrowser/8.5.0")>-1?!1:!0}var u=n("<body>").prependTo("html"),h=u[0].style,o=["Webkit","Moz","O"],c="palmGetResource"in t,s=t.operamini&&{}.toString.call(t.operamini)==="[object OperaMini]",l=t.blackberry&&!f("-webkit-transform"),e;n.extend(n.mobile,{browser:{}});n.mobile.browser.oldIE=function(){var n=3,t=i.createElement("div"),r=t.all||[];do t.innerHTML="<!--[if gt IE "+ ++n+"]><br><![endif]-->";while(r[0]);return n>4?n:!n}();n.extend(n.support,{pushState:"pushState"in history&&"replaceState"in history&&!(t.navigator.userAgent.indexOf("Firefox")>=0&&t.top!==t)&&t.navigator.userAgent.search(/CriOS/)===-1,mediaquery:n.mobile.media("only all"),cssPseudoElement:!!f("content"),touchOverflow:!!f("overflowScrolling"),cssTransform3d:v(),boxShadow:!!f("boxShadow")&&!l,fixedPosition:b(),scrollTop:("pageXOffset"in t||"scrollTop"in i.documentElement||"scrollTop"in u[0])&&!c&&!s,dynamicBaseTag:y(),cssPointerEvents:p(),boundingRect:w(),inlineSVG:a});u.remove();e=function(){var n=t.navigator.userAgent;return n.indexOf("Nokia")>-1&&(n.indexOf("Symbian/3")>-1||n.indexOf("Series60/5")>-1)&&n.indexOf("AppleWebKit")>-1&&n.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();n.mobile.gradeA=function(){return(n.support.mediaquery&&n.support.cssPseudoElement||n.mobile.browser.oldIE&&n.mobile.browser.oldIE>=8)&&(n.support.boundingRect||n.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)};n.mobile.ajaxBlacklist=t.blackberry&&!t.WebKitPoint||s||e;e&&n(function(){n("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});n.support.boxShadow||n("html").addClass("ui-noboxshadow")}(n),function(n,t){var r=n.mobile.window,i,u=function(){};n.event.special.beforenavigate={setup:function(){r.on("navigate",u)},teardown:function(){r.off("navigate",u)}};n.event.special.navigate=i={bound:!1,pushStateEnabled:!0,originalEventName:t,isPushStateEnabled:function(){return n.support.pushState&&n.mobile.pushStateEnabled===!0&&this.isHashChangeEnabled()},isHashChangeEnabled:function(){return n.mobile.hashListeningEnabled===!0},popstate:function(t){var u=new n.Event("navigate"),i=new n.Event("beforenavigate"),f=t.originalEvent.state||{};(i.originalEvent=t,r.trigger(i),i.isDefaultPrevented())||(t.historyState&&n.extend(f,t.historyState),u.originalEvent=t,setTimeout(function(){r.trigger(u,{state:f})},0))},hashchange:function(t){var u=new n.Event("navigate"),i=new n.Event("beforenavigate");(i.originalEvent=t,r.trigger(i),i.isDefaultPrevented())||(u.originalEvent=t,r.trigger(u,{state:t.hashchangeState||{}}))},setup:function(){i.bound||(i.bound=!0,i.isPushStateEnabled()?(i.originalEventName="popstate",r.bind("popstate.navigate",i.popstate)):i.isHashChangeEnabled()&&(i.originalEventName="hashchange",r.bind("hashchange.navigate",i.hashchange)))}}}(n),function(n){n.event.special.throttledresize={setup:function(){n(this).bind("resize",t)},teardown:function(){n(this).unbind("resize",t)}};var f=250,t=function(){r=(new Date).getTime();u=r-e;u>=f?(e=r,n(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(t,f-u))},e=0,i,r,u}(n),function(n,t){function v(){var n=f();n!==e&&(e=n,r.trigger(u))}var r=n(t),u="orientationchange",f,e,o,s,h={"0":!0,"180":!0},c,l,a;n.support.orientation&&(c=t.innerWidth||r.width(),l=t.innerHeight||r.height(),a=50,o=c>l&&c-l>a,s=h[t.orientation],(o&&s||!o&&!s)&&(h={"-90":!0,"90":!0}));n.event.special.orientationchange=n.extend({},n.event.special.orientationchange,{setup:function(){if(n.support.orientation&&!n.event.special.orientationchange.disabled)return!1;e=f();r.bind("throttledresize",v)},teardown:function(){if(n.support.orientation&&!n.event.special.orientationchange.disabled)return!1;r.unbind("throttledresize",v)},add:function(n){var t=n.handler;n.handler=function(n){return n.orientation=f(),t.apply(this,arguments)}}});n.event.special.orientationchange.orientation=f=function(){var u=!0,r=i.documentElement;return u=n.support.orientation?h[t.orientation]:r&&r.clientWidth/r.clientHeight<1.1,u?"portrait":"landscape"};n.fn[u]=function(n){return n?this.bind(u,n):this.trigger(u)};n.attrFn&&(n.attrFn[u]=!0)}(n,this),function(n,t,i,r){function a(n){while(n&&typeof n.originalEvent!="undefined")n=n.originalEvent;return n}function wt(t,i){var u=t.type,e,o,c,f,s,l,v,h,y;if(t=n.Event(t),t.type=i,e=t.originalEvent,o=n.event.props,u.search(/^(mouse|click)/)>-1&&(o=yt),e)for(v=o.length,f;v;)f=o[--v],t[f]=e[f];if(u.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),u.search(/^touch/)!==-1&&(c=a(e),u=c.touches,s=c.changedTouches,l=u&&u.length?u[0]:s&&s.length?s[0]:r,l))for(h=0,y=tt.length;h<y;h++)f=tt[h],t[f]=l[f];return t}function p(t){for(var i={},r,u;t;){r=n.data(t,o);for(u in r)r[u]&&(i[u]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function bt(t,i){for(var r;t;){if(r=n.data(t,o),r&&(!i||r[i]))return t;t=t.parentNode}return null}function kt(){c=!1}function ft(){c=!0}function dt(){s=0;v.length=0;k=!1;ft()}function gt(){kt()}function nt(){et();h=setTimeout(function(){h=0;dt()},n.vmouse.resetTimerDuration)}function et(){h&&(clearTimeout(h),h=0)}function e(t,i,r){var u;return(r&&r[t]||!r&&bt(i.target,t))&&(u=wt(i,t),n(i.target).trigger(u)),u}function ot(t){var r=n.data(t.target,w),i;k||s&&s===r||(i=e("v"+t.type,t),i&&(i.isDefaultPrevented()&&t.preventDefault(),i.isPropagationStopped()&&t.stopPropagation(),i.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function st(t){var o=a(t).touches,r,i,u;o&&o.length===1&&(r=t.target,i=p(r),i.hasVirtualBinding&&(s=pt++,n.data(r,w,s),et(),gt(),f=!1,u=a(t).touches[0],rt=u.pageX,ut=u.pageY,e("vmouseover",t,i),e("vmousedown",t,i)))}function ht(n){c||(f||e("vmousecancel",n,p(n.target)),f=!0,nt())}function ct(t){if(!c){var i=a(t).touches[0],o=f,r=n.vmouse.moveDistanceThreshold,u=p(t.target);f=f||Math.abs(i.pageX-rt)>r||Math.abs(i.pageY-ut)>r;f&&!o&&e("vmousecancel",t,u);e("vmousemove",t,u);nt()}}function lt(n){if(!c){ft();var t=p(n.target),i,r;e("vmouseup",n,t);f||(i=e("vclick",n,t),i&&i.isDefaultPrevented()&&(r=a(n).changedTouches[0],v.push({touchID:s,x:r.clientX,y:r.clientY}),k=!0));e("vmouseout",n,t);f=!1;nt()}}function at(t){var i=n.data(t,o),r;if(i)for(r in i)if(i[r])return!0;return!1}function vt(){}function ni(t){var i=t.substr(1);return{setup:function(){at(this)||n.data(this,o,{});var r=n.data(this,o);r[t]=!0;u[t]=(u[t]||0)+1;u[t]===1&&y.bind(i,ot);n(this).bind(i,vt);d&&(u.touchstart=(u.touchstart||0)+1,u.touchstart===1&&y.bind("touchstart",st).bind("touchend",lt).bind("touchmove",ct).bind("scroll",ht))},teardown:function(){--u[t];u[t]||y.unbind(i,ot);d&&(--u.touchstart,u.touchstart||y.unbind("touchstart",st).unbind("touchmove",ct).unbind("touchend",lt).unbind("scroll",ht));var r=n(this),f=n.data(this,o);f&&(f[t]=!1);r.unbind(i,vt);at(this)||r.removeData(o)}}}var o="virtualMouseBindings",w="virtualTouchID",b="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),tt="clientX clientY pageX pageY screenX screenY".split(" "),it=n.event.mouseHooks?n.event.mouseHooks.props:[],yt=n.event.props?n.event.props.concat(it):[].concat(it),u={},h=0,rt=0,ut=0,f=!1,v=[],k=!1,c=!1,d="addEventListener"in i,y=n(i),pt=1,s=0,g,l;for(n.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},l=0;l<b.length;l++)n.event.special[b[l]]=ni(b[l]);d&&i.addEventListener("click",function(t){var f=v.length,e=t.target,o,s,i,r,u,h;if(f)for(o=t.clientX,s=t.clientY,g=n.vmouse.clickDistanceThreshold,i=e;i;){for(r=0;r<f;r++)if(u=v[r],h=0,i===e&&Math.abs(u.x-o)<g&&Math.abs(u.y-s)<g||n.data(i,w)===u.touchID){t.preventDefault();t.stopPropagation();return}i=i.parentNode}},!0)}(n,t,i),function(n,t,r){function f(t,i,u,f){var e=u.type;u.type=i;f?n.event.trigger(u,r,t):n.event.dispatch.call(t,u);u.type=e}var u=n(i),e=n.mobile.support.touch,s="touchmove scroll",h=e?"touchstart":"mousedown",c=e?"touchend":"mouseup",o=e?"touchmove":"mousemove";n.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){n.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};n.attrFn&&(n.attrFn[i]=!0)});n.event.special.scrollstart={enabled:!0,setup:function(){function u(n,r){t=r;f(i,t?"scrollstart":"scrollstop",n)}var i=this,e=n(i),t,r;e.bind(s,function(i){n.event.special.scrollstart.enabled&&(t||u(i,!0),clearTimeout(r),r=setTimeout(function(){u(i,!1)},50))})},teardown:function(){n(this).unbind(s)}};n.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var i=this,r=n(i),t=!1;r.bind("vmousedown",function(e){function o(){clearTimeout(c)}function s(){o();r.unbind("vclick",l).unbind("vmouseup",o);u.unbind("vmousecancel",s)}function l(n){s();t||h!==n.target?t&&n.preventDefault():f(i,"tap",n)}if(t=!1,e.which&&e.which!==1)return!1;var h=e.target,c;r.bind("vmouseup",o).bind("vclick",l);u.bind("vmousecancel",s);c=setTimeout(function(){n.event.special.tap.emitTapOnTaphold||(t=!0);f(i,"taphold",n.Event("taphold",{target:h}))},n.event.special.tap.tapholdThreshold)})},teardown:function(){n(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");u.unbind("vmousecancel")}};n.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(n){var u=t.pageXOffset,f=t.pageYOffset,i=n.clientX,r=n.clientY;return n.pageY===0&&Math.floor(r)>Math.floor(n.pageY)||n.pageX===0&&Math.floor(i)>Math.floor(n.pageX)?(i=i-u,r=r-f):(r<n.pageY-f||i<n.pageX-u)&&(i=n.pageX-u,r=n.pageY-f),{x:i,y:r}},start:function(t){var r=t.originalEvent&&t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y],origin:n(t.target)}},stop:function(t){var r=t.originalEvent&&t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y]}},handleSwipe:function(t,i,r,u){if(i.time-t.time<n.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-i.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])<n.event.special.swipe.verticalDistanceThreshold){var e=t.coords[0]>i.coords[0]?"swipeleft":"swiperight";return f(r,"swipe",n.Event("swipe",{target:u,swipestart:t,swipestop:i}),!0),f(r,e,n.Event(e,{target:u,swipestart:t,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var i,r=this,f=n(r),t={};i=n.data(this,"mobile-events");i||(i={length:0},n.data(this,"mobile-events",i));i.length++;i.swipe=t;t.start=function(i){if(!n.event.special.swipe.eventInProgress){n.event.special.swipe.eventInProgress=!0;var e,s=n.event.special.swipe.start(i),h=i.target,f=!1;t.move=function(t){s&&!t.isDefaultPrevented()&&(e=n.event.special.swipe.stop(t),f||(f=n.event.special.swipe.handleSwipe(s,e,r,h),f&&(n.event.special.swipe.eventInProgress=!1)),Math.abs(s.coords[0]-e.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())};t.stop=function(){f=!0;n.event.special.swipe.eventInProgress=!1;u.off(o,t.move);t.move=null};u.on(o,t.move).one(c,t.stop)}};f.on(h,t.start)},teardown:function(){var i,t;i=n.data(this,"mobile-events");i&&(t=i.swipe,delete i.swipe,i.length--,i.length===0&&n.removeData(this,"mobile-events"));t&&(t.start&&n(this).off(h,t.start),t.move&&u.off(o,t.move),t.stop&&u.off(c,t.stop))}};n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,i){n.event.special[t]={setup:function(){n(this).bind(i,n.noop)},teardown:function(){n(this).unbind(i)}}})}(n,this),function(n){var t=n("meta[name=viewport]"),i=t.attr("content"),u=i+",maximum-scale=1, user-scalable=no",f=i+",maximum-scale=10, user-scalable=yes",r=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(i);n.mobile.zoom=n.extend({},{enabled:!r,locked:!1,disable:function(i){r||n.mobile.zoom.locked||(t.attr("content",u),n.mobile.zoom.enabled=!1,n.mobile.zoom.locked=i||!1)},enable:function(i){r||n.mobile.zoom.locked&&i!==!0||(t.attr("content",f),n.mobile.zoom.enabled=!0,n.mobile.zoom.locked=!1)},restore:function(){r||(t.attr("content",i),n.mobile.zoom.enabled=!0)}})}(n),function(n,t){function h(n){s=n.originalEvent;r=s.accelerationIncludingGravity;u=Math.abs(r.x);f=Math.abs(r.y);e=Math.abs(r.z);!t.orientation&&(u>7||(e>6&&f<8||e<8&&f>6)&&u>5)?i.enabled&&i.disable():i.enabled||i.enable()}n.mobile.iosorientationfixEnabled=!0;var o=navigator.userAgent,i,s,u,f,e,r;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(o)&&o.indexOf("AppleWebKit")>-1)){n.mobile.iosorientationfixEnabled=!1;return}i=n.mobile.zoom;n.mobile.document.on("mobileinit",function(){n.mobile.iosorientationfixEnabled&&n.mobile.window.bind("orientationchange.iosorientationfix",i.enable).bind("devicemotion.iosorientationfix",h)})}(n,this)});typeof $.browser=="undefined"&&($.browser=function(){var n=navigator.userAgent.toLowerCase(),t=/msie/.test(n);return{msie:t}}),function(n){var s=function(n){var t=document.createElement("div"),i;return n="on"+n,i=n in t,i||(t.setAttribute(n,"return;"),i=typeof t[n]=="function"),t=null,i},h=function(n,t){var r,i;t&&t.indexOf("wfm")===0?r=t:(i=nsCommon.GetActiveDivElement(n[0]),i!=null&&i.id&&i.id.indexOf("wfm")===0&&(r=i.id));r!=undefined&&nsCommon.IsAssociatedControlDesign(r)&&CssTransitionEffects.updateTextInputFields(n,undefined,!0)},l,u=navigator.userAgent,y=/iphone/i.test(u),a=/chrome/i.test(u),f=/android/i.test(u),b=!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(u)&&s("input"),p=(n.browser().msie?"paste":"input")+".mask",e=!1,t="",o,r;if(n.mask={definitions:{"9":"[0-9]","0":"[0-9]","#":"[0-9]",a:"[A-Za-z]",A:"[a-zA-Z0-9]",S:"[a-zA-Z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a&&f){o=function(t,i,r){var u={setMaskedValue:function(){var n=u.val();n==undefined||n===""||o.test(n)||u.val(u.getMasked(!1,n))},invalid:[],getCaret:function(){try{var n,i=0,e=t.get(0),f=document.selection,r=e.selectionStart;return f&&navigator.appVersion.indexOf("MSIE 10")===-1?(n=f.createRange(),n.moveStart("character",-u.val().length),i=n.text.length):(r||r==="0")&&(i=r),i}catch(o){}},setCaret:function(n){try{if(t.is(":focus")){var i,r=t.get(0);r.setSelectionRange?r.setSelectionRange(n,n):(i=r.createTextRange(),i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",n),i.select())}}catch(u){}},events:function(){t.on("keydown.mask",function(n){t.data("mask-keycode",n.keyCode||n.which);t.data("mask-previus-value",t.val());t.data("mask-previus-caret-pos",u.getCaret());u.maskDigitPosMapOld=u.maskDigitPosMap}).on(n.jMaskGlobals.useInput?"input.mask":"keyup.mask",u.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}).on("change.mask",function(){u.setMaskedValue();t.data("changed",!0)}).on("blur.mask",function(){e===u.val()||t.data("changed")||t.trigger("change");t.data("changed",!1)}).on("blur.mask",function(){u.setMaskedValue();e=u.val();h(t,r.ActiveDivId)}).on("focus.mask",function(t){u.setMaskedValue();r.selectOnFocus===!0&&n(t.target).select()}).on("focusout.mask",function(){u.setMaskedValue();r.clearIfNotMatch||(r.clearIfNotMatch=r.autoclear);ns.iblnAllowPartialMask!==!0&&r.clearIfNotMatch&&!o.test(u.val())&&u.val("")})},getRegexMask:function(){for(var u=[],r,e,h,s,n,o,t=0;t<i.length;t++)r=f.translation[i.charAt(t)],r?(e=r.pattern.toString().replace(/.{1}$|^.{1}/g,""),h=r.optional,s=r.recursive,s?(u.push(i.charAt(t)),n={digit:i.charAt(t),pattern:e}):u.push(!h&&!s?e:e+"?")):u.push(i.charAt(t).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return o=u.join(""),n&&(o=o.replace(new RegExp("("+n.digit+"(.*"+n.digit+")?)"),"($1)?").replace(new RegExp(n.digit,"g"),n.pattern)),new RegExp(o)},destroyEvents:function(){t.off(["input","keydown","keyup","paste","drop","blur","focusout",""].join(".mask "))},val:function(n){var u=t.is("input"),i=u?"val":"text",r;return arguments.length>0?(t[i]()!==n&&t[i](n),r=t):r=t[i](),r},calculateCaretPosition:function(){var o=t.data("mask-previus-value")||"",s=u.getMasked(),n=u.getCaret(),v;if(o!==s){for(var r=t.data("mask-previus-caret-pos")||0,h=s.length,c=o.length,l=0,a=0,f=0,e=0,i=0,i=n;i<h;i++){if(!u.maskDigitPosMap[i])break;a++}for(i=n-1;i>=0;i--){if(!u.maskDigitPosMap[i])break;l++}for(i=n-1;i>=0;i--)u.maskDigitPosMap[i]&&f++;for(i=r-1;i>=0;i--)u.maskDigitPosMapOld[i]&&e++;n>c?n=h*10:r>=n&&r!==c?u.maskDigitPosMapOld[n]||(v=n,n-=e-f,n-=l,u.maskDigitPosMap[n]&&(n=v)):n>r&&(n+=f-e,n+=a)}return n},behaviour:function(i){var r,e,o;return i=i||window.event,u.invalid=[],r=t.data("mask-keycode"),n.inArray(r,f.byPassKeys)===-1?(e=u.getMasked(),o=u.getCaret(),setTimeout(function(){u.setCaret(u.calculateCaretPosition())},n.jMaskGlobals.keyStrokeCompensation),u.val(e),u.setCaret(o),u.callbacks(i)):void 0},getMasked:function(n,t){var c=[],rt=t===undefined?u.val():t+"",e=0,y=i.length,o=0,p=rt.length,s=1,w="push",l=-1,k=0,d=[],a,g,nt,tt,it;for(r.reverse?(w="unshift",s=-1,a=0,e=y-1,o=p-1,g=function(){return e>-1&&o>-1}):(a=y-1,g=function(){return e<y&&o<p});g();){var b=i.charAt(e),v=rt.charAt(o),h=f.translation[b];h?(v.match(h.pattern)?(c[w](v),h.recursive&&(l===-1?l=e:e===a&&e!==l&&(e=l-s),a===l&&(e-=s)),e+=s):v===nt?(k--,nt=undefined):h.optional?(e+=s,o-=s):h.fallback?(c[w](h.fallback),e+=s,o-=s):u.invalid.push({p:o,v:v,e:h.pattern}),o+=s):(n||c[w](b),v===b?(d.push(o),o+=s):(nt=b,d.push(o+k),k++),e+=s)}return tt=i.charAt(a),y!==p+1||f.translation[tt]||c.push(tt),it=c.join(""),u.mapMaskdigitPositions(it,d,p),it},mapMaskdigitPositions:function(n,t,i){var e=r.reverse?n.length-i:0,f;for(u.maskDigitPosMap={},f=0;f<t.length;f++)u.maskDigitPosMap[t[f]+e]=1},callbacks:function(n){var f=u.val(),h=f!==e,s=[f,n,t,r],o=function(n,t,i){typeof r[n]=="function"&&t&&r[n].apply(this,i)};o("onChange",h===!0,s);o("onKeyPress",h===!0,s);o("onComplete",f.length===i.length,s);o("onInvalid",u.invalid.length>0,[f,n,t,u.invalid,r])}},f,e,o;t=n(t);f=this;e=u.val();i=typeof i=="function"?i(u.val(),undefined,t,r):i;f.mask=i;f.options=r;f.remove=function(){var n=u.getCaret();return f.options.placeholder&&t.removeAttr("placeholder"),t.data("mask-maxlength")&&t.removeAttr("maxlength"),u.destroyEvents(),u.val(f.getCleanVal()),u.setCaret(n),t};f.getCleanVal=function(){return u.getMasked(!0)};f.getMaskedVal=function(n){return u.getMasked(!1,n)};f.init=function(e){var s,h,c,l;if(e=e||!1,r=r||{},r.autoclear=r.autoclear||n.mask.autoclear,f.clearIfNotMatch=n.jMaskGlobals.clearIfNotMatch,f.byPassKeys=n.jMaskGlobals.byPassKeys,f.translation=n.extend({},n.jMaskGlobals.translation,r.translation),f=n.extend(!0,{},f,r),o=u.getRegexMask(),e)u.events(),u.val(u.getMasked());else{for(r.placeholder&&t.attr("placeholder",r.placeholder),t.data(n.mask.dataName)&&t.attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck",!1),s=0,h=!0;s<i.length;s++)if(c=f.translation[i.charAt(s)],c&&c.recursive){h=!1;break}h&&t.attr("maxlength",i.length).data("mask-maxlength",!0);u.destroyEvents();u.events();l=u.getCaret();u.val(u.getMasked());u.setCaret(l)}};f.init(!t.is("input"))};n.maskWatchers={};var w=function(){var t=n(this),i={},r="data-mask-",u=t.attr("data-mask");return t.attr(r+"reverse")&&(i.reverse=!0),t.attr(r+"clearifnotmatch")&&(i.clearIfNotMatch=!0),t.attr(r+"selectonfocus")==="true"&&(i.selectOnFocus=!0),v(t,u,i)?t.data(n.mask.dataName,new o(this,u,i)):void 0},v=function(t,i,r){r=r||{};var u=n(t).data(n.mask.dataName),f=JSON.stringify,e=n(t).val()||n(t).text();try{return typeof i=="function"&&(i=i(e)),typeof u!="object"||f(u.options)!==f(r)||u.mask!==i}catch(o){}},s=function(n){var t=document.createElement("div"),i;return n="on"+n,i=n in t,i||(t.setAttribute(n,"return;"),i=typeof t[n]=="function"),t=null,i};n.fn.mask=function(t,i){i=i||{};var r=this.selector,u=n.jMaskGlobals,e=u.watchInterval,s=i.watchInputs||u.watchInputs,f=function(){if(v(this,t,i))return n(this).data(n.mask.dataName,new o(this,t,i))};return n(this).each(f),r&&r!==""&&s&&(clearInterval(n.maskWatchers[r]),n.maskWatchers[r]=setInterval(function(){n(document).find(r).each(f)},e)),this};n.fn.masked=function(t){return this.data(n.mask.dataName).getMaskedVal(t)};n.fn.unmask=function(){return clearInterval(n.maskWatchers[this.selector]),delete n.maskWatchers[this.selector],this.each(function(){var t=n(this).data(n.mask.dataName);t&&t.remove().removeData(n.mask.dataName)})};n.fn.cleanVal=function(){return this.data(n.mask.dataName).getCleanVal()};n.applyDataMask=function(t){t=t||n.jMaskGlobals.maskElements;var i=t instanceof n?t:n(t);i.filter(n.jMaskGlobals.dataMaskAttr).each(w)};r={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&s("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{"0":{pattern:/\d/},"9":{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},a:{pattern:/[A-Za-z]/},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/},"*":{pattern:/[A-Za-z0-9]/}}};n.jMaskGlobals=n.jMaskGlobals||{};r=n.jMaskGlobals=n.extend(!0,{},r,n.jMaskGlobals);r.dataMask&&n.applyDataMask();setInterval(function(){n.jMaskGlobals.watchDataMask&&n.applyDataMask()},r.watchInterval)}else n.fn.extend({caret:function(n,t){var i;if(this.length!==0&&!this.is(":hidden")&&this.get(0)===document.activeElement)return typeof n=="number"?(t=typeof t=="number"?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(r,u){var tt,k,o,b,w,g,s,d,nt,v;return!r&&this.length>0?(tt=n(this[0]),nt=tt.data(n.mask.dataName),nt?nt():undefined):(v=n.extend({autoclear:n.mask.autoclear,placeholder:n.mask.placeholder,completed:null},u),k=n.mask.definitions,o=[],r=String(r),b=s=r.length,w=null,n.each(r.split(""),function(n,t){t=="?"?(s--,b=n):k[t]?(o.push(new RegExp(k[t])),w===null&&(w=o.length-1),n<b&&(g=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function ht(){if(v.completed){for(var n=w;n<=g;n++)if(o[n]&&tt[n]===ft(n))return;v.completed.call(u)}}function ft(n){return n<v.placeholder.length?v.placeholder.charAt(n):v.placeholder.charAt(0)}function et(n){for(;++n<s&&!o[n];);return n}function vt(n){for(;--n>=0&&!o[n];);return n}function at(n,t){var r,i;if(!(n<0)){for(r=n,i=et(t);r<s;r++)if(o[r]){if(i<s&&o[r].test(tt[i]))tt[r]=tt[i],tt[i]=ft(i);else break;i=et(i)}st();u.caret(Math.max(w,n))}}function yt(n){for(var r,u,t=n,i=ft(n);t<s;t++)if(o[t])if(r=et(t),u=tt[t],tt[t]=i,r<s&&o[r].test(u))i=u;else break}function pt(){var i=u.val(),n=u.caret(),r,t;if(d&&d.length&&d.length>i.length){for(it(!0);n.begin>0&&!o[n.begin-1];)n.begin--;if(n.begin===0)while(n.begin<w&&!o[n.begin])n.begin++;u.caret(n.begin,n.begin)}else r=it(!0),t=i.charAt(n.begin),n.begin<s&&(o[n.begin]?o[n.begin].test(t)&&n.begin++:(n.begin++,o[n.begin].test(t)&&n.begin++)),u.caret(n.begin,n.begin);ht()}function wt(){it();u.val()!=ot&&u.trigger("change")}function bt(n){var t,e,r,i,f;if(!u.prop("readonly")){if(t=n.which||n.keyCode,d=u.val(),f=!1,window.event?f=window.event.ctrlKey:n.which&&(f=n.ctrlKey),!(f==!0&&t===67)&&u.attr("readonly")!=undefined&&(u.attr("readonly")=="readonly"||u.attr("readonly")=="true"))return!1;if(t===8||t===46||y&&t===127)return e=u.caret(),r=e.begin,i=e.end,i-r==0&&(r=t!==46?vt(r):i=et(r-1),i=t===46?et(i):i),ct(r,i),at(r,i-1),n.preventDefault(),!1;if(t===13)wt.call(this,n);else if(t===27)return u.val(ot),u.caret(0,it()),n.preventDefault(),!1}}function kt(t){var e,i,r,h,c,l;if(!u.prop("readonly"))return(e=t.which||t.keyCode,i=u.caret(),t.ctrlKey||t.altKey||t.metaKey||e<32)?void 0:e&&e!==13?(i.end-i.begin!=0&&(ct(i.begin,i.end),at(i.begin,i.end-1)),r=et(i.begin-1),r<s&&(h=String.fromCharCode(e),o[r].test(h)&&(yt(r),tt[r]=h,st(),c=et(r),f?(l=function(){n.proxy(n.fn.caret,u,c)()},setTimeout(l,0)):u.caret(c),i.begin<=g&&ht())),t.preventDefault(),!1):void 0}function ct(n,t){for(var i=n;i<t&&i<s;i++)o[i]&&(tt[i]=ft(i))}function st(){u.val(tt.join(""))}function it(t){var l=n(u).closest("[id^=ListViewContainer_]"),r,f,e,h;for(l.length>0&&(ut==="{0:d}"||ut==="{0:MM/dd/yyyy}")&&(r=u.val(),r!=""&&(r.length>10&&(r=new Date(r),r=MVVMGlobal.GetFormattedDate(r)),f=neoFormat.parseDate(r,"MM/dd/yyyy"),f!=null&&f<neoFormat.parseDate("01/01/1753","MM/dd/yyyy")&&(f=null),f=neoFormat.toString(f,"MM/dd/yyyy"),f!=null?u.val(f):u.val(""))),e=u.val(),h=-1,i=0,pos=0;i<s;i++)if(o[i]){for(tt[i]=ft(i);pos++<e.length;)if(c=e.charAt(pos-1),o[i].test(c)){tt[i]=c;h=i;break}if(pos>e.length){ct(i+1,s);break}}else tt[i]===e.charAt(pos)&&pos++,i<b&&(h=i);return t?st():h+1<b?ns.iblnAllowPartialMask!==!0&&v.autoclear||tt.join("")===lt?(u.val()&&u.val(""),ct(0,s)):st():(st(),u.val(u.val().substring(0,h+1))),b?i:w}var u=n(this),nt=v.ActiveDivId,rt,ut;(nt==undefined||nt=="")&&(nt=u.closest('div[PopupDialog="true"]').length>0?n(u).closest('div[PopupDialog="true"]')[0].id:nsCommon.GetActiveDivId(u));rt=MVVMGlobal.GetControlAttribute(u,"GetAllAttr",nt,!0);rt=rt!=null?rt:{};ut=rt.sfwExtendDate!=null?rt.sfwExtendDate:u.attr("sfwExtendDate");ut==null&&(ut=rt.sfwExtendDateTime!=null?rt.sfwExtendDateTime:u.attr("sfwExtendDateTime"));ut==null&&(ut=rt.sfwExtendCustom!=null?rt.sfwExtendCustom:u.attr("sfwExtendCustom"));var tt=n.map(r.split(""),function(n,t){if(n!="?")return k[n]?ft(t):n}),lt=tt.join(""),ot=u.val();if(u.data("maskFormat")==undefined&&u.data("maskFormat",lt),u.data(n.mask.dataName,function(){return n.map(tt,function(n,t){return o[t]&&n!=ft(t)?n:null}).join("")}),!u.attr("readonly"))u.one("unmask",function(){u.off(".mask").removeData(n.mask.dataName)}).on("focus.mask",function(){if(!u.prop("readonly")&&(u.attr("readonly")==undefined||u.attr("readonly")!="readonly"&&u.attr("readonly")!="true")){clearTimeout(l);var n;ot=u.val();n=it();l=setTimeout(function(){u.get(0)===document.activeElement&&(st(),n==r.replace("?","").length?u.caret(0,n):u.caret(n))},10)}}).on("contextmenu.mask",function(){ot=u.val();u.caret(ot.length);u.select()}).on("paste.mask",function(n){var i=neo.IsIE();(!n.ctrlKey||i!==!1&&i>0)&&(u.val(""),u.caret(0),window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):n.clipboardData&&n.clipboardData.getData?t=n.clipboardData.getData("text/plain"):n.originalEvent&&n.originalEvent.clipboardData.getData&&(t=n.originalEvent.clipboardData.getData("text/plain")),t!=undefined&&t!=""&&(t=t.trim(),u.val(t)),u.caret(it(!0)),i===!1&&(e=!0))}).on("click.mask",function(){if(u.attr("IsClicked")==undefined){u.attr("IsClicked","true");var n=u.val();n.indexOf(v.placeholder)>=0&&ns.iblnAllowPartialMask!==!0&&v.autoclear&&u.caret(0)}}).on("blur.mask",function(){var t,e,c,l,a,f;if(ns.blnCancleCurrentAction=!1,u.removeAttr("IsClicked"),it(),u.val()!=ot&&!ns.lblnApplyingMask){if(control=u,n(this).data().bind!==undefined||this.className==="k-formatted-value k-input"&&n(this).next("input").data().bind!==undefined||n(this).data().field!=undefined)if(e=[],n(this).data().field!=undefined)t=n(this).data().field;else for(e=this.className==="k-formatted-value k-input"?n(this).next("input").data().bind.split(","):n(this).data().bind.split(","),i=0;i<e.length;i++)e[i].trim().indexOf("value:")===0&&(t=e[i].split(":")[1].trim());if(t===undefined)return;if(c=!1,l=control.closest("div[class*=sfwDialogPanel]"),l.length==1&&(nt=l[0].id),nt==="wfmCorrespondenceClientMVVM_CorrDiv"?(nt=nsCorr.CurrentCorr.CorrForm,nt.indexOf("wfm")!=0&&(nt="wfm"+nt),c=!0):nt==="wfmReportClientMVVM_RptDiv"&&(nt=nsRpt.CurrentRpt.RptForm,c=!0),ut!="{0:d}"&&ut!="{0:MM/dd/yyyy}"&&n(control).hasClass("hasDatepicker")==!1){if(a=u.attr("sfwInputMask")||rt.sfwInputMask,a==null&&(a=r),f=control[0].value!=""?control.mask():control[0].value,nt.indexOf("Lookup")>0||nt.indexOf("wfmrpt")==0)nsCommon.SetValueInObject(ns.Templates[nt].HeaderData,t,f);else if(control.closest('[id^="GridTable_"]').length>0&&(control.closest(".s-grid-data-row[rowIndex]").length>0||control.parent().attr("role")==="gridcell"||control.parent().parent().parent().attr("role")==="gridcell")){var y=control.closest(".s-grid-data-row[rowIndex]").length>0?control.closest(".s-grid-data-row[rowIndex]").attr("rowIndex"):control.closest("tr[rowIndex]").length>0?control.closest("tr[rowIndex]").attr("rowIndex"):control.closest("tr").find("[coltype=rowIndex]").length>0?n.trim(control.closest("tr").find("[coltype=rowIndex]").text()):n.trim(control.closest("tr").find("td[role=gridcell]:first").text()),o=parseInt(y),p=control.closest('[id^="GridTable_"]')[0].id,v=nsCommon.GetWidgetByActiveDivIdAndControlId(nt,p),s=v.getRowPropertyByIndex(o,t);s!=undefined&&s instanceof Date&&(f=control[0].value);v.setRowPropertyByIndex(o,t,f,control)}else if(control.closest("[id^=ListViewContainer_]").length>0){var y=n.trim(control.attr("rowIndex")),o=parseInt(y),w=control.closest('[id^="ListViewContainer_"]')[0].id,b=nsCommon.GetWidgetByActiveDivIdAndControlId(nt,w),s=v.getRowPropertyByIndex(o,t);s!=undefined&&s instanceof Date&&(f=control[0].value);b.setRowPropertyByIndex(o,t,f);n(control).val(f)}else ns.viewModel[nt]!=undefined&&nsCommon.SetValueInObject(ns.viewModel[nt].HeaderData,t,f);it()}}h(u,nt)}).on("keydown.mask",bt).on("keypress.mask",kt).on(p,function(){var n,i,r;u.prop("readonly")||(e?(u.caret(it(!0)),r=function(){u.val(t);u.caret(it(!0));ht();t=""},setTimeout(r,15)):(n=neo.IsIE(),i=function(){n!==!1&&n>0&&t!=undefined&&t!=""&&u.val(t);u.caret(it(!0));ht();t=""},setTimeout(i,0)),e=!1)});if(a&&f)u.off("input.mask").on("input.mask",pt);it()}))}})}(jQuery);LastTriggerClicked="",function(n){n.fn.slidePanel=function(t){t=n.extend({triggerName:"#trigger",position:"absolute",triggerTopPos:"80px",panelTopPos:"50px",panelOpacity:.9,speed:"fast",ajax:!1,ajaxSource:null,clickOutsideToClose:!0,action:"click"},t||{});var i=this,r=n(t.triggerName);if(r.css("position",t.position),r.css("top",t.triggerTopPos),i.css("position",t.position),i.css("top",t.panelTopPos),i.css("filter","alpha(opacity="+t.panelOpacity*100+")"),i.css("opacity",t.panelOpacity),t.action==="click")r.on("click.neoSlidePanelEvents",function(){i[0].style.display==="none"||i[0].style.display===""?(i.toggle("fast"),r.toggleClass("active"),LastTriggerClicked=r[0].id,n(".panel").not("[id='"+i[0].id+"']").hide()):(i.animate({width:"hide"}),window.location.href.indexOf("Lookup")>0&&ns.blnUseSlideoutForLookup&&n("#SlideOutLookup")[0].style.display==="none"&&n("#SearchTriger").trigger("click"))});else r.on("mouseenter.neoSlidePanelEvents mouseleave.neoSlidePanelEvents",function(){return t.ajax||(i.toggle("fast"),r.toggleClass("active")),!1});if(t.clickOutsideToClose){n("#RightSplitter").on("mousedown.neoSlidePanelEvents",function(){i.hide(t.speed);r.removeClass("active");window.location.href.indexOf("Lookup")>0&&ns.blnUseSlideoutForLookup&&n("#SlideOutLookup")[0].style.display==="none"&&n("#SearchTriger").trigger("click")});n([nsConstants.HASH,nsConstants.CENTER_SPLITTER].join("")).on("mousedown.neoSlidePanelEvents",function(){i.hide(t.speed);r.removeClass("active")});i.on("mousedown.neoSlidePanelEvents",function(){})}}}(jQuery);CryptoJS=CryptoJS||function(n,t){var u={},f=u.lib={},o=function(){},i=f.Base={extend:function(n){o.prototype=this;var t=new o;return n&&t.mixIn(n),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);n.hasOwnProperty("toString")&&(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}},r=f.WordArray=i.extend({init:function(n,i){n=this.words=n||[];this.sigBytes=i!=t?i:4*n.length},toString:function(n){return(n||l).stringify(this)},concat:function(n){var i=this.words,r=n.words,u=this.sigBytes,t;if(n=n.sigBytes,this.clamp(),u%4)for(t=0;t<n;t++)i[u+t>>>2]|=(r[t>>>2]>>>24-8*(t%4)&255)<<24-8*((u+t)%4);else if(65535<r.length)for(t=0;t<n;t+=4)i[u+t>>>2]=r[t>>>2];else i.push.apply(i,r);return this.sigBytes+=n,this},clamp:function(){var i=this.words,t=this.sigBytes;i[t>>>2]&=4294967295<<32-8*(t%4);i.length=n.ceil(t/4)},clone:function(){var n=i.clone.call(this);return n.words=this.words.slice(0),n},random:function(t){for(var i=[],u=0;u<t;u+=4)i.push(4294967296*n.random()|0);return new r.init(i,t)}}),e=u.enc={},l=e.Hex={stringify:function(n){var u=n.words,i,t,r;for(n=n.sigBytes,i=[],t=0;t<n;t++)r=u[t>>>2]>>>24-8*(t%4)&255,i.push((r>>>4).toString(16)),i.push((r&15).toString(16));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t<i;t+=2)u[t>>>3]|=parseInt(n.substr(t,2),16)<<24-4*(t%8);return new r.init(u,i/2)}},s=e.Latin1={stringify:function(n){var r=n.words,i,t;for(n=n.sigBytes,i=[],t=0;t<n;t++)i.push(String.fromCharCode(r[t>>>2]>>>24-8*(t%4)&255));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t<i;t++)u[t>>>2]|=(n.charCodeAt(t)&255)<<24-8*(t%4);return new r.init(u,i)}},a=e.Utf8={stringify:function(n){try{return decodeURIComponent(escape(s.stringify(n)))}catch(t){throw Error("Malformed UTF-8 data");}},parse:function(n){return s.parse(unescape(encodeURIComponent(n)))}},h=f.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(n){"string"==typeof n&&(n=a.parse(n));this._data.concat(n);this._nDataBytes+=n.sigBytes},_process:function(t){var f=this._data,s=f.words,u=f.sigBytes,e=this.blockSize,o=u/(4*e),o=t?n.ceil(o):n.max((o|0)-this._minBufferSize,0),i;if(t=o*e,u=n.min(4*t,u),t){for(i=0;i<t;i+=e)this._doProcessBlock(s,i);i=s.splice(0,t);f.sigBytes-=u}return new r.init(i,u)},clone:function(){var n=i.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0}),c;return f.Hasher=h.extend({cfg:i.extend(),init:function(n){this.cfg=this.cfg.extend(n);this.reset()},reset:function(){h.reset.call(this);this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){return n&&this._append(n),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(t,i){return new n.init(i).finalize(t)}},_createHmacHelper:function(n){return function(t,i){return new c.HMAC.init(n,i).finalize(t)}}}),c=u.algo={},u}(Math),function(n){function i(n,t,i,r,u,f,e){return n=n+(t&i|~t&r)+u+e,(n<<f|n>>>32-f)+t}function r(n,t,i,r,u,f,e){return n=n+(t&r|i&~r)+u+e,(n<<f|n>>>32-f)+t}function u(n,t,i,r,u,f,e){return n=n+(t^i^r)+u+e,(n<<f|n>>>32-f)+t}function f(n,t,i,r,u,f,e){return n=n+(i^(t|~r))+u+e,(n<<f|n>>>32-f)+t}for(var o=CryptoJS,e=o.lib,c=e.WordArray,s=e.Hasher,e=o.algo,t=[],h=0;64>h;h++)t[h]=4294967296*n.abs(n.sin(h+1))|0;e=e.MD5=s.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(n,e){for(var v,a,l=0;16>l;l++)v=e+l,a=n[v],n[v]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;var l=this._hash.words,v=n[e+0],a=n[e+1],y=n[e+2],p=n[e+3],w=n[e+4],b=n[e+5],k=n[e+6],d=n[e+7],g=n[e+8],nt=n[e+9],tt=n[e+10],it=n[e+11],rt=n[e+12],ut=n[e+13],ft=n[e+14],et=n[e+15],o=l[0],s=l[1],h=l[2],c=l[3],o=i(o,s,h,c,v,7,t[0]),c=i(c,o,s,h,a,12,t[1]),h=i(h,c,o,s,y,17,t[2]),s=i(s,h,c,o,p,22,t[3]),o=i(o,s,h,c,w,7,t[4]),c=i(c,o,s,h,b,12,t[5]),h=i(h,c,o,s,k,17,t[6]),s=i(s,h,c,o,d,22,t[7]),o=i(o,s,h,c,g,7,t[8]),c=i(c,o,s,h,nt,12,t[9]),h=i(h,c,o,s,tt,17,t[10]),s=i(s,h,c,o,it,22,t[11]),o=i(o,s,h,c,rt,7,t[12]),c=i(c,o,s,h,ut,12,t[13]),h=i(h,c,o,s,ft,17,t[14]),s=i(s,h,c,o,et,22,t[15]),o=r(o,s,h,c,a,5,t[16]),c=r(c,o,s,h,k,9,t[17]),h=r(h,c,o,s,it,14,t[18]),s=r(s,h,c,o,v,20,t[19]),o=r(o,s,h,c,b,5,t[20]),c=r(c,o,s,h,tt,9,t[21]),h=r(h,c,o,s,et,14,t[22]),s=r(s,h,c,o,w,20,t[23]),o=r(o,s,h,c,nt,5,t[24]),c=r(c,o,s,h,ft,9,t[25]),h=r(h,c,o,s,p,14,t[26]),s=r(s,h,c,o,g,20,t[27]),o=r(o,s,h,c,ut,5,t[28]),c=r(c,o,s,h,y,9,t[29]),h=r(h,c,o,s,d,14,t[30]),s=r(s,h,c,o,rt,20,t[31]),o=u(o,s,h,c,b,4,t[32]),c=u(c,o,s,h,g,11,t[33]),h=u(h,c,o,s,it,16,t[34]),s=u(s,h,c,o,ft,23,t[35]),o=u(o,s,h,c,a,4,t[36]),c=u(c,o,s,h,w,11,t[37]),h=u(h,c,o,s,d,16,t[38]),s=u(s,h,c,o,tt,23,t[39]),o=u(o,s,h,c,ut,4,t[40]),c=u(c,o,s,h,v,11,t[41]),h=u(h,c,o,s,p,16,t[42]),s=u(s,h,c,o,k,23,t[43]),o=u(o,s,h,c,nt,4,t[44]),c=u(c,o,s,h,rt,11,t[45]),h=u(h,c,o,s,et,16,t[46]),s=u(s,h,c,o,y,23,t[47]),o=f(o,s,h,c,v,6,t[48]),c=f(c,o,s,h,d,10,t[49]),h=f(h,c,o,s,ft,15,t[50]),s=f(s,h,c,o,b,21,t[51]),o=f(o,s,h,c,rt,6,t[52]),c=f(c,o,s,h,p,10,t[53]),h=f(h,c,o,s,tt,15,t[54]),s=f(s,h,c,o,a,21,t[55]),o=f(o,s,h,c,g,6,t[56]),c=f(c,o,s,h,et,10,t[57]),h=f(h,c,o,s,k,15,t[58]),s=f(s,h,c,o,ut,21,t[59]),o=f(o,s,h,c,w,6,t[60]),c=f(c,o,s,h,it,10,t[61]),h=f(h,c,o,s,y,15,t[62]),s=f(s,h,c,o,nt,21,t[63]);l[0]=l[0]+o|0;l[1]=l[1]+s|0;l[2]=l[2]+h|0;l[3]=l[3]+c|0},_doFinalize:function(){var u=this._data,r=u.words,t=8*this._nDataBytes,i=8*u.sigBytes,f;for(r[i>>>5]|=128<<24-i%32,f=n.floor(t/4294967296),r[(i+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,r[(i+64>>>9<<4)+14]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,u.sigBytes=4*(r.length+1),this._process(),u=this._hash,r=u.words,t=0;4>t;t++)i=r[t],r[t]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360;return u},clone:function(){var n=s.clone.call(this);return n._hash=this._hash.clone(),n}});o.MD5=s._createHelper(e);o.HmacMD5=s._createHmacHelper(e)}(Math),function(){var t=CryptoJS,i=t.lib,u=i.WordArray,r=i.Hasher,n=[],i=t.algo.SHA1=r.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var e,r=this._hash.words,h=r[0],f=r[1],o=r[2],s=r[3],c=r[4],u=0;80>u;u++)16>u?n[u]=t[i+u]|0:(e=n[u-3]^n[u-8]^n[u-14]^n[u-16],n[u]=e<<1|e>>>31),e=(h<<5|h>>>27)+c+n[u],e=20>u?e+((f&o|~f&s)+1518500249):40>u?e+((f^o^s)+1859775393):60>u?e+((f&o|f&s|o&s)-1894007588):e+((f^o^s)-899497514),c=s,s=o,o=f<<30|f>>>2,f=h,h=e;r[0]=r[0]+h|0;r[1]=r[1]+f|0;r[2]=r[2]+o|0;r[3]=r[3]+s|0;r[4]=r[4]+c|0},_doFinalize:function(){var i=this._data,n=i.words,r=8*this._nDataBytes,t=8*i.sigBytes;return n[t>>>5]|=128<<24-t%32,n[(t+64>>>9<<4)+14]=Math.floor(r/4294967296),n[(t+64>>>9<<4)+15]=r,i.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var n=r.clone.call(this);return n._hash=this._hash.clone(),n}});t.SHA1=r._createHelper(i);t.HmacSHA1=r._createHmacHelper(i)}();
/**
* @preserve SelectNav.js (v. 0.1)
* Converts your <ul>/<ol> navigation into a dropdown list for small screens
* https://github.com/lukaszfiszer/selectnav.js
*/
selectnav=function(){"use strict";var n=function(n,t){function e(n){var t=n.nodeName.toLowerCase();return t==="ul"||t==="ol"}function o(n){for(var t=1;document.getElementById("selectnav"+t);t++);return n?"selectnav"+t:"selectnav"+(t-1)}function s(n){var b,i,v,k,y,p;r++;var d=n.children.length,t="",w="",g=r-1;if(d){if(g){while(g--)w+=l;w+=" "}for(b=!1,i=0;i<d;i++)v=n.children[i].querySelector("a"),v!=null&&typeof v!="undefined"&&(k=$(v).text()||v.textContent,y="",u&&(y=v.className.search(u)!==-1||v.parentElement.className.search(u)!==-1?f:""),h&&!y&&(y=v.href===document.URL?f:""),n.children[i].attributes.formid===undefined?(b&&(t+="<\/optgroup>"),t+="<optgroup label="+w+k+">",b=!0):t+='<option value="'+n.children[i].attributes.formid.value+'" '+y+">"+w+k+"<\/option>",c&&(p=n.children[i].querySelector("ul"),p==null&&n.children[i].querySelector("ol"),p!=null&&e(p)&&(t+=s(p))));return r===1&&a&&b&&(t+="<\/optgroup>"),r===1&&(t='<label id="lblnCapForSelectnavDropDown" class="selectnavfor hideControl" stype="display:none;" for="'+o(!0)+'">Nav<\/label><select class="selectnav" id="'+o(!0)+'"><option value="">Navigation Menu<\/option>'+t+"<\/select>"),r--,t}}if((n=document.getElementById(n),n)&&e(n)){document.documentElement.className+=" js";var i=t||{},u=i.activeclass||"active",h=typeof i.autoselect=="boolean"?i.autoselect:!0,c=typeof i.nested=="boolean"?i.nested:!0,l=i.indent||"→",a=i.label||"- Navigation -",r=0,f=" selected ";return n.insertAdjacentHTML("afterend",s(n)),document.getElementById(n.id)}};return function(t,i){n(t,i)}}();
/**
* @preserve Simrou v1.5.4 - Released under the MIT License.
* Copyright (c) 2012 büro für ideen, www.buero-fuer-ideen.de
*/
(function(){var n,t,r=function(n,t){return function(){return n.apply(t,arguments)}},i={}.hasOwnProperty,u=[].slice;t=function(){function t(n){this.handleFormSubmit=r(this.handleFormSubmit,this);this.resolveHash=r(this.resolveHash,this);this.routes={};this.listening=!1;this.observeHash=!1;this.observeForms=!1;n!=null&&this.addRoutes(n);this.initialize!=null&&this.initialize()}return t.prototype.RegExpCache={extractHash:/^[^#]*(#.*)$/,trimHash:/^#*(.*?)\/*$/},t.prototype.eventSupported=function(){var n;return n=window.document.documentMode,"onhashchange"in window&&(!(n!=null)||n>7)}(),t.prototype.addRoute=function(t,i){var r;return i==null&&(i=!0),r=t instanceof n?t:new n(t,i),this.routes[r.toString()]=r},t.prototype.addRoutes=function(n,t){var o,r,u,f,e,s;if(t==null&&(t=!0),jQuery.isFunction(n))r=n.call(this,t);else if(jQuery.isArray(n))for(r=[],e=0,s=n.length;e<s;e++)f=n[e],r.push(this.addRoutes(f,t));else if(jQuery.isPlainObject(n)){r={};for(u in n)i.call(n,u)&&(o=n[u],f=this.addRoute(u,t),f.attachActions(o),r[u]=f)}else r=this.addRoute(n,t);return r},t.prototype.removeRoute=function(t){var i;return t instanceof n||(t=new n(t)),i=t.toString(),i in this.routes?delete this.routes[i]:void 0},t.prototype.navigate=function(n){var t;return t=this.getHash(),location.hash=n,!this.observeHash||location.hash===t?this.resolve(n,"get"):void 0},t.prototype.resolve=function(t,r){var o,s,u,h,c,f,e;if(u=String(t).replace(this.RegExpCache.trimHash,"$1"),u===""){if(String(t).indexOf("/")===-1)return!1;u="/"}e=this.routes;for(h in e)if(i.call(e,h)&&(f=e[h],f instanceof n)&&(c=f.match(u),c))return s=[c,r],o=jQuery(f),o.trigger("simrou:any",s),r!=null&&r!=="any"&&o.trigger("simrou:"+r.toLowerCase(),s),!0;return!1},t.prototype.getHash=function(n){return n==null&&(n=location.hash),String(n).replace(this.RegExpCache.extractHash,"$1")},t.prototype.resolveHash=function(n){var t,i;if(this.observeHash)return this.eventSupported&&(i=n.originalEvent.newURL),t=this.getHash(i),this.resolve(t,"get")},t.prototype.handleFormSubmit=function(n){var t,i,r;return this.observeForms&&(t=jQuery(n.target),r=t.attr("method")||t.get(0).getAttribute("method"),i=this.getHash(t.attr("action")),this.resolve(i,r)&&n.preventDefault()),!0},t.prototype.listen=function(){var n=this;if(!this.listening){jQuery(window).on("hashchange.simrou",this.resolveHash);return jQuery(function(){return jQuery("body").on("submit.simrou","form",n.handleFormSubmit)}),this.listening=!0}},t.prototype.start=function(n,t,i){var r;return(this.observeHash=t!=null?t:!0,this.observeForms=i!=null?i:!0,(this.observeHash||this.observeForms)&&this.listen(),r=this.getHash(),r!=="")?this.resolve(r,"get"):n!=null?window.history!=null&&window.history.replaceState!=null?(window.history.replaceState({},document.title,"#"+n.replace(/^#+/,"")),this.resolve(n,"get")):this.navigate(n):void 0},t.prototype.stop=function(){return this.observeHash=!1,this.observeForms=!1},t}();n=function(){function n(n,t){var r,u,i;this.pattern=n;this.caseSensitive=t!=null?t:!0;n=String(this.pattern);i=n.match(this.RegExpCache.allParams);this.params=i!=null?function(){var n,r,t;for(t=[],n=0,r=i.length;n<r;n++)u=i[n],t.push(u.substr(1));return t}():[];n=n.replace(this.RegExpCache.escapeRegExp,"\\$&");n=n.replace(this.RegExpCache.namedParam,"([^/]+)");n=n.replace(this.RegExpCache.splatParam,"(.+?)");r=t?"":"i";this.expr=new RegExp("^"+n+"$",r)}var t;return n.prototype.RegExpCache={escapeRegExp:/[-[\]{}()+?.,\\^$|#\s]/g,namedParam:/:(\w+)/g,splatParam:/\*(\w+)/g,firstParam:/(:\w+)|(\*\w+)/,allParams:/(:|\*)\w+/g},n.prototype.match=function(n){var t,r,e,i,u,o,f;if(r=this.expr.exec(n),jQuery.isArray(r))for(i={},f=this.params,t=u=0,o=f.length;u<o;t=++u)e=f[t],i[e]=r[t+1];else i=!1;return i},n.prototype.assemble=function(){var r,t,i,n;for(n=1<=arguments.length?u.call(arguments,0):[],n.length>0&&(jQuery.isArray(n[0])?n=n[0]:jQuery.isPlainObject(n[0])&&(n=function(){var t,f,i,u;for(i=this.params,u=[],t=0,f=i.length;t<f;t++)r=i[t],u.push(r in n[0]?n[0][r]:"");return u}.call(this))),t=String(this.pattern);this.RegExpCache.firstParam.test(t);)i=n.length>0?n.shift():"",jQuery.isFunction(i)&&(i=i(this)),t=t.replace(this.RegExpCache.firstParam,String(i));return t},n.prototype.toString=function(){return String(this.pattern)},n.prototype.attachAction=function(n,t){t==null&&(t="any");jQuery(this).on("simrou:"+t.toLowerCase(),n);return this},n.prototype.attachActions=function(n,t){var e,r,o,u,s,f;t==null&&(t="any");jQuery.isPlainObject(n)||(f=[{},n],n=f[0],o=f[1],n[t]=o);for(t in n)if(i.call(n,t))for(r=n[t],jQuery.isArray(r)||(r=[r]),u=0,s=r.length;u<s;u++)e=r[u],this.attachAction(e,t);return this},n.prototype.detachAction=function(n,t){var i;return t==null&&(t="any"),typeof n=="string"&&(t=n),i="simrou:"+t.toLowerCase(),jQuery.isFunction(n)?jQuery(this).off(i,n):jQuery(this).off(i),this},t=function(n){return function(t){return this.attachAction(t,n)}},n.prototype.get=t("get"),n.prototype.post=t("post"),n.prototype.put=t("put"),n.prototype["delete"]=t("delete"),n.prototype.any=t("any"),n}();t.Route=n;window.Simrou=jQuery.Simrou=t}).call(this),function(n){n.fn.smartWizard=function(t){var r=arguments,i=undefined,u=this.each(function(){var u=n(this).data("smartWizard"),f;if(typeof t!="object"&&t&&u){if(typeof SmartWizard.prototype[t]=="function")return i=SmartWizard.prototype[t].apply(u,Array.prototype.slice.call(r,1));n.error("Method "+t+" does not exist on jQuery.smartWizard")}else f=n.extend({},n.fn.smartWizard.defaults,t||{}),u||(u=new SmartWizard(n(this),f),n(this).data("smartWizard",u))});return i===undefined?u:i};n.fn.smartWizard.defaults={selected:0,keyNavigation:!0,enableAllSteps:!1,transitionEffect:"fade",contentURL:null,contentCache:!0,cycleSteps:!1,enableFinishButton:!1,enableOtherButton:!1,hideButtonsOnDisabled:!1,hideStepsOnDisabled:!1,errorSteps:[],labelNext:"Next",labelPrevious:"Previous",labelFinish:"Finish",labelOther:"Cancel",noForwardJumping:!1,ajaxType:"POST",onLeaveStep:null,onShowStep:null,onFinish:null,onOther:null,includeFinishButton:!0,displayProgressBar:!1,displayStepMode:"NONE",progressBarCaption:"TITLE",allowJumpingGroup:!0,allowJumpingSteps:!0,activeDivID:null,verticalWizard:!1,showActionBarOnTop:!1}}(jQuery),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(){return n(window)._scrollable()};n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})};n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){h.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}if(r!=null){var s=this,h=n(s),e=r,c,o={},a=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=s[r],w=t.max(s,i),v;c?(o[r]=c[u]+(a?0:p-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w));!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])});l(f.onAfter)}}).end()};t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])}}(jQuery);Validator={elementErrorClass:"error",language:"en",languages:{en:{textbox:{required:"This field is required.",min:"Please enter at least {characters} characters.",max:"Please enter no more than {characters} characters.",minvalue:"Please enter a value greater than or equal to {minvalue}.",maxvalue:"Please enter a value less than or equal to {maxvalue}.",mindate:"Please enter a date greater than or equal to {mindate}.",maxdate:"Please enter a date less than or equal to {maxdate}.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",number:"Please enter a valid number.",digits:"Please enter only digits."},password:{required:"This field is required.",min:"Please enter at least {characters} characters.",max:"Please enter no more than {characters} characters.",match:"The passwords do not match."},radio:{required:"This radiobutton is required."},checkbox:{required:"This checkbox is required."},select:{required:"Please select a value from the list."},textarea:{required:"This field is required.",min:"Please enter at least {characters} characters.",max:"Please enter no more than {characters} characters.",url:"Please enter a valid URL."},radioButtonList:{required:"This selection is required."},checkboxList:{required:"This selection is required."}}},showError:function(n,t){var i=$(n),u,f,r,e;i.hasClass(Validator.elementErrorClass)||(u=document.createElement("div"),$(u).addClass("validator-error").html(t),i.attr("data-error-position")==undefined?(f="before",i.is("input")&&i.attr("type")=="checkbox"&&(f="before label")):f=i.attr("data-error-position"),r=f.split(" "),e=r[1]==undefined?i:i.closest(r[1]),r[0]=="before"?e.before(u):r[0]=="after"&&e.after(u),e.addClass(Validator.elementErrorClass),i.attr("data-match")!=undefined&&$("#"+i.attr("data-match")).addClass(Validator.elementErrorClass))},validate:function(n,t,i){var r=!1,u=null,f=[];Validator.removeErrors(n);var e=i===!0,o=$(n),s=t||nsConstants.NON_FILTER_VALIDATOR_CONTROLS||nsConstants.FILTER_VALIDATOR_CONTROLS;return(o.find(s).each(function(){r=Validator.validateControl(r,this,o,u,e,f);r&&u==null&&(u=this)}),e===!0)?{ValidationSummary:f,iblnHasErrors:!r,ResponseMessage:{istrMessageID:"",istrMessage:DefaultMessages.Error_Found}}:!r},validateControl:function(n,t,i,r,u,f,e){var h=n,a=null,w=i[0].istrActiveDivID,o=$(t),s,c,b,v,y,l,p,k;if(w==undefined&&(i[0].istrActiveDivID=w=nsCommon.GetActiveDivId(o)),o.css("display")=="none"||nsCommon.IsHiddenControl(w,o[0].id))return h;if(s="",o.is("input")&&(o.attr("type")=="text"||o.attr("type")==undefined)&&(c=o.val(),ns.iblnSkipWhiteSpacesFromSearch===!0&&(w.indexOf("Lookup")||i[0].iblnSkipWhiteSpaces===!0)&&(c=c.trim()),c=ns.iblnSkipWhiteSpacesFromSearch===!0?c.trim():c,b=!1,o.data("maskFormat")==o.val()&&(b=!0),o.attr("data-required")!=undefined&&(c==""||b)&&o.attr("data-required-if")==undefined&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-required-if")!=undefined&&(c==""||b)&&(o.attr("data-required-if-value")==undefined&&$("#"+o.attr("data-required-if")).is(":checked")||o.attr("data-required-if-value")!=undefined&&$("#"+o.attr("data-required-if")).val()==o.attr("data-required-if-value"))&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-min")!=undefined&&c.length<parseFloat(o.attr("data-min"))&&c.length!=0&&(s=o.attr("message-min"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.min.replace("{characters}",o.attr("data-min")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-max")!=undefined&&c.length>parseFloat(o.attr("data-max"))&&(s=o.attr("message-max"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.max.replace("{characters}",o.attr("data-max")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-minvalue")!=undefined&&c!=""&&Number(c)<Number(o.attr("data-minvalue"))&&(s=o.attr("message-minvalue"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.minvalue.replace("{minvalue}",o.attr("data-minvalue")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-maxvalue")!=undefined&&c!=""&&Number(c)>Number(o.attr("data-maxvalue"))&&(s=o.attr("message-maxvalue"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.maxvalue.replace("{maxvalue}",o.attr("data-maxvalue")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-mindate")!=undefined&&c!=""&&new Date(c)<new Date(o.attr("data-mindate"))&&(s=o.attr("message-mindate"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.mindate.replace("{mindate}",o.attr("data-mindate")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-maxdate")!=undefined&&c!=""&&new Date(c)>new Date(o.attr("data-maxdate"))&&(s=o.attr("message-maxdate"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textbox.maxdate.replace("{maxdate}",o.attr("data-maxdate")),Validator.ShowControlError(t,u,s,f),h=!0),v=o.attr("datatype")||o.attr("data-type")||o.attr("textmode"),v!=undefined&&(v=v.toLowerCase()),o.attr("data-relcontrol")!=undefined&&c!=""&&(y=o.attr("data-relcontrol"),l="",l=o.closest(nsConstants.DIV_LISTVIEW_ITEMS).length>0?o.closest(nsConstants.DIV_LISTVIEW_ITEMS).find('[data-field="'+y+'"]'):o.closest(".s-grid-data-row").length>0?o.closest(".s-grid-data-row").find('[data-field="'+y+'"]'):i.find("#"+y),l.length>0&&l.val()!=""&&(k=Validator.compareValidator(o,l,v),k||(Validator.showError(l,""),s=o.attr("message-compare"),s=s!=null&&s!=""?s:"Invalid range values",Validator.ShowControlError(t,u,s,f),h=!0))),e===!0&&o.attr("control-to-compare")!=undefined&&o.val()!=""&&(y=o.attr("control-to-compare"),l="",l=o.closest(nsConstants.DIV_LISTVIEW_ITEMS).length>0?o.closest(nsConstants.DIV_LISTVIEW_ITEMS).find('[data-field="'+y+'"]'):o.closest(".s-grid-data-row").length>0?o.closest(".s-grid-data-row").find('[data-field="'+y+'"]'):i.find("#"+y),l.length>0&&l.val()!=""&&(p=l.attr("datatype")||l.attr("data-type")||l.attr("textmode"),p!=undefined&&(p=p.toLowerCase()),k=Validator.compareValidator(l,o,p),k||(r=" ",Validator.showError(l,""),s=l.attr("message-compare"),s=s!=null&&s!=""?s:"Invalid range values",Validator.ShowControlError(t,u,s,f),h=!0))),v!=undefined&&o.closest("td").attr("role")!="gridcell"))switch(v){case"email":a=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;a.test(o.val())||o.val()==""||(s=Validator.languages[Validator.language].textbox.email,Validator.ShowControlError(t,u,s,f),h=!0);break;case"url":a=/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_{},.~+=-]*)?(\#[-a-z\d_]*)?$/i;o.val().substr(0,1)==="/"||a.test(o.val().replace("_",""))||o.val()==""||(s=Validator.languages[Validator.language].textbox.url,Validator.ShowControlError(t,u,s,f),h=!0);break;case"number":a=/^\s*(\+|-)?((\d+([\.,]\d+)?)|([\.,]\d+))\s*$/;a.test(o.val())||o.val()==""||(s=Validator.languages[Validator.language].textbox.number,Validator.ShowControlError(t,u,s,f),h=!0);break;case"digits":a=/^\s*\d+\s*$/;a.test(o.val())||o.val()==""||(s=Validator.languages[Validator.language].textbox.digits,Validator.ShowControlError(t,u,s,f),h=!0)}if(o.is("input")&&o.attr("type")=="password"&&(o.attr("data-required")!=undefined&&o.val()==""&&o.attr("data-required-if")==undefined&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].password.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-required-if")!=undefined&&o.val()==""&&(o.attr("data-required-if-value")==undefined&&$("#"+o.attr("data-required-if")).is(":checked")||o.attr("data-required-if-value")!=undefined&&$("#"+o.attr("data-required-if")).val()==o.attr("data-required-if-value"))&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].password.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-min")!=undefined&&o.val().length<parseFloat(o.attr("data-min"))&&o.val().length!=0&&(s=Validator.languages[Validator.language].password.min.replace("{characters}",o.attr("data-min")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-max")!=undefined&&o.val().length>parseFloat(o.attr("data-max"))&&(s=Validator.languages[Validator.language].password.max.replace("{characters}",o.attr("data-max")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-match")!=undefined&&o.val()!=$("#"+o.attr("data-match")).val()&&(s=Validator.languages[Validator.language].password.match,Validator.ShowControlError(t,u,s,f),h=!0)),o.is("input")&&o.attr("type")=="radio"&&(o.attr("data-required")==undefined||o.is(":checked")||o.attr("data-required-if")!=undefined||(Validator.ShowControlError(t,u,s,f),h=!0)),o.is("input")&&o.attr("type")=="checkbox"&&(o.attr("data-required")==undefined||o.is(":checked")||o.attr("data-required-if")!=undefined||(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].checkbox.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-required-if")!=undefined&&o.val()==""&&(o.attr("data-required-if-value")==undefined&&$("#"+o.attr("data-required-if")).is(":checked")||o.attr("data-required-if-value")!=undefined&&$("#"+o.attr("data-required-if")).val()==o.attr("data-required-if-value"))&&(Validator.showError(t,Validator.languages[Validator.language].checkbox.required),s=Validator.languages[Validator.language].checkbox.required,Validator.ShowControlError(t,u,s,f),h=!0)),o.is("select")&&(o.attr("data-required")!=undefined&&(o.val()==undefined||o.val()==""||o.val()=="0")&&o.attr("data-required-if")==undefined&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].select.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-required-if")!=undefined&&o.val()==""&&(o.attr("data-required-if-value")==undefined&&$("#"+o.attr("data-required-if")).is(":checked")||o.attr("data-required-if-value")!=undefined&&$("#"+o.attr("data-required-if")).val()==o.attr("data-required-if-value"))&&(s=Validator.languages[Validator.language].select.required,Validator.ShowControlError(t,u,s,f),h=!0)),o.is("textarea")&&(o.attr("data-required")!=undefined&&o.val()==""&&o.attr("data-required-if")==undefined&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].textarea.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-required-if")!=undefined&&o.val()==""&&(o.attr("data-required-if-value")==undefined&&$("#"+o.attr("data-required-if")).is(":checked")||o.attr("data-required-if-value")!=undefined&&$("#"+o.attr("data-required-if")).val()==o.attr("data-required-if-value"))&&(s=Validator.languages[Validator.language].textarea.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-min")!=undefined&&o.val().length<parseFloat(o.attr("data-min"))&&o.val().length!=0&&(s=Validator.languages[Validator.language].textarea.min.replace("{characters}",o.attr("data-min")),Validator.ShowControlError(t,u,s,f),h=!0),o.attr("data-max")!=undefined&&o.val().length>parseFloat(o.attr("data-max"))&&(s=Validator.languages[Validator.language].textarea.max.replace("{characters}",o.attr("data-min")),Validator.ShowControlError(t,u,s,f),h=!0),v!=undefined))switch(v){case"url":a=/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_{},.~+=-]*)?(\#[-a-z\d_]*)?$/i;a.test(o.val())||o.val()==""||(s=Validator.languages[Validator.language].textarea.url,Validator.ShowControlError(t,u,s,f),h=!0)}return o.is("span")&&(o.attr(nsConstants.DATA_SFW_CONTROL_TYPE)==nsConstants.SFW_RADIO_BUTTON_LIST&&o.attr("data-required")!=undefined&&o.find('input[type="radio"]:checked').length==0&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].radioButtonList.required,Validator.ShowControlError(t,u,s,f),h=!0),o.attr(nsConstants.DATA_SFW_CONTROL_TYPE)==nsConstants.SFW_CHECKBOX_LIST&&o.attr("data-required")!=undefined&&o.find('input[type="checkbox"]:checked').length==0&&(s=o.attr("message-required"),s=s!=null&&s!=""?s:Validator.languages[Validator.language].checkboxList.required,Validator.ShowControlError(t,u,s,f),h=!0)),h&&r==null&&(r=t,o.focus()),h},compareValidator:function(n,t,i){var f=!0,r=n.val(),u=t.val();n.data(nsConstants.AUTO_NUMERIC_INPUT_DATA)!=undefined&&t.data(nsConstants.AUTO_NUMERIC_INPUT_DATA)!=undefined?(r=n.autoNumeric("get"),u=t.autoNumeric("get")):i=="currency"?(r=r.replace(/[^0-9\.]+/g,""),u=u.replace(/[^0-9\.]+/g,"")):i=="date"&&(r=Sagitec.nsFormatting.DateTimeFormatter.ParseDateTime(r,n.attr("sfwDataFormat")),u=Sagitec.nsFormatting.DateTimeFormatter.ParseDateTime(u,n.attr("sfwDataFormat")));switch(n.attr("comp-operator")){case"":case"Equal":f=i=="date"?new Date(r)==new Date(u):Number(r)==Number(u);break;case"NotEqual":f=i=="date"?new Date(r)!=new Date(u):Number(r)!=Number(u);break;case"LessThan":f=i=="date"?new Date(r)<new Date(u):Number(r)<Number(u);break;case"LessThanEqual":f=i=="date"?new Date(r)<=new Date(u):Number(r)<=Number(u);break;case"GreaterThan":f=i=="date"?new Date(r)>new Date(u):Number(r)>Number(u);break;case"GreaterThanEqual":f=i=="date"?new Date(r)>=new Date(u):Number(r)>=Number(u)}return f},removeErrors:function(n){var t=$(n);t.find(".validator-error").each(function(){$(this).remove()});t.find(".error").each(function(){$(this).removeClass("error")});t.find(["input[type=text], input[type=password], input[type=radio], input[type=checkbox], select, textarea, span",nsConstants.RADIOBUTTON_LIST_SELECTOR+", span",nsConstants.CHECKBOX_LIST_SELECTOR].join("")).each(function(){$(this).attr("type")=="radio"||$(this).attr("type")=="checkbox"?$(this).closest("label").removeClass(Validator.elementErrorClass):$(this).removeClass(Validator.elementErrorClass)})},removeErrorForControl:function(n,t){var i=n.find(["#",t].join(""));Validator.removeError(i)},removeError:function(n){var t=$(n),i,r,u,f;t.attr("data-error-position")==undefined?(i="before",t.is("input")&&t.attr("type")=="checkbox"&&(i="before label")):i=t.attr("data-error-position");r=i.split(" ");u=r[1]==undefined?t:t.closest(r[1]);f=r[0]=="after"?u.next():u.prev();f!=undefined&&f.hasClass("validator-error")&&f.remove();u.removeClass(Validator.elementErrorClass)},ShowControlError:function(n,t,i,r){if(t){var u=nsCommon.GetValidationSummaryObject(i,n);u!=undefined&&u.istrErrorMessage!=undefined&&u.istrErrorMessage!=""&&r.push(u)}else Validator.showError(n,i)}};$(function(){$("form.validator").each(function(){$(this).submit(function(){return Validator.validate(this)})})}),function(n){n.idleTimer=function(t,i){var f;typeof t=="object"?(f=t,t=null):typeof t=="number"&&(f={timeout:t},t=null);i=i||document;f=n.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},f);var r=n(i),u=r.data("idleTimerObj")||{},e=function(t){var r=n.data(i,"idleTimerObj")||{},u;r.idle=!r.idle;r.olddate=+new Date;u=n.Event((r.idle?"idle":"active")+".idleTimer");n(i).trigger(u,[i,n.extend({},r),t])},s=function(){return},o=function(){var t=n.data(i,"idleTimerObj")||{};t.idle=t.idleBackup;t.olddate=+new Date;t.lastActive=t.olddate;t.remaining=null;clearTimeout(t.tId);t.idle||(t.tId=setTimeout(e,t.timeout))},h=function(){var t=n.data(i,"idleTimerObj")||{};t.remaining==null&&(t.remaining=t.timeout-(+new Date-t.olddate),clearTimeout(t.tId))},c=function(){var t=n.data(i,"idleTimerObj")||{};t.remaining!=null&&(t.idle||(t.tId=setTimeout(e,t.remaining)),t.remaining=null)},l=function(){var t=n.data(i,"idleTimerObj")||{};clearTimeout(t.tId);r.removeData("idleTimerObj");r.off("._idleTimer")},a=function(){var t=n.data(i,"idleTimerObj")||{},r;return t.idle?0:t.remaining!=null?t.remaining:(r=t.timeout-(+new Date-t.lastActive),r<0&&(r=0),r)};if(t===null&&typeof u.idle!="undefined")return o(),r;if(t!==null){if(t!==null&&typeof u.idle=="undefined")return!1;if(t==="destroy")return l(),r;if(t==="pause")return h(),r;if(t==="resume")return c(),r;if(t==="reset")return o(),r;if(t==="getRemainingTime")return a();if(t==="getElapsedTime")return+new Date-u.olddate;if(t==="getLastActiveTime")return u.lastActive;if(t==="isIdle")return u.idle}r.on(n.trim((f.events+" ").split(" ").join("._idleTimer ")),function(n){s(n)});return u=n.extend({},{olddate:+new Date,lastActive:+new Date,idle:f.idle,idleBackup:f.idle,timeout:f.timeout,remaining:null,tId:null,pageX:null,pageY:null}),u.idle||(u.tId=setTimeout(e,u.timeout)),n.data(i,"idleTimerObj",u),r};n.fn.idleTimer=function(t){return this[0]?n.idleTimer(t,this[0]):this}}(jQuery),function(n,t,i,r,u,f){
/*!
     * @overview es6-promise - a tiny implementation of Promises/A+.
     * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
     * @license   Licensed under MIT license
     *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
     * @version   2.0.1
     */
function lr(n,t,i,r,u){return ii(n,n,i,r,t,n.defaultView.pageXOffset,n.defaultView.pageYOffset).then(function(f){var e,s;o("Document cloned");e=kt+u;s="["+e+"='"+u+"']";n.querySelector(s).removeAttribute(e);var h=f.contentWindow,c=h.document.querySelector(s),l=typeof t.onclone=="function"?Promise.resolve(t.onclone(h.document)):Promise.resolve(!0);return l.then(function(){return dt(c,f,t,i,r)})})}function dt(n,i,r,u,f){var e=i.contentWindow,a=new lt(e.document),v=new l(r,a),c=st(n),y=r.type==="view"?u:vr(e.document),p=r.type==="view"?f:yr(e.document),h=new r.renderer(y,p,v,r,t),w=new s(n,h,a,v,r);return w.ready.then(function(){o("Finished rendering");var t;return t=r.type==="view"?gt(h.canvas,{width:h.canvas.width,height:h.canvas.height,top:0,left:0,x:0,y:0}):n===e.document.body||n===e.document.documentElement||r.canvas!=null?h.canvas:gt(h.canvas,{width:r.width!=null?r.width:c.width,height:r.height!=null?r.height:c.height,top:c.top,left:c.left,x:e.pageXOffset,y:e.pageYOffset}),ar(i,r),t})}function ar(n,t){t.removeContainer&&(n.parentNode.removeChild(n),o("Cleaned up container"))}function gt(n,i){var f=t.createElement("canvas"),r=Math.min(n.width-1,Math.max(0,i.left)),e=Math.min(n.width,Math.max(1,i.left+i.width)),u=Math.min(n.height-1,Math.max(0,i.top)),s=Math.min(n.height,Math.max(1,i.top+i.height));return f.width=i.width,f.height=i.height,o("Cropping canvas at:","left:",i.left,"top:",i.top,"width:",e-r,"height:",s-u),o("Resulting crop with width",i.width,"and height",i.height," with x",r,"and y",u),f.getContext("2d").drawImage(n,r,u,e-r,s-u,i.x,i.y,e-r,s-u),f}function vr(n){return Math.max(Math.max(n.body.scrollWidth,n.documentElement.scrollWidth),Math.max(n.body.offsetWidth,n.documentElement.offsetWidth),Math.max(n.body.clientWidth,n.documentElement.clientWidth))}function yr(n){return Math.max(Math.max(n.body.scrollHeight,n.documentElement.scrollHeight),Math.max(n.body.offsetHeight,n.documentElement.offsetHeight),Math.max(n.body.clientHeight,n.documentElement.clientHeight))}function ni(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}function pr(){return t.documentMode&&t.documentMode<=9}function ti(n,i){for(var u=n.nodeType===3?t.createTextNode(n.nodeValue):n.cloneNode(!1),r=n.firstChild;r;)(i===!0||r.nodeType!==1||r.nodeName!=="SCRIPT")&&u.appendChild(ti(r,i)),r=r.nextSibling;return u}function ii(n,t,i,r,u,f,e){kr(n);var s=pr()?ti(n.documentElement,u.javascriptEnabled):n.documentElement.cloneNode(!0),o=t.createElement("iframe");return o.className="html2canvas-container",o.style.visibility="hidden",o.style.position="fixed",o.style.left="-10000px",o.style.top="0px",o.style.border="0",o.width=i,o.height=r,o.scrolling="no",t.body.appendChild(o),new Promise(function(t){var i=o.contentWindow.document;ri(n.documentElement,s,"textarea");ri(n.documentElement,s,"select");o.contentWindow.onload=o.onload=function(){var r=setInterval(function(){i.body.childNodes.length>0&&(dr(n,i),clearInterval(r),u.type==="view"&&o.contentWindow.scrollTo(f,e),t(o))},50)};i.open();i.write("<!DOCTYPE html><html><\/html>");wr(n,f,e);i.replaceChild(u.javascriptEnabled===!0?i.adoptNode(s):fi(i.adoptNode(s)),i.documentElement);i.close()})}function ri(n,t,i){for(var u=n.getElementsByTagName(i),f=t.getElementsByTagName(i),e=u.length,r=0;r<e;r++)f[r].value=u[r].value}function wr(n,t,i){n.defaultView&&(t!==n.defaultView.pageXOffset||i!==n.defaultView.pageYOffset)&&n.defaultView.scrollTo(t,i)}function ui(t,i,r,u,f,e){return new uf(t,i,n.document).then(br(t)).then(function(n){return ii(n,r,u,f,e,0,0)})}function br(n){return function(i){var e=new DOMParser,r,u,f;try{r=e.parseFromString(i,"text/html")}catch(s){o("DOMParser not supported, falling back to createHTMLDocument");r=t.implementation.createHTMLDocument("");try{r.open();r.write(i);r.close()}catch(h){o("createHTMLDocument write not supported, falling back to document.body.innerHTML");r.body.innerHTML=i}}return u=r.querySelector("base"),u&&u.href.host||(f=r.createElement("base"),f.href=n,r.head.insertBefore(f,r.head.firstChild)),r}}function kr(n){[].slice.call(n.querySelectorAll("canvas"),0).forEach(function(n){n.setAttribute(d,"canvas-"+hr++)})}function dr(n,t){[].slice.call(n.querySelectorAll("["+d+"]"),0).forEach(function(n){try{var i=t.querySelector("["+d+'="'+n.getAttribute(d)+'"]');i&&(i.width=n.width,i.height=n.height,i.getContext("2d").putImageData(n.getContext("2d").getImageData(0,0,n.width,n.height),0,0))}catch(r){o("Unable to copy canvas content from",n,r)}n.removeAttribute(d)})}function fi(n){return[].slice.call(n.childNodes,0).filter(gr).forEach(function(t){t.tagName==="SCRIPT"?n.removeChild(t):fi(t)}),n}function gr(n){return n.nodeType===Node.ELEMENT_NODE}function nu(n){var i=t.createElement("a");return i.href=n,i.href=i.href,i}function h(n){this.r=0;this.g=0;this.b=0;this.a=null;var t=this.fromArray(n)||this.namedColor(n)||this.rgb(n)||this.rgba(n)||this.hex6(n)||this.hex3(n)}function g(n){if(this.src=n,o("DummyImageContainer for",n),!this.promise||!this.image){o("Initiating DummyImageContainer");g.prototype.image=new Image;var t=this.image;g.prototype.promise=new Promise(function(n,i){t.onload=n;t.onerror=i;t.src=ni();t.complete===!0&&n(t)})}}function tu(n,i){var r=t.createElement("div"),u=t.createElement("img"),f=t.createElement("span"),e="Hidden Text",o,s;r.style.visibility="hidden";r.style.fontFamily=n;r.style.fontSize=i;r.style.margin=0;r.style.padding=0;t.body.appendChild(r);u.src=ni();u.width=1;u.height=1;u.style.margin=0;u.style.padding=0;u.style.verticalAlign="baseline";f.style.fontFamily=n;f.style.fontSize=i;f.style.margin=0;f.style.padding=0;f.appendChild(t.createTextNode(e));r.appendChild(f);r.appendChild(u);o=u.offsetTop-f.offsetTop+1;r.removeChild(f);r.appendChild(t.createTextNode(e));r.style.lineHeight="normal";u.style.verticalAlign="super";s=u.offsetTop-r.offsetTop+1;t.body.removeChild(r);this.baseline=o;this.lineWidth=1;this.middle=s}function li(){this.data={}}function ai(n,t,i){this.image=null;this.src=n;var r=this,u=st(n);this.promise=(t?new Promise(function(t){n.contentWindow.document.URL==="about:blank"||n.contentWindow.document.documentElement==null?n.contentWindow.onload=n.onload=function(){t(n)}:t(n)}):this.proxyLoad(i.proxy,u,i)).then(function(n){return html2canvas(n.contentWindow.document.documentElement,{type:"view",width:n.width,height:n.height,proxy:i.proxy,javascriptEnabled:i.javascriptEnabled,removeContainer:i.removeContainer,allowTaint:i.allowTaint,imageTimeout:i.imageTimeout/2})}).then(function(n){return r.image=n})}function nt(n){this.src=n.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(!0)}function at(n,t){this.src=n;this.image=new Image;var i=this;this.tainted=null;this.promise=new Promise(function(r,u){i.image.onload=r;i.image.onerror=u;t&&(i.image.crossOrigin="anonymous");i.image.src=n;i.image.complete===!0&&r(i.image)})}function l(t,i){this.link=null;this.options=t;this.support=i;this.origin=this.getOrigin(n.location.href)}function et(n){nt.apply(this,arguments);this.type=this.TYPES.LINEAR;var t=n.args[0].match(this.stepRegExp)===null;t?n.args[0].split(" ").reverse().forEach(function(n){switch(n){case"left":this.x0=0;this.x1=1;break;case"top":this.y0=0;this.y1=1;break;case"right":this.x0=1;this.x1=0;break;case"bottom":this.y0=1;this.y1=0;break;case"to":var t=this.y0,i=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=i;this.y1=t}},this):(this.y0=0,this.y1=1);this.colorStops=n.args.slice(t?1:0).map(function(n){var t=n.match(this.stepRegExp);return{color:new h(t[1]),stop:t[3]==="%"?t[2]/100:null}},this);this.colorStops[0].stop===null&&(this.colorStops[0].stop=0);this.colorStops[this.colorStops.length-1].stop===null&&(this.colorStops[this.colorStops.length-1].stop=1);this.colorStops.forEach(function(n,t){n.stop===null&&this.colorStops.slice(t).some(function(i,r){return i.stop!==null?(n.stop=(i.stop-this.colorStops[t-1].stop)/(r+1)+this.colorStops[t-1].stop,!0):!1},this)},this)}function o(){n.html2canvas.logging&&n.console&&n.console.log&&Function.prototype.bind.call(n.console.log,n.console).apply(n.console,[Date.now()-n.html2canvas.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}function e(n,t){this.node=n;this.parent=t;this.stack=null;this.bounds=null;this.borders=null;this.clip=[];this.backgroundClip=[];this.offsetBounds=null;this.visible=null;this.computedStyles=null;this.colors={};this.styles={};this.backgroundImages=null;this.transformData=null;this.transformMatrix=null;this.isPseudoElement=!1;this.opacity=null}function iu(n){var t=n.options[n.selectedIndex||0];return t?t.text||"":""}function ru(n){if(n&&n[1]==="matrix")return n[2].split(",").map(function(n){return parseFloat(n.trim())})}function ot(n){return n.toString().indexOf("%")!==-1}function vi(n){var a=" \r\n\t",t,i,o,h,u,l=[],r=0,s=0,f,e,c=function(){t&&(i.substr(0,1)==='"'&&(i=i.substr(1,i.length-2)),i&&e.push(i),t.substr(0,1)==="-"&&(h=t.indexOf("-",1)+1)>0&&(o=t.substr(0,h),t=t.substr(h)),l.push({prefix:o,method:t.toLowerCase(),value:u,args:e,image:null}));e=[];t=o=i=u=""};return e=[],t=o=i=u="",n.split("").forEach(function(n){if(r!==0||!(a.indexOf(n)>-1)){switch(n){case'"':f?f===n&&(f=null):f=n;break;case"(":if(f)break;else{if(r===0){r=1;u+=n;return}s++}break;case")":if(f)break;else if(r===1){if(s===0){r=0;u+=n;c();return}s--}break;case",":if(f)break;else{if(r===0){c();return}if(r===1&&s===0&&!t.match(/^url$/i)){e.push(i);i="";u+=n;return}}}u+=n;r===0?t+=n:i+=n}}),c(),l}function uu(n){return n.replace("px","")}function fu(n){return parseFloat(n)}function st(n){if(n.getBoundingClientRect){var t=n.getBoundingClientRect(),i=n.offsetWidth==null?t.width:n.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+i,left:t.left,width:i,height:n.offsetHeight==null?t.height:n.offsetHeight}}return{}}function vt(n){var t=n.offsetParent?vt(n.offsetParent):{top:0,left:0};return{top:n.offsetTop+t.top,bottom:n.offsetTop+n.offsetHeight+t.top,right:n.offsetLeft+t.left+n.offsetWidth,left:n.offsetLeft+t.left,width:n.offsetWidth,height:n.offsetHeight}}function s(n,t,i,r,u){var f,s;o("Starting NodeParser");this.renderer=t;this.options=u;this.range=null;this.support=i;this.renderQueue=[];this.stack=new ft(!0,1,n.ownerDocument,null);f=new e(n,null);u.background&&t.rectangle(0,0,t.width,t.height,new h(u.background));n===n.ownerDocument.documentElement&&(s=new e(f.color("backgroundColor").isTransparent()?n.ownerDocument.body:n.ownerDocument.documentElement,null),t.rectangle(0,0,t.width,t.height,s.color("backgroundColor")));f.visibile=f.isElementVisible();this.createPseudoHideStyles(n.ownerDocument);this.disableAnimations(n.ownerDocument);this.nodes=bt([f].concat(this.getChildren(f)).filter(function(n){return n.visible=n.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new li;o("Fetched nodes, total:",this.nodes.length);o("Calculate overflow clips");this.calculateOverflowClips();o("Start fetching images");this.images=r.fetch(this.nodes.filter(rt));this.ready=this.images.ready.then(ct(function(){return o("Images loaded, starting parsing"),o("Creating stacking contexts"),this.createStackingContexts(),o("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),o("Render queue created with "+this.renderQueue.length+" items"),new Promise(ct(function(n){u.async?typeof u.async=="function"?u.async.call(this,this.renderQueue,n):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,n)):n():(this.renderQueue.forEach(this.paint,this),n())},this))},this))}function yi(n){return n.parent&&n.parent.clip.length}function eu(n){return n.replace(/(\-[a-z])/g,function(n){return n.toUpperCase().replace("-","")})}function pi(){}function wi(n,t,i,r){return n.map(function(u,f){if(u.width>0){var o=t.left,e=t.top,s=t.width,h=t.height-n[2].width;switch(f){case 0:h=n[0].width;u.args=ht({c1:[o,e],c2:[o+s,e],c3:[o+s-n[1].width,e+h],c4:[o+n[3].width,e+h]},r[0],r[1],i.topLeftOuter,i.topLeftInner,i.topRightOuter,i.topRightInner);break;case 1:o=t.left+t.width-n[1].width;s=n[1].width;u.args=ht({c1:[o+s,e],c2:[o+s,e+h+n[2].width],c3:[o,e+h],c4:[o,e+n[0].width]},r[1],r[2],i.topRightOuter,i.topRightInner,i.bottomRightOuter,i.bottomRightInner);break;case 2:e=e+t.height-n[2].width;h=n[2].width;u.args=ht({c1:[o+s,e+h],c2:[o,e+h],c3:[o+n[3].width,e],c4:[o+s-n[3].width,e]},r[2],r[3],i.bottomRightOuter,i.bottomRightInner,i.bottomLeftOuter,i.bottomLeftInner);break;case 3:s=n[3].width;u.args=ht({c1:[o,e+h+n[2].width],c2:[o,e],c3:[o+s,e+n[0].width],c4:[o+s,e+h]},r[3],r[0],i.bottomLeftOuter,i.bottomLeftInner,i.topLeftOuter,i.topLeftInner)}}return u})}function p(n,t,i,r){var s=4*((Math.sqrt(2)-1)/3),e=i*s,o=r*s,u=n+i,f=t+r;return{topLeft:b({x:n,y:f},{x:n,y:f-o},{x:u-e,y:t},{x:u,y:t}),topRight:b({x:n,y:t},{x:n+e,y:t},{x:u,y:f-o},{x:u,y:f}),bottomRight:b({x:u,y:t},{x:u,y:t+o},{x:n+e,y:f},{x:n,y:f}),bottomLeft:b({x:u,y:f},{x:u-e,y:f},{x:n,y:t+o},{x:n,y:t})}}function bi(n,t,i){var r=n.left,u=n.top,f=n.width,e=n.height,a=t[0][0],v=t[0][1],o=t[1][0],y=t[1][1],s=t[2][0],h=t[2][1],w=t[3][0],c=t[3][1],l=f-o,b=e-h,k=f-s,d=e-c;return{topLeftOuter:p(r,u,a,v).topLeft.subdivide(.5),topLeftInner:p(r+i[3].width,u+i[0].width,Math.max(0,a-i[3].width),Math.max(0,v-i[0].width)).topLeft.subdivide(.5),topRightOuter:p(r+l,u,o,y).topRight.subdivide(.5),topRightInner:p(r+Math.min(l,f+i[3].width),u+i[0].width,l>f+i[3].width?0:o-i[3].width,y-i[0].width).topRight.subdivide(.5),bottomRightOuter:p(r+k,u+b,s,h).bottomRight.subdivide(.5),bottomRightInner:p(r+Math.min(k,f-i[3].width),u+Math.min(b,e+i[0].width),Math.max(0,s-i[1].width),h-i[2].width).bottomRight.subdivide(.5),bottomLeftOuter:p(r,u+d,w,c).bottomLeft.subdivide(.5),bottomLeftInner:p(r+i[3].width,u+d,Math.max(0,w-i[3].width),c-i[2].width).bottomLeft.subdivide(.5)}}function b(n,t,i,r){var u=function(n,t,i){return{x:n.x+(t.x-n.x)*i,y:n.y+(t.y-n.y)*i}};return{start:n,startControl:t,endControl:i,end:r,subdivide:function(f){var e=u(n,t,f),o=u(t,i,f),s=u(i,r,f),h=u(e,o,f),c=u(o,s,f),l=u(h,c,f);return[b(n,e,h,l),b(l,c,s,r)]},curveTo:function(n){n.push(["bezierCurve",t.x,t.y,i.x,i.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",i.x,i.y,t.x,t.y,n.x,n.y])}}}function ht(n,t,i,r,u,f,e){var o=[];return t[0]>0||t[1]>0?(o.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(o)):o.push(["line",n.c1[0],n.c1[1]]),i[0]>0||i[1]>0?(o.push(["line",f[0].start.x,f[0].start.y]),f[0].curveTo(o),o.push(["line",e[0].end.x,e[0].end.y]),e[0].curveToReversed(o)):(o.push(["line",n.c2[0],n.c2[1]]),o.push(["line",n.c3[0],n.c3[1]])),t[0]>0||t[1]>0?(o.push(["line",u[1].end.x,u[1].end.y]),u[1].curveToReversed(o)):o.push(["line",n.c4[0],n.c4[1]]),o}function w(n,t,i,r,u,f,e){t[0]>0||t[1]>0?(n.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(n),r[1].curveTo(n)):n.push(["line",f,e]);(i[0]>0||i[1]>0)&&n.push(["line",u[0].start.x,u[0].start.y])}function ou(n){return n.cssInt("zIndex")<0}function su(n){return n.cssInt("zIndex")>0}function ki(n){return n.cssInt("zIndex")===0}function di(n){return["inline","inline-block","inline-table"].indexOf(n.css("display"))!==-1}function gi(n){return n instanceof ft}function hu(n){return n.node.data.trim().length>0}function cu(n){return/^(normal|none|0px)$/.test(n.parent.css("letterSpacing"))}function lu(n){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var r=n.css("border"+t+"Radius"),i=r.split(" ");return i.length<=1&&(i[1]=i[0]),i.map(bu)})}function au(n){return n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE}function vu(n){var t=n.css("position"),i=["absolute","relative","fixed"].indexOf(t)!==-1?n.css("zIndex"):"auto";return i!=="auto"}function tt(n){return n.css("position")!=="static"}function pt(n){return n.css("float")!=="none"}function yu(n){return["inline-block","inline-table"].indexOf(n.css("display"))!==-1}function it(n){var t=this;return function(){return!n.apply(t,arguments)}}function rt(n){return n.node.nodeType===Node.ELEMENT_NODE}function ut(n){return n.isPseudoElement===!0}function wt(n){return n.node.nodeType===Node.TEXT_NODE}function pu(n){return function(t,i){return t.cssInt("zIndex")+n.indexOf(t)/n.length-(i.cssInt("zIndex")+n.indexOf(i)/n.length)}}function wu(n){return n.getOpacity()<1}function ct(n,t){return function(){return n.apply(t,arguments)}}function bu(n){return parseInt(n,10)}function ku(n){return n.width}function du(n){return n.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(n.node.nodeName)===-1}function bt(n){return[].concat.apply([],n)}function gu(n){var t=n.substr(0,1);return t===n.substr(n.length-1)&&t.match(/'|"/)?n.substr(1,n.length-2):n}function nf(t){for(var u=[],i=0,f=!1,r;t.length;)tf(t[i])===f?(r=t.splice(0,i),r.length&&u.push(n.html2canvas.punycode.ucs2.encode(r)),f=!f,i=0):i++,i>=t.length&&(r=t.splice(0,i),r.length&&u.push(n.html2canvas.punycode.ucs2.encode(r)));return u}function tf(n){return[32,13,10,9,45].indexOf(n)!==-1}function rf(n){return/[^\u0000-\u00ff]/.test(n)}function uf(n,t,i){if(!t)return Promise.reject("No proxy configured");var r=rr(nr),u=ur(t,n,r);return nr?sr(u):ir(i,u,r).then(function(n){return fr(n.content)})}function ef(n,t,i){var r=rr(tr),u=ur(t,n,r);return tr?Promise.resolve(u):ir(i,u,r).then(function(n){return"data:"+n.type+";base64,"+n.content})}function ir(t,i,r){return new Promise(function(u,f){var e=t.createElement("script"),o=function(){delete n.html2canvas.proxy[r];t.body.removeChild(e)};n.html2canvas.proxy[r]=function(n){o();u(n)};e.src=i;e.onerror=function(n){o();f(n)};t.body.appendChild(e)})}function rr(n){return n?"":"html2canvas_"+Date.now()+"_"+ ++ff+"_"+Math.round(Math.random()*1e5)}function ur(n,t,i){return n+"?url="+encodeURIComponent(t)+(i.length?"&callback=html2canvas.proxy."+i:"")}function of(n,i){var f=t.createElement("script"),u=t.createElement("a"),r;u.href=n;n=u.href;this.src=n;this.image=new Image;r=this;this.promise=new Promise(function(u,f){r.image.crossOrigin="Anonymous";r.image.onload=u;r.image.onerror=f;new ef(n,i,t).then(function(n){r.image.src=n})["catch"](f)})}function a(n,t,i){e.call(this,n,t);this.isPseudoElement=!0;this.before=i===":before"}function v(n,t,i,r,u){this.width=n;this.height=t;this.images=i;this.options=r;this.document=u}function ft(n,t,i,r){e.call(this,i,r);this.ownStacking=n;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*t}function lt(n){this.rangeBounds=this.testRangeBounds(n);this.cors=this.testCORS();this.svg=this.testSVG()}function y(n){this.src=n;this.image=null;var t=this;this.promise=this.hasFabric().then(function(){return t.isInline(n)?Promise.resolve(t.inlineFormatting(n)):sr(n)}).then(function(n){return new Promise(function(i){html2canvas.fabric.loadSVGFromString(n,t.createCanvas.call(t,i))})})}function fr(n){for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=n.length,s,e,r,u,f,o,h,c="",t=0;t<l;t+=4)s=i.indexOf(n[t]),e=i.indexOf(n[t+1]),r=i.indexOf(n[t+2]),u=i.indexOf(n[t+3]),f=s<<2|e>>4,o=(e&15)<<4|r>>2,h=(r&3)<<6|u,c+=r===64?String.fromCharCode(f):u===64||u===-1?String.fromCharCode(f,o):String.fromCharCode(f,o,h);return c}function er(n,t){this.src=n;this.image=null;var i=this;this.promise=t?new Promise(function(t,r){i.image=new Image;i.image.onload=t;i.image.onerror=r;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);i.image.complete===!0&&t(i.image)}):this.hasFabric().then(function(){return new Promise(function(t){html2canvas.fabric.parseSVGDocument(n,i.createCanvas.call(i,t))})})}function k(n,t){e.call(this,n,t)}function sf(n,t,i){if(n.length>0)return t+i.toUpperCase()}function or(n){nt.apply(this,arguments);this.type=n.args[0]==="linear"?this.TYPES.LINEAR:this.TYPES.RADIAL}function sr(n){return new Promise(function(t,i){var r=new XMLHttpRequest;r.open("GET",n);r.onload=function(){r.status===200?t(r.responseText):i(new Error(r.statusText))};r.onerror=function(){i(new Error("Network Error"))};r.send()})}function c(n,t){v.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");this.options.canvas||(this.canvas.width=n,this.canvas.height=t);this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};o("Initialized CanvasRenderer with size",n,"x",t)}function hf(n){return n.length>0}var ei,oi,si,hi,ci,yt;if(function(){function a(n,t){l[c]=n;l[c+1]=t;c+=2;2===c&&ut()}function y(n){return"function"==typeof n}function et(){return function(){process.nextTick(p)}}function ot(){var n=0,r=new rt(p),i=t.createTextNode("");return r.observe(i,{characterData:!0}),function(){i.data=n=++n%2}}function st(){var n=new MessageChannel;return n.port1.onmessage=p,function(){n.port2.postMessage(0)}}function ht(){return function(){setTimeout(p,1)}}function p(){for(var n=0;n<c;n+=2)l[n](l[n+1]),l[n]=void 0,l[n+1]=void 0;c=0}function s(){}function ct(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function lt(n,t,r){a(function(n){var u=!1,e=ct(r,t,function(i){u||(u=!0,t!==i?h(n,i):f(n,i))},function(t){u||(u=!0,i(n,t))});!u&&e&&(u=!0,i(n,e))},n)}function at(n,t){1===t.a?f(n,t.b):2===n.a?i(n,t.b):w(t,void 0,function(t){h(n,t)},function(t){i(n,t)})}function h(n,t){if(n===t)i(n,new TypeError("You cannot resolve a promise with itself"));else if("function"==typeof t||"object"==typeof t&&null!==t)if(t.constructor===n.constructor)at(n,t);else{var r;try{r=t.then}catch(u){v.error=u;r=v}r===v?i(n,v.error):void 0===r?f(n,t):y(r)?lt(n,t,r):f(n,t)}else f(n,t)}function vt(n){n.f&&n.f(n.b);d(n)}function f(n,t){void 0===n.a&&(n.b=t,n.a=1,0!==n.e.length&&a(d,n))}function i(n,t){void 0===n.a&&(n.a=2,n.b=t,a(vt,n))}function w(n,t,i,r){var u=n.e,f=u.length;n.f=null;u[f]=t;u[f+1]=i;u[f+2]=r;0===f&&n.a&&a(d,n)}function d(n){var i=n.e,e=n.a,r,u,f,t;if(0!==i.length){for(f=n.b,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?tt(e,r,u,f):u(f);n.e.length=0}}function nt(){this.error=null}function tt(n,t,r,u){var s=y(r),e,c,o,l;if(s){try{e=r(u)}catch(a){b.error=a;e=b}if(e===b?(l=!0,c=e.error,e=null):o=!0,t===e){i(t,new TypeError("A promises callback cannot return that same promise."));return}}else e=u,o=!0;void 0===t.a&&(s&&o?h(t,e):l?i(t,c):1===n?f(t,e):2===n&&i(t,e))}function yt(n,t){try{t(function(t){h(n,t)},function(t){i(n,t)})}catch(r){i(n,r)}}function e(n,t,r,u){this.n=n;this.c=new n(s,u);this.i=r;this.o(t)?(this.m=t,this.d=this.length=t.length,this.l(),0===this.length?f(this.c,this.b):(this.length=this.length||0,this.k(),0===this.d&&f(this.c,this.b))):i(this.c,this.p())}function o(n){if(ft++,this.b=this.a=void 0,this.e=[],s!==n){if(!y(n))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof o))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");yt(this,n)}}var it=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},c=0,g="undefined"!=typeof n?n:{},rt=g.MutationObserver||g.WebKitMutationObserver,g="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,l=Array(1e3),ut,v,b,ft,k;ut="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?et():rt?ot():g?st():ht();v=new nt;b=new nt;e.prototype.o=function(n){return it(n)};e.prototype.p=function(){return Error("Array Methods must be provided an Array")};e.prototype.l=function(){this.b=Array(this.length)};e.prototype.k=function(){for(var t=this.length,i=this.c,r=this.m,n=0;void 0===i.a&&n<t;n++)this.j(r[n],n)};e.prototype.j=function(n,t){var i=this.n;"object"==typeof n&&null!==n?n.constructor===i&&void 0!==n.a?(n.f=null,this.g(n.a,t,n.b)):this.q(i.resolve(n),t):(this.d--,this.b[t]=this.h(n))};e.prototype.g=function(n,t,r){var u=this.c;void 0===u.a&&(this.d--,this.i&&2===n?i(u,r):this.b[t]=this.h(r));0===this.d&&f(u,this.b)};e.prototype.h=function(n){return n};e.prototype.q=function(n,t){var i=this;w(n,void 0,function(n){i.g(1,t,n)},function(n){i.g(2,t,n)})};ft=0;o.all=function(n,t){return new e(this,n,!0,t).c};o.race=function(n,t){function e(n){h(r,n)}function o(n){i(r,n)}var r=new this(s,t),f,u;if(!it(n))return i(r,new TypeError("You must pass an array to race.")),r;for(f=n.length,u=0;void 0===r.a&&u<f;u++)w(this.resolve(n[u]),void 0,e,o);return r};o.resolve=function(n,t){if(n&&"object"==typeof n&&n.constructor===this)return n;var i=new this(s,t);return h(i,n),i};o.reject=function(n,t){var r=new this(s,t);return i(r,n),r};o.prototype={constructor:o,then:function(n,t){var i=this.a,r,u,f;return 1===i&&!n||2===i&&!t?this:(r=new this.constructor(s),u=this.b,i?(f=arguments[i-1],a(function(){tt(i,r,f,u)})):w(this,r,n,t),r)},"catch":function(n){return this.then(null,n)}};k={Promise:o,polyfill:function(){var t;t="undefined"!=typeof r?r:"undefined"!=typeof n&&n.document?n:self;"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var n;return new t.Promise(function(t){n=t}),y(n)}()||(t.Promise=o)}};"function"==typeof u&&u.amd?u(function(){return k}):"undefined"!=typeof module&&module.exports?module.exports=k:"undefined"!=typeof this&&(this.ES6Promise=k)}.call(n),n&&n.ES6Promise.polyfill(),typeof t=="undefined"||typeof Object.create!="function"||typeof t.createElement("canvas").getContext!="function"){(n||module.exports).html2canvas=function(){return Promise.reject("No canvas support")};return}
/*! https://mths.be/punycode v1.3.1 by @mathias */
(function(n){function s(n){throw RangeError(at[n]);}function g(n,t){for(var i=n.length,r=[];i--;)r[i]=t(n[i]);return r}function nt(n,t){var i=n.split("@"),r="",u,f;return i.length>1&&(r=i[0]+"@",n=i[1]),u=n.split(lt),f=g(u,t).join("."),r+f}function tt(n){for(var r=[],i=0,f=n.length,t,u;i<f;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<f?(u=n.charCodeAt(i++),(u&64512)==56320?r.push(((t&1023)<<10)+(u&1023)+65536):(r.push(t),i--)):r.push(t);return r}function it(n){return g(n,function(n){var t="";return n>65535&&(n-=65536,t+=l(n>>>10&1023|55296),n=56320|n&1023),t+l(n)}).join("")}function vt(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:t}function rt(n,t){return n+22+75*(n<26)-((t!=0)<<5)}function ut(n,i,r){var u=0;for(n=r?f(n/st):n>>1,n+=f(n/i);n>p*c>>1;u+=t)n=f(n/p);return f(u+(p+1)*n/(n+ot))}function ft(n){var v=[],ft=n.length,u,i=0,g=k,p=b,r,e,w,nt,o,l,a,tt,rt;for(r=n.lastIndexOf(d),r<0&&(r=0),e=0;e<r;++e)n.charCodeAt(e)>=128&&s("not-basic"),v.push(n.charCodeAt(e));for(w=r>0?r+1:0;w<ft;){for(nt=i,o=1,l=t;;l+=t){if(w>=ft&&s("invalid-input"),a=vt(n.charCodeAt(w++)),(a>=t||a>f((h-i)/o))&&s("overflow"),i+=a*o,tt=l<=p?y:l>=p+c?c:l-p,a<tt)break;rt=t-tt;o>f(h/rt)&&s("overflow");o*=rt}u=v.length+1;p=ut(i-nt,u,nt==0);f(i/u)>h-g&&s("overflow");g+=f(i/u);i%=u;v.splice(i++,0,g)}return it(v)}function et(n){var u,e,v,et,p,i,o,w,g,nt,r,a=[],it,ft,ot,st;for(n=tt(n),it=n.length,u=k,e=0,p=b,i=0;i<it;++i)r=n[i],r<128&&a.push(l(r));for(v=et=a.length,et&&a.push(d);v<it;){for(o=h,i=0;i<it;++i)r=n[i],r>=u&&r<o&&(o=r);for(ft=v+1,o-u>f((h-e)/ft)&&s("overflow"),e+=(o-u)*ft,u=o,i=0;i<it;++i)if(r=n[i],r<u&&++e>h&&s("overflow"),r==u){for(w=e,g=t;;g+=t){if(nt=g<=p?y:g>=p+c?c:g-p,w<nt)break;st=w-nt;ot=t-nt;a.push(l(rt(nt+st%ot,0)));w=f(st/ot)}a.push(l(rt(w,0)));p=ut(e,ft,v==et);e=0;++v}++e;++u}return a.join("")}function yt(n){return nt(n,function(n){return ht.test(n)?ft(n.slice(4).toLowerCase()):n})}function pt(n){return nt(n,function(n){return ct.test(n)?"xn--"+et(n):n})}var v=typeof i=="object"&&i&&!i.nodeType&&i,w=typeof module=="object"&&module&&!module.nodeType&&module,e=typeof r=="object"&&r;(e.global===e||e.window===e||e.self===e)&&(n=e);var o,h=2147483647,t=36,y=1,c=26,ot=38,st=700,b=72,k=128,d="-",ht=/^xn--/,ct=/[^\x20-\x7E]/,lt=/[\x2E\u3002\uFF0E\uFF61]/g,at={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=t-y,f=Math.floor,l=String.fromCharCode,a;if(o={version:"1.3.1",ucs2:{decode:tt,encode:it},decode:ft,encode:et,toASCII:pt,toUnicode:yt},typeof u=="function"&&typeof u.amd=="object"&&u.amd)u("punycode",function(){return o});else if(v&&w)if(module.exports==v)w.exports=o;else for(a in o)o.hasOwnProperty(a)&&(v[a]=o[a]);else n.punycode=o})(this);var kt="data-html2canvas-node",d="data-html2canvas-canvas-clone",hr=0,cr=0;n.html2canvas=function(i,r){var e=cr++,s,h,u;return(r=r||{},r.logging&&(n.html2canvas.logging=!0,n.html2canvas.start=Date.now()),r.async=typeof r.async=="undefined"?!0:r.async,r.allowTaint=typeof r.allowTaint=="undefined"?!1:r.allowTaint,r.removeContainer=typeof r.removeContainer=="undefined"?!0:r.removeContainer,r.javascriptEnabled=typeof r.javascriptEnabled=="undefined"?!1:r.javascriptEnabled,r.imageTimeout=typeof r.imageTimeout=="undefined"?1e4:r.imageTimeout,r.renderer=typeof r.renderer=="function"?r.renderer:c,r.strict=!!r.strict,typeof i=="string")?typeof r.proxy!="string"?Promise.reject("Proxy must be used when rendering url"):(s=r.width!=null?r.width:n.innerWidth,h=r.height!=null?r.height:n.innerHeight,ui(nu(i),r.proxy,t,s,h,r).then(function(n){return dt(n.contentWindow.document.documentElement,n,r,s,h)})):(u=(i===f?[t.documentElement]:i.length?i:[i])[0],u.setAttribute(kt+e,e),lr(u.ownerDocument,r,u.ownerDocument.defaultView.innerWidth,u.ownerDocument.defaultView.innerHeight,e).then(function(n){if(typeof r.onrendered=="function"){o("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");r.onrendered(n)}return n}))};n.html2canvas.punycode=this.punycode;n.html2canvas.proxy={};h.prototype.darken=function(n){var t=1-n;return new h([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])};h.prototype.isTransparent=function(){return this.a===0};h.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};h.prototype.fromArray=function(n){return Array.isArray(n)&&(this.r=Math.min(n[0],255),this.g=Math.min(n[1],255),this.b=Math.min(n[2],255),n.length>3&&(this.a=n[3])),Array.isArray(n)};ei=/^#([a-f0-9]{3})$/i;h.prototype.hex3=function(n){var t=null;return(t=n.match(ei))!==null&&(this.r=parseInt(t[1][0]+t[1][0],16),this.g=parseInt(t[1][1]+t[1][1],16),this.b=parseInt(t[1][2]+t[1][2],16)),t!==null};oi=/^#([a-f0-9]{6})$/i;h.prototype.hex6=function(n){var t=null;return(t=n.match(oi))!==null&&(this.r=parseInt(t[1].substring(0,2),16),this.g=parseInt(t[1].substring(2,4),16),this.b=parseInt(t[1].substring(4,6),16)),t!==null};si=/^rgb\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3})\)$/;h.prototype.rgb=function(n){var t=null;return(t=n.match(si))!==null&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3])),t!==null};hi=/^rgba\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3}) *, *(\d+\.?\d*)\)$/;h.prototype.rgba=function(n){var t=null;return(t=n.match(hi))!==null&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3]),this.a=Number(t[4])),t!==null};h.prototype.toString=function(){return this.a!==null&&this.a!==1?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"};h.prototype.namedColor=function(n){var t=ci[n.toLowerCase()];if(t)this.r=t[0],this.g=t[1],this.b=t[2];else if(n.toLowerCase()==="transparent")return this.r=this.g=this.b=this.a=0,!0;return!!t};h.prototype.isColor=!0;ci={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};li.prototype.getMetrics=function(n,t){return this.data[n+"-"+t]===f&&(this.data[n+"-"+t]=new tu(n,t)),this.data[n+"-"+t]};ai.prototype.proxyLoad=function(n,t,i){var r=this.src;return ui(r.src,n,r.ownerDocument,t.width,t.height,i)};nt.prototype.TYPES={LINEAR:1,RADIAL:2};l.prototype.findImages=function(n){var t=[];return n.reduce(function(n,t){switch(t.node.nodeName){case"IMG":return n.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return n.concat([{args:[t.node],method:t.node.nodeName}])}return n},[]).forEach(this.addImage(t,this.loadImage),this),t};l.prototype.findBackgroundImage=function(n,t){return t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(n,this.loadImage),this),n};l.prototype.addImage=function(n,t){return function(i){i.args.forEach(function(r){this.imageExists(n,r)||(n.splice(0,0,t.call(this,i)),o("Added image #"+n.length,typeof r=="string"?r.substring(0,100):r))},this)}};l.prototype.hasImageBackground=function(n){return n.method!=="none"};l.prototype.loadImage=function(n){if(n.method==="url"){var t=n.args[0];return!this.isSVG(t)||this.support.svg||this.options.allowTaint?t.match(/data:image\/.*;base64,/i)?new at(t.replace(/url\(['"]{0,}|['"]{0,}\)$/ig,""),!1):this.isSameOrigin(t)||this.options.allowTaint===!0||this.isSVG(t)?new at(t,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new at(t,!0):this.options.proxy?new of(t,this.options.proxy):new g(t):new y(t)}return n.method==="linear-gradient"?new et(n):n.method==="gradient"?new or(n):n.method==="svg"?new er(n.args[0],this.support.svg):n.method==="IFRAME"?new ai(n.args[0],this.isSameOrigin(n.args[0].src),this.options):new g(n)};l.prototype.isSVG=function(n){return n.substring(n.length-3).toLowerCase()==="svg"||y.prototype.isInline(n)};l.prototype.imageExists=function(n,t){return n.some(function(n){return n.src===t})};l.prototype.isSameOrigin=function(n){return this.getOrigin(n)===this.origin};l.prototype.getOrigin=function(n){var i=this.link||(this.link=t.createElement("a"));return i.href=n,i.href=i.href,i.protocol+i.hostname+i.port};l.prototype.getPromise=function(n){return this.timeout(n,this.options.imageTimeout)["catch"](function(){var t=new g(n.src);return t.promise.then(function(t){n.image=t})})};l.prototype.get=function(n){var t=null;return this.images.some(function(i){return(t=i).src===n})?t:null};l.prototype.fetch=function(n){return this.images=n.reduce(ct(this.findBackgroundImage,this),this.findImages(n)),this.images.forEach(function(n,t){n.promise.then(function(){o("Succesfully loaded image #"+(t+1),n)},function(i){o("Failed loading image #"+(t+1),n,i)})}),this.ready=Promise.all(this.images.map(this.getPromise,this)),o("Finished searching images"),this};l.prototype.timeout=function(n,t){var i,r=Promise.race([n.promise,new Promise(function(r,u){var f=function(){o("Timed out loading image",n);u(n)};i=setTimeout(f,t)})]).then(function(n){return clearTimeout(i),n});return r["catch"](function(){clearTimeout(i)}),r};et.prototype=Object.create(nt.prototype);et.prototype.stepRegExp=/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/;e.prototype.cloneTo=function(n){n.visible=this.visible;n.borders=this.borders;n.bounds=this.bounds;n.clip=this.clip;n.backgroundClip=this.backgroundClip;n.computedStyles=this.computedStyles;n.styles=this.styles;n.backgroundImages=this.backgroundImages;n.opacity=this.opacity};e.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};e.prototype.assignStack=function(n){this.stack=n;n.children.push(this)};e.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:this.css("display")!=="none"&&this.css("visibility")!=="hidden"&&!this.node.hasAttribute("data-html2canvas-ignore")&&(this.node.nodeName!=="INPUT"||this.node.getAttribute("type")!=="hidden")};e.prototype.css=function(n){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[n]||(this.styles[n]=this.computedStyles[n])};e.prototype.prefixedCss=function(n){var t=this.css(n);return t===f&&["webkit","moz","ms","o"].some(function(i){return t=this.css(i+n.substr(0,1).toUpperCase()+n.substr(1)),t!==f},this),t===f?null:t};e.prototype.computedStyle=function(n){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,n)};e.prototype.cssInt=function(n){var t=parseInt(this.css(n),10);return isNaN(t)?0:t};e.prototype.color=function(n){return this.colors[n]||(this.colors[n]=new h(this.css(n)))};e.prototype.cssFloat=function(n){var t=parseFloat(this.css(n));return isNaN(t)?0:t};e.prototype.fontWeight=function(){var n=this.css("fontWeight");switch(parseInt(n,10)){case 401:n="bold";break;case 400:n="normal"}return n};e.prototype.parseClip=function(){var n=this.css("clip").match(this.CLIP);return n?{top:parseInt(n[1],10),right:parseInt(n[2],10),bottom:parseInt(n[3],10),left:parseInt(n[4],10)}:null};e.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=vi(this.css("backgroundImage")))};e.prototype.cssList=function(n,t){var i=(this.css(n)||"").split(",");return i=i[t||0]||i[0]||"auto",i=i.trim().split(" "),i.length===1&&(i=[i[0],i[0]]),i};e.prototype.parseBackgroundSize=function(n,t,i){var r=this.cssList("backgroundSize",i),u,e,o,f;if(ot(r[0]))u=n.width*parseFloat(r[0])/100;else{if(/contain|cover/.test(r[0]))return o=n.width/n.height,f=t.width/t.height,o<f^r[0]==="contain"?{width:n.height*f,height:n.height}:{width:n.width,height:n.width/f};u=parseInt(r[0],10)}return e=r[0]==="auto"&&r[1]==="auto"?t.height:r[1]==="auto"?u/t.width*t.height:ot(r[1])?n.height*parseFloat(r[1])/100:parseInt(r[1],10),r[0]==="auto"&&(u=e/t.height*t.width),{width:u,height:e}};e.prototype.parseBackgroundPosition=function(n,t,i,r){var u=this.cssList("backgroundPosition",i),f,e;return f=ot(u[0])?(n.width-(r||t).width)*(parseFloat(u[0])/100):parseInt(u[0],10),e=u[1]==="auto"?f/t.width*t.height:ot(u[1])?(n.height-(r||t).height)*parseFloat(u[1])/100:parseInt(u[1],10),u[0]==="auto"&&(f=e/t.height*t.width),{left:f,top:e}};e.prototype.parseBackgroundRepeat=function(n){return this.cssList("backgroundRepeat",n)[0]};e.prototype.parseTextShadows=function(){var r=this.css("textShadow"),u=[],t,i,n;if(r&&r!=="none")for(t=r.match(this.TEXT_SHADOW_PROPERTY),i=0;t&&i<t.length;i++)n=t[i].match(this.TEXT_SHADOW_VALUES),u.push({color:new h(n[0]),offsetX:n[1]?parseFloat(n[1].replace("px","")):0,offsetY:n[2]?parseFloat(n[2].replace("px","")):0,blur:n[3]?n[3].replace("px",""):0});return u};e.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),n=this.prefixedCss("transformOrigin").split(" ").map(uu).map(fu);n[0]+=t.left;n[1]+=t.top;this.transformData={origin:n,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData};e.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var n=this.prefixedCss("transform"),t=n?ru(n.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=t?t:[1,0,0,1,0,0]}return this.transformMatrix};e.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?vt(this.node):st(this.node))};e.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};e.prototype.getValue=function(){var n=this.node.value||"";return this.node.tagName==="SELECT"?n=iu(this.node):this.node.type==="password"&&(n=Array(n.length+1).join("•")),n.length===0?this.node.placeholder||"":n};e.prototype.MATRIX_PROPERTY=/(matrix)\((.+)\)/;e.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;e.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;e.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;s.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(n){if(rt(n)){ut(n)&&n.appendToDOM();n.borders=this.parseBorders(n);var i=n.css("overflow")==="hidden"?[n.borders.clip]:[],t=n.parseClip();t&&["absolute","fixed"].indexOf(n.css("position"))!==-1&&i.push([["rect",n.bounds.left+t.left,n.bounds.top+t.top,t.right-t.left,t.bottom-t.top]]);n.clip=yi(n)?n.parent.clip.concat(i):i;n.backgroundClip=n.css("overflow")!=="hidden"?n.clip.concat([n.borders.clip]):n.clip;ut(n)&&n.cleanDOM()}else wt(n)&&(n.clip=yi(n)?n.parent.clip:[]);ut(n)||(n.bounds=null)},this)};s.prototype.asyncRenderer=function(n,t,i){i=i||Date.now();this.paint(n[this.renderIndex++]);n.length===this.renderIndex?t():i+20>Date.now()?this.asyncRenderer(n,t,i):setTimeout(ct(function(){this.asyncRenderer(n,t)},this),0)};s.prototype.createPseudoHideStyles=function(n){this.createStyles(n,"."+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};s.prototype.disableAnimations=function(n){this.createStyles(n,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")};s.prototype.createStyles=function(n,t){var i=n.createElement("style");i.innerHTML=t;n.body.appendChild(i)};s.prototype.getPseudoElements=function(n){var t=[[n]],i,r;return n.node.nodeType===Node.ELEMENT_NODE&&(i=this.getPseudoElement(n,":before"),r=this.getPseudoElement(n,":after"),i&&t.push(i),r&&t.push(r)),bt(t)};s.prototype.getPseudoElement=function(n,i){var r=n.computedStyle(i),f,s,h;if(!r||!r.content||r.content==="none"||r.content==="-moz-alt-content"||r.display==="none")return null;var e=gu(r.content),c=e.substr(0,3)==="url",u=t.createElement(c?"img":"html2canvaspseudoelement"),o=new a(u,n,i);for(f=r.length-1;f>=0;f--)s=eu(r.item(f)),u.style[s]=r[s];return u.className=a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,c?(u.src=vi(e)[0].args[0],[o]):(h=t.createTextNode(e),u.appendChild(h),[o,new k(h,o)])};s.prototype.getChildren=function(n){return bt([].filter.call(n.node.childNodes,au).map(function(t){var i=[t.nodeType===Node.TEXT_NODE?new k(t,n):new e(t,n)].filter(du);return t.nodeType===Node.ELEMENT_NODE&&i.length&&t.tagName!=="TEXTAREA"?i[0].isElementVisible()?i.concat(this.getChildren(i[0])):[]:i},this))};s.prototype.newStackingContext=function(n,t){var i=new ft(t,n.getOpacity(),n.node,n.parent),r;n.cloneTo(i);r=t?i.getParentStack(this):i.parent.stack;r.contexts.push(i);n.stack=i};s.prototype.createStackingContexts=function(){this.nodes.forEach(function(n){rt(n)&&(this.isRootElement(n)||wu(n)||vu(n)||this.isBodyWithTransparentRoot(n)||n.hasTransform())?this.newStackingContext(n,!0):rt(n)&&(tt(n)&&ki(n)||yu(n)||pt(n))?this.newStackingContext(n,!1):n.assignStack(n.parent.stack)},this)};s.prototype.isBodyWithTransparentRoot=function(n){return n.node.nodeName==="BODY"&&n.parent.color("backgroundColor").isTransparent()};s.prototype.isRootElement=function(n){return n.parent===null};s.prototype.sortStackingContexts=function(n){n.contexts.sort(pu(n.contexts.slice(0)));n.contexts.forEach(this.sortStackingContexts,this)};s.prototype.parseTextBounds=function(n){return function(t,i,r){var u,f,e;if(n.parent.css("textDecoration").substr(0,4)!=="none"||t.trim().length!==0){if(this.support.rangeBounds&&!n.parent.hasTransform())return u=r.slice(0,i).join("").length,this.getRangeBounds(n.node,u,t.length);if(n.node&&typeof n.node.data=="string")return f=n.node.splitText(t.length),e=this.getWrapperBounds(n.node,n.parent.hasTransform()),n.node=f,e}else(!this.support.rangeBounds||n.parent.hasTransform())&&(n.node=n.node.splitText(t.length));return{}}};s.prototype.getWrapperBounds=function(n,t){var i=n.ownerDocument.createElement("html2canvaswrapper"),r=n.parentNode,f=n.cloneNode(!0),u;return i.appendChild(n.cloneNode(!0)),r.replaceChild(i,n),u=t?vt(i):st(i),r.replaceChild(f,i),u};s.prototype.getRangeBounds=function(n,t,i){var r=this.range||(this.range=n.ownerDocument.createRange());return r.setStart(n,t),r.setEnd(n,t+i),r.getBoundingClientRect()};s.prototype.parse=function(n){var r=n.contexts.filter(ou),i=n.children.filter(rt),t=i.filter(it(pt)),u=t.filter(it(tt)).filter(it(di)),f=i.filter(it(tt)).filter(pt),e=t.filter(it(tt)).filter(di),o=n.contexts.concat(t.filter(tt)).filter(ki),s=n.children.filter(wt).filter(hu),h=n.contexts.filter(su);r.concat(u).concat(f).concat(e).concat(o).concat(s).concat(h).forEach(function(n){this.renderQueue.push(n);gi(n)&&(this.parse(n),this.renderQueue.push(new pi))},this)};s.prototype.paint=function(n){try{n instanceof pi?this.renderer.ctx.restore():wt(n)?(ut(n.parent)&&n.parent.appendToDOM(),this.paintText(n),ut(n.parent)&&n.parent.cleanDOM()):this.paintNode(n)}catch(t){if(o(t),this.options.strict)throw t;}};s.prototype.paintNode=function(n){gi(n)&&(this.renderer.setOpacity(n.opacity),this.renderer.ctx.save(),n.hasTransform()&&this.renderer.setTransform(n.parseTransform()));n.node.nodeName==="INPUT"&&n.node.type==="checkbox"?this.paintCheckbox(n):n.node.nodeName==="INPUT"&&n.node.type==="radio"?this.paintRadio(n):this.paintElement(n)};s.prototype.paintElement=function(n){var t=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,t,n.borders.borders.map(ku))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){var i,r;switch(n.node.nodeName){case"svg":case"IFRAME":i=this.images.get(n.node);i?this.renderer.renderImage(n,t,n.borders,i):o("Error loading <"+n.node.nodeName+">",n.node);break;case"IMG":r=this.images.get(n.node.src);r?this.renderer.renderImage(n,t,n.borders,r):o("Error loading <img>",n.node.src);break;case"CANVAS":this.renderer.renderImage(n,t,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n)}},this)};s.prototype.paintCheckbox=function(n){var r=n.parseBounds(),i=Math.min(r.width,r.height),t={width:i-1,height:i-1,top:r.top,left:r.left},u=[3,3],f=[u,u,u,u],e=[1,1,1,1].map(function(n){return{color:new h("#A5A5A5"),width:n}}),o=bi(t,f,e);this.renderer.clip(n.backgroundClip,function(){this.renderer.rectangle(t.left+1,t.top+1,t.width-2,t.height-2,new h("#DEDEDE"));this.renderer.renderBorders(wi(e,t,o,f));n.node.checked&&(this.renderer.font(new h("#424242"),"normal","normal","bold",i-3+"px","arial"),this.renderer.text("✔",t.left+i/6,t.top+i-1))},this)};s.prototype.paintRadio=function(n){var t=n.parseBounds(),i=Math.min(t.width,t.height)-2;this.renderer.clip(n.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,i,new h("#DEDEDE"),1,new h("#A5A5A5"));n.node.checked&&this.renderer.circle(Math.ceil(t.left+i/4)+1,Math.ceil(t.top+i/4)+1,Math.floor(i/2),new h("#424242"))},this)};s.prototype.paintFormValue=function(n){var u=n.getValue(),r;if(u.length>0){var i=n.node.ownerDocument,t=i.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach(function(i){try{t.style[i]=n.css(i)}catch(r){o("html2canvas: Parse: Exception caught in renderFormValue: "+r.message)}});r=n.parseBounds();t.style.position="fixed";t.style.left=r.left+"px";t.style.top=r.top+"px";t.textContent=u;i.body.appendChild(t);this.paintText(new k(t.firstChild,n));i.body.removeChild(t)}};s.prototype.paintText=function(t){t.applyTextTransform();var r=n.html2canvas.punycode.ucs2.decode(t.node.data),u=(!this.options.letterRendering||cu(t))&&!rf(t.node.data)?nf(r):r.map(function(t){return n.html2canvas.punycode.ucs2.encode([t])}),o=t.parent.fontWeight(),f=t.parent.css("fontSize"),e=t.parent.css("fontFamily"),i=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),o,f,e);i.length?this.renderer.fontShadow(i[0].color,i[0].offsetX,i[0].offsetY,i[0].blur):this.renderer.clearShadow();this.renderer.clip(t.parent.clip,function(){u.map(this.parseTextBounds(t),this).forEach(function(n,i){n&&(this.renderer.text(u[i],n.left,n.bottom),this.renderTextDecoration(t.parent,n,this.fontMetrics.getMetrics(e,f)))},this)},this)};s.prototype.renderTextDecoration=function(n,t,i){switch(n.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+i.baseline+i.lineWidth),t.width,1,n.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,n.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+i.middle+i.lineWidth),t.width,1,n.color("color"))}};yt={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};s.prototype.parseBorders=function(n){var t=n.parseBounds(),i=lu(n),r=["Top","Right","Bottom","Left"].map(function(t,i){var f=n.css("border"+t+"Style"),r=n.color("border"+t+"Color"),u;return f==="inset"&&r.isBlack()&&(r=new h([255,255,255,r.a])),u=yt[f]?yt[f][i]:null,{width:n.cssInt("border"+t+"Width"),color:u?r[u[0]](u[1]):r,args:null}}),u=bi(t,i,r);return{clip:this.parseBackgroundClip(n,u,r,i,t),borders:wi(r,t,u,i)}};s.prototype.parseBackgroundClip=function(n,t,i,r,u){var e=n.css("backgroundClip"),f=[];switch(e){case"content-box":case"padding-box":w(f,r[0],r[1],t.topLeftInner,t.topRightInner,u.left+i[3].width,u.top+i[0].width);w(f,r[1],r[2],t.topRightInner,t.bottomRightInner,u.left+u.width-i[1].width,u.top+i[0].width);w(f,r[2],r[3],t.bottomRightInner,t.bottomLeftInner,u.left+u.width-i[1].width,u.top+u.height-i[2].width);w(f,r[3],r[0],t.bottomLeftInner,t.topLeftInner,u.left+i[3].width,u.top+u.height-i[2].width);break;default:w(f,r[0],r[1],t.topLeftOuter,t.topRightOuter,u.left,u.top);w(f,r[1],r[2],t.topRightOuter,t.bottomRightOuter,u.left+u.width,u.top);w(f,r[2],r[3],t.bottomRightOuter,t.bottomLeftOuter,u.left+u.width,u.top+u.height);w(f,r[3],r[0],t.bottomLeftOuter,t.topLeftOuter,u.left,u.top+u.height)}return f};var ff=0,nr="withCredentials"in new XMLHttpRequest,tr="crossOrigin"in new Image;a.prototype.cloneTo=function(n){a.prototype.cloneTo.call(this,n);n.isPseudoElement=!0;n.before=this.before};a.prototype=Object.create(e.prototype);a.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node);this.parent.node.className+=" "+this.getHideClass()};a.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};a.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";v.prototype.renderImage=function(n,t,i,r){var f=n.cssInt("paddingLeft"),e=n.cssInt("paddingTop"),h=n.cssInt("paddingRight"),c=n.cssInt("paddingBottom"),u=i.borders,o=t.width-(u[1].width+u[3].width+f+h),s=t.height-(u[0].width+u[2].width+e+c);this.drawImage(r,0,0,r.image.width||o,r.image.height||s,t.left+f+u[3].width,t.top+e+u[0].width,o,s)};v.prototype.renderBackground=function(n,t,i){t.height>0&&t.width>0&&(this.renderBackgroundColor(n,t),this.renderBackgroundImage(n,t,i))};v.prototype.renderBackgroundColor=function(n,t){var i=n.color("backgroundColor");i.isTransparent()||this.rectangle(t.left,t.top,t.width,t.height,i)};v.prototype.renderBorders=function(n){n.forEach(this.renderBorder,this)};v.prototype.renderBorder=function(n){n.color.isTransparent()||n.args===null||this.drawShape(n.args,n.color)};v.prototype.renderBackgroundImage=function(n,t,i){var r=n.parseBackgroundImages();r.reverse().forEach(function(r,u,f){var e,s;switch(r.method){case"url":e=this.images.get(r.args[0]);e?this.renderBackgroundRepeating(n,t,e,f.length-(u+1),i):o("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":s=this.images.get(r.value);s?this.renderBackgroundGradient(s,t,i):o("Error loading background-image",r.args[0]);break;case"none":break;default:o("Unknown background-image type",r.args[0])}},this)};v.prototype.renderBackgroundRepeating=function(n,t,i,r,u){var f=n.parseBackgroundSize(t,i.image,r),e=n.parseBackgroundPosition(t,i.image,r,f),o=n.parseBackgroundRepeat(r);switch(o){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(i,e,f,t,t.left+u[3],t.top+e.top+u[0],99999,f.height,u);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(i,e,f,t,t.left+e.left+u[3],t.top+u[0],f.width,99999,u);break;case"no-repeat":this.backgroundRepeatShape(i,e,f,t,t.left+e.left+u[3],t.top+e.top+u[0],f.width,f.height,u);break;default:this.renderBackgroundRepeat(i,e,f,{top:t.top,left:t.left},u[3],u[0])}};ft.prototype=Object.create(e.prototype);ft.prototype.getParentStack=function(n){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(n):n.stack};lt.prototype.testRangeBounds=function(n){var i,t,r,u,f=!1;return n.createRange&&(i=n.createRange(),i.getBoundingClientRect&&(t=n.createElement("boundtest"),t.style.height="123px",t.style.display="block",n.body.appendChild(t),i.selectNode(t),r=i.getBoundingClientRect(),u=r.height,u===123&&(f=!0),n.body.removeChild(t))),f};lt.prototype.testCORS=function(){return typeof(new Image).crossOrigin!="undefined"};lt.prototype.testSVG=function(){var n=new Image,i=t.createElement("canvas"),r=i.getContext("2d");n.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><\/svg>";try{r.drawImage(n,0,0);i.toDataURL()}catch(u){return!1}return!0};y.prototype.hasFabric=function(){return html2canvas.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))};y.prototype.inlineFormatting=function(n){return/^data:image\/svg\+xml;base64,/.test(n)?this.decode64(this.removeContentType(n)):this.removeContentType(n)};y.prototype.removeContentType=function(n){return n.replace(/^data:image\/svg\+xml(;base64)?,/,"")};y.prototype.isInline=function(n){return/^data:image\/svg\+xml/i.test(n)};y.prototype.createCanvas=function(n){var t=this;return function(i,r){var u=new html2canvas.fabric.StaticCanvas("c");t.image=u.lowerCanvasEl;u.setWidth(r.width).setHeight(r.height).add(html2canvas.fabric.util.groupSVGElements(i,r)).renderAll();n(u.lowerCanvasEl)}};y.prototype.decode64=function(t){return typeof n.atob=="function"?n.atob(t):fr(t)};er.prototype=Object.create(y.prototype);k.prototype=Object.create(e.prototype);k.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};k.prototype.transform=function(n){var t=this.node.data;switch(n){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,sf);case"uppercase":return t.toUpperCase();default:return t}};or.prototype=Object.create(nt.prototype);c.prototype=Object.create(v.prototype);c.prototype.setFillStyle=function(n){return this.ctx.fillStyle=typeof n=="object"&&!!n.isColor?n.toString():n,this.ctx};c.prototype.rectangle=function(n,t,i,r,u){this.setFillStyle(u).fillRect(n,t,i,r)};c.prototype.circle=function(n,t,i,r){this.setFillStyle(r);this.ctx.beginPath();this.ctx.arc(n+i/2,t+i/2,i/2,0,Math.PI*2,!0);this.ctx.closePath();this.ctx.fill()};c.prototype.circleStroke=function(n,t,i,r,u,f){this.circle(n,t,i,r);this.ctx.strokeStyle=f.toString();this.ctx.stroke()};c.prototype.drawShape=function(n,t){this.shape(n);this.setFillStyle(t).fill()};c.prototype.taints=function(n){if(n.tainted===null){this.taintCtx.drawImage(n.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);n.tainted=!1}catch(i){this.taintCtx=t.createElement("canvas").getContext("2d");n.tainted=!0}}return n.tainted};c.prototype.drawImage=function(n,t,i,r,u,f,e,o,s){(!this.taints(n)||this.options.allowTaint)&&this.ctx.drawImage(n.image,t,i,r,u,f,e,o,s)};c.prototype.clip=function(n,t,i){this.ctx.save();n.filter(hf).forEach(function(n){this.shape(n).clip()},this);t.call(i);this.ctx.restore()};c.prototype.shape=function(n){return this.ctx.beginPath(),n.forEach(function(n,t){n[0]==="rect"?this.ctx.rect.apply(this.ctx,n.slice(1)):this.ctx[t===0?"moveTo":n[0]+"To"].apply(this.ctx,n.slice(1))},this),this.ctx.closePath(),this.ctx};c.prototype.font=function(n,t,i,r,u,f){this.setFillStyle(n).font=[t,i,r,u,f].join(" ").split(",")[0]};c.prototype.fontShadow=function(n,t,i,r){this.setVariable("shadowColor",n.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",i).setVariable("shadowBlur",r)};c.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};c.prototype.setOpacity=function(n){this.ctx.globalAlpha=n};c.prototype.setTransform=function(n){this.ctx.translate(n.origin[0],n.origin[1]);this.ctx.transform.apply(this.ctx,n.matrix);this.ctx.translate(-n.origin[0],-n.origin[1])};c.prototype.setVariable=function(n,t){return this.variables[n]!==t&&(this.variables[n]=this.ctx[n]=t),this};c.prototype.text=function(n,t,i){this.ctx.fillText(n,t,i)};c.prototype.backgroundRepeatShape=function(n,t,i,r,u,f,e,o,s){var h=[["line",Math.round(u),Math.round(f)],["line",Math.round(u+e),Math.round(f)],["line",Math.round(u+e),Math.round(o+f)],["line",Math.round(u),Math.round(o+f)]];this.clip([h],function(){this.renderBackgroundRepeat(n,t,i,r,s[3],s[0])},this)};c.prototype.renderBackgroundRepeat=function(n,t,i,r,u,f){var e=Math.round(r.left+t.left+u),o=Math.round(r.top+t.top+f);this.setFillStyle(this.ctx.createPattern(this.resizeImage(n,i),"repeat"));this.ctx.translate(e,o);this.ctx.fill();this.ctx.translate(-e,-o)};c.prototype.renderBackgroundGradient=function(n,t){if(n instanceof et){var i=this.ctx.createLinearGradient(t.left+t.width*n.x0,t.top+t.height*n.y0,t.left+t.width*n.x1,t.top+t.height*n.y1);n.colorStops.forEach(function(n){i.addColorStop(n.stop,n.color.toString())});this.rectangle(t.left,t.top,t.width,t.height,i)}};c.prototype.resizeImage=function(n,i){var r=n.image,f,u;return r.width===i.width&&r.height===i.height?r:(u=t.createElement("canvas"),u.width=i.width,u.height=i.height,f=u.getContext("2d"),f.drawImage(r,0,0,r.width,r.height,0,0,i.width,i.height),u)}}.call({},typeof window!="undefined"?window:undefined,typeof document!="undefined"?document:undefined),function(n){"use strict";function l(){var n=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n}function e(n,t,i){return n===t?n=t:n===i&&(n=i),n}function a(n,t,i){var r=n>=t&&n<=i;if(!r)throw Error("Invalid Rating, expected value between "+t+" and "+i);return n}function t(n){return typeof n!="undefined"}function r(n,t,i){var r=(t-n)*(i/100);return r=Math.round(n+r).toString(16),r.length===1&&(r="0"+r),r}function v(n,i,u){if(!n||!i)return null;u=t(u)?u:0;n=s(n);i=s(i);var f=r(n.r,i.r,u),e=r(n.b,i.b,u),o=r(n.g,i.g,u);return"#"+f+o+e}function i(r,o){function w(n){t(n)||(n=o.rating);ut=n;var r=n/h,i=r*b;r>1&&(i+=(Math.ceil(r)-1)*rt);ot(o.ratedFill);i=o.rtl?100-i:i;i<0?i=0:(i>100||o.maxValue==ut)&&(i=100);p.css("width",i+"%")}function ct(){g=it*o.numStars+d*(o.numStars-1);b=it/g*100;rt=d/g*100;r.width(g);w()}function lt(n){var t=o.starWidth=n;return it=window.parseFloat(o.starWidth.replace("px","")),s.find("svg").attr({width:o.starWidth,height:t}),p.find("svg").attr({width:o.starWidth,height:t}),ct(),r}function at(n){return o.spacing=n,d=parseFloat(o.spacing.replace("px","")),s.find("svg:not(:first-child)").css({"margin-left":n}),p.find("svg:not(:first-child)").css({"margin-left":n}),ct(),r}function ft(n){o.normalFill=n;var t=(o.rtl?p:s).find("svg");return t.attr({fill:o.normalFill}),r}function ot(n){var i;if(o.multiColor){var u=ut-k,e=u/o.maxValue*100,t=o.multiColor||{},h=t.startColor||f.startColor,c=t.endColor||f.endColor;n=v(h,c,e)}else et=n;return o.ratedFill=n,i=(o.rtl?s:p).find("svg"),i.attr({fill:o.ratedFill}),r}function vt(n){n=!!n;o.rtl=n;ft(o.normalFill);w()}function ri(n){o.multiColor=n;ot(n?n:et)}function yt(t){o.numStars=t;h=o.maxValue/o.numStars;s.empty();p.empty();for(var i=0;i<o.numStars;i++)s.append(n(o.starSvg||u)),p.append(n(o.starSvg||u));return lt(o.starWidth),ft(o.normalFill),at(o.spacing),w(),r}function pt(n){return o.maxValue=n,h=o.maxValue/o.numStars,o.rating>n&&nt(n),w(),r}function ui(n){return o.precision=n,nt(o.rating),r}function fi(n){return o.halfStar=n,r}function ei(n){return o.fullStar=n,r}function oi(n){var t=n%h,i=h/2,r=o.halfStar,u=o.fullStar;return!u&&!r?n:(u||r&&t>i?n+=h-t:(n=n-t,t>0&&(n+=i)),n)}function wt(n){var l=s.offset(),r=l.left,e=r+s.width(),c=o.maxValue,f=n.pageX,t=0,u,i;if(f<r)t=k;else if(f>e)t=c;else{if(u=(f-r)/(e-r),d>0)for(u*=100,i=u;i>0;)i>b?(t+=h,i-=b+rt):(t+=i/b*h,i=0);else t=u*o.maxValue;t=oi(t)}return o.rtl&&(t=c-t),parseFloat(t)}function bt(n){return o.readOnly=n,r.attr("readonly",!0),ii(),n||(r.removeAttr("readonly"),li()),r}function nt(n){var t=n,i=o.maxValue;return typeof t=="string"&&(t[t.length-1]==="%"&&(t=t.substr(0,t.length-1),i=100,pt(i)),t=parseFloat(t)),a(t,k,i),t=parseFloat(t.toFixed(o.precision)),e(parseFloat(t),k,i),o.rating=t,w(),ht&&r.trigger("rateyo.set",{rating:t}),r}function si(n){return o.onInit=n,r}function hi(n){return o.onSet=n,r}function ci(n){return o.onChange=n,r}function tt(n){var t=wt(n).toFixed(o.precision),i=o.maxValue;t=e(parseFloat(t),k,i);w(t);r.trigger("rateyo.change",{rating:t})}function kt(){l()||(w(),r.trigger("rateyo.change",{rating:o.rating}))}function dt(n){var t=wt(n).toFixed(o.precision);t=parseFloat(t);c.clicked=!0;c.rating(t);c.clicked=!1}function gt(n,t){o.onInit&&typeof o.onInit=="function"&&o.onInit.apply(this,[t.rating,c])}function ni(n,t){o.onChange&&typeof o.onChange=="function"&&o.onChange.apply(this,[t.rating,c])}function ti(n,t){o.onSet&&typeof o.onSet=="function"&&o.onSet.apply(this,[t.rating,c])}function li(){r.on("mousemove",tt).on("mouseenter",tt).on("mouseleave",kt).on("click",dt).on("rateyo.init",gt).on("rateyo.change",ni).on("rateyo.set",ti)}function ii(){r.off("mousemove",tt).off("mouseenter",tt).off("mouseleave",kt).off("click",dt).off("rateyo.init",gt).off("rateyo.change",ni).off("rateyo.set",ti)}var c,et;this.node=r.get(0);c=this;r.empty().addClass("jq-ry-container");var st=n("<div/>").addClass("jq-ry-group-wrapper").appendTo(r),s=n("<div/>").addClass("jq-ry-normal-group").addClass("jq-ry-group").appendTo(st),p=n("<div/>").addClass("jq-ry-rated-group").addClass("jq-ry-group").appendTo(st),h,it,b,d,rt,g,k=0,ut=o.rating,ht=!1;et=o.ratedFill;this.rating=function(n){return t(n)?(nt(n),r):o.rating};this.destroy=function(){return o.readOnly||ii(),i.prototype.collection=y(r.get(0),this.collection),r.removeClass("jq-ry-container").children().remove(),r};this.method=function(n){if(!n)throw Error("Method name not specified!");if(!t(this[n]))throw Error("Method "+n+" doesn't exist!");var i=Array.prototype.slice.apply(arguments,[]),r=i.slice(1),u=this[n];return u.apply(this,r)};this.option=function(n,i){if(!t(n))return o;var r;switch(n){case"starWidth":r=lt;break;case"numStars":r=yt;break;case"normalFill":r=ft;break;case"ratedFill":r=ot;break;case"multiColor":r=ri;break;case"maxValue":r=pt;break;case"precision":r=ui;break;case"rating":r=nt;break;case"halfStar":r=fi;break;case"fullStar":r=ei;break;case"readOnly":r=bt;break;case"spacing":r=at;break;case"rtl":r=vt;break;case"onInit":r=si;break;case"onSet":r=hi;break;case"onChange":r=ci;break;default:throw Error("No such option as "+n);}return t(i)?r(i):o[n]};yt(o.numStars);bt(o.readOnly);o.rtl&&vt(o.rtl);this.collection.push(this);this.rating(o.rating,!0);ht=!0;r.trigger("rateyo.init",{rating:o.rating})}function h(t,i){var r;return n.each(i,function(){if(t===this.node)return r=this,!1}),r}function y(t,i){return n.each(i,function(n){if(t===this.node){var r=i.slice(0,n),u=i.slice(n+1,i.length);return i=r.concat(u),!1}}),i}function p(t){var e=i.prototype.collection,f=n(this),r;if(f.length===0)return f;if(r=Array.prototype.slice.apply(arguments,[]),r.length===0)t=r[0]={};else if(r.length===1&&typeof r[0]=="object")t=r[0];else{if(r.length>=1&&typeof r[0]=="string"){var o=r[0],s=r.slice(1),u=[];return n.each(f,function(n,t){var i=h(t,e),r,f;if(!i)throw Error("Trying to set options before even initialization");if(r=i[o],!r)throw Error("Method "+o+" does not exist!");f=r.apply(i,s);u.push(f)}),u=u.length===1?u[0]:u}throw Error("Invalid Arguments");}return t=n.extend({},c,t),n.each(f,function(){var r=h(this,e);if(r)return r;var o=n(this),u={},f=n.extend({},t);return n.each(o.data(),function(n,t){if(n.indexOf("rateyo")===0){var i=n.replace(/^rateyo/,"");i=i[0].toLowerCase()+i.slice(1);u[i]=t;delete f[i]}}),new i(n(this),n.extend({},u,f))})}function w(){return p.apply(this,Array.prototype.slice.apply(arguments,[]))}var u='<?xml version="1.0" encoding="utf-8"?><svg version="1.1"xmlns="http://www.w3.org/2000/svg"viewBox="0 12.705 512 486.59"x="0px" y="0px"xml:space="preserve"><polygon points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 "/><\/svg>',c={starWidth:"32px",normalFill:"gray",ratedFill:"#f39c12",numStars:5,maxValue:5,precision:1,rating:0,fullStar:!1,halfStar:!1,readOnly:!1,spacing:"0px",rtl:!1,multiColor:null,onInit:null,onChange:null,onSet:null,starSvg:null},f={startColor:"#c0392b",endColor:"#f1c40f"},o=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,s=function(n){if(!o.test(n))return null;var t=o.exec(n),i=parseInt(t[1],16),r=parseInt(t[2],16),u=parseInt(t[3],16);return{r:i,g:r,b:u}};i.prototype.collection=[];window.RateYo=i;n.fn.rateYo=w}(window.jQuery);NAME=NAME||{},function(n){"use strict";NAME.keyboard={back:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:46,command:91};NAME.focusables="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";NAME.general={};NAME.general.senseClickOutside=function(n,t){if(n.closest(t).length===0)return!0};NAME.general.debounce=function(n,t,i){var r,u;return function(){var f=this,e=arguments,o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r;return clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}};NAME.access={};NAME.access.blockFocus=function(n,t){n.attr("aria-hidden","true");n.on("focusin.blockingFocus",function(){if(n.attr("aria-hidden")==="true")return t.focus(),!1})};NAME.access.removeBlockFocus=function(n){n.off("focusin.blockingFocus");n.removeAttr("aria-hidden")};NAME.access.ariaExpand=function(n,t){n.attr("aria-expanded","true");t.attr("aria-hidden","false")};NAME.access.ariaContract=function(n,t){n.attr("aria-expanded","false");t.attr("aria-hidden","true")};NAME.access.ariaHideContent=function(n){var t=n.find("a, button, input, select, textaria");n.attr("aria-hidden","true");t.attr("tabindex","-1").attr("data-focusable-hidden-elem","true")};NAME.access.ariaShowContent=function(n){var t=n.find("[data-focusable-hidden-elem]");n.removeAttr("aria-hidden");t.removeAttr("tabindex").removeAttr("data-focusable-hidden-elem")};NAME.access.tagTrigger=function(t){var i;i=t?t:n(document.activeElement);i.attr("data-trigger","true")};NAME.access.focusTrigger=function(t){var i;i=t?t:n('[data-trigger="true"]');i.focus().removeAttr("data-trigger")};NAME.access.announcements=function(n,t){n.text(t);setTimeout(function(){n.text("")},1e3)};NAME.access.duplicateTextForReading=function(t,i){var r="";n.each(i,function(){r+=n(this).text();r+=" "});NAME.access.announcements(t,r)}}(jQuery),function(){var n={};if(n.dev=!1,n.tooltip=n.tooltip||{},n.utils=n.utils||{},n.models=n.models||{},n.charts={},n.logs={},n.dom={},typeof module!="undefined"&&typeof exports!="undefined"&&typeof d3=="undefined"&&(d3=require("d3")),n.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(n){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t&&n?this:n,r.concat(Array.prototype.slice.call(arguments)))};return t.prototype=this.prototype,i.prototype=new t,i}),n.dev){n.dispatch.on("render_start",function(){n.logs.startTime=+new Date});n.dispatch.on("render_end",function(){n.logs.endTime=+new Date;n.logs.totalTime=n.logs.endTime-n.logs.startTime;n.log("total",n.logs.totalTime)})}n.log=function(){if(n.dev&&window.console&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(n.dev&&window.console&&typeof console.log=="function"&&Function.prototype.bind){var t=Function.prototype.bind.call(console.log,console);t.apply(console,arguments)}return arguments[arguments.length-1]};n.deprecated=function(n,t){console&&console.warn&&console.warn("nvd3 warning: `"+n+"` has been deprecated. ",t||"")};n.render=function(t){t=t||1;n.render.active=!0;n.dispatch.render_start();var i=function(){for(var f,r,u=0;u<t&&(r=n.render.queue[u]);u++)f=r.generate(),typeof r.callback==typeof Function&&r.callback(f);n.render.queue.splice(0,u);n.render.queue.length?setTimeout(i):(n.dispatch.render_end(),n.render.active=!1)};setTimeout(i)};n.render.active=!1;n.render.queue=[];n.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]});n.render.queue.push(t);n.render.active||n.render()};typeof module!="undefined"&&typeof exports!="undefined"&&(module.exports=n);typeof window!="undefined"&&(window.nv=n);n.dom.write=function(n){return window.fastdom!==undefined?fastdom.mutate(n):n()};n.dom.read=function(n){return window.fastdom!==undefined?fastdom.measure(n):n()};n.interactiveGuideline=function(){"use strict";function t(l){l.each(function(l){function a(){var s=d3.mouse(this),n=s[0],e=s[1],h=!0,l=!1,a,o,y;if(c&&(n=d3.event.offsetX,e=d3.event.offsetY,d3.event.target.tagName!=="svg"&&(h=!1),d3.event.target.className.baseVal.match("nv-legend")&&(l=!0)),h&&(n-=u.left,e-=u.top),d3.event.type==="mouseout"||n<0||e<0||n>w||e>v||d3.event.relatedTarget&&d3.event.relatedTarget.ownerSVGElement===undefined||l){if(c&&d3.event.relatedTarget&&d3.event.relatedTarget.ownerSVGElement===undefined&&(d3.event.relatedTarget.className===undefined||d3.event.relatedTarget.className.match(f.nvPointerEventsClass)))return;r.elementMouseout({mouseX:n,mouseY:e});t.renderGuideLine(null);f.hidden(!0);return}if(f.hidden(!1),a=typeof i.rangeBands=="function",o=undefined,a)if(y=d3.bisect(i.range(),n)-1,i.range()[y]+i.rangeBand()>=n)o=i.domain()[d3.bisect(i.range(),n)-1];else{r.elementMouseout({mouseX:n,mouseY:e});t.renderGuideLine(null);f.hidden(!0);return}else o=i.invert(n);r.elementMousemove({mouseX:n,mouseY:e,pointXValue:o});d3.event.type==="dblclick"&&r.elementDblclick({mouseX:n,mouseY:e,pointXValue:o});d3.event.type==="click"&&r.elementClick({mouseX:n,mouseY:e,pointXValue:o});d3.event.type==="mousedown"&&r.elementMouseDown({mouseX:n,mouseY:e,pointXValue:o});d3.event.type==="mouseup"&&r.elementMouseUp({mouseX:n,mouseY:e,pointXValue:o})}var p=d3.select(this),w=o||960,v=s||400,y=p.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([l]),b=y.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");if(b.append("g").attr("class","nv-interactiveGuideLine"),e){e.on("touchmove",a).on("mousemove",a,!0).on("mouseout",a,!0).on("mousedown",a,!0).on("mouseup",a,!0).on("dblclick",a).on("click",a);t.guideLine=null;t.renderGuideLine=function(i){h&&(t.guideLine&&t.guideLine.attr("x1")===i||n.dom.write(function(){var t=y.select(".nv-interactiveGuideLine").selectAll("line").data(i!=null?[n.utils.NaNtoZero(i)]:[],String);t.enter().append("line").attr("class","nv-guideline").attr("x1",function(n){return n}).attr("x2",function(n){return n}).attr("y1",v).attr("y2",0);t.exit().remove()}))}}})}var u={left:0,top:0},o=null,s=null,i=d3.scale.linear(),r=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),h=!0,e=null,f=n.models.tooltip(),c=window.ActiveXObject;return f.duration(0).hideDelay(0).hidden(!1),t.dispatch=r,t.tooltip=f,t.margin=function(n){return arguments.length?(u.top=typeof n.top!="undefined"?n.top:u.top,u.left=typeof n.left!="undefined"?n.left:u.left,t):u},t.width=function(n){return arguments.length?(o=n,t):o},t.height=function(n){return arguments.length?(s=n,t):s},t.xScale=function(n){return arguments.length?(i=n,t):i},t.showGuideLine=function(n){return arguments.length?(h=n,t):h},t.svgContainer=function(n){return arguments.length?(e=n,t):e},t};n.interactiveBisect=function(n,t,i){"use strict";var u,e,o;if(!(n instanceof Array))return null;u=typeof i!="function"?function(n){return n.x}:i;var s=function(n,t){return u(n)-t},h=d3.bisector(s).left,r=d3.max([0,h(n,t)-1]),f=u(n[r]);return(typeof f=="undefined"&&(f=r),f===t)?r:(e=d3.min([r+1,n.length-1]),o=u(n[e]),typeof o=="undefined"&&(o=e),Math.abs(o-t)>=Math.abs(f-t)?r:e)};n.nearestValueIndex=function(n,t,i){"use strict";var r=Infinity,u=null;return n.forEach(function(n,f){var e=Math.abs(t-n);n!=null&&e<=r&&e<i&&(r=e,u=f)}),u};n.models.tooltip=function(){"use strict";function rt(){if(!t||!t.node())t=d3.select(document.body).select("#"+s).data([1]),t.enter().append("div").attr("class","nvtooltip "+(f?f:"xy-tooltip")).attr("id",s).style("top",0).style("left",0).style("opacity",0).style("position","fixed").selectAll("div, table, td, tr").classed(y,!0).classed(y,!0),t.exit().remove()}function r(){if(l)return nt(u)?(n.dom.write(function(){rt();var n=k(u);n&&(t.node().innerHTML=n);it()}),r):void 0}var s="nvtooltip-"+Math.floor(Math.random()*1e5),u=null,h="w",i=25,g=0,f=null,e=!0,c=200,t=null,o={left:null,top:null},l=!0,a=100,v=!0,y="nv-pointer-events-none",p=function(n){return n},w=function(n){return n},b=function(n){return n},k=function(n){var i,u,f,t,r;return n===null?"":(i=d3.select(document.createElement("table")),v&&(u=i.selectAll("thead").data([n]).enter().append("thead"),u.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(w(n.value))),f=i.selectAll("tbody").data([n]).enter().append("tbody"),t=f.selectAll("tr").data(function(n){return n.series}).enter().append("tr").classed("highlight",function(n){return n.highlight}),t.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(n){return n.color}),t.append("td").classed("key",!0).classed("total",function(n){return!!n.total}).html(function(n,t){return b(n.key,t)}),t.append("td").classed("value",!0).html(function(n,t){return p(n.value,t,n)}),t.filter(function(n){return n.percent!==undefined}).append("td").classed("percent",!0).html(function(n){return"("+d3.format("%")(n.percent)+")"}),t.selectAll("td").each(function(n){if(n.highlight){var t=d3.scale.linear().domain([0,1]).range(["#fff",n.color]),i=.6;d3.select(this).style("border-bottom-color",t(i)).style("border-top-color",t(i))}}),r=i.node().outerHTML,n.footer!==undefined&&(r+="<div class='footer'>"+n.footer+"<\/div>"),r)},d=function(){var n={left:d3.event!==null?d3.event.clientX:0,top:d3.event!==null?d3.event.clientY:0},t;return getComputedStyle(document.body).transform!="none"&&(t=document.body.getBoundingClientRect(),n.left-=t.left,n.top-=t.top),n},nt=function(t){if(t&&t.series){if(n.utils.isArray(t.series))return!0;if(n.utils.isObject(t.series))return t.series=[t.series],!0}return!1},tt=function(n){var e=t.node().offsetHeight,o=t.node().offsetWidth,s=document.documentElement.clientWidth,c=document.documentElement.clientHeight,r,u,f;switch(h){case"e":r=-o-i;u=-(e/2);n.left+r<0&&(r=i);(f=n.top+u)<0&&(u-=f);(f=n.top+u+e)>c&&(u-=f-c);break;case"w":r=i;u=-(e/2);n.left+r+o>s&&(r=-o-i);(f=n.top+u)<0&&(u-=f);(f=n.top+u+e)>c&&(u-=f-c);break;case"n":r=-(o/2)-5;u=i;n.top+u+e>c&&(u=-e-i);(f=n.left+r)<0&&(r-=f);(f=n.left+r+o)>s&&(r-=f-s);break;case"s":r=-(o/2);u=-e-i;n.top+u<0&&(u=i);(f=n.left+r)<0&&(r-=f);(f=n.left+r+o)>s&&(r-=f-s);break;case"center":r=-(o/2);u=-(e/2);break;default:r=0;u=0}return{left:r,top:u}},it=function(){n.dom.read(function(){var n=d(),i=tt(n),r=n.left+i.left,u=n.top+i.top;if(e)t.interrupt().transition().delay(c).duration(0).style("opacity",0);else{var h="translate("+o.left+"px, "+o.top+"px)",f="translate("+Math.round(r)+"px, "+Math.round(u)+"px)",s=d3.interpolateString(h,f),l=t.style("opacity")<.1;t.interrupt().transition().duration(l?0:a).styleTween("transform",function(){return s},"important").styleTween("-webkit-transform",function(){return s}).style("-ms-transform",f).style("opacity",1)}o.left=r;o.top=u})};return r.nvPointerEventsClass=y,r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{duration:{get:function(){return a},set:function(n){a=n}},gravity:{get:function(){return h},set:function(n){h=n}},distance:{get:function(){return i},set:function(n){i=n}},snapDistance:{get:function(){return g},set:function(n){g=n}},classes:{get:function(){return f},set:function(n){f=n}},enabled:{get:function(){return l},set:function(n){l=n}},hideDelay:{get:function(){return c},set:function(n){c=n}},contentGenerator:{get:function(){return k},set:function(n){k=n}},valueFormatter:{get:function(){return p},set:function(n){p=n}},headerFormatter:{get:function(){return w},set:function(n){w=n}},keyFormatter:{get:function(){return b},set:function(n){b=n}},headerEnabled:{get:function(){return v},set:function(n){v=n}},position:{get:function(){return d},set:function(n){d=n}},chartContainer:{get:function(){return document.body},set:function(){n.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(){n.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(){n.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return e},set:function(n){e!=n&&(e=!!n,r())}},data:{get:function(){return u},set:function(n){n.point&&(n.value=n.point.x,n.series=n.series||{},n.series.value=n.point.y,n.series.color=n.point.color||n.series.color);u=n}},node:{get:function(){return t.node()},set:function(){}},id:{get:function(){return s},set:function(){}}}),n.utils.initOptions(r),r};n.utils.windowSize=function(){var n={width:640,height:480};return window.innerWidth&&window.innerHeight?(n.width=window.innerWidth,n.height=window.innerHeight,n):document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetWidth?(n.width=document.documentElement.offsetWidth,n.height=document.documentElement.offsetHeight,n):document.body&&document.body.offsetWidth?(n.width=document.body.offsetWidth,n.height=document.body.offsetHeight,n):n};n.utils.isArray=Array.isArray;n.utils.isObject=function(n){return n!==null&&typeof n=="object"};n.utils.isFunction=function(n){return typeof n=="function"};n.utils.isDate=function(n){return toString.call(n)==="[object Date]"};n.utils.isNumber=function(n){return!isNaN(n)&&typeof n=="number"};n.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):n.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}};n.utils.getColor=function(t){if(t===undefined)return n.utils.defaultColor();if(n.utils.isArray(t)){var i=d3.scale.ordinal().range(t);return function(n,t){var r=t===undefined?n:t;return n.color||i(r)}}return t};n.utils.defaultColor=function(){return n.utils.getColor(d3.scale.category20().range())};n.utils.customTheme=function(t,i,r){i=i||function(n){return n.key};r=r||d3.scale.category20().range();var u=r.length;return function(f){var e=i(f);return n.utils.isFunction(t[e])?t[e]():t[e]!==undefined?t[e]:(u||(u=r.length),u=u-1,r[u])}};n.utils.pjax=function(t,i){var r=function(r){d3.html(r,function(r){var u=d3.select(i).node();u.parentNode.replaceChild(d3.select(r).select(i).node(),u);n.utils.pjax(t,i)})};d3.selectAll(t).on("click",function(){history.pushState(this.href,this.textContent,this.href);r(this.href);d3.event.preventDefault()});d3.select(window).on("popstate",function(){d3.event.state&&r(d3.event.state)})};n.utils.calcApproxTextWidth=function(t){if(n.utils.isFunction(t.style)&&n.utils.isFunction(t.text)){var i=parseInt(t.style("font-size").replace("px",""),10),r=t.text().length;return n.utils.NaNtoZero(r*i*.5)}return 0};n.utils.NaNtoZero=function(t){return!n.utils.isNumber(t)||isNaN(t)||t===null||t===Infinity||t===-Infinity?0:t};d3.selection.prototype.watchTransition=function(n){var t=[this].concat([].slice.call(arguments,1));return n.transition.apply(n,t)};n.utils.renderWatch=function(t,i){if(!(this instanceof n.utils.renderWatch))return new n.utils.renderWatch(t,i);var u=i!==undefined?i:250,r=[],f=this;this.models=function(n){return n=[].slice.call(arguments,0),n.forEach(function(n){n.__rendered=!1,function(n){n.dispatch.on("renderEnd",function(){n.__rendered=!0;f.renderEnd("model")})}(n);r.indexOf(n)<0&&r.push(n)}),this};this.reset=function(n){n!==undefined&&(u=n);r=[]};this.transition=function(n,t,i){if(t=arguments.length>1?[].slice.call(arguments,1):[],i=t.length>1?t.pop():u!==undefined?u:250,n.__rendered=!1,r.indexOf(n)<0&&r.push(n),i===0)return n.__rendered=!0,n.delay=function(){return this},n.duration=function(){return this},n;n.__rendered=n.length===0?!0:n.every(function(n){return!n.length})?!0:!1;var e=0;return n.transition().duration(i).each(function(){++e}).each("end",function(){--e==0&&(n.__rendered=!0,f.renderEnd.apply(this,t))})};this.renderEnd=function(){r.every(function(n){return n.__rendered})&&(r.forEach(function(n){n.__rendered=!1}),t.renderEnd.apply(this,arguments))}};n.utils.deepExtend=function(t){var i=arguments.length>1?[].slice.call(arguments,1):[];i.forEach(function(i){for(var r in i){var u=n.utils.isArray(t[r]),f=n.utils.isObject(t[r]),e=n.utils.isObject(i[r]);f&&!u&&e?n.utils.deepExtend(t[r],i[r]):t[r]=i[r]}})};n.utils.state=function(){var f;if(!(this instanceof n.utils.state))return new n.utils.state;var i={},o=this,r=function(){},u=function(){return{}},t=null,e=null;this.dispatch=d3.dispatch("change","set");this.dispatch.on("set",function(n){r(n,!0)});this.getter=function(n){return u=n,this};this.setter=function(n,t){return t||(t=function(){}),r=function(i,r){n(i);r&&t()},this};this.init=function(i){t=t||{};n.utils.deepExtend(t,i)};f=function(){var t=u(),n;if(JSON.stringify(t)===JSON.stringify(i))return!1;for(n in t)i[n]===undefined&&(i[n]={}),i[n]=t[n],e=!0;return!0};this.update=function(){t&&(r(t,!1),t=null);f.call(this)&&this.dispatch.change(i)}};n.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,i){n.utils.isFunction(this[t])&&this[t](i)}.bind(this)),this};n.utils.calcTicksX=function(t,i){var r=1,u=0,f;for(u;u<i.length;u+=1)f=i[u]&&i[u].values?i[u].values.length:0,r=f>r?f:r;return n.log("Requested number of ticks: ",t),n.log("Calculated max values to be: ",r),t=t>r?t=r-1:t,t=t<1?1:t,t=Math.floor(t),n.log("Calculating tick count as: ",t),t};n.utils.calcTicksY=function(t,i){return n.utils.calcTicksX(t,i)};n.utils.initOption=function(n,t){n._calls&&n._calls[t]?n[t]=n._calls[t]:(n[t]=function(i){return arguments.length?(n._overrides[t]=!0,n._options[t]=i,n):n._options[t]},n["_"+t]=function(i){return arguments.length?(n._overrides[t]||(n._options[t]=i),n):n._options[t]})};n.utils.initOptions=function(t){var i,r,u;t._overrides=t._overrides||{};i=Object.getOwnPropertyNames(t._options||{});r=Object.getOwnPropertyNames(t._calls||{});i=i.concat(r);for(u in i)n.utils.initOption(t,i[u])};n.utils.inheritOptionsD3=function(n,t,i){n._d3options=i.concat(n._d3options||[]);i.unshift(t);i.unshift(n);d3.rebind.apply(this,i)};n.utils.arrayUnique=function(n){return n.sort().filter(function(t,i){return!i||t!=n[i-1]})};n.utils.symbolMap=d3.map();n.utils.symbol=function(){function t(t,u){var f=i.call(this,t,u),e=r.call(this,t,u);return d3.svg.symbolTypes.indexOf(f)!==-1?d3.svg.symbol().type(f).size(e)():n.utils.symbolMap.get(f)(e)}var i,r=64;return t.type=function(n){return arguments.length?(i=d3.functor(n),t):i},t.size=function(n){return arguments.length?(r=d3.functor(n),t):r},t};n.utils.inheritOptions=function(t,i){var r=Object.getOwnPropertyNames(i._options||{}),f=Object.getOwnPropertyNames(i._calls||{}),e=i._inherited||[],o=i._d3options||[],u=r.concat(f).concat(e).concat(o);u.unshift(i);u.unshift(t);d3.rebind.apply(this,u);t._inherited=n.utils.arrayUnique(r.concat(f).concat(e).concat(r).concat(t._inherited||[]));t._d3options=n.utils.arrayUnique(o.concat(t._d3options||[]))};n.utils.initSVG=function(n){n.classed({"nvd3-svg":!0})};n.utils.sanitizeHeight=function(n,t){return n||parseInt(t.style("height"),10)||400};n.utils.sanitizeWidth=function(n,t){return n||parseInt(t.style("width"),10)||960};n.utils.availableHeight=function(t,i,r){return Math.max(0,n.utils.sanitizeHeight(t,i)-r.top-r.bottom)};n.utils.availableWidth=function(t,i,r){return Math.max(0,n.utils.sanitizeWidth(t,i)-r.left-r.right)};n.utils.noData=function(t,i){var f=t.options(),r=f.margin(),e=f.noData(),o=e==null?["No Data Available."]:[e],s=n.utils.availableHeight(null,i,r),h=n.utils.availableWidth(null,i,r),c=r.left+h/2,l=r.top+s/2,u;i.selectAll("g").remove();u=i.selectAll(".nv-noData").data(o);u.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle");u.attr("x",c).attr("y",l).text(function(n){return n})};n.utils.wrapTicks=function(n,t){n.each(function(){for(var n=d3.select(this),o=n.text().split(/\s+/).reverse(),r,i=[],s=0,f=n.attr("y"),e=parseFloat(n.attr("dy")),u=n.text(null).append("tspan").attr("x",0).attr("y",f).attr("dy",e+"em");r=o.pop();)i.push(r),u.text(i.join(" ")),u.node().getComputedTextLength()>t&&(i.pop(),u.text(i.join(" ")),i=[r],u=n.append("tspan").attr("x",0).attr("y",f).attr("dy",++s*1.1+e+"em").text(r))})};n.utils.arrayEquals=function(t,i){if(t===i)return!0;if(!t||!i||t.length!=i.length)return!1;for(var r=0,u=t.length;r<u;r++)if(t[r]instanceof Array&&i[r]instanceof Array){if(!n.arrayEquals(t[r],i[r]))return!1}else if(t[r]!=i[r])return!1;return!0};n.models.axis=function(){"use strict";function u(p){return e.reset(),p.each(function(u){var st=d3.select(this),tt,k,ft,p,d,ot,it;n.utils.initSVG(st);var g=st.selectAll("g.nv-wrap.nv-axis").data([u]),ct=g.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),lt=ct.append("g"),nt=g.select("g");v!==null?i.ticks(v):(i.orient()=="top"||i.orient()=="bottom")&&i.ticks(Math.abs(t.range()[1]-t.range()[0])/100);nt.watchTransition(e,"axis").call(i);l=l||i.scale();tt=i.tickFormat();tt==null&&(tt=l.tickFormat());k=nt.selectAll("text.nv-axislabel").data([w||null]);k.exit().remove();y!==undefined&&nt.selectAll("g").select("text").style("font-size",y);switch(i.orient()){case"top":k.enter().append("text").attr("class","nv-axislabel");d=0;t.range().length===1?d=h?t.range()[0]*2+t.rangeBand():0:t.range().length===2?d=h?t.range()[0]+t.range()[1]+t.rangeBand():t.range()[1]:t.range().length>2&&(d=t.range()[t.range().length-1]+(t.range()[1]-t.range()[0]));k.attr("text-anchor","middle").attr("y",0).attr("x",d/2);o&&(p=g.selectAll("g.nv-axisMaxMin").data(t.domain()),p.enter().append("g").attr("class",function(n,t){return["nv-axisMaxMin","nv-axisMaxMin-x",t==0?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),p.exit().remove(),p.attr("transform",function(i){return"translate("+n.utils.NaNtoZero(t(i))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-i.tickPadding()).attr("text-anchor","middle").text(function(n){var t=tt(n);return(""+t).match("NaN")?"":t}),p.watchTransition(e,"min-max top").attr("transform",function(i,r){return"translate("+n.utils.NaNtoZero(t.range()[r])+",0)"}));break;case"bottom":ft=c+36;var ut=30,ht=0,rt=nt.selectAll("g").select("text"),et="";s%360?(rt.attr("transform",""),rt.each(function(){var n=this.getBoundingClientRect(),t=n.width;ht=n.height;t>ut&&(ut=t)}),et="rotate("+s+" 0,"+(ht/2+i.tickPadding())+")",ot=Math.abs(Math.sin(s*Math.PI/180)),ft=(ot?ot*ut:ut)+30,rt.attr("transform",et).style("text-anchor",s%360>0?"start":"end")):b?rt.attr("transform",function(n,t){return"translate(0,"+(t%2==0?"0":"12")+")"}):rt.attr("transform","translate(0,0)");k.enter().append("text").attr("class","nv-axislabel");d=0;t.range().length===1?d=h?t.range()[0]*2+t.rangeBand():0:t.range().length===2?d=h?t.range()[0]+t.range()[1]+t.rangeBand():t.range()[1]:t.range().length>2&&(d=t.range()[t.range().length-1]+(t.range()[1]-t.range()[0]));k.attr("text-anchor","middle").attr("y",ft).attr("x",d/2);o&&(p=g.selectAll("g.nv-axisMaxMin").data([t.domain()[0],t.domain()[t.domain().length-1]]),p.enter().append("g").attr("class",function(n,t){return["nv-axisMaxMin","nv-axisMaxMin-x",t==0?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),p.exit().remove(),p.attr("transform",function(i){return"translate("+n.utils.NaNtoZero(t(i)+(h?t.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",i.tickPadding()).attr("transform",et).style("text-anchor",s?s%360>0?"start":"end":"middle").text(function(n){var t=tt(n);return(""+t).match("NaN")?"":t}),p.watchTransition(e,"min-max bottom").attr("transform",function(i){return"translate("+n.utils.NaNtoZero(t(i)+(h?t.rangeBand()/2:0))+",0)"}));break;case"right":k.enter().append("text").attr("class","nv-axislabel");k.style("text-anchor",f?"middle":"begin").attr("transform",f?"rotate(90)":"").attr("y",f?-Math.max(r.right,a)+12-(c||0):-10).attr("x",f?d3.max(t.range())/2:i.tickPadding());o&&(p=g.selectAll("g.nv-axisMaxMin").data(t.domain()),p.enter().append("g").attr("class",function(n,t){return["nv-axisMaxMin","nv-axisMaxMin-y",t==0?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),p.exit().remove(),p.attr("transform",function(i){return"translate(0,"+n.utils.NaNtoZero(t(i))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",i.tickPadding()).style("text-anchor","start").text(function(n){var t=tt(n);return(""+t).match("NaN")?"":t}),p.watchTransition(e,"min-max right").attr("transform",function(i,r){return"translate(0,"+n.utils.NaNtoZero(t.range()[r])+")"}).select("text").style("opacity",1));break;case"left":k.enter().append("text").attr("class","nv-axislabel");k.style("text-anchor",f?"middle":"end").attr("transform",f?"rotate(-90)":"").attr("y",f?-Math.max(r.left,a)+25-(c||0):-10).attr("x",f?-d3.max(t.range())/2:-i.tickPadding());o&&(p=g.selectAll("g.nv-axisMaxMin").data(t.domain()),p.enter().append("g").attr("class",function(n,t){return["nv-axisMaxMin","nv-axisMaxMin-y",t==0?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),p.exit().remove(),p.attr("transform",function(t){return"translate(0,"+n.utils.NaNtoZero(l(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-i.tickPadding()).attr("text-anchor","end").text(function(n){var t=tt(n);return(""+t).match("NaN")?"":t}),p.watchTransition(e,"min-max right").attr("transform",function(i,r){return"translate(0,"+n.utils.NaNtoZero(t.range()[r])+")"}).select("text").style("opacity",1))}k.text(function(n){return n});o&&(i.orient()==="left"||i.orient()==="right")&&(nt.selectAll("g").each(function(n){d3.select(this).select("text").attr("opacity",1);(t(n)<t.range()[1]+10||t(n)>t.range()[0]-10)&&((n>1e-10||n<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),t.domain()[0]==t.domain()[1]&&t.domain()[0]==0&&g.selectAll("g.nv-axisMaxMin").style("opacity",function(n,t){return t?0:1}));o&&(i.orient()==="top"||i.orient()==="bottom")&&(it=[],g.selectAll("g.nv-axisMaxMin").each(function(n,i){try{i?it.push(t(n)-this.getBoundingClientRect().width-4):it.push(t(n)+this.getBoundingClientRect().width+4)}catch(r){i?it.push(t(n)-4):it.push(t(n)+4)}}),nt.selectAll("g").each(function(n){(t(n)<it[0]||t(n)>it[1])&&(n>1e-10||n<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())}));nt.selectAll(".tick").filter(function(n){return!parseFloat(Math.round(n*1e5)/1e6)&&n!==undefined}).classed("zero",!0);l=t.copy()}),e.renderEnd("axis immediate"),u}var i=d3.svg.axis(),t=d3.scale.linear(),r={top:0,right:0,bottom:0,left:0},a=75,k=60,w=null,o=!0,s=0,f=!0,b=!1,h=!1,v=null,c=0,y=undefined,p=250,d=d3.dispatch("renderEnd"),l,e;return i.scale(t).orient("bottom").tickFormat(function(n){return n}),e=n.utils.renderWatch(d,p),u.axis=i,u.dispatch=d,u.options=n.utils.optionsFunc.bind(u),u._options=Object.create({},{axisLabelDistance:{get:function(){return c},set:function(n){c=n}},staggerLabels:{get:function(){return b},set:function(n){b=n}},rotateLabels:{get:function(){return s},set:function(n){s=n}},rotateYLabel:{get:function(){return f},set:function(n){f=n}},showMaxMin:{get:function(){return o},set:function(n){o=n}},axisLabel:{get:function(){return w},set:function(n){w=n}},height:{get:function(){return k},set:function(n){k=n}},ticks:{get:function(){return v},set:function(n){v=n}},width:{get:function(){return a},set:function(n){a=n}},fontSize:{get:function(){return y},set:function(n){y=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},duration:{get:function(){return p},set:function(n){p=n;e.reset(p)}},scale:{get:function(){return t},set:function(r){t=r;i.scale(t);h=typeof t.rangeBands=="function";n.utils.inheritOptionsD3(u,t,["domain","range","rangeBand","rangeBands"])}}}),n.utils.initOptions(u),n.utils.inheritOptionsD3(u,i,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),n.utils.inheritOptionsD3(u,t,["domain","range","rangeBand","rangeBands"]),u};n.models.boxPlot=function(){"use strict";function a(ht){return h.reset(),ht.each(function(a){var gt=nt-u.left-u.right,ni=tt-u.top-u.bottom,yt,ct,bt,kt,vt,ti,ht,lt,at;it=d3.select(this);n.utils.initSVG(it);r.domain(rt||a.map(function(n,t){return s(n,t)})).rangeBands(ut||[0,gt],.1);yt=[];g||(ct=[],a.forEach(function(n){var t=l(n),i=c(n),r=o(n),u=y(n),f=b(n);f&&f.forEach(function(n,t){ct.push(k(n,t,undefined))});r&&ct.push(r);t&&ct.push(t);i&&ct.push(i);u&&ct.push(u)}),bt=d3.min(ct),kt=d3.max(ct),yt=[bt,kt]);t.domain(g||yt);t.range(ft||[ni,0]);ot=ot||r;st=st||t.copy().range([t(0),t(0)]);vt=it.selectAll("g.nv-wrap").data([a]);ti=vt.enter().append("g").attr("class","nvd3 nv-wrap");vt.attr("transform","translate("+u.left+","+u.top+")");ht=vt.selectAll(".nv-boxplot").data(function(n){return n});lt=ht.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);ht.attr("class","nv-boxplot").attr("transform",function(n,t){return"translate("+(r(s(n,t))+r.rangeBand()*.05)+", 0)"}).classed("hover",function(n){return n.hover});ht.watchTransition(h,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(n,t){return t*w/a.length}).attr("transform",function(n,t){return"translate("+(r(s(n,t))+r.rangeBand()*.05)+", 0)"});ht.exit().remove();lt.each(function(n,t){var r=d3.select(this);[o,y].forEach(function(u){if(u(n)!==undefined&&u(n)!==null){var e=u===o?"low":"high";r.append("line").style("stroke",f(n)||i(n,t)).attr("class","nv-boxplot-whisker nv-boxplot-"+e);r.append("line").style("stroke",f(n)||i(n,t)).attr("class","nv-boxplot-tick nv-boxplot-"+e)}})});var pt=function(){return et===null?r.rangeBand()*.9:Math.min(75,r.rangeBand()*.9)},wt=function(){return r.rangeBand()*.45-pt()/2},dt=function(){return r.rangeBand()*.45+pt()/2};[o,y].forEach(function(n){var i=n===o?"low":"high",u=n===o?l:c;ht.select("line.nv-boxplot-whisker.nv-boxplot-"+i).watchTransition(h,"nv-boxplot: boxplots").attr("x1",r.rangeBand()*.45).attr("y1",function(i){return t(n(i))}).attr("x2",r.rangeBand()*.45).attr("y2",function(n){return t(u(n))});ht.select("line.nv-boxplot-tick.nv-boxplot-"+i).watchTransition(h,"nv-boxplot: boxplots").attr("x1",wt).attr("y1",function(i){return t(n(i))}).attr("x2",dt).attr("y2",function(i){return t(n(i))})});[o,y].forEach(function(n){var t=n===o?"low":"high";lt.selectAll(".nv-boxplot-"+t).on("mouseover",function(t,r,u){d3.select(this).classed("hover",!0);e.elementMouseover({series:{key:n(t),color:f(t)||i(t,u)},e:d3.event})}).on("mouseout",function(t,r,u){d3.select(this).classed("hover",!1);e.elementMouseout({series:{key:n(t),color:f(t)||i(t,u)},e:d3.event})}).on("mousemove",function(){e.elementMousemove({e:d3.event})})});lt.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(n,t){d3.select(this).classed("hover",!0);e.elementMouseover({key:s(n),value:s(n),series:[{key:"Q3",value:c(n),color:f(n)||i(n,t)},{key:"Q2",value:v(n),color:f(n)||i(n,t)},{key:"Q1",value:l(n),color:f(n)||i(n,t)}],data:n,index:t,e:d3.event})}).on("mouseout",function(n,t){d3.select(this).classed("hover",!1);e.elementMouseout({key:s(n),value:s(n),series:[{key:"Q3",value:c(n),color:f(n)||i(n,t)},{key:"Q2",value:v(n),color:f(n)||i(n,t)},{key:"Q1",value:l(n),color:f(n)||i(n,t)}],data:n,index:t,e:d3.event})}).on("mousemove",function(){e.elementMousemove({e:d3.event})});ht.select("rect.nv-boxplot-box").watchTransition(h,"nv-boxplot: boxes").attr("y",function(n){return t(c(n))}).attr("width",pt).attr("x",wt).attr("height",function(n){return Math.abs(t(c(n))-t(l(n)))||1}).style("fill",function(n,t){return f(n)||i(n,t)}).style("stroke",function(n,t){return f(n)||i(n,t)});lt.append("line").attr("class","nv-boxplot-median");ht.select("line.nv-boxplot-median").watchTransition(h,"nv-boxplot: boxplots line").attr("x1",wt).attr("y1",function(n){return t(v(n))}).attr("x2",dt).attr("y2",function(n){return t(v(n))});at=ht.selectAll(".nv-boxplot-outlier").data(function(n){return b(n)||[]});at.enter().append("circle").style("fill",function(n,t,r){return p(n,t,r)||i(n,r)}).style("stroke",function(n,t,r){return p(n,t,r)||i(n,r)}).style("z-index",9e3).on("mouseover",function(n,t,r){d3.select(this).classed("hover",!0);e.elementMouseover({series:{key:d(n,t,r),color:p(n,t,r)||i(n,r)},e:d3.event})}).on("mouseout",function(n,t,r){d3.select(this).classed("hover",!1);e.elementMouseout({series:{key:d(n,t,r),color:p(n,t,r)||i(n,r)},e:d3.event})}).on("mousemove",function(){e.elementMousemove({e:d3.event})});at.attr("class","nv-boxplot-outlier");at.watchTransition(h,"nv-boxplot: nv-boxplot-outlier").attr("cx",r.rangeBand()*.45).attr("cy",function(n,i,r){return t(k(n,i,r))}).attr("r","3");at.exit().remove();ot=r.copy();st=t.copy()}),h.renderEnd("nv-boxplot immediate"),a}var u={top:0,right:0,bottom:0,left:0},nt=960,tt=500,ht=Math.floor(Math.random()*1e4),r=d3.scale.ordinal(),t=d3.scale.linear(),s=function(n){return n.label},l=function(n){return n.values.Q1},v=function(n){return n.values.Q2},c=function(n){return n.values.Q3},o=function(n){return n.values.whisker_low},y=function(n){return n.values.whisker_high},f=function(n){return n.color},b=function(n){return n.values.outliers},k=function(n){return n},d=function(n){return n},p=function(){return undefined},i=n.utils.defaultColor(),it=null,rt,ut,g,ft,e=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),w=250,et=null,ot,st,h=n.utils.renderWatch(e,w);return a.dispatch=e,a.options=n.utils.optionsFunc.bind(a),a._options=Object.create({},{width:{get:function(){return nt},set:function(n){nt=n}},height:{get:function(){return tt},set:function(n){tt=n}},maxBoxWidth:{get:function(){return et},set:function(n){et=n}},x:{get:function(){return s},set:function(n){s=n}},q1:{get:function(){return l},set:function(n){l=n}},q2:{get:function(){return v},set:function(n){v=n}},q3:{get:function(){return c},set:function(n){c=n}},wl:{get:function(){return o},set:function(n){o=n}},wh:{get:function(){return y},set:function(n){y=n}},itemColor:{get:function(){return f},set:function(n){f=n}},outliers:{get:function(){return b},set:function(n){b=n}},outlierValue:{get:function(){return k},set:function(n){k=n}},outlierLabel:{get:function(){return d},set:function(n){d=n}},outlierColor:{get:function(){return p},set:function(n){p=n}},xScale:{get:function(){return r},set:function(n){r=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return rt},set:function(n){rt=n}},yDomain:{get:function(){return g},set:function(n){g=n}},xRange:{get:function(){return ut},set:function(n){ut=n}},yRange:{get:function(){return ft},set:function(n){ft=n}},id:{get:function(){return ht},set:function(n){ht=n}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return u},set:function(n){u.top=n.top!==undefined?n.top:u.top;u.right=n.right!==undefined?n.right:u.right;u.bottom=n.bottom!==undefined?n.bottom:u.bottom;u.left=n.left!==undefined?n.left:u.left}},color:{get:function(){return i},set:function(t){i=n.utils.getColor(t)}},duration:{get:function(){return w},set:function(n){w=n;h.reset(w)}}}),n.utils.initOptions(a),a};n.models.boxPlotChart=function(){"use strict";function i(e){return o.reset(),o.models(r),l&&o.models(s),a&&o.models(f),e.each(function(e){var b=d3.select(this),ot=this,g,nt,it,ut,ft;if(n.utils.initSVG(b),g=(p||parseInt(b.style("width"))||960)-t.left-t.right,nt=(w||parseInt(b.style("height"))||400)-t.top-t.bottom,i.update=function(){d.beforeUpdate();b.transition().duration(u).call(i)},i.container=this,e&&e.length)b.selectAll(".nv-noData").remove();else return it=b.selectAll(".nv-noData").data([k]),it.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),it.attr("x",t.left+g/2).attr("y",t.top+nt/2).text(function(n){return n}),i;y=r.xScale();c=r.yScale().clamp(!0);var rt=b.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([e]),tt=rt.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),et=tt.append("defs"),o=rt.select("g");tt.append("g").attr("class","nv-x nv-axis");tt.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line");tt.append("g").attr("class","nv-barsWrap");o.attr("transform","translate("+t.left+","+t.top+")");v&&o.select(".nv-y.nv-axis").attr("transform","translate("+g+",0)");r.width(g).height(nt);ut=o.select(".nv-barsWrap").datum(e.filter(function(n){return!n.disabled}));ut.transition().call(r);et.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect");o.select("#nv-x-label-clip-"+r.id()+" rect").attr("width",y.rangeBand()*(h?2:1)).attr("height",16).attr("x",-y.rangeBand()/(h?1:2));l&&(s.scale(y).ticks(n.utils.calcTicksX(g/100,e)).tickSize(-nt,0),o.select(".nv-x.nv-axis").attr("transform","translate(0,"+c.range()[0]+")"),o.select(".nv-x.nv-axis").call(s),ft=o.select(".nv-x.nv-axis").selectAll("g"),h&&ft.selectAll("text").attr("transform",function(n,t,i){return"translate(0,"+(i%2==0?"5":"17")+")"}));a&&(f.scale(c).ticks(Math.floor(nt/36)).tickSize(-g,0),o.select(".nv-y.nv-axis").call(f));o.select(".nv-zeroLine line").attr("x1",0).attr("x2",g).attr("y1",c(0)).attr("y2",c(0))}),o.renderEnd("nv-boxplot chart immediate"),i}var r=n.models.boxPlot(),s=n.models.axis(),f=n.models.axis(),t={top:15,right:10,bottom:50,left:60},p=null,w=null,b=n.utils.getColor(),l=!0,a=!0,v=!1,h=!1,e=n.models.tooltip(),y,c,k="No Data Available.",d=d3.dispatch("beforeUpdate","renderEnd"),u=250,o;s.orient("bottom").showMaxMin(!1).tickFormat(function(n){return n});f.orient(v?"right":"left").tickFormat(d3.format(",.1f"));e.duration(0);o=n.utils.renderWatch(d,u);r.dispatch.on("elementMouseover.tooltip",function(n){e.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(n){e.data(n).hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){e()});return i.dispatch=d,i.boxplot=r,i.xAxis=s,i.yAxis=f,i.tooltip=e,i.options=n.utils.optionsFunc.bind(i),i._options=Object.create({},{width:{get:function(){return p},set:function(n){p=n}},height:{get:function(){return w},set:function(n){w=n}},staggerLabels:{get:function(){return h},set:function(n){h=n}},showXAxis:{get:function(){return l},set:function(n){l=n}},showYAxis:{get:function(){return a},set:function(n){a=n}},tooltipContent:{get:function(){return e},set:function(n){e=n}},noData:{get:function(){return k},set:function(n){k=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},duration:{get:function(){return u},set:function(n){u=n;o.reset(u);r.duration(u);s.duration(u);f.duration(u)}},color:{get:function(){return b},set:function(t){b=n.utils.getColor(t);r.color(b)}},rightAlignYAxis:{get:function(){return v},set:function(n){v=n;f.orient(n?"right":"left")}}}),n.utils.inheritOptions(i,r),n.utils.initOptions(i),i};n.models.bullet=function(){"use strict";function e(n,t){var i=n.slice();n.sort(function(n,r){var u=i.indexOf(n),f=i.indexOf(r);return d3.descending(t[u],t[f])})}function r(f){return f.each(function(r,f){var gt=l-t.left-t.right,ft=a-t.top-t.bottom,w,st,vt,f,at,yt,et,kt,dt;v=d3.select(this);n.utils.initSVG(v);var ut=o.call(this,r,f).slice(),pt=s.call(this,r,f).slice(),wt=k.call(this,r,f).slice(),rt=h.call(this,r,f).slice(),bt=d.call(this,r,f).slice(),ni=g.call(this,r,f).slice(),ti=nt.call(this,r,f).slice(),ot=tt.call(this,r,f).slice();e(bt,ut);e(ni,pt);e(ti,wt);e(ot,rt);ut.sort(d3.descending);pt.sort(d3.descending);wt.sort(d3.descending);rt.sort(d3.descending);w=d3.scale.linear().domain(d3.extent(d3.merge([c,ut]))).range(p?[gt,0]:[0,gt]);st=this.__chart__||d3.scale.linear().domain([0,Infinity]).range(w.range());this.__chart__=w;var fi=d3.min(ut),ei=d3.max(ut),oi=ut[1],ht=v.selectAll("g.nv-wrap.nv-bullet").data([r]),ri=ht.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet"),ct=ri.append("g"),lt=ht.select("g");for(f=0,at=ut.length;f<at;f++)vt="nv-range nv-range"+f,f<=2&&(vt=vt+" nv-range"+it[f]),ct.append("rect").attr("class",vt);ct.append("rect").attr("class","nv-measure");ht.attr("transform","translate("+t.left+","+t.top+")");var si=function(n){return Math.abs(st(n)-st(0))},ui=function(n){return Math.abs(w(n)-w(0))},hi=function(n){return n<0?st(n):st(0)},ii=function(n){return n<0?w(n):w(0)};for(f=0,at=ut.length;f<at;f++)yt=ut[f],lt.select("rect.nv-range"+f).datum(yt).attr("height",ft).transition().duration(u).attr("width",ui(yt)).attr("x",ii(yt));lt.select("rect.nv-measure").style("fill",y).attr("height",ft/3).attr("y",ft/3).on("mouseover",function(){i.elementMouseover({value:rt[0],label:ot[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){i.elementMousemove({value:rt[0],label:ot[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){i.elementMouseout({value:rt[0],label:ot[0]||"Current",color:d3.select(this).style("fill")})}).transition().duration(u).attr("width",rt<0?w(0)-w(rt[0]):w(rt[0])-w(0)).attr("x",ii(rt));et=ft/6;kt=pt.map(function(n,t){return{value:n,label:ni[t]}});ct.selectAll("path.nv-markerTriangle").data(kt).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+et+"L"+et+","+-et+" "+-et+","+-et+"Z").on("mouseover",function(n){i.elementMouseover({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill"),pos:[w(n.value),ft/2]})}).on("mousemove",function(n){i.elementMousemove({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(n){i.elementMouseout({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill")})});lt.selectAll("path.nv-markerTriangle").data(kt).transition().duration(u).attr("transform",function(n){return"translate("+w(n.value)+","+ft/2+")"});dt=wt.map(function(n,t){return{value:n,label:ti[t]}});ct.selectAll("line.nv-markerLine").data(dt).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",function(n){return w(n.value)}).attr("y1","2").attr("x2",function(n){return w(n.value)}).attr("y2",ft-2).on("mouseover",function(n){i.elementMouseover({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill"),pos:[w(n.value),ft/2]})}).on("mousemove",function(n){i.elementMousemove({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(n){i.elementMouseout({value:n.value,label:n.label||"Previous",color:d3.select(this).style("fill")})});lt.selectAll("line.nv-markerLine").data(dt).transition().duration(u).attr("x1",function(n){return w(n.value)}).attr("x2",function(n){return w(n.value)});ht.selectAll(".nv-range").on("mouseover",function(n,t){var r=bt[t]||b[t];i.elementMouseover({value:n,label:r,color:d3.select(this).style("fill")})}).on("mousemove",function(){i.elementMousemove({value:rt[0],label:ot[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(n,t){var r=bt[t]||b[t];i.elementMouseout({value:n,label:r,color:d3.select(this).style("fill")})})}),r}var t={top:0,right:0,bottom:0,left:0},f="left",p=!1,o=function(n){return n.ranges},s=function(n){return n.markers?n.markers:[]},k=function(n){return n.markerLines?n.markerLines:[0]},h=function(n){return n.measures},d=function(n){return n.rangeLabels?n.rangeLabels:[]},g=function(n){return n.markerLabels?n.markerLabels:[]},nt=function(n){return n.markerLineLabels?n.markerLineLabels:[]},tt=function(n){return n.measureLabels?n.measureLabels:[]},c=[0],l=380,a=30,v=null,w=null,y=n.utils.getColor(["#1f77b4"]),i=d3.dispatch("elementMouseover","elementMouseout","elementMousemove"),b=["Maximum","Mean","Minimum"],it=["Max","Avg","Min"],u=1e3;return r.dispatch=i,r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{ranges:{get:function(){return o},set:function(n){o=n}},markers:{get:function(){return s},set:function(n){s=n}},measures:{get:function(){return h},set:function(n){h=n}},forceX:{get:function(){return c},set:function(n){c=n}},width:{get:function(){return l},set:function(n){l=n}},height:{get:function(){return a},set:function(n){a=n}},tickFormat:{get:function(){return w},set:function(n){w=n}},duration:{get:function(){return u},set:function(n){u=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},orient:{get:function(){return f},set:function(n){f=n;p=f=="right"||f=="bottom"}},color:{get:function(){return y},set:function(t){y=n.utils.getColor(t)}}}),n.utils.initOptions(r),r};n.models.bulletChart=function(){"use strict";function i(u){return u.each(function(f,y){var b=d3.select(this),p,d,ft,it;n.utils.initSVG(b);var k=n.utils.availableWidth(l,b,t),w=o-t.top-t.bottom,at=this;if(i.update=function(){i(u)},i.container=this,f&&e.call(this,f,y))b.selectAll(".nv-noData").remove();else return n.utils.noData(i,b),i;var st=e.call(this,f,y).slice().sort(d3.descending),ht=h.call(this,f,y).slice().sort(d3.descending),ct=c.call(this,f,y).slice().sort(d3.descending),g=b.selectAll("g.nv-wrap.nv-bulletChart").data([f]),lt=g.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart"),nt=lt.append("g"),rt=g.select("g");nt.append("g").attr("class","nv-bulletWrap");nt.append("g").attr("class","nv-titles");g.attr("transform","translate("+t.left+","+t.top+")");p=d3.scale.linear().domain([0,Math.max(st[0],ht[0]||0,ct[0])]).range(v?[k,0]:[0,k]);d=this.__chart__||d3.scale.linear().domain([0,Infinity]).range(p.range());this.__chart__=p;var vt=function(n){return Math.abs(d(n)-d(0))},yt=function(n){return Math.abs(p(n)-p(0))},ut=nt.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(o-t.top-t.bottom)/2+")");ut.append("text").attr("class","nv-title").text(function(n){return n.title});ut.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(n){return n.subtitle});r.width(k).height(w);ft=rt.select(".nv-bulletWrap");d3.transition(ft).call(r);var et=a||p.tickFormat(k/100),tt=rt.selectAll("g.nv-tick").data(p.ticks(s?s:k/50),function(n){return this.textContent||et(n)}),ot=tt.enter().append("g").attr("class","nv-tick").attr("transform",function(n){return"translate("+d(n)+",0)"}).style("opacity",1e-6);ot.append("line").attr("y1",w).attr("y2",w*7/6);ot.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",w*7/6).text(et);it=d3.transition(tt).transition().duration(r.duration()).attr("transform",function(n){return"translate("+p(n)+",0)"}).style("opacity",1);it.select("line").attr("y1",w).attr("y2",w*7/6);it.select("text").attr("y",w*7/6);d3.transition(tt.exit()).transition().duration(r.duration()).attr("transform",function(n){return"translate("+p(n)+",0)"}).style("opacity",1e-6).remove()}),d3.timer.flush(),i}var r=n.models.bullet(),u=n.models.tooltip(),f="left",v=!1,t={top:5,right:40,bottom:20,left:120},e=function(n){return n.ranges},h=function(n){return n.markers?n.markers:[]},c=function(n){return n.measures},l=null,o=55,a=null,s=null,y=null,p=d3.dispatch();u.duration(0).headerEnabled(!1);r.dispatch.on("elementMouseover.tooltip",function(n){n.series={key:n.label,value:n.value,color:n.color};u.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){u()});return i.bullet=r,i.dispatch=p,i.tooltip=u,i.options=n.utils.optionsFunc.bind(i),i._options=Object.create({},{ranges:{get:function(){return e},set:function(n){e=n}},markers:{get:function(){return h},set:function(n){h=n}},measures:{get:function(){return c},set:function(n){c=n}},width:{get:function(){return l},set:function(n){l=n}},height:{get:function(){return o},set:function(n){o=n}},tickFormat:{get:function(){return a},set:function(n){a=n}},ticks:{get:function(){return s},set:function(n){s=n}},noData:{get:function(){return y},set:function(n){y=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},orient:{get:function(){return f},set:function(n){f=n;v=f=="right"||f=="bottom"}}}),n.utils.inheritOptions(i,r),n.utils.initOptions(i),i};n.models.candlestickBar=function(){"use strict";function u(it){return it.each(function(u){var rt,ot,it,ft,st,vt,yt;o=d3.select(this);rt=n.utils.availableWidth(p,o,r);ot=n.utils.availableHeight(w,o,r);n.utils.initSVG(o);it=rt/u[0].values.length*.45;i.domain(g||d3.extent(u[0].values.map(s).concat(b)));k?i.range(y||[rt*.5/u[0].values.length,rt*(u[0].values.length-.5)/u[0].values.length]):i.range(y||[5+it/2,rt-it/2-5]);t.domain(nt||[d3.min(u[0].values.map(l).concat(v)),d3.max(u[0].values.map(c).concat(v))]).range(tt||[ot,0]);i.domain()[0]===i.domain()[1]&&(i.domain()[0]?i.domain([i.domain()[0]-i.domain()[0]*.01,i.domain()[1]+i.domain()[1]*.01]):i.domain([-1,1]));t.domain()[0]===t.domain()[1]&&(t.domain()[0]?t.domain([t.domain()[0]+t.domain()[0]*.01,t.domain()[1]-t.domain()[1]*.01]):t.domain([-1,1]));var et=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([u[0].values]),ht=et.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar"),ct=ht.append("defs"),lt=ht.append("g"),at=et.select("g");lt.append("g").attr("class","nv-ticks");et.attr("transform","translate("+r.left+","+r.top+")");o.on("click",function(n,t){ut.chartClick({data:n,index:t,pos:d3.event,id:h})});ct.append("clipPath").attr("id","nv-chart-clip-path-"+h).append("rect");et.select("#nv-chart-clip-path-"+h+" rect").attr("width",rt).attr("height",ot);at.attr("clip-path",d?"url(#nv-chart-clip-path-"+h+")":"");ft=et.select(".nv-ticks").selectAll(".nv-tick").data(function(n){return n});ft.exit().remove();st=ft.enter().append("g");ft.attr("class",function(n,t,i){return(f(n,t)>e(n,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+i+"-"+t});vt=st.append("line").attr("class","nv-candlestick-lines").attr("transform",function(n,t){return"translate("+i(s(n,t))+",0)"}).attr("x1",0).attr("y1",function(n,i){return t(c(n,i))}).attr("x2",0).attr("y2",function(n,i){return t(l(n,i))});yt=st.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(n,r){return"translate("+(i(s(n,r))-it/2)+","+(t(a(n,r))-(f(n,r)>e(n,r)?t(e(n,r))-t(f(n,r)):0))+")"}).attr("x",0).attr("y",0).attr("width",it).attr("height",function(n,i){var r=f(n,i),u=e(n,i);return r>u?t(u)-t(r):t(r)-t(u)});ft.select(".nv-candlestick-lines").transition().attr("transform",function(n,t){return"translate("+i(s(n,t))+",0)"}).attr("x1",0).attr("y1",function(n,i){return t(c(n,i))}).attr("x2",0).attr("y2",function(n,i){return t(l(n,i))});ft.select(".nv-candlestick-rects").transition().attr("transform",function(n,r){return"translate("+(i(s(n,r))-it/2)+","+(t(a(n,r))-(f(n,r)>e(n,r)?t(e(n,r))-t(f(n,r)):0))+")"}).attr("x",0).attr("y",0).attr("width",it).attr("height",function(n,i){var r=f(n,i),u=e(n,i);return r>u?t(u)-t(r):t(r)-t(u)})}),u}var r={top:0,right:0,bottom:0,left:0},p=null,w=null,h=Math.floor(Math.random()*1e4),o,i=d3.scale.linear(),t=d3.scale.linear(),s=function(n){return n.x},a=function(n){return n.y},f=function(n){return n.open},e=function(n){return n.close},c=function(n){return n.high},l=function(n){return n.low},b=[],v=[],k=!1,d=!0,it=n.utils.defaultColor(),rt=!1,g,nt,y,tt,ut=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return u.highlightPoint=function(n,t){u.clearHighlights();o.select(".nv-candlestickBar .nv-tick-0-"+n).classed("hover",t)},u.clearHighlights=function(){o.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},u.dispatch=ut,u.options=n.utils.optionsFunc.bind(u),u._options=Object.create({},{width:{get:function(){return p},set:function(n){p=n}},height:{get:function(){return w},set:function(n){w=n}},xScale:{get:function(){return i},set:function(n){i=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return g},set:function(n){g=n}},yDomain:{get:function(){return nt},set:function(n){nt=n}},xRange:{get:function(){return y},set:function(n){y=n}},yRange:{get:function(){return tt},set:function(n){tt=n}},forceX:{get:function(){return b},set:function(n){b=n}},forceY:{get:function(){return v},set:function(n){v=n}},padData:{get:function(){return k},set:function(n){k=n}},clipEdge:{get:function(){return d},set:function(n){d=n}},id:{get:function(){return h},set:function(n){h=n}},interactive:{get:function(){return rt},set:function(n){rt=n}},x:{get:function(){return s},set:function(n){s=n}},y:{get:function(){return a},set:function(n){a=n}},open:{get:function(){return f()},set:function(n){f=n}},close:{get:function(){return e()},set:function(n){e=n}},high:{get:function(){return c},set:function(n){c=n}},low:{get:function(){return l},set:function(n){l=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!=undefined?n.top:r.top;r.right=n.right!=undefined?n.right:r.right;r.bottom=n.bottom!=undefined?n.bottom:r.bottom;r.left=n.left!=undefined?n.left:r.left}},color:{get:function(){return it},set:function(t){it=n.utils.getColor(t)}}}),n.utils.initOptions(u),u};n.models.cumulativeLineChart=function(){"use strict";function t(g){return p.reset(),p.models(u),it&&p.models(h),rt&&p.models(o),g.each(function(p){function hi(){d3.select(t.container).style("cursor","ew-resize")}function ci(){r.x=d3.event.x;r.i=Math.round(y.invert(r.x));fi()}function li(){d3.select(t.container).style("cursor","auto");i.index=r.i;c.stateChange(i)}function fi(){gt.data([r]);var n=t.duration();t.duration(0);t.update();t.duration(n)}var nt=d3.select(this),dt,ei,ti,oi,si,ii,ri,gt;n.utils.initSVG(nt);nt.classed("nv-chart-"+vt,!0);var yi=this,ct=n.utils.availableWidth(et,nt,f),at=n.utils.availableHeight(tt,nt,f);if(t.update=function(){s===0?nt.call(t):nt.transition().duration(s).call(t)},t.container=this,i.setter(pt(p),t.update).getter(yt(p)).update(),i.disabled=p.map(function(n){return!!n.disabled}),!v){v={};for(dt in i)v[dt]=i[dt]instanceof Array?i[dt].slice(0):i[dt]}if(ei=d3.behavior.drag().on("dragstart",hi).on("drag",ci).on("dragend",li),p&&p.length&&p.filter(function(n){return n.values.length}).length)nt.selectAll(".nv-noData").remove();else return n.utils.noData(t,nt),t;ht=u.xScale();k=u.yScale();e?u.yDomain(null):(ti=p.filter(function(n){return!n.disabled}).map(function(n){var t=d3.extent(n.values,u.y());return t[0]<-.95&&(t[0]=-.95),[(t[0]-t[1])/(1+t[1]),(t[1]-t[0])/(1+t[0])]}),oi=[d3.min(ti,function(n){return n[0]}),d3.max(ti,function(n){return n[1]})],u.yDomain(oi));y.domain([0,p[0].values.length-1]).range([0,ct]).clamp(!0);var p=wt(r.i,p),ai=ft?"none":"all",kt=nt.selectAll("g.nv-wrap.nv-cumulativeLine").data([p]),bt=kt.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),g=kt.select("g");bt.append("g").attr("class","nv-interactive");bt.append("g").attr("class","nv-x nv-axis").style("pointer-events","none");bt.append("g").attr("class","nv-y nv-axis");bt.append("g").attr("class","nv-background");bt.append("g").attr("class","nv-linesWrap").style("pointer-events",ai);bt.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none");bt.append("g").attr("class","nv-legendWrap");bt.append("g").attr("class","nv-controlsWrap");ot?(l.width(ct),g.select(".nv-legendWrap").datum(p).call(l),lt||l.height()===f.top||(f.top=l.height(),at=n.utils.availableHeight(tt,nt,f)),g.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")")):g.select(".nv-legendWrap").selectAll("*").remove();st?(si=[{key:"Re-scale y-axis",disabled:!e}],w.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),g.select(".nv-controlsWrap").datum(si).attr("transform","translate(0,"+-f.top+")").call(w)):g.select(".nv-controlsWrap").selectAll("*").remove();kt.attr("transform","translate("+f.left+","+f.top+")");ut&&g.select(".nv-y.nv-axis").attr("transform","translate("+ct+",0)");ii=p.filter(function(n){return n.tempDisabled});kt.select(".tempDisabled").remove();ii.length&&kt.append("text").attr("class","tempDisabled").attr("x",ct/2).attr("y","-.71em").style("text-anchor","end").text(ii.map(function(n){return n.key}).join(", ")+" values cannot be calculated for this time period.");ft&&(a.width(ct).height(at).margin({left:f.left,top:f.top}).svgContainer(nt).xScale(ht),kt.select(".nv-interactive").call(a));bt.select(".nv-background").append("rect");g.select(".nv-background rect").attr("width",ct).attr("height",at);u.y(function(n){return n.display.y}).width(ct).height(at).color(p.map(function(n,t){return n.color||b(n,t)}).filter(function(n,t){return!p[t].disabled&&!p[t].tempDisabled}));ri=g.select(".nv-linesWrap").datum(p.filter(function(n){return!n.disabled&&!n.tempDisabled}));ri.call(u);p.forEach(function(n,t){n.seriesIndex=t});var vi=p.filter(function(n){return!n.disabled&&!!d(n)}),ui=g.select(".nv-avgLinesWrap").selectAll("line").data(vi,function(n){return n.key}),ni=function(n){var t=k(d(n));return t<0?0:t>at?at:t};ui.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(n){return u.color()(n,n.seriesIndex)}).attr("x1",0).attr("x2",ct).attr("y1",ni).attr("y2",ni);ui.style("stroke-opacity",function(n){var t=k(d(n));return t<0||t>at?0:1}).attr("x1",0).attr("x2",ct).attr("y1",ni).attr("y2",ni);ui.exit().remove();gt=ri.selectAll(".nv-indexLine").data([r]);gt.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(ei);gt.attr("transform",function(n){return"translate("+y(n.i)+",0)"}).attr("height",at);it&&(h.scale(ht)._ticks(n.utils.calcTicksX(ct/70,p)).tickSize(-at,0),g.select(".nv-x.nv-axis").attr("transform","translate(0,"+k.range()[0]+")"),g.select(".nv-x.nv-axis").call(h));rt&&(o.scale(k)._ticks(n.utils.calcTicksY(at/36,p)).tickSize(-ct,0),g.select(".nv-y.nv-axis").call(o));g.select(".nv-background rect").on("click",function(){r.x=d3.mouse(this)[0];r.i=Math.round(y.invert(r.x));i.index=r.i;c.stateChange(i);fi()});u.dispatch.on("elementClick",function(n){r.i=n.pointIndex;r.x=y(r.i);i.index=r.i;c.stateChange(i);fi()});w.dispatch.on("legendClick",function(n){n.disabled=!n.disabled;e=!n.disabled;i.rescaleY=e;c.stateChange(i);t.update()});l.dispatch.on("stateChange",function(n){for(var r in n)i[r]=n[r];c.stateChange(i);t.update()});a.dispatch.on("elementMousemove",function(i){var e,r,s,f,l;if(u.clearHighlights(),f=[],p.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(o,h){r=n.interactiveBisect(o.values,i.pointXValue,t.x());u.highlightPoint(h,r,!0);var c=o.values[r];typeof c!="undefined"&&(typeof e=="undefined"&&(e=c),typeof s=="undefined"&&(s=t.xScale()(t.x()(c,r))),f.push({key:o.key,value:t.y()(c,r),color:b(o,o.seriesIndex)}))}),f.length>2){var v=t.yScale().invert(i.mouseY),y=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),w=.03*y,c=n.nearestValueIndex(f.map(function(n){return n.value}),v,w);c!==null&&(f[c].highlight=!0)}l=h.tickFormat()(t.x()(e,r),r);a.tooltip.valueFormatter(function(n){return o.tickFormat()(n)}).data({value:l,series:f})();a.renderGuideLine(s)});a.dispatch.on("elementMouseout",function(){u.clearHighlights()});c.on("changeState",function(n){typeof n.disabled!="undefined"&&(p.forEach(function(t,i){t.disabled=n.disabled[i]}),i.disabled=n.disabled);typeof n.index!="undefined"&&(r.i=n.index,r.x=y(r.i),i.index=n.index,gt.data([r]));typeof n.rescaleY!="undefined"&&(e=n.rescaleY);t.update()})}),p.renderEnd("cumulativeLineChart immediate"),t}function wt(n,t){return g||(g=u.y()),t.map(function(t){var r,i;return t.values?(r=t.values[n],r==null)?t:(i=g(r,n),i<-.95&&!ct)?(t.tempDisabled=!0,t):(t.tempDisabled=!1,t.values=t.values.map(function(n,t){return n.display={y:(g(n,t)-i)/(1+i)},n}),t):t})}var u=n.models.line(),h=n.models.axis(),o=n.models.axis(),l=n.models.legend(),w=n.models.legend(),a=n.interactiveGuideline(),nt=n.models.tooltip(),f={top:30,right:30,bottom:50,left:60},lt=null,b=n.utils.defaultColor(),et=null,tt=null,ot=!0,it=!0,rt=!0,ut=!1,st=!0,ft=!1,e=!0,ht,k,vt=u.id(),i=n.utils.state(),v=null,at=null,d=function(n){return n.average},c=d3.dispatch("stateChange","changeState","renderEnd"),s=250,ct=!1,g;i.index=0;i.rescaleY=e;h.orient("bottom").tickPadding(7);o.orient(ut?"right":"left");nt.valueFormatter(function(n,t){return o.tickFormat()(n,t)}).headerFormatter(function(n,t){return h.tickFormat()(n,t)});w.updateState(!1);var y=d3.scale.linear(),r={i:0,x:0},p=n.utils.renderWatch(c,s),yt=function(n){return function(){return{active:n.map(function(n){return!n.disabled}),index:r.i,rescaleY:e}}},pt=function(n){return function(t){t.index!==undefined&&(r.i=t.index);t.rescaleY!==undefined&&(e=t.rescaleY);t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};u.dispatch.on("elementMouseover.tooltip",function(n){var i={x:t.x()(n.point),y:t.y()(n.point),color:n.point.color};n.point=i;nt.data(n).hidden(!1)});u.dispatch.on("elementMouseout.tooltip",function(){nt.hidden(!0)});return g=null,t.dispatch=c,t.lines=u,t.legend=l,t.controls=w,t.xAxis=h,t.yAxis=o,t.interactiveLayer=a,t.state=i,t.tooltip=nt,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return et},set:function(n){et=n}},height:{get:function(){return tt},set:function(n){tt=n}},rescaleY:{get:function(){return e},set:function(n){e=n}},showControls:{get:function(){return st},set:function(n){st=n}},showLegend:{get:function(){return ot},set:function(n){ot=n}},average:{get:function(){return d},set:function(n){d=n}},defaultState:{get:function(){return v},set:function(n){v=n}},noData:{get:function(){return at},set:function(n){at=n}},showXAxis:{get:function(){return it},set:function(n){it=n}},showYAxis:{get:function(){return rt},set:function(n){rt=n}},noErrorCheck:{get:function(){return ct},set:function(n){ct=n}},margin:{get:function(){return f},set:function(n){n.top!==undefined&&(f.top=n.top,lt=n.top);f.right=n.right!==undefined?n.right:f.right;f.bottom=n.bottom!==undefined?n.bottom:f.bottom;f.left=n.left!==undefined?n.left:f.left}},color:{get:function(){return b},set:function(t){b=n.utils.getColor(t);l.color(b)}},useInteractiveGuideline:{get:function(){return ft},set:function(n){ft=n;n===!0&&(t.interactive(!1),t.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return ut},set:function(n){ut=n;o.orient(n?"right":"left")}},duration:{get:function(){return s},set:function(n){s=n;u.duration(s);h.duration(s);o.duration(s);p.reset(s)}}}),n.utils.inheritOptions(t,u),n.utils.initOptions(t),t};n.models.discreteBar=function(){"use strict";function o(y){return f.reset(),y.each(function(o){var st=p-i.left-i.right,ot=w-i.top-i.bottom,ft,rt,y,et;b=d3.select(this);n.utils.initSVG(b);o.forEach(function(n,t){n.values.forEach(function(n){n.series=t})});ft=l&&a?[]:o.map(function(n){return n.values.map(function(n,t){return{x:s(n,t),y:u(n,t),y0:n.y0}})});r.domain(l||d3.merge(ft).map(function(n){return n.x})).rangeBands(g||[0,st],.1);t.domain(a||d3.extent(d3.merge(ft).map(function(n){return n.y}).concat(k)));c?t.range(v||[ot-(t.domain()[0]<0?12:0),t.domain()[1]>0?12:0]):t.range(v||[ot,0]);tt=tt||r;it=it||t.copy().range([t(0),t(0)]);var ut=b.selectAll("g.nv-wrap.nv-discretebar").data([o]),ht=ut.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar"),ct=ht.append("g"),lt=ut.select("g");ct.append("g").attr("class","nv-groups");ut.attr("transform","translate("+i.left+","+i.top+")");rt=ut.select(".nv-groups").selectAll(".nv-group").data(function(n){return n},function(n){return n.key});rt.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);rt.exit().watchTransition(f,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove();rt.attr("class",function(n,t){return"nv-group nv-series-"+t}).classed("hover",function(n){return n.hover});rt.watchTransition(f,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);y=rt.selectAll("g.nv-bar").data(function(n){return n.values});y.exit().remove();et=y.enter().append("g").attr("transform",function(n,i){return"translate("+(r(s(n,i))+r.rangeBand()*.05)+", "+t(0)+")"}).on("mouseover",function(n,t){d3.select(this).classed("hover",!0);e.elementMouseover({data:n,index:t,color:d3.select(this).style("fill")})}).on("mouseout",function(n,t){d3.select(this).classed("hover",!1);e.elementMouseout({data:n,index:t,color:d3.select(this).style("fill")})}).on("mousemove",function(n,t){e.elementMousemove({data:n,index:t,color:d3.select(this).style("fill")})}).on("click",function(n,t){var i=this;e.elementClick({data:n,index:t,color:d3.select(this).style("fill"),event:d3.event,element:i});d3.event.stopPropagation()}).on("dblclick",function(n,t){e.elementDblClick({data:n,index:t,color:d3.select(this).style("fill")});d3.event.stopPropagation()});et.append("rect").attr("height",0).attr("width",r.rangeBand()*.9/o.length);c?(et.append("text").attr("text-anchor","middle"),y.select("text").text(function(n,t){return d(u(n,t))}).watchTransition(f,"discreteBar: bars text").attr("x",r.rangeBand()*.9/2).attr("y",function(n,i){return u(n,i)<0?t(u(n,i))-t(0)+12:-4})):y.selectAll("text").remove();y.attr("class",function(n,t){return u(n,t)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(n,t){return n.color||h(n,t)}).style("stroke",function(n,t){return n.color||h(n,t)}).select("rect").attr("class",nt).watchTransition(f,"discreteBar: bars rect").attr("width",r.rangeBand()*.9/o.length);y.watchTransition(f,"discreteBar: bars").attr("transform",function(n,i){var f=r(s(n,i))+r.rangeBand()*.05,e=u(n,i)<0?t(0):t(0)-t(u(n,i))<1?t(0)-1:t(u(n,i));return"translate("+f+", "+e+")"}).select("rect").attr("height",function(n,i){return Math.max(Math.abs(t(u(n,i))-t(0)),1)});tt=r.copy();it=t.copy()}),f.renderEnd("discreteBar immediate"),o}var i={top:0,right:0,bottom:0,left:0},p=960,w=500,rt=Math.floor(Math.random()*1e4),b,r=d3.scale.ordinal(),t=d3.scale.linear(),s=function(n){return n.x},u=function(n){return n.y},k=[0],h=n.utils.defaultColor(),c=!1,d=d3.format(",.2f"),l,a,g,v,e=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),nt="discreteBar",y=250,tt,it,f=n.utils.renderWatch(e,y);return o.dispatch=e,o.options=n.utils.optionsFunc.bind(o),o._options=Object.create({},{width:{get:function(){return p},set:function(n){p=n}},height:{get:function(){return w},set:function(n){w=n}},forceY:{get:function(){return k},set:function(n){k=n}},showValues:{get:function(){return c},set:function(n){c=n}},x:{get:function(){return s},set:function(n){s=n}},y:{get:function(){return u},set:function(n){u=n}},xScale:{get:function(){return r},set:function(n){r=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return l},set:function(n){l=n}},yDomain:{get:function(){return a},set:function(n){a=n}},xRange:{get:function(){return g},set:function(n){g=n}},yRange:{get:function(){return v},set:function(n){v=n}},valueFormat:{get:function(){return d},set:function(n){d=n}},id:{get:function(){return rt},set:function(n){rt=n}},rectClass:{get:function(){return nt},set:function(n){nt=n}},margin:{get:function(){return i},set:function(n){i.top=n.top!==undefined?n.top:i.top;i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},color:{get:function(){return h},set:function(t){h=n.utils.getColor(t)}},duration:{get:function(){return y},set:function(n){y=n;f.reset(y)}}}),n.utils.initOptions(o),o};n.models.discreteBarChart=function(){"use strict";function t(c){return o.reset(),o.models(r),w&&o.models(e),b&&o.models(u),c.each(function(o){var p=d3.select(this),ct=this,rt,ut,st,ot;if(n.utils.initSVG(p),rt=n.utils.availableWidth(d,p,i),ut=n.utils.availableHeight(y,p,i),t.update=function(){tt.beforeUpdate();p.transition().duration(f).call(t)},t.container=this,o&&o.length&&o.filter(function(n){return n.values.length}).length)p.selectAll(".nv-noData").remove();else return n.utils.noData(t,p),t;k=r.xScale();h=r.yScale().clamp(!0);var et=p.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([o]),ft=et.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),ht=ft.append("defs"),c=et.select("g");ft.append("g").attr("class","nv-x nv-axis");ft.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line");ft.append("g").attr("class","nv-barsWrap");ft.append("g").attr("class","nv-legendWrap");c.attr("transform","translate("+i.left+","+i.top+")");g?(s.width(rt),c.select(".nv-legendWrap").datum(o).call(s),it||s.height()===i.top||(i.top=s.height(),ut=n.utils.availableHeight(y,p,i)),et.select(".nv-legendWrap").attr("transform","translate(0,"+-i.top+")")):c.select(".nv-legendWrap").selectAll("*").remove();l&&c.select(".nv-y.nv-axis").attr("transform","translate("+rt+",0)");r.width(rt).height(ut);st=c.select(".nv-barsWrap").datum(o.filter(function(n){return!n.disabled}));st.transition().call(r);ht.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect");c.select("#nv-x-label-clip-"+r.id()+" rect").attr("width",k.rangeBand()*(a?2:1)).attr("height",16).attr("x",-k.rangeBand()/(a?1:2));w&&(e.scale(k)._ticks(n.utils.calcTicksX(rt/100,o)).tickSize(-ut,0),c.select(".nv-x.nv-axis").attr("transform","translate(0,"+(h.range()[0]+(r.showValues()&&h.domain()[0]<0?16:0))+")"),c.select(".nv-x.nv-axis").call(e),ot=c.select(".nv-x.nv-axis").selectAll("g"),a&&ot.selectAll("text").attr("transform",function(n,t,i){return"translate(0,"+(i%2==0?"5":"17")+")"}),v&&ot.selectAll(".tick text").attr("transform","rotate("+v+" 0,0)").style("text-anchor",v>0?"start":"end"),nt&&c.selectAll(".tick text").call(n.utils.wrapTicks,t.xAxis.rangeBand()));b&&(u.scale(h)._ticks(n.utils.calcTicksY(ut/36,o)).tickSize(-rt,0),c.select(".nv-y.nv-axis").call(u));c.select(".nv-zeroLine line").attr("x1",0).attr("x2",l?-rt:rt).attr("y1",h(0)).attr("y2",h(0))}),o.renderEnd("discreteBar chart immediate"),t}var r=n.models.discreteBar(),e=n.models.axis(),u=n.models.axis(),s=n.models.legend(),c=n.models.tooltip(),i={top:15,right:10,bottom:50,left:60},it=null,d=null,y=null,p=n.utils.getColor(),g=!1,w=!0,b=!0,l=!1,a=!1,nt=!1,v=0,k,h,rt=null,tt=d3.dispatch("beforeUpdate","renderEnd"),f=250,o;e.orient("bottom").showMaxMin(!1).tickFormat(function(n){return n});u.orient(l?"right":"left").tickFormat(d3.format(",.1f"));c.duration(0).headerEnabled(!1).valueFormatter(function(n,t){return u.tickFormat()(n,t)}).keyFormatter(function(n,t){return e.tickFormat()(n,t)});o=n.utils.renderWatch(tt,f);r.dispatch.on("elementMouseover.tooltip",function(n){n.series={key:t.x()(n.data),value:t.y()(n.data),color:n.color};c.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){c.hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){c()});return t.dispatch=tt,t.discretebar=r,t.legend=s,t.xAxis=e,t.yAxis=u,t.tooltip=c,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return d},set:function(n){d=n}},height:{get:function(){return y},set:function(n){y=n}},showLegend:{get:function(){return g},set:function(n){g=n}},staggerLabels:{get:function(){return a},set:function(n){a=n}},rotateLabels:{get:function(){return v},set:function(n){v=n}},wrapLabels:{get:function(){return nt},set:function(n){nt=!!n}},showXAxis:{get:function(){return w},set:function(n){w=n}},showYAxis:{get:function(){return b},set:function(n){b=n}},noData:{get:function(){return rt},set:function(n){rt=n}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,it=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},duration:{get:function(){return f},set:function(n){f=n;o.reset(f);r.duration(f);e.duration(f);u.duration(f)}},color:{get:function(){return p},set:function(t){p=n.utils.getColor(t);r.color(p);s.color(p)}},rightAlignYAxis:{get:function(){return l},set:function(n){l=n;u.orient(n?"right":"left")}}}),n.utils.inheritOptions(t,r),n.utils.initOptions(t),t};n.models.distribution=function(){"use strict";function t(s){return o.reset(),s.each(function(t){var k=h-(r==="x"?i.left+i.right:i.top+i.bottom),y=r=="x"?"y":"x",p=d3.select(this),s,a;n.utils.initSVG(p);e=e||f;var v=p.selectAll("g.nv-distribution").data([t]),w=v.enter().append("g").attr("class","nvd3 nv-distribution"),d=w.append("g"),b=v.select("g");v.attr("transform","translate("+i.left+","+i.top+")");s=b.selectAll("g.nv-dist").data(function(n){return n},function(n){return n.key});s.enter().append("g");s.attr("class",function(n,t){return"nv-dist nv-series-"+t}).style("stroke",function(n,t){return l(n,t)});a=s.selectAll("line.nv-dist"+r).data(function(n){return n.values});a.enter().append("line").attr(r+"1",function(n,t){return e(u(n,t))}).attr(r+"2",function(n,t){return e(u(n,t))});o.transition(s.exit().selectAll("line.nv-dist"+r),"dist exit").attr(r+"1",function(n,t){return f(u(n,t))}).attr(r+"2",function(n,t){return f(u(n,t))}).style("stroke-opacity",0).remove();a.attr("class",function(n,t){return"nv-dist"+r+" nv-dist"+r+"-"+t}).attr(y+"1",0).attr(y+"2",c);o.transition(a,"dist").attr(r+"1",function(n,t){return f(u(n,t))}).attr(r+"2",function(n,t){return f(u(n,t))});e=f.copy()}),o.renderEnd("distribution immediate"),t}var i={top:0,right:0,bottom:0,left:0},h=400,c=8,r="x",u=function(n){return n[r]},l=n.utils.defaultColor(),f=d3.scale.linear(),s=250,a=d3.dispatch("renderEnd"),e,o=n.utils.renderWatch(a,s);return t.options=n.utils.optionsFunc.bind(t),t.dispatch=a,t.margin=function(n){return arguments.length?(i.top=typeof n.top!="undefined"?n.top:i.top,i.right=typeof n.right!="undefined"?n.right:i.right,i.bottom=typeof n.bottom!="undefined"?n.bottom:i.bottom,i.left=typeof n.left!="undefined"?n.left:i.left,t):i},t.width=function(n){return arguments.length?(h=n,t):h},t.axis=function(n){return arguments.length?(r=n,t):r},t.size=function(n){return arguments.length?(c=n,t):c},t.getData=function(n){return arguments.length?(u=d3.functor(n),t):u},t.scale=function(n){return arguments.length?(f=n,t):f},t.color=function(i){return arguments.length?(l=n.utils.getColor(i),t):l},t.duration=function(n){return arguments.length?(s=n,o.reset(s),t):s},t};n.models.focus=function(t){"use strict";function r(g){return c.reset(),c.models(t),v&&c.models(h),y&&c.models(o),g.each(function(c){function ct(n){var r=+(n=="e"),i=r?1:-1,t=g/3;return"M"+.5*i+","+t+"A6,6 0 0 "+r+" "+6.5*i+","+(t+6)+"V"+(2*t-6)+"A6,6 0 0 "+r+" "+.5*i+","+2*t+"ZM"+2.5*i+","+(t+8)+"V"+(2*t-8)+"M"+4.5*i+","+(t+8)+"V"+(2*t-8)}function lt(){i.empty()||i.extent(s);ft.data([i.empty()?f.domain():s]).each(function(n){var t=f(n[0])-f.range()[0],i=tt-f(n[1]);d3.select(this).select(".left").attr("width",t<0?0:t);d3.select(this).select(".right").attr("x",f(n[1])).attr("width",i<0?0:i)})}function ht(n){s=i.empty()?null:i.extent();var t=i.empty()?f.domain():i.extent();if(l.brush({extent:t,brush:i}),lt(),n)l.onBrush(t)}var rt=d3.select(this),tt,g,st,ft,et,ot;n.utils.initSVG(rt);tt=n.utils.availableWidth(k,rt,u);g=d-u.top-u.bottom;r.update=function(){e===0?rt.call(r):rt.transition().duration(e).call(r)};r.container=this;f=t.xScale();w=t.yScale();var ut=rt.selectAll("g.nv-focus").data([c]),it=ut.enter().append("g").attr("class","nvd3 nv-focus").append("g"),nt=ut.select("g");ut.attr("transform","translate("+u.left+","+u.top+")");it.append("g").attr("class","nv-background").append("rect");it.append("g").attr("class","nv-x nv-axis");it.append("g").attr("class","nv-y nv-axis");it.append("g").attr("class","nv-contentWrap");it.append("g").attr("class","nv-brushBackground");it.append("g").attr("class","nv-x nv-brush");p&&nt.select(".nv-y.nv-axis").attr("transform","translate("+tt+",0)");nt.select(".nv-background rect").attr("width",tt).attr("height",g);t.width(tt).height(g).color(c.map(function(n,t){return n.color||a(n,t)}).filter(function(n,t){return!c[t].disabled}));st=nt.select(".nv-contentWrap").datum(c.filter(function(n){return!n.disabled}));d3.transition(st).call(t);i.x(f).on("brush",function(){ht(b)});i.on("brushend",function(){if(!b)l.onBrush(i.empty()?f.domain():i.extent())});s&&i.extent(s);ft=nt.select(".nv-brushBackground").selectAll("g").data([s||i.extent()]);et=ft.enter().append("g");et.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",g);et.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",g);ot=nt.select(".nv-x.nv-brush").call(i);ot.selectAll("rect").attr("height",g);ot.selectAll(".resize").append("path").attr("d",ct);ht(!0);nt.select(".nv-background rect").attr("width",tt).attr("height",g);v&&(h.scale(f)._ticks(n.utils.calcTicksX(tt/100,c)).tickSize(-g,0),nt.select(".nv-x.nv-axis").attr("transform","translate(0,"+w.range()[0]+")"),d3.transition(nt.select(".nv-x.nv-axis")).call(h));y&&(o.scale(w)._ticks(n.utils.calcTicksY(g/36,c)).tickSize(-tt,0),d3.transition(nt.select(".nv-y.nv-axis")).call(o));nt.select(".nv-x.nv-axis").attr("transform","translate(0,"+w.range()[0]+")")}),c.renderEnd("focus immediate"),r}var t=t||n.models.line(),h=n.models.axis(),o=n.models.axis(),i=d3.svg.brush(),u={top:10,right:0,bottom:30,left:0},a=n.utils.defaultColor(),k=null,d=70,v=!0,y=!1,p=!1,f,w,s=null,e=250,l=d3.dispatch("brush","onBrush","renderEnd"),b=!0,c;return t.interactive(!1),t.pointActive(function(){return!1}),c=n.utils.renderWatch(l,e),r.dispatch=l,r.content=t,r.brush=i,r.xAxis=h,r.yAxis=o,r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{width:{get:function(){return k},set:function(n){k=n}},height:{get:function(){return d},set:function(n){d=n}},showXAxis:{get:function(){return v},set:function(n){v=n}},showYAxis:{get:function(){return y},set:function(n){y=n}},brushExtent:{get:function(){return s},set:function(n){s=n}},syncBrushing:{get:function(){return b},set:function(n){b=n}},margin:{get:function(){return u},set:function(n){u.top=n.top!==undefined?n.top:u.top;u.right=n.right!==undefined?n.right:u.right;u.bottom=n.bottom!==undefined?n.bottom:u.bottom;u.left=n.left!==undefined?n.left:u.left}},duration:{get:function(){return e},set:function(n){e=n;c.reset(e);t.duration(e);h.duration(e);o.duration(e)}},color:{get:function(){return a},set:function(i){a=n.utils.getColor(i);t.color(a)}},interpolate:{get:function(){return t.interpolate()},set:function(n){t.interpolate(n)}},xTickFormat:{get:function(){return h.tickFormat()},set:function(n){h.tickFormat(n)}},yTickFormat:{get:function(){return o.tickFormat()},set:function(n){o.tickFormat(n)}},x:{get:function(){return t.x()},set:function(n){t.x(n)}},y:{get:function(){return t.y()},set:function(n){t.y(n)}},rightAlignYAxis:{get:function(){return p},set:function(n){p=n;o.orient(p?"right":"left")}}}),n.utils.inheritOptions(r,t),n.utils.initOptions(r),r};n.models.forceDirectedGraph=function(){"use strict";function r(k){return g.reset(),k.each(function(k){var d,g,nt;if(t=d3.select(this),n.utils.initSVG(t),d=n.utils.availableWidth(e,t,i),g=n.utils.availableHeight(o,t,i),t.attr("width",d).attr("height",g),k&&k.links&&k.nodes)t.selectAll(".nv-noData").remove();else return n.utils.noData(r,t),r;t.selectAll("*").remove();nt=new Set;k.nodes.forEach(function(n){var t=Object.keys(n);t.forEach(function(n){nt.add(n)})});var it=d3.layout.force().nodes(k.nodes).links(k.links).size([d,g]).linkStrength(s).friction(h).linkDistance(c).charge(l).gravity(a).theta(v).alpha(y).start(),rt=t.selectAll(".link").data(k.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(n){return Math.sqrt(n.value)}),tt=t.selectAll(".node").data(k.nodes).enter().append("g").attr("class","nv-force-node").call(it.drag);tt.append("circle").attr("r",p).style("fill",function(n){return u(n)}).on("mouseover",function(n){t.select(".nv-series-"+n.seriesIndex+" .nv-distx-"+n.pointIndex).attr("y1",n.py);t.select(".nv-series-"+n.seriesIndex+" .nv-disty-"+n.pointIndex).attr("x2",n.px);var i=u(n);n.series=[];nt.forEach(function(t){n.series.push({color:i,key:t,value:n[t]})});f.data(n).hidden(!1)}).on("mouseout",function(){f.hidden(!0)});f.headerFormatter(function(){return"Node"});b(rt);w(tt);it.on("tick",function(){rt.attr("x1",function(n){return n.source.x}).attr("y1",function(n){return n.source.y}).attr("x2",function(n){return n.target.x}).attr("y2",function(n){return n.target.y});tt.attr("transform",function(n){return"translate("+n.x+", "+n.y+")"})})}),r}var i={top:2,right:0,bottom:2,left:0},e=400,o=32,t=null,k=d3.dispatch("renderEnd"),u=n.utils.getColor(["#000"]),f=n.models.tooltip(),d=null,s=.1,h=.9,c=30,l=-120,a=.1,v=.8,y=.1,p=5,w=function(){},b=function(){},g=n.utils.renderWatch(k);return r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{width:{get:function(){return e},set:function(n){e=n}},height:{get:function(){return o},set:function(n){o=n}},linkStrength:{get:function(){return s},set:function(n){s=n}},friction:{get:function(){return h},set:function(n){h=n}},linkDist:{get:function(){return c},set:function(n){c=n}},charge:{get:function(){return l},set:function(n){l=n}},gravity:{get:function(){return a},set:function(n){a=n}},theta:{get:function(){return v},set:function(n){v=n}},alpha:{get:function(){return y},set:function(n){y=n}},radius:{get:function(){return p},set:function(n){p=n}},x:{get:function(){return getX},set:function(n){getX=d3.functor(n)}},y:{get:function(){return getY},set:function(n){getY=d3.functor(n)}},margin:{get:function(){return i},set:function(n){i.top=n.top!==undefined?n.top:i.top;i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},color:{get:function(){return u},set:function(t){u=n.utils.getColor(t)}},noData:{get:function(){return d},set:function(n){d=n}},nodeExtras:{get:function(){return w},set:function(n){w=n}},linkExtras:{get:function(){return b},set:function(n){b=n}}}),r.dispatch=k,r.tooltip=f,n.utils.initOptions(r),r};n.models.furiousLegend=function(){"use strict";function s(b){function k(n,t){return i!="furious"?"#000":r?n.disengaged?e(n,t):"#fff":r?void 0:!n.disabled?"#fff":e(n,t)}function d(n,t){return r&&i=="furious"?n.disengaged?"#fff":e(n,t):!n.disabled?e(n,t):"#fff"}return b.each(function(s){var bt=h-t.left-t.right,kt=d3.select(this),b,rt,ht,dt,at,ut,nt,tt,vt,et,yt;n.utils.initSVG(kt);var lt=kt.selectAll("g.nv-legend").data([s]),gt=lt.enter().append("g").attr("class","nvd3 nv-legend").append("g"),st=lt.select("g");lt.attr("transform","translate("+t.left+","+t.top+")");b=st.selectAll(".nv-series").data(function(n){return i!="furious"?n:n.filter(function(n){return r?!0:!n.disengaged})});rt=b.enter().append("g").attr("class","nv-series");i=="classic"?(rt.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),ht=b.select("circle")):i=="furious"&&(rt.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),ht=b.select("rect"),rt.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"><\/path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"><\/path>').attr("transform","translate(-10,-8)scale(0.5)"),dt=b.select(".nv-check-box"),dt.each(function(n,t){d3.select(this).selectAll("path").attr("stroke",k(n,t))}));rt.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");at=b.select("text.nv-legend-text");b.on("mouseover",function(n,t){o.legendMouseover(n,t)}).on("mouseout",function(n,t){o.legendMouseout(n,t)}).on("click",function(n,t){var u,f;o.legendClick(n,t);u=b.data();v&&(i=="classic"?w?(u.forEach(function(n){n.disabled=!0}),n.disabled=!1):(n.disabled=!n.disabled,u.every(function(n){return n.disabled})&&u.forEach(function(n){n.disabled=!1})):i=="furious"&&(r?(n.disengaged=!n.disengaged,n.userDisabled=n.userDisabled==undefined?!!n.disabled:n.userDisabled,n.disabled=n.disengaged||n.userDisabled):r||(n.disabled=!n.disabled,n.userDisabled=n.disabled,f=u.filter(function(n){return!n.disengaged}),f.every(function(n){return n.userDisabled})&&u.forEach(function(n){n.disabled=n.userDisabled=!1}))),o.stateChange({disabled:u.map(function(n){return!!n.disabled}),disengaged:u.map(function(n){return!!n.disengaged})}))}).on("dblclick",function(n,t){if((i!="furious"||!r)&&(o.legendDblclick(n,t),v)){var u=b.data();u.forEach(function(n){n.disabled=!0;i=="furious"&&(n.userDisabled=n.disabled)});n.disabled=!1;i=="furious"&&(n.userDisabled=n.disabled);o.stateChange({disabled:u.map(function(n){return!!n.disabled})})}});b.classed("nv-disabled",function(n){return n.userDisabled});b.exit().remove();at.attr("fill",k).text(function(n){return f(u(n))});switch(i){case"furious":ut=23;break;case"classic":ut=20}if(y){nt=[];b.each(function(t){var i,e,r;f(u(t))&&f(u(t)).length>l?(e=f(u(t)).substring(0,l),i=d3.select(this).select("text").text(e+"..."),d3.select(this).append("svg:title").text(f(u(t)))):i=d3.select(this).select("text");try{if(r=i.node().getComputedTextLength(),r<=0)throw Error();}catch(o){r=n.utils.calcApproxTextWidth(i)}nt.push(r+a)});for(var g=0,ft=0,it=[];ft<bt&&g<nt.length;)it[g]=nt[g],ft+=nt[g++];for(g===0&&(g=1);ft>bt&&g>1;){for(it=[],g--,tt=0;tt<nt.length;tt++)nt[tt]>(it[tt%g]||0)&&(it[tt%g]=nt[tt]);ft=it.reduce(function(n,t){return n+t})}for(vt=[],et=0,yt=0;et<g;et++)vt[et]=yt,yt+=it[et];b.attr("transform",function(n,t){return"translate("+vt[t%g]+","+(5+Math.floor(t/g)*ut)+")"});p?st.attr("transform","translate("+(h-t.right-ft)+","+t.top+")"):st.attr("transform","translate(0,"+t.top+")");c=t.top+t.bottom+Math.ceil(nt.length/g)*ut}else{var pt=5,ot=5,wt=0,ct;b.attr("transform",function(){var n=d3.select(this).select("text").node().getComputedTextLength()+a;return ct=ot,h<t.left+t.right+ct+n&&(ot=ct=5,pt+=ut),ot+=n,ot>wt&&(wt=ot),"translate("+ct+","+pt+")"});st.attr("transform","translate("+(h-t.right-wt)+","+t.top+")");c=t.top+t.bottom+pt+15}i=="furious"&&ht.attr("width",function(n,t){return at[0][t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15);ht.style("fill",d).style("stroke",function(n,t){return n.color||e(n,t)})}),s}var t={top:5,right:0,bottom:5,left:0},h=400,c=20,u=function(n){return n.key},f=function(n){return n},e=n.utils.getColor(),l=20,y=!0,a=28,p=!0,v=!0,w=!1,r=!1,o=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),i="classic";return s.dispatch=o,s.options=n.utils.optionsFunc.bind(s),s._options=Object.create({},{width:{get:function(){return h},set:function(n){h=n}},height:{get:function(){return c},set:function(n){c=n}},key:{get:function(){return u},set:function(n){u=n}},keyFormatter:{get:function(){return f},set:function(n){f=n}},align:{get:function(){return y},set:function(n){y=n}},rightAlign:{get:function(){return p},set:function(n){p=n}},maxKeyLength:{get:function(){return l},set:function(n){l=n}},padding:{get:function(){return a},set:function(n){a=n}},updateState:{get:function(){return v},set:function(n){v=n}},radioButtonMode:{get:function(){return w},set:function(n){w=n}},expanded:{get:function(){return r},set:function(n){r=n}},vers:{get:function(){return i},set:function(n){i=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},color:{get:function(){return e},set:function(t){e=n.utils.getColor(t)}}}),n.utils.initOptions(s),s};n.models.historicalBar=function(){"use strict";function f(it){return it.each(function(f){var it,ft,ut;a.reset();o=d3.select(this);it=n.utils.availableWidth(v,o,r);ft=n.utils.availableHeight(y,o,r);n.utils.initSVG(o);i.domain(g||d3.extent(f[0].values.map(c).concat(p)));b?i.range(l||[it*.5/f[0].values.length,it*(f[0].values.length-.5)/f[0].values.length]):i.range(l||[0,it]);t.domain(nt||d3.extent(f[0].values.map(u).concat(w))).range(tt||[ft,0]);i.domain()[0]===i.domain()[1]&&(i.domain()[0]?i.domain([i.domain()[0]-i.domain()[0]*.01,i.domain()[1]+i.domain()[1]*.01]):i.domain([-1,1]));t.domain()[0]===t.domain()[1]&&(t.domain()[0]?t.domain([t.domain()[0]+t.domain()[0]*.01,t.domain()[1]-t.domain()[1]*.01]):t.domain([-1,1]));var rt=o.selectAll("g.nv-wrap.nv-historicalBar-"+e).data([f[0].values]),et=rt.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+e),ot=et.append("defs"),st=et.append("g"),ht=rt.select("g");st.append("g").attr("class","nv-bars");rt.attr("transform","translate("+r.left+","+r.top+")");o.on("click",function(n,t){s.chartClick({data:n,index:t,pos:d3.event,id:e})});ot.append("clipPath").attr("id","nv-chart-clip-path-"+e).append("rect");rt.select("#nv-chart-clip-path-"+e+" rect").attr("width",it).attr("height",ft);ht.attr("clip-path",k?"url(#nv-chart-clip-path-"+e+")":"");ut=rt.select(".nv-bars").selectAll(".nv-bar").data(function(n){return n},function(n,t){return c(n,t)});ut.exit().remove();ut.enter().append("rect").attr("x",0).attr("y",function(i,r){return n.utils.NaNtoZero(t(Math.max(0,u(i,r))))}).attr("height",function(i,r){return n.utils.NaNtoZero(Math.abs(t(u(i,r))-t(0)))}).attr("transform",function(n,t){return"translate("+(i(c(n,t))-it/f[0].values.length*.45)+",0)"}).on("mouseover",function(n,t){h&&(d3.select(this).classed("hover",!0),s.elementMouseover({data:n,index:t,color:d3.select(this).style("fill")}))}).on("mouseout",function(n,t){h&&(d3.select(this).classed("hover",!1),s.elementMouseout({data:n,index:t,color:d3.select(this).style("fill")}))}).on("mousemove",function(n,t){h&&s.elementMousemove({data:n,index:t,color:d3.select(this).style("fill")})}).on("click",function(n,t){if(h){var i=this;s.elementClick({data:n,index:t,color:d3.select(this).style("fill"),event:d3.event,element:i});d3.event.stopPropagation()}}).on("dblclick",function(n,t){h&&(s.elementDblClick({data:n,index:t,color:d3.select(this).style("fill")}),d3.event.stopPropagation())});ut.attr("fill",function(n,t){return d(n,t)}).attr("class",function(n,t,i){return(u(n,t)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+i+"-"+t}).watchTransition(a,"bars").attr("transform",function(n,t){return"translate("+(i(c(n,t))-it/f[0].values.length*.45)+",0)"}).attr("width",it/f[0].values.length*.9);ut.watchTransition(a,"bars").attr("y",function(i,r){var f=u(i,r)<0?t(0):t(0)-t(u(i,r))<1?t(0)-1:t(u(i,r));return n.utils.NaNtoZero(f)}).attr("height",function(i,r){return n.utils.NaNtoZero(Math.max(Math.abs(t(u(i,r))-t(0)),1))})}),a.renderEnd("historicalBar immediate"),f}var r={top:0,right:0,bottom:0,left:0},v=null,y=null,e=Math.floor(Math.random()*1e4),o=null,i=d3.scale.linear(),t=d3.scale.linear(),c=function(n){return n.x},u=function(n){return n.y},p=[],w=[0],b=!1,k=!0,d=n.utils.defaultColor(),g,nt,l,tt,s=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),h=!0,a=n.utils.renderWatch(s,0);return f.highlightPoint=function(n,t){o.select(".nv-bars .nv-bar-0-"+n).classed("hover",t)},f.clearHighlights=function(){o.select(".nv-bars .nv-bar.hover").classed("hover",!1)},f.dispatch=s,f.options=n.utils.optionsFunc.bind(f),f._options=Object.create({},{width:{get:function(){return v},set:function(n){v=n}},height:{get:function(){return y},set:function(n){y=n}},forceX:{get:function(){return p},set:function(n){p=n}},forceY:{get:function(){return w},set:function(n){w=n}},padData:{get:function(){return b},set:function(n){b=n}},x:{get:function(){return c},set:function(n){c=n}},y:{get:function(){return u},set:function(n){u=n}},xScale:{get:function(){return i},set:function(n){i=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return g},set:function(n){g=n}},yDomain:{get:function(){return nt},set:function(n){nt=n}},xRange:{get:function(){return l},set:function(n){l=n}},yRange:{get:function(){return tt},set:function(n){tt=n}},clipEdge:{get:function(){return k},set:function(n){k=n}},id:{get:function(){return e},set:function(n){e=n}},interactive:{get:function(){return h},set:function(n){h=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},color:{get:function(){return d},set:function(t){d=n.utils.getColor(t)}}}),n.utils.initOptions(f),f};n.models.historicalBarChart=function(t){"use strict";function i(t){return t.each(function(p){var ft,vt,et,st,ct,at;if(c.reset(),c.models(u),b&&c.models(o),k&&c.models(e),ft=d3.select(this),vt=this,n.utils.initSVG(ft),et=n.utils.availableWidth(g,ft,r),st=n.utils.availableHeight(w,ft,r),i.update=function(){ft.transition().duration(y).call(i)},i.container=this,f.disabled=p.map(function(n){return!!n.disabled}),!a){a={};for(ct in f)a[ct]=f[ct]instanceof Array?f[ct].slice(0):f[ct]}if(p&&p.length&&p.filter(function(n){return n.values.length}).length)ft.selectAll(".nv-noData").remove();else return n.utils.noData(i,ft),i;it=u.xScale();rt=u.yScale();var ht=ft.selectAll("g.nv-wrap.nv-historicalBarChart").data([p]),lt=ht.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),ot=ht.select("g");lt.append("g").attr("class","nv-x nv-axis");lt.append("g").attr("class","nv-y nv-axis");lt.append("g").attr("class","nv-barsWrap");lt.append("g").attr("class","nv-legendWrap");lt.append("g").attr("class","nv-interactive");nt?(s.width(et),ot.select(".nv-legendWrap").datum(p).call(s),ut||s.height()===r.top||(r.top=s.height(),st=n.utils.availableHeight(w,ft,r)),ht.select(".nv-legendWrap").attr("transform","translate(0,"+-r.top+")")):ot.select(".nv-legendWrap").selectAll("*").remove();ht.attr("transform","translate("+r.left+","+r.top+")");d&&ot.select(".nv-y.nv-axis").attr("transform","translate("+et+",0)");tt&&(h.width(et).height(st).margin({left:r.left,top:r.top}).svgContainer(ft).xScale(it),ht.select(".nv-interactive").call(h));u.width(et).height(st).color(p.map(function(n,t){return n.color||l(n,t)}).filter(function(n,t){return!p[t].disabled}));at=ot.select(".nv-barsWrap").datum(p.filter(function(n){return!n.disabled}));at.transition().call(u);b&&(o.scale(it)._ticks(n.utils.calcTicksX(et/100,p)).tickSize(-st,0),ot.select(".nv-x.nv-axis").attr("transform","translate(0,"+rt.range()[0]+")"),ot.select(".nv-x.nv-axis").transition().call(o));k&&(e.scale(rt)._ticks(n.utils.calcTicksY(st/36,p)).tickSize(-et,0),ot.select(".nv-y.nv-axis").transition().call(e));h.dispatch.on("elementMousemove",function(t){var f,r,s,c,a;u.clearHighlights();c=[];p.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(e){r=n.interactiveBisect(e.values,t.pointXValue,i.x());u.highlightPoint(r,!0);var o=e.values[r];o!==undefined&&(f===undefined&&(f=o),s===undefined&&(s=i.xScale()(i.x()(o,r))),c.push({key:e.key,value:i.y()(o,r),color:l(e,e.seriesIndex),data:e.values[r]}))});a=o.tickFormat()(i.x()(f,r));h.tooltip.valueFormatter(function(n){return e.tickFormat()(n)}).data({value:a,index:r,series:c})();h.renderGuideLine(s)});h.dispatch.on("elementMouseout",function(){v.tooltipHide();u.clearHighlights()});s.dispatch.on("legendClick",function(n){n.disabled=!n.disabled;p.filter(function(n){return!n.disabled}).length||p.map(function(n){return n.disabled=!1,ht.selectAll(".nv-series").classed("disabled",!1),n});f.disabled=p.map(function(n){return!!n.disabled});v.stateChange(f);t.transition().call(i)});s.dispatch.on("legendDblclick",function(n){p.forEach(function(n){n.disabled=!0});n.disabled=!1;f.disabled=p.map(function(n){return!!n.disabled});v.stateChange(f);i.update()});v.on("changeState",function(n){typeof n.disabled!="undefined"&&(p.forEach(function(t,i){t.disabled=n.disabled[i]}),f.disabled=n.disabled);i.update()})}),c.renderEnd("historicalBarChart immediate"),i}var u=t||n.models.historicalBar(),o=n.models.axis(),e=n.models.axis(),s=n.models.legend(),h=n.interactiveGuideline(),p=n.models.tooltip(),r={top:30,right:90,bottom:50,left:90},ut=null,l=n.utils.defaultColor(),g=null,w=null,nt=!1,b=!0,k=!0,d=!1,tt=!1,it,rt,f={},a=null,ft=null,v=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),y=250,c;o.orient("bottom").tickPadding(7);e.orient(d?"right":"left");p.duration(0).headerEnabled(!1).valueFormatter(function(n,t){return e.tickFormat()(n,t)}).headerFormatter(function(n,t){return o.tickFormat()(n,t)});c=n.utils.renderWatch(v,0);u.dispatch.on("elementMouseover.tooltip",function(n){n.series={key:i.x()(n.data),value:i.y()(n.data),color:n.color};p.data(n).hidden(!1)});u.dispatch.on("elementMouseout.tooltip",function(){p.hidden(!0)});u.dispatch.on("elementMousemove.tooltip",function(){p()});return i.dispatch=v,i.bars=u,i.legend=s,i.xAxis=o,i.yAxis=e,i.interactiveLayer=h,i.tooltip=p,i.options=n.utils.optionsFunc.bind(i),i._options=Object.create({},{width:{get:function(){return g},set:function(n){g=n}},height:{get:function(){return w},set:function(n){w=n}},showLegend:{get:function(){return nt},set:function(n){nt=n}},showXAxis:{get:function(){return b},set:function(n){b=n}},showYAxis:{get:function(){return k},set:function(n){k=n}},defaultState:{get:function(){return a},set:function(n){a=n}},noData:{get:function(){return ft},set:function(n){ft=n}},margin:{get:function(){return r},set:function(n){n.top!==undefined&&(r.top=n.top,ut=n.top);r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},color:{get:function(){return l},set:function(t){l=n.utils.getColor(t);s.color(l);u.color(l)}},duration:{get:function(){return y},set:function(n){y=n;c.reset(y);e.duration(y);o.duration(y)}},rightAlignYAxis:{get:function(){return d},set:function(n){d=n;e.orient(n?"right":"left")}},useInteractiveGuideline:{get:function(){return tt},set:function(n){tt=n;n===!0&&i.interactive(!1)}}}),n.utils.inheritOptions(i,u),n.utils.initOptions(i),i};n.models.ohlcBarChart=function(){var t=n.models.historicalBarChart(n.models.ohlcBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(n){var i=n.series[0].data,r=i.open<i.close?"2ca02c":"d62728";return'<h3 style="color: #'+r+'">'+n.value+"<\/h3><table><tr><td>open:<\/td><td>"+t.yAxis.tickFormat()(i.open)+"<\/td><\/tr><tr><td>close:<\/td><td>"+t.yAxis.tickFormat()(i.close)+"<\/td><\/tr><tr><td>high<\/td><td>"+t.yAxis.tickFormat()(i.high)+"<\/td><\/tr><tr><td>low:<\/td><td>"+t.yAxis.tickFormat()(i.low)+"<\/td><\/tr><\/table>"}),t};n.models.candlestickBarChart=function(){var t=n.models.historicalBarChart(n.models.candlestickBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(n){var i=n.series[0].data,r=i.open<i.close?"2ca02c":"d62728";return'<h3 style="color: #'+r+'">'+n.value+"<\/h3><table><tr><td>open:<\/td><td>"+t.yAxis.tickFormat()(i.open)+"<\/td><\/tr><tr><td>close:<\/td><td>"+t.yAxis.tickFormat()(i.close)+"<\/td><\/tr><tr><td>high<\/td><td>"+t.yAxis.tickFormat()(i.high)+"<\/td><\/tr><tr><td>low:<\/td><td>"+t.yAxis.tickFormat()(i.low)+"<\/td><\/tr><\/table>"}),t};n.models.legend=function(){"use strict";function o(b){function k(n,t){return i!="furious"?"#000":r?n.disengaged?"#000":"#fff":r?void 0:(n.color||(n.color=c(n,t)),!n.disabled?"#fff":n.color)}function d(n,t){return r&&i=="furious"?n.disengaged?"#eee":n.color||c(n,t):n.color||c(n,t)}function g(n){return r&&i=="furious"?1:!n.disabled?1:0}return b.each(function(o){var bt=s-t.left-t.right,kt=d3.select(this),b,ot,at,it,dt,vt,nt,tt,c,rt,ut,yt,st,pt,gt;n.utils.initSVG(kt);var lt=kt.selectAll("g.nv-legend").data([o]),ni=lt.enter().append("g").attr("class","nvd3 nv-legend").append("g"),et=lt.select("g");v?lt.attr("transform","translate("+-t.right+","+t.top+")"):lt.attr("transform","translate("+t.left+","+t.top+")");b=et.selectAll(".nv-series").data(function(n){return i!="furious"?n:n.filter(function(n){return r?!0:!n.disengaged})});ot=b.enter().append("g").attr("class","nv-series");switch(i){case"furious":it=23;break;case"classic":it=20}i=="classic"?(ot.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),at=b.select(".nv-legend-symbol")):i=="furious"&&(ot.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),at=b.select(".nv-legend-symbol"),ot.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"><\/path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"><\/path>').attr("transform","translate(-10,-8)scale(0.5)"),dt=b.select(".nv-check-box"),dt.each(function(n,t){d3.select(this).selectAll("path").attr("stroke",k(n,t))}));ot.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");vt=b.select("text.nv-legend-text");b.on("mouseover",function(n,t){e.legendMouseover(n,t)}).on("mouseout",function(n,t){e.legendMouseout(n,t)}).on("click",function(n,t){var u,f;e.legendClick(n,t);u=b.data();y&&(i=="classic"?w?(u.forEach(function(n){n.disabled=!0}),n.disabled=!1):(n.disabled=!n.disabled,u.every(function(n){return n.disabled})&&u.forEach(function(n){n.disabled=!1})):i=="furious"&&(r?(n.disengaged=!n.disengaged,n.userDisabled=n.userDisabled==undefined?!!n.disabled:n.userDisabled,n.disabled=n.disengaged||n.userDisabled):r||(n.disabled=!n.disabled,n.userDisabled=n.disabled,f=u.filter(function(n){return!n.disengaged}),f.every(function(n){return n.userDisabled})&&u.forEach(function(n){n.disabled=n.userDisabled=!1}))),e.stateChange({disabled:u.map(function(n){return!!n.disabled}),disengaged:u.map(function(n){return!!n.disengaged})}))}).on("dblclick",function(n,t){if((i!="furious"||!r)&&(e.legendDblclick(n,t),y)){var u=b.data();u.forEach(function(n){n.disabled=!0;i=="furious"&&(n.userDisabled=n.disabled)});n.disabled=!1;i=="furious"&&(n.userDisabled=n.disabled);e.stateChange({disabled:u.map(function(n){return!!n.disabled})})}});if(b.classed("nv-disabled",function(n){return n.userDisabled}),b.exit().remove(),vt.attr("fill",k).text(function(n){return f(u(n))}),nt=0,p){for(tt=[],b.each(function(t){var i,e,r;f(u(t))&&f(u(t)).length>l?(e=f(u(t)).substring(0,l),i=d3.select(this).select("text").text(e+"..."),d3.select(this).append("svg:title").text(f(u(t)))):i=d3.select(this).select("text");try{if(r=i.node().getComputedTextLength(),r<=0)throw Error();}catch(o){r=n.utils.calcApproxTextWidth(i)}tt.push(r+a)}),c=0,rt=[],nt=0;nt<bt&&c<tt.length;)rt[c]=tt[c],nt+=tt[c++];for(c===0&&(c=1);nt>bt&&c>1;){for(rt=[],c--,ut=0;ut<tt.length;ut++)tt[ut]>(rt[ut%c]||0)&&(rt[ut%c]=tt[ut]);nt=rt.reduce(function(n,t){return n+t})}for(yt=[],st=0,pt=0;st<c;st++)yt[st]=pt,pt+=rt[st];b.attr("transform",function(n,t){return"translate("+yt[t%c]+","+(5+Math.floor(t/c)*it)+")"});v?et.attr("transform","translate("+(s-t.right-nt)+","+t.top+")"):et.attr("transform","translate(0,"+t.top+")");h=t.top+t.bottom+Math.ceil(tt.length/c)*it}else{var wt=5,ht=5,ct=0,ft;b.attr("transform",function(){var n=d3.select(this).select("text").node().getComputedTextLength()+a;return ft=ht,s<t.left+t.right+ft+n&&(ht=ft=5,wt+=it),ht+=n,ht>ct&&(ct=ht),nt<ft+ct&&(nt=ft+ct),"translate("+ft+","+wt+")"});et.attr("transform","translate("+(s-t.right-ct)+","+t.top+")");h=t.top+t.bottom+wt+15}i=="furious"&&(at.attr("width",function(n,t){return vt[0][t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),ni.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),gt=et.select(".nv-legend-bg"),gt.transition().duration(300).attr("x",-it).attr("width",nt+it-12).attr("height",h+10).attr("y",-t.top-10).attr("opacity",r?1:0));at.style("fill",d).style("fill-opacity",g).style("stroke",d)}),o}var t={top:5,right:0,bottom:5,left:0},s=400,h=20,u=function(n){return n.key},f=function(n){return n},c=n.utils.getColor(),l=20,p=!0,a=32,v=!0,y=!0,w=!1,r=!1,e=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),i="classic";return o.dispatch=e,o.options=n.utils.optionsFunc.bind(o),o._options=Object.create({},{width:{get:function(){return s},set:function(n){s=n}},height:{get:function(){return h},set:function(n){h=n}},key:{get:function(){return u},set:function(n){u=n}},keyFormatter:{get:function(){return f},set:function(n){f=n}},align:{get:function(){return p},set:function(n){p=n}},maxKeyLength:{get:function(){return l},set:function(n){l=n}},rightAlign:{get:function(){return v},set:function(n){v=n}},padding:{get:function(){return a},set:function(n){a=n}},updateState:{get:function(){return y},set:function(n){y=n}},radioButtonMode:{get:function(){return w},set:function(n){w=n}},expanded:{get:function(){return r},set:function(n){r=n}},vers:{get:function(){return i},set:function(n){i=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},color:{get:function(){return c},set:function(t){c=n.utils.getColor(t)}}}),n.utils.initOptions(o),o};n.models.line=function(){"use strict";function u(y){return e.reset(),e.models(t),y.each(function(u){var it,tt,rt,y,ut,ft;l=d3.select(this);it=n.utils.availableWidth(k,l,r);tt=n.utils.availableHeight(d,l,r);n.utils.initSVG(l);v=t.xScale();i=t.yScale();w=w||v;c=c||i;var p=l.selectAll("g.nv-wrap.nv-line").data([u]),et=p.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),st=et.append("defs"),ot=et.append("g"),ht=p.select("g");ot.append("g").attr("class","nv-groups");ot.append("g").attr("class","nv-scatterWrap");p.attr("transform","translate("+r.left+","+r.top+")");t.width(it).height(tt);rt=p.select(".nv-scatterWrap");rt.call(t);st.append("clipPath").attr("id","nv-edge-clip-"+t.id()).append("rect");p.select("#nv-edge-clip-"+t.id()+" rect").attr("width",it).attr("height",tt>0?tt:0);ht.attr("clip-path",b?"url(#nv-edge-clip-"+t.id()+")":"");rt.attr("clip-path",b?"url(#nv-edge-clip-"+t.id()+")":"");y=p.select(".nv-groups").selectAll(".nv-group").data(function(n){return n},function(n){return n.key});y.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(n){return n.strokeWidth||nt}).style("fill-opacity",1e-6);y.exit().remove();y.attr("class",function(n,t){return(n.classed||"")+" nv-group nv-series-"+t}).classed("hover",function(n){return n.hover}).style("fill",function(n,t){return a(n,t)}).style("stroke",function(n,t){return a(n,t)});y.watchTransition(e,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(n){return n.fillOpacity||.5});ut=y.selectAll("path.nv-area").data(function(n){return g(n)?[n]:[]});ut.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.svg.area().interpolate(h).defined(s).x(function(t,i){return n.utils.NaNtoZero(w(o(t,i)))}).y0(function(t,i){return n.utils.NaNtoZero(c(f(t,i)))}).y1(function(){return c(i.domain()[0]<=0?i.domain()[1]>=0?0:i.domain()[1]:i.domain()[0])}).apply(this,[t.values])});y.exit().selectAll("path.nv-area").remove();ut.watchTransition(e,"line: areaPaths").attr("d",function(t){return d3.svg.area().interpolate(h).defined(s).x(function(t,i){return n.utils.NaNtoZero(v(o(t,i)))}).y0(function(t,r){return n.utils.NaNtoZero(i(f(t,r)))}).y1(function(){return i(i.domain()[0]<=0?i.domain()[1]>=0?0:i.domain()[1]:i.domain()[0])}).apply(this,[t.values])});ft=y.selectAll("path.nv-line").data(function(n){return[n.values]});ft.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(h).defined(s).x(function(t,i){return n.utils.NaNtoZero(w(o(t,i)))}).y(function(t,i){return n.utils.NaNtoZero(c(f(t,i)))}));ft.watchTransition(e,"line: linePaths").attr("d",d3.svg.line().interpolate(h).defined(s).x(function(t,i){return n.utils.NaNtoZero(v(o(t,i)))}).y(function(t,r){return n.utils.NaNtoZero(i(f(t,r)))}));w=v.copy();c=i.copy()}),e.renderEnd("line immediate"),u}var t=n.models.scatter(),r={top:0,right:0,bottom:0,left:0},k=960,d=500,l=null,nt=1.5,a=n.utils.defaultColor(),o=function(n){return n.x},f=function(n){return n.y},s=function(n,t){return!isNaN(f(n,t))&&f(n,t)!==null},g=function(n){return n.area},b=!1,v,i,h="linear",y=250,p=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd"),w,c,e;t.pointSize(16).pointDomain([16,256]);e=n.utils.renderWatch(p,y);u.dispatch=p;u.scatter=t;t.dispatch.on("elementClick",function(){p.elementClick.apply(this,arguments)});t.dispatch.on("elementMouseover",function(){p.elementMouseover.apply(this,arguments)});t.dispatch.on("elementMouseout",function(){p.elementMouseout.apply(this,arguments)});return u.options=n.utils.optionsFunc.bind(u),u._options=Object.create({},{width:{get:function(){return k},set:function(n){k=n}},height:{get:function(){return d},set:function(n){d=n}},defined:{get:function(){return s},set:function(n){s=n}},interpolate:{get:function(){return h},set:function(n){h=n}},clipEdge:{get:function(){return b},set:function(n){b=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},duration:{get:function(){return y},set:function(n){y=n;e.reset(y);t.duration(y)}},isArea:{get:function(){return g},set:function(n){g=d3.functor(n)}},x:{get:function(){return o},set:function(n){o=n;t.x(n)}},y:{get:function(){return f},set:function(n){f=n;t.y(n)}},color:{get:function(){return a},set:function(i){a=n.utils.getColor(i);t.color(a)}}}),n.utils.inheritOptions(u,t),n.utils.initOptions(u),u};n.models.lineChart=function(){"use strict";function t(d){return y.reset(),y.models(r),p&&y.models(o),w&&y.models(e),d.each(function(y){function kt(){p&&ct.select(".nv-focus .nv-x.nv-axis").transition().duration(f).call(o)}function dt(){w&&ct.select(".nv-focus .nv-y.nv-axis").transition().duration(f).call(e)}function gt(n){var t=ct.select(".nv-focus .nv-linesWrap").datum(y.filter(function(n){return!n.disabled}).map(function(t){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,i){return r.x()(t,i)>=n[0]&&r.x()(t,i)<=n[1]}),disableTooltip:t.disableTooltip}}));t.transition().duration(f).call(r);kt();dt()}var ot=d3.select(this),lt,d,yt,vt,ni,bt,wt;if(n.utils.initSVG(ot),lt=n.utils.availableWidth(rt,ot,u),d=n.utils.availableHeight(g,ot,u)-(a?i.height():0),t.update=function(){f===0?ot.call(t):ot.transition().duration(f).call(t)},t.container=this,h.setter(ht(y),t.update).getter(st(y)).update(),h.disabled=y.map(function(n){return!!n.disabled}),!v){v={};for(yt in h)v[yt]=h[yt]instanceof Array?h[yt].slice(0):h[yt]}if(y&&y.length&&y.filter(function(n){return n.values.length}).length)ot.selectAll(".nv-noData").remove();else return n.utils.noData(t,ot),t;i.dispatch.on("onBrush",function(n){gt(n)});it=r.xScale();et=r.yScale();var at=ot.selectAll("g.nv-wrap.nv-lineChart").data([y]),pt=at.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),ct=at.select("g");pt.append("g").attr("class","nv-legendWrap");vt=pt.append("g").attr("class","nv-focus");vt.append("g").attr("class","nv-background").append("rect");vt.append("g").attr("class","nv-x nv-axis");vt.append("g").attr("class","nv-y nv-axis");vt.append("g").attr("class","nv-linesWrap");vt.append("g").attr("class","nv-interactive");ni=pt.append("g").attr("class","nv-focusWrap");ut?(c.width(lt),ct.select(".nv-legendWrap").datum(y).call(c),nt==="bottom"?at.select(".nv-legendWrap").attr("transform","translate(0,"+d+")"):nt==="top"&&(ft||c.height()===u.top||(u.top=c.height(),d=n.utils.availableHeight(g,ot,u)-(a?i.height():0)),at.select(".nv-legendWrap").attr("transform","translate(0,"+-u.top+")"))):ct.select(".nv-legendWrap").selectAll("*").remove();at.attr("transform","translate("+u.left+","+u.top+")");b&&ct.select(".nv-y.nv-axis").attr("transform","translate("+lt+",0)");tt&&(s.width(lt).height(d).margin({left:u.left,top:u.top}).svgContainer(ot).xScale(it),at.select(".nv-interactive").call(s));ct.select(".nv-focus .nv-background rect").attr("width",lt).attr("height",d);r.width(lt).height(d).color(y.map(function(n,t){return n.color||l(n,t)}).filter(function(n,t){return!y[t].disabled}));bt=ct.select(".nv-linesWrap").datum(y.filter(function(n){return!n.disabled}));p&&o.scale(it)._ticks(n.utils.calcTicksX(lt/100,y)).tickSize(-d,0);w&&e.scale(et)._ticks(n.utils.calcTicksY(d/36,y)).tickSize(-lt,0);ct.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+d+")");a||i.brush.extent()!==null?(i.width(lt),ct.select(".nv-focusWrap").style("display",a?"initial":"none").attr("transform","translate(0,"+(d+u.bottom+i.margin().top)+")").datum(y.filter(function(n){return!n.disabled})).call(i),wt=i.brush.empty()?i.xDomain():i.brush.extent(),wt!==null&&gt(wt)):(bt.call(r),kt(),dt());c.dispatch.on("stateChange",function(n){for(var i in n)h[i]=n[i];k.stateChange(h);t.update()});s.dispatch.on("elementMousemove",function(u){var h,f,c,o,v;if(r.clearHighlights(),o=[],y.filter(function(n,t){return n.seriesIndex=t,!n.disabled&&!n.disableTooltip}).forEach(function(e,s){var a=i.brush.extent()!==null?i.brush.empty()?i.xScale().domain():i.brush.extent():it.domain(),p=e.values.filter(function(n,t){return a[0]<=a[1]?r.x()(n,t)>=a[0]&&r.x()(n,t)<=a[1]:r.x()(n,t)>=a[1]&&r.x()(n,t)<=a[0]}),v,y;(f=n.interactiveBisect(p,u.pointXValue,r.x()),v=p[f],y=t.y()(v,f),y!==null&&r.highlightPoint(s,f,!0),v!==undefined)&&(h===undefined&&(h=v),c===undefined&&(c=t.xScale()(t.x()(v,f))),o.push({key:e.key,value:y,color:l(e,e.seriesIndex),data:v}))}),o.length>2){var p=t.yScale().invert(u.mouseY),w=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),b=.03*w,a=n.nearestValueIndex(o.map(function(n){return n.value}),p,b);a!==null&&(o[a].highlight=!0)}v=function(n){return n==null?"N/A":e.tickFormat()(n)};s.tooltip.valueFormatter(s.tooltip.valueFormatter()||v).data({value:t.x()(h,f),index:f,series:o})();s.renderGuideLine(c)});s.dispatch.on("elementClick",function(i){var u,f=[];y.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(r){var e=n.interactiveBisect(r.values,i.pointXValue,t.x()),o=r.values[e],s;typeof o!="undefined"&&(typeof u=="undefined"&&(u=t.xScale()(t.x()(o,e))),s=t.yScale()(t.y()(o,e)),f.push({point:o,pointIndex:e,pos:[u,s],seriesIndex:r.seriesIndex,series:r}))});r.dispatch.elementClick(f)});s.dispatch.on("elementMouseout",function(){r.clearHighlights()});k.on("changeState",function(n){typeof n.disabled!="undefined"&&y.length===n.disabled.length&&(y.forEach(function(t,i){t.disabled=n.disabled[i]}),h.disabled=n.disabled);t.update()})}),y.renderEnd("lineChart immediate"),t}var r=n.models.line(),o=n.models.axis(),e=n.models.axis(),c=n.models.legend(),s=n.interactiveGuideline(),d=n.models.tooltip(),i=n.models.focus(n.models.line()),u={top:30,right:20,bottom:50,left:60},ft=null,l=n.utils.defaultColor(),rt=null,g=null,ut=!0,nt="top",p=!0,w=!0,b=!1,tt=!1,it,et,a=!1,h=n.utils.state(),v=null,ot=null,k=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),f=250;o.orient("bottom").tickPadding(7);e.orient(b?"right":"left");r.clipEdge(!0).duration(0);d.valueFormatter(function(n,t){return e.tickFormat()(n,t)}).headerFormatter(function(n,t){return o.tickFormat()(n,t)});s.tooltip.valueFormatter(function(n,t){return e.tickFormat()(n,t)}).headerFormatter(function(n,t){return o.tickFormat()(n,t)});var y=n.utils.renderWatch(k,f),st=function(n){return function(){return{active:n.map(function(n){return!n.disabled})}}},ht=function(n){return function(t){t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};r.dispatch.on("elementMouseover.tooltip",function(n){n.series.disableTooltip||d.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){d.hidden(!0)});return t.dispatch=k,t.lines=r,t.legend=c,t.focus=i,t.xAxis=o,t.x2Axis=i.xAxis,t.yAxis=e,t.y2Axis=i.yAxis,t.interactiveLayer=s,t.tooltip=d,t.state=h,t.dispatch=k,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return rt},set:function(n){rt=n}},height:{get:function(){return g},set:function(n){g=n}},showLegend:{get:function(){return ut},set:function(n){ut=n}},legendPosition:{get:function(){return nt},set:function(n){nt=n}},showXAxis:{get:function(){return p},set:function(n){p=n}},showYAxis:{get:function(){return w},set:function(n){w=n}},defaultState:{get:function(){return v},set:function(n){v=n}},noData:{get:function(){return ot},set:function(n){ot=n}},focusEnable:{get:function(){return a},set:function(n){a=n}},focusHeight:{get:function(){return i.height()},set:function(n){i.height(n)}},focusShowAxisX:{get:function(){return i.showXAxis()},set:function(n){i.showXAxis(n)}},focusShowAxisY:{get:function(){return i.showYAxis()},set:function(n){i.showYAxis(n)}},brushExtent:{get:function(){return i.brushExtent()},set:function(n){i.brushExtent(n)}},focusMargin:{get:function(){return i.margin},set:function(n){n.top!==undefined&&(u.top=n.top,ft=n.top);i.margin.right=n.right!==undefined?n.right:i.margin.right;i.margin.bottom=n.bottom!==undefined?n.bottom:i.margin.bottom;i.margin.left=n.left!==undefined?n.left:i.margin.left}},margin:{get:function(){return u},set:function(n){u.top=n.top!==undefined?n.top:u.top;u.right=n.right!==undefined?n.right:u.right;u.bottom=n.bottom!==undefined?n.bottom:u.bottom;u.left=n.left!==undefined?n.left:u.left}},duration:{get:function(){return f},set:function(n){f=n;y.reset(f);r.duration(f);i.duration(f);o.duration(f);e.duration(f)}},color:{get:function(){return l},set:function(t){l=n.utils.getColor(t);c.color(l);r.color(l);i.color(l)}},interpolate:{get:function(){return r.interpolate()},set:function(n){r.interpolate(n);i.interpolate(n)}},xTickFormat:{get:function(){return o.tickFormat()},set:function(n){o.tickFormat(n);i.xTickFormat(n)}},yTickFormat:{get:function(){return e.tickFormat()},set:function(n){e.tickFormat(n);i.yTickFormat(n)}},x:{get:function(){return r.x()},set:function(n){r.x(n);i.x(n)}},y:{get:function(){return r.y()},set:function(n){r.y(n);i.y(n)}},rightAlignYAxis:{get:function(){return b},set:function(n){b=n;e.orient(b?"right":"left")}},useInteractiveGuideline:{get:function(){return tt},set:function(n){tt=n;tt&&(r.interactive(!1),r.useVoronoi(!1))}}}),n.utils.inheritOptions(t,r),n.utils.initOptions(t),t};n.models.lineWithFocusChart=function(){return n.models.lineChart().margin({bottom:30}).focusEnable(!0)};n.models.linePlusBarChart=function(){"use strict";function t(g){return g.each(function(g){function fr(n){var r=+(n=="e"),i=r?1:-1,t=oi/3;return"M"+.5*i+","+t+"A6,6 0 0 "+r+" "+6.5*i+","+(t+6)+"V"+(2*t-6)+"A6,6 0 0 "+r+" "+.5*i+","+2*t+"ZM"+2.5*i+","+(t+8)+"V"+(2*t-8)+"M"+4.5*i+","+(t+8)+"V"+(2*t-8)}function er(){e.empty()||e.extent(b);bi.data([e.empty()?s.domain():b]).each(function(n){var t=s(n[0])-s.range()[0],i=s.range()[1]-s(n[1]);d3.select(this).select(".left").attr("width",t<0?0:t);d3.select(this).select(".right").attr("x",s(n[1])).attr("width",i<0?0:i)})}function ur(){var t,i;b=e.empty()?null:e.extent();w=e.empty()?s.domain():e.extent();ht.brush({extent:w,brush:e});er();f.width(ri).height(li).color(g.map(function(n,t){return n.color||nt(n,t)}).filter(function(n,t){return!g[t].disabled&&g[t].bar}));u.width(ri).height(li).color(g.map(function(n,t){return n.color||nt(n,t)}).filter(function(n,t){return!g[t].disabled&&!g[t].bar}));t=ii.select(".nv-focus .nv-barsWrap").datum(ui.length?ui.map(function(n){return{key:n.key,values:n.values.filter(function(n,t){return f.x()(n,t)>=w[0]&&f.x()(n,t)<=w[1]})}}):[{values:[]}]);i=ii.select(".nv-focus .nv-linesWrap").datum(dt(si)?[{values:[]}]:si.filter(function(n){return!n.disabled}).map(function(n){return{area:n.area,fillOpacity:n.fillOpacity,strokeWidth:n.strokeWidth,key:n.key,values:n.values.filter(function(n,t){return u.x()(n,t)>=w[0]&&u.x()(n,t)<=w[1]})}}));tt=ui.length&&!r?f.xScale():u.xScale();it.scale(tt)._ticks(n.utils.calcTicksX(ri/100,g)).tickSize(-li,0);it.domain([Math.ceil(w[0]),Math.floor(w[1])]);ii.select(".nv-x.nv-axis").transition().duration(k).call(it);t.transition().duration(k).call(f);i.transition().duration(k).call(u);ii.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+bt.range()[0]+")");l.scale(bt)._ticks(n.utils.calcTicksY(li/36,g)).tickSize(-ri,0);h.scale(ni)._ticks(n.utils.calcTicksY(li/36,g));r?h.tickSize(si.length?0:-ri,0):h.tickSize(ui.length?0:-ri,0);var o=ui.length?1:0,c=si.length&&!dt(si)?1:0,a=r?c:o,v=r?o:c;ii.select(".nv-focus .nv-y1.nv-axis").style("opacity",a);ii.select(".nv-focus .nv-y2.nv-axis").style("opacity",v).attr("transform","translate("+tt.range()[1]+",0)");ii.select(".nv-focus .nv-y1.nv-axis").transition().duration(k).call(l);ii.select(".nv-focus .nv-y2.nv-axis").transition().duration(k).call(h)}var hi=d3.select(this),or=this,vi,ui,si,gi,nr,ai,ci,wi,tr,ir,rr,bi,ki,di;n.utils.initSVG(hi);var ri=n.utils.availableWidth(vt,hi,i),li=n.utils.availableHeight(ft,hi,i)-(st?ut:0),oi=ut-o.top-o.bottom;if(t.update=function(){hi.transition().duration(k).call(t)},t.container=this,p.setter(ei(g),t.update).getter(fi(g)).update(),p.disabled=g.map(function(n){return!!n.disabled}),!ct){ct={};for(vi in p)ct[vi]=p[vi]instanceof Array?p[vi].slice(0):p[vi]}if(g&&g.length&&g.filter(function(n){return n.values.length}).length)hi.selectAll(".nv-noData").remove();else return n.utils.noData(t,hi),t;ui=g.filter(function(n){return!n.disabled&&n.bar});si=g.filter(function(n){return!n.bar});tt=ui.length&&!r?f.xScale():u.xScale();s=rt.scale();bt=r?u.yScale():f.yScale();ni=r?f.yScale():u.yScale();kt=r?c.yScale():d.yScale();ti=r?d.yScale():c.yScale();gi=g.filter(function(n){return!n.disabled&&(r?!n.bar:n.bar)}).map(function(n){return n.values.map(function(n,t){return{x:et(n,t),y:ot(n,t)}})});nr=g.filter(function(n){return!n.disabled&&(r?n.bar:!n.bar)}).map(function(n){return n.values.map(function(n,t){return{x:et(n,t),y:ot(n,t)}})});tt.range([0,ri]);s.domain(d3.extent(d3.merge(gi.concat(nr)),function(n){return n.x})).range([0,ri]);var yi=hi.selectAll("g.nv-wrap.nv-linePlusBar").data([g]),pi=yi.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),ii=yi.select("g");pi.append("g").attr("class","nv-legendWrap");ai=pi.append("g").attr("class","nv-focus");ai.append("g").attr("class","nv-x nv-axis");ai.append("g").attr("class","nv-y1 nv-axis");ai.append("g").attr("class","nv-y2 nv-axis");ai.append("g").attr("class","nv-barsWrap");ai.append("g").attr("class","nv-linesWrap");ci=pi.append("g").attr("class","nv-context");ci.append("g").attr("class","nv-x nv-axis");ci.append("g").attr("class","nv-y1 nv-axis");ci.append("g").attr("class","nv-y2 nv-axis");ci.append("g").attr("class","nv-barsWrap");ci.append("g").attr("class","nv-linesWrap");ci.append("g").attr("class","nv-brushBackground");ci.append("g").attr("class","nv-x nv-brush");yt?(wi=y.align()?ri/2:ri,tr=y.align()?wi:0,y.width(wi),ii.select(".nv-legendWrap").datum(g.map(function(n){return n.originalKey=n.originalKey===undefined?n.key:n.originalKey,n.key=r?n.originalKey+(n.bar?at:lt):n.originalKey+(n.bar?lt:at),n})).call(y),gt||y.height()===i.top||(i.top=y.height(),li=n.utils.availableHeight(ft,hi,i)-ut),ii.select(".nv-legendWrap").attr("transform","translate("+tr+","+-i.top+")")):ii.select(".nv-legendWrap").selectAll("*").remove();yi.attr("transform","translate("+i.left+","+i.top+")");ii.select(".nv-context").style("display",st?"initial":"none");d.width(ri).height(oi).color(g.map(function(n,t){return n.color||nt(n,t)}).filter(function(n,t){return!g[t].disabled&&g[t].bar}));c.width(ri).height(oi).color(g.map(function(n,t){return n.color||nt(n,t)}).filter(function(n,t){return!g[t].disabled&&!g[t].bar}));ir=ii.select(".nv-context .nv-barsWrap").datum(ui.length?ui:[{values:[]}]);rr=ii.select(".nv-context .nv-linesWrap").datum(dt(si)?[{values:[]}]:si.filter(function(n){return!n.disabled}));ii.select(".nv-context").attr("transform","translate(0,"+(li+i.bottom+o.top)+")");ir.transition().call(d);rr.transition().call(c);wt&&(rt._ticks(n.utils.calcTicksX(ri/100,g)).tickSize(-oi,0),ii.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+kt.range()[0]+")"),ii.select(".nv-context .nv-x.nv-axis").transition().call(rt));pt&&(a.scale(kt)._ticks(oi/36).tickSize(-ri,0),v.scale(ti)._ticks(oi/36).tickSize(ui.length?0:-ri,0),ii.select(".nv-context .nv-y3.nv-axis").style("opacity",ui.length?1:0).attr("transform","translate(0,"+s.range()[0]+")"),ii.select(".nv-context .nv-y2.nv-axis").style("opacity",si.length?1:0).attr("transform","translate("+s.range()[1]+",0)"),ii.select(".nv-context .nv-y1.nv-axis").transition().call(a),ii.select(".nv-context .nv-y2.nv-axis").transition().call(v));e.x(s).on("brush",ur);b&&e.extent(b);bi=ii.select(".nv-brushBackground").selectAll("g").data([b||e.extent()]);ki=bi.enter().append("g");ki.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",oi);ki.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",oi);di=ii.select(".nv-x.nv-brush").call(e);di.selectAll("rect").attr("height",oi);di.selectAll(".resize").append("path").attr("d",fr);y.dispatch.on("stateChange",function(n){for(var i in n)p[i]=n[i];ht.stateChange(p);t.update()});ht.on("changeState",function(n){typeof n.disabled!="undefined"&&(g.forEach(function(t,i){t.disabled=n.disabled[i]}),p.disabled=n.disabled);t.update()});ur()}),t}var u=n.models.line(),c=n.models.line(),f=n.models.historicalBar(),d=n.models.historicalBar(),it=n.models.axis(),rt=n.models.axis(),l=n.models.axis(),h=n.models.axis(),a=n.models.axis(),v=n.models.axis(),y=n.models.legend(),e=d3.svg.brush(),g=n.models.tooltip(),i={top:30,right:30,bottom:30,left:60},gt=null,o={top:0,right:30,bottom:20,left:60},vt=null,ft=null,et=function(n){return n.x},ot=function(n){return n.y},nt=n.utils.defaultColor(),yt=!0,st=!0,pt=!1,wt=!0,ut=50,w,b=null,tt,s,bt,ni,kt,ti,ii=null,ht=d3.dispatch("brush","stateChange","changeState"),k=0,p=n.utils.state(),ct=null,lt=" (left axis)",at=" (right axis)",r=!1;u.clipEdge(!0);c.interactive(!1);c.pointActive(function(){return!1});it.orient("bottom").tickPadding(5);l.orient("left");h.orient("right");rt.orient("bottom").tickPadding(5);a.orient("left");v.orient("right");g.headerEnabled(!0).headerFormatter(function(n,t){return it.tickFormat()(n,t)});var ri=function(){return r?{main:h,focus:v}:{main:l,focus:a}},ui=function(){return r?{main:l,focus:a}:{main:h,focus:v}},fi=function(n){return function(){return{active:n.map(function(n){return!n.disabled})}}},ei=function(n){return function(t){t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}},dt=function(n){return n.every(function(n){return n.disabled})};u.dispatch.on("elementMouseover.tooltip",function(n){g.duration(100).valueFormatter(function(n,t){return ui().main.tickFormat()(n,t)}).data(n).hidden(!1)});u.dispatch.on("elementMouseout.tooltip",function(){g.hidden(!0)});f.dispatch.on("elementMouseover.tooltip",function(n){n.value=t.x()(n.data);n.series={value:t.y()(n.data),color:n.color};g.duration(0).valueFormatter(function(n,t){return ri().main.tickFormat()(n,t)}).data(n).hidden(!1)});f.dispatch.on("elementMouseout.tooltip",function(){g.hidden(!0)});f.dispatch.on("elementMousemove.tooltip",function(){g()});return t.dispatch=ht,t.legend=y,t.lines=u,t.lines2=c,t.bars=f,t.bars2=d,t.xAxis=it,t.x2Axis=rt,t.y1Axis=l,t.y2Axis=h,t.y3Axis=a,t.y4Axis=v,t.tooltip=g,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return vt},set:function(n){vt=n}},height:{get:function(){return ft},set:function(n){ft=n}},showLegend:{get:function(){return yt},set:function(n){yt=n}},brushExtent:{get:function(){return b},set:function(n){b=n}},noData:{get:function(){return ii},set:function(n){ii=n}},focusEnable:{get:function(){return st},set:function(n){st=n}},focusHeight:{get:function(){return ut},set:function(n){ut=n}},focusShowAxisX:{get:function(){return wt},set:function(n){wt=n}},focusShowAxisY:{get:function(){return pt},set:function(n){pt=n}},legendLeftAxisHint:{get:function(){return lt},set:function(n){lt=n}},legendRightAxisHint:{get:function(){return at},set:function(n){at=n}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,gt=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},focusMargin:{get:function(){return o},set:function(n){o.top=n.top!==undefined?n.top:o.top;o.right=n.right!==undefined?n.right:o.right;o.bottom=n.bottom!==undefined?n.bottom:o.bottom;o.left=n.left!==undefined?n.left:o.left}},duration:{get:function(){return k},set:function(n){k=n}},color:{get:function(){return nt},set:function(t){nt=n.utils.getColor(t);y.color(nt)}},x:{get:function(){return et},set:function(n){et=n;u.x(n);c.x(n);f.x(n);d.x(n)}},y:{get:function(){return ot},set:function(n){ot=n;u.y(n);c.y(n);f.y(n);d.y(n)}},switchYAxisOrder:{get:function(){return r},set:function(n){var t,i;r!==n&&(t=l,l=h,h=t,i=a,a=v,v=i);r=n;l.orient("left");h.orient("right");a.orient("left");v.orient("right")}}}),n.utils.inheritOptions(t,u),n.utils.initOptions(t),t};n.models.multiBar=function(){"use strict";function c(ct){return w.reset(),ct.each(function(c){var kt=d-r.left-r.right,dt=g-r.top-r.bottom,ct,ni,lt,pt,vt,wt,at,ui,bt;nt=d3.select(this);n.utils.initSVG(nt);ct=0;ni=function(n,t){return n.series===c.length-1&&t===c[0].values.length-1?!0:!1};e&&c.length&&(e=[{values:c[0].values.map(function(n){return{x:n.x,y:0,series:n.series,size:.01}})}]);f&&(lt=d3.layout.stack().offset(rt).values(function(n){return n.values}).y(u)(!c.length&&e?e:c),lt.forEach(function(n,t){n.nonStackable?(c[t].nonStackableSeries=ct++,lt[t]=c[t]):t>0&&lt[t-1].nonStackable&&lt[t].values.map(function(n,i){n.y0-=lt[t-1].values[i].y;n.y1=n.y0+n.y})}),c=lt);c.forEach(function(n,t){n.values.forEach(function(i){i.series=t;i.key=n.key})});f&&c.length>0&&c[0].values.map(function(n,t){var i=0,r=0;c.map(function(n,u){if(!c[u].nonStackable){var f=n.values[t];f.size=Math.abs(f.y);f.y<0?(f.y1=r,r=r-f.size):(f.y1=f.size+i,i=i+f.size)}})});pt=b&&k?[]:c.map(function(n,t){return n.values.map(function(n,i){return{x:y(n,i),y:u(n,i),y0:n.y0,y1:n.y1,idx:t}})});i.domain(b||d3.merge(pt).map(function(n){return n.x})).rangeBands(ut||[0,kt],et);t.domain(k||d3.extent(d3.merge(pt).map(function(n){var t=n.y;return f&&!c[n.idx].nonStackable&&(t=n.y>0?n.y1:n.y1+n.y),t}).concat(tt))).range(ft||[dt,0]);i.domain()[0]===i.domain()[1]&&(i.domain()[0]?i.domain([i.domain()[0]-i.domain()[0]*.01,i.domain()[1]+i.domain()[1]*.01]):i.domain([-1,1]));t.domain()[0]===t.domain()[1]&&(t.domain()[0]?t.domain([t.domain()[0]+t.domain()[0]*.01,t.domain()[1]-t.domain()[1]*.01]):t.domain([-1,1]));st=st||i;a=a||t;var yt=nt.selectAll("g.nv-wrap.nv-multibar").data([c]),gt=yt.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),ti=gt.append("defs"),ii=gt.append("g"),ri=yt.select("g");ii.append("g").attr("class","nv-groups");yt.attr("transform","translate("+r.left+","+r.top+")");ti.append("clipPath").attr("id","nv-edge-clip-"+v).append("rect");yt.select("#nv-edge-clip-"+v+" rect").attr("width",kt).attr("height",dt);ri.attr("clip-path",it?"url(#nv-edge-clip-"+v+")":"");vt=yt.select(".nv-groups").selectAll(".nv-group").data(function(n){return n},function(n,t){return t});vt.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);wt=w.transition(vt.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,s)).attr("y",function(n){var t=a(0)||0;return f&&c[n.series]&&!c[n.series].nonStackable&&(t=a(n.y0)),t}).attr("height",0).remove();wt.delay&&wt.delay(function(n,t){return t*(s/(ht+1))-t});vt.attr("class",function(n,t){return"nv-group nv-series-"+t}).classed("hover",function(n){return n.hover}).style("fill",function(n,t){return l(n,t)}).style("stroke",function(n,t){return l(n,t)});vt.style("stroke-opacity",1).style("fill-opacity",ot);at=vt.selectAll("rect.nv-bar").data(function(n){return e&&!c.length?e.values:n.values});at.exit().remove();ui=at.enter().append("rect").attr("class",function(n,t){return u(n,t)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(n,t,r){return f&&!c[r].nonStackable?0:r*i.rangeBand()/c.length}).attr("y",function(n,t,i){return a(f&&!c[i].nonStackable?n.y0:0)||0}).attr("height",0).attr("width",function(n,t,r){return i.rangeBand()/(f&&!c[r].nonStackable?1:c.length)}).attr("transform",function(n,t){return"translate("+i(y(n,t))+",0)"});at.style("fill",function(n,t,i){return l(n,i,t)}).style("stroke",function(n,t,i){return l(n,i,t)}).on("mouseover",function(n,t){d3.select(this).classed("hover",!0);h.elementMouseover({data:n,index:t,color:d3.select(this).style("fill")})}).on("mouseout",function(n,t){d3.select(this).classed("hover",!1);h.elementMouseout({data:n,index:t,color:d3.select(this).style("fill")})}).on("mousemove",function(n,t){h.elementMousemove({data:n,index:t,color:d3.select(this).style("fill")})}).on("click",function(n,t){var i=this;h.elementClick({data:n,index:t,color:d3.select(this).style("fill"),event:d3.event,element:i});d3.event.stopPropagation()}).on("dblclick",function(n,t){h.elementDblClick({data:n,index:t,color:d3.select(this).style("fill")});d3.event.stopPropagation()});at.attr("class",function(n,t){return u(n,t)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(n,t){return"translate("+i(y(n,t))+",0)"});p&&(o||(o=c.map(function(){return!0})),at.style("fill",function(n,t,i){return d3.rgb(p(n,t)).darker(o.map(function(n,t){return t}).filter(function(n,t){return!o[t]})[i]).toString()}).style("stroke",function(n,t,i){return d3.rgb(p(n,t)).darker(o.map(function(n,t){return t}).filter(function(n,t){return!o[t]})[i]).toString()}));bt=at.watchTransition(w,"multibar",Math.min(250,s)).delay(function(n,t){return t*s/c[0].values.length});f?bt.attr("y",function(n,i,r){return c[r].nonStackable?u(n,i)<0?t(0):t(0)-t(u(n,i))<-1?t(0)-1:t(u(n,i))||0:t(n.y1)}).attr("height",function(n,i,r){return c[r].nonStackable?Math.max(Math.abs(t(u(n,i))-t(0)),0)||0:Math.max(Math.abs(t(n.y+n.y0)-t(n.y0)),0)}).attr("x",function(n,t,r){var u=0;return c[r].nonStackable&&(u=n.series*i.rangeBand()/c.length,c.length!==ct&&(u=c[r].nonStackableSeries*i.rangeBand()/(ct*2))),u}).attr("width",function(n,t,r){if(c[r].nonStackable){var u=i.rangeBand()/ct;return c.length!==ct&&(u=i.rangeBand()/(ct*2)),u}return i.rangeBand()}):bt.attr("x",function(n){return n.series*i.rangeBand()/c.length}).attr("width",i.rangeBand()/c.length).attr("y",function(n,i){return u(n,i)<0?t(0):t(0)-t(u(n,i))<1?t(0)-1:t(u(n,i))||0}).attr("height",function(n,i){return Math.max(Math.abs(t(u(n,i))-t(0)),1)||0});st=i.copy();a=t.copy();c[0]&&c[0].values&&(ht=c[0].values.length)}),w.renderEnd("multibar immediate"),c}var r={top:0,right:0,bottom:0,left:0},d=960,g=500,i=d3.scale.ordinal(),t=d3.scale.linear(),v=Math.floor(Math.random()*1e4),nt=null,y=function(n){return n.x},u=function(n){return n.y},tt=[0],it=!0,f=!1,rt="zero",l=n.utils.defaultColor(),e=!1,p=null,o,s=500,b,k,ut,ft,et=.1,ot=.75,h=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),st,a,w=n.utils.renderWatch(h,s),ht=0;return c.dispatch=h,c.options=n.utils.optionsFunc.bind(c),c._options=Object.create({},{width:{get:function(){return d},set:function(n){d=n}},height:{get:function(){return g},set:function(n){g=n}},x:{get:function(){return y},set:function(n){y=n}},y:{get:function(){return u},set:function(n){u=n}},xScale:{get:function(){return i},set:function(n){i=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return b},set:function(n){b=n}},yDomain:{get:function(){return k},set:function(n){k=n}},xRange:{get:function(){return ut},set:function(n){ut=n}},yRange:{get:function(){return ft},set:function(n){ft=n}},forceY:{get:function(){return tt},set:function(n){tt=n}},stacked:{get:function(){return f},set:function(n){f=n}},stackOffset:{get:function(){return rt},set:function(n){rt=n}},clipEdge:{get:function(){return it},set:function(n){it=n}},disabled:{get:function(){return o},set:function(n){o=n}},id:{get:function(){return v},set:function(n){v=n}},hideable:{get:function(){return e},set:function(n){e=n}},groupSpacing:{get:function(){return et},set:function(n){et=n}},fillOpacity:{get:function(){return ot},set:function(n){ot=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},duration:{get:function(){return s},set:function(n){s=n;w.reset(s)}},color:{get:function(){return l},set:function(t){l=n.utils.getColor(t)}},barColor:{get:function(){return p},set:function(t){p=t?n.utils.getColor(t):null}}}),n.utils.initOptions(c),c};n.models.multiBarChart=function(){"use strict";function t(yt){return a.reset(),a.models(r),nt&&a.models(f),tt&&a.models(e),yt.each(function(a){var bt=d3.select(this),hi=this,kt,dt,ni,ri,ui,ti,si;if(n.utils.initSVG(bt),kt=n.utils.availableWidth(ut,bt,i),dt=n.utils.availableHeight(p,bt,i),t.update=function(){h===0?bt.call(t):bt.transition().duration(h).call(t)},t.container=this,u.setter(wt(a),t.update).getter(pt(a)).update(),u.disabled=a.map(function(n){return!!n.disabled}),!l){l={};for(ni in u)l[ni]=u[ni]instanceof Array?u[ni].slice(0):u[ni]}if(a&&a.length&&a.filter(function(n){return n.values.length}).length)bt.selectAll(".nv-noData").remove();else return n.utils.noData(t,bt),t;it=r.xScale();ct=r.yScale();var ii=bt.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([a]),gt=ii.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),yt=ii.select("g");if(gt.append("g").attr("class","nv-x nv-axis"),gt.append("g").attr("class","nv-y nv-axis"),gt.append("g").attr("class","nv-barsWrap"),gt.append("g").attr("class","nv-legendWrap"),gt.append("g").attr("class","nv-controlsWrap"),gt.append("g").attr("class","nv-interactive"),ft?et==="bottom"?(s.width(kt-i.right),yt.select(".nv-legendWrap").datum(a).call(s),i.bottom=f.height()+s.height(),dt=n.utils.availableHeight(p,bt,i),yt.select(".nv-legendWrap").attr("transform","translate(0,"+(dt+f.height())+")")):(s.width(kt-lt()),yt.select(".nv-legendWrap").datum(a).call(s),vt||s.height()===i.top||(i.top=s.height(),dt=n.utils.availableHeight(p,bt,i)),yt.select(".nv-legendWrap").attr("transform","translate("+lt()+","+-i.top+")")):yt.select(".nv-legendWrap").selectAll("*").remove(),g?(ri=[{key:c.grouped||"Grouped",disabled:r.stacked()},{key:c.stacked||"Stacked",disabled:!r.stacked()}],v.width(lt()).color(["#444","#444","#444"]),yt.select(".nv-controlsWrap").datum(ri).attr("transform","translate(0,"+-i.top+")").call(v)):yt.select(".nv-controlsWrap").selectAll("*").remove(),ii.attr("transform","translate("+i.left+","+i.top+")"),b&&yt.select(".nv-y.nv-axis").attr("transform","translate("+kt+",0)"),r.disabled(a.map(function(n){return n.disabled})).width(kt).height(dt).color(a.map(function(n,t){return n.color||w(n,t)}).filter(function(n,t){return!a[t].disabled})),ui=yt.select(".nv-barsWrap").datum(a.filter(function(n){return!n.disabled})),ui.call(r),nt){if(f.scale(it)._ticks(n.utils.calcTicksX(kt/100,a)).tickSize(-dt,0),yt.select(".nv-x.nv-axis").attr("transform","translate(0,"+ct.range()[0]+")"),yt.select(".nv-x.nv-axis").call(f),ti=yt.select(".nv-x.nv-axis > g").selectAll("g"),ti.selectAll("line, text").style("opacity",1),st){var fi=function(n,t){return"translate("+n+","+t+")"},ei=5,oi=17;ti.selectAll("text").attr("transform",function(n,t,i){return fi(0,i%2==0?ei:oi)});si=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;yt.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(n,t){return fi(0,t===0||si%2!=0?oi:ei)})}ht&&yt.selectAll(".tick text").call(n.utils.wrapTicks,t.xAxis.rangeBand());ot&&ti.filter(function(n,t){return t%Math.ceil(a[0].values.length/(kt/100))!=0}).selectAll("text, line").style("opacity",0);k&&ti.selectAll(".tick text").attr("transform","rotate("+k+" 0,0)").style("text-anchor",k>0?"start":"end");yt.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}tt&&(e.scale(ct)._ticks(n.utils.calcTicksY(dt/36,a)).tickSize(-kt,0),yt.select(".nv-y.nv-axis").call(e));rt&&(o.width(kt).height(dt).margin({left:i.left,top:i.top}).svgContainer(bt).xScale(it),ii.select(".nv-interactive").call(o));s.dispatch.on("stateChange",function(n){for(var i in n)u[i]=n[i];d.stateChange(u);t.update()});v.dispatch.on("legendClick",function(n){if(n.disabled){ri=ri.map(function(n){return n.disabled=!0,n});n.disabled=!1;switch(n.key){case"Grouped":case c.grouped:r.stacked(!1);break;case"Stacked":case c.stacked:r.stacked(!0)}u.stacked=r.stacked();d.stateChange(u);t.update()}});d.on("changeState",function(n){typeof n.disabled!="undefined"&&(a.forEach(function(t,i){t.disabled=n.disabled[i]}),u.disabled=n.disabled);typeof n.stacked!="undefined"&&(r.stacked(n.stacked),u.stacked=n.stacked,at=n.stacked);t.update()});if(rt){o.dispatch.on("elementMousemove",function(n){if(n.pointXValue!=undefined){var u,i,r,f,e=[];a.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(o){i=it.domain().indexOf(n.pointXValue);var s=o.values[i];s!==undefined&&(f=s.x,u===undefined&&(u=s),r===undefined&&(r=n.mouseX),e.push({key:o.key,value:t.y()(s,i),color:w(o,o.seriesIndex),data:o.values[i]}))});o.tooltip.data({value:f,index:i,series:e})();o.renderGuideLine(r)}});o.dispatch.on("elementMouseout",function(){o.tooltip.hidden(!0)})}else{r.dispatch.on("elementMouseover.tooltip",function(n){n.value=t.x()(n.data);n.series={key:n.data.key,value:t.y()(n.data),color:n.color};y.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){y.hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){y()})}}),a.renderEnd("multibarchart immediate"),t}var r=n.models.multiBar(),f=n.models.axis(),e=n.models.axis(),o=n.interactiveGuideline(),s=n.models.legend(),v=n.models.legend(),y=n.models.tooltip(),i={top:30,right:20,bottom:50,left:60},vt=null,ut=null,p=null,w=n.utils.defaultColor(),g=!0,c={},ft=!0,et=null,nt=!0,tt=!0,b=!1,ot=!0,st=!1,ht=!1,k=0,it,ct,u=n.utils.state(),l=null,yt=null,d=d3.dispatch("stateChange","changeState","renderEnd"),lt=function(){return g?180:0},h=250,rt=!1;u.stacked=!1;r.stacked(!1);f.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(n){return n});e.orient(b?"right":"left").tickFormat(d3.format(",.1f"));y.duration(0).valueFormatter(function(n,t){return e.tickFormat()(n,t)}).headerFormatter(function(n,t){return f.tickFormat()(n,t)});o.tooltip.valueFormatter(function(n,t){return n==null?"N/A":e.tickFormat()(n,t)}).headerFormatter(function(n,t){return f.tickFormat()(n,t)});o.tooltip.valueFormatter(function(n,t){return n==null?"N/A":e.tickFormat()(n,t)}).headerFormatter(function(n,t){return f.tickFormat()(n,t)});o.tooltip.duration(0).valueFormatter(function(n,t){return e.tickFormat()(n,t)}).headerFormatter(function(n,t){return f.tickFormat()(n,t)});v.updateState(!1);var a=n.utils.renderWatch(d),at=!1,pt=function(n){return function(){return{active:n.map(function(n){return!n.disabled}),stacked:at}}},wt=function(n){return function(t){t.stacked!==undefined&&(at=t.stacked);t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};return t.dispatch=d,t.multibar=r,t.legend=s,t.controls=v,t.xAxis=f,t.yAxis=e,t.state=u,t.tooltip=y,t.interactiveLayer=o,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return ut},set:function(n){ut=n}},height:{get:function(){return p},set:function(n){p=n}},showLegend:{get:function(){return ft},set:function(n){ft=n}},legendPosition:{get:function(){return et},set:function(n){et=n}},showControls:{get:function(){return g},set:function(n){g=n}},controlLabels:{get:function(){return c},set:function(n){c=n}},showXAxis:{get:function(){return nt},set:function(n){nt=n}},showYAxis:{get:function(){return tt},set:function(n){tt=n}},defaultState:{get:function(){return l},set:function(n){l=n}},noData:{get:function(){return yt},set:function(n){yt=n}},reduceXTicks:{get:function(){return ot},set:function(n){ot=n}},rotateLabels:{get:function(){return k},set:function(n){k=n}},staggerLabels:{get:function(){return st},set:function(n){st=n}},wrapLabels:{get:function(){return ht},set:function(n){ht=!!n}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,vt=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},duration:{get:function(){return h},set:function(n){h=n;r.duration(h);f.duration(h);e.duration(h);a.reset(h)}},color:{get:function(){return w},set:function(t){w=n.utils.getColor(t);s.color(w)}},rightAlignYAxis:{get:function(){return b},set:function(n){b=n;e.orient(b?"right":"left")}},useInteractiveGuideline:{get:function(){return rt},set:function(n){rt=n}},barColor:{get:function(){return r.barColor},set:function(n){r.barColor(n);s.color(function(n,t){return d3.rgb("#ccc").darker(t*1.5).toString()})}}}),n.utils.inheritOptions(t,r),n.utils.initOptions(t),t};n.models.multiBarHorizontal=function(){"use strict";function c(g){return e.reset(),g.each(function(c){var yt=tt-u.left-u.right,wt=it-u.top-u.bottom,vt,st,g,lt;ht=d3.select(this);n.utils.initSVG(ht);f&&(c=d3.layout.stack().offset("zero").values(function(n){return n.values}).y(i)(c));c.forEach(function(n,t){n.values.forEach(function(i){i.series=t;i.key=n.key})});f&&c[0].values.map(function(n,t){var i=0,r=0;c.map(function(n){var u=n.values[t];u.size=Math.abs(u.y);u.y<0?(u.y1=r-u.size,r=r-u.size):(u.y1=i,i=i+u.size)})});vt=b&&k?[]:c.map(function(n){return n.values.map(function(n,t){return{x:h(n,t),y:i(n,t),y0:n.y0,y1:n.y1}})});r.domain(b||d3.merge(vt).map(function(n){return n.x})).rangeBands(et||[0,wt],ut);t.domain(k||d3.extent(d3.merge(vt).map(function(n){return f?n.y>0?n.y1+n.y:n.y1:n.y}).concat(rt)));p&&!f?t.range(d||[t.domain()[0]<0?w:0,yt-(t.domain()[1]>0?w:0)]):t.range(d||[0,yt]);ot=ot||r;nt=nt||d3.scale.linear().domain(t.domain()).range([t(0),t(0)]);var at=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([c]),pt=at.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),kt=pt.append("defs"),bt=pt.append("g"),dt=at.select("g");bt.append("g").attr("class","nv-groups");at.attr("transform","translate("+u.left+","+u.top+")");st=at.select(".nv-groups").selectAll(".nv-group").data(function(n){return n},function(n,t){return t});st.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);st.exit().watchTransition(e,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove();st.attr("class",function(n,t){return"nv-group nv-series-"+t}).classed("hover",function(n){return n.hover}).style("fill",function(n,t){return y(n,t)}).style("stroke",function(n,t){return y(n,t)});st.watchTransition(e,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",ft);g=st.selectAll("g.nv-bar").data(function(n){return n.values});g.exit().remove();lt=g.enter().append("g").attr("transform",function(n,t,i){return"translate("+nt(f?n.y0:0)+","+(f?0:i*r.rangeBand()/c.length+r(h(n,t)))+")"});lt.append("rect").attr("width",0).attr("height",r.rangeBand()/(f?1:c.length));g.on("mouseover",function(n,t){d3.select(this).classed("hover",!0);s.elementMouseover({data:n,index:t,color:d3.select(this).style("fill")})}).on("mouseout",function(n,t){d3.select(this).classed("hover",!1);s.elementMouseout({data:n,index:t,color:d3.select(this).style("fill")})}).on("mouseout",function(n,t){s.elementMouseout({data:n,index:t,color:d3.select(this).style("fill")})}).on("mousemove",function(n,t){s.elementMousemove({data:n,index:t,color:d3.select(this).style("fill")})}).on("click",function(n,t){var i=this;s.elementClick({data:n,index:t,color:d3.select(this).style("fill"),event:d3.event,element:i});d3.event.stopPropagation()}).on("dblclick",function(n,t){s.elementDblClick({data:n,index:t,color:d3.select(this).style("fill")});d3.event.stopPropagation()});l(c[0],0)&&(lt.append("polyline"),g.select("polyline").attr("fill","none").attr("points",function(n,i){var u=l(n,i),e=.8*r.rangeBand()/((f?1:c.length)*2),o;return u=u.length?u:[-Math.abs(u),Math.abs(u)],u=u.map(function(n){return t(n)-t(0)}),o=[[u[0],-e],[u[0],e],[u[0],0],[u[1],0],[u[1],-e],[u[1],e]],o.map(function(n){return n.join(",")}).join(" ")}).attr("transform",function(n,u){var e=r.rangeBand()/((f?1:c.length)*2);return"translate("+(i(n,u)<0?0:t(i(n,u))-t(0))+", "+e+")"}));lt.append("text");p&&!f?(g.select("text").attr("text-anchor",function(n,t){return i(n,t)<0?"end":"start"}).attr("y",r.rangeBand()/(c.length*2)).attr("dy",".32em").text(function(n,t){var r=i(n,t),u=l(n,t);return u===undefined?r%1==0||isNaN(r)?r:r.toFixed(2):u.length?r+"+"+v(Math.abs(u[1]))+"-"+v(Math.abs(u[0])):r+"±"+v(Math.abs(u))}),g.watchTransition(e,"multibarhorizontal: bars").select("text").attr("x",function(n,r){return i(n,r)<0?-4:t(i(n,r))-t(0)+4})):g.selectAll("text").text("");ct&&!f?(lt.append("text").classed("nv-bar-label",!0),g.select("text.nv-bar-label").attr("text-anchor",function(n,t){return i(n,t)<0?"start":"end"}).attr("y",r.rangeBand()/(c.length*2)).attr("dy",".32em").text(function(n,t){return h(n,t)}),g.watchTransition(e,"multibarhorizontal: bars").select("text.nv-bar-label").attr("x",function(n,r){return i(n,r)<0?t(0)-t(i(n,r))+4:-4})):g.selectAll("text.nv-bar-label").text("");g.attr("class",function(n,t){return i(n,t)<0?"nv-bar negative":"nv-bar positive"});a&&(o||(o=c.map(function(){return!0})),g.style("fill",function(n,t,i){return d3.rgb(a(n,t)).darker(o.map(function(n,t){return t}).filter(function(n,t){return!o[t]})[i]).toString()}).style("stroke",function(n,t,i){return d3.rgb(a(n,t)).darker(o.map(function(n,t){return t}).filter(function(n,t){return!o[t]})[i]).toString()}));f?g.watchTransition(e,"multibarhorizontal: bars").attr("transform",function(n,i){return"translate("+t(n.y1)+","+r(h(n,i))+")"}).select("rect").attr("width",function(n,r){return Math.abs(t(i(n,r)+n.y0)-t(n.y0))||0}).attr("height",r.rangeBand()):g.watchTransition(e,"multibarhorizontal: bars").attr("transform",function(n,u){return"translate("+(i(n,u)<0?t(i(n,u)):t(0))+","+(n.series*r.rangeBand()/c.length+r(h(n,u)))+")"}).select("rect").attr("height",r.rangeBand()/c.length).attr("width",function(n,r){return Math.max(Math.abs(t(i(n,r))-t(0)),1)||0});ot=r.copy();nt=t.copy()}),e.renderEnd("multibarHorizontal immediate"),c}var u={top:0,right:0,bottom:0,left:0},tt=960,it=500,st=Math.floor(Math.random()*1e4),ht=null,r=d3.scale.ordinal(),t=d3.scale.linear(),h=function(n){return n.x},i=function(n){return n.y},l=function(n){return n.yErr},rt=[0],y=n.utils.defaultColor(),a=null,o,f=!1,p=!1,ct=!1,w=60,ut=.1,ft=.75,v=d3.format(",.2f"),b,k,et,d,g=250,s=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),ot,nt,e=n.utils.renderWatch(s,g);return c.dispatch=s,c.options=n.utils.optionsFunc.bind(c),c._options=Object.create({},{width:{get:function(){return tt},set:function(n){tt=n}},height:{get:function(){return it},set:function(n){it=n}},x:{get:function(){return h},set:function(n){h=n}},y:{get:function(){return i},set:function(n){i=n}},yErr:{get:function(){return l},set:function(n){l=n}},xScale:{get:function(){return r},set:function(n){r=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return b},set:function(n){b=n}},yDomain:{get:function(){return k},set:function(n){k=n}},xRange:{get:function(){return et},set:function(n){et=n}},yRange:{get:function(){return d},set:function(n){d=n}},forceY:{get:function(){return rt},set:function(n){rt=n}},stacked:{get:function(){return f},set:function(n){f=n}},showValues:{get:function(){return p},set:function(n){p=n}},disabled:{get:function(){return o},set:function(n){o=n}},id:{get:function(){return st},set:function(n){st=n}},valueFormat:{get:function(){return v},set:function(n){v=n}},valuePadding:{get:function(){return w},set:function(n){w=n}},groupSpacing:{get:function(){return ut},set:function(n){ut=n}},fillOpacity:{get:function(){return ft},set:function(n){ft=n}},margin:{get:function(){return u},set:function(n){u.top=n.top!==undefined?n.top:u.top;u.right=n.right!==undefined?n.right:u.right;u.bottom=n.bottom!==undefined?n.bottom:u.bottom;u.left=n.left!==undefined?n.left:u.left}},duration:{get:function(){return g},set:function(n){g=n;e.reset(g)}},color:{get:function(){return y},set:function(t){y=n.utils.getColor(t)}},barColor:{get:function(){return a},set:function(t){a=t?n.utils.getColor(t):null}}}),n.utils.initOptions(c),c};n.models.multiBarHorizontalChart=function(){"use strict";function t(y){return a.reset(),a.models(i),d&&a.models(o),g&&a.models(s),y.each(function(a){var et=d3.select(this),bt=this,ct,ht,lt,vt,pt,wt;if(n.utils.initSVG(et),ct=n.utils.availableWidth(tt,et,r),ht=n.utils.availableHeight(w,et,r),t.update=function(){et.transition().duration(e).call(t)},t.container=this,c=i.stacked(),u.setter(st(a),t.update).getter(ot(a)).update(),u.disabled=a.map(function(n){return!!n.disabled}),!l){l={};for(lt in u)l[lt]=u[lt]instanceof Array?u[lt].slice(0):u[lt]}if(a&&a.length&&a.filter(function(n){return n.values.length}).length)et.selectAll(".nv-noData").remove();else return n.utils.noData(t,et),t;ft=i.xScale();nt=i.yScale().clamp(!0);var yt=et.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([a]),at=yt.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),y=yt.select("g");at.append("g").attr("class","nv-x nv-axis");at.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line");at.append("g").attr("class","nv-barsWrap");at.append("g").attr("class","nv-legendWrap");at.append("g").attr("class","nv-controlsWrap");it?(f.width(ct-rt()),y.select(".nv-legendWrap").datum(a).call(f),ut||f.height()===r.top||(r.top=f.height(),ht=n.utils.availableHeight(w,et,r)),y.select(".nv-legendWrap").attr("transform","translate("+rt()+","+-r.top+")")):y.select(".nv-legendWrap").selectAll("*").remove();k?(vt=[{key:h.grouped||"Grouped",disabled:i.stacked()},{key:h.stacked||"Stacked",disabled:!i.stacked()}],v.width(rt()).color(["#444","#444","#444"]),y.select(".nv-controlsWrap").datum(vt).attr("transform","translate(0,"+-r.top+")").call(v)):y.select(".nv-controlsWrap").selectAll("*").remove();yt.attr("transform","translate("+r.left+","+r.top+")");i.disabled(a.map(function(n){return n.disabled})).width(ct).height(ht).color(a.map(function(n,t){return n.color||b(n,t)}).filter(function(n,t){return!a[t].disabled}));pt=y.select(".nv-barsWrap").datum(a.filter(function(n){return!n.disabled}));pt.transition().call(i);d&&(o.scale(ft)._ticks(n.utils.calcTicksY(ht/24,a)).tickSize(-ct,0),y.select(".nv-x.nv-axis").call(o),wt=y.select(".nv-x.nv-axis").selectAll("g"),wt.selectAll("line, text"));g&&(s.scale(nt)._ticks(n.utils.calcTicksX(ct/100,a)).tickSize(-ht,0),y.select(".nv-y.nv-axis").attr("transform","translate(0,"+ht+")"),y.select(".nv-y.nv-axis").call(s));y.select(".nv-zeroLine line").attr("x1",nt(0)).attr("x2",nt(0)).attr("y1",0).attr("y2",-ht);f.dispatch.on("stateChange",function(n){for(var i in n)u[i]=n[i];p.stateChange(u);t.update()});v.dispatch.on("legendClick",function(n){if(n.disabled){vt=vt.map(function(n){return n.disabled=!0,n});n.disabled=!1;switch(n.key){case"Grouped":case h.grouped:i.stacked(!1);break;case"Stacked":case h.stacked:i.stacked(!0)}u.stacked=i.stacked();p.stateChange(u);c=i.stacked();t.update()}});p.on("changeState",function(n){typeof n.disabled!="undefined"&&(a.forEach(function(t,i){t.disabled=n.disabled[i]}),u.disabled=n.disabled);typeof n.stacked!="undefined"&&(i.stacked(n.stacked),u.stacked=n.stacked,c=n.stacked);t.update()})}),a.renderEnd("multibar horizontal chart immediate"),t}var i=n.models.multiBarHorizontal(),o=n.models.axis(),s=n.models.axis(),f=n.models.legend().height(30),v=n.models.legend().height(30),y=n.models.tooltip(),r={top:30,right:20,bottom:50,left:60},ut=null,tt=null,w=null,b=n.utils.defaultColor(),k=!0,h={},it=!0,d=!0,g=!0,c=!1,ft,nt,u=n.utils.state(),l=null,et=null,p=d3.dispatch("stateChange","changeState","renderEnd"),rt=function(){return k?180:0},e=250;u.stacked=!1;i.stacked(c);o.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(n){return n});s.orient("bottom").tickFormat(d3.format(",.1f"));y.duration(0).valueFormatter(function(n,t){return s.tickFormat()(n,t)}).headerFormatter(function(n,t){return o.tickFormat()(n,t)});v.updateState(!1);var ot=function(n){return function(){return{active:n.map(function(n){return!n.disabled}),stacked:c}}},st=function(n){return function(t){t.stacked!==undefined&&(c=t.stacked);t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}},a=n.utils.renderWatch(p,e);i.dispatch.on("elementMouseover.tooltip",function(n){n.value=t.x()(n.data);n.series={key:n.data.key,value:t.y()(n.data),color:n.color};y.data(n).hidden(!1)});i.dispatch.on("elementMouseout.tooltip",function(){y.hidden(!0)});i.dispatch.on("elementMousemove.tooltip",function(){y()});return t.dispatch=p,t.multibar=i,t.legend=f,t.controls=v,t.xAxis=o,t.yAxis=s,t.state=u,t.tooltip=y,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return tt},set:function(n){tt=n}},height:{get:function(){return w},set:function(n){w=n}},showLegend:{get:function(){return it},set:function(n){it=n}},showControls:{get:function(){return k},set:function(n){k=n}},controlLabels:{get:function(){return h},set:function(n){h=n}},showXAxis:{get:function(){return d},set:function(n){d=n}},showYAxis:{get:function(){return g},set:function(n){g=n}},defaultState:{get:function(){return l},set:function(n){l=n}},noData:{get:function(){return et},set:function(n){et=n}},margin:{get:function(){return r},set:function(n){n.top!==undefined&&(r.top=n.top,ut=n.top);r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},duration:{get:function(){return e},set:function(n){e=n;a.reset(e);i.duration(e);o.duration(e);s.duration(e)}},color:{get:function(){return b},set:function(t){b=n.utils.getColor(t);f.color(b)}},barColor:{get:function(){return i.barColor},set:function(n){i.barColor(n);f.color(function(n,t){return d3.rgb("#ccc").darker(t*1.5).toString()})}}}),n.utils.inheritOptions(t,i),n.utils.initOptions(t),t};n.models.multiChart=function(){"use strict";function t(f){return f.each(function(f){function li(n){var t=f[n.seriesIndex].yAxis===2?b:w;n.value=n.point.x;n.series={value:n.point.y,color:n.point.color,key:n.series.key};u.duration(0).headerFormatter(function(n,t){return p.tickFormat()(n,t)}).valueFormatter(function(n,i){return t.tickFormat()(n,i)}).data(n).hidden(!1)}function ai(n){var t=f[n.seriesIndex].yAxis===2?b:w;n.value=n.point.x;n.series={value:n.point.y,color:n.point.color,key:n.series.key};u.duration(100).headerFormatter(function(n,t){return p.tickFormat()(n,t)}).valueFormatter(function(n,i){return t.tickFormat()(n,i)}).data(n).hidden(!1)}function vi(n){var t=f[n.seriesIndex].yAxis===2?b:w;n.point.x=r.x()(n.point);n.point.y=r.y()(n.point);u.duration(0).headerFormatter(function(n,t){return p.tickFormat()(n,t)}).valueFormatter(function(n,i){return t.tickFormat()(n,i)}).data(n).hidden(!1)}function yi(n){var t=f[n.data.series].yAxis===2?b:w;n.value=h.x()(n.data);n.series={value:h.y()(n.data),color:n.color,key:n.data.key};u.duration(0).headerFormatter(function(n,t){return p.tickFormat()(n,t)}).valueFormatter(function(n,i){return t.tickFormat()(n,i)}).data(n).hidden(!1)}function pi(){for(var i,n=0,t=et.length;n<t;n++){i=et[n];try{i.clearHighlights()}catch(r){}}}function fr(n,t,i){for(var f,r=0,u=et.length;r<u;r++){f=et[r];try{f.highlightPoint(n,t,i)}catch(e){}}}var kt=d3.select(this),er=this,ni,ti,ii,wt,vt,bt,ri,ci;n.utils.initSVG(kt);t.update=function(){kt.transition().call(t)};t.container=this;var pt=n.utils.availableWidth(ot,kt,i),yt=n.utils.availableHeight(rt,kt,i),ui=f.filter(function(n){return n.type=="line"&&n.yAxis==1}),fi=f.filter(function(n){return n.type=="line"&&n.yAxis==2}),ei=f.filter(function(n){return n.type=="scatter"&&n.yAxis==1}),oi=f.filter(function(n){return n.type=="scatter"&&n.yAxis==2}),si=f.filter(function(n){return n.type=="bar"&&n.yAxis==1}),hi=f.filter(function(n){return n.type=="bar"&&n.yAxis==2}),dt=f.filter(function(n){return n.type=="area"&&n.yAxis==1}),gt=f.filter(function(n){return n.type=="area"&&n.yAxis==2});if(f&&f.length&&f.filter(function(n){return n.values.length}).length)kt.selectAll(".nv-noData").remove();else return n.utils.noData(t,kt),t;ni=f.filter(function(n){return!n.disabled&&n.yAxis==1}).map(function(n){return n.values.map(function(n){return{x:ut(n),y:ft(n)}})});ti=f.filter(function(n){return!n.disabled&&n.yAxis==2}).map(function(n){return n.values.map(function(n){return{x:ut(n),y:ft(n)}})});g.domain(d3.extent(d3.merge(ni.concat(ti)),function(n){return n.x})).range([0,pt]);ii=kt.selectAll("g.wrap.multiChart").data([f]);wt=ii.enter().append("g").attr("class","wrap nvd3 multiChart").append("g");wt.append("g").attr("class","nv-x nv-axis");wt.append("g").attr("class","nv-y1 nv-axis");wt.append("g").attr("class","nv-y2 nv-axis");wt.append("g").attr("class","stack1Wrap");wt.append("g").attr("class","stack2Wrap");wt.append("g").attr("class","bars1Wrap");wt.append("g").attr("class","bars2Wrap");wt.append("g").attr("class","scatters1Wrap");wt.append("g").attr("class","scatters2Wrap");wt.append("g").attr("class","lines1Wrap");wt.append("g").attr("class","lines2Wrap");wt.append("g").attr("class","legendWrap");wt.append("g").attr("class","nv-interactive");vt=ii.select("g");bt=f.map(function(n,t){return f[t].color||it(n,t)});st?(ri=k.align()?pt/2:pt,ci=k.align()?ri:0,k.width(ri),k.color(bt),vt.select(".legendWrap").datum(f.map(function(n){return n.originalKey=n.originalKey===undefined?n.key:n.originalKey,n.key=n.originalKey+(n.yAxis==1?"":lt),n})).call(k),at||k.height()===i.top||(i.top=k.height(),yt=n.utils.availableHeight(rt,kt,i)),vt.select(".legendWrap").attr("transform","translate("+ci+","+-i.top+")")):vt.select(".legendWrap").selectAll("*").remove();e.width(pt).height(yt).interpolate(nt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==1&&f[t].type=="line"}));o.width(pt).height(yt).interpolate(nt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==2&&f[t].type=="line"}));c.width(pt).height(yt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==1&&f[t].type=="scatter"}));l.width(pt).height(yt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==2&&f[t].type=="scatter"}));h.width(pt).height(yt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==1&&f[t].type=="bar"}));y.width(pt).height(yt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==2&&f[t].type=="bar"}));r.width(pt).height(yt).interpolate(nt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==1&&f[t].type=="area"}));s.width(pt).height(yt).interpolate(nt).color(bt.filter(function(n,t){return!f[t].disabled&&f[t].yAxis==2&&f[t].type=="area"}));vt.attr("transform","translate("+i.left+","+i.top+")");var wi=vt.select(".lines1Wrap").datum(ui.filter(function(n){return!n.disabled})),bi=vt.select(".scatters1Wrap").datum(ei.filter(function(n){return!n.disabled})),ki=vt.select(".bars1Wrap").datum(si.filter(function(n){return!n.disabled})),di=vt.select(".stack1Wrap").datum(dt.filter(function(n){return!n.disabled})),gi=vt.select(".lines2Wrap").datum(fi.filter(function(n){return!n.disabled})),nr=vt.select(".scatters2Wrap").datum(oi.filter(function(n){return!n.disabled})),tr=vt.select(".bars2Wrap").datum(hi.filter(function(n){return!n.disabled})),ir=vt.select(".stack2Wrap").datum(gt.filter(function(n){return!n.disabled})),rr=dt.length?dt.map(function(n){return n.values}).reduce(function(n,t){return n.map(function(n,i){return{x:n.x,y:n.y+t[i].y}})}).concat([{x:0,y:0}]):[],ur=gt.length?gt.map(function(n){return n.values}).reduce(function(n,t){return n.map(function(n,i){return{x:n.x,y:n.y+t[i].y}})}).concat([{x:0,y:0}]):[];a.domain(ht||d3.extent(d3.merge(ni).concat(rr),function(n){return n.y})).range([0,yt]);v.domain(ct||d3.extent(d3.merge(ti).concat(ur),function(n){return n.y})).range([0,yt]);e.yDomain(a.domain());c.yDomain(a.domain());h.yDomain(a.domain());r.yDomain(a.domain());o.yDomain(v.domain());l.yDomain(v.domain());y.yDomain(v.domain());s.yDomain(v.domain());dt.length&&d3.transition(di).call(r);gt.length&&d3.transition(ir).call(s);si.length&&d3.transition(ki).call(h);hi.length&&d3.transition(tr).call(y);ui.length&&d3.transition(wi).call(e);fi.length&&d3.transition(gi).call(o);ei.length&&d3.transition(bi).call(c);oi.length&&d3.transition(nr).call(l);p._ticks(n.utils.calcTicksX(pt/100,f)).tickSize(-yt,0);vt.select(".nv-x.nv-axis").attr("transform","translate(0,"+yt+")");d3.transition(vt.select(".nv-x.nv-axis")).call(p);w._ticks(n.utils.calcTicksY(yt/36,f)).tickSize(-pt,0);d3.transition(vt.select(".nv-y1.nv-axis")).call(w);b._ticks(n.utils.calcTicksY(yt/36,f)).tickSize(-pt,0);d3.transition(vt.select(".nv-y2.nv-axis")).call(b);vt.select(".nv-y1.nv-axis").classed("nv-disabled",ni.length?!1:!0).attr("transform","translate("+g.range()[0]+",0)");vt.select(".nv-y2.nv-axis").classed("nv-disabled",ti.length?!1:!0).attr("transform","translate("+g.range()[1]+",0)");k.dispatch.on("stateChange",function(){t.update()});if(tt&&(d.width(pt).height(yt).margin({left:i.left,top:i.top}).svgContainer(kt).xScale(g),ii.select(".nv-interactive").call(d)),tt){d.dispatch.on("elementMousemove",function(i){var e,r,o,u,s;pi();u=[];f.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(f,s){var l=g.domain(),a=f.values.filter(function(n,i){return t.x()(n,i)>=l[0]&&t.x()(n,i)<=l[1]}),h,c;(r=n.interactiveBisect(a,i.pointXValue,t.x()),h=a[r],c=t.y()(h,r),c!==null&&fr(s,r,!0),h!==undefined)&&(e===undefined&&(e=h),o===undefined&&(o=g(t.x()(h,r))),u.push({key:f.key,value:c,color:it(f,f.seriesIndex),data:h,yAxis:f.yAxis==2?b:w}))});s=function(n,t){var i=u[t].yAxis;return n==null?"N/A":i.tickFormat()(n)};d.tooltip.headerFormatter(function(n,t){return p.tickFormat()(n,t)}).valueFormatter(d.tooltip.valueFormatter()||s).data({value:t.x()(e,r),index:r,series:u})();d.renderGuideLine(o)});d.dispatch.on("elementMouseout",function(){pi()})}else{e.dispatch.on("elementMouseover.tooltip",li);o.dispatch.on("elementMouseover.tooltip",li);e.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});o.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});c.dispatch.on("elementMouseover.tooltip",ai);l.dispatch.on("elementMouseover.tooltip",ai);c.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});l.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});r.dispatch.on("elementMouseover.tooltip",vi);s.dispatch.on("elementMouseover.tooltip",vi);r.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});s.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});h.dispatch.on("elementMouseover.tooltip",yi);y.dispatch.on("elementMouseover.tooltip",yi);h.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});y.dispatch.on("elementMouseout.tooltip",function(){u.hidden(!0)});h.dispatch.on("elementMousemove.tooltip",function(){u()});y.dispatch.on("elementMousemove.tooltip",function(){u()})}}),t}var i={top:30,right:20,bottom:50,left:60},at=null,it=n.utils.defaultColor(),ot=null,rt=null,st=!0,vt=null,ht,ct,ut=function(n){return n.x},ft=function(n){return n.y},nt="linear",yt=!0,d=n.interactiveGuideline(),tt=!1,lt=" (right axis)",f=250,g=d3.scale.linear(),a=d3.scale.linear(),v=d3.scale.linear(),e=n.models.line().yScale(a).duration(f),o=n.models.line().yScale(v).duration(f),c=n.models.scatter().yScale(a).duration(f),l=n.models.scatter().yScale(v).duration(f),h=n.models.multiBar().stacked(!1).yScale(a).duration(f),y=n.models.multiBar().stacked(!1).yScale(v).duration(f),r=n.models.stackedArea().yScale(a).duration(f),s=n.models.stackedArea().yScale(v).duration(f),p=n.models.axis().scale(g).orient("bottom").tickPadding(5).duration(f),w=n.models.axis().scale(a).orient("left").duration(f),b=n.models.axis().scale(v).orient("right").duration(f),k=n.models.legend().height(30),u=n.models.tooltip(),pt=d3.dispatch(),et=[e,o,c,l,h,y,r,s];return t.dispatch=pt,t.legend=k,t.lines1=e,t.lines2=o,t.scatters1=c,t.scatters2=l,t.bars1=h,t.bars2=y,t.stack1=r,t.stack2=s,t.xAxis=p,t.yAxis1=w,t.yAxis2=b,t.tooltip=u,t.interactiveLayer=d,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return ot},set:function(n){ot=n}},height:{get:function(){return rt},set:function(n){rt=n}},showLegend:{get:function(){return st},set:function(n){st=n}},yDomain1:{get:function(){return ht},set:function(n){ht=n}},yDomain2:{get:function(){return ct},set:function(n){ct=n}},noData:{get:function(){return vt},set:function(n){vt=n}},interpolate:{get:function(){return nt},set:function(n){nt=n}},legendRightAxisHint:{get:function(){return lt},set:function(n){lt=n}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,at=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},color:{get:function(){return it},set:function(t){it=n.utils.getColor(t)}},x:{get:function(){return ut},set:function(n){ut=n;e.x(n);o.x(n);c.x(n);l.x(n);h.x(n);y.x(n);r.x(n);s.x(n)}},y:{get:function(){return ft},set:function(n){ft=n;e.y(n);o.y(n);c.y(n);l.y(n);r.y(n);s.y(n);h.y(n);y.y(n)}},useVoronoi:{get:function(){return yt},set:function(n){yt=n;e.useVoronoi(n);o.useVoronoi(n);r.useVoronoi(n);s.useVoronoi(n)}},useInteractiveGuideline:{get:function(){return tt},set:function(n){tt=n;tt&&(e.interactive(!1),e.useVoronoi(!1),o.interactive(!1),o.useVoronoi(!1),r.interactive(!1),r.useVoronoi(!1),s.interactive(!1),s.useVoronoi(!1),c.interactive(!1),l.interactive(!1))}},duration:{get:function(){return f},set:function(n){f=n;[e,o,r,s,c,l,p,w,b].forEach(function(n){n.duration(f)})}}}),n.utils.initOptions(t),t};n.models.ohlcBar=function(){"use strict";function u(rt){return rt.each(function(u){var rt,st,ft,ot;e=d3.select(this);rt=n.utils.availableWidth(w,e,r);st=n.utils.availableHeight(b,e,r);n.utils.initSVG(e);ft=rt/u[0].values.length*.9;i.domain(nt||d3.extent(u[0].values.map(l).concat(k)));d?i.range(p||[rt*.5/u[0].values.length,rt*(u[0].values.length-.5)/u[0].values.length]):i.range(p||[5+ft/2,rt-ft/2-5]);t.domain(tt||[d3.min(u[0].values.map(s).concat(v)),d3.max(u[0].values.map(o).concat(v))]).range(it||[st,0]);i.domain()[0]===i.domain()[1]&&(i.domain()[0]?i.domain([i.domain()[0]-i.domain()[0]*.01,i.domain()[1]+i.domain()[1]*.01]):i.domain([-1,1]));t.domain()[0]===t.domain()[1]&&(t.domain()[0]?t.domain([t.domain()[0]+t.domain()[0]*.01,t.domain()[1]-t.domain()[1]*.01]):t.domain([-1,1]));var et=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([u[0].values]),ht=et.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),ct=ht.append("defs"),lt=ht.append("g"),at=et.select("g");lt.append("g").attr("class","nv-ticks");et.attr("transform","translate("+r.left+","+r.top+")");e.on("click",function(n,t){ut.chartClick({data:n,index:t,pos:d3.event,id:h})});ct.append("clipPath").attr("id","nv-chart-clip-path-"+h).append("rect");et.select("#nv-chart-clip-path-"+h+" rect").attr("width",rt).attr("height",st);at.attr("clip-path",g?"url(#nv-chart-clip-path-"+h+")":"");ot=et.select(".nv-ticks").selectAll(".nv-tick").data(function(n){return n});ot.exit().remove();ot.enter().append("path").attr("class",function(n,t,i){return(f(n,t)>c(n,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+i+"-"+t}).attr("d",function(n,i){return"m0,0l0,"+(t(f(n,i))-t(o(n,i)))+"l"+-ft/2+",0l"+ft/2+",0l0,"+(t(s(n,i))-t(f(n,i)))+"l0,"+(t(c(n,i))-t(s(n,i)))+"l"+ft/2+",0l"+-ft/2+",0z"}).attr("transform",function(n,r){return"translate("+i(l(n,r))+","+t(o(n,r))+")"}).attr("fill",function(){return y[0]}).attr("stroke",function(){return y[0]}).attr("x",0).attr("y",function(n,i){return t(Math.max(0,a(n,i)))}).attr("height",function(n,i){return Math.abs(t(a(n,i))-t(0))});ot.attr("class",function(n,t,i){return(f(n,t)>c(n,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+i+"-"+t});d3.transition(ot).attr("transform",function(n,r){return"translate("+i(l(n,r))+","+t(o(n,r))+")"}).attr("d",function(n,i){var r=rt/u[0].values.length*.9;return"m0,0l0,"+(t(f(n,i))-t(o(n,i)))+"l"+-r/2+",0l"+r/2+",0l0,"+(t(s(n,i))-t(f(n,i)))+"l0,"+(t(c(n,i))-t(s(n,i)))+"l"+r/2+",0l"+-r/2+",0z"})}),u}var r={top:0,right:0,bottom:0,left:0},w=null,b=null,h=Math.floor(Math.random()*1e4),e=null,i=d3.scale.linear(),t=d3.scale.linear(),l=function(n){return n.x},a=function(n){return n.y},f=function(n){return n.open},c=function(n){return n.close},o=function(n){return n.high},s=function(n){return n.low},k=[],v=[],d=!1,g=!0,y=n.utils.defaultColor(),rt=!1,nt,tt,p,it,ut=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return u.highlightPoint=function(n,t){u.clearHighlights();e.select(".nv-ohlcBar .nv-tick-0-"+n).classed("hover",t)},u.clearHighlights=function(){e.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},u.dispatch=ut,u.options=n.utils.optionsFunc.bind(u),u._options=Object.create({},{width:{get:function(){return w},set:function(n){w=n}},height:{get:function(){return b},set:function(n){b=n}},xScale:{get:function(){return i},set:function(n){i=n}},yScale:{get:function(){return t},set:function(n){t=n}},xDomain:{get:function(){return nt},set:function(n){nt=n}},yDomain:{get:function(){return tt},set:function(n){tt=n}},xRange:{get:function(){return p},set:function(n){p=n}},yRange:{get:function(){return it},set:function(n){it=n}},forceX:{get:function(){return k},set:function(n){k=n}},forceY:{get:function(){return v},set:function(n){v=n}},padData:{get:function(){return d},set:function(n){d=n}},clipEdge:{get:function(){return g},set:function(n){g=n}},id:{get:function(){return h},set:function(n){h=n}},interactive:{get:function(){return rt},set:function(n){rt=n}},x:{get:function(){return l},set:function(n){l=n}},y:{get:function(){return a},set:function(n){a=n}},open:{get:function(){return f()},set:function(n){f=n}},close:{get:function(){return c()},set:function(n){c=n}},high:{get:function(){return o},set:function(n){o=n}},low:{get:function(){return s},set:function(n){s=n}},margin:{get:function(){return r},set:function(n){r.top=n.top!=undefined?n.top:r.top;r.right=n.right!=undefined?n.right:r.right;r.bottom=n.bottom!=undefined?n.bottom:r.bottom;r.left=n.left!=undefined?n.left:r.left}},color:{get:function(){return y},set:function(t){y=n.utils.getColor(t)}}}),n.utils.initOptions(u),u};n.models.parallelCoordinates=function(){"use strict";function a(et){return ft.reset(),et.each(function(a){function at(n){return rt(h.map(function(i){var f;if(isNaN(n.values[i.key])||isNaN(parseFloat(n.values[i.key]))||wt){var r=t[i.key].domain(),e=t[i.key].range(),u=r[0]-(r[1]-r[0])/9;if(b.indexOf(i.key)<0&&(f=d3.scale.linear().domain([u,r[1]]).range([v-12,e[1]]),t[i.key].brush.y(f),b.push(i.key)),isNaN(n.values[i.key])||isNaN(parseFloat(n.values[i.key])))return[o(i.key),t[i.key](u)]}return st!==undefined&&(b.length>0||wt?(st.style("display","inline"),ht.style("display","inline")):(st.style("display","none"),ht.style("display","none"))),[o(i.key),t[i.key](n.values[i.key])]}))}function ii(n){s.forEach(function(i){var r=t[i.dimension].brush.y().domain();i.hasOnlyNaN&&(i.extent[1]=(t[i.dimension].domain()[1]-r[0])*(i.extent[1]-i.extent[0])/(gt[i.dimension]-i.extent[0])+r[0]);i.hasNaN&&(i.extent[0]=r[0]);n&&t[i.dimension].brush.extent(i.extent)});c.select(".nv-brushBackground").each(function(n){d3.select(this).call(t[n.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16);ri()}function oi(){l===!1&&(l=!0,ii(!0))}function si(){ct=w.filter(function(n){return!t[n].brush.empty()});et=ct.map(function(n){return t[n].brush.extent()});s=[];ct.forEach(function(n,t){s[t]={dimension:n,extent:et[t],hasNaN:!1,hasOnlyNaN:!1}});u=[];e.style("display",function(n){var i=ct.every(function(i,r){return(isNaN(n.values[i])||isNaN(parseFloat(n.values[i])))&&et[r][0]==t[i].brush.y().domain()[0]?!0:et[r][0]<=n.values[i]&&n.values[i]<=et[r][1]&&!isNaN(parseFloat(n.values[i]))});return i&&u.push(n),i?null:"none"});ri();f.brush({filters:s,active:u})}function hi(){var n=ct.length>0?!0:!1;s.forEach(function(n){n.extent[0]===t[n.dimension].brush.y().domain()[0]&&b.indexOf(n.dimension)>=0&&(n.hasNaN=!0);n.extent[1]<t[n.dimension].domain()[0]&&(n.hasOnlyNaN=!0)});f.brushEnd(u,n)}function ri(){c.select(".nv-axis").each(function(n){var i=s.filter(function(t){return t.dimension==n.key});lt[n.key]=t[n.key].domain();i.length!=0&&l&&(lt[n.key]=[],i[0].extent[1]>t[n.key].domain()[0]&&(lt[n.key]=[i[0].extent[1]]),i[0].extent[0]>=t[n.key].domain()[0]&&lt[n.key].push(i[0].extent[0]));d3.select(this).call(ut.scale(t[n.key]).tickFormat(n.format).tickValues(lt[n.key]))})}function ci(n){g[n.key]=this.parentNode.__origin__=o(n.key);y.attr("visibility","hidden")}function li(n){g[n.key]=Math.min(p,Math.max(0,this.parentNode.__origin__+=d3.event.x));e.attr("d",at);h.sort(function(n,t){return kt(n.key)-kt(t.key)});h.forEach(function(n,t){return n.currentPosition=t});o.domain(h.map(function(n){return n.key}));c.attr("transform",function(n){return"translate("+kt(n.key)+")"})}function ai(n){delete this.parentNode.__origin__;delete g[n.key];d3.select(this.parentNode).attr("transform","translate("+o(n.key)+")");e.attr("d",at);y.attr("d",at).attr("visibility",null);f.dimensionsOrder(h)}function kt(n){var t=g[n];return t==null?o(n):t}var vt=d3.select(this),pt,dt,ni,st,ht,ft,ti,yt;p=n.utils.availableWidth(nt,vt,r);v=n.utils.availableHeight(tt,vt,r);n.utils.initSVG(vt);a[0].values===undefined&&(pt=[],a.forEach(function(n){var t={},i=Object.keys(n);i.forEach(function(i){i!=="name"&&(t[i]=n[i])});pt.push({key:n.name,values:t})}),a=pt);dt=a.map(function(n){return n.values});u.length===0&&(u=a);w=i.sort(function(n,t){return n.currentPosition-t.currentPosition}).map(function(n){return n.key});h=i.filter(function(n){return!n.disabled});o.rangePoints([0,p],1).domain(h.map(function(n){return n.key}));var gt={},wt=!1,lt=[];w.forEach(function(n){var f=d3.extent(dt,function(t){return+t[n]}),r=f[0],i=f[1],e=!1,u;(isNaN(r)||isNaN(i))&&(e=!0,r=0,i=0);r===i&&(r=r-1,i=i+1);u=s.filter(function(t){return t.dimension==n});u.length!==0&&(e?(r=t[n].domain()[0],i=t[n].domain()[1]):!u[0].hasOnlyNaN&&l?(r=r>u[0].extent[0]?u[0].extent[0]:r,i=i<u[0].extent[1]?u[0].extent[1]:i):u[0].hasNaN&&(i=i<u[0].extent[1]?u[0].extent[1]:i,gt[n]=t[n].domain()[1],wt=!0));t[n]=d3.scale.linear().domain([r,i]).range([(v-12)*.9,0]);b=[];t[n].brush=d3.svg.brush().y(t[n]).on("brushstart",oi).on("brush",si).on("brushend",hi)});var ot=vt.selectAll("g.nv-wrap.nv-parallelCoordinates").data([a]),ui=ot.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates"),bt=ui.append("g"),fi=ot.select("g");bt.append("g").attr("class","nv-parallelCoordinates background");bt.append("g").attr("class","nv-parallelCoordinates foreground");bt.append("g").attr("class","nv-parallelCoordinates missingValuesline");ot.attr("transform","translate("+r.left+","+r.top+")");rt.interpolate("cardinal").tension(it);ut.orient("left");ni=d3.behavior.drag().on("dragstart",ci).on("drag",li).on("dragend",ai);ft=o.range()[1]-o.range()[0];ft=isNaN(ft)?o.range()[0]:ft;isNaN(ft)||(ti=[0+ft/2,v-12,p-ft/2,v-12],st=ot.select(".missingValuesline").selectAll("line").data([ti]),st.enter().append("line"),st.exit().remove(),st.attr("x1",function(n){return n[0]}).attr("y1",function(n){return n[1]}).attr("x2",function(n){return n[2]}).attr("y2",function(n){return n[3]}),ht=ot.select(".missingValuesline").selectAll("text").data([k]),ht.append("text").data([k]),ht.enter().append("text"),ht.exit().remove(),ht.attr("y",v).attr("x",p-92-ft/2).text(function(n){return n}));y=ot.select(".background").selectAll("path").data(a);y.enter().append("path");y.exit().remove();y.attr("d",at);e=ot.select(".foreground").selectAll("path").data(a);e.enter().append("path");e.exit().remove();e.attr("d",at).style("stroke-width",function(n){return isNaN(n.strokeWidth)&&(n.strokeWidth=1),n.strokeWidth}).attr("stroke",function(n,t){return n.color||d(n,t)});e.on("mouseover",function(n,t){d3.select(this).classed("hover",!0).style("stroke-width",n.strokeWidth+2+"px").style("stroke-opacity",1);f.elementMouseover({label:n.name,color:n.color||d(n,t),values:n.values,dimensions:h})});e.on("mouseout",function(n,t){d3.select(this).classed("hover",!1).style("stroke-width",n.strokeWidth+"px").style("stroke-opacity",.7);f.elementMouseout({label:n.name,index:t})});e.on("mousemove",function(){f.elementMousemove()});e.on("click",function(n){f.elementClick({id:n.id})});c=fi.selectAll(".dimension").data(h);yt=c.enter().append("g").attr("class","nv-parallelCoordinates dimension");c.attr("transform",function(n){return"translate("+o(n.key)+",0)"});yt.append("g").attr("class","nv-axis");yt.append("text").attr("class","nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").on("mouseover",function(n){f.elementMouseover({label:n.tooltip||n.key,color:n.color})}).on("mouseout",function(n){f.elementMouseout({label:n.tooltip})}).on("mousemove",function(){f.elementMousemove()}).call(ni);yt.append("g").attr("class","nv-brushBackground");c.exit().remove();c.select(".nv-label").text(function(n){return n.key});ii(l);var ct=w.filter(function(n){return!t[n].brush.empty()}),et=ct.map(function(n){return t[n].brush.extent()}),ei=u.slice(0);u=[];e.style("display",function(n){var i=ct.every(function(i,r){return(isNaN(n.values[i])||isNaN(parseFloat(n.values[i])))&&et[r][0]==t[i].brush.y().domain()[0]?!0:et[r][0]<=n.values[i]&&n.values[i]<=et[r][1]&&!isNaN(parseFloat(n.values[i]))});return i&&u.push(n),i?null:"none"});(s.length>0||!n.utils.arrayEquals(u,ei))&&f.activeChanged(u)}),a}var r={top:30,right:0,bottom:10,left:0},nt=null,tt=null,p=null,v=null,o=d3.scale.ordinal(),t={},k="undefined values",i=[],h=[],w=[],l=!0,d=n.utils.defaultColor(),s=[],u=[],g=[],b=[],it=1,e,y,c,rt=d3.svg.line(),ut=d3.svg.axis(),f=d3.dispatch("brushstart","brush","brushEnd","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),ft=n.utils.renderWatch(f);return a.dispatch=f,a.options=n.utils.optionsFunc.bind(a),a._options=Object.create({},{width:{get:function(){return nt},set:function(n){nt=n}},height:{get:function(){return tt},set:function(n){tt=n}},dimensionData:{get:function(){return i},set:function(n){i=n}},displayBrush:{get:function(){return l},set:function(n){l=n}},filters:{get:function(){return s},set:function(n){s=n}},active:{get:function(){return u},set:function(n){u=n}},lineTension:{get:function(){return it},set:function(n){it=n}},undefinedValuesLabel:{get:function(){return k},set:function(n){k=n}},dimensions:{get:function(){return i.map(function(n){return n.key})},set:function(t){n.deprecated("dimensions","use dimensionData instead");i.length===0?t.forEach(function(n){i.push({key:n})}):t.forEach(function(n,t){i[t].key=n})}},dimensionNames:{get:function(){return i.map(function(n){return n.key})},set:function(t){n.deprecated("dimensionNames","use dimensionData instead");w=[];i.length===0?t.forEach(function(n){i.push({key:n})}):t.forEach(function(n,t){i[t].key=n})}},dimensionFormats:{get:function(){return i.map(function(n){return n.format})},set:function(t){n.deprecated("dimensionFormats","use dimensionData instead");i.length===0?t.forEach(function(n){i.push({format:n})}):t.forEach(function(n,t){i[t].format=n})}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},color:{get:function(){return d},set:function(t){d=n.utils.getColor(t)}}}),n.utils.initOptions(a),a};n.models.parallelCoordinatesChart=function(){"use strict";function t(h){return w.reset(),w.models(u),h.each(function(h){var a=d3.select(this),p,rt;n.utils.initSVG(a);var ut=this,tt=n.utils.availableWidth(v,a,i),w=n.utils.availableHeight(l,a,i);if(t.update=function(){a.call(t)},t.container=this,f.setter(g(r),t.update).getter(d(r)).update(),f.disabled=r.map(function(n){return!!n.disabled}),r=r.map(function(n){return n.disabled=!!n.disabled,n}),r.forEach(function(n,t){n.originalPosition=isNaN(n.originalPosition)?t:n.originalPosition;n.currentPosition=isNaN(n.currentPosition)?t:n.currentPosition}),!o){o={};for(p in f)o[p]=f[p]instanceof Array?f[p].slice(0):f[p]}if(h&&h.length)a.selectAll(".nv-noData").remove();else return n.utils.noData(t,a),t;var k=a.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([h]),it=k.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart").append("g"),nt=k.select("g");it.append("g").attr("class","nv-parallelCoordinatesWrap");it.append("g").attr("class","nv-legendWrap");nt.select("rect").attr("width",tt).attr("height",w>0?w:0);y?(e.width(tt).color(function(){return"rgb(188,190,192)"}),nt.select(".nv-legendWrap").datum(r.sort(function(n,t){return n.originalPosition-t.originalPosition})).call(e),b||e.height()===i.top||(i.top=e.height(),w=n.utils.availableHeight(l,a,i)),k.select(".nv-legendWrap").attr("transform","translate( 0 ,"+-i.top+")")):nt.select(".nv-legendWrap").selectAll("*").remove();k.attr("transform","translate("+i.left+","+i.top+")");u.width(tt).height(w).dimensionData(r).displayBrush(c);rt=nt.select(".nv-parallelCoordinatesWrap ").datum(h);rt.transition().call(u);u.dispatch.on("brushEnd",function(n,t){t?(c=!0,s.brushEnd(n)):c=!1});e.dispatch.on("stateChange",function(n){for(var i in n)f[i]=n[i];s.stateChange(f);t.update()});u.dispatch.on("dimensionsOrder",function(){r.sort(function(n,t){return n.currentPosition-t.currentPosition});var n=!1;r.forEach(function(t,i){t.currentPosition=i;t.currentPosition!==t.originalPosition&&(n=!0)});s.dimensionsOrder(r,n)});s.on("changeState",function(n){typeof n.disabled!="undefined"&&(r.forEach(function(t,i){t.disabled=n.disabled[i]}),f.disabled=n.disabled);t.update()})}),w.renderEnd("parraleleCoordinateChart immediate"),t}var u=n.models.parallelCoordinates(),e=n.models.legend(),h=n.models.tooltip(),nt=n.models.tooltip(),i={top:0,right:0,bottom:0,left:0},b=null,v=null,l=null,y=!0,a=n.utils.defaultColor(),f=n.utils.state(),r=[],c=!0,o=null,k=null,p="undefined",s=d3.dispatch("dimensionsOrder","brushEnd","stateChange","changeState","renderEnd"),tt=function(){return showControls?180:0},w=n.utils.renderWatch(s),d=function(n){return function(){return{active:n.map(function(n){return!n.disabled})}}},g=function(n){return function(t){t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};h.contentGenerator(function(n){var t='<table><thead><tr><td class="legend-color-guide"><div style="background-color:'+n.color+'"><\/div><\/td><td><strong>'+n.key+"<\/strong><\/td><\/tr><\/thead>";return n.series.length!==0&&(t=t+'<tbody><tr><td height ="10px"><\/td><\/tr>',n.series.forEach(function(n){t=t+'<tr><td class="legend-color-guide"><div style="background-color:'+n.color+'"><\/div><\/td><td class="key">'+n.key+'<\/td><td class="value">'+n.value+"<\/td><\/tr>"}),t=t+"<\/tbody>"),t=t+"<\/table>"});u.dispatch.on("elementMouseover.tooltip",function(n){var t={key:n.label,color:n.color,series:[]};n.values&&(Object.keys(n.values).forEach(function(i){var r=n.dimensions.filter(function(n){return n.key===i})[0],u;r&&(u=isNaN(n.values[i])||isNaN(parseFloat(n.values[i]))?p:r.format(n.values[i]),t.series.push({idx:r.currentPosition,key:i,value:u,color:r.color}))}),t.series.sort(function(n,t){return n.idx-t.idx}));h.data(t).hidden(!1)});u.dispatch.on("elementMouseout.tooltip",function(){h.hidden(!0)});u.dispatch.on("elementMousemove.tooltip",function(){h()});return t.dispatch=s,t.parallelCoordinates=u,t.legend=e,t.tooltip=h,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return v},set:function(n){v=n}},height:{get:function(){return l},set:function(n){l=n}},showLegend:{get:function(){return y},set:function(n){y=n}},defaultState:{get:function(){return o},set:function(n){o=n}},dimensionData:{get:function(){return r},set:function(n){r=n}},displayBrush:{get:function(){return c},set:function(n){c=n}},noData:{get:function(){return k},set:function(n){k=n}},nanValue:{get:function(){return p},set:function(n){p=n}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,b=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}},color:{get:function(){return a},set:function(t){a=n.utils.getColor(t);e.color(a);u.color(a)}}}),n.utils.inheritOptions(t,u),n.utils.initOptions(t),t};n.models.pie=function(){"use strict";function h(ct){return ut.reset(),ct.each(function(h){function pi(n,t){n.endAngle=isNaN(n.endAngle)?0:n.endAngle;n.startAngle=isNaN(n.startAngle)?0:n.startAngle;f||(n.innerRadius=0);var i=d3.interpolate(this._current,n);return this._current=i(0),function(n){return s[t](i(n))}}var ti=ft-t.left-t.right,ii=et-t.top-t.bottom,lt=Math.min(ti,ii)/2,vt=[],dt=[],ui,fi,pt,bt,gt,kt,ni,yt,yi,at,ct;if(g=d3.select(this),i.length===0)for(ui=lt-lt/10,fi=a*lt,ct=0;ct<h[0].length;ct++)vt.push(ui),dt.push(fi);else w?(vt=i.map(function(n){return(n.outer-n.outer/10)*lt}),dt=i.map(function(n){return(n.inner-n.inner/10)*lt}),a=d3.min(i.map(function(n){return n.inner-n.inner/10}))):(vt=i.map(function(n){return n.outer*lt}),dt=i.map(function(n){return n.inner*lt}),a=d3.min(i.map(function(n){return n.inner})));n.utils.initSVG(g);var wt=g.selectAll(".nv-wrap.nv-pie").data(h),ai=wt.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+d),ei=ai.append("g"),oi=wt.select("g"),vi=ei.append("g").attr("class","nv-pie");ei.append("g").attr("class","nv-pieLabels");wt.attr("transform","translate("+t.left+","+t.top+")");oi.select(".nv-pie").attr("transform","translate("+ti/2+","+ii/2+")");oi.select(".nv-pieLabels").attr("transform","translate("+ti/2+","+ii/2+")");g.on("click",function(n,t){r.chartClick({data:n,index:t,pos:d3.event,id:d})});for(s=[],ht=[],ct=0;ct<h[0].length;ct++)pt=d3.svg.arc().outerRadius(vt[ct]),bt=d3.svg.arc().outerRadius(vt[ct]+5),e!==!1&&(pt.startAngle(e),bt.startAngle(e)),o!==!1&&(pt.endAngle(o),bt.endAngle(o)),f&&(pt.innerRadius(dt[ct]),bt.innerRadius(dt[ct])),pt.cornerRadius&&b&&(pt.cornerRadius(b),bt.cornerRadius(b)),s.push(pt),ht.push(bt);gt=d3.layout.pie().sort(null).value(function(n){return n.disabled?0:v(n)});gt.padAngle&&it&&gt.padAngle(it);f&&p&&(vi.append("text").attr("class","nv-pie-title"),wt.select(".nv-pie-title").style("text-anchor","middle").text(function(){return p}).style("font-size",Math.min(ti,ii)*a*2/(p.length+2)+"px").attr("dy","0.35em").attr("transform",function(){return"translate(0, "+st+")"}));kt=wt.select(".nv-pie").selectAll(".nv-slice").data(gt);ni=wt.select(".nv-pieLabels").selectAll(".nv-label").data(gt);kt.exit().remove();ni.exit().remove();yt=kt.enter().append("g");yt.attr("class","nv-slice");yt.on("mouseover",function(n,t){d3.select(this).classed("hover",!0);w&&d3.select(this).select("path").transition().duration(70).attr("d",ht[t]);r.elementMouseover({data:n.data,index:t,color:d3.select(this).style("fill"),percent:(n.endAngle-n.startAngle)/(2*Math.PI)})});yt.on("mouseout",function(n,t){d3.select(this).classed("hover",!1);w&&d3.select(this).select("path").transition().duration(50).attr("d",s[t]);r.elementMouseout({data:n.data,index:t})});yt.on("mousemove",function(n,t){r.elementMousemove({data:n.data,index:t})});yt.on("click",function(n,t){var i=this;r.elementClick({data:n.data,index:t,color:d3.select(this).style("fill"),event:d3.event,element:i})});yt.on("dblclick",function(n,t){r.elementDblClick({data:n.data,index:t,color:d3.select(this).style("fill")})});if(kt.attr("fill",function(n,t){return nt(n.data,t)}),kt.attr("stroke",function(n,t){return nt(n.data,t)}),yi=yt.append("path").each(function(n){this._current=n}),kt.select("path").transition().duration(rt).attr("d",function(n,t){return s[t](n)}).attrTween("d",pi),ot){for(at=[],ct=0;ct<h[0].length;ct++)at.push(s[ct]),u?f&&(at[ct]=d3.svg.arc().outerRadius(s[ct].outerRadius()),e!==!1&&at[ct].startAngle(e),o!==!1&&at[ct].endAngle(o)):f||at[ct].innerRadius(0);ni.enter().append("g").classed("nv-label",!0).each(function(n){var t=d3.select(this);t.attr("transform",function(n,t){if(l){n.outerRadius=vt[t]+10;n.innerRadius=vt[t]+15;var i=(n.startAngle+n.endAngle)/2*(180/Math.PI);return(n.startAngle+n.endAngle)/2<Math.PI?i-=90:i+=90,"translate("+at[t].centroid(n)+") rotate("+i+")"}return n.outerRadius=lt+10,n.innerRadius=lt+15,"translate("+at[t].centroid(n)+")"});t.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3);t.append("text").style("text-anchor",l?(n.startAngle+n.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var si={},ri=14,hi=140,ci=function(n){return Math.floor(n[0]/hi)*hi+","+Math.floor(n[1]/ri)*ri},li=function(n){return(n.endAngle-n.startAngle)/(2*Math.PI)};ni.watchTransition(ut,"pie labels").attr("transform",function(n,t){var r,i,u,f;return l?(n.outerRadius=vt[t]+10,n.innerRadius=vt[t]+15,r=(n.startAngle+n.endAngle)/2*(180/Math.PI),(n.startAngle+n.endAngle)/2<Math.PI?r-=90:r+=90,"translate("+at[t].centroid(n)+") rotate("+r+")"):(n.outerRadius=lt+10,n.innerRadius=lt+15,i=at[t].centroid(n),u=li(n),n.value&&u>=tt&&(f=ci(i),si[f]&&(i[1]-=ri),si[ci(i)]=!0),"translate("+i+")")});ni.select(".nv-label text").style("text-anchor",function(n){return l?(n.startAngle+n.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(n,t){var r=li(n),i="";if(!n.value||r<tt)return"";if(typeof y=="function")i=y(n,t,{key:k(n.data),value:v(n.data),percent:c(r)});else switch(y){case"key":i=k(n.data);break;case"value":i=c(v(n.data));break;case"percent":i=d3.format("%")(r)}return i})}}),ut.renderEnd("pie immediate"),h}var t={top:0,right:0,bottom:0,left:0},ft=500,et=500,k=function(n){return n.x},v=function(n){return n.y},d=Math.floor(Math.random()*1e4),g=null,nt=n.utils.defaultColor(),c=d3.format(",.2f"),ot=!0,u=!1,y="key",tt=.02,f=!1,p=!1,w=!0,st=0,l=!1,e=!1,it=!1,o=!1,b=0,a=.5,rt=250,i=[],r=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),s=[],ht=[],ut=n.utils.renderWatch(r);return h.dispatch=r,h.options=n.utils.optionsFunc.bind(h),h._options=Object.create({},{arcsRadius:{get:function(){return i},set:function(n){i=n}},width:{get:function(){return ft},set:function(n){ft=n}},height:{get:function(){return et},set:function(n){et=n}},showLabels:{get:function(){return ot},set:function(n){ot=n}},title:{get:function(){return p},set:function(n){p=n}},titleOffset:{get:function(){return st},set:function(n){st=n}},labelThreshold:{get:function(){return tt},set:function(n){tt=n}},valueFormat:{get:function(){return c},set:function(n){c=n}},x:{get:function(){return k},set:function(n){k=n}},id:{get:function(){return d},set:function(n){d=n}},endAngle:{get:function(){return o},set:function(n){o=n}},startAngle:{get:function(){return e},set:function(n){e=n}},padAngle:{get:function(){return it},set:function(n){it=n}},cornerRadius:{get:function(){return b},set:function(n){b=n}},donutRatio:{get:function(){return a},set:function(n){a=n}},labelsOutside:{get:function(){return u},set:function(n){u=n}},labelSunbeamLayout:{get:function(){return l},set:function(n){l=n}},donut:{get:function(){return f},set:function(n){f=n}},growOnHover:{get:function(){return w},set:function(n){w=n}},pieLabelsOutside:{get:function(){return u},set:function(t){u=t;n.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return u},set:function(t){u=t;n.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return c},set:function(t){c=t;n.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return t},set:function(n){t.top=typeof n.top!="undefined"?n.top:t.top;t.right=typeof n.right!="undefined"?n.right:t.right;t.bottom=typeof n.bottom!="undefined"?n.bottom:t.bottom;t.left=typeof n.left!="undefined"?n.left:t.left}},duration:{get:function(){return rt},set:function(n){rt=n;ut.reset(rt)}},y:{get:function(){return v},set:function(n){v=d3.functor(n)}},color:{get:function(){return nt},set:function(t){nt=n.utils.getColor(t)}},labelType:{get:function(){return y},set:function(n){y=n||"key"}}}),n.utils.initOptions(h),h};n.models.pieChart=function(){"use strict";function t(o){return v.reset(),v.models(r),o.each(function(o){var c=d3.select(this),k,nt,rt;n.utils.initSVG(c);var ut=this,v=n.utils.availableWidth(y,c,i),p=n.utils.availableHeight(s,c,i);if(t.update=function(){c.transition().call(t)},t.container=this,f.setter(g(o),t.update).getter(d(o)).update(),f.disabled=o.map(function(n){return!!n.disabled}),!e){e={};for(k in f)e[k]=f[k]instanceof Array?f[k].slice(0):f[k]}if(o&&o.length)c.selectAll(".nv-noData").remove();else return n.utils.noData(t,c),t;var l=c.selectAll("g.nv-wrap.nv-pieChart").data([o]),tt=l.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),it=l.select("g");tt.append("g").attr("class","nv-pieWrap");tt.append("g").attr("class","nv-legendWrap");w?h==="top"?(u.width(v).key(r.x()),l.select(".nv-legendWrap").datum(o).call(u),b||u.height()===i.top||(i.top=u.height(),p=n.utils.availableHeight(s,c,i)),l.select(".nv-legendWrap").attr("transform","translate(0,"+-i.top+")")):h==="right"?(nt=n.models.legend().width(),v/2<nt&&(nt=v/2),u.height(p).key(r.x()),u.width(nt),v-=u.width(),l.select(".nv-legendWrap").datum(o).call(u).attr("transform","translate("+v+",0)")):h==="bottom"&&(u.width(v).key(r.x()),l.select(".nv-legendWrap").datum(o).call(u),i.bottom=u.height(),p=n.utils.availableHeight(s,c,i),l.select(".nv-legendWrap").attr("transform","translate(0,"+p+")")):it.select(".nv-legendWrap").selectAll("*").remove();l.attr("transform","translate("+i.left+","+i.top+")");r.width(v).height(p);rt=it.select(".nv-pieWrap").datum([o]);d3.transition(rt).call(r);u.dispatch.on("stateChange",function(n){for(var i in n)f[i]=n[i];a.stateChange(f);t.update()});a.on("changeState",function(n){typeof n.disabled!="undefined"&&(o.forEach(function(t,i){t.disabled=n.disabled[i]}),f.disabled=n.disabled);t.update()})}),v.renderEnd("pieChart immediate"),t}var r=n.models.pie(),u=n.models.legend(),o=n.models.tooltip(),i={top:30,right:20,bottom:20,left:20},b=null,y=null,s=null,p=!1,w=!0,h="top",c=n.utils.defaultColor(),f=n.utils.state(),e=null,k=null,l=250,a=d3.dispatch("stateChange","changeState","renderEnd");o.duration(0).headerEnabled(!1).valueFormatter(function(n,t){return r.valueFormat()(n,t)});var v=n.utils.renderWatch(a),d=function(n){return function(){return{active:n.map(function(n){return!n.disabled})}}},g=function(n){return function(t){t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};r.dispatch.on("elementMouseover.tooltip",function(n){n.series={key:t.x()(n.data),value:t.y()(n.data),color:n.color,percent:n.percent};p||(delete n.percent,delete n.series.percent);o.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){o.hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){o()});return t.legend=u,t.dispatch=a,t.pie=r,t.tooltip=o,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return y},set:function(n){y=n}},height:{get:function(){return s},set:function(n){s=n}},noData:{get:function(){return k},set:function(n){k=n}},showTooltipPercent:{get:function(){return p},set:function(n){p=n}},showLegend:{get:function(){return w},set:function(n){w=n}},legendPosition:{get:function(){return h},set:function(n){h=n}},defaultState:{get:function(){return e},set:function(n){e=n}},color:{get:function(){return c},set:function(n){c=n;u.color(c);r.color(c)}},duration:{get:function(){return l},set:function(n){l=n;v.reset(l);r.duration(l)}},margin:{get:function(){return i},set:function(n){n.top!==undefined&&(i.top=n.top,b=n.top);i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left}}}),n.utils.inheritOptions(t,r),n.utils.initOptions(t),t};n.models.sankey=function(){"use strict";function y(){t.forEach(function(n){n.sourceLinks=[];n.targetLinks=[]});o.forEach(function(n){var i=n.source,r=n.target;typeof i=="number"&&(i=n.source=t[n.source]);typeof r=="number"&&(r=n.target=t[n.target]);i.sourceLinks.push(n);r.targetLinks.push(n)})}function p(){t.forEach(function(n){n.value=Math.max(d3.sum(n.sourceLinks,f),d3.sum(n.targetLinks,f))})}function w(){for(var r=t,i,n=0;r.length&&n<t.length;)i=[],r.forEach(function(t){t.x=n;t.dx=e;t.sourceLinks.forEach(function(n){i.indexOf(n.target)<0&&i.push(n.target)})}),r=i,++n;c&&b(n);k((u[0]-e)/(n-1))}function b(n){t.forEach(function(t){t.sourceLinks.length||(t.x=n-1)})}function k(n){t.forEach(function(t){t.x*=n})}function d(n){function l(){var n=d3.min(r,function(n){return(u[1]-(n.length-1)*i)/d3.sum(n,f)});r.forEach(function(t){t.forEach(function(t,i){t.y=i;t.dy=t.value*n})});o.forEach(function(t){t.dy=t.value*n})}function a(n){function t(n){return(n.source.y+n.sy+n.dy/2)*n.value}r.forEach(function(i){i.forEach(function(i){if(i.targetLinks.length){var r=d3.sum(i.targetLinks,t)/d3.sum(i.targetLinks,f);i.y+=(r-s(i))*n}})})}function v(n){function t(n){return(n.target.y+n.ty+n.dy/2)*n.value}r.slice().reverse().forEach(function(i){i.forEach(function(i){if(i.sourceLinks.length){var r=d3.sum(i.sourceLinks,t)/d3.sum(i.sourceLinks,f);i.y+=(r-s(i))*n}})})}function c(){r.forEach(function(n){var t,r,e=0,o=n.length,f;for(n.sort(y),f=0;f<o;++f)t=n[f],r=e-t.y,r>0&&(t.y+=r),e=t.y+t.dy+i;if(r=e-i-u[1],r>0)for(e=t.y-=r,f=o-2;f>=0;--f)t=n[f],r=t.y+t.dy+i-e,r>0&&(t.y-=r),e=t.y})}function y(n,t){return n.y-t.y}var r=d3.nest().key(function(n){return n.x}).sortKeys(d3.ascending).entries(t).map(function(n){return n.values}),e;for(l(),c(),h(),e=1;n>0;--n)v(e*=.99),c(),h(),a(e),c(),h()}function h(){function n(n,t){return n.source.y-t.source.y}function i(n,t){return n.target.y-t.target.y}t.forEach(function(t){t.sourceLinks.sort(i);t.targetLinks.sort(n)});t.forEach(function(n){var t=0,i=0;n.sourceLinks.forEach(function(n){n.sy=t;t+=n.dy});n.targetLinks.forEach(function(n){n.ty=i;i+=n.dy})})}function f(n){return n.value}var r={},e=24,i=8,u=[1,1],t=[],o=[],c=!0,a=function(n){y();p();w();d(n)},v=function(){h()},l=function(){function t(t){var i=t.source.x+t.source.dx,r=t.target.x,u=d3.interpolateNumber(i,r),o=u(n),s=u(1-n),f=t.source.y+t.sy+t.dy/2,e=t.target.y+t.ty+t.dy/2;return"M"+i+","+f+"C"+o+","+f+" "+s+","+e+" "+r+","+e}var n=.5;return t.curvature=function(i){return arguments.length?(n=+i,t):n},t},s=function(n){return n.y+n.dy/2};return r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{nodeWidth:{get:function(){return e},set:function(n){e=+n}},nodePadding:{get:function(){return i},set:function(n){i=n}},nodes:{get:function(){return t},set:function(n){t=n}},links:{get:function(){return o},set:function(n){o=n}},size:{get:function(){return u},set:function(n){u=n}},sinksRight:{get:function(){return c},set:function(n){c=n}},layout:{get:function(){a(32)},set:function(n){a(n)}},relayout:{get:function(){v()},set:function(){}},center:{get:function(){return s()},set:function(n){typeof n=="function"&&(s=n)}},link:{get:function(){return l()},set:function(n){return typeof n=="function"&&(l=n),l()}}}),n.utils.initOptions(r),r};n.models.sankeyChart=function(){"use strict";function r(n){return n.each(function(t){function g(n){d3.select(this).attr("transform","translate("+n.x+","+(n.y=Math.max(0,Math.min(f-n.dy,d3.event.y)))+")");i.relayout();h.attr("d",e)}var b={nodes:[{node:1,name:"Test 1"},{node:2,name:"Test 2"},{node:3,name:"Test 3"},{node:4,name:"Test 4"},{node:5,name:"Test 5"},{node:6,name:"Test 6"}],links:[{source:0,target:1,value:2295},{source:0,target:5,value:1199},{source:1,target:2,value:1119},{source:1,target:5,value:1176},{source:2,target:3,value:487},{source:2,target:5,value:632},{source:3,target:4,value:301},{source:3,target:5,value:186}]},k=!1,d=!1,r,e,h,w;if((typeof t.nodes=="object"&&t.nodes.length)>=0&&(typeof t.links=="object"&&t.links.length)>=0&&(k=!0),t.nodes&&t.nodes.length>0&&t.links&&t.links.length>0&&(d=!0),!k)return console.error("NVD3 Sankey chart error:","invalid data format for",t),console.info("Valid data format is: ",b,JSON.stringify(b)),p(n,"Error loading chart, data is invalid"),!1;if(!d)return p(n,"No data available"),!1;r=n.append("svg").attr("width",u).attr("height",f).append("g").attr("class","nvd3 nv-wrap nv-sankeyChart");i.nodeWidth(o).nodePadding(s).size([u,f]);e=i.link();i.nodes(t.nodes).links(t.links).layout(32).center(c);h=r.append("g").selectAll(".link").data(t.links).enter().append("path").attr("class","link").attr("d",e).style("stroke-width",function(n){return Math.max(1,n.dy)}).sort(function(n,t){return t.dy-n.dy});h.append("title").text(l);w=r.append("g").selectAll(".node").data(t.nodes).enter().append("g").attr("class","node").attr("transform",function(n){return"translate("+n.x+","+n.y+")"}).call(d3.behavior.drag().origin(function(n){return n}).on("dragstart",function(){this.parentNode.appendChild(this)}).on("drag",g));w.append("rect").attr("height",function(n){return n.dy}).attr("width",i.nodeWidth()).style("fill",a).style("stroke",v).append("title").text(y);w.append("text").attr("x",-6).attr("y",function(n){return n.dy/2}).attr("dy",".35em").attr("text-anchor","end").attr("transform",null).text(function(n){return n.name}).filter(function(n){return n.x<u/2}).attr("x",6+i.nodeWidth()).attr("text-anchor","start")}),r}var t={top:5,right:0,bottom:5,left:0},i=n.models.sankey(),u=600,f=400,o=36,s=40,h="units",c=undefined,w=d3.format(",.0f"),e=function(n){return w(n)+" "+h},b=d3.scale.category20(),l=function(n){return n.source.name+" → "+n.target.name+"\n"+e(n.value)},a=function(n){return n.color=b(n.name.replace(/ .*/,""))},v=function(n){return d3.rgb(n.color).darker(2)},y=function(n){return n.name+"\n"+e(n.value)},p=function(n,t){n.append("text").attr("x",0).attr("y",0).attr("class","nvd3-sankey-chart-error").attr("text-anchor","middle").text(t)};return r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{units:{get:function(){return h},set:function(n){h=n}},width:{get:function(){return u},set:function(n){u=n}},height:{get:function(){return f},set:function(n){f=n}},format:{get:function(){return e},set:function(n){e=n}},linkTitle:{get:function(){return l},set:function(n){l=n}},nodeWidth:{get:function(){return o},set:function(n){o=n}},nodePadding:{get:function(){return s},set:function(n){s=n}},center:{get:function(){return c},set:function(n){c=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},nodeStyle:{get:function(){return{}},set:function(n){a=n.fillColor!==undefined?n.fillColor:a;v=n.strokeColor!==undefined?n.strokeColor:v;y=n.title!==undefined?n.title:y}}}),n.utils.initOptions(r),r};n.models.scatter=function(){"use strict";function ci(n){var t;return t=n[0].series+":"+n[1],fi[t]=fi[t]||{}}function li(n){var t;t=n[0].series+":"+n[1];delete fi[t]}function si(n){for(var i,r,u=ci(n),f=!1,t=1;t<arguments.length;t+=2)i=arguments[t],r=arguments[t+1](n[0],n[1]),u[i]===r&&u.hasOwnProperty(i)||(u[i]=r,f=!0);return f}function s(at){return c.reset(),at.each(function(at){function rr(){var o,c,k,h,d,g,tt,s;if(w=!1,!b)return!1;if(lt===!0){if(o=d3.merge(at.map(function(r,e){return r.values.map(function(r,o){var s=u(r,o),h=f(r,o);return[n.utils.NaNtoZero(t(s))+Math.random()*.0001,n.utils.NaNtoZero(i(h))+Math.random()*.0001,e,o,r]}).filter(function(n,t){return nt(n[4],t)})})),o.length==0)return!1;o.length<3&&(o.push([t.range()[0]-20,i.range()[0]-20,null,null]),o.push([t.range()[1]+20,i.range()[1]+20,null,null]),o.push([t.range()[0]-20,i.range()[0]+20,null,null]),o.push([t.range()[1]+20,i.range()[1]-20,null,null]));c=d3.geom.polygon([[-10,-10],[-10,a+10],[l+10,a+10],[l+10,-10]]);k=d3.geom.voronoi(o).map(function(n,t){return{data:c.clip(n),series:o[t][2],point:o[t][3]}});fi.select(".nv-point-paths").selectAll("path").remove();h=fi.select(".nv-point-paths").selectAll("path").data(k);d=h.enter().append("svg:path").attr("d",function(n){return n&&n.data&&n.data.length!==0?"M"+n.data.join(",")+"Z":"M 0 0"}).attr("id",function(n,t){return"nv-path-"+t}).attr("clip-path",function(n,t){return"url(#nv-clip-"+v+"-"+t+")"});ti&&d.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200));et&&(fi.select(".nv-point-clips").selectAll("*").remove(),g=fi.select(".nv-point-clips").selectAll("clipPath").data(o),tt=g.enter().append("svg:clipPath").attr("id",function(n,t){return"nv-clip-"+v+"-"+t}).append("svg:circle").attr("cx",function(n){return n[0]}).attr("cy",function(n){return n[1]}).attr("r",ii));s=function(n,e,o){var h,s;if(w)return 0;if(h=at[e.series],h!==undefined){s=h.values[e.point];s.color=p(h,e.series);s.x=u(s);s.y=f(s);var c=y.node().getBoundingClientRect(),l=window.pageYOffset||document.documentElement.scrollTop,a=window.pageXOffset||document.documentElement.scrollLeft,v={left:t(u(s,e.point))+c.left+a+r.left+10,top:i(f(s,e.point))+c.top+l+r.top+10};o({point:s,series:h,pos:v,relativePos:[t(u(s,e.point))+r.left,i(f(s,e.point))+r.top],seriesIndex:e.series,pointIndex:e.point,event:d3.event,element:n})}};h.on("click",function(n){s(this,n,e.elementClick)}).on("dblclick",function(n){s(this,n,e.elementDblClick)}).on("mouseover",function(n){s(this,n,e.elementMouseover)}).on("mouseout",function(n){s(this,n,e.elementMouseout)})}else fi.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(n,o){if(w||!at[n.series])return 0;var h=at[n.series],s=h.values[o],c=this;e.elementClick({point:s,series:h,pos:[t(u(s,o))+r.left,i(f(s,o))+r.top],relativePos:[t(u(s,o))+r.left,i(f(s,o))+r.top],seriesIndex:n.series,pointIndex:o,event:d3.event,element:c})}).on("dblclick",function(n,o){if(w||!at[n.series])return 0;var h=at[n.series],s=h.values[o];e.elementDblClick({point:s,series:h,pos:[t(u(s,o))+r.left,i(f(s,o))+r.top],relativePos:[t(u(s,o))+r.left,i(f(s,o))+r.top],seriesIndex:n.series,pointIndex:o})}).on("mouseover",function(n,o){if(w||!at[n.series])return 0;var h=at[n.series],s=h.values[o];e.elementMouseover({point:s,series:h,pos:[t(u(s,o))+r.left,i(f(s,o))+r.top],relativePos:[t(u(s,o))+r.left,i(f(s,o))+r.top],seriesIndex:n.series,pointIndex:o,color:p(n,o)})}).on("mouseout",function(n,o){if(w||!at[n.series])return 0;var h=at[n.series],s=h.values[o];e.elementMouseout({point:s,series:h,pos:[t(u(s,o))+r.left,i(f(s,o))+r.top],relativePos:[t(u(s,o))+r.left,i(f(s,o))+r.top],seriesIndex:n.series,pointIndex:o,color:p(n,o)})})}var ai,yi,nr,vi,tr,ki,di,bi,ci,pi,wi;y=d3.select(this);ai=n.utils.availableWidth(l,y,r);yi=n.utils.availableHeight(a,y,r);n.utils.initSVG(y);at.forEach(function(n,t){n.values.forEach(function(n){n.series=t})});nr=s.yScale().name===d3.scale.log().name?!0:!1;vi=ot&&tt&&ct?[]:d3.merge(at.map(function(n){return n.values.map(function(n,t){return{x:u(n,t),y:f(n,t),size:h(n,t)}})}));t.domain(ot||d3.extent(vi.map(function(n){return n.x}).concat(kt)));gt&&at[0]?t.range(st||[(ai*ft+ai)/(2*at[0].values.length),ai-ai*(1+ft)/(2*at[0].values.length)]):t.range(st||[0,ai]);nr?(tr=d3.min(vi.map(function(n){if(n.y!==0)return n.y})),i.clamp(!0).domain(tt||d3.extent(vi.map(function(n){return n.y!==0?n.y:tr*.1}).concat(ut))).range(ht||[yi,0])):i.domain(tt||d3.extent(vi.map(function(n){return n.y}).concat(ut))).range(ht||[yi,0]);o.domain(ct||d3.extent(vi.map(function(n){return n.size}).concat(dt))).range(ri||hi);ei=t.domain()[0]===t.domain()[1]||i.domain()[0]===i.domain()[1];t.domain()[0]===t.domain()[1]&&(t.domain()[0]?t.domain([t.domain()[0]-t.domain()[0]*.01,t.domain()[1]+t.domain()[1]*.01]):t.domain([-1,1]));i.domain()[0]===i.domain()[1]&&(i.domain()[0]?i.domain([i.domain()[0]-i.domain()[0]*.01,i.domain()[1]+i.domain()[1]*.01]):i.domain([-1,1]));isNaN(t.domain()[0])&&t.domain([-1,1]);isNaN(i.domain()[0])&&i.domain([-1,1]);k=k||t;d=d||i;yt=yt||o;ki=t(1)!==k(1)||i(1)!==d(1)||o(1)!==yt(1);pt=pt||l;wt=wt||a;di=pt!==l||wt!==a;it=it||[];bi=it[0]!==t.domain()[0]||it[1]!==t.domain()[1];it=t.domain();rt=rt||[];bi=bi||rt[0]!==i.domain()[0]||rt[1]!==i.domain()[1];rt=i.domain();var fi=y.selectAll("g.nv-wrap.nv-scatter").data([at]),gi=fi.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+v),ur=gi.append("defs"),ir=gi.append("g"),fr=fi.select("g");fi.classed("nv-single-point",ei);ir.append("g").attr("class","nv-groups");ir.append("g").attr("class","nv-point-paths");gi.append("g").attr("class","nv-point-clips");fi.attr("transform","translate("+r.left+","+r.top+")");ur.append("clipPath").attr("id","nv-edge-clip-"+v).append("rect").attr("transform","translate( -10, -10)");fi.select("#nv-edge-clip-"+v+" rect").attr("width",ai+20).attr("height",yi>0?yi+20:0);fr.attr("clip-path",ni?"url(#nv-edge-clip-"+v+")":"");w=!0;ci=fi.select(".nv-groups").selectAll(".nv-group").data(function(n){return n},function(n){return n.key});ci.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);ci.exit().remove();ci.attr("class",function(n,t){return(n.classed||"")+" nv-group nv-series-"+t}).classed("nv-noninteractive",!b).classed("hover",function(n){return n.hover});ci.watchTransition(c,"scatter: groups").style("fill",function(n,t){return p(n,t)}).style("stroke",function(n,t){return n.pointBorderColor||bt||p(n,t)}).style("stroke-opacity",1).style("fill-opacity",.5);pi=ci.selectAll("path.nv-point").data(function(n){return n.values.map(function(n,t){return[n,t]}).filter(function(n,t){return nt(n[0],t)})});pi.enter().append("path").attr("class",function(n){return"nv-point nv-point-"+n[1]}).style("fill",function(n){return n.color}).style("stroke",function(n){return n.color}).attr("transform",function(t){return"translate("+n.utils.NaNtoZero(k(u(t[0],t[1])))+","+n.utils.NaNtoZero(d(f(t[0],t[1])))+")"}).attr("d",n.utils.symbol().type(function(n){return g(n[0])}).size(function(n){return o(h(n[0],n[1]))}));pi.exit().each(li).remove();ci.exit().selectAll("path.nv-point").watchTransition(c,"scatter exit").attr("transform",function(r){return"translate("+n.utils.NaNtoZero(t(u(r[0],r[1])))+","+n.utils.NaNtoZero(i(f(r[0],r[1])))+")"}).remove();pi.filter(function(n){return ki||di||bi||si(n,"x",u,"y",f)}).watchTransition(c,"scatter points").attr("transform",function(r){return"translate("+n.utils.NaNtoZero(t(u(r[0],r[1])))+","+n.utils.NaNtoZero(i(f(r[0],r[1])))+")"});pi.filter(function(n){return ki||di||si(n,"shape",g,"size",h)}).watchTransition(c,"scatter points").attr("d",n.utils.symbol().type(function(n){return g(n[0])}).size(function(n){return o(h(n[0],n[1]))}));ui&&(wi=ci.selectAll(".nv-label").data(function(n){return n.values.map(function(n,t){return[n,t]}).filter(function(n,t){return nt(n[0],t)})}),wi.enter().append("text").style("fill",function(n){return n.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(t){var i=n.utils.NaNtoZero(k(u(t[0],t[1])))+Math.sqrt(o(h(t[0],t[1]))/Math.PI)+2;return"translate("+i+","+n.utils.NaNtoZero(d(f(t[0],t[1])))+")"}).text(function(n){return n[0].label}),wi.exit().remove(),ci.exit().selectAll("path.nv-label").watchTransition(c,"scatter exit").attr("transform",function(r){var e=n.utils.NaNtoZero(t(u(r[0],r[1])))+Math.sqrt(o(h(r[0],r[1]))/Math.PI)+2;return"translate("+e+","+n.utils.NaNtoZero(i(f(r[0],r[1])))+")"}).remove(),wi.each(function(n){d3.select(this).classed("nv-label",!0).classed("nv-label-"+n[1],!1).classed("hover",!1)}),wi.watchTransition(c,"scatter labels").attr("transform",function(r){var e=n.utils.NaNtoZero(t(u(r[0],r[1])))+Math.sqrt(o(h(r[0],r[1]))/Math.PI)+2;return"translate("+e+","+n.utils.NaNtoZero(i(f(r[0],r[1])))+")"}));vt?(clearTimeout(oi),oi=setTimeout(rr,vt)):rr();k=t.copy();d=i.copy();yt=o.copy();pt=l;wt=a}),c.renderEnd("scatter immediate"),s}var r={top:0,right:0,bottom:0,left:0},l=null,a=null,p=n.utils.defaultColor(),bt=null,v=Math.floor(Math.random()*1e5),y=null,t=d3.scale.linear(),i=d3.scale.linear(),o=d3.scale.linear(),u=function(n){return n.x},f=function(n){return n.y},h=function(n){return n.size||1},g=function(n){return n.shape||"circle"},kt=[],ut=[],dt=[],b=!0,nt=function(n){return!n.notActive},gt=!1,ft=.1,ni=!1,et=!0,ti=!1,ii=function(){return 25},ot=null,tt=null,st=null,ht=null,ct=null,ri=null,ei=!1,e=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),lt=!0,at=250,vt=300,ui=!1,k,d,yt,it,rt,pt,wt,oi,w=!1,c=n.utils.renderWatch(e,at),hi=[16,256],fi={};s.dispatch=e;s.options=n.utils.optionsFunc.bind(s);s._calls=new function(){this.clearHighlights=function(){return n.dom.write(function(){y.selectAll(".nv-point.hover").classed("hover",!1)}),null};this.highlightPoint=function(t,i,r){n.dom.write(function(){y.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+i).classed("hover",r)})}};e.on("elementMouseover.point",function(n){b&&s._calls.highlightPoint(n.seriesIndex,n.pointIndex,!0)});e.on("elementMouseout.point",function(n){b&&s._calls.highlightPoint(n.seriesIndex,n.pointIndex,!1)});return s._options=Object.create({},{width:{get:function(){return l},set:function(n){l=n}},height:{get:function(){return a},set:function(n){a=n}},xScale:{get:function(){return t},set:function(n){t=n}},yScale:{get:function(){return i},set:function(n){i=n}},pointScale:{get:function(){return o},set:function(n){o=n}},xDomain:{get:function(){return ot},set:function(n){ot=n}},yDomain:{get:function(){return tt},set:function(n){tt=n}},pointDomain:{get:function(){return ct},set:function(n){ct=n}},xRange:{get:function(){return st},set:function(n){st=n}},yRange:{get:function(){return ht},set:function(n){ht=n}},pointRange:{get:function(){return ri},set:function(n){ri=n}},forceX:{get:function(){return kt},set:function(n){kt=n}},forceY:{get:function(){return ut},set:function(n){ut=n}},forcePoint:{get:function(){return dt},set:function(n){dt=n}},interactive:{get:function(){return b},set:function(n){b=n}},pointActive:{get:function(){return nt},set:function(n){nt=n}},padDataOuter:{get:function(){return ft},set:function(n){ft=n}},padData:{get:function(){return gt},set:function(n){gt=n}},clipEdge:{get:function(){return ni},set:function(n){ni=n}},clipVoronoi:{get:function(){return et},set:function(n){et=n}},clipRadius:{get:function(){return ii},set:function(n){ii=n}},showVoronoi:{get:function(){return ti},set:function(n){ti=n}},id:{get:function(){return v},set:function(n){v=n}},interactiveUpdateDelay:{get:function(){return vt},set:function(n){vt=n}},showLabels:{get:function(){return ui},set:function(n){ui=n}},pointBorderColor:{get:function(){return bt},set:function(n){bt=n}},x:{get:function(){return u},set:function(n){u=d3.functor(n)}},y:{get:function(){return f},set:function(n){f=d3.functor(n)}},pointSize:{get:function(){return h},set:function(n){h=d3.functor(n)}},pointShape:{get:function(){return g},set:function(n){g=d3.functor(n)}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},duration:{get:function(){return at},set:function(n){at=n;c.reset(at)}},color:{get:function(){return p},set:function(t){p=n.utils.getColor(t)}},useVoronoi:{get:function(){return lt},set:function(n){lt=n;lt===!1&&(et=!1)}}}),n.utils.initOptions(s),s};n.models.scatterChart=function(){"use strict";function t(st){return h.reset(),h.models(i),tt&&h.models(y),it&&h.models(l),g&&h.models(v),nt&&h.models(c),st.each(function(st){var ii=this,yt,wt,kt,ni,dt,gt;if(u=d3.select(this),n.utils.initSVG(u),yt=n.utils.availableWidth(ut,u,r),wt=n.utils.availableHeight(d,u,r),t.update=function(){b===0?u.call(t):u.transition().duration(b).call(t)},t.container=this,s.setter(at(st),t.update).getter(lt(st)).update(),s.disabled=st.map(function(n){return!!n.disabled}),!p){p={};for(kt in s)p[kt]=s[kt]instanceof Array?s[kt].slice(0):s[kt]}if(st&&st.length&&st.filter(function(n){return n.values.length}).length)u.selectAll(".nv-noData").remove();else return n.utils.noData(t,u),h.renderEnd("scatter immediate"),t;e=i.xScale();o=i.yScale();var pt=u.selectAll("g.nv-wrap.nv-scatterChart").data([st]),ti=pt.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+i.id()),vt=ti.append("g"),bt=pt.select("g");vt.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");vt.append("g").attr("class","nv-x nv-axis");vt.append("g").attr("class","nv-y nv-axis");vt.append("g").attr("class","nv-scatterWrap");vt.append("g").attr("class","nv-regressionLinesWrap");vt.append("g").attr("class","nv-distWrap");vt.append("g").attr("class","nv-legendWrap");w&&bt.select(".nv-y.nv-axis").attr("transform","translate("+yt+",0)");ft?(ni=yt,a.width(ni),pt.select(".nv-legendWrap").datum(st).call(a),ot||a.height()===r.top||(r.top=a.height(),wt=n.utils.availableHeight(d,u,r)),pt.select(".nv-legendWrap").attr("transform","translate(0,"+-r.top+")")):bt.select(".nv-legendWrap").selectAll("*").remove();pt.attr("transform","translate("+r.left+","+r.top+")");i.width(yt).height(wt).color(st.map(function(n,t){return n.color=n.color||f(n,t),n.color}).filter(function(n,t){return!st[t].disabled})).showLabels(et);pt.select(".nv-scatterWrap").datum(st.filter(function(n){return!n.disabled})).call(i);pt.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+i.id()+")");dt=pt.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(n){return n});dt.enter().append("g").attr("class","nv-regLines");gt=dt.selectAll(".nv-regLine").data(function(n){return[n]});gt.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0);gt.filter(function(n){return n.intercept&&n.slope}).watchTransition(h,"scatterPlusLineChart: regline").attr("x1",e.range()[0]).attr("x2",e.range()[1]).attr("y1",function(n){return o(e.domain()[0]*n.slope+n.intercept)}).attr("y2",function(n){return o(e.domain()[1]*n.slope+n.intercept)}).style("stroke",function(n,t,i){return f(n,i)}).style("stroke-opacity",function(n){return n.disabled||typeof n.slope=="undefined"||typeof n.intercept=="undefined"?0:1});tt&&(y.scale(e)._ticks(n.utils.calcTicksX(yt/100,st)).tickSize(-wt,0),bt.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")").call(y));it&&(l.scale(o)._ticks(n.utils.calcTicksY(wt/36,st)).tickSize(-yt,0),bt.select(".nv-y.nv-axis").call(l));g&&(v.getData(i.x()).scale(e).width(yt).color(st.map(function(n,t){return n.color||f(n,t)}).filter(function(n,t){return!st[t].disabled})),vt.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),bt.select(".nv-distributionX").attr("transform","translate(0,"+o.range()[0]+")").datum(st.filter(function(n){return!n.disabled})).call(v));nt&&(c.getData(i.y()).scale(o).width(wt).color(st.map(function(n,t){return n.color||f(n,t)}).filter(function(n,t){return!st[t].disabled})),vt.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),bt.select(".nv-distributionY").attr("transform","translate("+(w?yt:-c.size())+",0)").datum(st.filter(function(n){return!n.disabled})).call(c));a.dispatch.on("stateChange",function(n){for(var i in n)s[i]=n[i];rt.stateChange(s);t.update()});rt.on("changeState",function(n){typeof n.disabled!="undefined"&&(st.forEach(function(t,i){t.disabled=n.disabled[i]}),s.disabled=n.disabled);t.update()});i.dispatch.on("elementMouseout.tooltip",function(n){k.hidden(!0);u.select(".nv-chart-"+i.id()+" .nv-series-"+n.seriesIndex+" .nv-distx-"+n.pointIndex).attr("y1",0);u.select(".nv-chart-"+i.id()+" .nv-series-"+n.seriesIndex+" .nv-disty-"+n.pointIndex).attr("x2",c.size())});i.dispatch.on("elementMouseover.tooltip",function(n){u.select(".nv-series-"+n.seriesIndex+" .nv-distx-"+n.pointIndex).attr("y1",n.relativePos[1]-wt);u.select(".nv-series-"+n.seriesIndex+" .nv-disty-"+n.pointIndex).attr("x2",n.relativePos[0]+v.size());k.data(n).hidden(!1)});ht=e.copy();ct=o.copy()}),h.renderEnd("scatter with line immediate"),t}var i=n.models.scatter(),y=n.models.axis(),l=n.models.axis(),a=n.models.legend(),v=n.models.distribution(),c=n.models.distribution(),k=n.models.tooltip(),r={top:30,right:20,bottom:50,left:75},ot=null,ut=null,d=null,u=null,f=n.utils.defaultColor(),e=i.xScale(),o=i.yScale(),g=!1,nt=!1,ft=!0,tt=!0,it=!0,w=!1,s=n.utils.state(),p=null,rt=d3.dispatch("stateChange","changeState","renderEnd"),st=null,b=250,et=!1;i.xScale(e).yScale(o);y.orient("bottom").tickPadding(10);l.orient(w?"right":"left").tickPadding(10);v.axis("x");c.axis("y");k.headerFormatter(function(n,t){return y.tickFormat()(n,t)}).valueFormatter(function(n,t){return l.tickFormat()(n,t)});var ht,ct,h=n.utils.renderWatch(rt,b),lt=function(n){return function(){return{active:n.map(function(n){return!n.disabled})}}},at=function(n){return function(t){t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}};return t.dispatch=rt,t.scatter=i,t.legend=a,t.xAxis=y,t.yAxis=l,t.distX=v,t.distY=c,t.tooltip=k,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return ut},set:function(n){ut=n}},height:{get:function(){return d},set:function(n){d=n}},container:{get:function(){return u},set:function(n){u=n}},showDistX:{get:function(){return g},set:function(n){g=n}},showDistY:{get:function(){return nt},set:function(n){nt=n}},showLegend:{get:function(){return ft},set:function(n){ft=n}},showXAxis:{get:function(){return tt},set:function(n){tt=n}},showYAxis:{get:function(){return it},set:function(n){it=n}},defaultState:{get:function(){return p},set:function(n){p=n}},noData:{get:function(){return st},set:function(n){st=n}},duration:{get:function(){return b},set:function(n){b=n}},showLabels:{get:function(){return et},set:function(n){et=n}},margin:{get:function(){return r},set:function(n){n.top!==undefined&&(r.top=n.top,ot=n.top);r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},rightAlignYAxis:{get:function(){return w},set:function(n){w=n;l.orient(n?"right":"left")}},color:{get:function(){return f},set:function(t){f=n.utils.getColor(t);a.color(f);v.color(f);c.color(f)}}}),n.utils.inheritOptions(t,i),n.utils.initOptions(t),t};n.models.sparkline=function(){"use strict";function u(b){return d.reset(),b.each(function(u){var g=s-t.left-t.right,nt=h-t.top-t.bottom,k,d;c=d3.select(this);n.utils.initSVG(c);f.domain(a||d3.extent(u,e)).range(y||[0,g]);i.domain(v||d3.extent(u,r)).range(p||[nt,0]);var b=c.selectAll("g.nv-wrap.nv-sparkline").data([u]),tt=b.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline"),it=tt.append("g"),rt=b.select("g");b.attr("transform","translate("+t.left+","+t.top+")");k=b.selectAll("path").data(function(n){return[n]});k.enter().append("path");k.exit().remove();k.style("stroke",function(n,t){return n.color||l(n,t)}).attr("d",d3.svg.line().x(function(n,t){return f(e(n,t))}).y(function(n,t){return i(r(n,t))}));d=b.selectAll("circle.nv-point").data(function(n){function u(t){if(t!=-1){var i=n[t];return i.pointIndex=t,i}return null}var t=n.map(function(n,t){return r(n,t)}),f=u(t.lastIndexOf(i.domain()[1])),e=u(t.indexOf(i.domain()[0])),s=u(t.length-1);return[o?e:null,o?f:null,w?s:null].filter(function(n){return n!=null})});d.enter().append("circle");d.exit().remove();d.attr("cx",function(n){return f(e(n,n.pointIndex))}).attr("cy",function(n){return i(r(n,n.pointIndex))}).attr("r",2).attr("class",function(n){return e(n,n.pointIndex)==f.domain()[1]?"nv-point nv-currentValue":r(n,n.pointIndex)==i.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),d.renderEnd("sparkline immediate"),u}var t={top:2,right:0,bottom:2,left:0},s=400,h=32,c=null,b=!0,f=d3.scale.linear(),i=d3.scale.linear(),e=function(n){return n.x},r=function(n){return n.y},l=n.utils.getColor(["#000"]),a,v,y,p,o=!0,w=!0,k=d3.dispatch("renderEnd"),d=n.utils.renderWatch(k);return u.options=n.utils.optionsFunc.bind(u),u._options=Object.create({},{width:{get:function(){return s},set:function(n){s=n}},height:{get:function(){return h},set:function(n){h=n}},xDomain:{get:function(){return a},set:function(n){a=n}},yDomain:{get:function(){return v},set:function(n){v=n}},xRange:{get:function(){return y},set:function(n){y=n}},yRange:{get:function(){return p},set:function(n){p=n}},xScale:{get:function(){return f},set:function(n){f=n}},yScale:{get:function(){return i},set:function(n){i=n}},animate:{get:function(){return b},set:function(n){b=n}},showMinMaxPoints:{get:function(){return o},set:function(n){o=n}},showCurrentPoint:{get:function(){return w},set:function(n){w=n}},x:{get:function(){return e},set:function(n){e=d3.functor(n)}},y:{get:function(){return r},set:function(n){r=d3.functor(n)}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}},color:{get:function(){return l},set:function(t){l=n.utils.getColor(t)}}}),u.dispatch=k,n.utils.initOptions(u),u};n.models.sparklinePlus=function(){"use strict";function r(w){return y.reset(),y.models(i),w.each(function(y){function ft(){if(!e){var n=b.selectAll(".nv-hoverValue").data(u),r=n.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);(n.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),n.attr("transform",function(n){return"translate("+c(i.x()(y[n],n))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),u.length)&&(r.append("line").attr("x1",0).attr("y1",-t.top).attr("x2",0).attr("y2",d),r.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-t.top).attr("text-anchor","end").attr("dy",".9em"),b.select(".nv-hoverValue .nv-xValue").text(l(i.x()(y[u[0]],u[0]))),r.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-t.top).attr("text-anchor","start").attr("dy",".9em"),b.select(".nv-hoverValue .nv-yValue").text(o(i.y()(y[u[0]],u[0]))))}}function ot(){function r(n,t){for(var u=Math.abs(i.x()(n[0],0)-t),f=0,r=0;r<n.length;r++)Math.abs(i.x()(n[r],r)-t)<u&&(u=Math.abs(i.x()(n[r],r)-t),f=r);return f}if(!e){var n=d3.mouse(this)[0]-t.left;u=[r(y,Math.round(c.invert(n)))];ft()}}var w=d3.select(this),k,d,nt,rt,ut,it;if(n.utils.initSVG(w),k=n.utils.availableWidth(s,w,t),d=n.utils.availableHeight(h,w,t),r.update=function(){w.call(r)},r.container=this,y&&y.length)w.selectAll(".nv-noData").remove();else return n.utils.noData(r,w),r;nt=i.y()(y[y.length-1],y.length-1);c=i.xScale();p=i.yScale();var tt=w.selectAll("g.nv-wrap.nv-sparklineplus").data([y]),et=tt.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),g=et.append("g"),b=tt.select("g");g.append("g").attr("class","nv-sparklineWrap");g.append("g").attr("class","nv-valueWrap");g.append("g").attr("class","nv-hoverArea");tt.attr("transform","translate("+t.left+","+t.top+")");rt=b.select(".nv-sparklineWrap");i.width(k).height(d);rt.call(i);a&&(ut=b.select(".nv-valueWrap"),it=ut.selectAll(".nv-currentValue").data([nt]),it.enter().append("text").attr("class","nv-currentValue").attr("dx",f?-8:8).attr("dy",".9em").style("text-anchor",f?"end":"start"),it.attr("x",k+(f?t.right:0)).attr("y",v?function(n){return p(n)}:0).style("fill",i.color()(y[y.length-1],y.length-1)).text(o(nt)));g.select(".nv-hoverArea").append("rect").on("mousemove",ot).on("click",function(){e=!e}).on("mouseout",function(){u=[];ft()});b.select(".nv-hoverArea rect").attr("transform",function(){return"translate("+-t.left+","+-t.top+")"}).attr("width",k+t.left+t.right).attr("height",d+t.top)}),y.renderEnd("sparklinePlus immediate"),r}var i=n.models.sparkline(),t={top:15,right:100,bottom:10,left:50},s=null,h=null,c,p,u=[],e=!1,l=d3.format(",r"),o=d3.format(",.2f"),a=!0,v=!0,f=!1,w=null,b=d3.dispatch("renderEnd"),y=n.utils.renderWatch(b);return r.dispatch=b,r.sparkline=i,r.options=n.utils.optionsFunc.bind(r),r._options=Object.create({},{width:{get:function(){return s},set:function(n){s=n}},height:{get:function(){return h},set:function(n){h=n}},xTickFormat:{get:function(){return l},set:function(n){l=n}},yTickFormat:{get:function(){return o},set:function(n){o=n}},showLastValue:{get:function(){return a},set:function(n){a=n}},alignValue:{get:function(){return v},set:function(n){v=n}},rightAlignValue:{get:function(){return f},set:function(n){f=n}},noData:{get:function(){return w},set:function(n){w=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!==undefined?n.top:t.top;t.right=n.right!==undefined?n.right:t.right;t.bottom=n.bottom!==undefined?n.bottom:t.bottom;t.left=n.left!==undefined?n.left:t.left}}}),n.utils.inheritOptions(r,i),n.utils.initOptions(r),r};n.models.stackedArea=function(){"use strict";function t(u){return e.reset(),e.models(i),u.each(function(u){var ut=y-r.left-r.right,ft=p-r.top-r.bottom,rt,et,ht;w=d3.select(this);n.utils.initSVG(w);nt=i.xScale();a=i.yScale();rt=u;u.forEach(function(n,t){n.seriesIndex=t;n.values=n.values.map(function(n,i){return n.index=i,n.seriesIndex=t,n})});et=u.filter(function(n){return!n.disabled});u=d3.layout.stack().order(d).offset(k).values(function(n){return n.values}).x(o).y(s).out(function(n,t,i){n.display={y:i,y0:t}})(et);var tt=w.selectAll("g.nv-wrap.nv-stackedarea").data([u]),ot=tt.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),ct=ot.append("defs"),st=ot.append("g"),b=tt.select("g");st.append("g").attr("class","nv-areaWrap");st.append("g").attr("class","nv-scatterWrap");tt.attr("transform","translate("+r.left+","+r.top+")");i.forceY().length==0&&i.forceY().push(0);i.width(ut).height(ft).x(o).y(function(n){if(n.display!==undefined)return n.display.y+n.display.y0}).color(u.map(function(n){return n.color=n.color||h(n,n.seriesIndex),n.color}));ht=b.select(".nv-scatterWrap").datum(u);ht.call(i);ct.append("clipPath").attr("id","nv-edge-clip-"+c).append("rect");tt.select("#nv-edge-clip-"+c+" rect").attr("width",ut).attr("height",ft);b.attr("clip-path",g?"url(#nv-edge-clip-"+c+")":"");var lt=d3.svg.area().defined(v).x(function(n,t){return nt(o(n,t))}).y0(function(n){return a(n.display.y0)}).y1(function(n){return a(n.display.y+n.display.y0)}).interpolate(l),at=d3.svg.area().defined(v).x(function(n,t){return nt(o(n,t))}).y0(function(n){return a(n.display.y0)}).y1(function(n){return a(n.display.y0)}),it=b.select(".nv-areaWrap").selectAll("path.nv-area").data(function(n){return n});it.enter().append("path").attr("class",function(n,t){return"nv-area nv-area-"+t}).attr("d",function(n){return at(n.values,n.seriesIndex)}).on("mouseover",function(n){d3.select(this).classed("hover",!0);f.areaMouseover({point:n,series:n.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:n.seriesIndex})}).on("mouseout",function(n){d3.select(this).classed("hover",!1);f.areaMouseout({point:n,series:n.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:n.seriesIndex})}).on("click",function(n){d3.select(this).classed("hover",!1);f.areaClick({point:n,series:n.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:n.seriesIndex})});it.exit().remove();it.style("fill",function(n){return n.color||h(n,n.seriesIndex)}).style("stroke",function(n){return n.color||h(n,n.seriesIndex)});it.watchTransition(e,"stackedArea path").attr("d",function(n,t){return lt(n.values,t)});i.dispatch.on("elementMouseover.area",function(n){b.select(".nv-chart-"+c+" .nv-area-"+n.seriesIndex).classed("hover",!0)});i.dispatch.on("elementMouseout.area",function(n){b.select(".nv-chart-"+c+" .nv-area-"+n.seriesIndex).classed("hover",!1)});t.d3_stackedOffset_stackPercent=function(n){for(var u=n.length,f=n[0].length,t,r,e=[],i=0;i<f;++i){for(t=0,r=0;t<rt.length;t++)r+=s(rt[t].values[i]);if(r)for(t=0;t<u;t++)n[t][i][1]/=r;else for(t=0;t<u;t++)n[t][i][1]=0}for(i=0;i<f;++i)e[i]=0;return e}}),e.renderEnd("stackedArea immediate"),t}var r={top:0,right:0,bottom:0,left:0},y=960,p=500,h=n.utils.defaultColor(),c=Math.floor(Math.random()*1e5),w=null,o=function(n){return n.x},s=function(n){return n.y},v=function(n,t){return!isNaN(s(n,t))&&s(n,t)!==null},b="stack",k="zero",d="default",l="linear",g=!1,nt,a,i=n.models.scatter(),u=250,f=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout"),e;i.pointSize(2.2).pointDomain([2.2,2.2]);e=n.utils.renderWatch(f,u);t.dispatch=f;t.scatter=i;i.dispatch.on("elementClick",function(){f.elementClick.apply(this,arguments)});i.dispatch.on("elementMouseover",function(){f.elementMouseover.apply(this,arguments)});i.dispatch.on("elementMouseout",function(){f.elementMouseout.apply(this,arguments)});return t.interpolate=function(n){return arguments.length?(l=n,t):l},t.duration=function(n){return arguments.length?(u=n,e.reset(u),i.duration(u),t):u},t.dispatch=f,t.scatter=i,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{width:{get:function(){return y},set:function(n){y=n}},height:{get:function(){return p},set:function(n){p=n}},defined:{get:function(){return v},set:function(n){v=n}},clipEdge:{get:function(){return g},set:function(n){g=n}},offset:{get:function(){return k},set:function(n){k=n}},order:{get:function(){return d},set:function(n){d=n}},interpolate:{get:function(){return l},set:function(n){l=n}},x:{get:function(){return o},set:function(n){o=d3.functor(n)}},y:{get:function(){return s},set:function(n){s=d3.functor(n)}},margin:{get:function(){return r},set:function(n){r.top=n.top!==undefined?n.top:r.top;r.right=n.right!==undefined?n.right:r.right;r.bottom=n.bottom!==undefined?n.bottom:r.bottom;r.left=n.left!==undefined?n.left:r.left}},color:{get:function(){return h},set:function(t){h=n.utils.getColor(t)}},style:{get:function(){return b},set:function(n){b=n;switch(b){case"stack":t.offset("zero");t.order("default");break;case"stream":t.offset("wiggle");t.order("inside-out");break;case"stream-center":t.offset("silhouette");t.order("inside-out");break;case"expand":t.offset("expand");t.order("default");break;case"stack_percent":t.offset(t.d3_stackedOffset_stackPercent);t.order("default")}}},duration:{get:function(){return u},set:function(n){u=n;e.reset(u);i.duration(u)}}}),n.utils.inheritOptions(t,i),n.utils.initOptions(t),t};n.models.stackedAreaChart=function(){"use strict";function i(ut){return tt.reset(),tt.models(t),b&&tt.models(c),it&&tt.models(e),ut.each(function(tt){function yi(){b&&ut.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+wt+")").transition().duration(h).call(c)}function pi(){if(it){if(t.style()==="expand"||t.style()==="stack_percent"){var n=e.tickFormat();g&&n===kt||(g=n);e.tickFormat(kt)}else g&&(e.tickFormat(g),g=null);ut.select(".nv-focus .nv-y.nv-axis").transition().duration(0).call(e)}}function wi(n){var i=ut.select(".nv-focus .nv-stackedWrap").datum(tt.filter(function(n){return!n.disabled}).map(function(i){return{key:i.key,area:i.area,classed:i.classed,values:i.values.filter(function(i,r){return t.x()(i,r)>=n[0]&&t.x()(i,r)<=n[1]}),disableTooltip:i.disableTooltip}}));i.transition().duration(h).call(t);yi();pi()}var ni=d3.select(this),ki=this,ti,wt,ui,ii,bi,oi,si,li,ri,hi,ai,vi,ci;if(n.utils.initSVG(ni),ti=n.utils.availableWidth(ht,ni,u),wt=n.utils.availableHeight(p,ni,u)-(a?r.height():0),i.update=function(){ni.transition().duration(h).call(i)},i.container=this,f.setter(gt(tt),i.update).getter(dt(tt)).update(),f.disabled=tt.map(function(n){return!!n.disabled}),!k){k={};for(ui in f)k[ui]=f[ui]instanceof Array?f[ui].slice(0):f[ui]}if(tt&&tt.length&&tt.filter(function(n){return n.values.length}).length)ni.selectAll(".nv-noData").remove();else return n.utils.noData(i,ni),i;at=t.xScale();pt=t.yScale();var fi=ni.selectAll("g.nv-wrap.nv-stackedAreaChart").data([tt]),ei=fi.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),ut=fi.select("g");ei.append("g").attr("class","nv-legendWrap");ei.append("g").attr("class","nv-controlsWrap");ii=ei.append("g").attr("class","nv-focus");ii.append("g").attr("class","nv-background").append("rect");ii.append("g").attr("class","nv-x nv-axis");ii.append("g").attr("class","nv-y nv-axis");ii.append("g").attr("class","nv-stackedWrap");ii.append("g").attr("class","nv-interactive");bi=ei.append("g").attr("class","nv-focusWrap");et?(oi=ft&&w==="top"?ti-vt:ti,o.width(oi),ut.select(".nv-legendWrap").datum(tt).call(o),w==="bottom"?(si=(b?12:0)+10,u.bottom=Math.max(o.height()+si,u.bottom),wt=n.utils.availableHeight(p,ni,u)-(a?r.height():0),li=wt+si,ut.select(".nv-legendWrap").attr("transform","translate(0,"+li+")")):w==="top"&&(yt||u.top==o.height()||(u.top=o.height(),wt=n.utils.availableHeight(p,ni,u)-(a?r.height():0)),ut.select(".nv-legendWrap").attr("transform","translate("+(ti-oi)+","+-u.top+")"))):ut.select(".nv-legendWrap").selectAll("*").remove();ft?(ri=[{key:d.stacked||"Stacked",metaKey:"Stacked",disabled:t.style()!="stack",style:"stack"},{key:d.stream||"Stream",metaKey:"Stream",disabled:t.style()!="stream",style:"stream"},{key:d.expanded||"Expanded",metaKey:"Expanded",disabled:t.style()!="expand",style:"expand"},{key:d.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:t.style()!="stack_percent",style:"stack_percent"}],vt=st.length/3*260,ri=ri.filter(function(n){return st.indexOf(n.metaKey)!==-1}),y.width(vt).color(["#444","#444","#444"]),ut.select(".nv-controlsWrap").datum(ri).call(y),hi=Math.max(y.height(),et&&w==="top"?o.height():0),u.top!=hi&&(u.top=hi,wt=n.utils.availableHeight(p,ni,u)-(a?r.height():0)),ut.select(".nv-controlsWrap").attr("transform","translate(0,"+-u.top+")")):ut.select(".nv-controlsWrap").selectAll("*").remove();fi.attr("transform","translate("+u.left+","+u.top+")");rt&&ut.select(".nv-y.nv-axis").attr("transform","translate("+ti+",0)");ct&&(s.width(ti).height(wt).margin({left:u.left,top:u.top}).svgContainer(ni).xScale(at),fi.select(".nv-interactive").call(s));ut.select(".nv-focus .nv-background rect").attr("width",ti).attr("height",wt);t.width(ti).height(wt).color(tt.map(function(n,t){return n.color||l(n,t)}).filter(function(n,t){return!tt[t].disabled}));ai=ut.select(".nv-focus .nv-stackedWrap").datum(tt.filter(function(n){return!n.disabled}));b&&c.scale(at)._ticks(n.utils.calcTicksX(ti/100,tt)).tickSize(-wt,0);it&&(vi=t.offset()==="wiggle"?0:n.utils.calcTicksY(wt/36,tt),e.scale(pt)._ticks(vi).tickSize(-ti,0));a?(r.width(ti),ut.select(".nv-focusWrap").attr("transform","translate(0,"+(wt+u.bottom+r.margin().top)+")").datum(tt.filter(function(n){return!n.disabled})).call(r),ci=r.brush.empty()?r.xDomain():r.brush.extent(),ci!==null&&wi(ci)):(ai.transition().call(t),yi(),pi());t.dispatch.on("areaClick.toggle",function(n){tt.filter(function(n){return!n.disabled}).length===1?tt.forEach(function(n){n.disabled=!1}):tt.forEach(function(t,i){t.disabled=i!=n.seriesIndex});f.disabled=tt.map(function(n){return!!n.disabled});v.stateChange(f);i.update()});o.dispatch.on("stateChange",function(n){for(var t in n)f[t]=n[t];v.stateChange(f);i.update()});y.dispatch.on("legendClick",function(n){n.disabled&&(ri=ri.map(function(n){return n.disabled=!0,n}),n.disabled=!1,t.style(n.style),f.style=t.style(),v.stateChange(f),i.update())});s.dispatch.on("elementMousemove",function(r){var p,e;t.clearHighlights();var h,f,c,u=[],v=0,y=!0;if(tt.filter(function(n,t){return n.seriesIndex=t,!n.disabled}).forEach(function(e,o){var s,p,a;(f=n.interactiveBisect(e.values,r.pointXValue,i.x()),s=e.values[f],p=i.y()(s,f),p!=null&&t.highlightPoint(o,f,!0),typeof s!="undefined")&&(typeof h=="undefined"&&(h=s),typeof c=="undefined"&&(c=i.xScale()(i.x()(s,f))),a=t.style()=="expand"?s.display.y:i.y()(s,f),u.push({key:e.key,value:a,color:l(e,e.seriesIndex),point:s}),ot&&t.style()!="expand"&&a!=null&&(v+=a,y=!1))}),u.reverse(),u.length>2){var o=i.yScale().invert(r.mouseY),a=null;u.forEach(function(n,t){o=Math.abs(o);var i=Math.abs(n.point.display.y0),r=Math.abs(n.point.display.y);if(o>=i&&o<=r+i){a=t;return}});a!=null&&(u[a].highlight=!0)}ot&&t.style()!="expand"&&u.length>=2&&!y&&u.push({key:lt,value:v,total:!0});p=i.x()(h,f);e=s.tooltip.valueFormatter();t.style()==="expand"||t.style()==="stack_percent"?(nt||(nt=e),e=d3.format(".1%")):nt&&(e=nt,nt=null);s.tooltip.valueFormatter(e).data({value:p,series:u})();s.renderGuideLine(c)});s.dispatch.on("elementMouseout",function(){t.clearHighlights()});r.dispatch.on("onBrush",function(n){wi(n)});v.on("changeState",function(n){typeof n.disabled!="undefined"&&tt.length===n.disabled.length&&(tt.forEach(function(t,i){t.disabled=n.disabled[i]}),f.disabled=n.disabled);typeof n.style!="undefined"&&(t.style(n.style),bt=n.style);i.update()})}),tt.renderEnd("stacked Area chart immediate"),i}var t=n.models.stackedArea(),c=n.models.axis(),e=n.models.axis(),o=n.models.legend(),y=n.models.legend(),s=n.interactiveGuideline(),ut=n.models.tooltip(),r=n.models.focus(n.models.stackedArea()),u={top:10,right:25,bottom:50,left:60},yt=null,ht=null,p=null,l=n.utils.defaultColor(),ft=!0,et=!0,w="top",b=!0,it=!0,rt=!1,a=!1,ct=!1,ot=!0,lt="TOTAL",at,pt,f=n.utils.state(),k=null,wt=null,v=d3.dispatch("stateChange","changeState","renderEnd"),vt=250,st=["Stacked","Stream","Expanded"],d={},h=250,g,nt;f.style=t.style();c.orient("bottom").tickPadding(7);e.orient(rt?"right":"left");ut.headerFormatter(function(n,t){return c.tickFormat()(n,t)}).valueFormatter(function(n,t){return e.tickFormat()(n,t)});s.tooltip.headerFormatter(function(n,t){return c.tickFormat()(n,t)}).valueFormatter(function(n,t){return n==null?"N/A":e.tickFormat()(n,t)});g=null;nt=null;y.updateState(!1);var tt=n.utils.renderWatch(v),bt=t.style(),dt=function(n){return function(){return{active:n.map(function(n){return!n.disabled}),style:t.style()}}},gt=function(n){return function(t){t.style!==undefined&&(bt=t.style);t.active!==undefined&&n.forEach(function(n,i){n.disabled=!t.active[i]})}},kt=d3.format("%");t.dispatch.on("elementMouseover.tooltip",function(n){n.point.x=t.x()(n.point);n.point.y=t.y()(n.point);ut.data(n).hidden(!1)});t.dispatch.on("elementMouseout.tooltip",function(){ut.hidden(!0)});return i.dispatch=v,i.stacked=t,i.legend=o,i.controls=y,i.xAxis=c,i.x2Axis=r.xAxis,i.yAxis=e,i.y2Axis=r.yAxis,i.interactiveLayer=s,i.tooltip=ut,i.focus=r,i.dispatch=v,i.options=n.utils.optionsFunc.bind(i),i._options=Object.create({},{width:{get:function(){return ht},set:function(n){ht=n}},height:{get:function(){return p},set:function(n){p=n}},showLegend:{get:function(){return et},set:function(n){et=n}},legendPosition:{get:function(){return w},set:function(n){w=n}},showXAxis:{get:function(){return b},set:function(n){b=n}},showYAxis:{get:function(){return it},set:function(n){it=n}},defaultState:{get:function(){return k},set:function(n){k=n}},noData:{get:function(){return wt},set:function(n){wt=n}},showControls:{get:function(){return ft},set:function(n){ft=n}},controlLabels:{get:function(){return d},set:function(n){d=n}},controlOptions:{get:function(){return st},set:function(n){st=n}},showTotalInTooltip:{get:function(){return ot},set:function(n){ot=n}},totalLabel:{get:function(){return lt},set:function(n){lt=n}},focusEnable:{get:function(){return a},set:function(n){a=n}},focusHeight:{get:function(){return r.height()},set:function(n){r.height(n)}},brushExtent:{get:function(){return r.brushExtent()},set:function(n){r.brushExtent(n)}},margin:{get:function(){return u},set:function(n){n.top!==undefined&&(u.top=n.top,yt=n.top);u.right=n.right!==undefined?n.right:u.right;u.bottom=n.bottom!==undefined?n.bottom:u.bottom;u.left=n.left!==undefined?n.left:u.left}},focusMargin:{get:function(){return r.margin},set:function(n){r.margin.top=n.top!==undefined?n.top:r.margin.top;r.margin.right=n.right!==undefined?n.right:r.margin.right;r.margin.bottom=n.bottom!==undefined?n.bottom:r.margin.bottom;r.margin.left=n.left!==undefined?n.left:r.margin.left}},duration:{get:function(){return h},set:function(n){h=n;tt.reset(h);t.duration(h);c.duration(h);e.duration(h)}},color:{get:function(){return l},set:function(i){l=n.utils.getColor(i);o.color(l);t.color(l);r.color(l)}},x:{get:function(){return t.x()},set:function(n){t.x(n);r.x(n)}},y:{get:function(){return t.y()},set:function(n){t.y(n);r.y(n)}},rightAlignYAxis:{get:function(){return rt},set:function(n){rt=n;e.orient(rt?"right":"left")}},useInteractiveGuideline:{get:function(){return ct},set:function(n){ct=!!n;i.interactive(!n);i.useVoronoi(!n);t.scatter.interactive(!n)}}}),n.utils.inheritOptions(i,t),n.utils.initOptions(i),i};n.models.stackedAreaWithFocusChart=function(){return n.models.stackedAreaChart().margin({bottom:30}).focusEnable(!0)};n.models.sunburst=function(){"use strict";function ot(n){var t=ut(n);return t>90?180:0}function ut(n){var t=Math.max(0,Math.min(2*Math.PI,r(n.x))),i=Math.max(0,Math.min(2*Math.PI,r(n.x+n.dx)));return(t+i)/2*(180/Math.PI)-90}function lt(n){var t=Math.max(0,Math.min(2*Math.PI,r(n.x))),i=Math.max(0,Math.min(2*Math.PI,r(n.x+n.dx)));return(i-t)/(2*Math.PI)}function st(n){var t=Math.max(0,Math.min(2*Math.PI,r(n.x))),i=Math.max(0,Math.min(2*Math.PI,r(n.x+n.dx))),u=i-t;return u>nt}function at(n,t){var u=d3.interpolate(r.domain(),[h.x,h.x+h.dx]),f=d3.interpolate(i.domain(),[h.y,1]),e=d3.interpolate(i.range(),[h.y?20:0,rt]);return t===0?function(){return b(n)}:function(t){return r.domain(u(t)),i.domain(f(t)).range(e(t)),b(n)}}function vt(n){var t=d3.interpolate({x:n.x0,dx:n.dx0,y:n.y0,dy:n.dy0},n);return function(i){var r=t(i);return n.x0=r.x,n.dx0=r.dx,n.y0=r.y,n.dy0=r.dy,b(r)}}function yt(n){var i=s(n),t;c[i]||(c[i]={});t=c[i];t.dx=n.dx;t.x=n.x;t.dy=n.dy;t.y=n.y}function pt(n){n.forEach(function(n){var i=s(n),t=c[i];t?(n.dx0=t.dx,n.x0=t.x,n.dy0=t.dy,n.y0=t.y):(n.dx0=n.dx,n.x0=n.x,n.dy0=n.dy,n.y0=n.y);yt(n)})}function ht(n){var t=u.selectAll("text"),r=u.selectAll("path");t.transition().attr("opacity",0);h=n;r.transition().duration(f).attrTween("d",at).each("end",function(t){if(t.x>=n.x&&t.x<n.x+n.dx&&t.depth>=n.depth){var r=d3.select(this.parentNode),u=r.select("text");u.transition().duration(f).text(function(n){return y(n)}).attr("opacity",function(n){return st(n)?1:0}).attr("transform",function(){var f=this.getBBox().width,r,u;return t.depth===0?"translate("+f/-2+",0)":t.depth===n.depth?"translate("+(i(t.y)+5)+",0)":(r=ut(t),u=ot(t),u===0?"rotate("+r+")translate("+(i(t.y)+5)+",0)":"rotate("+r+")translate("+(i(t.y)+f+5)+",0)rotate("+u+")")})}})}function o(r){return ct.reset(),r.each(function(r){var h,nt,o,tt;u=d3.select(this);p=n.utils.availableWidth(k,u,t);w=n.utils.availableHeight(d,u,t);rt=Math.min(p,w)/2;i.range([0,rt]);h=u.select("g.nvd3.nv-wrap.nv-sunburst");h[0][0]?h.attr("transform","translate("+(p/2+t.left+t.right)+","+(w/2+t.top+t.bottom)+")"):h=u.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+a).attr("transform","translate("+(p/2+t.left+t.right)+","+(w/2+t.top+t.bottom)+")");u.on("click",function(n,t){e.chartClick({data:n,index:t,pos:d3.event,id:a})});et.value(ft[l]||ft.count);nt=et.nodes(r[0]).reverse();pt(nt);o=h.selectAll(".arc-container").data(nt,s);tt=o.enter().append("g").attr("class","arc-container");tt.append("path").attr("d",b).style("fill",function(n){return n.color?n.color:it?v((n.children?n:n.parent).name):v(n.name)}).style("stroke","#FFF").on("click",function(n,t){ht(n);e.elementClick({data:n,index:t})}).on("mouseover",function(n){d3.select(this).classed("hover",!0).style("opacity",.8);e.elementMouseover({data:n,color:d3.select(this).style("fill"),percent:lt(n)})}).on("mouseout",function(n){d3.select(this).classed("hover",!1).style("opacity",1);e.elementMouseout({data:n})}).on("mousemove",function(n){e.elementMousemove({data:n})});o.each(function(){d3.select(this).select("path").transition().duration(f).attrTween("d",vt)});g&&(o.selectAll("text").remove(),o.append("text").text(function(n){return y(n)}).transition().duration(f).attr("opacity",function(n){return st(n)?1:0}).attr("transform",function(n){var u=this.getBBox().width,t,r;return n.depth===0?"rotate(0)translate("+u/-2+",0)":(t=ut(n),r=ot(n),r===0?"rotate("+t+")translate("+(i(n.y)+5)+",0)":"rotate("+t+")translate("+(i(n.y)+u+5)+",0)rotate("+r+")")}));ht(nt[nt.length-1]);o.exit().transition().duration(f).attr("opacity",0).each("end",function(n){var t=s(n);c[t]=undefined}).remove()}),ct.renderEnd("sunburst immediate"),o}var t={top:0,right:0,bottom:0,left:0},k=600,d=600,l="count",ft={count:function(){return 1},value:function(n){return n.value||n.size},size:function(n){return n.value||n.size}},a=Math.floor(Math.random()*1e4),u=null,v=n.utils.defaultColor(),g=!1,y=function(n){return l==="count"?n.name+" #"+n.value:n.name+" "+(n.value||n.size)},nt=.02,tt=function(n,t){return n.name>t.name},s=function(n){return n.name},it=!0,f=500,e=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),r=d3.scale.linear().range([0,2*Math.PI]),i=d3.scale.sqrt(),et=d3.layout.partition().sort(tt),h,p,w,rt,c={},b=d3.svg.arc().startAngle(function(n){return Math.max(0,Math.min(2*Math.PI,r(n.x)))}).endAngle(function(n){return Math.max(0,Math.min(2*Math.PI,r(n.x+n.dx)))}).innerRadius(function(n){return Math.max(0,i(n.y))}).outerRadius(function(n){return Math.max(0,i(n.y+n.dy))}),ct=n.utils.renderWatch(e);return o.dispatch=e,o.options=n.utils.optionsFunc.bind(o),o._options=Object.create({},{width:{get:function(){return k},set:function(n){k=n}},height:{get:function(){return d},set:function(n){d=n}},mode:{get:function(){return l},set:function(n){l=n}},id:{get:function(){return a},set:function(n){a=n}},duration:{get:function(){return f},set:function(n){f=n}},groupColorByParent:{get:function(){return it},set:function(n){it=!!n}},showLabels:{get:function(){return g},set:function(n){g=!!n}},labelFormat:{get:function(){return y},set:function(n){y=n}},labelThreshold:{get:function(){return nt},set:function(n){nt=n}},sort:{get:function(){return tt},set:function(n){tt=n}},key:{get:function(){return s},set:function(n){s=n}},margin:{get:function(){return t},set:function(n){t.top=n.top!=undefined?n.top:t.top;t.right=n.right!=undefined?n.right:t.right;t.bottom=n.bottom!=undefined?n.bottom:t.bottom;t.left=n.left!=undefined?n.left:t.left}},color:{get:function(){return v},set:function(t){v=n.utils.getColor(t)}}}),n.utils.initOptions(o),o};n.models.sunburstChart=function(){"use strict";function t(f){return e.reset(),e.models(r),f.each(function(f){var e=d3.select(this),o,s;if(n.utils.initSVG(e),o=n.utils.availableWidth(a,e,i),s=n.utils.availableHeight(v,e,i),t.update=function(){u===0?e.call(t):e.transition().duration(u).call(t)},t.container=e,f&&f.length)e.selectAll(".nv-noData").remove();else return n.utils.noData(t,e),t;r.width(o).height(s).margin(i);e.call(r)}),e.renderEnd("sunburstChart immediate"),t}var r=n.models.sunburst(),f=n.models.tooltip(),i={top:30,right:20,bottom:20,left:20},a=null,v=null,o=n.utils.defaultColor(),s=!1,y=Math.round(Math.random()*1e5),h=null,c=null,u=250,l=d3.dispatch("stateChange","changeState","renderEnd"),e=n.utils.renderWatch(l);f.duration(0).headerEnabled(!1).valueFormatter(function(n){return n});r.dispatch.on("elementMouseover.tooltip",function(n){n.series={key:n.data.name,value:n.data.value||n.data.size,color:n.color,percent:n.percent};s||(delete n.percent,delete n.series.percent);f.data(n).hidden(!1)});r.dispatch.on("elementMouseout.tooltip",function(){f.hidden(!0)});r.dispatch.on("elementMousemove.tooltip",function(){f()});return t.dispatch=l,t.sunburst=r,t.tooltip=f,t.options=n.utils.optionsFunc.bind(t),t._options=Object.create({},{noData:{get:function(){return c},set:function(n){c=n}},defaultState:{get:function(){return h},set:function(n){h=n}},showTooltipPercent:{get:function(){return s},set:function(n){s=n}},color:{get:function(){return o},set:function(n){o=n;r.color(o)}},duration:{get:function(){return u},set:function(n){u=n;e.reset(u);r.duration(u)}},margin:{get:function(){return i},set:function(n){i.top=n.top!==undefined?n.top:i.top;i.right=n.right!==undefined?n.right:i.right;i.bottom=n.bottom!==undefined?n.bottom:i.bottom;i.left=n.left!==undefined?n.left:i.left;r.margin(i)}}}),n.utils.inheritOptions(t,r),n.utils.initOptions(t),t};n.version="1.8.5-dev"}(),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","jquery.ui.widget"],n):typeof exports=="object"?n(require("jquery"),require("./vendor/jquery.ui.widget")):n(window.jQuery)}(function(n){"use strict";function t(t){var i=t==="dragover";return function(r){r.dataTransfer=r.originalEvent&&r.originalEvent.dataTransfer;var u=r.dataTransfer;u&&n.inArray("Files",u.types)!==-1&&this._trigger(t,n.Event(t,{delegatedEvent:r}))!==!1&&(r.preventDefault(),i&&(u.dropEffect="copy"))}}n.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||n('<input type="file">').prop("disabled"));n.support.xhrFileUpload=!!(window.ProgressEvent&&window.FileReader);n.support.xhrFormDataFileUpload=!!window.FormData;n.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);n.widget("blueimp.fileupload",{options:{dropZone:n(document),pasteZone:undefined,fileInput:undefined,replaceFileInput:!0,paramName:undefined,singleFileUploads:!0,limitMultiFileUploads:undefined,limitMultiFileUploadSize:undefined,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:undefined,forceIframeTransport:!1,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:!0,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&n.each(i,function(n,i){t=t.replace("{"+n+"}",i)}),t},formData:function(n){return n.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||i.autoUpload!==!1&&n(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:n.support.blobSlice&&function(){var n=this.slice||this.webkitSlice||this.mozSlice;return n.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime();this.loaded=0;this.bitrate=0;this.getBitrate=function(n,t,i){var r=n-this.timestamp;return(!this.bitrate||!i||r>i)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=n),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&n.support.xhrFileUpload||n.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return n.type(t.formData)==="function"?t.formData(t.form):n.isArray(t.formData)?t.formData:n.type(t.formData)==="object"?(i=[],n.each(t.formData,function(n,t){i.push({name:n,value:t})}),i):[]},_getTotal:function(t){var i=0;return n.each(t,function(n,t){i+=t.size||1}),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?n.extend(t._progress,i):t._progress=i},_initResponseObject:function(n){var t;if(n._response)for(t in n._response)n._response.hasOwnProperty(t)&&delete n._response[t];else n._response={}},_onProgress:function(t,i){if(t.lengthComputable){var r=Date.now?Date.now():(new Date).getTime(),u;if(i._time&&i.progressInterval&&r-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=r;u=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0);this._progress.loaded+=u-i._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,i.bitrateInterval);i._progress.loaded=i.loaded=u;i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(r,u,i.bitrateInterval);this._trigger("progress",n.Event("progress",{delegatedEvent:t}),i);this._trigger("progressall",n.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var r=this,i=t.xhr?t.xhr():n.ajaxSettings.xhr();i.upload&&(n(i.upload).bind("progress",function(n){var i=n.originalEvent;n.lengthComputable=i.lengthComputable;n.loaded=i.loaded;n.total=i.total;r._onProgress(n,t)}),t.xhr=function(){return i})},_isInstanceOf:function(n,t){return Object.prototype.toString.call(t)==="[object "+n+"]"},_initXHRData:function(t){var f=this,i,r=t.files[0],e=t.multipart||!n.support.xhrFileUpload,u=n.type(t.paramName)==="array"?t.paramName[0]:t.paramName;t.headers=n.extend({},t.headers);t.contentRange&&(t.headers["Content-Range"]=t.contentRange);e&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"');e?n.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:u,value:t.blob}):n.each(t.files,function(r,f){i.push({name:n.type(t.paramName)==="array"&&t.paramName[r]||u,value:f})})):(f._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,n.each(this._getFormData(t),function(n,t){i.append(t.name,t.value)})),t.blob?i.append(u,t.blob,r.name):n.each(t.files,function(r,e){(f._isInstanceOf("File",e)||f._isInstanceOf("Blob",e))&&i.append(n.type(t.paramName)==="array"&&t.paramName[r]||u,e,e.uploadName||e.name)})),t.data=i):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r);t.blob=null},_initIframeSettings:function(t){var i=n("<a><\/a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||"");t.formData=this._getFormData(t);t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(n){this._isXHRUpload(n)?(this._chunkedUpload(n,!0)||(n.data||this._initXHRData(n),this._initProgressListener(n)),n.postMessage&&(n.dataType="postmessage "+(n.dataType||""))):this._initIframeSettings(n)},_getParamName:function(t){var r=n(t.fileInput),i=t.paramName;return i?n.isArray(i)||(i=[i]):(i=[],r.each(function(){for(var t=n(this),u=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(u),r-=1}),i.length||(i=[r.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=n(t.fileInput.prop("form")),t.form.length||(t.form=n(this.options.fileInput.prop("form"))));t.paramName=this._getParamName(t);t.url||(t.url=t.form.prop("action")||location.href);t.type=(t.type||n.type(t.form.prop("method"))==="string"&&t.form.prop("method")||"").toUpperCase();t.type!=="POST"&&t.type!=="PUT"&&t.type!=="PATCH"&&(t.type="POST");t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=n.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(n){return n.state?n.state():n.isResolved()?"resolved":n.isRejected()?"rejected":"pending"},_enhancePromise:function(n){return n.success=n.done,n.error=n.fail,n.complete=n.always,n},_getXHRPromise:function(t,i,r){var u=n.Deferred(),f=u.promise();return i=i||this.options.context||f,t===!0?u.resolveWith(i,r):t===!1&&u.rejectWith(i,r),f.abort=u.promise,this._enhancePromise(f)},_addConvenienceMethods:function(t,i){var r=this,u=function(t){return n.Deferred().resolveWith(r,t).promise()};i.process=function(t,f){return(t||f)&&(i._processQueue=this._processQueue=(this._processQueue||u([this])).then(function(){return i.errorThrown?n.Deferred().rejectWith(r,[i]).promise():u(arguments)}).then(t,f)),this._processQueue||u([this])};i.submit=function(){return this.state()!=="pending"&&(i.jqXHR=this.jqXHR=r._trigger("submit",n.Event("submit",{delegatedEvent:t}),this)!==!1&&r._onSend(t,this)),this.jqXHR||r._getXHRPromise()};i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",r._trigger("fail",null,this),r._getXHRPromise(!1))};i.state=function(){return this.jqXHR?r._getDeferredState(this.jqXHR):this._processQueue?r._getDeferredState(this._processQueue):void 0};i.processing=function(){return!this.jqXHR&&this._processQueue&&r._getDeferredState(this._processQueue)==="pending"};i.progress=function(){return this._progress};i.response=function(){return this._response}},_getUploadedBytes:function(n){var i=n.getResponseHeader("Range"),t=i&&i.split("-"),r=t&&t.length>1&&parseInt(t[1],10);return r&&r+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var u=this,f=t.files[0],e=f.size,r=t.uploadedBytes,c=t.maxChunkSize||e,l=this._blobSlice,o=n.Deferred(),s=o.promise(),a,h;return!(this._isXHRUpload(t)&&l&&(r||c<e))||t.data?!1:i?!0:r>=e?(f.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",f.error])):(h=function(){var i=n.extend({},t),s=i._progress.loaded;i.blob=l.call(f,r,r+c,f.type);i.chunkSize=i.blob.size;i.contentRange="bytes "+r+"-"+(r+i.chunkSize-1)+"/"+e;u._initXHRData(i);u._initProgressListener(i);a=(u._trigger("chunksend",null,i)!==!1&&n.ajax(i)||u._getXHRPromise(!1,i.context)).done(function(f,c,l){r=u._getUploadedBytes(l)||r+i.chunkSize;s+i.chunkSize-i._progress.loaded&&u._onProgress(n.Event("progress",{lengthComputable:!0,loaded:r-i.uploadedBytes,total:r-i.uploadedBytes}),i);t.uploadedBytes=i.uploadedBytes=r;i.result=f;i.textStatus=c;i.jqXHR=l;u._trigger("chunkdone",null,i);u._trigger("chunkalways",null,i);r<e?h():o.resolveWith(i.context,[f,c,l])}).fail(function(n,t,r){i.jqXHR=n;i.textStatus=t;i.errorThrown=r;u._trigger("chunkfail",null,i);u._trigger("chunkalways",null,i);o.rejectWith(i.context,[n,t,r])})},this._enhancePromise(s),s.abort=function(){return a.abort()},h(),s)},_beforeSend:function(n,t){this._active===0&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0);this._initResponseObject(t);this._initProgressObject(t);t._progress.loaded=t.loaded=t.uploadedBytes||0;t._progress.total=t.total=this._getTotal(t.files)||1;t._progress.bitrate=t.bitrate=0;this._active+=1;this._progress.loaded+=t.loaded;this._progress.total+=t.total},_onDone:function(t,i,r,u){var f=u._progress.total,e=u._response;u._progress.loaded<f&&this._onProgress(n.Event("progress",{lengthComputable:!0,loaded:f,total:f}),u);e.result=u.result=t;e.textStatus=u.textStatus=i;e.jqXHR=u.jqXHR=r;this._trigger("done",null,u)},_onFail:function(n,t,i,r){var u=r._response;r.recalculateProgress&&(this._progress.loaded-=r._progress.loaded,this._progress.total-=r._progress.total);u.jqXHR=r.jqXHR=n;u.textStatus=r.textStatus=t;u.errorThrown=r.errorThrown=i;this._trigger("fail",null,r)},_onAlways:function(n,t,i,r){this._trigger("always",null,r)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var r=this,f,s,e,h,u=r._getAJAXSettings(i),o=function(){return r._sending+=1,u._bitrateTimer=new r._BitrateTimer,f=f||((s||r._trigger("send",n.Event("send",{delegatedEvent:t}),u)===!1)&&r._getXHRPromise(!1,u.context,s)||r._chunkedUpload(u)||n.ajax(u)).done(function(n,t,i){r._onDone(n,t,i,u)}).fail(function(n,t,i){r._onFail(n,t,i,u)}).always(function(n,t,i){if(r._onAlways(n,t,i,u),r._sending-=1,r._active-=1,u.limitConcurrentUploads&&u.limitConcurrentUploads>r._sending)for(var f=r._slots.shift();f;){if(r._getDeferredState(f)==="pending"){f.resolve();break}f=r._slots.shift()}r._active===0&&r._trigger("stop")})};return(this._beforeSend(t,u),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)?(this.options.limitConcurrentUploads>1?(e=n.Deferred(),this._slots.push(e),h=e.then(o)):(this._sequence=this._sequence.then(o,o),h=this._sequence),h.abort=function(){return(s=[undefined,"abort","abort"],!f)?(e&&e.rejectWith(u.context,s),o()):f.abort()},this._enhancePromise(h)):o()},_onAdd:function(t,i){var a=this,p=!0,f=n.extend({},this.options,i),u=i.files,v=u.length,o=f.limitMultiFileUploads,c=f.limitMultiFileUploadSize,b=f.limitMultiFileUploadSizeOverhead,w=0,l=this._getParamName(f),s,e,h,r,y=0;if(!v)return!1;if(c&&u[0].size===undefined&&(c=undefined),(f.singleFileUploads||o||c)&&this._isXHRUpload(f))if(f.singleFileUploads||c||!o)if(!f.singleFileUploads&&c)for(h=[],s=[],r=0;r<v;r=r+1)w+=u[r].size+b,(r+1===v||w+u[r+1].size+b>c||o&&r+1-y>=o)&&(h.push(u.slice(y,r+1)),e=l.slice(y,r+1),e.length||(e=l),s.push(e),y=r+1,w=0);else s=l;else for(h=[],s=[],r=0;r<v;r+=o)h.push(u.slice(r,r+o)),e=l.slice(r,r+o),e.length||(e=l),s.push(e);else h=[u],s=[l];return i.originalFiles=u,n.each(h||u,function(r,u){var f=n.extend({},i);return f.files=h?u:[u],f.paramName=s[r],a._initResponseObject(f),a._initProgressObject(f),a._addConvenienceMethods(t,f),p=a._trigger("add",n.Event("add",{delegatedEvent:t}),f)}),p},_replaceFileInput:function(t){var i=t.fileInput,r=i.clone(!0),u=i.is(document.activeElement);t.fileInputClone=r;n("<form><\/form>").append(r)[0].reset();i.after(r).detach();u&&r.focus();n.cleanData(i.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(n,t){return t===i[0]?r[0]:t});i[0]===this.element[0]&&(this.element=r)},_handleFileTreeEntry:function(t,i){var s=this,r=n.Deferred(),u=function(n){n&&!n.entry&&(n.entry=t);r.resolve([n])},h=function(n){s._handleFileTreeEntries(n,i+t.name+"/").done(function(n){r.resolve(n)}).fail(u)},e=function(){o.readEntries(function(n){n.length?(f=f.concat(n),e()):h(f)},u)},o,f=[];return i=i||"",t.isFile?t._file?(t._file.relativePath=i,r.resolve(t._file)):t.file(function(n){n.relativePath=i;r.resolve(n)},u):t.isDirectory?(o=t.createReader(),e()):r.resolve([]),r.promise()},_handleFileTreeEntries:function(t,i){var r=this;return n.when.apply(n,n.map(t,function(n){return r._handleFileTreeEntry(n,i)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(n.map(i,function(n){var t;return n.webkitGetAsEntry?(t=n.webkitGetAsEntry(),t&&(t._file=n.getAsFile()),t):n.getAsEntry()})):n.Deferred().resolve(n.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=n(t);var r=t.prop("webkitEntries")||t.prop("entries"),i,u;if(r&&r.length)return this._handleFileTreeEntries(r);if(i=n.makeArray(t.prop("files")),i.length)i[0].name===undefined&&i[0].fileName&&n.each(i,function(n,t){t.name=t.fileName;t.size=t.fileSize});else{if(u=t.prop("value"),!u)return n.Deferred().resolve([]).promise();i=[{name:u.replace(/^.*\\/,"")}]}return n.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return!(t instanceof n)||t.length===1?this._getSingleFileInputFiles(t):n.when.apply(n,n.map(t,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(t){var r=this,i={fileInput:n(t.target),form:n(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(u){i.files=u;r.options.replaceFileInput&&r._replaceFileInput(i);r._trigger("change",n.Event("change",{delegatedEvent:t}),i)!==!1&&r._onAdd(t,i)})},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,r={files:[]};i&&i.length&&(n.each(i,function(n,t){var i=t.getAsFile&&t.getAsFile();i&&r.files.push(i)}),this._trigger("paste",n.Event("paste",{delegatedEvent:t}),r)!==!1&&this._onAdd(t,r))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var u=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i;u._trigger("drop",n.Event("drop",{delegatedEvent:t}),r)!==!1&&u._onAdd(t,r)}))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste}));n.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=n.inArray(t,this._specialOptions)!==-1;r&&this._destroyEventHandlers();this._super(t,i);r&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;t.fileInput===undefined?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof n||(t.fileInput=n(t.fileInput));t.dropZone instanceof n||(t.dropZone=n(t.dropZone));t.pasteZone instanceof n||(t.pasteZone=n(t.pasteZone))},_getRegExp:function(n){var t=n.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return t!=="url"&&n.type(i)==="string"&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,i=this.options,r=this.element.data();n.each(this.element[0].attributes,function(n,u){var f=u.name.toLowerCase(),e;/^data-/.test(f)&&(f=f.slice(5).replace(/-[a-z]/g,function(n){return n.charAt(1).toUpperCase()}),e=r[f],t._isRegExpOption(f,e)&&(e=t._getRegExp(e)),i[f]=e)})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(!0);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(n){t.files=n;i._onAdd(null,t)}):(t.files=n.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var e=this,i=n.Deferred(),u=i.promise(),r,f;return u.abort=function(){return(f=!0,r)?r.abort():(i.reject(null,"abort","abort"),u)},this._getFileInputFiles(t.fileInput).always(function(n){if(!f){if(!n.length){i.reject();return}t.files=n;r=e._onSend(null,t);r.then(function(n,t,r){i.resolve(n,t,r)},function(n,t,r){i.reject(n,t,r)})}}),this._enhancePromise(u)}if(t.files=n.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery")):n(window.jQuery)}(function(n){"use strict";function k(n){var t={},i;return void 0===n.selectionStart?(n.focus(),i=document.selection.createRange(),t.length=i.text.length,i.moveStart("character",-n.value.length),t.end=i.text.length,t.start=t.end-t.length):(t.start=n.selectionStart,t.end=n.selectionEnd,t.length=t.end-t.start),t}function u(n,t,i){if(void 0===n.selectionStart){n.focus();var r=n.createTextRange();r.collapse(!0);r.moveEnd("character",i);r.moveStart("character",t);r.select()}else n.selectionStart=t,n.selectionEnd=i}function d(t,i){n.each(i,function(n,r){"function"==typeof r?i[n]=r(t,i,n):"function"==typeof t.autoNumeric[r]&&(i[n]=t.autoNumeric[r](t,i,n))})}function f(n,t){"string"==typeof n[t]&&(n[t]*=1)}function v(n,t){var i,r,e,o,u,s;return d(n,t),t.tagList=["b","caption","cite","code","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","output","p","q","s","sample","span","strong","td","th","u","var"],i=t.vMax.toString().split("."),r=t.vMin||0===t.vMin?t.vMin.toString().split("."):[],(f(t,"vMax"),f(t,"vMin"),f(t,"mDec"),t.mDec="CHF"===t.mRound?"2":t.mDec,t.allowLeading=!0,t.aNeg=t.vMin<0?"-":"",i[0]=i[0].replace("-",""),r[0]=r[0].replace("-",""),t.mInt=Math.max(i[0].length,r[0].length,1),null===t.mDec)&&(e=0,o=0,i[1]&&(e=i[1].length),r[1]&&(o=r[1].length),t.mDec=Math.max(e,o)),null===t.altDec&&t.mDec>0&&("."===t.aDec&&","!==t.aSep?t.altDec=",":","===t.aDec&&"."!==t.aSep&&(t.altDec=".")),u=t.aNeg?"([-\\"+t.aNeg+"]?)":"(-?)",t.aNegRegAutoStrip=u,t.skipFirstAutoStrip=new RegExp(u+"[^-"+(t.aNeg?"\\"+t.aNeg:"")+"\\"+t.aDec+"\\d].*?(\\d|\\"+t.aDec+"\\d)"),t.skipLastAutoStrip=new RegExp("(\\d\\"+t.aDec+"?)[^\\"+t.aDec+"\\d]\\D*$"),s="-"+t.aNum+"\\"+t.aDec,t.allowedAutoStrip=new RegExp("[^"+s+"]","gi"),t.numRegAutoStrip=new RegExp(u+"(?:\\"+t.aDec+"?(\\d+\\"+t.aDec+"\\d+)|(\\d*(?:\\"+t.aDec+"\\d*)?))"),t}function t(n,t,i){var u,r,e,f;if(t.aSign)for(;n.indexOf(t.aSign)>-1;)n=n.replace(t.aSign,"");return n=n.replace(t.skipFirstAutoStrip,"$1$2"),n=n.replace(t.skipLastAutoStrip,"$1"),n=n.replace(t.allowedAutoStrip,""),t.altDec&&(n=n.replace(t.altDec,t.aDec)),u=n.match(t.numRegAutoStrip),(n=u?[u[1],u[2],u[3]].join(""):"",("allow"===t.lZero||"keep"===t.lZero)&&"strip"!==i)&&(r=[],e="",r=n.split(t.aDec),r[0].indexOf("-")!==-1&&(e="-",r[0]=r[0].replace("-","")),r[0].length>t.mInt&&"0"===r[0].charAt(0)&&(r[0]=r[0].slice(1)),n=e+r.join(t.aDec)),(i&&"deny"===t.lZero||i&&"allow"===t.lZero&&t.allowLeading===!1)&&(f="^"+t.aNegRegAutoStrip+"0*(\\d"+("leading"===i?")":"|$)"),f=new RegExp(f),n=n.replace(f,"$1$2")),n}function s(n,t){if("p"===t.pSign){var i=t.nBracket.split(",");t.hasFocus||t.removeBrackets?(t.hasFocus&&n.charAt(0)===i[0]||t.removeBrackets&&n.charAt(0)===i[0])&&(n=n.replace(i[0],t.aNeg),n=n.replace(i[1],"")):(n=n.replace(t.aNeg,""),n=i[0]+n+i[1])}return n}function y(n,t){var r,i;return n&&(r=+n,r<1e-6&&r>-1?(n=+n,n<1e-6&&n>0&&(n=(n+10).toString(),n=n.substring(1)),n<0&&n>-1&&(n=(n-10).toString(),n="-"+n.substring(2)),n=n.toString()):(i=n.split("."),void 0!==i[1]&&(0==+i[1]?n=i[0]:(i[1]=i[1].replace(/0*$/,""),n=i.join("."))))),"keep"===t.lZero?n:n.replace(/^0*(\d)/,"$1")}function h(n,t,i){return t&&"."!==t&&(n=n.replace(t,".")),i&&"-"!==i&&(n=n.replace(i,"-")),n.match(/\d/)||(n+="0"),n}function p(n,t,i){return i&&"-"!==i&&(n=n.replace("-",i)),t&&"."!==t&&(n=n.replace(".",t)),n}function e(n,t,i){return""===n||n===t.aNeg?"zero"===t.wEmpty?n+"0":"sign"===t.wEmpty||i?n+t.aSign:n:null}function c(n,i){var h,o,f,r,u,c;if(n=t(n,i),h=n.replace(",","."),o=e(n,i,!0),null!==o)return o;if(f="",f=2===i.dGroup?/(\d)((\d)(\d{2}?)+)$/:4===i.dGroup?/(\d)((\d{4}?)+)$/:/(\d)((\d{3}?)+)$/,r=n.split(i.aDec),i.altDec&&1===r.length&&(r=n.split(i.altDec)),u=r[0],i.aSep)for(;f.test(u);)u=u.replace(f,"$1"+i.aSep+"$2");return(0!==i.mDec&&r.length>1?(r[1].length>i.mDec&&(r[1]=r[1].substring(0,i.mDec)),n=u+i.aDec+r[1]):n=u,i.aSign)&&(c=n.indexOf(i.aNeg)!==-1,n=n.replace(i.aNeg,""),n="p"===i.pSign?i.aSign+n:n+i.aSign,c&&(n=i.aNeg+n)),h<0&&null!==i.nBracket&&(n=s(n,i)),n}function o(n,t){var v;n=""===n?"0":n.toString();f(t,"mDec");"CHF"===t.mRound&&(n=(Math.round(20*n)/20).toString());var i="",r=0,e="",s="boolean"==typeof t.aPad||null===t.aPad?t.aPad?t.mDec:0:+t.aPad,p=function(n){var t=0===s?/(\.(?:\d*[1-9])?)0*$/:1===s?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+s+"}(?:\\d*[1-9])?)0*$");return n=n.replace(t,"$1"),0===s&&(n=n.replace(/\.$/,"")),n};"-"===n.charAt(0)&&(e="-",n=n.replace("-",""));n.match(/^\d/)||(n="0"+n);"-"===e&&0==+n&&(e="");(+n>0&&"keep"!==t.lZero||n.length>0&&"allow"===t.lZero)&&(n=n.replace(/^0*(\d)/,"$1"));var a=n.lastIndexOf("."),w=a===-1?n.length-1:a,h=n.length-1-w;if(h<=t.mDec){if(i=n,h<s)for(a===-1&&(i+=t.aDec),v="000000";h<s;)v=v.substring(0,s-h),i+=v,h+=v.length;else h>s?i=p(i):0===h&&0===s&&(i=i.replace(/\.$/,""));if("CHF"!==t.mRound)return 0==+i?i:e+i;"CHF"===t.mRound&&(a=i.lastIndexOf("."),n=i)}var c=a+t.mDec,o=+n.charAt(c+1),u=n.substring(0,c+1).split(""),y="."===n.charAt(c)?n.charAt(c-1)%2:n.charAt(c)%2,l=!0;if(1!==y&&(y=0===y&&n.substring(c+2,n.length)>0?1:0),o>4&&"S"===t.mRound||o>4&&"A"===t.mRound&&""===e||o>5&&"A"===t.mRound&&"-"===e||o>5&&"s"===t.mRound||o>5&&"a"===t.mRound&&""===e||o>4&&"a"===t.mRound&&"-"===e||o>5&&"B"===t.mRound||5===o&&"B"===t.mRound&&1===y||o>0&&"C"===t.mRound&&""===e||o>0&&"F"===t.mRound&&"-"===e||o>0&&"U"===t.mRound||"CHF"===t.mRound)for(r=u.length-1;r>=0;r-=1)if("."!==u[r]){if("CHF"===t.mRound&&u[r]<=2&&l){u[r]=0;l=!1;break}if("CHF"===t.mRound&&u[r]<=7&&l){u[r]=5;l=!1;break}if("CHF"===t.mRound&&l?(u[r]=10,l=!1):u[r]=+u[r]+1,u[r]<10)break;r>0&&(u[r]="0")}return u=u.slice(0,c+1),i=p(u.join("")),0==+i?i:e+i}function w(n,t,i){var f=t.aDec,u=t.mDec,r;return(n="paste"===i?o(n,t):n,f&&u)&&(r=n.split(f),r[1]&&r[1].length>u&&(u>0?(r[1]=r[1].substring(0,u),n=r.join(f)):n=r[0])),n}function l(n,i){n=t(n,i);n=w(n,i);n=h(n,i.aDec,i.aNeg);var r=+n;return r>=i.vMin&&r<=i.vMax}function b(t,i){this.settings=i;this.that=t;this.$that=n(t);this.formatted=!1;this.settingsClone=v(this.$that,this.settings);this.value=t.value}function r(t){return"string"==typeof t&&(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),t="#"+t.replace(/(:|\.)/g,"\\$1")),n(t)}function i(n,t,i){var r=n.data("autoNumeric"),u;return r||(r={},n.data("autoNumeric",r)),u=r.holder,(void 0===u&&t||i)&&(u=new b(n.get(0),t),r.holder=u),u}b.prototype={init:function(n){this.value=this.that.value;this.settingsClone=v(this.$that,this.settings);this.ctrlKey=n.ctrlKey;this.cmdKey=n.metaKey;this.shiftKey=n.shiftKey;this.selection=k(this.that);"keydown"!==n.type&&"keyup"!==n.type||(this.kdCode=n.keyCode);this.which=n.which;this.processed=!1;this.formatted=!1},setSelection:function(n,t,i){n=Math.max(n,0);t=Math.min(t,this.that.value.length);this.selection={start:n,end:t,length:t-n};(void 0===i||i)&&u(this.that,n,t)},setPosition:function(n,t){this.setSelection(n,n,t)},getBeforeAfter:function(){var n=this.value,t=n.substring(0,this.selection.start),i=n.substring(this.selection.end,n.length);return[t,i]},getBeforeAfterStriped:function(){var n=this.getBeforeAfter();return n[0]=t(n[0],this.settingsClone),n[1]=t(n[1],this.settingsClone),n},normalizeParts:function(n,i){var r=this.settingsClone,e,u,f;return i=t(i,r),e=!!i.match(/^\d/)||"leading",n=t(n,r,e),""!==n&&n!==r.aNeg||"deny"!==r.lZero||i>""&&(i=i.replace(/^0*(\d)/,"$1")),u=n+i,r.aDec&&(f=u.match(new RegExp("^"+r.aNegRegAutoStrip+"\\"+r.aDec)),f&&(n=n.replace(f[1],f[1]+"0"),u=n+i)),"zero"!==r.wEmpty||u!==r.aNeg&&""!==u||(n+="0"),[n,i]},setValueParts:function(n,t,i){var f=this.settingsClone,e=this.normalizeParts(n,t),r=e.join(""),u=e[0].length;return!!l(r,f)&&(r=w(r,f,i),u>r.length&&(u=r.length),this.value=r,this.setPosition(u,!1),!0)},signPosition:function(){var n=this.settingsClone,u=n.aSign,i=this.that,t,f,r;return u?(t=u.length,"p"===n.pSign)?(f=n.aNeg&&i.value&&i.value.charAt(0)===n.aNeg,f?[1,t+1]:[0,t]):(r=i.value.length,[r-t,r]):[1e3,-1]},expandSelectionOnSign:function(n){var t=this.signPosition(),i=this.selection;i.start<t[1]&&i.end>t[0]&&((i.start<t[0]||i.end>t[1])&&this.value.substring(Math.max(i.start,t[0]),Math.min(i.end,t[1])).match(/^\s*$/)?i.start<t[0]?this.setSelection(i.start,t[0],n):this.setSelection(t[1],i.end,n):this.setSelection(Math.min(i.start,t[0]),Math.max(i.end,t[1]),n))},checkPaste:function(){if(void 0!==this.valuePartsBeforePaste){var n=this.getBeforeAfter(),i=this.valuePartsBeforePaste;delete this.valuePartsBeforePaste;n[0]=n[0].substr(0,i[0].length)+t(n[0].substr(i[0].length),this.settingsClone);this.setValueParts(n[0],n[1],"paste")||(this.value=i.join(""),this.setPosition(i[0].length,!1))}},skipAllways:function(n){var t=this.kdCode,e=this.which,i=this.ctrlKey,r=this.cmdKey,s=this.shiftKey;if((i||r)&&"keyup"===n.type&&void 0!==this.valuePartsBeforePaste||s&&45===t)return this.checkPaste(),!1;if(t>=112&&t<=123||t>=91&&t<=93||t>=9&&t<=31||t<8&&(0===e||e===t)||144===t||145===t||45===t||224===t||(i||r)&&65===t)return!0;if((i||r)&&(67===t||86===t||88===t))return"keydown"===n.type&&this.expandSelectionOnSign(),86!==t&&45!==t||("keydown"===n.type||"keypress"===n.type?void 0===this.valuePartsBeforePaste&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),"keydown"===n.type||"keypress"===n.type||67===t;if(i||r)return!0;if(37===t||39===t){var f=this.settingsClone.aSep,u=this.selection.start,o=this.that.value;return"keydown"===n.type&&f&&!this.shiftKey&&(37===t&&o.charAt(u-2)===f?this.setPosition(u-1):39===t&&o.charAt(u+1)===f&&this.setPosition(u+1)),!0}return t>=34&&t<=40},processAllways:function(){var t=this.$that,n;return t.attr("readonly")!=undefined&&(t.attr("readonly")=="readonly"||t.attr("readonly")=="true")?!1:(8===this.kdCode||46===this.kdCode)&&(this.selection.length?(this.expandSelectionOnSign(!1),n=this.getBeforeAfterStriped(),this.setValueParts(n[0],n[1])):(n=this.getBeforeAfterStriped(),8===this.kdCode?n[0]=n[0].substring(0,n[0].length-1):n[1]=n[1].substring(1,n[1].length),this.setValueParts(n[0],n[1])),!0)},processKeypress:function(){var u=this.$that;if(u.attr("readonly")!=undefined&&(u.attr("readonly")=="readonly"||u.attr("readonly")=="true"))return!1;var n=this.settingsClone,r=String.fromCharCode(this.which),f=this.getBeforeAfterStriped(),t=f[0],i=f[1];return r===n.aDec||n.altDec&&r===n.altDec||("."===r||","===r)&&110===this.kdCode?!n.mDec||!n.aDec||!!(n.aNeg&&i.indexOf(n.aNeg)>-1)||t.indexOf(n.aDec)>-1||i.indexOf(n.aDec)>0||(0===i.indexOf(n.aDec)&&(i=i.substr(1)),this.setValueParts(t+n.aDec,i),!0):"-"===r||"+"===r?!n.aNeg||(""===t&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),t=t.charAt(0)===n.aNeg?t.substring(1,t.length):"-"===r?n.aNeg+t:t,this.setValueParts(t,i),!0):!(r>="0"&&r<="9")||(n.aNeg&&""===t&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),n.vMax<=0&&n.vMin<n.vMax&&this.value.indexOf(n.aNeg)===-1&&"0"!==r&&(t=n.aNeg+t),this.setValueParts(t+r,i),!0)},formatQuick:function(){var n=this.settingsClone,i=this.getBeforeAfterStriped(),o=this.value,f,s,t,r,e,u,l,h;if((""===n.aSep||""!==n.aSep&&o.indexOf(n.aSep)===-1)&&(""===n.aSign||""!==n.aSign&&o.indexOf(n.aSign)===-1)&&(f=[],s="",f=o.split(n.aDec),f[0].indexOf("-")>-1&&(s="-",f[0]=f[0].replace("-",""),i[0]=i[0].replace("-","")),f[0].length>n.mInt&&"0"===i[0].charAt(0)&&(i[0]=i[0].slice(1)),i[0]=s+i[0]),t=c(this.value,this.settingsClone),r=t.length,t){for(e=i[0].split(""),u=0,u;u<e.length;u+=1)e[u].match("\\d")||(e[u]="\\"+e[u]);l=new RegExp("^.*?"+e.join(".*?"));h=t.match(l);h?(r=h[0].length,(0===r&&t.charAt(0)!==n.aNeg||1===r&&t.charAt(0)===n.aNeg)&&n.aSign&&"p"===n.pSign&&(r=this.settingsClone.aSign.length+("-"===t.charAt(0)?1:0))):n.aSign&&"s"===n.pSign&&(r-=n.aSign.length)}this.that.value!==t&&(this.that.value=t,this.setPosition(r));this.formatted=!0}};var a={init:function(r){return this.each(function(){var f=n(this),v=f.data("autoNumeric"),b=f.data(),w=f.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"),a,y;if("object"==typeof v)return this;v=n.extend({},n.fn.autoNumeric.defaults,b,r,{aNum:"0123456789",hasFocus:!1,removeBrackets:!1,runOnce:!1,tagList:["b","caption","cite","code","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","output","p","q","s","sample","span","strong","td","th","u","var"]});v.aDec===v.aSep&&n.error("autoNumeric will not function properly when the decimal character aDec: '"+v.aDec+"' and thousand separator aSep: '"+v.aSep+"' are the same character");f.data("autoNumeric",v);a=i(f,v);(w||"input"!==f.prop("tagName").toLowerCase()||n.error('The input type "'+f.prop("type")+'" is not supported by autoNumeric()'),n.inArray(f.prop("tagName").toLowerCase(),v.tagList)===-1&&"input"!==f.prop("tagName").toLowerCase()&&n.error("The <"+f.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),v.runOnce===!1&&v.aForm)&&(w&&(y=!0,""===f[0].value&&"empty"===v.wEmpty&&(f[0].value="",y=!1),""===f[0].value&&"sign"===v.wEmpty&&(f[0].value=v.aSign,y=!1),y&&""!==f.val()&&(null===v.anDefault&&f[0].value===f.prop("defaultValue")||null!==v.anDefault&&v.anDefault.toString()===f.val())&&f.autoNumeric("set",f.val())),n.inArray(f.prop("tagName").toLowerCase(),v.tagList)!==-1&&""!==f.text()&&f.autoNumeric("set",f.text()));v.runOnce=!0;f.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")&&(f.on("keydown.autoNumeric",function(t){return a=i(f),a.settings.aDec===a.settings.aSep&&n.error("autoNumeric will not function properly when the decimal character aDec: '"+a.settings.aDec+"' and thousand separator aSep: '"+a.settings.aSep+"' are the same character"),a.that.readOnly?(a.processed=!0,!0):(a.init(t),a.skipAllways(t)?(a.processed=!0,!0):a.processAllways()?(a.processed=!0,a.formatQuick(),t.preventDefault(),!1):(a.formatted=!1,!0))}),f.on("keypress.autoNumeric",function(n){a=i(f);var t=a.processed;return a.init(n),!!a.skipAllways(n)||(t?(n.preventDefault(),!1):a.processAllways()||a.processKeypress()?(a.formatQuick(),n.preventDefault(),!1):void(a.formatted=!1))}),f.on("keyup.autoNumeric",function(n){a=i(f);a.init(n);var t=a.skipAllways(n),r=a.kdCode;return a.kdCode=0,delete a.valuePartsBeforePaste,f[0].value===a.settings.aSign?"s"===a.settings.pSign?u(this,0,0):u(this,a.settings.aSign.length,a.settings.aSign.length):9===r&&u(this,0,f.val().length),!!t||""===this.value||void(a.formatted||a.formatQuick())}),f.on("focusin.autoNumeric",function(){var n,r,t;a=i(f);n=a.settingsClone;(n.hasFocus=!0,null!==n.nBracket)&&(r=f.val(),f.val(s(r,n)));a.inVal=f.val();t=e(a.inVal,n,!0);null!==t&&""!==t&&f.val(t)}),f.on("focusout.autoNumeric",function(){var u;a=i(f);var r=a.settingsClone,n=f.val(),v=n,s="";r.hasFocus=!1;"allow"===r.lZero&&(r.allowLeading=!1,s="leading");""!==n&&(n=t(n,r,s),null===e(n,r)&&l(n,r,f[0])?(n=h(n,r.aDec,r.aNeg),n=o(n,r),n=p(n,r.aDec,r.aNeg)):n="");u=e(n,r,!1);null===u&&(u=c(n,r));u===a.inVal&&u===v||(f.val(u),f.trigger("change"),delete a.inVal)}))})},destroy:function(){return n(this).each(function(){var t=n(this);t.removeData("autoNumeric");t.off(".autoNumeric")})},update:function(t){return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),e;return"object"!=typeof u&&n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method"),e=f.autoNumeric("get"),(u=n.extend(u,t),i(f,u,!0),u.aDec===u.aSep&&n.error("autoNumeric will not function properly when the decimal character aDec: '"+u.aDec+"' and thousand separator aSep: '"+u.aSep+"' are the same character"),f.data("autoNumeric",u),""!==f.val()||""!==f.text())?f.autoNumeric("set",e):void 0})},set:function(t){if(null!==t&&!isNaN(t))return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),i=t.toString(),e=t.toString(),s=f.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");return"object"!=typeof u&&n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),e!==f.attr("value")&&e!==f.text()||u.runOnce!==!1||(i=i.replace(",",".")),n.isNumeric(+i)||n.error("The value ("+i+") being 'set' is not numeric and has caused a error to be thrown"),i=y(i,u),u.setEvent=!0,i.toString(),""!==i&&(i=o(i,u)),i=p(i,u.aDec,u.aNeg),l(i,u)||(i=o("",u)),i=c(i,u),s?f.val(i):n.inArray(f.prop("tagName").toLowerCase(),u.tagList)!==-1&&f.text(i)})},get:function(){var f=r(n(this)),i=f.data("autoNumeric"),u;return"object"!=typeof i&&n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method"),u="",f.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")?u=f.eq(0).val():n.inArray(f.prop("tagName").toLowerCase(),i.tagList)!==-1?u=f.eq(0).text():n.error("The <"+f.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),""===u&&"empty"===i.wEmpty||u===i.aSign&&("sign"===i.wEmpty||"empty"===i.wEmpty)?"":(""!==u&&null!==i.nBracket&&(i.removeBrackets=!0,u=s(u,i),i.removeBrackets=!1),(i.runOnce||i.aForm===!1)&&(u=t(u,i)),u=h(u,i.aDec,i.aNeg),0==+u&&"keep"!==i.lZero&&(u="0"),"keep"===i.lZero?u:u=y(u,i))},getString:function(){var o=!1,s=r(n(this)),c=s.serialize(),u=c.split("&"),f=n("form").index(s),h=n("form:eq("+f+")"),i=[],e=[],l=/^(?:submit|button|image|reset|file)$/i,a=/^(?:input|select|textarea|keygen)/i,v=/^(?:checkbox|radio)$/i,y=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,t=0;return n.each(h[0],function(n,i){""===i.name||!a.test(i.localName)||l.test(i.type)||i.disabled||!i.checked&&v.test(i.type)?e.push(-1):(e.push(t),t+=1)}),t=0,n.each(h[0],function(n,r){"input"!==r.localName||""!==r.type&&"text"!==r.type&&"hidden"!==r.type&&"tel"!==r.type?(i.push(-1),"input"===r.localName&&y.test(r.type)&&(t+=1)):(i.push(t),t+=1)}),n.each(u,function(t,r){var s,h,c;r=u[t].split("=");s=n.inArray(t,e);s>-1&&i[s]>-1&&(h=n("form:eq("+f+") input:eq("+i[s]+")"),c=h.data("autoNumeric"),"object"==typeof c&&null!==r[1]&&(r[1]=n("form:eq("+f+") input:eq("+i[s]+")").autoNumeric("get").toString(),u[t]=r.join("="),o=!0))}),o||n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getString' method"),u.join("&")},getArray:function(){var e=!1,o=r(n(this)),s=o.serializeArray(),u=n("form").index(o),h=n("form:eq("+u+")"),i=[],f=[],c=/^(?:submit|button|image|reset|file)$/i,l=/^(?:input|select|textarea|keygen)/i,a=/^(?:checkbox|radio)$/i,v=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,t=0;return n.each(h[0],function(n,i){""===i.name||!l.test(i.localName)||c.test(i.type)||i.disabled||!i.checked&&a.test(i.type)?f.push(-1):(f.push(t),t+=1)}),t=0,n.each(h[0],function(n,r){"input"!==r.localName||""!==r.type&&"text"!==r.type&&"hidden"!==r.type&&"tel"!==r.type?(i.push(-1),"input"===r.localName&&v.test(r.type)&&(t+=1)):(i.push(t),t+=1)}),n.each(s,function(t,r){var o=n.inArray(t,f),s,h;o>-1&&i[o]>-1&&(s=n("form:eq("+u+") input:eq("+i[o]+")"),h=s.data("autoNumeric"),"object"==typeof h&&(r.value=n("form:eq("+u+") input:eq("+i[o]+")").autoNumeric("get").toString(),e=!0))}),e||n.error("None of the successful form inputs are initialized by autoNumeric."),s},getSettings:function(){var t=r(n(this));return t.eq(0).data("autoNumeric")}};n.fn.autoNumeric=function(t){return a[t]?a[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error('Method "'+t+'" is not supported by autoNumeric()'):a.init.apply(this,arguments)};n.fn.autoNumeric.defaults={aSep:",",dGroup:"3",aDec:".",altDec:null,aSign:"",pSign:"p",vMax:"9999999999999.99",vMin:"-9999999999999.99",mDec:null,mRound:"S",aPad:!0,nBracket:null,wEmpty:"empty",lZero:"allow",sNumber:!0,aForm:!0,anDefault:null}}),function(n){n.fn.forceNumeric=function(t){var i=n.extend({allowNegative:!1,allowDecimal:!1,decimalPlaces:0},t);return this.each(function(){n(this).off("keypress.neoForceNumeric").on("keypress.neoForceNumeric",function(t){var u,o=!1,s,c,h,v,y;if(window.event?(u=t.keyCode,o=window.event.ctrlKey):t.which&&(u=t.which,o=t.ctrlKey),h=n(this),!(o==!0&&u===67)&&h.attr("readonly")!=undefined&&(h.attr("readonly")=="readonly"||h.attr("readonly")=="true"))return!1;if(isNaN(u)||(s=String.fromCharCode(u),u==8||o))return!0;c=/\d/;var l=i.allowNegative?s=="-"&&this.value.indexOf("-")==-1:!1,a=i.allowDecimal?s=="."&&this.value.indexOf(".")==-1:!1,e=n(this).getCursorPosition(),r=n(this).val(),f=r.length;if(i.allowNegative&&l)return e==0;if(i.allowDecimal&&a&&i.decimalPlaces>0){if(e==f||f-e<=i.decimalPlaces)return!0;if(f-e!=i.decimalPlaces)return v=r.substring(0,f-i.decimalPlaces),y=r.substring(f-i.decimalPlaces,f),n(this).val(v+"."+y),!1}return i.allowDecimal&&r.indexOf(".")>0&&e>r.indexOf(".")&&r.length-r.indexOf(".")>i.decimalPlaces?!1:l||a||c.test(s)}).on("paste.neoForceNumeric drag.neoForceNumeric drop.neoForceNumeric",function(){var t=n(this),i=n(this).val(),r=function(){n.isNumeric(t.val())?!t.hasClass("ForceNumericAllowNegative")&&n.trim(t.val())<0?t.val(i):n.trim(t.val()).indexOf(".")>=0?t.val(i):(t.val(n.trim(t.val())),t.trigger("change")):t.val(i)};setTimeout(r,0)});n(this).keydown(function(t){var r,u=!1,i;return window.event?(r=t.keyCode,u=window.event.ctrlKey):t.which&&(r=t.which,u=t.ctrlKey),i=n(this),!(u==!0&&r===67)&&i.attr("readonly")!=undefined&&(i.attr("readonly")=="readonly"||i.attr("readonly")=="true")?!1:void 0})})};n.fn.getCursorPosition=function(){var i=0,t=n(this).get(0),r,u;return document.selection?(t.focus(),r=document.selection.createRange(),u=document.selection.createRange().text.length,r.moveStart("character",-t.value.length),i=r.text.length-u):(t.selectionStart||t.selectionStart=="0")&&(i=t.selectionStart),i}}(jQuery),function(n,t){function r(n,t,i){return(n=n+"",t=t||2,i=t-n.length,i)?y[t].substring(0,i)+n:n}var i=window.neoFormat=window.neoFormat||{},c=Math,l=window.JSON||{},a=/\{(\d+)(:[^\}]+)?\}/g,e="function",o="string",u="number",s="object",h="null",v="boolean",p=[].slice,f=window.Globalize,y=["","0","00","000","0000"];(function(){function a(n){return c.lastIndex=0,c.test(n)?'"'+n.replace(c,function(n){var t=y[n];return typeof t===o?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function f(r,c){var y,k,w,g,nt=n,b,l=c[r],d;if(l&&typeof l===s&&typeof l.toJSON===e&&(l=l.toJSON(r)),typeof t===e&&(l=t.call(c,r,l)),d=typeof l,d===o)return a(l);if(d===u)return isFinite(l)?String(l):h;if(d===v||d===h)return String(l);if(d===s){if(!l)return h;if(n+=i,b=[],p.apply(l)==="[object Array]"){for(g=l.length,y=0;y<g;y++)b[y]=f(y,l)||h;return w=b.length===0?"[]":n?"[\n"+n+b.join(",\n"+n)+"\n"+nt+"]":"["+b.join(",")+"]",n=nt,w}if(t&&typeof t===s)for(g=t.length,y=0;y<g;y++)typeof t[y]===o&&(k=t[y],w=f(k,l),w&&b.push(a(k)+(n?": ":":")+w));else for(k in l)Object.hasOwnProperty.call(l,k)&&(w=f(k,l),w&&b.push(a(k)+(n?": ":":")+w));return w=b.length===0?"{}":n?"{\n"+n+b.join(",\n"+n)+"\n"+nt+"}":"{"+b.join(",")+"}",n=nt,w}}var c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,i,y={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t,p={}.toString;typeof Date.prototype.toJSON!==e&&(Date.prototype.toJSON=function(){var n=this;return isFinite(n.valueOf())?r(n.getUTCFullYear(),4)+"-"+r(n.getUTCMonth()+1)+"-"+r(n.getUTCDate())+"T"+r(n.getUTCHours())+":"+r(n.getUTCMinutes())+":"+r(n.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});typeof l.stringify!==e&&(l.stringify=function(r,h,c){var l;if(n="",i="",typeof c===u)for(l=0;l<c;l+=1)i+=" ";else typeof c===o&&(i=c);if(t=h,h&&typeof h!==e&&(typeof h!==s||typeof h.length!==u))throw new Error("JSON.stringify");return f("",{"":r})})})(),function(){function tt(n){if(n==null||n.trim()=="")return null;switch(n.toLowerCase()){case"en-ca":return{name:"en-CA",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"Canadian Dollar",abbr:"CAD",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"],namesCAPs:["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"],namesAbbrCAPs:["SUN","MON","TUE","WED","THU","FRI","SAT"],namesShortCAPs:["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"],namesCAPs:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],namesAbbrCAPs:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{GT:"yyyy-MM-dd H:mm:ss",d:"yyyy-MM-dd",D:"MMMM d, yyyy",F:"MMMM d, yyyy h:mm:ss tt",g:"yyyy-MM-dd h:mm tt",G:"yyyy-MM-dd h:mm:ss tt",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'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}}}}}function p(n){var r,u;return n?n.numberFormat?n:typeof n===o?(r=i.cultures,r[n]||(u=tt(n),u!=t&&(i.cultures[n]=u,r=i.cultures)),r[n]||r[n.split("-")[0]]||null):null:null}function w(n){return n&&(n=p(n)),n||i.cultures.current}function it(n,i,u){var e;u=w(u);var f=u.calendars.standard,o=f.days,s=f.months;return i=f.patterns[i]||i,e=Sagitec.nsFormatting.iblnShowDateCaptionsInCaps===!0?"CAPs":"",i.replace(k,function(i){var u;return i==="d"?u=n.getDate():i==="dd"?u=r(n.getDate()):i==="ddd"?u=o["namesAbbr"+e][n.getDay()]:i==="dddd"?u=o["names"+e][n.getDay()]:i==="M"?u=n.getMonth()+1:i==="MM"?u=r(n.getMonth()+1):i==="MMM"?u=s["namesAbbr"+e][n.getMonth()]:i==="MMMM"?u=s["names"+e][n.getMonth()]:i==="yy"?u=r(n.getFullYear()%100):i==="yyyy"?u=r(n.getFullYear(),4):i==="h"?u=n.getHours()%12||12:i==="hh"?u=r(n.getHours()%12||12):i==="H"?u=n.getHours():i==="HH"?u=r(n.getHours()):i==="m"?u=n.getMinutes():i==="mm"?u=r(n.getMinutes()):i==="s"?u=n.getSeconds():i==="ss"?u=r(n.getSeconds()):i==="f"?u=c.floor(n.getMilliseconds()/100):i==="ff"?u=c.floor(n.getMilliseconds()/10):i==="fff"?u=n.getMilliseconds():i==="tt"&&(u=n.getHours()<12?f.AM[0]:f.PM[0]),u!==t?u:i.slice(1,i.length-1)})}function rt(i,r,u){u=w(u);var o=u.numberFormat,ut=o.groupSize[0],ct=o[l],at=o[e],lt=o.decimals,bt=o.pattern[0],vt=[],yt,ft,et,pt,wt,st=i<0,y,it,k,ii,kt=n,a=n,f,rt,p,dt,ni,tt,v,c,gt,ti,ot=-1,ht;if(i===t)return n;if(!isFinite(i))return i;if(!r)return u.name.length?i.toLocaleString():i.toString();if(wt=d.exec(r),wt){if(r=wt[1].toLowerCase(),ft=r==="c",et=r==="p",(ft||et)&&(o=ft?o.currency:o.percent,ut=o.groupSize[0],ct=o[l],at=o[e],lt=o.decimals,yt=o.symbol,bt=o.pattern[st?0:1]),pt=wt[2],pt&&(lt=+pt),r==="e")return pt?i.toExponential(lt):i.toExponential();if(et&&(i*=100),i=i.toFixed(lt),i=i.split(e),y=i[0],it=i[1],st&&(y=y.substring(1)),a=y,k=y.length,k>=ut)for(a=n,f=0;f<k;f++)f>0&&(k-f)%ut==0&&(a+=ct),a+=y.charAt(f);if(it&&(a+=at+it),r==="n"&&!st)return a;for(i=n,f=0,rt=bt.length;f<rt;f++)p=bt.charAt(f),i+=p==="n"?a:p==="$"||p==="%"?yt:p;return i}if(st&&(i=-i),r=r.split(";"),st&&r[1])r=r[1],ni=!0;else if(i===0){if(r=r[2]||r[0],r.indexOf(s)==-1&&r.indexOf(h)==-1)return r}else r=r[0];if((r.indexOf("'")>-1||r.indexOf('"')>-1)&&(r=r.replace(g,function(n){return vt.push(n),b})),gt=r.indexOf("%"),et=gt!=-1,ft=r.indexOf("$")!=-1,et&&(r[gt-1]!=="\\"?i*=100:r=r.split("\\").join("")),(ft||et)&&(o=ft?o.currency:o.percent,ut=o.groupSize[0],ct=o[l],at=o[e],lt=o.decimals,yt=o.symbol),dt=r.indexOf(l)>-1,dt&&(r=r.replace(nt,n)),tt=r.indexOf(e),rt=r.length,tt!=-1?(c=r.lastIndexOf(h),v=r.lastIndexOf(s),it=i.toString().split(e)[1]||n,v>c&&it.length>v-c?f=v:c!=-1&&c>=tt&&(f=c),f&&(i=i.toFixed(f-tt))):i=i.toFixed(0),v=r.indexOf(s),ti=c=r.indexOf(h),ot=v==-1&&c!=-1?c:v!=-1&&c==-1?v:v>c?c:v,v=r.lastIndexOf(s),c=r.lastIndexOf(h),ht=v==-1&&c!=-1?c:v!=-1&&c==-1?v:v>c?v:c,ot==rt&&(ht=ot),ot!=-1){if(a=i.toString().split(e),y=a[0],it=a[1]||n,k=y.length,ii=it.length,dt)if(k===ut&&k<tt-ti)y=ct+y;else if(k>ut){for(a=n,f=0;f<k;f++)f>0&&(k-f)%ut==0&&(a+=ct),a+=y.charAt(f);y=a}for(i=r.substring(0,ot),st&&!ni&&(i+="-"),f=ot;f<rt;f++){if(p=r.charAt(f),tt==-1){if(ht-f<k){i+=y;break}}else if(c!=-1&&c<f&&(kt=n),tt-f<=k&&tt-f>-1&&(i+=y,f=tt),tt===f){i+=(it?at:n)+it;f+=ht-tt+1;continue}p===h?(i+=p,kt=p):p===s&&(i+=kt)}if(ht>=ot&&(i+=r.substring(ht+1)),ft||et){for(a=n,f=0,rt=i.length;f<rt;f++)p=i.charAt(f),a+=p==="$"||p==="%"?yt:p;i=a}if(vt[0])for(rt=vt.length,f=0;f<rt;f++)i=i.replace(b,vt[f])}return i}var k=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,g=/["'].*?["']/g,nt=/\,/g,n="",e=".",l=",",s="#",h="0",b="??",y="en-US",v;i.cultures={"en-US":{name:y,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{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"],namesCAPs:["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"],namesAbbrCAPs:["SUN","MON","TUE","WED","THU","FRI","SAT"],namesShortCAPs:["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"],namesCAPs:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],namesAbbrCAPs:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{GT:"M/d/yyyy H:mm:ss",d:"MM/dd/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"MM/dd/yyyy hh:mm tt",G:"MM/dd/yyyy hh:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"hh:mm tt",T:"hh:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}};i.cultures.DefaultCulture=i.cultures[y];i.culture=function(n){var u=i.cultures,r;if(n!=t)r=p(n)||u[y],r.calendar=r.calendars.standard,u.current=r,i.cultures.current=r;else return u.current};i.findCulture=p;i.getCulture=w;i.culture("en-US");v=function(n,i,r){if(i){if(n instanceof Date)return it(n,i,r);if(typeof n===u)return rt(n,i,r)}return n!==t?n:""};f&&(v=proxy(f.format,f));i.format=function(n){var t=arguments;return n.replace(a,function(n,i,r){var u=t[parseInt(i,10)+1];return v(u,r?r.substring(1):"")})};i._extractFormat=function(n){return n.slice(0,3)==="{0:"&&(n=n.slice(3,n.length-1)),n};i.toString=v}(),function(){function r(n,t,i){return!(n>=t&&n<=i)}function p(n){return n.charAt(0)}function s(t){return n.map(t,p)}function h(n,t){t||n.getHours()!==23||n.setHours(n.getHours()+2)}function w(n,u,f){if(!n)return null;var k=function(n){for(var t=0;u[rt]===n;)t++,rt++;return t>0&&(rt-=1),t},tt=function(t){var r=y[t]||new RegExp("^\\d{1,"+t+"}"),i=n.substr(g,t).match(r);return i?(i=i[0],g+=i.length,parseInt(i,10)):null},ht=function(t){for(var i=0,f=t.length,r,u;i<f;i++)if(r=t[i],u=r.length,n.substr(g,u)==r)return g+=u,i+1;return null},et=function(){var t=!1;return n.charAt(g)===u[rt]&&(g++,t=!0),t},d=f.calendars.standard,p=null,o=null,w=null,c=null,ut=null,ot=null,it=null,rt=0,g=0,vt=!1,ni=new Date,yt=ni.getFullYear(),v,e,kt,pt,wt,dt,gt,nt,ct,lt,at,st,bt;u||(u="d");pt=d.patterns[u];pt&&(u=pt);u=u.split("");kt=u.length;for(var ft=u.length,ti=n.length,b=Sagitec.nsFormatting.iblnShowDateCaptionsInCaps===!0?"CAPs":"";rt<kt;rt++)if(v=u[rt],vt)v==="'"?vt=!1:et();else if(v==="d"){if(e=k("d"),e<3?w=tt(2):(w=ht(d.days[e==3?"namesAbbr"+b:"names"+b]),w!=null&&d.days[e==3?"namesAbbr"+b:"names"+b][w-1]!=t&&(ft=ft+(d.days[e==3?"namesAbbr"+b:"names"+b][w-1].length-e))),w===null||r(w,1,31))return null}else if(v==="M"){if(e=k("M"),e<3?o=tt(2):(o=ht(d.months[e==3?"namesAbbr"+b:"names"+b]),o!=null&&d.months[e==3?"namesAbbr"+b:"names"+b][o-1]!=t&&(ft=ft+(d.months[e==3?"namesAbbr"+b:"names"+b][o-1].length-e))),o===null||r(o,1,12))return null;o-=1}else if(v==="y"){if(e=k("y"),p=tt(e),p===null)return null;e==2&&(bt=yt-yt%100,30<p&&(bt-=100),p=bt+p,ft=ft+2)}else if(v==="h"){if(k("h"),c=tt(2),c==12&&(c=0),c===null||r(c,0,11))return null}else if(v==="H"){if(k("H"),c=tt(2),c===null||r(c,0,23))return null}else if(v==="m"){if(k("m"),ut=tt(2),ut===null||r(ut,0,59))return null}else if(v==="s"){if(k("s"),ot=tt(2),ot===null||r(ot,0,59))return null}else if(v==="f"){if(e=k("f"),it=tt(e),it!==null&&e>3&&(it=parseInt(it.toString().substring(0,3),10)),it===null||r(it,0,999))return null}else if(v==="t"){if(e=k("t"),ct=d.AM,lt=d.PM,e===1&&(ct=s(ct),lt=s(lt)),wt=ht(lt),!wt&&!ht(ct))return null}else if(v==="z"){if(dt=!0,e=k("z"),n.substr(g,1)==="Z"){if(!gt)return null;et();continue}if((nt=n.substr(g,6).match(e>2?a:l),!nt)||(nt=nt[0],g=nt.length,nt=nt.split(":"),at=parseInt(nt[0],10),r(at,-12,13))||e>2&&(st=parseInt(nt[1],10),isNaN(st)||r(st,0,59)))return null}else if(v==="T")gt=et();else if(v==="'")vt=!0,et();else if(!et())return null;if(p===null&&(p=yt,o===null&&(o=0)),wt&&c<12&&(c+=12),w===null&&(w=1),dt){if(at&&(c+=-at),st&&(ut+=-st),n=new Date(Date.UTC(p,o,w,c,ut,ot,it)),!i.ValidateDate(p,o,w,n))return null}else{if(n=new Date(p,o,w,c,ut,ot,it),!i.ValidateDate(p,o,w,n))return null;h(n,c)}return p<100&&n.setFullYear(p),n}var e=/\u00A0/g,c=/[eE][\-+]?[0-9]+/,l=/[+|\-]\d{1,2}/,a=/[+|\-]\d{1,2}:\d{2}/,v=/^\/Date\((.*?)\)\/$/,o=["GT","G","g","d","F","D","y","m","T","t"],y={2:/^\d{1,2}/,4:/^\d{4}/};i._parseExact=w;i._adjustDate=h;i.customFormat=["yyyy-MM-ddTHH:mm:ss","MM/dd/yyyy HH:mm:ss","MM/dd/yyyy hh:mm:ss tt","MM/dd/yyyy HH:mm","MM/dd/yyyy HH:mm tt","MM/dd/yyyy","M/d/yyyy","M/d/yyyy HH:mm:ss","M/d/yyyy hh:mm:ss tt","M/d/yyyy HH:mm","M/d/yyyy HH:mm tt","dd/MM/yyyy","MM-dd-yyyy HH:mm:ss","MM-dd-yyyy hh:mm:ss tt","dd-MM-yyyy HH:mm:ss","dd-MM-yyyy hh:mm:ss tt","dd/MM/yyyy HH:mm:ss","dd/MM/yyyy hh:mm:ss tt","dd-MMM-yyyy","dd/MMM/yyyy","dd-MMM-yyyy HH:mm:ss","dd/MMM/yyyy HH:mm:ss","dd-MMM-yyyy HH:mm","dd/MMM/yyyy HH:mm","dd-MMM-yyyy HH:mm tt","dd/MMM/yyyy HH:mm tt","dd/MMM/yyyy hh:mm:ss tt","dd-MMM-yyyy hh:mm:ss tt","hh:mm:ss tt","hh:mm tt","hh:mm:ss","hh:mm","HH:mm:ss","HH:mm","MM/yyyy","yyyy/MM","MM/yy","yy/MM","MM/dd","dd/MM"];i.parseDate=function(r,u,f){var e,s,h,l,c;if(r==null)return null;if(r instanceof Date)return r;if(e=0,s=null,r&&r.indexOf("/D")===0&&(s=v.exec(r),s))return new Date(parseInt(s[1],10));if(f=i.getCulture(f),r=r.trim(),!u){for(u=[],l=f.calendar.patterns,h=o.length;e<h;e++)u[e]=l[o[e]];if(u[e]="ddd MMM dd yyyy HH:mm:ss",i.customFormat!=t&&i.customFormat.length>0)for(c=0;c<i.customFormat.length;c++)u[++e]=i.customFormat[c];else u[++e]="yyyy-MM-ddTHH:mm:ss",u[++e]="MM/dd/yyyy HH:mm:ss",u[++e]="MM/dd/yyyy hh:mm:ss tt",u[++e]="MM/dd/yyyy",u[++e]="dd/MM/yyyy",u[++e]="MM-dd-yyyy HH:mm:ss",u[++e]="MM-dd-yyyy hh:mm:ss tt",u[++e]="dd-MM-yyyy HH:mm:ss",u[++e]="dd-MM-yyyy hh:mm:ss tt",u[++e]="dd/MM/yyyy HH:mm:ss",u[++e]="dd/MM/yyyy hh:mm:ss tt",u[++e]="hh:mm:ss tt",u[++e]="hh:mm tt",u[++e]="HH:mm:ss",u[++e]="HH:mm",u[++e]="hh:mm:ss",u[++e]="hh:mm";u[++e]="yyyy-MM-ddTHH:mm:ss.fffffffzzz";u[++e]="yyyy-MM-ddTHH:mm:ss.fffzzz";u[++e]="yyyy-MM-ddTHH:mm:sszzz";u[++e]="yyyy-MM-ddTHH:mmzzz";u[++e]="yyyy-MM-ddTHH:mmzz";u[++e]="yyyy-MM-dd";e=0}for(u=n.isArray(u)?u:[u],h=u.length;e<h;e++)if(s=i._parseExact(r,u[e],f),s)return s;return s};i.IsLeapYear=function(n){return!(n%4||!(n%100)&&n%400)};i.ValidateDate=function(n,t,i,r){var u=!0;return r!=null&&r instanceof Date?t>11||i>31?u=!1:(t!=r.getMonth()||i!=r.getDate())&&(u=!1):u=!1,u};i.parseInt=function(n,t){var r=i.parseFloat(n,t);return r&&(r=r|0),r};i.parseFloat=function(n,t,r){if(!n&&n!==0)return null;if(typeof n===u)return n;n=n.toString();t=i.getCulture(t);var f=t.numberFormat,h=f.percent,l=f.currency,s=l.symbol,a=h.symbol,v=n.indexOf("-")>-1,o,y;return c.test(n)?(n=parseFloat(n),isNaN(n)&&(n=null),n):(n.indexOf(s)>-1||r&&r.toLowerCase().indexOf("c")>-1?(f=l,o=f.pattern[0].replace("$",s).split("n"),n.indexOf(o[0])>-1&&n.indexOf(o[1])>-1&&(n=n.replace(o[0],"").replace(o[1],""),v=!0)):n.indexOf(a)>-1&&(y=!0,f=h,s=a),n=n.replace("-","").replace(s,"").replace(e," ").split(f[","].replace(e," ")).join("").replace(f["."],"."),n=parseFloat(n),isNaN(n)?n=null:v&&(n*=-1),n&&y&&(n/=100),n)};f&&(i.parseDate=function(n,t,i){return n instanceof Date?n:f.parseDate(n,t,i)},i.parseFloat=function(n,t){return typeof n===u?n:f.parseFloat(n,t)})}();i.isNodeEmpty=function(t){return n.trim(n(t).contents().filter(function(){return this.nodeType!=8}).html())===""};i.htmlEncode=function(n){return(""+n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};i.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};i.replaceAll=function(n,i,r,u){u===t&&(u=!1);var f;return f=u==!0?new RegExp(["(",i,")"].join(""),"g"):new RegExp(["(",i,")"].join(""),"gi"),n.replace(f,r)};i.FormatValue=function(n,i,r){if(n=="undefined"||n==t||n=="")return"";if(i=="undefined"||i==t||i=="")return n;Array.isArray(i)||(i=i.split(""));var f,u,o="",e=0;for(var s in i)f=i[s],u=f.charCodeAt(0),(u>=48&&u<=57||u>=65&&u<=91||u>=97&&u<=122||f==nsConstants.HASH)&&e++;if(e!==[n,""].join("").length)while(e>[n,""].join("").length)n=r===!0?["|",n].join(""):["0",n].join("");e=0;for(s in i)f=i[s],u=f.charCodeAt(0),u>=48&&u<=56||u>=65&&u<=91||u>=97&&u<=122?(o+=f,e++):f=="#"||f=="9"?(o+=r===!0&&n[e]==="|"?"":n[e],e++):o+=f;return o};i.GetFormatedValue=function(n,r){var u=r,o,e,f;if(n==t)return u;if(u===null||u==="")return"";n=i.replaceAll(n,"X~X","\\\\#");n=i.replaceAll(n,"XY~XY","\\#");n=i.replaceAll(n,"XYH~XYH","#");n=n.replace("DSP~DSP","'%");o=n;(nsConstants.LIST_MONTHNAME_DATE_FORMATS&&nsConstants.LIST_MONTHNAME_DATE_FORMATS.indexOf(n)>=0||n.contains("MM",!0)&&n.contains("yy",!0)||n.contains("HH",!0)&&n.contains("mm",!0)||n.contains("dd",!0)&&n.contains("MM",!0)||n.contains("d",!0)&&n.contains("M",!0)&&n.contains("y",!0))&&(n="Dateformat");switch(n){case"{0:C}":case"{0:c}":isNaN(u)||(u=i.toString(u*1,"c"));break;case"{0:0.00'%}":case"{0:#0.00'%}":case"{0:\\#0.00'%}":case"{0:\\\\#0.00'%}":isNaN(u)||(u=i.toString(u*1,"0.00\\%"));break;case"{0:#0.000'%}":case"{0:\\#0.000'%}":case"{0:\\\\#0.000'%}":isNaN(u)||(u=i.toString(u*1,"0.000\\%"));break;case"{0:#0.0000'%}":case"{0:\\#0.0000'%}":case"{0:\\\\#0.0000'%}":isNaN(u)||(u=i.toString(u*1,"0.0000\\%"));break;case"{0:#0.00000'%}":case"{0:\\#0.00000'%}":case"{0:\\\\#0.00000'%}":isNaN(u)||(u=i.toString(u*1,"0.00000\\%"));break;case"{0:P}":case"{0:p}":isNaN(u)||(u=i.toString(u*1,"# \\%"));break;case"{0:0.0'%}":case"{0:0.00'%}":case"{0:0.000'%}":case"{0:0.0000'%}":case"{0:0.00000'%}":case"{0:0.000000'%}":case"{0:0.0000000'%}":case"{0:0.00000000'%}":case"{0:0.000000000'%}":case"{0:0.0000000000'%}":isNaN(u)||(f=n.replace("{0:","").replace("'%}","\\%"),u=i.toString(u*1,f));break;case"{0:MM/dd/yyyy}":u=i.parseDate(u);u=u!=null?i.format("{0:MM/dd/yyyy}",u):"";break;case"{0:d}":u!=null?(u=Sagitec.nsFormatting.DateTimeFormatter.GetFormattedDateValue(u),u=Sagitec.nsFormatting.iblnShowDateCaptionsInCaps===!0&&u!=t&&u.toUpperCase?u.toUpperCase():u):u="";break;case"dd-MMMM-yyyy":case"dd/MMMM/yyyy":case"dd-MMMM-yyyy HH:mm:ss":case"dd/MMMM/yyyy HH:mm:ss":case"{0:dd-MMMM-yyyy}":case"{0:dd/MMMM/yyyy}":case"{0:dd-MMMM-yyyy HH:mm:ss}":case"{0:dd/MMMM/yyyy HH:mm:ss}":case"{0:dd-MM-yyyy}":case"{0:dd/MM/yyyy}":case"{0:dd-MM-yy}":case"{0:dd/MM/yy}":case"dd-MM-yyyy":case"dd/MM/yyyy":case"dd-MM-yy":case"dd/MM/yy":case"Dateformat":n=o;u!=null?(u=Sagitec.nsFormatting.DateTimeFormatter.GetFormattedDateValue(u,n),u=Sagitec.nsFormatting.iblnShowDateCaptionsInCaps===!0&&u!=t&&u.toUpperCase?u.toUpperCase():u):u="";break;case"{0:g}":case"g":case"{0:G}":case"G":case"{0:t}":case"t":case"{0:T}":u!=null?(u=Sagitec.nsFormatting.DateTimeFormatter.GetFormattedDateValue(u,n),u=Sagitec.nsFormatting.iblnShowDateCaptionsInCaps===!0&&u!=t&&u.toUpperCase?u.toUpperCase():u):u="";break;case"{0:000-##-####}":case"{0:000-\\#\\#-\\#\\#\\#\\#}":case"{0:000-\\\\#\\\\#-\\\\#\\\\#\\\\#\\\\#}":if(u!=""){if(u.indexOf("-")>0)return u;u=i.FormatValue(u,"999-99-9999")}break;case"{0:000-###-###}":case"{0:000-\\#\\#\\#-\\#\\#\\#}":case"{0:000-\\\\#\\\\#\\\\#-\\\\#\\\\#\\\\#}":if(u!=""){if(u.indexOf("-")>0)return u;u=i.FormatValue(u,"999-999-999")}break;case"{0:00-###}":case"{0:0-\\#\\#\\#}":case"{0:0-\\\\#\\\\#\\\\#}":if(u!=""){if(u.indexOf("-")>0)return u;u=i.FormatValue(u,"9-999")}break;case"{0:(###)###-####}":case"{0:(\\#\\#\\#)\\#\\#\\#-\\#\\#\\#\\#}":case"{0:(\\\\#\\\\#\\\\#)\\\\#\\\\#\\\\#-\\\\#\\\\#\\\\#\\\\#}":if(u!=""){if(u.indexOf("-")>0)return u;u=i.FormatValue(u,"(999)999-9999")}break;case"{0:00-#######}":case"{0:00-\\#\\#\\#\\#\\#\\#\\#}":case"{0:00-\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#}":if(u!=""){if(u.indexOf("-")>0)return u;u=i.FormatValue(u,"99-9999999")}break;default:n!=""&&n!=t&&(nsConstants.LIST_MONTHNAME_DATE_FORMATS!=t&&nsConstants.LIST_MONTHNAME_DATE_FORMATS.indexOf(n)>=0?u=u!=null&&u!=""?Sagitec.nsFormatting.DateTimeFormatter.GetFormattedDateValue(u,n):"":isNaN(u)?typeof nsUserFunctions[nsConstants.USER_DEFINED_APPLY_FORMAT]=="function"&&(u=i.applyUserDefinedFormat(n,r,null,!0,u,!1)):n.toUpperCase().indexOf("{0:P")===0?(e=i.getPercentagePrecision(n),e=["0",e,"\\%"].join(""),u=i.toString(u*1,e)):n.indexOf("{0:9")===0&&n.substr(0,4)=="{0:9"&&n.indexOf(".")<0&&n.substr(n.length-2,2)=="9}"&&!isNaN(Number(n.replace("{0:",nsConstants.BLANK_STRING).replace("}",nsConstants.BLANK_STRING)))?(f=n.replace("{0:","").replace("}",""),u=i.FormatValue(u,f,!0)):n.indexOf("{0:9")===0&&n.substr(0,4)=="{0:9"&&n.indexOf(".")>0&&n.substr(n.length-2,2)=="9}"&&!isNaN(Number(n.replace("{0:",nsConstants.BLANK_STRING).replace("}",nsConstants.BLANK_STRING)))?(f=n.replace("{0:","").replace("}",""),u=i.toString(u*1,i.replaceAll(f,"9","0"))):n.indexOf("{0:9")===0&&n.substr(0,4)=="{0:9"&&n.substr(n.length-2,2)=="9}"&&isNaN(Number(n.replace("{0:",nsConstants.BLANK_STRING).replace("}",nsConstants.BLANK_STRING)))?(f=n.replace("{0:","").replace("}",""),u=i.FormatValue(u,f)):n.indexOf("{0:")==0&&(f=n.replace("{0:","").replace("}",""),u=i.toString(u*1,f),typeof nsUserFunctions[nsConstants.USER_DEFINED_APPLY_FORMAT]=="function"&&(u=i.applyUserDefinedFormat(n,r,null,!0,u,!1))))}return u};i.getPercentagePrecision=function(n){var u,r;if(n!=t&&n.indexOf("'%}")>0)return[".",n.substring(n.indexOf(".")+1,n.indexOf("'%}"))].join("");var f=10,e=2,i=n;return i!=t&&i!=""&&(i=i.slice(0,-1),u="{0:P}",u=u.toUpperCase().slice(0,-1),r=i.substring(u.length),isNaN(Number(r))||Number(r)>0&&(e=Number(r)>f?f:Number(r))),"."+Array(e+1).join("0")};i.applyUserDefinedFormat=function(i,r,u,f,e,o){var c=nsUserFunctions[nsConstants.USER_DEFINED_APPLY_FORMAT],l,h,s;return typeof c=="function"&&(l={DataFormat:i,Value:r,Control:u,IsLabel:f,FormatedValue:e,IsFromGrid:o},h={},h.context=l,s=c(h),s!=t&&n.trim(s)!=""&&(e=s)),f===!0&&e!=t?e:void 0};String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});String.format||(String.format=function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(n,i){return typeof t[i]!="undefined"?t[i]:n})})}(jQuery);
/*! xlsx.js (C) 2013-2015 SheetJS -- http://sheetjs.com */
XLSX={};XLSX.Predefined_Excel_Formats={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0;(#,##0)",38:"#,##0;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",41:"$#,##0.00_);($#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',59:"0.000%",60:"0.0000%",61:"0.00000%",62:"0.0000000%",63:"0.00000000%",64:"0.000000000%",65:"0.0000000000%",66:"$#,##0.00_);[Red]($#,##0.00)",67:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',164:"###0.00",165:"mm/dd/yyyy",166:"MM/dd/yyyy",167:"MM/dd/yyyy HH:mm:ss",168:"yyyy/MM/dd HH:mm:ss",169:"dd/MM/yyyy HH:mm:ss",170:"M/d/yyyy H:mm:ss AM/PM",171:"yyyy/M/d H:mm:ss AM/PM",172:"d/M/yyyy H:mm:ss AM/PM",173:"yyyy/MM/dd",174:"dd/MM/yyyy",175:"mm-dd-yy",65535:"General"};XLSX.Latest_Excel_Format_Key=175;XLSX.Custom_Excel_Formats=[];XLSX.Excel_Formats=XLSX.Predefined_Excel_Formats;XLSX.MAX_UTC_DATE=Date.UTC(2099,11,31),function(n){function he(){gt(1200)}function lu(n){for(var i=[],t=0,r=n.length;t<r;++t)i[t]=n.charCodeAt(t);return i}function au(n){return new(tt?Buffer:Array)(n)}function vu(n){return tt?new Buffer(n,"binary"):n.split("").map(function(n){return n.charCodeAt(0)&255})}function ki(n){return n!==undefined&&n!==null}function w(n){return Object.keys(n)}function ua(n,t){for(var u=[],r=w(n),i=0;i!==r.length;++i)u[n[r[i]][t]]=r[i];return u}function fa(n){for(var r=[],i=w(n),t=0;t!==i.length;++t)r[n[i[t]]]=i[t];return r}function le(n){for(var r=[],i=w(n),t=0;t!==i.length;++t)r[n[i[t]]]=parseInt(i[t],10);return r}function ea(n){for(var r=[],i=w(n),t=0;t!==i.length;++t)r[n[i[t]]]==null&&(r[n[i[t]]]=[]),r[n[i[t]]].push(i[t]);return r}function or(t,i){i&&(t+=1462);var r=Date.parse(t);return(r+n.MAX_UTC_DATE)/864e5}function oa(n){for(var i="",t=0;t!=n.length;++t)i+=String.fromCharCode(n[t]);return i}function sa(n){if(!n)return null;if(n.name.substr(-4)===".bin"){if(n.data)return lu(n.data);if(n.asNodeBuffer&&tt)return n.asNodeBuffer();if(n._data&&n._data.getContent)return Array.prototype.slice.call(n._data.getContent())}else{if(n.data)return n.name.substr(-4)!==".bin"?fi(n.data):lu(n.data);if(n.asNodeBuffer&&tt)return fi(n.asNodeBuffer().toString("binary"));if(n.asBinary)return fi(n.asBinary());if(n._data&&n._data.getContent)return fi(oa(Array.prototype.slice.call(n._data.getContent(),0)))}return null}function ae(n,t){var i=t;return n.files[i]?n.files[i]:(i=t.toLowerCase(),n.files[i])?n.files[i]:(i=i.replace(/\//g,"\\"),n.files[i])?n.files[i]:null}function ve(n,t){var i=ae(n,t);if(i==null)throw new Error("Cannot find file "+t+" in zip");return i}function c(n,t,i){if(!i)return sa(ve(n,t));if(!t)return null;try{return c(n,t)}catch(r){return null}}function l(n,t){for(var e=[],o=0,i=0;o!==n.length;++o)if((i=n.charCodeAt(o))===32||i===10||i===13)break;if(t||(e[0]=n.substr(0,o)),o===n.length)return e;var h=n.match(ha),r=0,c="",s=0,u="",f="";if(h)for(s=0;s!=h.length;++s){for(f=h[s],i=0;i!=f.length;++i)if(f.charCodeAt(i)===61)break;for(u=f.substr(0,i),c=f.substring(i+2,f.length-1),r=0;r!=u.length;++r)if(u.charCodeAt(r)===58)break;r===u.length?e[u]=c:e[(r===5&&u.substr(0,5)==="xmlns"?"xmlns":"")+u.substr(r+1)]=c}return e}function aa(n){return n.replace(la,"<$1")}function hr(n){var t=n+"";return t.replace(ya,function(n){return va[n]}).replace(pa,function(n){return"_x"+("000"+n.charCodeAt(0).toString(16)).substr(-4)+"_"})}function oi(n){switch(n){case"1":case"true":case"TRUE":return!0;default:return!1}}function pe(n){var t=l(n),i=n.match(wa(t.baseType))||[],r;if(i.length!=t.size)throw"unexpected vector length "+i.length+" != "+t.size;return r=[],i.forEach(function(n){var t=n.replace(ba,"").match(ka);r.push({v:t[2],t:t[1]})}),r}function gu(n,t){return"<"+n+(t.match(du)?' xml:space="preserve"':"")+">"+t+"<\/"+n+">"}function da(n){return w(n).map(function(t){return" "+t+'="'+n[t]+'"'}).join("")}function r(n,t,i){return"<"+n+(ki(i)?da(i):"")+(ki(t)?(t.match(du)?' xml:space="preserve"':"")+">"+t+"<\/"+n:"/")+">"}function nf(n,t){try{return n.toISOString().replace(/\.\d*/,"")}catch(i){if(t)throw i;}}function ga(n){switch(typeof n){case"string":return r("vt:lpwstr",n);case"number":return r((n|0)==n?"vt:i4":"vt:r8",String(n));case"boolean":return r("vt:bool",n?"true":"false")}if(n instanceof Date)return r("vt:filetime",nf(n));throw new Error("Unable to serialize "+n);}function nv(n,t,i,r,u){i===undefined&&(i=!0);r||(r=8);u||r!==8||(u=52);var f,o,l=r*8-u-1,a=(1<<l)-1,v=a>>1,e=-7,c=i?-1:1,s=i?r-1:0,h=n[t+s];for(s+=c,f=h&(1<<-e)-1,h>>>=-e,e+=l;e>0;f=f*256+n[t+s],s+=c,e-=8);for(o=f&(1<<-e)-1,f>>>=-e,e+=u;e>0;o=o*256+n[t+s],s+=c,e-=8);return f===a?o?NaN:(h?-1:1)*Infinity:(f===0?f=1-v:(o=o+Math.pow(2,u),f=f-v),(h?-1:1)*o*Math.pow(2,f-u))}function vr(n,t){var i="",o,s,f=[],e,h,u,r;switch(t){case"dbcs":if(r=this.l,tt&&Buffer.isBuffer(this))i=this.slice(this.l,this.l+2*n).toString("utf16le");else for(u=0;u!=n;++u)i+=String.fromCharCode(bt(this,r)),r+=2;n*=2;break;case"utf8":i=hi(this,this.l,this.l+n);break;case"utf16le":n*=2;i=nr(this,this.l,this.l+n);break;case"lpstr":i=ci(this,this.l);n=5+i.length;break;case"lpwstr":i=lr(this,this.l);n=5+i.length;i[i.length-1]=="\x00"&&(n+=2);break;case"cstr":for(n=0,i="";(e=li(this,this.l+n++))!==0;)f.push(ei(e));i=f.join("");break;case"wstr":for(n=0,i="";(e=bt(this,this.l+n))!==0;)f.push(ei(e)),n+=2;n+=2;i=f.join("");break;case"dbcs-cont":for(i="",r=this.l,u=0;u!=n;++u){if(this.lens&&this.lens.indexOf(r)!==-1)return e=li(this,r),this.l=r+1,h=vr.call(this,n-u,e?"dbcs-cont":"sbcs-cont"),f.join("")+h;f.push(ei(bt(this,r)));r+=2}i=f.join("");n*=2;break;case"sbcs-cont":for(i="",r=this.l,u=0;u!=n;++u){if(this.lens&&this.lens.indexOf(r)!==-1)return e=li(this,r),this.l=r+1,h=vr.call(this,n-u,e?"dbcs-cont":"sbcs-cont"),f.join("")+h;f.push(ei(li(this,r)));r+=1}i=f.join("");break;default:switch(n){case 1:return o=li(this,this.l),this.l++,o;case 2:return o=(t==="i"?iv:bt)(this,this.l),this.l+=2,o;case 4:return t==="i"||(this[this.l+3]&128)==0?(o=ai(this,this.l),this.l+=4,o):(s=pt(this,this.l),this.l+=4,s);case 8:if(t==="f")return s=ar(this,this.l),this.l+=8,s;case 16:i=cr(this,this.l,n)}}return this.l+=n,i}function rv(n,t,i){var r,u;if(i==="dbcs"){for(u=0;u!=t.length;++u)this.writeUInt16LE(t.charCodeAt(u),this.l+2*u);r=2*t.length}else switch(n){case 1:r=1;this[this.l]=t&255;break;case 3:r=3;this[this.l+2]=t&255;t>>>=8;this[this.l+1]=t&255;t>>>=8;this[this.l]=t&255;break;case 4:r=4;this.writeUInt32LE(t,this.l);break;case 8:if(r=8,i==="f"){this.writeDoubleLE(t,this.l);break}break;case-4:r=4;this.writeInt32LE(t,this.l)}return this.l+=r,this}function io(n,t){var i=cr(this,this.l,n.length>>1);if(i!==n)throw t+"Expected "+n+" saw "+i;this.l+=n.length>>1}function ut(n,t){n.l=t;n.read_shift=vr;n.chk=io;n.write_shift=rv}function t(n,t){n.l+=t}function b(n){var t=au(n);return ut(t,0),t}function vi(n,t,i){var u,f,e,r,o,s;for(ut(n,n.l||0);n.l<n.length;){for(r=n.read_shift(1),r&128&&(r=(r&127)+((n.read_shift(1)&127)<<7)),o=su[r]||su[65535],u=n.read_shift(1),e=u&127,f=1;f<4&&u&128;++f)e+=((u=n.read_shift(1))&127)<<7*f;if(s=o.f(n,e,i),t(s,o,r))return}}function yr(){var t=[],i=2048,u=function(n){var t=b(n);return ut(t,0),t},n=u(i),r=function(){n.length=n.l;n.length>0&&t.push(n);n=null},f=function(t){return t<n.length-n.l?n:(r(),n=u(Math.max(t+1,i)))},e=function(){return r(),gi([t])},o=function(t){r();n=t;f(i)};return{next:f,push:o,end:e,_bufs:t}}function f(n,t,i,r){var u=ggt[t],e,f,o;for(r||(r=su[u].p||(i||[]).length||0),e=1+(u>=128?1:0)+1+r,r>=128&&++e,r>=16384&&++e,r>=2097152&&++e,f=n.next(e),u<=127?f.write_shift(1,u):(f.write_shift(1,(u&127)+128),f.write_shift(1,u>>7)),o=0;o!=4;++o)if(r>=128)f.write_shift(1,(r&127)+128),r>>=7;else{f.write_shift(1,r);break}r>0&&tf(i)&&n.push(i)}function tr(n,t){for(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.c+=t.c,n.r+=t.r),n.cRel=n.rRel=0;n.c>=256;)n.c-=256;while(n.r>=65536)n.r-=65536;return n}function uv(n,t){return n.s=tr(n.s,t.s),n.e=tr(n.e,t.s),n}function fv(n){return{ich:n.read_shift(2),ifnt:n.read_shift(2)}}function fo(n,t){var s=n.l,f=n.read_shift(1),i=ft(n),e=[],r={t:i,h:i},o,u;if((f&1)!=0){for(o=n.read_shift(4),u=0;u!=o;++u)e.push(fv(n));r.r=e}else r.r="<t>"+hr(i)+"<\/t>";return(f&2)!=0,n.l=s+t,r}function ev(n,t){return t==null&&(t=b(5+2*n.t.length)),t.write_shift(1,0),yi(n.t,t),t}function ht(n){var i=n.read_shift(4),t=n.read_shift(2),r;return t+=n.read_shift(1)<<16,r=n.read_shift(1),{c:i,iStyleRef:t}}function ov(n,t){return t==null&&(t=b(8)),t.write_shift(-4,n.c),t.write_shift(3,n.iStyleRef===undefined?n.iStyleRef:n.s),t.write_shift(1,0),t}function sv(n,t){return ft(n,t)}function eo(n){var t=n.read_shift(4);return t===0||t===4294967295?"":n.read_shift(t,"dbcs")}function hv(n,t){return t||(t=b(127)),t.write_shift(4,n.length>0?n.length:4294967295),n.length>0&&t.write_shift(0,n,"dbcs"),t}function ft(n){var t=n.read_shift(4);return t===0?"":n.read_shift(t,"dbcs")}function yi(n,t){return t==null&&(t=b(4+2*n.length)),t.write_shift(4,n.length),n.length>0&&t.write_shift(0,n,"dbcs"),t}function ho(n){var t=n.slice(n.l,n.l+4),r=t[0]&1,u=t[0]&2,i;return n.l+=4,t[0]&=252,i=u===0?ar([0,0,0,0,t[0],t[1],t[2],t[3]],0):ai(t,0)>>2,r?i/100:i}function pr(n){var t={s:{},e:{}};return t.s.r=n.read_shift(4),t.e.r=n.read_shift(4),t.s.c=n.read_shift(4),t.e.c=n.read_shift(4),t}function cv(n,t){return t||(t=b(16)),t.write_shift(4,n.s.r),t.write_shift(4,n.e.r),t.write_shift(4,n.s.c),t.write_shift(4,n.e.c),t}function et(n){return n.read_shift(8,"f")}function lv(n,t){return(t||b(8)).write_shift(8,"f",n)}function av(n){var t={},i=n.read_shift(1);t.fValidRGB=i&1;t.xColorType=i>>>1;t.index=n.read_shift(1);t.nTintAndShade=n.read_shift(2,"i");t.bRed=n.read_shift(1);t.bGreen=n.read_shift(1);t.bBlue=n.read_shift(1);t.bAlpha=n.read_shift(1)}function vv(n){var t=n.read_shift(1);return n.l++,{fItalic:t&2,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128}}function pv(n){return n.map(function(n){return[n>>16&255,n>>8&255,n&255]})}function wv(n,t){var r={},i;if(!n||!n.match)return n;if(i={workbooks:[],sheets:[],calcchains:[],themes:[],styles:[],coreprops:[],extprops:[],custprops:[],strs:[],comments:[],vba:[],TODO:[],rels:[],xmlns:""},(n.match(vt)||[]).forEach(function(n){var u=l(n);switch(u[0].replace(ca,"<")){case"<Types":i.xmlns=u["xmlns"+(u[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[u.Extension]=u.ContentType;break;case"<Override":i[kr[u.ContentType]]!==undefined?i[kr[u.ContentType]].push(u.PartName):t.WTF&&console.error(u)}}),i.xmlns!==u.CT)throw new Error("Unknown Namespace: "+i.xmlns);return i.calcchain=i.calcchains.length>0?i.calcchains[0]:"",i.sst=i.strs.length>0?i.strs[0]:"",i.style=i.styles.length>0?i.styles[0]:"",i.defaults=r,delete i.calcchains,i}function bv(n,t){var i=[],u;i[i.length]=yt;i[i.length]=go;i=i.concat(ns);var f=function(f){n[f]&&n[f].length>0&&(u=n[f][0],i[i.length]=r("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:bo[f][t.bookType||"xlsx"]}))},o=function(u){n[u].forEach(function(n){i[i.length]=r("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:bo[u][t.bookType||"xlsx"]})})},e=function(t){(n[t]||[]).forEach(function(n){i[i.length]=r("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:ko[t][0]})})};return f("workbooks"),o("sheets"),e("themes"),["strs","styles"].forEach(f),["coreprops","extprops","custprops"].forEach(e),i.length>2&&(i[i.length]="<\/Types>",i[1]=i[1].replace("/>",">")),i.join("")}function ts(n,t){if(!n)return n;t.charAt(0)!=="/"&&(t="/"+t);var i={},r={},u=function(n){var i=t.split("/"),u,f,r;for(i.pop(),u=n.split("/"),f=[];u.length!==0;)r=u.shift(),r===".."?i.pop():r!=="."&&i.push(r);return i.join("/")};return n.match(vt).forEach(function(n){var t=l(n),f,e;t[0]==="<Relationship"&&(f={},f.Type=t.Type,f.Target=t.Target,f.Id=t.Id,f.TargetMode=t.TargetMode,e=t.TargetMode==="External"?t.Target:u(t.Target),i[e]=f,r[t.Id]=f)}),i["!id"]=r,i}function rs(n){var t=[];return t[t.length]=yt,t[t.length]=is,w(n["!id"]).forEach(function(i){var u=n["!id"][i];t[t.length]=r("Relationship",null,u)}),t.length>2&&(t[t.length]="<\/Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function kv(n){for(var t,u,i={},r=0;r<ni.length;++r)t=ni[r],u=n.match(us[r]),u!=null&&u.length>0&&(i[t[1]]=u[1]),t[2]==="date"&&i[t[1]]&&(i[t[1]]=new Date(i[t[1]]));return i}function hf(n,t,i,u,f){f[n]==null&&t!=null&&t!==""&&(f[n]=t,u[u.length]=i?r(n,t,i):gu(n,t))}function dv(n,t){var i=[yt,fs],u={},r,f;if(!n)return i.join("");for(n.CreatedDate!=null&&hf("dcterms:created",typeof n.CreatedDate=="string"?n.CreatedDate:nf(n.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},i,u),n.ModifiedDate!=null&&hf("dcterms:modified",typeof n.ModifiedDate=="string"?n.ModifiedDate:nf(n.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},i,u),r=0;r!=ni.length;++r)f=ni[r],hf(f[0],n[f[1]],null,i,u);return i.length>2&&(i[i.length]="<\/cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}function gv(n,t){var r={},i,e;if(t||(t={}),cf.forEach(function(i){switch(i[2]){case"string":t[i[1]]=(n.match(si(i[0]))||[])[1];break;case"bool":t[i[1]]=(n.match(si(i[0]))||[])[1]==="true";break;case"raw":var u=n.match(new RegExp("<"+i[0]+"[^>]*>(.*)<\/"+i[0]+">"));u&&u.length>0&&(r[i[1]]=u[1])}}),r.HeadingPairs&&r.TitlesOfParts){var u=pe(r.HeadingPairs),f=0;for(i=0;i!==u.length;++i)switch(u[i].v){case"Worksheets":f=0;t.Worksheets=+u[++i].v;break;case"Named Ranges":++i}e=pe(r.TitlesOfParts).map(function(n){return rt(n.v)});t.SheetNames=e.slice(f,f+t.Worksheets)}return t}function ny(n){var t=[],i=r;return n||(n={}),n.Application="SheetJS",t[t.length]=yt,t[t.length]=es,cf.forEach(function(r){if(n[r[1]]!==undefined){var u;switch(r[2]){case"string":u=n[r[1]];break;case"bool":u=n[r[1]]?"true":"false"}u!==undefined&&(t[t.length]=i(r[0],u))}}),t[t.length]=i("HeadingPairs",i("vt:vector",i("vt:variant","<vt:lpstr>Worksheets<\/vt:lpstr>")+i("vt:variant",i("vt:i4",String(n.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=i("TitlesOfParts",i("vt:vector",n.SheetNames.map(function(n){return"<vt:lpstr>"+n+"<\/vt:lpstr>"}).join(""),{size:n.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="<\/Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function ty(n,t){var f={},i,h=n.match(os),s,e,r;if(h)for(s=0;s!=h.length;++s){e=h[s];r=l(e);switch(r[0]){case"<?xml":break;case"<Properties":if(r.xmlns!==u.CUST_PROPS)throw"unrecognized xmlns "+r.xmlns;if(r.xmlnsvt&&r.xmlnsvt!==u.vt)throw"unrecognized vt "+r.xmlnsvt;break;case"<property":i=r.name;break;case"<\/property>":i=null;break;default:if(e.indexOf("<vt:")===0){var c=e.split(">"),a=c[0].substring(4),o=c[1];switch(a){case"lpstr":case"lpwstr":case"bstr":case"lpwstr":f[i]=it(o);break;case"bool":f[i]=oi(o,"<vt:bool>");break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":f[i]=parseInt(o,10);break;case"r4":case"r8":case"decimal":f[i]=parseFloat(o);break;case"filetime":case"date":f[i]=new Date(o);break;case"cy":case"error":f[i]=it(o);break;default:typeof console!="undefined"&&console.warn("Unexpected",e,a,c)}}else if(e.substr(0,2)!=="<\/"&&t.WTF)throw new Error(e);}}return f}function iy(n){var t=[yt,ss],i;return n?(i=1,w(n).forEach(function(u){++i;t[t.length]=r("property",ga(n[u]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:i,name:u})}),t.length>2&&(t[t.length]="<\/Properties>",t[1]=t[1].replace("/>",">")),t.join("")):t.join("")}function ry(n,t,i){switch(t){case"Description":t="Comments"}n[t]=i}function lf(n){var t=n.read_shift(4),i=n.read_shift(4);return new Date((i/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function hs(n,t,i){var r=n.read_shift(0,"lpstr");return i&&(n.l+=4-(r.length+1&3)&3),r}function cs(n,t,i){var r=n.read_shift(0,"lpwstr");return i&&(n.l+=4-(r.length+1&3)&3),r}function ls(n,t,i){return t===31?cs(n):hs(n,t,i)}function af(n,t,i){return ls(n,t,i===!1?0:4)}function uy(n,t){if(!t)throw new Error("dafuq?");return ls(n,t,0)}function fy(n){for(var r=n.read_shift(4),i=[],t=0;t!=r;++t)i[t]=n.read_shift(0,"lpstr");return i}function ey(n){return fy(n)}function oy(n){var t=dr(n,vo),i=dr(n,k);return[t,i]}function sy(n){for(var r=n.read_shift(4),t=[],i=0;i!=r/2;++i)t.push(oy(n));return t}function hy(n){return sy(n)}function as(n,t){for(var u,f,e=n.read_shift(4),i={},r=0;r!=e;++r)u=n.read_shift(4),f=n.read_shift(4),i[u]=n.read_shift(f,t===1200?"utf16le":"utf8").replace(st,"").replace(fr,"!");return n.l&3&&(n.l=n.l>>3<<2),i}function vs(n){var t=n.read_shift(4),i=n.slice(n.l,n.l+t);return t&!0&&(n.l+=4-(t&3)&3),i}function cy(n){var t={};return t.Size=n.read_shift(4),n.l+=t.Size,t}function dr(n,t,i){var r=n.read_shift(2),u,f=i||{};if(n.l+=2,t!==ff&&r!==t&&yv.indexOf(t)===-1)throw new Error("Expected type "+t+" saw "+r);switch(t===ff?r:t){case 2:return u=n.read_shift(2,"i"),f.raw||(n.l+=2),u;case 3:return n.read_shift(4,"i");case 11:return n.read_shift(4)!==0;case 19:return n.read_shift(4);case 30:return hs(n,r,4).replace(st,"");case 31:return cs(n);case 64:return lf(n);case 65:return vs(n);case 71:return cy(n);case 80:return af(n,r,!f.raw&&4).replace(st,"");case 81:return uy(n,r,4).replace(st,"");case 4108:return hy(n);case 4126:return ey(n);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r);}}function ys(n,t){for(var a=n.l,k=n.read_shift(4),v=n.read_shift(4),r=[],i=0,s=0,c=-1,l,y,p,u,h,f,w,b,o,i=0;i!=v;++i)y=n.read_shift(4),p=n.read_shift(4),r[i]=[y,p+a];for(u={},i=0;i!=v;++i){if(n.l!==r[i][1]){if(h=!0,i>0&&t)switch(t[r[i-1][0]].t){case 2:n.l+2===r[i][1]&&(n.l+=2,h=!1);break;case 80:n.l<=r[i][1]&&(n.l=r[i][1],h=!1);break;case 4108:n.l<=r[i][1]&&(n.l=r[i][1],h=!1)}if(!t&&n.l<=r[i][1]&&(h=!1,n.l=r[i][1]),h)throw new Error("Read Error: Expected address "+r[i][1]+" at "+n.l+" :"+i);}if(t){if(f=t[r[i][0]],u[f.n]=dr(n,f.t,{raw:!0}),f.p==="version"&&(u[f.n]=String(u[f.n]>>16)+"."+String(u[f.n]&65535)),f.n=="CodePage")switch(u[f.n]){case 0:u[f.n]=1252;case 1e4:case 1252:case 874:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 932:case 936:case 949:case 950:case 1200:case 1201:case 65e3:case-536:case 65001:case-535:gt(s=u[f.n]);break;default:throw new Error("Unsupported CodePage: "+u[f.n]);}}else if(r[i][0]===1)s=u.CodePage=dr(n,uf),gt(s),c!==-1&&(w=n.l,n.l=r[c][1],l=as(n,s),n.l=w);else if(r[i][0]===0){if(s===0){c=i;n.l=r[i+1][1];continue}l=as(n,s)}else{b=l[r[i][0]];switch(n[n.l]){case 65:n.l+=4;o=vs(n);break;case 30:n.l+=4;o=af(n,n[n.l-4]);break;case 31:n.l+=4;o=af(n,n[n.l-4]);break;case 3:n.l+=4;o=n.read_shift(4,"i");break;case 19:n.l+=4;o=n.read_shift(4);break;case 5:n.l+=4;o=n.read_shift(8,"f");break;case 11:n.l+=4;o=e(n,4);break;case 64:n.l+=4;o=new Date(lf(n));break;default:throw new Error("unparsed value: "+n[n.l]);}u[b]=o}}return n.l=a+k,u}function ps(n,t){var i=n.content,r,e,c,l,o,v,a,s,u,f,h;if(ut(i,0),i.chk("feff","Byte Order: "),v=i.read_shift(2),a=i.read_shift(4),i.chk(er.utils.consts.HEADER_CLSID,"CLSID: "),r=i.read_shift(4),r!==1&&r!==2)throw"Unrecognized #Sets: "+r;if(e=i.read_shift(16),l=i.read_shift(4),r===1&&l!==i.l)throw"Length mismatch";else r===2&&(c=i.read_shift(16),o=i.read_shift(4));s=ys(i,t);u={SystemIdentifier:a};for(f in s)u[f]=s[f];if(u.FMTID=e,r===1)return u;if(i.l!==o)throw"Length mismatch 2: "+i.l+" !== "+o;try{h=ys(i,null)}catch(y){}for(f in h)u[f]=h[f];return u.FMTID=[e,c],u}function dt(n,t){return n.read_shift(t),null}function ly(n,t,i){for(var u=[],r=n.l+t;n.l<r;)u.push(i(n,r-n.l));if(r!==n.l)throw new Error("Slurp error");return u}function ay(n,t,i){for(var r=[],u=n.l+t,f=n.read_shift(2);f--!=0;)r.push(i(n,u-n.l));if(u!==n.l)throw new Error("Slurp error");return r}function e(n,t){return n.read_shift(t)===1}function y(n){return n.read_shift(2,"u")}function ws(n,t){return ly(n,t,y)}function yy(n){var t=n.read_shift(1),i=n.read_shift(1);return i===1?t:t===1}function ir(n,t,i){var r=n.read_shift(1),o=1,u="sbcs-cont",s=d,f,e;return i&&i.biff>=8&&(d=1200),(i===undefined||i.biff!==5)&&(f=n.read_shift(1),f&&(o=2,u="dbcs-cont")),e=r?n.read_shift(r,u):"",d=s,e}function py(n){var c=d,s,h;d=1200;var u=n.read_shift(2),i=n.read_shift(1),l=i&1,f=i&4,r=i&8,a=1+(i&1),e,o,t={};return r&&(e=n.read_shift(2)),f&&(o=n.read_shift(4)),s=i&1?"dbcs-cont":"sbcs-cont",h=u===0?"":n.read_shift(u,s),r&&(n.l+=4*e),f&&(n.l+=o),t.t=h,r||(t.raw="<t>"+t.t+"<\/t>",t.r=t.t),d=c,t}function gr(n,t){var i=n.read_shift(1);return i===0?n.read_shift(t,"sbcs-cont"):n.read_shift(t,"dbcs-cont")}function pi(n,t,i){var r=n.read_shift(i!==undefined&&i.biff>0&&i.biff<8?1:2);return r===0?(n.l++,""):gr(n,r,i)}function nu(n,t,i){if(i.biff!==5&&i.biff!==2)return pi(n,t,i);var r=n.read_shift(1);return r===0?(n.l++,""):n.read_shift(r,"sbcs-cont")}function bs(n){var t=n.read_shift(1),i=n.read_shift(1),r=n.read_shift(1),u=n.read_shift(1);return[t,i,r,u]}function ks(n,t){var i=bs(n,t);return i[3]=0,i}function ti(n){var t=n.read_shift(2),i=n.read_shift(2),r=n.read_shift(2);return{r:t,c:i,ixfe:r}}function np(n){var t=n.read_shift(2),i=n.read_shift(2);return n.l+=8,{type:t,flags:i}}function tp(n,t,i){return t===0?"":nu(n,t,i)}function rp(n){var t=n.read_shift(2),i=n.read_shift(2,"i"),r=n.read_shift(2,"i");return[t,i,r]}function gs(n){var t=n.read_shift(2),i=ho(n);return[t,i]}function up(n,t){n.l+=4;t-=4;var i=n.l+t,u=ir(n,t),r=n.read_shift(2);if(i-=n.l,r!==i)throw"Malformed AddinUdf: padding = "+i+" != "+r;return n.l+=r,u}function iu(n){var t=n.read_shift(2),i=n.read_shift(2),r=n.read_shift(2),u=n.read_shift(2);return{s:{c:r,r:t},e:{c:u,r:i}}}function nh(n){var t=n.read_shift(2),i=n.read_shift(2),r=n.read_shift(1),u=n.read_shift(1);return{s:{c:r,r:t},e:{c:u,r:i}}}function ih(n){n.l+=4;var t=n.read_shift(2),i=n.read_shift(2),r=n.read_shift(2);return n.l+=12,[i,t,r]}function fp(n){var t={};return n.l+=4,n.l+=16,t.fSharedNote=n.read_shift(2),n.l+=4,t}function ep(n){return n.l+=4,n.cf=n.read_shift(2),{}}function op(n,t){for(var i=n.l,r=[],u;n.l<i+t;){u=n.read_shift(2);n.l-=2;try{r.push(rh[u](n,i+t-n.l))}catch(f){return n.l=i+t,r}}return n.l!=i+t&&(n.l=i+t),r}function fh(n,t){var i={};i.BIFFVer=n.read_shift(2);t-=2;switch(i.BIFFVer){case 1536:case 1280:case 2:case 7:break;default:throw"Unexpected BIFF Ver "+i.BIFFVer;}return n.read_shift(t),i}function sp(n,t){if(t===0)return 1200;var i;if((i=n.read_shift(2))!==1200)throw"InterfaceHdr codePage "+i;return 1200}function hp(n,t,i){if(i.enc)return n.l+=t,"";var r=n.l,u=pi(n,0,i);return n.read_shift(t+r-n.l),u}function cp(n,t,i){var f=n.read_shift(4),e=n.read_shift(1)>>6,r=n.read_shift(1),u;switch(r){case 0:r="Worksheet";break;case 1:r="Macrosheet";break;case 2:r="Chartsheet";break;case 6:r="VBAModule"}return u=ir(n,0,i),u.length===0&&(u="Sheet1"),{pos:f,hs:e,dt:r,name:u}}function lp(n){for(var u=n.read_shift(4),i=n.read_shift(4),t=[],r=0;r!=i;++r)t.push(py(n));return t.Count=u,t.Unique=i,t}function ap(n,t){var i={};return i.dsst=n.read_shift(2),n.l+=t-2,i}function vp(n){var i=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(2),f=n.read_shift(2),u;return n.read_shift(4),u=n.read_shift(1),n.read_shift(1),n.read_shift(2),{r:i,c:t,cnt:r-t}}function yp(n){var t=np(n),i;if(t.type!=2211)throw"Invalid Future Record "+t.type;return i=n.read_shift(4),i!==0}function pp(n){return n.read_shift(2),n.read_shift(4)}function wp(n){var t=n.read_shift(2),i,r;return i=n.read_shift(2),r={Unsynced:t&1,DyZero:(t&2)>>1,ExAsc:(t&4)>>2,ExDsc:(t&8)>>3},[r,i]}function bp(n){var t=n.read_shift(2),i=n.read_shift(2),r=n.read_shift(2),u=n.read_shift(2),f=n.read_shift(2),e=n.read_shift(2),o=n.read_shift(2),s=n.read_shift(2),h=n.read_shift(2);return{Pos:[t,i],Dim:[r,u],Flags:f,CurTab:e,FirstTab:o,Selected:s,TabRatio:h}}function kp(n,t,i){n.l+=14;return ir(n,0,i)}function dp(n){var t=ti(n);return t.isst=n.read_shift(4),t}function oh(n,t,i){var r=ti(n,6),u=pi(n,t-6,i);return r.val=u,r}function gp(n,t,i){var r=n.read_shift(2),u=nu(n,0,i);return[r,u]}function nw(n,t){var i=t===10?2:4,r=n.read_shift(i),u=n.read_shift(i),f=n.read_shift(2),e=n.read_shift(2);return n.l+=2,{s:{r:r,c:f},e:{r:u,c:e}}}function tw(n){var i=n.read_shift(2),r=n.read_shift(2),t=gs(n);return{r:i,c:r,ixfe:t[0],rknum:t[1]}}function iw(n,t){for(var u=n.l+t-2,e=n.read_shift(2),f=n.read_shift(2),i=[],r;n.l<u;)i.push(gs(n));if(n.l!==u)throw"MulRK read error";if(r=n.read_shift(2),i.length!=r-f+1)throw"MulRK length mismatch";return{r:e,c:f,C:r,rkrec:i}}function vf(n){var t={},u=n.read_shift(4),f=n.read_shift(4),r=n.read_shift(4),i=n.read_shift(2);return t.patternType=wo[r>>26],t.icvFore=i&127,t.icvBack=i>>7&127,t}function rw(n,t){var i={};return i.ifnt=n.read_shift(2),i.ifmt=n.read_shift(2),i.flags=n.read_shift(2),i.fStyle=i.flags>>2&1,t-=6,i.data=vf(n,t,i.fStyle),i}function uw(n){n.l+=4;var t=[n.read_shift(2),n.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw"Bad Gutters: "+t;return t}function fw(n){var t=ti(n,6),i=yy(n,2);return t.val=i,t.t=i===!0||i===!1?"b":"e",t}function ew(n){var t=ti(n,6),i=et(n,8);return t.val=i,t}function ow(n,t,i){var e=n.l+t,o=n.read_shift(2),r=n.read_shift(2),u,f;return r>=1&&r<=255&&(u=gr(n,r)),f=n.read_shift(e-n.l),i.sbcch=r,[r,o,u,f]}function sh(n,t,i){var r=n.read_shift(2),u,f={fBuiltIn:r&1,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return i.sbcch===14849&&(u=up(n,t-2)),f.body=u||n.read_shift(t-2),f}function sw(n,t,i){var h,r,u;if(i.biff<8)return oh(n,t,i);var f=n.l+t,c=n.read_shift(2),e=n.read_shift(1),o=n.read_shift(1),s=n.read_shift(2);return n.l+=2,h=n.read_shift(2),n.l+=4,r=gr(n,o,i),u=dwt(n,f-n.l,i,s),{chKey:e,Name:r,rgce:u}}function hw(n,t,i){var r,f,u;if(i.biff<8)return ir(n,t,i);if(r=ay(n,t,rp),f=[],i.sbcch===1025){for(u=0;u!=r.length;++u)f.push(i.snames[r[u][1]]);return f}return r}function cw(n,t,i){var u=nh(n,6),r;return n.l++,r=n.read_shift(1),t-=8,[nbt(n,t,i),r]}function lw(n,t,i){var r=th(n,6);return n.l+=6,t-=12,[r,tbt(n,t,i,r)]}function aw(n){var t=n.read_shift(4)!==0,i=n.read_shift(4)!==0,r=n.read_shift(4);return[t,i,r]}function vw(n,t,i){if(!(i.biff<8)){var r=n.read_shift(2),u=n.read_shift(2),f=n.read_shift(2),e=n.read_shift(2),o=nu(n,0,i);return i.biff<8&&n.read_shift(1),[{r:r,c:u},o,e,f]}}function yw(n,t,i){return vw(n,t,i)}function pw(n,t){for(var i=[],r=n.read_shift(2);r--;)i.push(iu(n,t));return i}function ww(n,t){var i=ih(n,22),r=op(n,t-22,i[1]);return{cmo:i,ft:r}}function bw(n,t,i){var e=n.l,o,c,r,u,s,h;try{n.l+=4;o=(i.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(o)==-1?n.l+=6:c=wy(n,6,i);var f=n.read_shift(2),a=n.read_shift(2),v=uh(n,2),l=n.read_shift(2);for(n.l+=l,r="",u=1;u<n.lens.length-1;++u){if(n.l-e!=n.lens[u])throw"TxO: bad continue record";if(s=n[n.l],h=gr(n,n.lens[u+1]-n.lens[u]-1),r+=h,r.length>=(s?f:2*f))break}if(r.length!==f&&r.length!==f*2)throw"cchText: "+f+" != "+r.length;return n.l=e+t,{t:r}}catch(y){return n.l=e+t,{t:r||""}}}function kw(n){var i=[],t;return t=n.read_shift(2),i[0]=of[t]||t,t=n.read_shift(2),i[1]=of[t]||t,i}function dw(n){for(var i=n.read_shift(2),t=[];i-->0;)t.push(ks(n,8));return t}function gw(n){for(var i=n.read_shift(2),t=[];i-->0;)t.push(ks(n,8));return t}function nb(n){n.l+=2;var t={cxfs:0,crc:0};return t.cxfs=n.read_shift(2),t.crc=n.read_shift(4),t}function dct(n,t,i){var r=ti(n,6),u;return++n.l,u=nu(n,t-7,i),r.val=u,r}function gct(n){var t=ti(n,6),i;return++n.l,i=et(n,8),t.val=i,t}function pf(n,t){var r=t?t.cellHTML:!0,i={},u;return n?(n.charCodeAt(1)===116?(i.t=rt(it(n.substr(n.indexOf(">")+1).split(/<\/t>/)[0])),i.r=n,r&&(i.h=i.t)):(u=n.match(rlt))&&(i.r=n,i.t=rt(it(n.match(ilt).join("").replace(vt,""))),r&&(i.h=tlt(n))),i):null}function olt(n,t){var r=[],f,i=n.match(ult),u,e;if(ki(i)){for(f=i[2].replace(flt,"").split(elt),u=0;u!=f.length;++u)e=pf(f[u],t),e!=null&&(r[r.length]=e);i=l(i[1]);r.Count=i.count;r.Unique=i.uniqueCount}return r}function slt(n,t){var i,e,o,f;if(!t.bookSST)return"";for(i=[yt],i[i.length]=r("sst",null,{xmlns:u.main[0],count:n.Count,uniqueCount:n.Unique}),e=0;e!=n.length;++e)n[e]!=null&&(o=n[e],f="<si>",o.r?f+=o.r:(f+="<t",o.t.match(lh)&&(f+=' xml:space="preserve"'),f+=">"+hr(o.t)+"<\/t>"),f+="<\/si>",i[i.length]=f);return i.length>2&&(i[i.length]="<\/sst>",i[1]=i[1].replace("/>",">")),i.join("")}function hlt(n){return[n.read_shift(4),n.read_shift(4)]}function clt(n,t){var i=[],r=!1;return vi(n,function(n,u,f){switch(u.n){case"BrtBeginSst":i.Count=n[0];i.Unique=n[1];break;case"BrtSSTItem":i.push(n);break;case"BrtEndSst":return!0;case"BrtFRTBegin":r=!0;break;case"BrtFRTEnd":r=!1;break;default:if(!r||t.WTF)throw new Error("Unexpected record "+f+" "+u.n);}}),i}function llt(n,t){return t||(t=b(8)),t.write_shift(4,n.Count),t.write_shift(4,n.Unique),t}function alt(n){var t=yr(),i;for(f(t,"BrtBeginSst",llt(n)),i=0;i<n.length;++i)f(t,"BrtSSTItem",ah(n[i]));return f(t,"BrtEndSst"),t.end()}function vh(n){return typeof cptable!="undefined"?cptable.utils.encode(1252,n):n.split("").map(function(n){return n.charCodeAt(0)})}function yh(n){var t={};return t.Major=n.read_shift(2),t.Minor=n.read_shift(2),t}function vlt(n,i){var r={},u;if(r.Flags=n.read_shift(4),u=n.read_shift(4),u!==0)throw"Unrecognized SizeExtra: "+u;r.AlgID=n.read_shift(4);switch(r.AlgID){case 0:case 26625:case 26126:case 26127:case 26128:break;default:throw"Unrecognized encryption algorithm: "+r.AlgID;}return t(n,i-12),r}function ylt(n,i){return t(n,i)}function plt(n,t){var i={},r=i.EncryptionVersionInfo=yh(n,4),u;if(t-=4,r.Minor!=2)throw"unrecognized minor version code: "+r.Minor;if(r.Major>4||r.Major<2)throw"unrecognized major version code: "+r.Major;return i.Flags=n.read_shift(4),t-=4,u=n.read_shift(4),t-=4,i.EncryptionHeader=vlt(n,u),t-=u,i.EncryptionVerifier=ylt(n,t),i}function wlt(n,t){var i={},r=i.EncryptionVersionInfo=yh(n,4);if(t-=4,r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return i.Salt=n.read_shift(16),i.EncryptedVerifier=n.read_shift(16),i.EncryptedVerifierHash=n.read_shift(16),i}function blt(n){var i=0,r,u=vh(n),f=u.length+1,t,e,o,s,h;for(r=au(f),r[0]=u.length,t=1;t!=f;++t)r[t]=u[t-1];for(t=f-1;t>=0;--t)e=r[t],o=(i&16384)==0?0:1,s=i<<1&32767,h=o|s,i=h^e;return i^52811}function glt(n,t,i,r){var u={key:y(n),verificationBytes:y(n)};return i.password&&(u.verifier=blt(i.password)),r.valid=u.verificationBytes===u.verifier,r.valid&&(r.insitu_decrypt=dlt(i.password)),u}function nat(n,t,i){var r=i||{};return r.Info=n.read_shift(2),n.l-=2,r.Data=r.Info===1?wlt(n,t):plt(n,t),r}function tat(n,t,i){var r={Type:n.read_shift(2)};return r.Type?nat(n,t-2,r):glt(n,t-2,i,r),r}function iat(n){var t=n.substr(n[0]==="#"?1:0,6);return[parseInt(t.substr(0,2),16),parseInt(t.substr(0,2),16),parseInt(t.substr(0,2),16)]}function wf(n){for(var t=0,i=1;t!=3;++t)i=i*256+(n[t]>255?255:n[t]<0?0:n[t]);return i.toString(16).toUpperCase().substr(1)}function rat(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255,o=Math.max(t,i,r),s=Math.min(t,i,r),u=o-s;if(u===0)return[0,0,t];var f=0,h=0,e=o+s;h=u/(e>1?2-e:e);switch(o){case t:f=((i-r)/u+6)%6;break;case i:f=(r-t)/u+2;break;case r:f=(t-i)/u+4}return[f/6,h,e/2]}function uat(n){var h=n[0],s=n[1],e=n[2],i=s*2*(e<.5?e:1-e),o=e-i/2,t=[o,o,o],u=6*h,r,f;if(s!==0)switch(u|0){case 0:case 6:r=i*u;t[0]+=i;t[1]+=r;break;case 1:r=i*(2-u);t[0]+=r;t[1]+=i;break;case 2:r=i*(u-2);t[1]+=i;t[2]+=r;break;case 3:r=i*(4-u);t[1]+=r;t[2]+=i;break;case 4:r=i*(u-4);t[2]+=i;t[0]+=r;break;case 5:r=i*(6-u);t[2]+=r;t[0]+=i}for(f=0;f!=3;++f)t[f]=Math.round(t[f]*255);return t}function wh(n,t){if(t===0)return n;var i=rat(iat(n));return i[2]=t<0?i[2]*(1+t):1-(1-i[2])*(1-t),wf(uat(i))}function dh(n){return(n+(128/p|0)/256)*p|0}function bf(n){return((n-5)/p*100+.5|0)/100}function gh(n){return((n*p+5)/p*256|0)/256}function kf(n){return gh(bf(dh(n)))}function fat(n){if(kf(n)!=n){for(p=ru;p>kh;--p)if(kf(n)===n)break;if(p===kh)for(p=ru+1;p<bh;++p)if(kf(n)===n)break;p===bh&&(p=ru)}}function oat(n,t){o.Fills=[];var i={};n[0].match(vt).forEach(function(n){var r=l(n);switch(r[0]){case"<fills":case"<fills>":case"<\/fills>":break;case"<fill>":break;case"<\/fill>":o.Fills.push(i);i={};break;case"<patternFill":r.patternType&&(i.patternType=r.patternType);break;case"<patternFill/>":case"<\/patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={});r.indexed&&(i.bgColor.indexed=parseInt(r.indexed,10));r.theme&&(i.bgColor.theme=parseInt(r.theme,10));r.tint&&(i.bgColor.tint=parseFloat(r.tint));r.rgb&&(i.bgColor.rgb=r.rgb.substring(r.rgb.length-6));break;case"<bgColor/>":case"<\/bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={});r.theme&&(i.fgColor.theme=parseInt(r.theme,10));r.tint&&(i.fgColor.tint=parseFloat(r.tint));r.rgb&&(i.fgColor.rgb=r.rgb.substring(r.rgb.length-6));break;case"<fgColor/>":case"<\/fgColor>":break;default:if(t.WTF)throw"unrecognized "+r[0]+" in fills";}})}function sat(n,t){var f,r,s,u,h,e;for(o.NumberFmt=[],f=w(i._table),r=0;r<f.length;++r)o.NumberFmt[f[r]]=i._table[f[r]];for(s=n[0].match(vt),r=0;r<s.length;++r){u=l(s[r]);switch(u[0]){case"<numFmts":case"<\/numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":h=it(rt(u.formatCode));e=parseInt(u.numFmtId,10);o.NumberFmt[e]=h;e>0&&i.load(h,e);break;default:if(t.WTF)throw"unrecognized "+u[0]+" in numFmts";}}}function hat(n){var t=["<numFmts>"];return([[1,11],[23,26],[37,44],[59,67],[164,392]].forEach(function(i){for(var u=i[0];u<=i[1];++u)n[u]!==undefined&&(t[t.length]=r("numFmt",null,{numFmtId:u,formatCode:hr(n[u])}))}),t.length===1)?"":(t[t.length]="<\/numFmts>",t[0]=r("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function cat(n,t){o.CellXf=[];n[0].match(vt).forEach(function(n){var i=l(n);switch(i[0]){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"<\/cellXfs>":break;case"<xf":delete i[0];i.numFmtId&&(i.numFmtId=parseInt(i.numFmtId,10));i.fillId&&(i.fillId=parseInt(i.fillId,10));o.CellXf.push(i);break;case"<\/xf>":break;case"<alignment":case"<alignment/>":break;case"<protection":case"<\/protection>":case"<protection/>":break;case"<extLst":case"<\/extLst>":break;case"<ext":break;default:if(t.WTF)throw"unrecognized "+i[0]+" in cellXfs";}})}function lat(n){var t=[];return(t[t.length]=r("cellXfs",null),n.forEach(function(n){t[t.length]=r("xf",null,n)}),t[t.length]="<\/cellXfs>",t.length===2)?"":(t[0]=r("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function aat(n,t){var i=[yt,tc],r;return(r=hat(n.SSF))!=null&&(i[i.length]=r),i[i.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/><\/font><\/fonts>',i[i.length]='<fills count="2"><fill><patternFill patternType="none"/><\/fill><fill><patternFill patternType="gray125"/><\/fill><\/fills>',i[i.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/><\/border><\/borders>',i[i.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/><\/cellStyleXfs>',(r=lat(t.cellXfs))&&(i[i.length]=r),i[i.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/><\/cellStyles>',i[i.length]='<dxfs count="0"/>',i[i.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',i.length>2&&(i[i.length]="<\/styleSheet>",i[1]=i[1].replace("/>",">")),i.join("")}function vat(n,t){var i=n.read_shift(2),r=ft(n,t-2);return[i,r]}function yat(n,t){var i={flags:{}};return i.dyHeight=n.read_shift(2),i.grbit=vv(n,2),i.bls=n.read_shift(2),i.sss=n.read_shift(2),i.uls=n.read_shift(1),i.bFamily=n.read_shift(1),i.bCharSet=n.read_shift(1),n.l++,i.brtColor=av(n,8),i.bFontScheme=n.read_shift(1),i.name=ft(n,t-21),i.flags.Bold=i.bls===700,i.flags.Italic=i.grbit.fItalic,i.flags.Strikeout=i.grbit.fStrikeout,i.flags.Outline=i.grbit.fOutline,i.flags.Shadow=i.grbit.fShadow,i.flags.Condense=i.grbit.fCondense,i.flags.Extend=i.grbit.fExtend,i.flags.Sub=i.sss&2,i.flags.Sup=i.sss&1,i}function pat(n,i){var r=n.read_shift(2),u=n.read_shift(2);return t(n,i-4),{ixfe:r,ifmt:u}}function wat(n,t){var f,r,u;o.NumberFmt=[];for(f in i._table)o.NumberFmt[f]=i._table[f];return o.CellXf=[],r="",u=!1,vi(n,function(n,f,e){switch(f.n){case"BrtFmt":o.NumberFmt[n[0]]=n[1];i.load(n[1],n[0]);break;case"BrtFont":break;case"BrtKnownFonts":break;case"BrtFill":break;case"BrtBorder":break;case"BrtXF":r==="CELLXFS"&&o.CellXf.push(n);break;case"BrtStyle":break;case"BrtDXF":break;case"BrtMRUColor":break;case"BrtIndexedColor":break;case"BrtBeginStyleSheet":break;case"BrtEndStyleSheet":break;case"BrtBeginTableStyle":break;case"BrtTableStyleElement":break;case"BrtEndTableStyle":break;case"BrtBeginFmts":r="FMTS";break;case"BrtEndFmts":r="";break;case"BrtBeginFonts":r="FONTS";break;case"BrtEndFonts":r="";break;case"BrtACBegin":r="ACFONTS";break;case"BrtACEnd":r="";break;case"BrtBeginFills":r="FILLS";break;case"BrtEndFills":r="";break;case"BrtBeginBorders":r="BORDERS";break;case"BrtEndBorders":r="";break;case"BrtBeginCellStyleXFs":r="CELLSTYLEXFS";break;case"BrtEndCellStyleXFs":r="";break;case"BrtBeginCellXFs":r="CELLXFS";break;case"BrtEndCellXFs":r="";break;case"BrtBeginStyles":r="STYLES";break;case"BrtEndStyles":r="";break;case"BrtBeginDXFs":r="DXFS";break;case"BrtEndDXFs":r="";break;case"BrtBeginTableStyles":r="TABLESTYLES";break;case"BrtEndTableStyles":r="";break;case"BrtBeginColorPalette":r="COLORPALETTE";break;case"BrtEndColorPalette":r="";break;case"BrtBeginIndexedColors":r="INDEXEDCOLORS";break;case"BrtEndIndexedColors":r="";break;case"BrtBeginMRUColors":r="MRUCOLORS";break;case"BrtEndMRUColors":r="";break;case"BrtFRTBegin":u=!0;break;case"BrtFRTEnd":u=!1;break;case"BrtBeginStyleSheetExt14":break;case"BrtBeginSlicerStyles":break;case"BrtEndSlicerStyles":break;case"BrtBeginTimelineStylesheetExt15":break;case"BrtEndTimelineStylesheetExt15":break;case"BrtBeginTimelineStyles":break;case"BrtEndTimelineStyles":break;case"BrtEndStyleSheetExt14":break;default:if(!u||t.WTF)throw new Error("Unexpected record "+e+" "+f.n);}}),o}function bat(){var n=yr();return f(n,"BrtBeginStyleSheet"),f(n,"BrtEndStyleSheet"),n.end()}function kat(n,t){ot.themeElements.clrScheme=[];var i={};n[0].match(vt).forEach(function(n){var r=l(n);switch(r[0]){case"<a:clrScheme":case"<\/a:clrScheme>":break;case"<a:srgbClr":i.rgb=r.val;break;case"<a:sysClr":i.rgb=r.lastClr;break;case"<a:dk1>":case"<\/a:dk1>":case"<a:dk2>":case"<\/a:dk2>":case"<a:lt1>":case"<\/a:lt1>":case"<a:lt2>":case"<\/a:lt2>":case"<a:accent1>":case"<\/a:accent1>":case"<a:accent2>":case"<\/a:accent2>":case"<a:accent3>":case"<\/a:accent3>":case"<a:accent4>":case"<\/a:accent4>":case"<a:accent5>":case"<\/a:accent5>":case"<a:accent6>":case"<\/a:accent6>":case"<a:hlink>":case"<\/a:hlink>":case"<a:folHlink>":case"<\/a:folHlink>":r[0][1]==="/"?(ot.themeElements.clrScheme.push(i),i={}):i.name=r[0].substring(3,r[0].length-1);break;default:if(t.WTF)throw"unrecognized "+r[0]+" in clrScheme";}})}function dat(){}function gat(){}function rvt(n,t){ot.themeElements={};var i;[["clrScheme",nvt,kat],["fontScheme",tvt,dat],["fmtScheme",ivt,gat]].forEach(function(r){if(!(i=n.match(r[1])))throw r[0]+" not found in themeElements";r[2](i,t)})}function uvt(n,t){if(!n||n.length===0)return ot;var i;if(!(i=n.match(ic)))throw"themeElements not found in theme";return rvt(i[0],t),ot}function fvt(){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/><\/a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/><\/a:lt1><a:dk2><a:srgbClr val="1F497D"/><\/a:dk2><a:lt2><a:srgbClr val="EEECE1"/><\/a:lt2><a:accent1><a:srgbClr val="4F81BD"/><\/a:accent1><a:accent2><a:srgbClr val="C0504D"/><\/a:accent2><a:accent3><a:srgbClr val="9BBB59"/><\/a:accent3><a:accent4><a:srgbClr val="8064A2"/><\/a:accent4><a:accent5><a:srgbClr val="4BACC6"/><\/a:accent5><a:accent6><a:srgbClr val="F79646"/><\/a:accent6><a:hlink><a:srgbClr val="0000FF"/><\/a:hlink><a:folHlink><a:srgbClr val="800080"/><\/a:folHlink><\/a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Cambria"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="宋体"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><\/a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="宋体"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><\/a:minorFont><\/a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/><\/a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/><\/a:schemeClr><\/a:gs><a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/><\/a:schemeClr><\/a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/><\/a:schemeClr><\/a:gs><\/a:gsLst><a:lin ang="16200000" scaled="1"/><\/a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/><\/a:schemeClr><\/a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/><\/a:schemeClr><\/a:gs><\/a:gsLst><a:lin ang="16200000" scaled="0"/><\/a:gradFill><\/a:fillStyleLst><a:lnStyleLst><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/><\/a:schemeClr><\/a:solidFill><a:prstDash val="solid"/><\/a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/><\/a:solidFill><a:prstDash val="solid"/><\/a:ln><a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/><\/a:solidFill><a:prstDash val="solid"/><\/a:ln><\/a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/><\/a:srgbClr><\/a:outerShdw><\/a:effectLst><\/a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/><\/a:srgbClr><\/a:outerShdw><\/a:effectLst><\/a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/><\/a:srgbClr><\/a:outerShdw><\/a:effectLst><a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/><\/a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/><\/a:lightRig><\/a:scene3d><a:sp3d><a:bevelT w="63500" h="25400"/><\/a:sp3d><\/a:effectStyle><\/a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/><\/a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/><\/a:schemeClr><\/a:gs><a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/><\/a:schemeClr><\/a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/><\/a:schemeClr><\/a:gs><\/a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/><\/a:path><\/a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/><\/a:schemeClr><\/a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/><\/a:schemeClr><\/a:gs><\/a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/><\/a:path><\/a:gradFill><\/a:bgFillStyleLst><\/a:fmtScheme><\/a:themeElements><a:objectDefaults><a:spDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/><\/a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/><\/a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/><\/a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/><\/a:fontRef><\/a:style><\/a:spDef><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/><\/a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/><\/a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/><\/a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/><\/a:fontRef><\/a:style><\/a:lnDef><\/a:objectDefaults><a:extraClrSchemeLst/><\/a:theme>'}function evt(n,t){var i=n.read_shift(4);i!==124226&&(n.l+=t-4)}function ovt(n){return n.read_shift(4)}function svt(n){var t={};t.xclrType=n.read_shift(2);t.nTintShade=n.read_shift(2);switch(t.xclrType){case 0:n.l+=4;break;case 1:t.xclrValue=hvt(n,4);break;case 2:t.xclrValue=bs(n,4);break;case 3:t.xclrValue=ovt(n,4);break;case 4:n.l+=4}return n.l+=8,t}function hvt(n,i){return t(n,i)}function cvt(n,i){return t(n,i)}function lvt(n){var r=n.read_shift(2),t=n.read_shift(2),i=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:i[1]=svt(n,t);break;case 6:i[1]=cvt(n,t);break;case 14:case 15:i[1]=n.read_shift(t===5?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t);}return i}function avt(n,t){var f=n.l+t,r,u,i;for(n.l+=2,r=n.read_shift(2),n.l+=2,u=n.read_shift(2),i=[];u-->0;)i.push(lvt(n,f-n.l));return{ixfe:r,ext:i}}function vvt(n,t){t.forEach(function(n){switch(n[0]){case 4:break;case 5:break;case 7:case 8:case 9:case 10:break;case 13:break;case 14:break;default:throw"bafuq"+n[0].toString(16);}})}function yvt(n){var t=[],i=1;return(n.match(vt)||[]).forEach(function(n){var r=l(n);switch(r[0]){case"<c":delete r[0];r.i?i=r.i:r.i=i;t.push(r)}}),t}function pvt(n){var t={},i,r;return t.i=n.read_shift(4),i={},i.r=n.read_shift(4),i.c=n.read_shift(4),t.r=s(i),r=n.read_shift(1),r&2&&(t.l="1"),r&8&&(t.a="1"),t}function wvt(n,t){var i=[],r=!1;return vi(n,function(n,u,f){switch(u.n){case"BrtCalcChainItem$":i.push(n);break;case"BrtBeginCalcChain$":break;case"BrtEndCalcChain$":break;default:if(!r||t.WTF)throw new Error("Unexpected record "+f+" "+u.n);}}),i}function bvt(n,t,i,r,u){for(var e,o,l,s,h,a,v,f=0;f!=t.length;++f)if(e=t[f],o=gdt(c(n,e.replace(/^\//,""),!0),e,u),o&&o.length)for(l=w(i),s=0;s!=l.length;++s)h=l[s],a=r[h],a&&(v=a[e],v&&kvt(h,i[h],o))}function kvt(n,t,i){i.forEach(function(n){var u=t[n.ref],i,r,f,e;u||(u={},t[n.ref]=u,i=nt(t["!ref"]||"BDWGO1000001:A1"),r=wi(n.ref),i.s.r>r.r&&(i.s.r=r.r),i.e.r<r.r&&(i.e.r=r.r),i.s.c>r.c&&(i.s.c=r.c),i.e.c<r.c&&(i.e.c=r.c),f=g(i),f!==t["!ref"]&&(t["!ref"]=f));u.c||(u.c=[]);e={a:n.author,t:n.t,r:n.r};n.h&&(e.h=n.h);u.c.push(e)})}function dvt(n,t){if(n.match(/<(?:\w+:)?comments *\/>/))return[];var i=[],r=[];return n.match(/<(?:\w+:)?authors>([^\u2603]*)<\/(?:\w+:)?authors>/)[1].split(/<\/\w*:?author>/).forEach(function(n){n!==""&&n.trim()!==""&&i.push(n.match(/<(?:\w+:)?author[^>]*>(.*)/)[1])}),(n.match(/<(?:\w+:)?commentList>([^\u2603]*)<\/(?:\w+:)?commentList>/)||["",""])[1].split(/<\/\w*:?comment>/).forEach(function(n){var e,o;if(n!==""&&n.trim()!==""){var u=l(n.match(/<(?:\w+:)?comment[^>]*>/)[0]),f={author:u.authorId&&i[u.authorId]?i[u.authorId]:undefined,ref:u.ref,guid:u.guid},s=wi(u.ref);t.sheetRows&&t.sheetRows<=s.r||(e=n.match(/<text>([^\u2603]*)<\/text>/),e&&e[1])&&(o=pf(e[1]),f.r=o.r,f.t=o.t,t.cellHTML&&(f.h=o.h),r.push(f))}}),r}function gvt(n){var t={},i;return t.iauthor=n.read_shift(4),i=pr(n,16),t.rfx=i.s,t.ref=s(i.s),n.l+=16,t}function nyt(n,t){var r=[],u=[],i={},f=!1;return vi(n,function(n,e,o){switch(e.n){case"BrtCommentAuthor":u.push(n);break;case"BrtBeginComment":i=n;break;case"BrtCommentText":i.t=n.t;i.h=n.h;i.r=n.r;break;case"BrtEndComment":if(i.author=u[i.iauthor],delete i.iauthor,t.sheetRows&&t.sheetRows<=i.rfx.r)break;delete i.rfx;r.push(i);break;case"BrtBeginComments":break;case"BrtEndComments":break;case"BrtBeginCommentAuthors":break;case"BrtEndCommentAuthors":break;case"BrtBeginCommentList":break;case"BrtEndCommentList":break;default:if(!f||t.WTF)throw new Error("Unexpected record "+o+" "+e.n);}}),r}function tyt(n){return function(t){t.l+=n;return}}function h(n){n.l+=1;return}function rr(n){var t=n.read_shift(2);return[t&16383,t>>14&1,t>>15&1]}function ec(n){var r=n.read_shift(2),u=n.read_shift(2),t=rr(n,2),i=rr(n,2);return{s:{r:r,c:t[0],cRel:t[1],rRel:t[2]},e:{r:u,c:i[0],cRel:i[1],rRel:i[2]}}}function iyt(n){var r=n.read_shift(2),u=n.read_shift(2),t=rr(n,2),i=rr(n,2);return{s:{r:r,c:t[0],cRel:t[1],rRel:t[2]},e:{r:u,c:i[0],cRel:i[1],rRel:i[2]}}}function oc(n){var i=n.read_shift(2),t=rr(n,2);return{r:i,c:t[0],cRel:t[1],rRel:t[2]}}function ryt(n){var r=n.read_shift(2),t=n.read_shift(2),i=(t&32768)>>15,u=(t&16384)>>14;if(t&=16383,i!==0)while(t>=256)t-=256;return{r:r,c:t,cRel:i,rRel:u}}function uyt(n){var t=(n[n.l++]&96)>>5,i=ec(n,8);return[t,i]}function fyt(n){var t=(n[n.l++]&96)>>5,i=n.read_shift(2),r=ec(n,8);return[t,i,r]}function eyt(n){var t=(n[n.l++]&96)>>5;return n.l+=8,[t]}function oyt(n){var t=(n[n.l++]&96)>>5,i=n.read_shift(2);return n.l+=8,[t,i]}function syt(n){var t=(n[n.l++]&96)>>5,i=iyt(n,8);return[t,i]}function hyt(n){var t=(n[n.l++]&96)>>5;return n.l+=7,[t]}function cyt(n){var t=n[n.l+1]&1;return n.l+=4,[t,1]}function lyt(n){var r,t,i;for(n.l+=2,r=n.read_shift(2),t=[],i=0;i<=r;++i)t.push(n.read_shift(2));return t}function ayt(n){var t=n[n.l+1]&255?1:0;return n.l+=2,[t,n.read_shift(2)]}function vyt(n){var t=n[n.l+1]&255?1:0;return n.l+=2,[t,n.read_shift(2)]}function yyt(n){var t=n[n.l+1]&255?1:0;return n.l+=4,[t]}function sc(n){var t=n.read_shift(1),i=n.read_shift(1);return[t,i]}function pyt(n){return n.read_shift(2),sc(n,2)}function wyt(n){return n.read_shift(2),sc(n,2)}function byt(n){var r=n[n.l]&31,i=(n[n.l]&96)>>5,t;return n.l+=1,t=oc(n,4),[i,t]}function kyt(n){var r=n[n.l]&31,i=(n[n.l]&96)>>5,t;return n.l+=1,t=ryt(n,4),[i,t]}function dyt(n){var u=n[n.l]&31,r=(n[n.l]&96)>>5,t,i;return n.l+=1,t=n.read_shift(2),i=oc(n,4),[r,t,i]}function gyt(n){var i=n[n.l]&31,r=(n[n.l]&96)>>5,t;return n.l+=1,t=n.read_shift(2),[ubt[t],pc[t]]}function npt(n){n.l++;var i=n.read_shift(1),t=tpt(n);return[i,(t[0]===0?pc:rbt)[t[1]]]}function tpt(n){return[n[n.l+1]>>7,n.read_shift(2)&32767]}function ipt(n){n.l++;var t=n.read_shift(2),i=n.read_shift(2);return[t,i]}function rpt(n){return n.l++,kt[n.read_shift(1)]}function upt(n){return n.l++,n.read_shift(2)}function fpt(n){return n.l++,n.read_shift(1)!==0}function ept(n){return n.l++,et(n,8)}function opt(n){return n.l++,ir(n)}function spt(n){var t=[];switch(t[0]=n.read_shift(1)){case 4:t[1]=e(n,1)?"TRUE":"FALSE";n.l+=7;break;case 16:t[1]=kt[n[n.l]];n.l+=8;break;case 0:n.l+=8;break;case 1:t[1]=et(n,8);break;case 2:t[1]=pi(n)}return t}function hpt(n){for(var r=n.read_shift(2),t=[],i=0;i!=r;++i)t.push(iu(n,8));return t}function cpt(n){for(var i,u=1+n.read_shift(1),f=1+n.read_shift(2),t=0,r=[];t!=f&&(r[t]=[]);++t)for(i=0;i!=u;++i)r[t][i]=spt(n);return r}function lpt(n){var t=n.read_shift(1)>>>5&3,i=n.read_shift(4);return[t,0,i]}function apt(n){var t=n.read_shift(1)>>>5&3,i=n.read_shift(2),r=n.read_shift(4);return[t,i,r]}function vpt(n){var i=n.read_shift(1)>>>5&3,t;return n.l+=4,t=n.read_shift(2),[i,t]}function ypt(n){var t=n.read_shift(1)>>>5&3,i=n.read_shift(2);return[t,i]}function ppt(n){var t=n.read_shift(1)>>>5&3;return n.l+=4,[t]}function yc(n,t,i){var f=ti(n,6),u=kwt(n,8),e=n.read_shift(1),o,r;return n.read_shift(1),o=n.read_shift(4),r="",i.biff===5?n.l+=t-20:r=gwt(n,t-20,i),{cell:f,val:u[0],formula:r,shared:e>>3&1,tt:u[1]}}function kwt(n){var t;if(bt(n,n.l+6)!==65535)return[et(n),"n"];switch(n[n.l]){case 0:return n.l+=8,["String","s"];case 1:return t=n[n.l+2]===1,n.l+=8,[t,"b"];case 2:return t=n[n.l+2],n.l+=8,[t,"e"];case 3:return n.l+=8,["","s"]}}function uu(n,i,r,u){var o,e,f;if(u.biff<8)return t(n,i);for(o=n.l+i,e=[],f=0;f!==r.length;++f)switch(r[f][0]){case"PtgArray":r[f][1]=cpt(n);e.push(r[f][1]);break;case"PtgMemArea":r[f][2]=hpt(n,r[f][1]);e.push(r[f][2])}return i=o-n.l,i!==0&&e.push(t(n,i)),e}function dwt(n,t,i,r){var u=n.l+t,f=fu(n,r),e;return u!==n.l&&(e=uu(n,u-n.l,f,i)),[f,e]}function gwt(n,i,r){var o=n.l+i,e,u=n.read_shift(2),f;return u==65535?[[],t(n,i-2)]:(f=fu(n,u),i!==u+2&&(e=uu(n,i-u-2,f,r)),[f,e])}function nbt(n,i,r){var o=n.l+i,f,u=n.read_shift(2),e=fu(n,u);return u==65535?[[],t(n,i-2)]:(i!==u+2&&(f=uu(n,o-u-2,e,r)),[e,f])}function tbt(n,i,r){var o=n.l+i,e,u=n.read_shift(2),f;return u==65535?[[],t(n,i-2)]:(f=fu(n,u),i!==u+2&&(e=uu(n,o-u-2,f,r)),[f,e])}function fu(n,i){for(var e=n.l+i,u,r,f=[];e!=n.l;)i=e-n.l,r=n[n.l],u=df[r],(r===24||r===25)&&(r=n[n.l+1],u=(r===24?ac:vc)[r]),u&&u.f?f.push([u.n,u.f(n,i)]):f.push(t(n,i));return f}function ibt(n){return n.map(function(n){return n[1]}).join(",")}function eu(n,t,i,r,u){var l,f,o,e,a,c,k,v,d,nt,ut,h,y,tt,it,ft,p,w,b,rt,et,ot;if(u!==undefined&&u.biff===5)return"BIFF5??";if(l=t!==undefined?t:{s:{c:0,r:0}},f=[],!n[0]||!n[0][0])return"";for(nt=0,ut=n[0].length;nt<ut;++nt){h=n[0][nt];switch(h[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":o=f.pop();e=f.pop();f.push(e+"+"+o);break;case"PtgSub":o=f.pop();e=f.pop();f.push(e+"-"+o);break;case"PtgMul":o=f.pop();e=f.pop();f.push(e+"*"+o);break;case"PtgDiv":o=f.pop();e=f.pop();f.push(e+"/"+o);break;case"PtgPower":o=f.pop();e=f.pop();f.push(e+"^"+o);break;case"PtgConcat":o=f.pop();e=f.pop();f.push(e+"&"+o);break;case"PtgLt":o=f.pop();e=f.pop();f.push(e+"<"+o);break;case"PtgLe":o=f.pop();e=f.pop();f.push(e+"<="+o);break;case"PtgEq":o=f.pop();e=f.pop();f.push(e+"="+o);break;case"PtgGe":o=f.pop();e=f.pop();f.push(e+">="+o);break;case"PtgGt":o=f.pop();e=f.pop();f.push(e+">"+o);break;case"PtgNe":o=f.pop();e=f.pop();f.push(e+"<>"+o);break;case"PtgIsect":o=f.pop();e=f.pop();f.push(e+" "+o);break;case"PtgUnion":o=f.pop();e=f.pop();f.push(e+","+o);break;case"PtgRange":break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgRef":a=h[1][0];c=tr(wi(s(h[1][1])),l);f.push(s(c));break;case"PtgRefN":a=h[1][0];c=tr(wi(s(h[1][1])),i);f.push(s(c));break;case"PtgRef3d":a=h[1][0];k=h[1][1];c=tr(h[1][2],l);f.push(r[1][k+1]+"!"+s(c));break;case"PtgFunc":case"PtgFuncVar":y=h[1][0];tt=h[1][1];y||(y=0);it=f.slice(-y);f.length-=y;tt==="User"&&(tt=it.shift());f.push(tt+"("+it.join(",")+")");break;case"PtgBool":f.push(h[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(h[1]);break;case"PtgNum":f.push(String(h[1]));break;case"PtgStr":f.push('"'+h[1]+'"');break;case"PtgErr":f.push(h[1]);break;case"PtgArea":a=h[1][0];d=uv(h[1][1],l);f.push(g(d));break;case"PtgArea3d":a=h[1][0];k=h[1][1];d=h[1][2];f.push(r[1][k+1]+"!"+g(d));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":v=h[1][2];ft=r[0][v];p=ft.Name;p in wc&&(p=wc[p]);f.push(p);break;case"PtgNameX":w=h[1][1];v=h[1][2];r[w+1]?b=r[w+1][v]:r[w-1]&&(b=r[w-1][v]);b||(b={body:"??NAMEX??"});f.push(b.body);break;case"PtgParen":f.push("("+f.pop()+")");break;case"PtgRefErr":f.push("#REF!");break;case"PtgExp":if(c={c:h[1][1],r:h[1][0]},rt={c:i.c,r:i.r},r.sharedf[s(c)])et=r.sharedf[s(c)],f.push(eu(et,l,rt,r,u));else{for(ot=!1,o=0;o!=r.arrayf.length;++o)(e=r.arrayf[o],c.c<e[0].s.c||c.c>e[0].e.c)||c.r<e[0].s.r||c.r>e[0].e.r||f.push(eu(e[1],l,rt,r,u));ot||f.push(h[1])}break;case"PtgArray":f.push("{"+h[1].map(ibt).join(";")+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":break;case"PtgAreaN":f.push("");break;case"PtgRefErr3d":break;case"PtgMemFunc":break;default:throw"Unrecognized Formula Token: "+h;}}return f[0]}function ou(n,i){var r=n.read_shift(4);return t(n,i-4)}function bc(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i].t===t)return n.Count++,i;return n[r]={t:t},n.Count++,n.Unique++,r}function gf(n,t,i){for(var f=i.revssf[t.z!=null?t.z:"General"],r=0,u=n.length;r!=u;++r)if(n[r].numFmtId===f)return r;return n[u]={numFmtId:f,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},u}function kc(n,t,r,u){try{if(n.t==="e")n.w=n.w||kt[n.v];else if(t===0)if(n.t==="n")n.w=(n.v|0)===n.v?i._general_int(n.v,ii):i._general_num(n.v,ii);else if(n.t==="d"){var f=or(n.v);n.w=(f|0)===f?i._general_int(f,ii):i._general_num(f,ii)}else{if(n.v===undefined)return"";n.w=i._general(n.v,ii)}else n.w=n.t==="d"?i.format(t,or(n.v),ii):i.format(t,n.v,ii);u.cellNF&&(n.z=i._table[t])}catch(e){if(u.WTF)throw e;}if(r)try{n.s=o.Fills[r];n.s.fgColor&&n.s.fgColor.theme&&(n.s.fgColor.rgb=wh(ot.themeElements.clrScheme[n.s.fgColor.theme].rgb,n.s.fgColor.tint||0),u.WTF&&(n.s.fgColor.raw_rgb=ot.themeElements.clrScheme[n.s.fgColor.theme].rgb));n.s.bgColor&&n.s.bgColor.theme&&(n.s.bgColor.rgb=wh(ot.themeElements.clrScheme[n.s.bgColor.theme].rgb,n.s.bgColor.tint||0),u.WTF&&(n.s.bgColor.raw_rgb=ot.themeElements.clrScheme[n.s.bgColor.theme].rgb))}catch(e){if(u.WTF)throw e;}}function fbt(n,t){var i=nt(t);i.s.r<=i.e.r&&i.s.c<=i.e.c&&i.s.r>=0&&i.s.c>=0&&(n["!ref"]=g(i))}function lbt(n,t,i){var u,e,c,o,s,h,a,f,l,r;if(!n)return n;if(u={},e=n.indexOf("<dimension"),e>0&&(c=n.substr(e,50).match(hbt),c!=null&&fbt(u,c[1])),o=[],n.indexOf("<\/mergeCells>")!==-1)for(s=n.match(ebt),e=0;e!=s.length;++e)o[e]=nt(s[e].substr(s[e].indexOf('"')+1));return h=[],t.cellStyles&&n.indexOf("<\/cols>")!==-1&&(a=n.match(cbt),ybt(h,a)),f={s:{r:1e6,c:1e6},e:{r:0,c:0}},l=n.match(obt),l&&dc(l[1],u,t,f),n.indexOf("<\/hyperlinks>")!==-1&&vbt(u,n.match(sbt),i),!u["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(u["!ref"]=g(f)),t.sheetRows>0&&u["!ref"]&&(r=nt(u["!ref"]),t.sheetRows<+r.e.r&&(r.e.r=t.sheetRows-1,r.e.r>f.e.r&&(r.e.r=f.e.r),r.e.r<r.s.r&&(r.s.r=r.e.r),r.e.c>f.e.c&&(r.e.c=f.e.c),r.e.c<r.s.c&&(r.s.c=r.e.c),u["!fullref"]=u["!ref"],u["!ref"]=g(r))),o.length>0&&(u["!merges"]=o),h.length>0&&(u["!cols"]=h),u}function abt(n){var i,t;if(n.length==0)return"";for(i='<mergeCells count="'+n.length+'">',t=0;t!=n.length;++t)i+='<mergeCell ref="'+g(n[t])+'"/>';return i+"<\/mergeCells>"}function vbt(n,t,i){for(var r,u,f,o,h,c,e=0;e!=t.length;++e){if(r=l(t[e],!0),!r.ref)return;for(u=i?i["!id"][r.id]:null,u?(r.Target=u.Target,r.location&&(r.Target+="#"+r.location),r.Rel=u):(r.Target=r.location,u={Target:r.location,TargetMode:"Internal"},r.Rel=u),f=nt(r.ref),o=f.s.r;o<=f.e.r;++o)for(h=f.s.c;h<=f.e.c;++h)c=s({c:h,r:o}),n[c]||(n[c]={t:"stub",v:undefined}),n[c].l=r}}function ybt(n,t){for(var u=!1,r=0;r!=t.length;++r){var i=l(t[r],!0),f=parseInt(i.min,10)-1,e=parseInt(i.max,10)-1;for(delete i.min,delete i.max,!u&&i.width&&(u=!0,fat(+i.width,i)),i.width&&(i.wpx=dh(+i.width),i.wch=bf(i.wpx),i.MDW=p);f<=e;)n[f++]=i}}function pbt(n,t){for(var o,i=["<cols>"],u,f,e=0;e!=t.length;++e)(u=t[e])&&(o={min:e+1,max:e+1},f=-1,u.wpx?f=bf(u.wpx):u.wch&&(f=u.wch),f>-1&&(o.width=gh(f),o.customWidth=1),i[i.length]=r("col",null,o));return i[i.length]="<\/cols>",i.join("")}function wbt(n,t,u,f){if(n.v===undefined)return"";var e="",s=n.t,l=n.v;switch(n.t){case"b":e=n.v?"1":"0";break;case"n":e=""+n.v;break;case"e":e=kt[n.v];break;case"d":f.cellDates?e=new Date(n.v).toISOString():(n.t="n",e=""+(n.v=or(n.v)),typeof n.z=="undefined"&&(n.z=i._table[14]));break;default:e=n.v}var h=gu("v",hr(e)),o={r:t},c=gf(f.cellXfs,n,f);c!==0&&(o.s=c);switch(n.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;default:if(f.bookSST){h=gu("v",""+bc(f.Strings,n.v));o.t="s";break}o.t="str"}return n.t!=s&&(n.t=s,n.v=l),r("c",h,o)}function bbt(n,t,i,u){for(var c=[],o=[],e=nt(n["!ref"]),a,s,l="",v=[],h,f=e.s.c;f<=e.e.c;++f)v[f]=lt(f);for(h=e.s.r;h<=e.e.r;++h){for(o=[],l=ct(h),f=e.s.c;f<=e.e.c;++f)(s=v[f]+l,n[s]!==undefined)&&(a=wbt(n[s],s,n,t,i,u))!=null&&o.push(a);o.length>0&&(c[c.length]=r("row",o.join(""),{r:l}))}return c.join("")}function kbt(n,t,i){var u=[yt,gc],h=i.SheetNames[n],e=0,s="",f=i.Sheets[h],o;return f===undefined&&(f={}),o=f["!ref"],o===undefined&&(o="A1"),u[u.length]=r("dimension",null,{ref:o}),f["!cols"]!==undefined&&f["!cols"].length>0&&(u[u.length]=pbt(f,f["!cols"])),u[e=u.length]="<sheetData/>",f["!ref"]!==undefined&&(s=bbt(f,t,n,i),s.length>0&&(u[u.length]=s)),u.length>e+1&&(u[u.length]="<\/sheetData>",u[e]=u[e].replace("/>",">")),f["!merges"]!==undefined&&f["!merges"].length>0&&(u[u.length]=abt(f["!merges"])),u.length>2&&(u[u.length]="<\/worksheet>",u[1]=u[1].replace("/>",">")),u.join("")}function dbt(n,t){var i=[];return i.r=n.read_shift(4),n.l+=t-4,i}function gbt(n,t){var i={};return n.l+=19,i.name=sv(n,t-19),i}function nkt(n){var t=ht(n);return[t]}function tkt(n,t,i){return i==null&&(i=b(8)),ov(t,i)}function ikt(n){var t=ht(n),i=n.read_shift(1);return[t,i,"b"]}function rkt(n){var t=ht(n),i=n.read_shift(1);return[t,i,"e"]}function ukt(n){var t=ht(n),i=n.read_shift(4);return[t,i,"s"]}function fkt(n){var t=ht(n),i=et(n);return[t,i,"n"]}function ekt(n){var t=ht(n),i=ho(n);return[t,i,"n"]}function okt(n){var t=ht(n),i=ft(n);return[t,i,"str"]}function skt(n,t,i){var u=ht(n),f=n.read_shift(1),r=[u,f,"b"],e;return i.cellFormula?(e=ou(n,t-9),r[3]=""):n.l+=t-9,r}function hkt(n,t,i){var u=ht(n),f=n.read_shift(1),r=[u,f,"e"],e;return i.cellFormula?(e=ou(n,t-9),r[3]=""):n.l+=t-9,r}function ckt(n,t,i){var u=ht(n),f=et(n),r=[u,f,"n"],e;return i.cellFormula?(e=ou(n,t-16),r[3]=""):n.l+=t-16,r}function lkt(n,t,i){var r=n.l,u=ht(n),f=ft(n),e=[u,f,"str"],o;return i.cellFormula?o=ou(n,r+t-n.l):n.l=r+t,e}function akt(n,t){var i=n.l+t,r=pr(n,16),u=eo(n),f=ft(n),e=ft(n),o=ft(n);return n.l=i,{rfx:r,relId:u,loc:f,tooltip:e,display:o}}function vkt(n,t,i){var u;if(!n)return n;i||(i={"!id":{}});var e={},l,r={s:{r:1e6,c:1e6},e:{r:0,c:0}},v=!1,b=!1,c,f,k,h,a,y,p,w=[];return vi(n,function(n,u){if(!b)switch(u.n){case"BrtWsDim":l=n;break;case"BrtRowHdr":c=n;t.sheetRows&&t.sheetRows<=c.r&&(b=!0);p=ct(c.r);break;case"BrtFmlaBool":case"BrtFmlaError":case"BrtFmlaNum":case"BrtFmlaString":case"BrtCellBool":case"BrtCellError":case"BrtCellIsst":case"BrtCellReal":case"BrtCellRk":case"BrtCellSt":f={t:n[2]};switch(n[2]){case"n":f.v=n[1];break;case"s":y=ur[n[1]];f.v=y.t;f.r=y.r;break;case"b":f.v=n[1]?!0:!1;break;case"e":f.v=n[1];f.w=kt[f.v];break;case"str":f.t="s";f.v=rt(n[1])}t.cellFormula&&n.length>3&&(f.f=n[3]);(k=o.CellXf[n[0].iStyleRef])&&kc(f,k.ifmt,null,t);e[lt(h=n[0].c)+p]=f;r.s.r>c.r&&(r.s.r=c.r);r.s.c>h&&(r.s.c=h);r.e.r<c.r&&(r.e.r=c.r);r.e.c<h&&(r.e.c=h);break;case"BrtCellBlank":if(!t.sheetStubs)break;f={t:"s",v:undefined};e[lt(h=n[0].c)+p]=f;r.s.r>c.r&&(r.s.r=c.r);r.s.c>h&&(r.s.c=h);r.e.r<c.r&&(r.e.r=c.r);r.e.c<h&&(r.e.c=h);break;case"BrtBeginMergeCells":break;case"BrtEndMergeCells":break;case"BrtMergeCell":w.push(n);break;case"BrtHLink":var d=i["!id"][n.relId];for(d&&(n.Target=d.Target,n.loc&&(n.Target+="#"+n.loc),n.Rel=d),u=n.rfx.s.r;u<=n.rfx.e.r;++u)for(h=n.rfx.s.c;h<=n.rfx.e.c;++h)a=s({c:h,r:u}),e[a]||(e[a]={t:"s",v:undefined}),e[a].l=n;break;case"BrtArrFmla":break;case"BrtShrFmla":break;case"BrtBeginSheet":break;case"BrtWsProp":break;case"BrtSheetCalcProp":break;case"BrtBeginWsViews":break;case"BrtBeginWsView":break;case"BrtPane":break;case"BrtSel":break;case"BrtEndWsView":break;case"BrtEndWsViews":break;case"BrtACBegin":break;case"BrtRwDescent":break;case"BrtACEnd":break;case"BrtWsFmtInfoEx14":break;case"BrtWsFmtInfo":break;case"BrtBeginColInfos":break;case"BrtColInfo":break;case"BrtEndColInfos":break;case"BrtBeginSheetData":break;case"BrtEndSheetData":break;case"BrtSheetProtection":break;case"BrtPrintOptions":break;case"BrtMargins":break;case"BrtPageSetup":break;case"BrtFRTBegin":v=!0;break;case"BrtFRTEnd":v=!1;break;case"BrtEndSheet":break;case"BrtDrawing":break;case"BrtLegacyDrawing":break;case"BrtLegacyDrawingHF":break;case"BrtPhoneticInfo":break;case"BrtBeginHeaderFooter":break;case"BrtEndHeaderFooter":break;case"BrtBrk":break;case"BrtBeginRwBrk":break;case"BrtEndRwBrk":break;case"BrtBeginColBrk":break;case"BrtEndColBrk":break;case"BrtBeginUserShViews":break;case"BrtBeginUserShView":break;case"BrtEndUserShView":break;case"BrtEndUserShViews":break;case"BrtBkHim":break;case"BrtBeginOleObjects":break;case"BrtOleObject":break;case"BrtEndOleObjects":break;case"BrtBeginListParts":break;case"BrtListPart":break;case"BrtEndListParts":break;case"BrtBeginSortState":break;case"BrtBeginSortCond":break;case"BrtEndSortCond":break;case"BrtEndSortState":break;case"BrtBeginConditionalFormatting":break;case"BrtEndConditionalFormatting":break;case"BrtBeginCFRule":break;case"BrtEndCFRule":break;case"BrtBeginDVals":break;case"BrtDVal":break;case"BrtEndDVals":break;case"BrtRangeProtection":break;case"BrtBeginDCon":break;case"BrtEndDCon":break;case"BrtBeginDRefs":break;case"BrtDRef":break;case"BrtEndDRefs":break;case"BrtBeginActiveXControls":break;case"BrtActiveX":break;case"BrtEndActiveXControls":break;case"BrtBeginAFilter":break;case"BrtEndAFilter":break;case"BrtBeginFilterColumn":break;case"BrtBeginFilters":break;case"BrtFilter":break;case"BrtEndFilters":break;case"BrtEndFilterColumn":break;case"BrtDynamicFilter":break;case"BrtTop10Filter":break;case"BrtBeginCustomFilters":break;case"BrtCustomFilter":break;case"BrtEndCustomFilters":break;case"BrtBeginSmartTags":break;case"BrtBeginCellSmartTags":break;case"BrtBeginCellSmartTag":break;case"BrtCellSmartTagProperty":break;case"BrtEndCellSmartTag":break;case"BrtEndCellSmartTags":break;case"BrtEndSmartTags":break;case"BrtBeginCellWatches":break;case"BrtCellWatch":break;case"BrtEndCellWatches":break;case"BrtTable":break;case"BrtBeginCellIgnoreECs":break;case"BrtCellIgnoreEC":break;case"BrtEndCellIgnoreECs":break;default:if(!v||t.WTF)throw new Error("Unexpected record "+u.n);}},t),!e["!ref"]&&(r.s.r<1e6||l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0)&&(e["!ref"]=g(l)),t.sheetRows&&e["!ref"]&&(u=nt(e["!ref"]),t.sheetRows<+u.e.r&&(u.e.r=t.sheetRows-1,u.e.r>r.e.r&&(u.e.r=r.e.r),u.e.r<u.s.r&&(u.s.r=u.e.r),u.e.c>r.e.c&&(u.e.c=r.e.c),u.e.c<u.s.c&&(u.s.c=u.e.c),e["!fullref"]=e["!ref"],e["!ref"]=g(u))),w.length>0&&(e["!merges"]=w),e}function ykt(n,t,i,r,u){var o,e;if(t.v===undefined)return"";o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"n":case"e":o=""+t.v;break;default:o=t.v}e={r:i,c:r};e.s=gf(u.cellXfs,t,u);switch(t.t){case"s":case"str":if(u.bookSST){o=bc(u.Strings,t.v);e.t="s";break}e.t="str";break;case"b":e.t="b";break;case"e":e.t="e"}f(n,"BrtCellBlank",tkt(t,e))}function pkt(n,t,i,r){var o=nt(t["!ref"]||"A1"),s,h="",c=[],e,u;for(f(n,"BrtBeginSheetData"),e=o.s.r;e<=o.e.r;++e)for(h=ct(e),u=o.s.c;u<=o.e.c;++u)(e===o.s.r&&(c[u]=lt(u)),s=c[u]+h,t[s])&&ykt(n,t[s],e,u,r);f(n,"BrtEndSheetData")}function wkt(n,t,i){var r=yr(),e=i.SheetNames[n],u=i.Sheets[e]||{},o=nt(u["!ref"]||"A1");return f(r,"BrtBeginSheet"),f(r,"BrtWsDim",tl(o)),pkt(r,u,n,t,i),f(r,"BrtEndSheet"),r.end()}function rl(n,t){for(var f,r,u,i=0;i!=n.length;++i)for(f=n[i],r=0;r!=t.length;++r)u=t[r],f[u[0]]==null&&(f[u[0]]=u[1])}function ul(n,t){for(var r,i=0;i!=t.length;++i)r=t[i],n[r[0]]==null&&(n[r[0]]=r[1])}function fl(n){ul(n.WBProps,bkt);ul(n.CalcPr,gkt);rl(n.WBView,kkt);rl(n.Sheets,dkt);ii.date1904=oi(n.WBProps.date1904,"date1904")}function ndt(n,t){var i={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=!1,f="xmlns";if(n.match(vt).forEach(function(n){var u=l(n);switch(aa(u[0])){case"<?xml":break;case"<workbook":n.match(el)&&(f="xmlns"+n.match(/<(\w+):/)[1]);i.xmlns=u[f];break;case"<\/workbook>":break;case"<fileVersion":delete u[0];i.AppVersion=u;break;case"<fileVersion/>":break;case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":delete u[0];i.WBProps=u;break;case"<workbookPr/>":delete u[0];i.WBProps=u;break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews>":case"<\/bookViews>":break;case"<workbookView":delete u[0];i.WBView.push(u);break;case"<sheets>":case"<\/sheets>":break;case"<sheet":delete u[0];u.name=rt(u.name);i.Sheets.push(u);break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"<\/externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":r=!0;break;case"<\/definedNames>":r=!1;break;case"<definedName":case"<definedName/>":case"<\/definedName>":break;case"<calcPr":delete u[0];i.CalcPr=u;break;case"<calcPr/>":delete u[0];i.CalcPr=u;break;case"<oleSize":break;case"<customWorkbookViews>":case"<\/customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"<\/customWorkbookView>":break;case"<pivotCaches>":case"<\/pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"<\/smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"<\/webPublishObjects>":break;case"<webPublishObject":break;case"<extLst>":case"<\/extLst>":case"<extLst/>":break;case"<ext":r=!0;break;case"<\/ext>":r=!1;break;case"<ArchID":break;case"<AlternateContent":r=!0;break;case"<\/AlternateContent>":r=!1;break;default:if(!r&&t.WTF)throw"unrecognized "+u[0]+" in workbook";}}),u.main.indexOf(i.xmlns)===-1)throw new Error("Unknown Namespace: "+i.xmlns);return fl(i),i}function tdt(n){try{return oi(n.Workbook.WBProps.date1904)?"true":"false"}catch(t){return"false"}}function idt(n){var t=[yt],i;for(t[t.length]=ol,t[t.length]=r("workbookPr",null,{date1904:tdt(n)}),t[t.length]="<sheets>",i=0;i!=n.SheetNames.length;++i)t[t.length]=r("sheet",null,{name:n.SheetNames[i].substr(0,31),sheetId:""+(i+1),"r:id":"rId"+(i+1)});return t[t.length]="<\/sheets>",t.length>2&&(t[t.length]="<\/workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function rdt(n,t){var i={};return i.hsState=n.read_shift(4),i.iTabID=n.read_shift(4),i.strRelID=oo(n,t-8),i.name=ft(n),i}function udt(n,t){return t||(t=b(127)),t.write_shift(4,n.hsState),t.write_shift(4,n.iTabID),so(n.strRelID,t),yi(n.name.substr(0,31),t),t}function fdt(n,t){n.read_shift(4);var i=n.read_shift(4),r=t>8?ft(n):"";return[i,r]}function edt(n,t){return t||(t=b(8)),t.write_shift(4,0),t.write_shift(4,0),t}function odt(n,t){var i={};return n.read_shift(4),i.ArchID=n.read_shift(4),n.l+=t-8,i}function sdt(n,t){var i={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=!1;return vi(n,function(n,u){switch(u.n){case"BrtBundleSh":i.Sheets.push(n);break;case"BrtBeginBook":break;case"BrtFileVersion":break;case"BrtWbProp":break;case"BrtACBegin":break;case"BrtAbsPath15":break;case"BrtACEnd":break;case"BrtWbFactoid":break;case"BrtBookProtection":break;case"BrtBeginBookViews":break;case"BrtBookView":break;case"BrtEndBookViews":break;case"BrtBeginBundleShs":break;case"BrtEndBundleShs":break;case"BrtBeginFnGroup":break;case"BrtEndFnGroup":break;case"BrtBeginExternals":break;case"BrtSupSelf":break;case"BrtSupBookSrc":break;case"BrtExternSheet":break;case"BrtEndExternals":break;case"BrtName":break;case"BrtCalcProp":break;case"BrtUserBookView":break;case"BrtBeginPivotCacheIDs":break;case"BrtBeginPivotCacheID":break;case"BrtEndPivotCacheID":break;case"BrtEndPivotCacheIDs":break;case"BrtWebOpt":break;case"BrtFileRecover":break;case"BrtFileSharing":break;case"BrtBeginSmartTagTypes":break;case"BrtSmartTagType":break;case"BrtEndSmartTagTypes":break;case"BrtFRTBegin":r=!0;break;case"BrtFRTArchID$":break;case"BrtWorkBookPr15":break;case"BrtFRTEnd":r=!1;break;case"BrtEndBook":break;default:if(!r||t.WTF)throw new Error("Unexpected record "+u.n);}}),fl(i),i}function hdt(n,t){var i,r;for(f(n,"BrtBeginBundleShs"),i=0;i!=t.SheetNames.length;++i)r={hsState:0,iTabID:i+1,strRelID:"rId"+(i+1),name:t.SheetNames[i]},f(n,"BrtBundleSh",udt(r));f(n,"BrtEndBundleShs")}function cdt(t,i){i||(i=b(127));for(var r=0;r!=4;++r)i.write_shift(4,0);return yi("SheetJS",i),yi(n.version,i),yi(n.version,i),yi("7262",i),i.length=i.l,i}function ldt(n){f(n,"BrtBeginBookViews");f(n,"BrtEndBookViews")}function adt(n,t){return t||(t=b(26)),t.write_shift(4,0),t.write_shift(4,1),t.write_shift(4,0),lv(0,t),t.write_shift(-4,1023),t.write_shift(1,51),t.write_shift(1,0),t}function vdt(n,t){return t||(t=b(1)),t.write_shift(1,0),t}function ydt(n,t){var i=yr();return f(i,"BrtBeginBook"),f(i,"BrtFileVersion",cdt()),f(i,"BrtWbProp",edt()),ldt(i,n,t),hdt(i,n,t),f(i,"BrtCalcProp",adt()),f(i,"BrtFileRecover",vdt()),f(i,"BrtEndBook"),i.end()}function pdt(n,t,i){return(t.substr(-4)===".bin"?sdt:ndt)(n,i)}function wdt(n,t,i,r){return(t.substr(-4)===".bin"?vkt:lbt)(n,i,r)}function bdt(n,t,i){return(t.substr(-4)===".bin"?wat:nc)(n,i)}function kdt(n,t,i){return uvt(n,i)}function ddt(n,t,i){return(t.substr(-4)===".bin"?clt:olt)(n,i)}function gdt(n,t,i){return(t.substr(-4)===".bin"?nyt:dvt)(n,i)}function ngt(n,t,i){return(t.substr(-4)===".bin"?wvt:yvt)(n,i)}function tgt(n,t,i){return(t.substr(-4)===".bin"?ydt:idt)(n,i)}function igt(n,t,i,r){return(t.substr(-4)===".bin"?wkt:kbt)(n,i,r)}function rgt(n,t,i){return(t.substr(-4)===".bin"?bat:aat)(n,i)}function ugt(n,t,i){return(t.substr(-4)===".bin"?alt:slt)(n,i)}function wt(n,t){var e=n.split(/\s+/),r=[],u,i,o,s,f;if(t||(r[0]=e[0]),e.length===1)return r;if(u=n.match(sl),u)for(f=0;f!=u.length;++f)i=u[f].match(hl),(o=i[1].indexOf(":"))===-1?r[i[1]]=i[2].substr(1,i[2].length-2):(s=i[1].substr(0,6)==="xmlns:"?"xmlns"+i[1].substr(6):i[1].substr(o+1),r[s]=i[2].substr(1,i[2].length-2));return r}function egt(n){var o=n.split(/\s+/),i={},r,t,f,e,u;if(o.length===1)return i;if(r=n.match(sl),r)for(u=0;u!=r.length;++u)t=r[u].match(hl),(f=t[1].indexOf(":"))===-1?i[t[1]]=t[2].substr(1,t[2].length-2):(e=t[1].substr(0,6)==="xmlns:"?"xmlns"+t[1].substr(6):t[1].substr(f+1),i[e]=t[2].substr(1,t[2].length-2));return i}function ogt(n,t){var r=ce[n]||it(n);return r==="General"?i._general(t):i.format(r,t)}function sgt(n,t,i,r){switch((i[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":r=oi(r);break;case"i2":case"int":r=parseInt(r,10);break;case"r4":case"float":r=parseFloat(r);break;case"date":case"dateTime.tz":r=new Date(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw"bad custprop:"+i[0];}n[it(t[3])]=r}function hgt(n,t,r){try{n.w=n.t==="e"?n.w||kt[n.v]:t==="General"?n.t==="n"?(n.v|0)===n.v?i._general_int(n.v):i._general_num(n.v):i._general(n.v):ogt(t||"General",n.v);r.cellNF&&(n.z=ce[t]||t||"General")}catch(u){if(r.WTF)throw u;}}function cgt(n,t,i){if(i.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=eat[r.Pattern]||r.Pattern)}n[t.ID]=t}function lgt(n,t,i,r,u,f,e,o,s){var c="General",h=r.StyleID,l={},a;for(s=s||{},a=[],h===undefined&&o&&(h=o.StyleID),h===undefined&&e&&(h=e.StyleID);f[h]!==undefined;){if(f[h].nf&&(c=f[h].nf),f[h].Interior&&a.push(f[h].Interior),!f[h].Parent)break;h=f[h].Parent}switch(i.Type){case"Boolean":r.t="b";r.v=oi(n);break;case"String":r.t="s";r.r=wu(it(n));r.v=n.indexOf("<")>-1?t:r.r;break;case"DateTime":r.v=(Date.parse(n)-new Date(Date.UTC(1899,11,30)))/864e5;r.v!==r.v?r.v=it(n):r.v>=1&&r.v<60&&(r.v=r.v-1);c&&c!="General"||(c="yyyy-mm-dd");case"Number":r.v===undefined&&(r.v=+n);r.t||(r.t="n");break;case"Error":r.t="e";r.v=rf[n];r.w=n;break;default:r.t="s";r.v=wu(t)}hgt(r,c,s);s.cellFormula!=null&&r.Formula&&(r.f=fc(it(r.Formula),u),r.Formula=undefined);s.cellStyles&&(a.forEach(function(n){!l.patternType&&n.patternType&&(l.patternType=n.patternType)}),r.s=l);r.ixfe=r.StyleID!==undefined?r.StyleID:"Default"}function agt(n){n.t=n.v;n.v=n.w=n.ixfe=undefined}function vgt(n){if(tt&&Buffer.isBuffer(n))return n.toString("utf8");if(typeof n=="string")return n;throw"badf";}function te(n,t){var y=vgt(n),r,u=[],o,ft={},et=[],p={},it="",dt={},f={},l={},ot,st,e=0,c=0,s={s:{r:1e6,c:1e6},e:{r:0,c:0}},ht={},b={},rt="",at=0,k=[],vt={},yt={},d=0,pt={},nt=[],tt={},v=[],w,bt,kt,ut,h,a;for(ne.lastIndex=0;r=ne.exec(y);)switch(r[3]){case"Data":if(u[u.length-1][1])break;r[1]==="/"?lgt(y.slice(st,r.index),rt,ot,u[u.length-1][0]=="Comment"?tt:f,{c:e,r:c},ht,v[e],l,t):(rt="",ot=wt(r[0]),st=r.index+r[0].length);break;case"Cell":r[1]==="/"?(nt.length>0&&(f.c=nt),(!t.sheetRows||t.sheetRows>c)&&f.v!==undefined&&(p[lt(e)+ct(c)]=f),f.HRef&&(f.l={Target:f.HRef,tooltip:f.HRefScreenTip},f.HRef=f.HRefScreenTip=undefined),(f.MergeAcross||f.MergeDown)&&(bt=e+(parseInt(f.MergeAcross,10)|0),kt=c+(parseInt(f.MergeDown,10)|0),k.push({s:{c:e,r:c},e:{c:bt,r:kt}})),++e,f.MergeAcross&&(e+=+f.MergeAcross)):(f=egt(r[0]),f.Index&&(e=+f.Index-1),e<s.s.c&&(s.s.c=e),e>s.e.c&&(s.e.c=e),r[0].substr(-2)==="/>"&&++e,nt=[]);break;case"Row":r[1]==="/"||r[0].substr(-2)==="/>"?(c<s.s.r&&(s.s.r=c),c>s.e.r&&(s.e.r=c),r[0].substr(-2)==="/>"&&(l=wt(r[0]),l.Index&&(c=+l.Index-1)),e=0,++c):(l=wt(r[0]),l.Index&&(c=+l.Index-1));break;case"Worksheet":if(r[1]==="/"){if((o=u.pop())[0]!==r[3])throw"Bad state: "+o;et.push(it);s.s.r<=s.e.r&&s.s.c<=s.e.c&&(p["!ref"]=g(s));k.length&&(p["!merges"]=k);ft[it]=p}else s={s:{r:1e6,c:1e6},e:{r:0,c:0}},c=e=0,u.push([r[3],!1]),o=wt(r[0]),it=o.Name,p={},k=[];break;case"Table":if(r[1]==="/"){if((o=u.pop())[0]!==r[3])throw"Bad state: "+o;}else if(r[0].slice(-2)=="/>")break;else dt=wt(r[0]),u.push([r[3],!1]),v=[];break;case"Style":r[1]==="/"?cgt(ht,b,t):b=wt(r[0]);break;case"NumberFormat":b.nf=wt(r[0]).Format||"General";break;case"Column":if(u[u.length-1][0]!=="Table")break;for(w=wt(r[0]),v[w.Index-1||v.length]=w,ut=0;ut<+w.Span;++ut)v[v.length]=w;break;case"NamedRange":break;case"NamedCell":break;case"B":break;case"I":break;case"U":break;case"S":break;case"Sub":break;case"Sup":break;case"Span":break;case"Border":break;case"Alignment":break;case"Borders":break;case"Font":if(r[0].substr(-2)==="/>")break;else r[1]==="/"?rt+=y.slice(at,r.index):at=r.index+r[0].length;break;case"Interior":if(!t.cellStyles)break;b.Interior=wt(r[0]);break;case"Protection":break;case"Author":case"Title":case"Description":case"Created":case"Keywords":case"Subject":case"Category":case"Company":case"LastAuthor":case"LastSaved":case"LastPrinted":case"Version":case"Revision":case"TotalTime":case"HyperlinkBase":case"Manager":if(r[0].substr(-2)==="/>")break;else r[1]==="/"?ry(vt,r[3],y.slice(d,r.index)):d=r.index+r[0].length;break;case"Paragraphs":break;case"Styles":case"Workbook":if(r[1]==="/"){if((o=u.pop())[0]!==r[3])throw"Bad state: "+o;}else u.push([r[3],!1]);break;case"Comment":if(r[1]==="/"){if((o=u.pop())[0]!==r[3])throw"Bad state: "+o;agt(tt);nt.push(tt)}else u.push([r[3],!1]),o=wt(r[0]),tt={a:o.Author};break;case"Name":break;case"ComponentOptions":case"DocumentProperties":case"CustomDocumentProperties":case"OfficeDocumentSettings":case"PivotTable":case"PivotCache":case"Names":case"MapInfo":case"PageBreaks":case"QueryTable":case"DataValidation":case"AutoFilter":case"Sorting":case"Schema":case"data":case"ConditionalFormatting":case"SmartTagType":case"SmartTags":case"ExcelWorkbook":case"WorkbookOptions":case"WorksheetOptions":if(r[1]==="/"){if((o=u.pop())[0]!==r[3])throw"Bad state: "+o;}else r[0].charAt(r[0].length-2)!=="/"&&u.push([r[3],!0]);break;default:h=!0;switch(u[u.length-1][0]){case"OfficeDocumentSettings":switch(r[3]){case"AllowPNG":break;case"RemovePersonalInformation":break;case"DownloadComponents":break;case"LocationOfComponents":break;case"Colors":break;case"Color":break;case"Index":break;case"RGB":break;case"PixelsPerInch":break;case"TargetScreenSize":break;case"ReadOnlyRecommended":break;default:h=!1}break;case"ComponentOptions":switch(r[3]){case"Toolbar":break;case"HideOfficeLogo":break;case"SpreadsheetAutoFit":break;case"Label":break;case"Caption":break;case"MaxHeight":break;case"MaxWidth":break;case"NextSheetNumber":break;default:h=!1}break;case"ExcelWorkbook":switch(r[3]){case"WindowHeight":break;case"WindowWidth":break;case"WindowTopX":break;case"WindowTopY":break;case"TabRatio":break;case"ProtectStructure":break;case"ProtectWindows":break;case"ActiveSheet":break;case"DisplayInkNotes":break;case"FirstVisibleSheet":break;case"SupBook":break;case"SheetName":break;case"SheetIndex":break;case"SheetIndexFirst":break;case"SheetIndexLast":break;case"Dll":break;case"AcceptLabelsInFormulas":break;case"DoNotSaveLinkValues":break;case"Date1904":break;case"Iteration":break;case"MaxIterations":break;case"MaxChange":break;case"Path":break;case"Xct":break;case"Count":break;case"SelectedSheets":break;case"Calculation":break;case"Uncalced":break;case"StartupPrompt":break;case"Crn":break;case"ExternName":break;case"Formula":break;case"ColFirst":break;case"ColLast":break;case"WantAdvise":break;case"Boolean":break;case"Error":break;case"Text":break;case"OLE":break;case"NoAutoRecover":break;case"PublishObjects":break;case"DoNotCalculateBeforeSave":break;case"Number":break;case"RefModeR1C1":break;case"EmbedSaveSmartTags":break;default:h=!1}break;case"WorkbookOptions":switch(r[3]){case"OWCVersion":break;case"Height":break;case"Width":break;default:h=!1}break;case"WorksheetOptions":switch(r[3]){case"Unsynced":break;case"Visible":break;case"Print":break;case"Panes":break;case"Scale":break;case"Pane":break;case"Number":break;case"Layout":break;case"Header":break;case"Footer":break;case"PageSetup":break;case"PageMargins":break;case"Selected":break;case"ProtectObjects":break;case"EnableSelection":break;case"ProtectScenarios":break;case"ValidPrinterInfo":break;case"HorizontalResolution":break;case"VerticalResolution":break;case"NumberofCopies":break;case"ActiveRow":break;case"ActiveCol":break;case"ActivePane":break;case"TopRowVisible":break;case"TopRowBottomPane":break;case"LeftColumnVisible":break;case"LeftColumnRightPane":break;case"FitToPage":break;case"RangeSelection":break;case"PaperSizeIndex":break;case"PageLayoutZoom":break;case"PageBreakZoom":break;case"FilterOn":break;case"DoNotDisplayGridlines":break;case"SplitHorizontal":break;case"SplitVertical":break;case"FreezePanes":break;case"FrozenNoSplit":break;case"FitWidth":break;case"FitHeight":break;case"CommentsLayout":break;case"Zoom":break;case"LeftToRight":break;case"Gridlines":break;case"AllowSort":break;case"AllowFilter":break;case"AllowInsertRows":break;case"AllowDeleteRows":break;case"AllowInsertCols":break;case"AllowDeleteCols":break;case"AllowInsertHyperlinks":break;case"AllowFormatCells":break;case"AllowSizeCols":break;case"AllowSizeRows":break;case"NoSummaryRowsBelowDetail":break;case"TabColorIndex":break;case"DoNotDisplayHeadings":break;case"ShowPageLayoutZoom":break;case"NoSummaryColumnsRightDetail":break;case"BlackAndWhite":break;case"DoNotDisplayZeros":break;case"DisplayPageBreak":break;case"RowColHeadings":break;case"DoNotDisplayOutline":break;case"NoOrientation":break;case"AllowUsePivotTables":break;case"ZeroHeight":break;case"ViewableRange":break;case"Selection":break;case"ProtectContents":break;default:h=!1}break;case"PivotTable":case"PivotCache":switch(r[3]){case"ImmediateItemsOnDrop":break;case"ShowPageMultipleItemLabel":break;case"CompactRowIndent":break;case"Location":break;case"PivotField":break;case"Orientation":break;case"LayoutForm":break;case"LayoutSubtotalLocation":break;case"LayoutCompactRow":break;case"Position":break;case"PivotItem":break;case"DataType":break;case"DataField":break;case"SourceName":break;case"ParentField":break;case"PTLineItems":break;case"PTLineItem":break;case"CountOfSameItems":break;case"Item":break;case"ItemType":break;case"PTSource":break;case"CacheIndex":break;case"ConsolidationReference":break;case"FileName":break;case"Reference":break;case"NoColumnGrand":break;case"NoRowGrand":break;case"BlankLineAfterItems":break;case"Hidden":break;case"Subtotal":break;case"BaseField":break;case"MapChildItems":break;case"Function":break;case"RefreshOnFileOpen":break;case"PrintSetTitles":break;case"MergeLabels":break;case"DefaultVersion":break;case"RefreshName":break;case"RefreshDate":break;case"RefreshDateCopy":break;case"VersionLastRefresh":break;case"VersionLastUpdate":break;case"VersionUpdateableMin":break;case"VersionRefreshableMin":break;case"Calculation":break;default:h=!1}break;case"PageBreaks":switch(r[3]){case"ColBreaks":break;case"ColBreak":break;case"RowBreaks":break;case"RowBreak":break;case"ColStart":break;case"ColEnd":break;case"RowEnd":break;default:h=!1}break;case"AutoFilter":switch(r[3]){case"AutoFilterColumn":break;case"AutoFilterCondition":break;case"AutoFilterAnd":break;case"AutoFilterOr":break;default:h=!1}break;case"QueryTable":switch(r[3]){case"Id":break;case"AutoFormatFont":break;case"AutoFormatPattern":break;case"QuerySource":break;case"QueryType":break;case"EnableRedirections":break;case"RefreshedInXl9":break;case"URLString":break;case"HTMLTables":break;case"Connection":break;case"CommandText":break;case"RefreshInfo":break;case"NoTitles":break;case"NextId":break;case"ColumnInfo":break;case"OverwriteCells":break;case"DoNotPromptForFile":break;case"TextWizardSettings":break;case"Source":break;case"Number":break;case"Decimal":break;case"ThousandSeparator":break;case"TrailingMinusNumbers":break;case"FormatSettings":break;case"FieldType":break;case"Delimiters":break;case"Tab":break;case"Comma":break;case"AutoFormatName":break;case"VersionLastEdit":break;case"VersionLastRefresh":break;default:h=!1}break;case"Sorting":case"ConditionalFormatting":case"DataValidation":switch(r[3]){case"Range":break;case"Type":break;case"Min":break;case"Max":break;case"Sort":break;case"Descending":break;case"Order":break;case"CaseSensitive":break;case"Value":break;case"ErrorStyle":break;case"ErrorMessage":break;case"ErrorTitle":break;case"CellRangeList":break;case"InputMessage":break;case"InputTitle":break;case"ComboHide":break;case"InputHide":break;case"Condition":break;case"Qualifier":break;case"UseBlank":break;case"Value1":break;case"Value2":break;case"Format":break;default:h=!1}break;case"MapInfo":case"Schema":case"data":switch(r[3]){case"Map":break;case"Entry":break;case"Range":break;case"XPath":break;case"Field":break;case"XSDType":break;case"FilterOn":break;case"Aggregate":break;case"ElementType":break;case"AttributeType":break;case"schema":case"element":case"complexType":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:h=!1}break;case"SmartTags":break;default:h=!1}if(h)break;if(!u[u.length-1][1])throw"Unrecognized tag: "+r[3]+"|"+u.join("|");if(u[u.length-1][0]==="CustomDocumentProperties"){if(r[0].substr(-2)==="/>")break;else r[1]==="/"?sgt(yt,r,pt,y.slice(d,r.index)):(pt=r,d=r.index+r[0].length);break}if(t.WTF)throw"Unrecognized tag: "+r[3]+"|"+u.join("|");}return a={},t.bookSheets||t.bookProps||(a.Sheets=ft),a.SheetNames=et,a.SSF=i.get_table(),a.Props=vt,a.Custprops=yt,a}function ygt(n,t){hu(t=t||{});switch(t.type||"base64"){case"base64":return te(bi.decode(n),t);case"binary":case"buffer":case"file":return te(n,t);case"array":return te(n.map(fgt).join(""),t)}}function pgt(){}function wgt(n){var u={},r=n.content,i=28,t;t=ci(r,i);i+=4+pt(r,i);u.UserType=t;t=pt(r,i);i+=4;switch(t){case 0:break;case 4294967295:case 4294967294:i+=4;break;default:if(t>400)throw new Error("Unsupported Clipboard: "+t.toString(16));i+=t}if(t=ci(r,i),i+=t.length===0?0:5+t.length,u.Reserved1=t,(t=pt(r,i))!==1907550708)return u;throw"Unsupported Unicode Extension";}function bgt(n,t,i,r){var f=i,e=[],h=t.slice(t.l,t.l+f),o,u,c,s;if(r&&r.enc&&r.enc.insitu_decrypt)switch(n.n){case"BOF":case"FilePass":case"FileLock":case"InterfaceHdr":case"RRDInfo":case"RRDHead":case"UsrExcl":break;default:if(h.length===0)break;r.enc.insitu_decrypt(h)}for(e.push(h),t.l+=f,o=re[bt(t,t.l)];o!=null&&o.n==="Continue";)f=bt(t,t.l+2),e.push(t.slice(t.l+4,t.l+4+f)),t.l+=4+f,o=re[bt(t,t.l)];for(u=yu(e),ut(u,0),c=0,u.lens=[],s=0;s<e.length;++s)u.lens.push(c),c+=e[s].length;return n.f(u,u.length,r)}function ri(n,t,r){if(n.XF)try{var u=n.XF.ifmt||0;n.w=n.t==="e"?n.w||kt[n.v]:u===0?n.t==="n"?(n.v|0)===n.v?i._general_int(n.v):i._general_num(n.v):i._general(n.v):i.format(u,n.v,{date1904:r||!1});t.cellNF&&(n.z=i._table[u])}catch(f){if(t.WTF)throw f;}}function cl(n,t,i){return{v:n,ixfe:t,t:i}}function kgt(n,t){var e={opts:{}},pt={},c={},rt={},o={},l=null,lt=[],d="",wt={},bt,kt,nt,dt,a,v,ni={},ti=[],u,at,ut=!0,y=[],ii=[],ui=function(n){return n<8?sf[n]:n<64?ii[n-8]||sf[n]:sf[n]},si=function(n,t){var i=t.XF.data,r;i&&i.patternType&&(t.s={},t.s.patternType=i.patternType,(r=wf(ui(i.icvFore)))&&(t.s.fgColor={rgb:r}),(r=wf(ui(i.icvBack)))&&(t.s.bgColor={rgb:r}))},w=function(n,t,i){ut&&(i.cellStyles&&t.XF&&t.XF.data&&si(n,t),bt=n,kt=s(n),o.s&&(n.r<o.s.r&&(o.s.r=n.r),n.c<o.s.c&&(o.s.c=n.c)),o.e&&(n.r+1>o.e.r&&(o.e.r=n.r+1),n.c+1>o.e.c&&(o.e.c=n.c+1)),i.sheetRows&&bt.r>=i.sheetRows?ut=!1:c[kt]=t)},f={enc:!1,sbcch:0,snames:[],sharedf:ni,arrayf:ti,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,wtf:!1},et,ot,fi,st,b,h,ei,r,ht,k,yt,oi,ct,ci;t.password&&(f.password=t.password);var tt=[],it=[],p=[[]],ft=0,vt=0,hi=0;for(p.SheetNames=f.snames,p.sharedf=f.sharedf,p.arrayf=f.arrayf,et="",ot=0,f.codepage=1200,gt(1200);n.l<n.length-1;){if(fi=n.l,st=n.read_shift(2),st===0&&et==="EOF")break;if(b=n.l===n.length?0:n.read_shift(2),h=re[st],h&&h.f){if(t.bookSheets&&et==="BoundSheet8"&&h.n!=="BoundSheet8")break;if(et=h.n,h.r===2||h.r==12){if(ei=n.read_shift(2),b-=2,!f.enc&&ei!==st)throw"rt mismatch";h.r==12&&(n.l+=10,b-=10)}if(r=h.n==="EOF"?h.f(n,b,f):bgt(h,n,b,f),ht=h.n,f.biff===5||f.biff===2)switch(ht){case"Lbl":ht="Label"}switch(ht){case"Date1904":e.opts.Date1904=r;break;case"WriteProtect":e.opts.WriteProtect=!0;break;case"FilePass":if(f.enc||(n.l=0),f.enc=r,f.WTF&&console.error(r),!t.password)throw new Error("File is password-protected");if(r.Type!==0)throw new Error("Encryption scheme unsupported");if(!r.valid)throw new Error("Password is incorrect");break;case"WriteAccess":f.lastuser=r;break;case"FileSharing":break;case"CodePage":r===21010?r=1200:r===32769&&(r=1252);f.codepage=r;gt(r);break;case"RRTabId":f.rrtabid=r;break;case"WinProtect":f.winlocked=r;break;case"Template":break;case"RefreshAll":e.opts.RefreshAll=r;break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":if(r[0]&&r[1])throw"Unsupported threads: "+r;break;case"CalcCount":e.opts.CalcCount=r;break;case"CalcDelta":e.opts.CalcDelta=r;break;case"CalcIter":e.opts.CalcIter=r;break;case"CalcMode":e.opts.CalcMode=r;break;case"CalcPrecision":e.opts.CalcPrecision=r;break;case"CalcSaveRecalc":e.opts.CalcSaveRecalc=r;break;case"CalcRefMode":f.CalcRefMode=r;break;case"Uncalced":break;case"ForceFullCalculation":e.opts.FullCalc=r;break;case"WsBool":break;case"XF":y.push(r);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":p[++ft]=[r];vt=0;break;case"ExternName":p[ft][++vt]=r;break;case"Index":break;case"Lbl":p[0][++hi]=r;break;case"ExternSheet":p[ft]=p[ft].concat(r);vt+=r.length;break;case"Protect":c["!protect"]=r;break;case"Password":r!==0&&f.WTF&&console.error("Password verifier: "+r);break;case"Prot4Rev":case"Prot4RevPass":break;case"BoundSheet8":rt[r.pos]=r;f.snames.push(r.name);break;case"EOF":if(--ot)break;o.e&&(c["!range"]=o,o.e.r>0&&o.e.c>0&&(o.e.r--,o.e.c--,c["!ref"]=g(o),o.e.r++,o.e.c++),tt.length>0&&(c["!merges"]=tt),it.length>0&&(c["!objects"]=it));d===""?wt=c:pt[d]=c;c={};break;case"BOF":if(f.biff!==8||(r.BIFFVer===1280?f.biff=5:r.BIFFVer===2?f.biff=2:r.BIFFVer===7&&(f.biff=2)),ot++)break;ut=!0;c={};f.biff===2?(d===""&&(d="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}}):d=(rt[fi]||{name:""}).name;tt=[];it=[];break;case"Number":case"BIFF2NUM":u={ixfe:r.ixfe,XF:y[r.ixfe],v:r.val,t:"n"};u.XF&&ri(u,t,e.opts.Date1904);w({c:r.c,r:r.r},u,t);break;case"BoolErr":u={ixfe:r.ixfe,XF:y[r.ixfe],v:r.val,t:r.t};u.XF&&ri(u,t,e.opts.Date1904);w({c:r.c,r:r.r},u,t);break;case"RK":u={ixfe:r.ixfe,XF:y[r.ixfe],v:r.rknum,t:"n"};u.XF&&ri(u,t,e.opts.Date1904);w({c:r.c,r:r.r},u,t);break;case"MulRk":for(k=r.c;k<=r.C;++k)yt=r.rkrec[k-r.c][0],u={ixfe:yt,XF:y[yt],v:r.rkrec[k-r.c][1],t:"n"},u.XF&&ri(u,t,e.opts.Date1904),w({c:k,r:r.r},u,t);break;case"Formula":switch(r.val){case"String":l=r;break;case"Array Formula":throw"Array Formula unsupported";default:u={v:r.val,ixfe:r.cell.ixfe,t:r.tt};u.XF=y[u.ixfe];t.cellFormula&&(u.f="="+eu(r.formula,o,r.cell,p,f));u.XF&&ri(u,t,e.opts.Date1904);w(r.cell,u,t);l=r}break;case"String":l&&(l.val=r,u={v:l.val,ixfe:l.cell.ixfe,t:"s"},u.XF=y[u.ixfe],t.cellFormula&&(u.f="="+eu(l.formula,o,l.cell,p,f)),u.XF&&ri(u,t,e.opts.Date1904),w(l.cell,u,t),l=null);break;case"Array":ti.push(r);break;case"ShrFmla":if(!ut)break;ni[s(l.cell)]=r[0];break;case"LabelSst":u=cl(lt[r.isst].t,r.ixfe,"s");u.XF=y[u.ixfe];u.XF&&ri(u,t,e.opts.Date1904);w({c:r.c,r:r.r},u,t);break;case"Label":case"BIFF2STR":u=cl(r.val,r.ixfe,"s");u.XF=y[u.ixfe];u.XF&&ri(u,t,e.opts.Date1904);w({c:r.c,r:r.r},u,t);break;case"Dimensions":ot===1&&(o=r);break;case"SST":lt=r;break;case"Format":i.load(r[1],r[0]);break;case"MergeCells":tt=tt.concat(r);break;case"Obj":it[r.cmo[0]]=f.lastobj=r;break;case"TxO":f.lastobj.TxO=r;break;case"HLink":for(v=r[0].s.r;v<=r[0].e.r;++v)for(a=r[0].s.c;a<=r[0].e.c;++a)c[s({c:a,r:v})]&&(c[s({c:a,r:v})].l=r[1]);break;case"HLinkTooltip":for(v=r[0].s.r;v<=r[0].e.r;++v)for(a=r[0].s.c;a<=r[0].e.c;++a)c[s({c:a,r:v})]&&(c[s({c:a,r:v})].l.tooltip=r[1]);break;case"Note":if(f.biff<=5&&f.biff>=2)break;if(nt=c[s(r[0])],oi=it[r[2]],!nt)break;nt.c||(nt.c=[]);dt={a:r[1],t:oi.TxO.t};nt.c.push(dt);break;default:switch(h.n){case"ClrtClient":break;case"XFExt":vvt(y[r.ixfe],r.ext);break;case"NameCmt":break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"Setup":break;case"DefColWidth":break;case"GCW":break;case"LHRecord":break;case"ColInfo":break;case"Row":break;case"DBCell":break;case"MulBlank":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Selection":break;case"Feat":break;case"FeatHdr":case"FeatHdr11":break;case"Feature11":case"Feature12":case"List12":break;case"Blank":break;case"Country":at=r;break;case"RecalcId":break;case"DefaultRowHeight":case"DxGCol":break;case"Fbi":case"Fbi2":case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":ii=r;break;case"Theme":break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBin":break;case"DConName":break;case"SXPI":break;case"SxFormat":break;case"SxSelect":break;case"SxRule":break;case"SxFilt":break;case"SxItm":break;case"SxDXF":break;case"ScenMan":break;case"DCon":break;case"CellWatch":break;case"PrintRowCol":break;case"PrintGrid":break;case"PrintSize":break;case"XCT":break;case"CRN":break;case"Scl":break;case"SheetExt":break;case"SheetExtOptional":break;case"ObNoMacros":break;case"ObProj":break;case"CodeName":break;case"GUIDTypeLib":break;case"WOpt":break;case"PhoneticInfo":break;case"OleObjectSize":break;case"DXF":case"DXFN":case"DXFN12":case"DXFN12List":case"DXFN12NoCB":break;case"Dv":case"DVal":break;case"BRAI":case"Series":case"SeriesText":break;case"DConn":break;case"DbOrParamQry":break;case"DBQueryExt":break;case"IFmtRecord":break;case"CondFmt":case"CF":case"CF12":case"CFEx":break;case"Excel9File":break;case"Units":break;case"InterfaceHdr":case"Mms":case"InterfaceEnd":case"DSF":case"BuiltInFnGroupCount":case"Window1":case"Window2":case"HideObj":case"GridSet":case"Guts":case"UserBView":case"UserSViewBegin":case"UserSViewEnd":case"Pane":break;default:switch(h.n){case"Dat":case"Begin":case"End":case"StartBlock":case"EndBlock":case"Frame":case"Area":case"Axis":case"AxisLine":case"Tick":break;case"AxesUsed":case"CrtLayout12":case"CrtLayout12A":case"CrtLink":case"CrtLine":case"CrtMlFrt":case"CrtMlFrtContinue":break;case"LineFormat":case"AreaFormat":case"Chart":case"Chart3d":case"Chart3DBarShape":case"ChartFormat":case"ChartFrtInfo":break;case"PlotArea":case"PlotGrowth":break;case"SeriesList":case"SerParent":case"SerAuxTrend":break;case"DataFormat":case"SerToCrt":case"FontX":break;case"CatSerRange":case"AxcExt":case"SerFmt":break;case"ShtProps":break;case"DefaultText":case"Text":case"CatLab":break;case"DataLabExtContents":break;case"Legend":case"LegendException":break;case"Pie":case"Scatter":break;case"PieFormat":case"MarkerFormat":break;case"StartObject":case"EndObject":break;case"AlRuns":case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":case"YMult":break;case"Line":case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":case"Qsif":case"Qsir":case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":case"MsoDrawingGroup":case"MsoDrawingSelection":break;case"ImData":break;case"WebPub":case"AutoWebPub":case"RightMargin":case"LeftMargin":case"TopMargin":case"BottomMargin":case"HeaderFooter":case"HFPicture":case"PLV":case"HorizontalPageBreaks":case"VerticalPageBreaks":case"Backup":case"CompressPictures":case"Compat12":break;case"Continue":case"ContinueFrt12":break;case"FrtFontList":case"FrtWrapper":break;case"ExternCount":break;case"RString":break;case"TabIdConf":case"Radar":case"RadarArea":case"DropBar":case"Intl":case"CoordList":case"SerAuxErrBar":break;default:switch(h.n){case"SCENARIO":case"DConBin":case"PicF":case"DataLabExt":case"Lel":case"BopPop":case"BopPopCustom":case"RealTimeData":case"Name":break;default:if(t.WTF)throw"Unrecognized Record "+h.n;}}}}}else n.l+=b}return ct=f.biff===2?["Sheet1"]:Object.keys(rt).sort(function(n,t){return Number(n)-Number(t)}).map(function(n){return rt[n].name}),ci=ct.slice(),e.Directory=ct,e.SheetNames=ct,t.bookSheets||(e.Sheets=pt),e.Preamble=wt,e.Strings=lt,e.SSF=i.get_table(),f.enc&&(e.Encryption=f.enc),e.Metadata={},at!==undefined&&(e.Metadata.Country=at),e}function ie(n,t){var e,s,i,o,r,f,u;if(t||(t={}),hu(t),he(),n.find?(e=n.find("!CompObj"),s=n.find("!SummaryInformation"),i=n.find("/Workbook")):(ut(n,0),i={content:n}),i||(i=n.find("/Book")),e&&(o=wgt(e)),t.bookProps&&!t.bookSheets)r={};else if(i)r=kgt(i.content,t,!!i.find);else throw new Error("Cannot find Workbook stream");n.find&&dgt(n);f={};for(u in n.Summary)f[u]=n.Summary[u];for(u in n.DocSummary)f[u]=n.DocSummary[u];return r.Props=r.Custprops=f,t.bookFiles&&(r.cfb=n),r.CompObjP=o,r}function dgt(n){var i=n.find("!DocumentSummaryInformation"),t;if(i)try{n.DocSummary=ps(i,yo)}catch(r){}if(t=n.find("!SummaryInformation"),t)try{n.Summary=ps(t,po)}catch(r){}}function nnt(n,t){if(typeof module!="undefined"&&typeof require!="undefined"&&typeof ODS=="undefined"&&(ODS=require("./ods")),typeof ODS=="undefined"||!ODS.parse_ods)throw new Error("Unsupported ODS");return ODS.parse_ods(n,t)}function ll(n){return function(t){for(var i,r=0;r!=n.length;++r)i=n[r],t[i[0]]===undefined&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}function tnt(n,t){if(!n)return 0;try{n=t.map(function(t){return[t.name,n["!id"][t.id].Target]})}catch(r){return null}return!n||n.length===0?null:n}function int(n,t,i,r,u,f,e){try{u[r]=ts(c(n,i,!0),t);f[r]=wdt(c(n,t),t,e,u[r])}catch(o){if(e.WTF)throw o;}}function yl(n,t){var k,f,g,h,nt,a,tt,d,y,ut;if(pu(i),t=t||{},hu(t),he(),ae(n,"META-INF/manifest.xml"))return nnt(n,t);var ft=w(n.files).filter(vl).sort(),r=wv(c(n,"[Content_Types].xml"),t),b=!1,s,l;if(r.workbooks.length===0&&(l="xl/workbook.xml",c(n,l,!0)&&r.workbooks.push(l)),r.workbooks.length===0){if(l="xl/workbook.bin",!ve(n,l,!0))throw new Error("Could not find workbook");r.workbooks.push(l);b=!0}r.workbooks[0].substr(-3)=="bin"&&(b=!0);b&&gt(1200);t.bookSheets||t.bookProps||(ur=[],r.sst&&(ur=ddt(c(n,r.sst.replace(/^\//,"")),r.sst,t)),o={},r.style&&(o=bdt(c(n,r.style.replace(/^\//,"")),r.style,t)),ot={},t.cellStyles&&r.themes.length&&(ot=kdt(c(n,r.themes[0].replace(/^\//,""),!0),r.themes[0],t)));var v=pdt(c(n,r.workbooks[0].replace(/^\//,"")),r.workbooks[0],t),u={},e="";if(r.coreprops.length!==0&&(e=c(n,r.coreprops[0].replace(/^\//,""),!0),e&&(u=kv(e)),r.extprops.length!==0&&(e=c(n,r.extprops[0].replace(/^\//,""),!0),e&&gv(e,u))),k={},(!t.bookSheets||t.bookProps)&&r.custprops.length!==0&&(e=c(n,r.custprops[0].replace(/^\//,""),!0),e&&(k=ty(e,t))),f={},(t.bookSheets||t.bookProps)&&(u.Worksheets&&u.SheetNames.length>0?s=u.SheetNames:v.Sheets&&(s=v.Sheets.map(function(n){return n.name})),t.bookProps&&(f.Props=u,f.Custprops=k),typeof s!="undefined"&&(f.SheetNames=s),t.bookSheets?f.SheetNames:t.bookProps))return f;if(s={},g={},t.bookDeps&&r.calcchain&&(g=ngt(c(n,r.calcchain.replace(/^\//,"")),r.calcchain,t)),h=0,nt={},!u.Worksheets)for(d=v.Sheets,u.Worksheets=d.length,u.SheetNames=[],y=0;y!=d.length;++y)u.SheetNames[y]=d[y].name;var it=b?"bin":"xml",rt="xl/_rels/workbook."+it+".rels",p=ts(c(n,rt,!0),rt);for(p&&(p=tnt(p,v.Sheets)),ut=c(n,"xl/worksheets/sheet.xml",!0)?1:0,h=0;h!=u.Worksheets;++h)p?a="xl/"+p[h][1].replace(/[\/]?xl\//,""):(a="xl/worksheets/sheet"+(h+1-ut)+"."+it,a=a.replace(/sheet0\./,"sheet.")),tt=a.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),int(n,a,tt,u.SheetNames[h],nt,s,t);return r.comments&&bvt(n,r.comments,s,nt,t),f={Directory:r,Workbook:v,Props:u,Custprops:k,Deps:g,Sheets:s,SheetNames:u.SheetNames,Strings:ur,Styles:o,Themes:ot,SSF:i.get_table()},t.bookFiles&&(f.keys=ft,f.files=n.files),t.bookVBA&&(r.vba.length>0?f.vbaraw=c(n,r.vba[0],!0):r.defaults.bin==="application/vnd.ms-office.vbaProject"&&(f.vbaraw=c(n,"xl/vbaProject.bin",!0))),f}function ui(n,t,i,r,u){if(u||(u={}),n["!id"]||(n["!id"]={}),u.Id="rId"+t,u.Type=r,u.Target=i,n["!id"][u.Id])throw new Error("Cannot rewrite rId "+t);n["!id"][u.Id]=u;n[("/"+u.Target).replace("//","/")]=u}function rnt(n,t){var o,f;n&&!n.SSF&&(n.SSF=i.get_table());n&&n.SSF&&(pu(i),i.load_table(n.SSF),t.revssf=le(n.SSF),t.revssf[n.SSF[65535]]=0);t.rels={};t.wbrels={};t.Strings=[];t.Strings.Count=0;t.Strings.Unique=0;o=t.bookType=="xlsb"?"bin":"xml";f={workbooks:[],sheets:[],calcchains:[],themes:[],styles:[],coreprops:[],extprops:[],custprops:[],strs:[],comments:[],vba:[],TODO:[],rels:[],xmlns:""};al(t=t||{});var u=new at,r="",e=0;for(t.cellXfs=[],gf(t.cellXfs,{},{revssf:{General:0}}),r="docProps/core.xml",u.file(r,dv(n.Props,t)),f.coreprops.push(r),ui(t.rels,2,r,v.CORE_PROPS),r="docProps/app.xml",n.Props||(n.Props={}),n.Props.SheetNames=n.SheetNames,n.Props.Worksheets=n.SheetNames.length,u.file(r,ny(n.Props,t)),f.extprops.push(r),ui(t.rels,3,r,v.EXT_PROPS),n.Custprops!==n.Props&&w(n.Custprops||{}).length>0&&(r="docProps/custom.xml",u.file(r,iy(n.Custprops,t)),f.custprops.push(r),ui(t.rels,4,r,v.CUST_PROPS)),r="xl/workbook."+o,u.file(r,tgt(n,r,t)),f.workbooks.push(r),ui(t.rels,1,r,v.WB),e=1;e<=n.SheetNames.length;++e)r="xl/worksheets/sheet"+e+"."+o,u.file(r,igt(e-1,r,t,n)),f.sheets.push(r),ui(t.wbrels,e,"worksheets/sheet"+e+"."+o,v.WS);return t.Strings!=null&&t.Strings.length>0&&(r="xl/sharedStrings."+o,u.file(r,ugt(t.Strings,r,t)),f.strs.push(r),ui(t.wbrels,++e,"sharedStrings."+o,v.SST)),r="xl/theme/theme1.xml",u.file(r,fvt()),f.themes.push(r),ui(t.wbrels,++e,"theme/theme1.xml",v.THEME),r="xl/styles."+o,u.file(r,rgt(n,r,t)),f.styles.push(r),ui(t.wbrels,++e,"styles."+o,v.STY),u.file("[Content_Types].xml",bv(f,t)),u.file("_rels/.rels",rs(t.rels)),u.file("xl/_rels/workbook."+o+".rels",rs(t.wbrels)),u}function unt(n,t){switch((t||{}).type||"base64"){case"buffer":return n[0];case"base64":return bi.decode(n.substr(0,12)).charCodeAt(0);case"binary":return n.charCodeAt(0);case"array":return n[0];default:throw new Error("Unrecognized type "+t.type);}}function fnt(n,t){var i,u=n,r=t||{};r.type||(r.type=tt&&Buffer.isBuffer(n)?"buffer":"base64");switch(r.type){case"base64":i=new at(u,{base64:!0});break;case"binary":case"array":i=new at(u,{base64:!1});break;case"buffer":i=new at(u);break;case"file":i=new at(u=sr.readFileSync(n));break;default:throw new Error("Unrecognized type "+r.type);}return yl(i,r)}function pl(n,t){var r=n,u=!1,f,i=t||{};i.type||(i.type=tt&&Buffer.isBuffer(n)?"buffer":"base64");i.type=="file"&&(u=!0,i.type="buffer",r=sr.readFileSync(n));switch(f=unt(r,i)){case 208:return u&&(i.type="file"),ie(er.read(n,i),i);case 9:return ie(vu(i.type==="base64"?bi.decode(n):n),i);case 60:return ygt(r,i);case 80:return u&&(i.type="file"),fnt(n,t);default:throw new Error("Unsupported file "+f);}}function wl(n,t){var i=t||{};return i.type="file",pl(n,i)}function ent(n,t){var i=t||{},r=rnt(n,i);switch(i.type){case"base64":return r.generate({type:"base64"});case"binary":return r.generate({type:"string"});case"buffer":return r.generate({type:"nodebuffer"});case"file":return sr.writeFileSync(i.file,r.generate({type:"nodebuffer"}));default:throw new Error("Unrecognized type "+i.type);}}function bl(n,t){var i=t||{};switch(i.bookType){case"xml":return pgt(n,i);default:return ent(n,i)}}function kl(n,t,i){var r=i||{};r.type="file";r.file=t;switch(r.file.substr(-5).toLowerCase()){case".xlsx":r.bookType="xlsx";break;case".xlsm":r.bookType="xlsm";break;case".xlsb":r.bookType="xlsb";break;default:switch(r.file.substr(-4).toLowerCase()){case".xls":r.bookType="xls";break;case".xml":r.bookType="xml"}}return bl(n,r)}function dl(n){return parseInt(gl(n),10)-1}function ct(n){return""+(n+1)}function gl(n){return n.replace(/\$(\d+)$/,"$1")}function na(n){for(var r=ta(n),t=0,i=0;i!==r.length;++i)t=26*t+r.charCodeAt(i)-64;return t-1}function lt(n){var t="";for(++n;n;n=Math.floor((n-1)/26))t=String.fromCharCode((n-1)%26+65)+t;return t}function ta(n){return n.replace(/^\$([A-Z])/,"$1")}function ia(n){return n.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function wi(n){var t=ia(n);return{c:na(t[0]),r:dl(t[1])}}function s(n){return lt(n.c)+ct(n.r)}function hnt(n){var t=n.split(":").map(wi);return{s:t[0],e:t[t.length-1]}}function g(n,t){return t===undefined||typeof t=="number"?g(n.s,n.e):(typeof n!="string"&&(n=s(n)),typeof t!="string"&&(t=s(t)),n==t?n:n+":"+t)}function nt(n){for(var u={s:{c:0,r:0},e:{c:0,r:0}},t=0,i=0,r=0,f=n.length,t=0;i<f;++i){if((r=n.charCodeAt(i)-64)<1||r>26)break;t=26*t+r}for(u.s.c=--t,t=0;i<f;++i){if((r=n.charCodeAt(i)-48)<0||r>9)break;t=10*t+r}if(u.s.r=--t,i===f||n.charCodeAt(++i)===58)return u.e.c=u.s.c,u.e.r=u.s.r,u;for(t=0;i!=f;++i){if((r=n.charCodeAt(i)-64)<1||r>26)break;t=26*t+r}for(u.e.c=--t,t=0;i!=f;++i){if((r=n.charCodeAt(i)-48)<0||r>9)break;t=10*t+r}return u.e.r=--t,u}function ra(n,t){if(n.z!==undefined)try{return n.w=i.format(n.z,t)}catch(r){}if(!n.XF)return t;try{return n.w=i.format(n.XF.ifmt||0,t)}catch(r){return""+t}}function cu(n,t){return n==null||n.t==null?"":n.w!==undefined?n.w:t===undefined?ra(n,n.v):ra(n,t)}function ue(n,t){var u,o,h,f=0,v=1,r,c=[],y,s,i,l,e=t!=null?t:{},k=e.raw;if(n==null||n["!ref"]==null)return[];h=e.range!==undefined?e.range:n["!ref"];e.header===1?f=1:e.header==="A"?f=2:Array.isArray(e.header)&&(f=3);switch(typeof h){case"string":r=nt(h);break;case"number":r=nt(n["!ref"]);r.s.r=h;break;default:r=h}f>0&&(v=0);var p=ct(r.s.r),a=new Array(r.e.c-r.s.c+1),w=new Array(r.e.r-r.s.r-v+1),b=0;for(i=r.s.c;i<=r.e.c;++i){a[i]=lt(i);u=n[a[i]+p];switch(f){case 1:c[i]=i;break;case 2:c[i]=a[i];break;case 3:c[i]=e.header[i-r.s.c];break;default:if(u===undefined)continue;c[i]=cu(u)}}for(s=r.s.r+v;s<=r.e.r;++s){for(p=ct(s),y=!0,f===1?o=[]:(o={},Object.defineProperty?Object.defineProperty(o,"__rowNum__",{value:s,enumerable:!1}):o.__rowNum__=s),i=r.s.c;i<=r.e.c;++i)if(u=n[a[i]+p],u!==undefined&&u.t!==undefined){l=u.v;switch(u.t){case"e":continue;case"s":break;case"b":case"n":break;default:throw"unrecognized type "+u.t;}l!==undefined&&(o[c[i]]=k?l:cu(u,l),y=!1)}(y===!1||f===1)&&(w[b++]=o)}return w.length=b,w}function cnt(n,t){return ue(n,t!=null?t:{})}function fe(n,t){var l="",u="",w=/"/g,f=t==null?{}:t;if(n==null||n["!ref"]==null)return"";for(var r=nt(n["!ref"]),a=f.FS!==undefined?f.FS:",",b=a.charCodeAt(0),v=f.RS!==undefined?f.RS:"\n",k=v.charCodeAt(0),h="",y="",p=[],e=0,o=0,c,s=0,i=0,i=r.s.c;i<=r.e.c;++i)p[i]=lt(i);for(s=r.s.r;s<=r.e.r;++s){for(h="",y=ct(s),i=r.s.c;i<=r.e.c;++i){for(c=n[p[i]+y],u=c!==undefined?""+cu(c):"",e=0,o=0;e!==u.length;++e)if((o=u.charCodeAt(e))===b||o===k||o===34){u='"'+u.replace(w,'""')+'"';break}h+=(i===r.s.c?"":a)+u}l+=h+v}return l}function ee(n){var f,o="",r,u="",s,e;if(n==null||n["!ref"]==null)return"";var t=nt(n["!ref"]),h="",c=[],i;for(f=new Array((t.e.r-t.s.r+1)*(t.e.c-t.s.c+1)),s=0,i=t.s.c;i<=t.e.c;++i)c[i]=lt(i);for(e=t.s.r;e<=t.e.r;++e)for(h=ct(e),i=t.s.c;i<=t.e.c;++i)if(o=c[i]+h,r=n[o],u="",r!==undefined){if(r.f!=null)u=r.f;else if(r.w!==undefined)u="'"+r.w;else if(r.v===undefined)continue;else u=""+r.v;f[s++]=o+"="+u}return f.length=s,f}var d,se,gt,fi,ei,bi,tt,sr,at,wu,rt,bu,di,ku,du,yt,u,gi,we,nr,be,cr,ke,hi,tv,ci,de,lr,ge,ar,no,tf,ro,uo,oo,so,kt,rf,of,wo,go,ns,v,is,ni,us,fs,cf,es,os,ss,vy,ip,ds,th,rh,uh,eh,yf,hh,ch,lh,ah,nc,tc,ic,rc,uc,fc,hc,cc,ac,vc,dc,gc,nl,tl,il,el,ol,ne,hu,al,vl,lnt,oe;n.version="0.8.0";d=1200;typeof module!="undefined"&&typeof require!="undefined"&&(typeof cptable=="undefined"&&(cptable=require("./dist/cpexcel")),se=cptable[d]);gt=function(n){d=n};fi=function(n){return n};ei=function(n){return String.fromCharCode(n)};typeof cptable!="undefined"&&(gt=function(n){d=n;se=cptable[n]},fi=function(n){return n.charCodeAt(0)===255&&n.charCodeAt(1)===254?cptable.utils.decode(1200,lu(n.substr(2))):n},ei=function(n){return d===1200?String.fromCharCode(n):cptable.utils.decode(d,[n&255,n>>8])[0]});bi=function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(t){for(var s="",e,i,r,h,c,o,u,f=0;f<t.length;)e=t.charCodeAt(f++),i=t.charCodeAt(f++),r=t.charCodeAt(f++),h=e>>2,c=(e&3)<<4|i>>4,o=(i&15)<<2|r>>6,u=r&63,isNaN(i)?o=u=64:isNaN(r)&&(u=64),s+=n.charAt(h)+n.charAt(c)+n.charAt(o)+n.charAt(u);return s},decode:function(t){var r="",o,s,h,c,f,u,e,i;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),i=0;i<t.length;)c=n.indexOf(t.charAt(i++)),f=n.indexOf(t.charAt(i++)),u=n.indexOf(t.charAt(i++)),e=n.indexOf(t.charAt(i++)),o=c<<2|f>>4,s=(f&15)<<4|u>>2,h=(u&3)<<6|e,r+=String.fromCharCode(o),u!=64&&(r+=String.fromCharCode(s)),e!=64&&(r+=String.fromCharCode(h));return r}}}();tt=typeof Buffer!="undefined";var yu=function(n){return[].concat.apply([],n)},st=/\u0000/g,fr=/[\u0001-\u0006]/,i={},pu=function(t){function e(n){for(var t="",i=n.length-1;i>=0;)t+=n.charAt(i--);return t}function i(n,t){for(var i="";i.length<t;)i+=n;return i}function r(n,t){var r=""+n;return r.length>=t?r:i("0",t-r.length)+r}function y(n,t){var r=""+n;return r.length>=t?r:i(" ",t-r.length)+r}function c(n,t){var r=""+n;return r.length>=t?r:r+i(" ",t-r.length)}function ot(n,t){var r=""+Math.round(n);return r.length>=t?r:i("0",t-r.length)+r}function st(n,t){var r=""+n;return r.length>=t?r:i("0",t-r.length)+r}function o(n,t){if(n>p||n<-p)return ot(n,t);var i=Math.round(n);return st(i,t)}function w(n,t){return n.length>=7+t&&(n.charCodeAt(t)|32)==103&&(n.charCodeAt(t+1)|32)==101&&(n.charCodeAt(t+2)|32)==110&&(n.charCodeAt(t+3)|32)==101&&(n.charCodeAt(t+4)|32)==114&&(n.charCodeAt(t+5)|32)==97&&(n.charCodeAt(t+6)|32)==108}function nt(n){for(var t=0;t!=s.length;++t)n[s[t][0]]===undefined&&(n[s[t][0]]=s[t][1])}function a(n,t,i){for(var h=n<0?-1:1,e=n*h,c=0,o=1,u=0,l=1,f=0,r=0,s=Math.floor(e),a;f<t;){if(s=Math.floor(e),u=s*o+c,r=s*f+l,e-s<5e-10)break;e=1/(e-s);c=o;o=u;l=f;f=r}if(r>t&&(r=f,u=o),r>t&&(r=l,u=c),!i)return[0,h*u,r];if(r===0)throw"Unexpected state: "+u+" "+o+" "+c+" "+r+" "+f+" "+l;return a=Math.floor(h*u/r),[a,h*u-a*r,r]}function it(n){return""+n}function v(n,t){switch(typeof n){case"string":return n;case"boolean":return n?"TRUE":"FALSE";case"number":return(n|0)===n?it(n,t):k(n,t)}throw new Error("unsupported value in General format: "+n);}function ht(){return 0}function h(n,t,i){var e;if(n>2958465||n<0)return null;var u=n|0,f=Math.floor(86400*(n-u)),o=0,s=[],r={D:u,T:f,u:86400*(n-u)-f,y:0,m:0,d:0,H:0,M:0,S:0,q:0};return Math.abs(r.u)<1e-6&&(r.u=0),nt(t!=null?t:t=[]),t.date1904&&(u+=1462),r.u>.999&&(r.u=0,++f==86400&&(f=0,++u)),u===60?(s=i?[1317,10,29]:[1900,2,29],o=3):u===0?(s=i?[1317,8,29]:[1900,1,0],o=6):(u>60&&--u,e=new Date(1900,0,1),e.setDate(e.getDate()+u-1),s=[e.getFullYear(),e.getMonth()+1,e.getDate()],o=e.getDay(),u<60&&(o=(o+6)%7),i&&(o=ht(e,s))),r.y=s[0],r.m=s[1],r.d=s[2],r.S=f%60,f=Math.floor(f/60),r.M=f%60,f=Math.floor(f/60),r.H=f,r.q=o,r}function ct(n,t,i,u){var c="",o=0,s=0,h=i.y,f,e=0;switch(n){case 98:h=i.y+543;case 121:switch(t.length){case 1:case 2:f=h%100;e=2;break;default:f=h%1e4;e=4}break;case 109:switch(t.length){case 1:case 2:f=i.m;e=t.length;break;case 3:return b[i.m-1][1];case 5:return b[i.m-1][0];default:return b[i.m-1][2]}break;case 100:switch(t.length){case 1:case 2:f=i.d;e=t.length;break;case 3:return tt[i.q][0];default:return tt[i.q][1]}break;case 104:switch(t.length){case 1:case 2:f=1+(i.H+11)%12;e=t.length;break;default:throw"bad hour format: "+t;}break;case 72:switch(t.length){case 1:case 2:f=i.H;e=t.length;break;default:throw"bad hour format: "+t;}break;case 77:switch(t.length){case 1:case 2:f=i.M;e=t.length;break;default:throw"bad minute format: "+t;}break;case 115:if(i.u===0)switch(t){case"s":case"ss":return r(i.S,t.length)}switch(t){case"s":case"ss":case".0":case".00":case".000":return(s=u>=2?u===3?1e3:100:u===1?10:1,o=Math.round(s*(i.S+i.u)),o>=60*s&&(o=0),t==="s")?o===0?"0":""+o/s:(c=r(o,2+u),t==="ss")?c.substr(0,2):"."+c.substr(2,t.length-1);default:throw"bad second format: "+t;}case 90:switch(t){case"[h]":case"[hh]":f=i.D*24+i.H;break;case"[m]":case"[mm]":f=(i.D*24+i.H)*60+i.M;break;case"[s]":case"[ss]":f=((i.D*24+i.H)*60+i.M)*60+Math.round(i.S+i.u);break;default:throw"bad abstime format: "+t;}e=t.length===3?1:2;break;case 101:f=h;e=1}return e>0?r(f,e):""}function f(n){if(n.length<=3)return n;for(var t=n.length%3,i=n.substr(0,t);t!=n.length;t+=3)i+=(i.length>0?",":"")+n.substr(t,3);return i}function rt(n){for(var i=[],u=!1,f,t=0,r=0;t<n.length;++t)switch(f=n.charCodeAt(t)){case 34:u=!u;break;case 95:case 42:case 92:++t;break;case 59:i[i.length]=n.substr(r,t-r);r=t+1}if(i[i.length]=n.substr(r),u===!0)throw new Error("Format |"+n+"| unterminated string ");return i}function ft(n,t,i,r){for(var e=[],l="",f=0,o="",d="t",p,s,b,st,rt="H",it,ht,a,ft,lt,tt,c,nt,et,y,g,k,ot;f<n.length;)switch(o=n[f]){case"G":if(!w(n,f))throw new Error("unrecognized character "+o+" in "+n);e[e.length]={t:"G",v:"General"};f+=7;break;case'"':for(l="";(st=n.charCodeAt(++f))!==34&&f<n.length;)l+=String.fromCharCode(st);e[e.length]={t:"t",v:l};++f;break;case"\\":it=n[++f];ht=it==="("||it===")"?it:"t";e[e.length]={t:ht,v:it};++f;break;case"_":e[e.length]={t:"t",v:" "};f+=2;break;case"@":e[e.length]={t:"T",v:t};++f;break;case"B":case"b":if(n[f+1]==="1"||n[f+1]==="2"){if(s==null&&(s=h(t,i,n[f+1]==="2"),s==null))return"";e[e.length]={t:"X",v:n.substr(f,2)};d=o;f+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||s==null&&(s=h(t,i),s==null))return"";for(l=o;++f<n.length&&n[f].toLowerCase()===o;)l+=o;o==="m"&&d.toLowerCase()==="h"&&(o="M");o==="h"&&(o=rt);e[e.length]={t:o,v:l};d=o;break;case"A":if(p={t:o,v:"A"},s==null&&(s=h(t,i)),n.substr(f,3)==="A/P"?(s!=null&&(p.v=s.H>=12?"P":"A"),p.t="T",rt="h",f+=3):n.substr(f,5)==="AM/PM"?(s!=null&&(p.v=s.H>=12?"PM":"AM"),p.t="T",f+=5,rt="h"):(p.t="t",++f),s==null&&p.t==="T")return"";e[e.length]=p;d=o;break;case"[":for(l=o;n[f++]!=="]"&&f<n.length;)l+=n[f];if(l.substr(-1)!=="]")throw'unterminated "[" block: |'+l+"|";if(l.match(ut)){if(s==null&&(s=h(t,i),s==null))return"";e[e.length]={t:"Z",v:l.toLowerCase()}}else l="";break;case".":if(s!=null){for(l=o;(o=n[++f])==="0";)l+=o;e[e.length]={t:"s",v:l};break}case"0":case"#":for(l=o;"0#?.,E+-%".indexOf(o=n[++f])>-1||o=="\\"&&n[f+1]=="-"&&"0#".indexOf(n[f+2])>-1;)l+=o;e[e.length]={t:"n",v:l};break;case"?":for(l=o;n[++f]===o;)l+=o;p={t:o,v:l};e[e.length]=p;d=o;break;case"*":++f;(n[f]==" "||n[f]=="*")&&++f;break;case"(":case")":e[e.length]={t:r===1?"t":o,v:o};++f;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=o;"0123456789".indexOf(n[++f])>-1;)l+=n[f];e[e.length]={t:"D",v:l};break;case" ":e[e.length]={t:o,v:o};++f;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxz".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+n);e[e.length]={t:"t",v:o};++f}for(a=0,ft=0,f=e.length-1,d="t";f>=0;--f)switch(e[f].t){case"h":case"H":e[f].t=rt;d="h";a<1&&(a=1);break;case"s":(lt=e[f].v.match(/\.0+$/))&&(ft=Math.max(ft,lt[0].length-1));a<3&&(a=3);case"d":case"y":case"M":case"e":d=e[f].t;break;case"m":d==="s"&&(e[f].t="M",a<2&&(a=2));break;case"X":e[f].v==="B2";break;case"Z":a<1&&e[f].v.match(/[Hh]/)&&(a=1);a<2&&e[f].v.match(/[Mm]/)&&(a=2);a<3&&e[f].v.match(/[Ss]/)&&(a=3)}switch(a){case 1:s.u>=.5&&(s.u=0,++s.S);s.S>=60&&(s.S=0,++s.M);s.M>=60&&(s.M=0,++s.H);break;case 2:s.u>=.5&&(s.u=0,++s.S);s.S>=60&&(s.S=0,++s.M)}for(tt="",f=0;f<e.length;++f)switch(e[f].t){case"X":e[f]=undefined;break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":e[f].v=ct(e[f].t.charCodeAt(0),e[f].v,s,ft);e[f].t="t";break;case"n":case"(":case"?":for(c=f+1;e[c]!=null&&((o=e[c].t)==="?"||o==="D"||(o===" "||o==="t")&&e[c+1]!=null&&(e[c+1].t==="?"||e[c+1].t==="t"&&e[c+1].v==="/")||e[f].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(e[c].v==="/"||"$€".indexOf(e[c].v)>-1||e[c].v===" "&&e[c+1]!=null&&e[c+1].t=="?"));)e[f].v+=e[c].v,e[c]=undefined,++c;tt+=e[f].v;f=c-1;break;case"G":e[f].t="t";e[f].v=v(t,i)}if(nt="",tt.length>0){for(et=t<0&&tt.charCodeAt(0)===45?-t:t,y=u(tt.charCodeAt(0)===40?"(":"n",tt,et),c=y.length-1,g=e.length,f=0;f<e.length;++f)if(e[f]!=null&&e[f].v.indexOf(".")>-1){g=f;break}if(k=e.length,g===e.length&&y.indexOf("E")===-1){for(f=e.length-1;f>=0;--f)e[f]!=null&&"n?(".indexOf(e[f].t)!==-1&&(c>=e[f].v.length-1?(c-=e[f].v.length,e[f].v=y.substr(c+1,e[f].v.length)):c<0?e[f].v="":(e[f].v=y.substr(0,c+1),c=-1),e[f].t="t",k=f);c>=0&&k<e.length&&(e[k].v=y.substr(0,c+1)+e[k].v)}else if(g!==e.length&&y.indexOf("E")===-1){for(c=y.indexOf(".")-1,f=g;f>=0;--f)if(e[f]!=null&&"n?(".indexOf(e[f].t)!==-1){for(b=e[f].v.indexOf(".")>-1&&f===g?e[f].v.indexOf(".")-1:e[f].v.length-1,nt=e[f].v.substr(b+1);b>=0;--b)c>=0&&(e[f].v[b]==="0"||e[f].v[b]==="#")&&(nt=y[c--]+nt);e[f].v=nt;e[f].t="t";k=f}for(c>=0&&k<e.length&&(e[k].v=y.substr(0,c+1)+e[k].v),c=y.indexOf(".")+1,f=g;f<e.length;++f)if(e[f]!=null&&("n?(".indexOf(e[f].t)!==-1||f===g)){for(b=e[f].v.indexOf(".")>-1&&f===g?e[f].v.indexOf(".")+1:0,nt=e[f].v.substr(0,b);b<e[f].v.length;++b)c<y.length&&(nt+=y[c++]);e[f].v=nt;e[f].t="t";k=f}}}for(f=0;f<e.length;++f)e[f]!=null&&"n(?".indexOf(e[f].t)>-1&&(et=r>1&&t<0&&f>0&&e[f-1].v==="-"?-t:t,e[f].v=u(e[f].t,e[f].v,et),e[f].t="t");for(ot="",f=0;f!==e.length;++f)e[f]!=null&&(ot+=e[f].v);return ot}function et(n,t){if(t==null)return!1;var i=parseFloat(t[2]);switch(t[1]){case"=":if(n==i)return!0;break;case">":if(n>i)return!0;break;case"<":if(n<i)return!0;break;case"<>":if(n!=i)return!0;break;case">=":if(n>=i)return!0;break;case"<=":if(n<=i)return!0}return!1}function lt(n,t){var i=rt(n),r=i.length,u=i[r-1].indexOf("@"),f,e,o;if(r<4&&u>-1&&--r,i.length>4)throw"cannot find right format for |"+i+"|";if(typeof t!="number")return[4,i.length===4||u>-1?i[i.length-1]:"@"];switch(i.length){case 1:i=u>-1?["General","General","General",i[0]]:[i[0],i[0],i[0],"@"];break;case 2:i=u>-1?[i[0],i[0],i[0],i[1]]:[i[0],i[1],i[0],"@"];break;case 3:i=u>-1?[i[0],i[1],i[0],i[2]]:[i[0],i[1],i[2],"@"]}return(f=t>0?i[0]:t<0?i[1]:i[2],i[0].indexOf("[")===-1&&i[1].indexOf("[")===-1)?[r,f]:i[0].match(d)!=null||i[1].match(d)!=null?(e=i[0].match(g),o=i[1].match(g),et(t,e)?[r,i[0]]:et(t,o)?[r,i[1]]:[r,i[e!=null&&o!=null?2:1]]):[r,f]}function at(n,t,i){var r,u;nt(i!=null?i:i=[]);r="";switch(typeof n){case"string":r=n;break;case"number":r=(i.table!=null?i.table:l)[n]}if(w(r,0)||(u=lt(r,t),w(u[1])))return v(t,i);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return ft(u[1],t,i,u[0])}var p,s,k,u,ut,d,g;t.version="0.8.1";p=Math.pow(2,32);s=[["date1904",0],["output",""],["WTF",!1]];t.opts=s;var l=n.Excel_Formats,tt=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],b=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];t._general_int=it;k=function(){function e(n){var r=n<0?12:11,i=t(n.toFixed(12));return i.length<=r?i:(i=n.toPrecision(10),i.length<=r)?i:n.toExponential(5)}function o(t){var i=t.toFixed(11).replace(n,".$1");return i.length>(t<0?12:11)&&(i=t.toPrecision(6)),i}function s(n){for(var t=0;t!=n.length;++t)if((n.charCodeAt(t)|32)==101)return n.replace(r,".$1").replace(u,"E").replace("e","E").replace(f,"$10$2");return n}function t(t){return t.indexOf(".")>-1?t.replace(i,"").replace(n,".$1"):t}var n=/\.(\d*[1-9])0+$/,i=/\.0*$/,r=/\.(\d*[1-9])0+/,u=/\.0*[Ee]/,f=/(E[+-])(\d)$/;return function(n){var i=Math.floor(Math.log(Math.abs(n))*Math.LOG10E),r;return r=i>=-4&&i<=-1?n.toPrecision(10+i):Math.abs(i)<=9?e(n):i===10?n.toFixed(10).substr(0,12):o(n),t(s(r))}}();t._general_num=k;t._general=v;t.parse_date_code=h;u=function(){function d(n,t,r){var f=t.replace(h,""),e=t.length-f.length;return u(n,f,r*Math.pow(10,2*e))+i("%",e)}function g(n,t,i){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return u(n,t.substr(0,r),i/Math.pow(10,3*(t.length-r)))}function nt(n,t){var i,e=n.indexOf("E")-n.indexOf(".")-1,r,u,f;if(n.match(/^#+0.0E\+0$/)){if(r=n.indexOf("."),r===-1&&(r=n.indexOf("E")),u=Math.floor(Math.log(Math.abs(t))*Math.LOG10E)%r,u<0&&(u+=r),i=(t/Math.pow(10,u)).toPrecision(e+1+(r+u)%r),i.indexOf("e")===-1){for(f=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),i.indexOf(".")===-1?i=i[0]+"."+i.substr(1)+"E+"+(f-i.length+u):i+="E+"+(f-u);i.substr(0,2)==="0.";)i=i[0]+i.substr(2,r)+"."+i.substr(2+r),i=i.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");i=i.replace(/\+-/,"-")}i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(n,t,i,f){return t+i+f.substr(0,(r+u)%r)+"."+f.substr(u)+"E"})}else i=t.toExponential(e);return n.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i[i.length-1]),n.match(/E\-/)&&i.match(/e\+/)&&(i=i.replace(/e\+/,"e")),i.replace("e","E")}function tt(n,t,u){var f=parseInt(n[4]),o=Math.round(t*f),e=Math.floor(o/f),s=o-e*f,h=f;return u+(e===0?"":""+e)+" "+(s===0?i(" ",n[1].length+1+n[4].length):y(s,n[1].length)+n[2]+"/"+n[3]+r(h,n[4].length))}function it(n,t,r){return r+(t===0?"":""+t)+i(" ",n[1].length+2+n[4].length)}function s(n){for(var t="",r,i=0;i!=n.length;++i)switch(r=n.charCodeAt(i)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function b(n,t){var i=Math.pow(10,t);return""+Math.round(n*i)/i}function k(n,t){return Math.round((n-Math.floor(n))*Math.pow(10,t))}function rt(n){return n<2147483647&&n>-2147483648?""+(n>=0?n|0:n-1|0):""+Math.floor(n)}function n(t,h,it){var lt,ft,ut,et,st,ht,ct,ot,at,yt,vt;if(t.charCodeAt(0)===40&&!h.match(p))return(lt=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),it>=0)?n("n",lt,it):"("+n("n",lt,-it)+")";if(h.charCodeAt(h.length-1)===44)return g(t,h,it);if(h.indexOf("%")!==-1)return d(t,h,it);if(h.indexOf("E")!==-1)return nt(h,it);if(h.charCodeAt(0)===36)return"$"+n(t,h.substr(h[1]==" "?2:1),it);if(ht=Math.abs(it),ct=it<0?"-":"",h.match(/^00+$/))return ct+o(ht,h.length);if(h.match(/^[#?]+$/))return ft=o(it,0),ft==="0"&&(ft=""),ft.length>h.length?ft:s(h.substr(0,h.length-ft.length))+ft;if((ut=h.match(l))!==null)return tt(ut,ht,ct);if(h.match(/^#+0+$/)!==null)return ct+o(ht,h.length-h.indexOf("0"));if((ut=h.match(v))!==null)return ft=b(it,ut[1].length).replace(/^([^\.]+)$/,"$1."+ut[1]).replace(/\.$/,"."+ut[1]).replace(/\.(\d*)$/,function(n,t){return"."+t+i("0",ut[1].length-t.length)}),h.indexOf("0.")!==-1?ft:ft.replace(/^0\./,".");if(h=h.replace(/^#+([0.])/,"$1"),(ut=h.match(/^(0*)\.(#*)$/))!==null)return ct+b(ht,ut[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,ut[1].length?"0.":".");if((ut=h.match(/^#,##0(\.?)$/))!==null)return ct+f(o(ht,0));if((ut=h.match(/^#,##0\.([#0]*0)$/))!==null)return it<0?"-"+n(t,h,-it):f(""+Math.floor(it))+"."+r(k(it,ut[1].length),ut[1].length);if((ut=h.match(/^#,#*,#0/))!==null)return n(t,h.replace(/^#,#*,/,""),it);if((ut=h.match(/^([0#]+)(\\?-([0#]+))+$/))!==null)return ft=e(n(t,h.replace(/[\\-]/g,""),it)),et=0,e(e(h.replace(/\\/g,"")).replace(/[0#]/g,function(n){return et<ft.length?ft[et++]:n==="0"?"0":""}));if(h.match(w)!==null)return ft=n(t,"##########",it),"("+ft.substr(0,3)+") "+ft.substr(3,3)+"-"+ft.substr(6);if(ot="",(ut=h.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))!==null)return et=Math.min(ut[4].length,7),st=a(ht,Math.pow(10,et)-1,!1),ft=""+ct,ot=u("n",ut[1],st[1]),ot[ot.length-1]==" "&&(ot=ot.substr(0,ot.length-1)+"0"),ft+=ot+ut[2]+"/"+ut[3],ot=c(st[2],et),ot.length<ut[4].length&&(ot=s(ut[4].substr(ut[4].length-ot.length))+ot),ft+=ot;if((ut=h.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))!==null)return et=Math.min(Math.max(ut[1].length,ut[4].length),7),st=a(ht,Math.pow(10,et)-1,!0),ct+(st[0]||(st[1]?"":"0"))+" "+(st[1]?y(st[1],et)+ut[2]+"/"+ut[3]+c(st[2],et):i(" ",2*et+1+ut[2].length+ut[3].length));if((ut=h.match(/^[#0?]+$/))!==null)return(ft=o(it,0),h.length<=ft.length)?ft:s(h.substr(0,h.length-ft.length))+ft;if((ut=h.match(/^([#0?]+)\.([#0]+)$/))!==null)return ft=""+it.toFixed(Math.min(ut[2].length,10)).replace(/([^0])0+$/,"$1"),et=ft.indexOf("."),at=h.indexOf(".")-et,yt=h.length-ft.length-at,s(h.substr(0,at)+ft+h.substr(h.length-yt));if((ut=h.match(/^00,000\.([#0]*0)$/))!==null)return et=k(it,ut[1].length),it<0?"-"+n(t,h,-it):f(rt(it)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(n){return"00,"+(n.length<3?r(0,3-n.length):"")+n})+"."+r(et,ut[1].length);switch(h){case"#,###":return vt=f(o(ht,0)),vt!=="0"?ct+vt:""}throw new Error("unsupported format |"+h+"|");}function ut(n,t,i){for(var r=t.length-1;t.charCodeAt(r-1)===44;)--r;return u(n,t.substr(0,r),i/Math.pow(10,3*(t.length-r)))}function ft(n,t,r){var f=t.replace(h,""),e=t.length-f.length;return u(n,f,r*Math.pow(10,2*e))+i("%",e)}function et(n,t){var i,e=n.indexOf("E")-n.indexOf(".")-1,r,u,f;return n.match(/^#+0.0E\+0$/)?(r=n.indexOf("."),r===-1&&(r=n.indexOf("E")),u=Math.floor(Math.log(Math.abs(t))*Math.LOG10E)%r,u<0&&(u+=r),i=(t/Math.pow(10,u)).toPrecision(e+1+(r+u)%r),i.match(/[Ee]/)||(f=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),i.indexOf(".")===-1?i=i[0]+"."+i.substr(1)+"E+"+(f-i.length+u):i+="E+"+(f-u),i=i.replace(/\+-/,"-")),i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(n,t,i,f){return t+i+f.substr(0,(r+u)%r)+"."+f.substr(u)+"E"})):i=t.toExponential(e),n.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i[i.length-1]),n.match(/E\-/)&&i.match(/e\+/)&&(i=i.replace(/e\+/,"e")),i.replace("e","E")}function t(n,o,h){var ot,k,b,g,nt,tt,rt,d,st,ct,ht;if(n.charCodeAt(0)===40&&!o.match(p))return(ot=o.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),h>=0)?t("n",ot,h):"("+t("n",ot,-h)+")";if(o.charCodeAt(o.length-1)===44)return ut(n,o,h);if(o.indexOf("%")!==-1)return ft(n,o,h);if(o.indexOf("E")!==-1)return et(o,h);if(o.charCodeAt(0)===36)return"$"+t(n,o.substr(o[1]==" "?2:1),h);if(tt=Math.abs(h),rt=h<0?"-":"",o.match(/^00+$/))return rt+r(tt,o.length);if(o.match(/^[#?]+$/))return k=""+h,h===0&&(k=""),k.length>o.length?k:s(o.substr(0,o.length-k.length))+k;if((b=o.match(l))!==null)return it(b,tt,rt);if(o.match(/^#+0+$/)!==null)return rt+r(tt,o.length-o.indexOf("0"));if((b=o.match(v))!==null)return k=(""+h).replace(/^([^\.]+)$/,"$1."+b[1]).replace(/\.$/,"."+b[1]).replace(/\.(\d*)$/,function(n,t){return"."+t+i("0",b[1].length-t.length)}),o.indexOf("0.")!==-1?k:k.replace(/^0\./,".");if(o=o.replace(/^#+([0.])/,"$1"),(b=o.match(/^(0*)\.(#*)$/))!==null)return rt+(""+tt).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,b[1].length?"0.":".");if((b=o.match(/^#,##0(\.?)$/))!==null)return rt+f(""+tt);if((b=o.match(/^#,##0\.([#0]*0)$/))!==null)return h<0?"-"+t(n,o,-h):f(""+h)+"."+i("0",b[1].length);if((b=o.match(/^#,#*,#0/))!==null)return t(n,o.replace(/^#,#*,/,""),h);if((b=o.match(/^([0#]+)(\\?-([0#]+))+$/))!==null)return k=e(t(n,o.replace(/[\\-]/g,""),h)),g=0,e(e(o.replace(/\\/g,"")).replace(/[0#]/g,function(n){return g<k.length?k[g++]:n==="0"?"0":""}));if(o.match(w)!==null)return k=t(n,"##########",h),"("+k.substr(0,3)+") "+k.substr(3,3)+"-"+k.substr(6);if(d="",(b=o.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))!==null)return g=Math.min(b[4].length,7),nt=a(tt,Math.pow(10,g)-1,!1),k=""+rt,d=u("n",b[1],nt[1]),d[d.length-1]==" "&&(d=d.substr(0,d.length-1)+"0"),k+=d+b[2]+"/"+b[3],d=c(nt[2],g),d.length<b[4].length&&(d=s(b[4].substr(b[4].length-d.length))+d),k+=d;if((b=o.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))!==null)return g=Math.min(Math.max(b[1].length,b[4].length),7),nt=a(tt,Math.pow(10,g)-1,!0),rt+(nt[0]||(nt[1]?"":"0"))+" "+(nt[1]?y(nt[1],g)+b[2]+"/"+b[3]+c(nt[2],g):i(" ",2*g+1+b[2].length+b[3].length));if((b=o.match(/^[#0?]+$/))!==null)return(k=""+h,o.length<=k.length)?k:s(o.substr(0,o.length-k.length))+k;if((b=o.match(/^([#0]+)\.([#0]+)$/))!==null)return k=""+h.toFixed(Math.min(b[2].length,10)).replace(/([^0])0+$/,"$1"),g=k.indexOf("."),st=o.indexOf(".")-g,ct=o.length-k.length-st,s(o.substr(0,st)+k+o.substr(o.length-ct));if((b=o.match(/^00,000\.([#0]*0)$/))!==null)return h<0?"-"+t(n,o,-h):f(""+h).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(n){return"00,"+(n.length<3?r(0,3-n.length):"")+n})+"."+r(0,b[1].length);switch(o){case"#,###":return ht=f(""+tt),ht!=="0"?rt+ht:""}throw new Error("unsupported format |"+o+"|");}var h=/%/g,l=/# (\?+)( ?)\/( ?)(\d+)/,v=/^#*0*\.(0+)/,p=/\).*[0#]/,w=/\(###\) ###\\?-####/;return function(i,r,u){return(u|0)===u?t(i,r,u):n(i,r,u)}}();t._split=rt;ut=/\[[HhMmSs]*\]/;t._eval=ft;d=/\[[=<>]/;g=/\[([=<>]*)(-?\d+\.?\d*)\]/;t._table=l;t.load=function(n,t){l[t]=n};t.format=at;t.get_table=function(){return l};t.load_table=function(n){for(var i=0;i!=392;++i)n[i]!==undefined&&t.load(n[i],i)}};pu(i);var ce={"General Number":"General","General Date":i._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":i._table[15],"Short Date":i._table[14],"Long Time":i._table[19],"Medium Time":i._table[18],"Short Time":i._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:i._table[2],Standard:i._table[4],Percent:i._table[10],Scientific:i._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'},er=function(){function i(t){var e=3,r=512,g=0,et=0,b=0,nt=0,ot=0,o=[],i=t.slice(0,512),st,ht,tt,it,k,s,f,ft,at;ut(i,0);st=h(i);e=st[0];switch(e){case 3:r=512;break;case 4:r=4096;break;default:throw"Major Version: Expected 3 or 4 saw "+e;}if(r!==512&&(i=t.slice(0,r),ut(i,28)),ht=t.slice(0,r),c(i,e),tt=i.read_shift(4,"i"),e===3&&tt!==0)throw"# Directory Sectors: Expected 0 saw "+tt;for(i.l+=4,b=i.read_shift(4,"i"),i.l+=4,i.chk("00100000","Mini Stream Cutoff Size: "),nt=i.read_shift(4,"i"),g=i.read_shift(4,"i"),ot=i.read_shift(4,"i"),et=i.read_shift(4,"i"),k=0;k<109;++k){if(it=i.read_shift(4,"i"),it<0)break;o[k]=it}s=l(t,r);u(ot,et,s,r,o);f=p(s,b,o,r);f[b].name="!Directory";g>0&&nt!==n&&(f[nt].name="!MiniFAT");f[o[0]].name="!FAT";f.fat_addrs=o;f.ssz=r;var ct={},y=[],d=[],rt=[],lt={};return w(b,f,s,y,g,ct,d),a(d,lt,rt,y),ft=y.shift(),y.root=ft,at=v(rt,y,d,ct,ft),{raw:{header:ht,sectors:s},FileIndex:d,FullPaths:rt,FullPathDir:lt,find:at}}function h(n){n.chk(o,"Header Signature: ");n.chk(s,"CLSID: ");var t=n.read_shift(2,"u");return[n.read_shift(2,"u"),t]}function c(n,t){var i=9;n.chk("feff","Byte Order: ");switch(i=n.read_shift(2)){case 9:if(t!==3)throw"MajorVersion/SectorShift Mismatch";break;case 12:if(t!==4)throw"MajorVersion/SectorShift Mismatch";break;default:throw"Sector Shift: Expected 9 or 12 saw "+i;}n.chk("0600","Mini Sector Shift: ");n.chk("000000000000","Reserved: ")}function l(n,t){for(var r=Math.ceil(n.length/t)-1,u=new Array(r),i=1;i<r;++i)u[i-1]=n.slice(i*t,(i+1)*t);return u[r-1]=n.slice(r*t),u}function a(n,t,i,r){for(var u=0,e=0,o=0,l=0,s=0,h=r.length,f=new Array(h),c=new Array(h);u<h;++u)f[u]=c[u]=u,i[u]=r[u];for(;s<c.length;++s)u=c[s],e=n[u].L,o=n[u].R,l=n[u].C,f[u]===u&&(e!==-1&&f[e]!==e&&(f[u]=f[e]),o!==-1&&f[o]!==o&&(f[u]=f[o])),l!==-1&&(f[l]=u),e!==-1&&(f[e]=f[u],c.push(e)),o!==-1&&(f[o]=f[u],c.push(o));for(u=1;u!==h;++u)f[u]===u&&(o!==-1&&f[o]!==o?f[u]=f[o]:e!==-1&&f[e]!==e&&(f[u]=f[e]));for(u=1;u<h;++u)if(n[u].type!==0){if(s=f[u],s===0)i[u]=i[0]+"/"+i[u];else while(s!==0)i[u]=i[s]+"/"+i[u],s=f[s];f[u]=0}for(i[0]+="/",u=1;u<h;++u)n[u].type!==2&&(i[u]+="/"),t[i[u]]=n[u]}function v(n,t,i,r,u){for(var e=new Array(n.length),o=new Array(t.length),f=0;f<n.length;++f)e[f]=n[f].toUpperCase().replace(st,"").replace(fr,"!");for(f=0;f<t.length;++f)o[f]=t[f].toUpperCase().replace(st,"").replace(fr,"!");return function(n){var f,h,s;return(n.charCodeAt(0)===47?(f=!0,n=u+n):f=n.indexOf("/")!==-1,h=n.toUpperCase().replace(st,"").replace(fr,"!"),s=f===!0?e.indexOf(h):o.indexOf(h),s===-1)?null:f===!0?i[s]:r[t[s]]}}function u(t,i,r,f,e){var h,s,c,o;if(t===n){if(i!==0)throw"DIFAT chain shorter than expected";}else if(t!==-1){for(s=r[t],c=(f>>>2)-1,o=0;o<c;++o){if((h=ai(s,o*4))===n)break;e.push(h)}u(ai(s,f-4),i-1,r,f,e)}}function y(n,t,i,r,u){var l=n.length,e,o,h,f,s,c;for(u||(u=new Array(l)),h=r-1,e=[],o=[],f=t;f>=0;){if(u[f]=!0,e[e.length]=f,o.push(n[f]),c=i[Math.floor(f*4/r)],s=f*4&h,r<4+s)throw"FAT boundary crossed: "+f+" 4 "+r;f=ai(n[c],s)}return{nodes:e,data:gi([o])}}function p(n,t,i,r){for(var e=n.length,l=new Array(e),a=new Array(e),o,h,y=r-1,u,f,c,v,s=0;s<e;++s)if(o=[],f=s+t,f>=e&&(f-=e),a[f]!==!0){for(h=[],u=f;u>=0;){if(a[u]=!0,o[o.length]=u,h.push(n[u]),v=i[Math.floor(u*4/r)],c=u*4&y,r<4+c)throw"FAT boundary crossed: "+u+" 4 "+r;u=ai(n[v],c)}l[f]={nodes:o,data:gi([h])}}return l}function w(t,i,r,u,o,s,h){for(var l,a=0,g=u.length?2:0,d=i[t].data,v=0,w=0,p,c,b,k;v<d.length;v+=128)(l=d.slice(v,v+128),ut(l,64),w=l.read_shift(2),w!==0)&&(p=nr(l,0,w-g),u.push(p),c={name:p,type:l.read_shift(1),color:l.read_shift(1),L:l.read_shift(4,"i"),R:l.read_shift(4,"i"),C:l.read_shift(4,"i"),clsid:l.read_shift(16),state:l.read_shift(4,"i")},b=l.read_shift(2)+l.read_shift(2)+l.read_shift(2)+l.read_shift(2),b!==0&&(c.ctime=b,c.ct=f(l,l.l-8)),k=l.read_shift(2)+l.read_shift(2)+l.read_shift(2)+l.read_shift(2),k!==0&&(c.mtime=k,c.mt=f(l,l.l-8)),c.start=l.read_shift(4,"i"),c.size=l.read_shift(4,"i"),c.type===5?(a=c.start,o>0&&a!==n&&(i[a].name="!StreamData")):c.size>=4096?(c.storage="fat",i[c.start]===undefined&&(i[c.start]=y(r,c.start,i.fat_addrs,i.ssz)),i[c.start].name=c.name,c.content=i[c.start].data.slice(0,c.size),ut(c.content,0)):(c.storage="minifat",a!==n&&c.start!==n&&(c.content=i[a].data.slice(c.start*e,c.start*e+c.size),ut(c.content,0))),s[p]=c,h.push(c))}function f(n,t){return new Date((pt(n,t+4)/1e7*Math.pow(2,32)+pt(n,t)/1e7-11644473600)*1e3)}function b(n,t){return r===undefined&&(r=require("fs")),i(r.readFileSync(n),t)}function k(n,t){switch(t!==undefined&&t.type!==undefined?t.type:"base64"){case"file":return b(n,t);case"base64":return i(vu(bi.decode(n)),t);case"binary":return i(vu(n),t)}return i(n)}var t={},r;t.version="0.10.2";var e=64,n=-2,o="d0cf11e0a1b11ae1",s="00000000000000000000000000000000",d={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:n,FREESECT:-1,HEADER_SIGNATURE:o,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:s,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};return t.read=k,t.parse=i,t.utils={ReadShift:vr,CheckField:io,prep_blob:ut,bconcat:yu,consts:d},t}();typeof require!="undefined"&&typeof module!="undefined"&&!1&&(module.exports=er);typeof JSZip!="undefined"&&(at=JSZip);typeof exports!="undefined"&&typeof module!="undefined"&&module.exports&&(tt&&typeof at=="undefined"&&(at=require("jszip")),typeof at=="undefined"&&(at=require("./jszip").JSZip),sr=require("fs"));var ha=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,vt=/<[^>]*>/g,ca=/<\w*:/,la=/<(\/?)\w+:/;var ye={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},va=fa(ye),wnt="&<>'\"".split(""),it=function(){var n=/&[a-z]*;/g,t=/_x([\da-fA-F]+)_/g;return function(i){var r=i+"";return r.replace(n,function(n){return ye[n]}).replace(t,function(n,t){return String.fromCharCode(parseInt(t,16))})}}(),ya=/[&<>'"]/g,pa=/[\u0000-\u0008\u000b-\u001f]/g;wu=function(){function t(n,t){return String.fromCharCode(parseInt(t,10))}var n=/&#(\d+);/g;return function(i){return i.replace(n,t)}}();rt=function(n){for(var i="",r=0,t=0,u=0,f=0,o=0,e=0;r<n.length;){if(t=n.charCodeAt(r++),t<128){i+=String.fromCharCode(t);continue}if(u=n.charCodeAt(r++),t>191&&t<224){i+=String.fromCharCode((t&31)<<6|u&63);continue}if(f=n.charCodeAt(r++),t<240){i+=String.fromCharCode((t&15)<<12|(u&63)<<6|f&63);continue}o=n.charCodeAt(r++);e=((t&7)<<18|(u&63)<<12|(f&63)<<6|o&63)-65536;i+=String.fromCharCode(55296+(e>>>10&1023));i+=String.fromCharCode(56320+(e&1023))}return i};tt&&(bu=function(n){for(var u=new Buffer(2*n.length),t,f=1,e=0,o=0,r,i=0;i<n.length;i+=f)f=1,(r=n.charCodeAt(i))<128?t=r:r<224?(t=(r&31)*64+(n.charCodeAt(i+1)&63),f=2):r<240?(t=(r&15)*4096+(n.charCodeAt(i+1)&63)*64+(n.charCodeAt(i+2)&63),f=3):(f=4,t=(r&7)*262144+(n.charCodeAt(i+1)&63)*4096+(n.charCodeAt(i+2)&63)*64+(n.charCodeAt(i+3)&63),t-=65536,o=55296+(t>>>10&1023),t=56320+(t&1023)),o!==0&&(u[e++]=o&255,u[e++]=o>>>8,o=0),u[e++]=t%256,u[e++]=t>>>8;return u.length=e,u.toString("ucs2")},di="foo bar bazâð£",rt(di)==bu(di)&&(rt=bu),ku=function(n){return Buffer(n,"binary").toString("utf8")},rt(di)==ku(di)&&(rt=ku));var si=function(){var n={};return function(t,i){var r=t+"|"+i;return n[r]!==undefined?n[r]:n[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([^☃]*)<\/(?:\\w+:)?'+t+">",i||"")}}(),wa=function(){var n={};return function(t){return n[t]!==undefined?n[t]:n[t]=new RegExp("<vt:"+t+">(.*?)<\/vt:"+t+">","g")}}(),ba=/<\/?vt:variant>/g,ka=/<vt:([^>]*)>(.*)</;du=/(^\s|\s$|\n)/;yt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';u={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};u.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];gi=we=function(n){for(var t=[],i=0;i<n[0].length;++i)t.push.apply(t,n[0][i]);return t};nr=be=function(n,t,i){for(var u=[],r=t;r<i;r+=2)u.push(String.fromCharCode(bt(n,r)));return u.join("")};cr=ke=function(n,t,i){return n.slice(t,t+i).map(function(n){return(n<16?"0":"")+n.toString(16)}).join("")};hi=tv=function(n,t,i){for(var u=[],r=t;r<i;r++)u.push(String.fromCharCode(li(n,r)));return u.join("")};ci=de=function(n,t){var i=pt(n,t);return i>0?hi(n,t+4,t+4+i-1):""};lr=ge=function(n,t){var i=2*pt(n,t);return i>0?hi(n,t+4,t+4+i-1):""};ar=no=function(n,t){return nv(n,t)};tf=function(n){return Array.isArray(n)};tt&&(nr=function(n,t,i){return Buffer.isBuffer(n)?n.toString("utf16le",t,i):be(n,t,i)},cr=function(n,t,i){return Buffer.isBuffer(n)?n.toString("hex",t,t+i):ke(n,t,i)},ci=function(n,t){if(!Buffer.isBuffer(n))return de(n,t);var i=n.readUInt32LE(t);return i>0?n.toString("utf8",t+4,t+4+i-1):""},lr=function(n,t){if(!Buffer.isBuffer(n))return ge(n,t);var i=2*n.readUInt32LE(t);return n.toString("utf16le",t+4,t+4+i-1)},hi=function(n,t){return this.toString("utf8",n,t)},gi=function(n){return n[0].length>0&&Buffer.isBuffer(n[0][0])?Buffer.concat(n[0]):we(n)},yu=function(n){return Buffer.isBuffer(n[0])?Buffer.concat(n):[].concat.apply([],n)},ar=function(n,t){return Buffer.isBuffer(n)?n.readDoubleLE(t):no(n,t)},tf=function(n){return Buffer.isBuffer(n)||Array.isArray(n)});typeof cptable!="undefined"&&(nr=function(n,t,i){return cptable.utils.decode(1200,n.slice(t,i))},hi=function(n,t,i){return cptable.utils.decode(65001,n.slice(t,i))},ci=function(n,t){var i=pt(n,t);return i>0?cptable.utils.decode(d,n.slice(t+4,t+4+i-1)):""},lr=function(n,t){var i=2*pt(n,t);return i>0?cptable.utils.decode(1200,n.slice(t+4,t+4+i-1)):""});var li=function(n,t){return n[t]},bt=function(n,t){return n[t+1]*256+n[t]},iv=function(n,t){var i=n[t+1]*256+n[t];return i<32768?i:(65536-i)*-1},pt=function(n,t){return n[t+3]*16777216+(n[t+2]<<16)+(n[t+1]<<8)+n[t]},ai=function(n,t){return n[t+3]<<24|n[t+2]<<16|n[t+1]<<8|n[t]},to=function(n){return n.match(/../g).map(function(n){return parseInt(n,16)})},hti=typeof Buffer!="undefined"?function(n){return Buffer.isBuffer(n)?new Buffer(n,"hex"):to(n)}:to;ro={};uo=function(n,t){var i;if(typeof t!="undefined")i=t;else if(typeof require!="undefined")try{i=require("crypto")}catch(r){i=null}n.rc4=function(n,t){for(var r=new Array(256),f=0,i=0,u=0,e=0,i=0;i!=256;++i)r[i]=i;for(i=0;i!=256;++i)u=u+r[i]+n[i%n.length].charCodeAt(0)&255,e=r[i],r[i]=r[u],r[u]=e;for(i=u=0,out=Buffer(t.length),f=0;f!=t.length;++f)i=i+1&255,u=(u+r[i])%256,e=r[i],r[i]=r[u],r[u]=e,out[f]=t[f]^r[r[i]+r[u]&255];return out};n.md5=i?function(n){return i.createHash("md5").update(n).digest("hex")}:function(){throw"unimplemented";}};uo(ro,typeof crypto!="undefined"?crypto:undefined);oo=eo;so=hv;kt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};rf=le(kt);var uf=2,k=3,wr=11,ff=12,co=19,lo=30,br=64,ao=4096,a=80,vo=81,yv=[a,vo],yo={1:{n:"CodePage",t:uf},2:{n:"Category",t:a},3:{n:"PresentationFormat",t:a},4:{n:"ByteCount",t:k},5:{n:"LineCount",t:k},6:{n:"ParagraphCount",t:k},7:{n:"SlideCount",t:k},8:{n:"NoteCount",t:k},9:{n:"HiddenCount",t:k},10:{n:"MultimediaClipCount",t:k},11:{n:"Scale",t:wr},12:{n:"HeadingPair",t:ao|ff},13:{n:"DocParts",t:ao|lo},14:{n:"Manager",t:a},15:{n:"Company",t:a},16:{n:"LinksDirty",t:wr},17:{n:"CharacterCount",t:k},19:{n:"SharedDoc",t:wr},22:{n:"HLinksChanged",t:wr},23:{n:"AppVersion",t:k,p:"version"},26:{n:"ContentType",t:a},27:{n:"ContentStatus",t:a},28:{n:"Language",t:a},29:{n:"Version",t:a},255:{}},po={1:{n:"CodePage",t:uf},2:{n:"Title",t:a},3:{n:"Subject",t:a},4:{n:"Author",t:a},5:{n:"Keywords",t:a},6:{n:"Comments",t:a},7:{n:"Template",t:a},8:{n:"LastAuthor",t:a},9:{n:"RevNumber",t:a},10:{n:"EditTime",t:br},11:{n:"LastPrinted",t:br},12:{n:"CreatedDate",t:br},13:{n:"ModifiedDate",t:br},14:{n:"PageCount",t:k},15:{n:"WordCount",t:k},16:{n:"CharCount",t:k},17:{n:"Thumbnail",t:71},18:{n:"ApplicationName",t:lo},19:{n:"DocumentSecurity",t:k},255:{}},ef={2147483648:{n:"Locale",t:co},2147483651:{n:"Behavior",t:co},1919054434:{}};(function(){for(var n in ef)ef.hasOwnProperty(n)&&(yo[n]=po[n]=ef[n])})();of={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};wo=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var sf=pv([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0]),kr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.chartsheet":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"TODO","application/vnd.ms-excel.dialogsheet":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"TODO","application/vnd.ms-excel.macrosheet":"TODO","application/vnd.ms-excel.macrosheet+xml":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.ms-excel.comments":"comments","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"TODO","application/vnd.ms-excel.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"vba","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO",sheet:"js"},bo=function(){var n={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};return w(n).forEach(function(t){n[t].xlsm||(n[t].xlsm=n[t].xlsx)}),w(n).forEach(function(t){w(n[t]).forEach(function(i){kr[n[t][i]]=t})}),n}(),ko=ea(kr);u.CT="http://schemas.openxmlformats.org/package/2006/content-types";go=r("Types",null,{xmlns:u.CT,"xmlns:xsd":u.xsd,"xmlns:xsi":u.xsi});ns=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["rels",ko.rels[0]]].map(function(n){return r("Default",null,{Extension:n[0],ContentType:n[1]})});v={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument"};u.RELS="http://schemas.openxmlformats.org/package/2006/relationships";is=r("Relationships",null,{xmlns:u.RELS});ni=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];u.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";v.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";us=function(){for(var n,i,r=new Array(ni.length),t=0;t<ni.length;++t)n=ni[t],i="(?:"+n[0].substr(0,n[0].indexOf(":"))+":)"+n[0].substr(n[0].indexOf(":")+1),r[t]=new RegExp("<"+i+"[^>]*>(.*)<\/"+i+">");return r}();fs=r("cp:coreProperties",null,{"xmlns:cp":u.CORE_PROPS,"xmlns:dc":u.dc,"xmlns:dcterms":u.dcterms,"xmlns:dcmitype":u.dcmitype,"xmlns:xsi":u.xsi});cf=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];u.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";v.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";es=r("Properties",null,{xmlns:u.EXT_PROPS,"xmlns:vt":u.vt});u.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";v.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";os=/<[^>]+>[^<]*/g;ss=r("Properties",null,{xmlns:u.CUST_PROPS,"xmlns:vt":u.vt});vy=e;var wy=t,by=function(n){var t=n.read_shift(4),u=n.l,i=!1,r;return t>24&&(n.l+=t-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(i=!0),n.l=u),r=n.read_shift((i?t-24:t)>>1,"utf16le").replace(st,""),i&&(n.l+=24),r},ky=function(n){var f=n.read_shift(2),t=n.read_shift(4),i=n.read_shift(t,"cstr"),e=n.read_shift(2),o=n.read_shift(2),r=n.read_shift(4);if(r===0)return i.replace(/\\/g,"/");var u=n.read_shift(4),s=n.read_shift(2);return n.read_shift(u>>1,"utf16le").replace(st,"")},dy=function(n,t){var i=n.read_shift(16);t-=16;switch(i){case"e0c9ea79f9bace118c8200aa004ba90b":return by(n,t);case"0303000000000000c000000000000046":return ky(n,t);default:throw"unsupported moniker "+i;}},tu=function(n){var t=n.read_shift(4);return n.read_shift(t,"utf16le").replace(st,"")},gy=function(n,t){var r=n.l+t,e=n.read_shift(4),i,c,o,s,h,u,l,a,f;if(e!==2)throw new Error("Unrecognized streamVersion: "+e);return i=n.read_shift(2),n.l+=2,i&16&&(c=tu(n,r-n.l)),i&128&&(o=tu(n,r-n.l)),(i&257)==257&&(s=tu(n,r-n.l)),(i&257)==1&&(h=dy(n,r-n.l)),i&8&&(u=tu(n,r-n.l)),i&32&&(l=n.read_shift(16)),i&64&&(a=lf(n,8)),n.l=r,f=o||s||h,u&&(f+="#"+u),{Target:f}};ip=["SHOWALL","SHOWPLACEHOLDER","HIDEALL"];ds=y;th=nh;rh={21:ih,19:t,18:function(n){n.l+=12},17:function(n){n.l+=8},16:t,15:t,13:fp,12:function(n){n.l+=24},11:function(n){n.l+=10},10:function(n){n.l+=16},9:t,8:function(n){n.l+=6},7:ep,6:function(n){n.l+=6},4:t,0:function(n){n.l+=4}};uh=y;eh=dt;yf=tp;hh=function(n,t){var r=iu(n,8),i;return n.l+=16,i=gy(n,t-24),[r,i]};ch=function(n,t){var u=n.l+t,r,i;return n.read_shift(2),r=iu(n,8),i=n.read_shift((t-10)/2,"dbcs-cont"),i=i.replace(st,""),[r,i]};var tb=t,ib=t,rb=t,ub=t,fb=e,eb=ti,ob=et,sb=y,hb=y,cb=et,lb=e,ab=y,vb=e,yb=dt,pb=e,wb=y,bb=e,kb=e,db=y,gb=dt,nk=dt,tk=dt,ik=dt,rk=dt,uk=y,fk=yf,ek=y,ok=e,sk=yf,hk=ds,ck=dt,lk=et,ak=dt,vk=e,yk=y,pk=e,wk=e,bk=y,kk=e,dk=y,gk=e,nd=e,td=et,id=ws,rd=e,ud=ws,fd=pi,ed=e,od=et,sd=e,hd=e,cd=e,ld=t,ad=t,vd=t,yd=t,pd=t,wd=t,bd=t,kd=t,dd=t,gd=t,ng=t,tg=t,ig=t,rg=t,ug=t,fg=t,eg=t,og=t,sg=t,hg=t,cg=t,lg=t,ag=t,vg=t,yg=t,pg=t,wg=t,bg=t,kg=t,dg=t,gg=t,nn=t,tn=t,rn=t,un=t,fn=t,en=t,on=t,sn=t,hn=t,cn=t,ln=t,an=t,vn=t,yn=t,pn=t,wn=t,bn=t,kn=t,dn=t,gn=t,ntt=t,ttt=t,itt=t,rtt=t,utt=t,ftt=t,ett=t,ott=t,stt=t,htt=t,ctt=t,ltt=t,att=t,vtt=t,ytt=t,ptt=t,wtt=t,btt=t,ktt=t,dtt=t,gtt=t,nit=t,tit=t,iit=t,rit=t,uit=t,fit=t,eit=t,oit=t,sit=t,hit=t,cit=t,lit=t,ait=t,vit=t,yit=t,pit=t,wit=t,bit=t,kit=t,dit=t,git=t,nrt=t,trt=t,irt=t,rrt=t,urt=t,frt=t,ert=t,ort=t,srt=t,hrt=t,crt=t,lrt=t,art=t,vrt=t,yrt=t,prt=t,wrt=t,brt=t,krt=t,drt=pi,grt=t,nut=t,tut=t,iut=t,rut=t,uut=t,fut=t,eut=t,sut=t,hut=t,cut=t,lut=t,aut=t,vut=t,yut=t,put=t,wut=t,but=t,kut=t,dut=t,gut=t,nft=t,tft=t,ift=t,rft=t,uft=t,fft=t,eft=t,oft=t,sft=t,hft=t,cft=t,lft=t,aft=t,vft=t,yft=t,pft=t,wft=t,bft=t,kft=t,dft=t,gft=t,net=t,tet=t,iet=t,ret=t,uet=t,fet=t,eet=t,oet=t,set=t,het=t,cet=t,aet=t,vet=t,yet=t,pet=t,wet=t,bet=t,ket=t,det=t,get=t,not=t,tot=t,iot=t,rot=t,uot=t,fot=t,eot=t,oot=t,sot=t,hot=t,cot=t,lot=t,aot=t,vot=t,yot=t,pot=t,wot=t,bot=t,kot=t,dot=t,got=t,nst=t,tst=t,ist=t,rst=t,ust=t,fst=t,est=t,ost=t,sst=t,hst=t,cst=t,lst=t,ast=t,vst=t,yst=t,pst=t,wst=t,bst=t,kst=t,dst=t,gst=t,nht=t,tht=t,iht=t,rht=t,uht=t,fht=t,eht=t,oht=t,sht=t,hht=t,cht=t,lht=t,aht=t,vht=t,yht=t,pht=t,wht=t,bht=t,kht=t,dht=t,ght=t,nct=t,tct=t,ict=t,rct=t,uct=t,fct=t,ect=t,oct=t,sct=t,hct=t,cct=t,lct=t,act=t,vct=t,yct=t,pct=t,wct=t,bct=t,kct=t;var nlt={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},tlt=function(){function e(i){var r=[[],"",[]],o=i.match(n),s=65001,e;return ki(o)?(r[1]=o[1],e=i.match(t),ki(e)&&(s=f(e[1],r[0],r[2])),r[0].join("")+r[1].replace(u,"<br/>")+r[2].join("")):""}var n=si("t"),t=si("rPr"),i=/<r>/g,r=/<\/r>/,u=/\r\n/g,f=function(n,t,i){var u={},s=65001,e=n.match(vt),o=0,r,f;if(e)for(;o!=e.length;++o){r=l(e[o]);switch(r[0]){case"<condense":break;case"<extend":break;case"<shadow":case"<shadow/>":break;case"<charset":if(r.val=="1")break;s=nlt[parseInt(r.val,10)];break;case"<outline":case"<outline/>":break;case"<rFont":u.name=r.val;break;case"<sz":u.sz=r.val;break;case"<strike":if(!r.val)break;case"<strike/>":u.strike=1;break;case"<\/strike>":break;case"<u":if(!r.val)break;case"<u/>":u.u=1;break;case"<\/u>":break;case"<b":case"<strong":if(!r.val)break;case"<b/>":u.b=1;break;case"<strong/>":u.b=1;break;case"<\/b>":break;case"<\/strong>":break;case"<i":if(!r.val)break;case"<i/>":u.i=1;break;case"<\/i>":break;case"<color":r.rgb&&(u.color=r.rgb.substr(2,6));break;case"<family":u.family=r.val;break;case"<vertAlign":break;case"<scheme":break;default:if(r[0].charCodeAt(1)!==47)throw"Unrecognized rich format "+r[0];}}return f=[],u.b&&f.push("font-weight: bold;"),u.i&&f.push("font-style: italic;"),t.push('<span style="'+f.join("")+'">'),i.push("<\/span>"),s};return function(n){return n.replace(i,"").split(r).map(e).join("")}}(),ilt=/<t[^>]*>([^<]*)<\/t>/g,rlt=/<r>/;var ult=/<sst([^>]*)>([\s\S]*)<\/sst>/,flt=/<(?:si|sstItem)>/g,elt=/<\/(?:si|sstItem)>/;v.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";lh=/^\s|\s$|[\t\n\r]/;ah=ev;var ph=function(){var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],i=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],u=function(n){return(n/2|n*128)&255},n=function(n,t){return u(n^t)},f=function(n){for(var u,f,e=i[n.length-1],o=104,t=n.length-1;t>=0;--t)for(u=n[t],f=0;f!=7;++f)u&64&&(e^=r[o]),u*=2,--o;return e};return function(i){for(var u,l,h,e=vh(i),s=f(e),r=e.length,o=au(16),c=0;c!=16;++c)o[c]=0;for((r&1)==1&&(u=s>>8,o[r]=n(t[0],u),--r,u=s&255,l=e[e.length-1],o[r]=n(l,u));r>0;)--r,u=s>>8,o[r]=n(e[r],u),--r,u=s&255,o[r]=n(e[r],u);for(r=15,h=15-e.length;h>0;)u=s>>8,o[r]=n(t[h],u),--r,--h,u=s&255,o[r]=n(e[r],u),--r,--h;return o}}(),klt=function(n,t,i,r,u){u||(u=t);r||(r=ph(n));for(var f,e=0;e!=t.length;++e)f=t[e],f^=r[i],f=(f>>5|f<<3)&255,u[e]=f,++i;return[u,i,r]},dlt=function(n){var t=0,i=ph(n);return function(n){var r=klt(null,n,t,i);return t=r[1],r[0]}};var ru=7,bh=15,kh=1,p=ru;var eat={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},o={},ot={};nc=function(){var n=/<numFmts([^>]*)>.*<\/numFmts>/,t=/<cellXfs([^>]*)>.*<\/cellXfs>/,i=/<fills([^>]*)>.*<\/fills>/;return function(r,u){var f;return(f=r.match(n))&&sat(f,u),(f=r.match(i))&&oat(f,u),(f=r.match(t))&&cat(f,u),o}}();tc=r("styleSheet",null,{xmlns:u.main[0],"xmlns:vt":u.vt});v.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";v.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var nvt=/<a:clrScheme([^>]*)>[^\u2603]*<\/a:clrScheme>/,tvt=/<a:fontScheme([^>]*)>[^\u2603]*<\/a:fontScheme>/,ivt=/<a:fmtScheme([^>]*)>[^\u2603]*<\/a:fmtScheme>/;ic=/<a:themeElements([^>]*)>[^\u2603]*<\/a:themeElements>/;rc=ft;uc=fo;fc=function(){function i(t,i,r,u,f,e){var s=u.length>0?parseInt(u,10)|0:0,o=e.length>0?parseInt(e,10)|0:0;return o<0&&f.length===0&&(o=0),f.length>0&&(o+=n.c),r.length>0&&(s+=n.r),i+lt(o)+ct(s)}var t=/(^|[^A-Za-z])R(\[?)(-?\d+|)\]?C(\[?)(-?\d+|)\]?/g,n;return function(r,u){return n=u,r.replace(t,i)}}();hc=tyt(4);cc=h;var wpt=h,bpt=h,kpt=h,dpt=h,gpt=h,nwt=h,twt=h,iwt=h,rwt=h,uwt=h,fwt=h,ewt=h,owt=h,swt=h,hwt=h,cwt=h,lwt=h,awt=h,vwt=h,ywt=t,pwt=t,wwt=t,bwt=t,df={1:{n:"PtgExp",f:ipt},2:{n:"PtgTbl",f:bwt},3:{n:"PtgAdd",f:wpt},4:{n:"PtgSub",f:cwt},5:{n:"PtgMul",f:uwt},6:{n:"PtgDiv",f:bpt},7:{n:"PtgPower",f:swt},8:{n:"PtgConcat",f:cc},9:{n:"PtgLt",f:iwt},10:{n:"PtgLe",f:twt},11:{n:"PtgEq",f:kpt},12:{n:"PtgGe",f:dpt},13:{n:"PtgGt",f:gpt},14:{n:"PtgNe",f:fwt},15:{n:"PtgIsect",f:nwt},16:{n:"PtgUnion",f:awt},17:{n:"PtgRange",f:hwt},18:{n:"PtgUplus",f:vwt},19:{n:"PtgUminus",f:lwt},20:{n:"PtgPercent",f:owt},21:{n:"PtgParen",f:ewt},22:{n:"PtgMissArg",f:rwt},23:{n:"PtgStr",f:opt},28:{n:"PtgErr",f:rpt},29:{n:"PtgBool",f:fpt},30:{n:"PtgInt",f:upt},31:{n:"PtgNum",f:ept},32:{n:"PtgArray",f:hyt},33:{n:"PtgFunc",f:gyt},34:{n:"PtgFuncVar",f:npt},35:{n:"PtgName",f:lpt},36:{n:"PtgRef",f:byt},37:{n:"PtgArea",f:uyt},38:{n:"PtgMemArea",f:vpt},39:{n:"PtgMemErr",f:ywt},40:{n:"PtgMemNoMem",f:pwt},41:{n:"PtgMemFunc",f:ypt},42:{n:"PtgRefErr",f:ppt},43:{n:"PtgAreaErr",f:eyt},44:{n:"PtgRefN",f:kyt},45:{n:"PtgAreaN",f:syt},57:{n:"PtgNameX",f:apt},58:{n:"PtgRef3d",f:dyt},59:{n:"PtgArea3d",f:fyt},60:{n:"PtgRefErr3d",f:wwt},61:{n:"PtgAreaErr3d",f:oyt},255:{}},lc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};(function(){for(var n in lc)df[n]=df[lc[n]]})();ac={};vc={1:{n:"PtgAttrSemi",f:yyt},2:{n:"PtgAttrIf",f:vyt},4:{n:"PtgAttrChoose",f:lyt},8:{n:"PtgAttrGoto",f:ayt},16:{n:"PtgAttrSum",f:hc},32:{n:"PtgAttrBaxcel",f:cyt},64:{n:"PtgAttrSpace",f:pyt},65:{n:"PtgAttrSpaceSemi",f:wyt},255:{}};var rbt={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},pc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD"},ubt={2:1,3:1,15:1,16:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,65:3,66:3,67:1,68:1,69:1,71:1,72:1,73:1,75:1,76:1,77:1,79:2,80:2,83:1,86:1,90:1,97:2,98:1,99:1,105:1,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,189:3,190:1,195:3,196:3,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,65535:0},wc={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFNA":"IFNA","_xlfn.IFERROR":"IFERROR","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"},ur={},ii={};v.WS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";var ebt=/<mergeCell ref="[A-Z0-9:]+"\s*\/>/g,obt=/<(?:\w+:)?sheetData>([^\u2603]*)<\/(?:\w+:)?sheetData>/,sbt=/<hyperlink[^>]*\/>/g,hbt=/"(\w*:\w*)"/,cbt=/<col[^>]*\/>/g;dc=function(){var n=/<(?:\w+:)?c[ >]/,t=/<\/(?:\w+:)?row>/,i=/r=["']([^"']*)["']/,r=/<is>([\S\s]*?)<\/is>/,u=si("v"),f=si("f");return function(e,s,h,c){for(var ct,y=0,v="",et=[],p=[],k=0,w=0,ut=0,g="",a,b,d=0,ft=0,nt,ot=0,st=0,at=Array.isArray(o.CellXf),tt,lt=e.split(t),ht=0,vt=lt.length;ht!=vt;++ht)if(v=lt[ht].trim(),ct=v.length,ct!==0){for(y=0;y<ct;++y)if(v.charCodeAt(y)===62)break;if(++y,b=l(v.substr(0,y),!0),d=typeof b.r!="undefined"?parseInt(b.r,10):d+1,ft=-1,!h.sheetRows||!(h.sheetRows<d))for(c.s.r>d-1&&(c.s.r=d-1),c.e.r<d-1&&(c.e.r=d-1),et=v.substr(y).split(n),y=typeof b.r=="undefined"?0:1;y!=et.length;++y)if(v=et[y].trim(),v.length!==0){if(p=v.match(i),k=y,w=0,ut=0,v="<c "+(v.substr(0,1)=="<"?">":"")+v,p!==null&&p.length===2){for(k=0,g=p[1],w=0;w!=g.length;++w){if((ut=g.charCodeAt(w)-64)<1||ut>26)break;k=26*k+ut}--k;ft=k}else++ft;for(w=0;w!=v.length;++w)if(v.charCodeAt(w)===62)break;if(++w,b=l(v.substr(0,w),!0),b.r||(b.r=oe.encode_cell({r:d-1,c:ft})),g=v.substr(w),a={t:""},(p=g.match(u))!==null&&p[1]!==""&&(a.v=it(p[1])),h.cellFormula&&(p=g.match(f))!==null&&(a.f=it(p[1])),b.t===undefined&&a.v===undefined){if(!h.sheetStubs)continue;a.t="stub"}else a.t=b.t||"n";c.s.c>k&&(c.s.c=k);c.e.c<k&&(c.e.c=k);switch(a.t){case"n":a.v=parseFloat(a.v);break;case"s":nt=ur[parseInt(a.v,10)];a.v=nt.t;a.r=nt.r;h.cellHTML&&(a.h=nt.h);break;case"str":a.t="s";a.v=a.v!=null?rt(a.v):"";h.cellHTML&&(a.h=a.v);break;case"inlineStr":p=g.match(r);a.t="s";p!==null?(nt=pf(p[1]),a.v=nt.t):a.v="";break;case"b":a.v=oi(a.v);break;case"d":h.cellDates||(a.v=or(a.v),a.t="n");break;case"e":a.w=a.v;a.v=rf[a.v]}ot=st=0;at&&b.s!==undefined&&(tt=o.CellXf[b.s],tt!=null&&(tt.numFmtId!=null&&(ot=tt.numFmtId),h.cellStyles&&tt.fillId!=null&&(st=tt.fillId)));kc(a,ot,st,h);s[b.r]=a}}}}();gc=r("worksheet",null,{xmlns:u.main[0],"xmlns:r":u.r});nl=pr;tl=cv;il=pr;var bkt=[["allowRefreshQuery","0"],["autoCompressPictures","1"],["backupFile","0"],["checkCompatibility","0"],["codeName",""],["date1904","0"],["dateCompatibility","1"],["filterPrivacy","0"],["hidePivotFieldList","0"],["promptedSolutions","0"],["publishItems","0"],["refreshAllConnections",!1],["saveExternalLinkValues","1"],["showBorderUnselectedTables","1"],["showInkAnnotation","1"],["showObjects","all"],["showPivotChartFilter","0"]],kkt=[["activeTab","0"],["autoFilterDateGrouping","1"],["firstSheet","0"],["minimized","0"],["showHorizontalScroll","1"],["showSheetTabs","1"],["showVerticalScroll","1"],["tabRatio","600"],["visibility","visible"]],dkt=[["state","visible"]],gkt=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];el=/<\w+:workbook/;ol=r("workbook",null,{xmlns:u.main[0],"xmlns:r":u.r});var sl=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,hl=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/,fgt=function(n){return String.fromCharCode(n)};ne=/<(\/?)([a-z0-9]*:|)(\w+)[^>]*>/mg;var su={0:{n:"BrtRowHdr",f:dbt},1:{n:"BrtCellBlank",f:nkt},2:{n:"BrtCellRk",f:ekt},3:{n:"BrtCellError",f:rkt},4:{n:"BrtCellBool",f:ikt},5:{n:"BrtCellReal",f:fkt},6:{n:"BrtCellSt",f:okt},7:{n:"BrtCellIsst",f:ukt},8:{n:"BrtFmlaString",f:lkt},9:{n:"BrtFmlaNum",f:ckt},10:{n:"BrtFmlaBool",f:skt},11:{n:"BrtFmlaError",f:hkt},16:{n:"BrtFRTArchID$",f:odt},19:{n:"BrtSSTItem",f:fo},20:{n:"BrtPCDIMissing",f:t},21:{n:"BrtPCDINumber",f:t},22:{n:"BrtPCDIBoolean",f:t},23:{n:"BrtPCDIError",f:t},24:{n:"BrtPCDIString",f:t},25:{n:"BrtPCDIDatetime",f:t},26:{n:"BrtPCDIIndex",f:t},27:{n:"BrtPCDIAMissing",f:t},28:{n:"BrtPCDIANumber",f:t},29:{n:"BrtPCDIABoolean",f:t},30:{n:"BrtPCDIAError",f:t},31:{n:"BrtPCDIAString",f:t},32:{n:"BrtPCDIADatetime",f:t},33:{n:"BrtPCRRecord",f:t},34:{n:"BrtPCRRecordDt",f:t},35:{n:"BrtFRTBegin",f:t},36:{n:"BrtFRTEnd",f:t},37:{n:"BrtACBegin",f:t},38:{n:"BrtACEnd",f:t},39:{n:"BrtName",f:t},40:{n:"BrtIndexRowBlock",f:t},42:{n:"BrtIndexBlock",f:t},43:{n:"BrtFont",f:yat},44:{n:"BrtFmt",f:vat},45:{n:"BrtFill",f:t},46:{n:"BrtBorder",f:t},47:{n:"BrtXF",f:pat},48:{n:"BrtStyle",f:t},49:{n:"BrtCellMeta",f:t},50:{n:"BrtValueMeta",f:t},51:{n:"BrtMdb",f:t},52:{n:"BrtBeginFmd",f:t},53:{n:"BrtEndFmd",f:t},54:{n:"BrtBeginMdx",f:t},55:{n:"BrtEndMdx",f:t},56:{n:"BrtBeginMdxTuple",f:t},57:{n:"BrtEndMdxTuple",f:t},58:{n:"BrtMdxMbrIstr",f:t},59:{n:"BrtStr",f:t},60:{n:"BrtColInfo",f:t},62:{n:"BrtCellRString",f:t},63:{n:"BrtCalcChainItem$",f:pvt},64:{n:"BrtDVal",f:t},65:{n:"BrtSxvcellNum",f:t},66:{n:"BrtSxvcellStr",f:t},67:{n:"BrtSxvcellBool",f:t},68:{n:"BrtSxvcellErr",f:t},69:{n:"BrtSxvcellDate",f:t},70:{n:"BrtSxvcellNil",f:t},128:{n:"BrtFileVersion",f:t},129:{n:"BrtBeginSheet",f:t},130:{n:"BrtEndSheet",f:t},131:{n:"BrtBeginBook",f:t,p:0},132:{n:"BrtEndBook",f:t},133:{n:"BrtBeginWsViews",f:t},134:{n:"BrtEndWsViews",f:t},135:{n:"BrtBeginBookViews",f:t},136:{n:"BrtEndBookViews",f:t},137:{n:"BrtBeginWsView",f:t},138:{n:"BrtEndWsView",f:t},139:{n:"BrtBeginCsViews",f:t},140:{n:"BrtEndCsViews",f:t},141:{n:"BrtBeginCsView",f:t},142:{n:"BrtEndCsView",f:t},143:{n:"BrtBeginBundleShs",f:t},144:{n:"BrtEndBundleShs",f:t},145:{n:"BrtBeginSheetData",f:t},146:{n:"BrtEndSheetData",f:t},147:{n:"BrtWsProp",f:gbt},148:{n:"BrtWsDim",f:nl,p:16},151:{n:"BrtPane",f:t},152:{n:"BrtSel",f:t},153:{n:"BrtWbProp",f:fdt},154:{n:"BrtWbFactoid",f:t},155:{n:"BrtFileRecover",f:t},156:{n:"BrtBundleSh",f:rdt},157:{n:"BrtCalcProp",f:t},158:{n:"BrtBookView",f:t},159:{n:"BrtBeginSst",f:hlt},160:{n:"BrtEndSst",f:t},161:{n:"BrtBeginAFilter",f:t},162:{n:"BrtEndAFilter",f:t},163:{n:"BrtBeginFilterColumn",f:t},164:{n:"BrtEndFilterColumn",f:t},165:{n:"BrtBeginFilters",f:t},166:{n:"BrtEndFilters",f:t},167:{n:"BrtFilter",f:t},168:{n:"BrtColorFilter",f:t},169:{n:"BrtIconFilter",f:t},170:{n:"BrtTop10Filter",f:t},171:{n:"BrtDynamicFilter",f:t},172:{n:"BrtBeginCustomFilters",f:t},173:{n:"BrtEndCustomFilters",f:t},174:{n:"BrtCustomFilter",f:t},175:{n:"BrtAFilterDateGroupItem",f:t},176:{n:"BrtMergeCell",f:il},177:{n:"BrtBeginMergeCells",f:t},178:{n:"BrtEndMergeCells",f:t},179:{n:"BrtBeginPivotCacheDef",f:t},180:{n:"BrtEndPivotCacheDef",f:t},181:{n:"BrtBeginPCDFields",f:t},182:{n:"BrtEndPCDFields",f:t},183:{n:"BrtBeginPCDField",f:t},184:{n:"BrtEndPCDField",f:t},185:{n:"BrtBeginPCDSource",f:t},186:{n:"BrtEndPCDSource",f:t},187:{n:"BrtBeginPCDSRange",f:t},188:{n:"BrtEndPCDSRange",f:t},189:{n:"BrtBeginPCDFAtbl",f:t},190:{n:"BrtEndPCDFAtbl",f:t},191:{n:"BrtBeginPCDIRun",f:t},192:{n:"BrtEndPCDIRun",f:t},193:{n:"BrtBeginPivotCacheRecords",f:t},194:{n:"BrtEndPivotCacheRecords",f:t},195:{n:"BrtBeginPCDHierarchies",f:t},196:{n:"BrtEndPCDHierarchies",f:t},197:{n:"BrtBeginPCDHierarchy",f:t},198:{n:"BrtEndPCDHierarchy",f:t},199:{n:"BrtBeginPCDHFieldsUsage",f:t},200:{n:"BrtEndPCDHFieldsUsage",f:t},201:{n:"BrtBeginExtConnection",f:t},202:{n:"BrtEndExtConnection",f:t},203:{n:"BrtBeginECDbProps",f:t},204:{n:"BrtEndECDbProps",f:t},205:{n:"BrtBeginECOlapProps",f:t},206:{n:"BrtEndECOlapProps",f:t},207:{n:"BrtBeginPCDSConsol",f:t},208:{n:"BrtEndPCDSConsol",f:t},209:{n:"BrtBeginPCDSCPages",f:t},210:{n:"BrtEndPCDSCPages",f:t},211:{n:"BrtBeginPCDSCPage",f:t},212:{n:"BrtEndPCDSCPage",f:t},213:{n:"BrtBeginPCDSCPItem",f:t},214:{n:"BrtEndPCDSCPItem",f:t},215:{n:"BrtBeginPCDSCSets",f:t},216:{n:"BrtEndPCDSCSets",f:t},217:{n:"BrtBeginPCDSCSet",f:t},218:{n:"BrtEndPCDSCSet",f:t},219:{n:"BrtBeginPCDFGroup",f:t},220:{n:"BrtEndPCDFGroup",f:t},221:{n:"BrtBeginPCDFGItems",f:t},222:{n:"BrtEndPCDFGItems",f:t},223:{n:"BrtBeginPCDFGRange",f:t},224:{n:"BrtEndPCDFGRange",f:t},225:{n:"BrtBeginPCDFGDiscrete",f:t},226:{n:"BrtEndPCDFGDiscrete",f:t},227:{n:"BrtBeginPCDSDTupleCache",f:t},228:{n:"BrtEndPCDSDTupleCache",f:t},229:{n:"BrtBeginPCDSDTCEntries",f:t},230:{n:"BrtEndPCDSDTCEntries",f:t},231:{n:"BrtBeginPCDSDTCEMembers",f:t},232:{n:"BrtEndPCDSDTCEMembers",f:t},233:{n:"BrtBeginPCDSDTCEMember",f:t},234:{n:"BrtEndPCDSDTCEMember",f:t},235:{n:"BrtBeginPCDSDTCQueries",f:t},236:{n:"BrtEndPCDSDTCQueries",f:t},237:{n:"BrtBeginPCDSDTCQuery",f:t},238:{n:"BrtEndPCDSDTCQuery",f:t},239:{n:"BrtBeginPCDSDTCSets",f:t},240:{n:"BrtEndPCDSDTCSets",f:t},241:{n:"BrtBeginPCDSDTCSet",f:t},242:{n:"BrtEndPCDSDTCSet",f:t},243:{n:"BrtBeginPCDCalcItems",f:t},244:{n:"BrtEndPCDCalcItems",f:t},245:{n:"BrtBeginPCDCalcItem",f:t},246:{n:"BrtEndPCDCalcItem",f:t},247:{n:"BrtBeginPRule",f:t},248:{n:"BrtEndPRule",f:t},249:{n:"BrtBeginPRFilters",f:t},250:{n:"BrtEndPRFilters",f:t},251:{n:"BrtBeginPRFilter",f:t},252:{n:"BrtEndPRFilter",f:t},253:{n:"BrtBeginPNames",f:t},254:{n:"BrtEndPNames",f:t},255:{n:"BrtBeginPName",f:t},256:{n:"BrtEndPName",f:t},257:{n:"BrtBeginPNPairs",f:t},258:{n:"BrtEndPNPairs",f:t},259:{n:"BrtBeginPNPair",f:t},260:{n:"BrtEndPNPair",f:t},261:{n:"BrtBeginECWebProps",f:t},262:{n:"BrtEndECWebProps",f:t},263:{n:"BrtBeginEcWpTables",f:t},264:{n:"BrtEndECWPTables",f:t},265:{n:"BrtBeginECParams",f:t},266:{n:"BrtEndECParams",f:t},267:{n:"BrtBeginECParam",f:t},268:{n:"BrtEndECParam",f:t},269:{n:"BrtBeginPCDKPIs",f:t},270:{n:"BrtEndPCDKPIs",f:t},271:{n:"BrtBeginPCDKPI",f:t},272:{n:"BrtEndPCDKPI",f:t},273:{n:"BrtBeginDims",f:t},274:{n:"BrtEndDims",f:t},275:{n:"BrtBeginDim",f:t},276:{n:"BrtEndDim",f:t},277:{n:"BrtIndexPartEnd",f:t},278:{n:"BrtBeginStyleSheet",f:t},279:{n:"BrtEndStyleSheet",f:t},280:{n:"BrtBeginSXView",f:t},281:{n:"BrtEndSXVI",f:t},282:{n:"BrtBeginSXVI",f:t},283:{n:"BrtBeginSXVIs",f:t},284:{n:"BrtEndSXVIs",f:t},285:{n:"BrtBeginSXVD",f:t},286:{n:"BrtEndSXVD",f:t},287:{n:"BrtBeginSXVDs",f:t},288:{n:"BrtEndSXVDs",f:t},289:{n:"BrtBeginSXPI",f:t},290:{n:"BrtEndSXPI",f:t},291:{n:"BrtBeginSXPIs",f:t},292:{n:"BrtEndSXPIs",f:t},293:{n:"BrtBeginSXDI",f:t},294:{n:"BrtEndSXDI",f:t},295:{n:"BrtBeginSXDIs",f:t},296:{n:"BrtEndSXDIs",f:t},297:{n:"BrtBeginSXLI",f:t},298:{n:"BrtEndSXLI",f:t},299:{n:"BrtBeginSXLIRws",f:t},300:{n:"BrtEndSXLIRws",f:t},301:{n:"BrtBeginSXLICols",f:t},302:{n:"BrtEndSXLICols",f:t},303:{n:"BrtBeginSXFormat",f:t},304:{n:"BrtEndSXFormat",f:t},305:{n:"BrtBeginSXFormats",f:t},306:{n:"BrtEndSxFormats",f:t},307:{n:"BrtBeginSxSelect",f:t},308:{n:"BrtEndSxSelect",f:t},309:{n:"BrtBeginISXVDRws",f:t},310:{n:"BrtEndISXVDRws",f:t},311:{n:"BrtBeginISXVDCols",f:t},312:{n:"BrtEndISXVDCols",f:t},313:{n:"BrtEndSXLocation",f:t},314:{n:"BrtBeginSXLocation",f:t},315:{n:"BrtEndSXView",f:t},316:{n:"BrtBeginSXTHs",f:t},317:{n:"BrtEndSXTHs",f:t},318:{n:"BrtBeginSXTH",f:t},319:{n:"BrtEndSXTH",f:t},320:{n:"BrtBeginISXTHRws",f:t},321:{n:"BrtEndISXTHRws",f:t},322:{n:"BrtBeginISXTHCols",f:t},323:{n:"BrtEndISXTHCols",f:t},324:{n:"BrtBeginSXTDMPS",f:t},325:{n:"BrtEndSXTDMPs",f:t},326:{n:"BrtBeginSXTDMP",f:t},327:{n:"BrtEndSXTDMP",f:t},328:{n:"BrtBeginSXTHItems",f:t},329:{n:"BrtEndSXTHItems",f:t},330:{n:"BrtBeginSXTHItem",f:t},331:{n:"BrtEndSXTHItem",f:t},332:{n:"BrtBeginMetadata",f:t},333:{n:"BrtEndMetadata",f:t},334:{n:"BrtBeginEsmdtinfo",f:t},335:{n:"BrtMdtinfo",f:t},336:{n:"BrtEndEsmdtinfo",f:t},337:{n:"BrtBeginEsmdb",f:t},338:{n:"BrtEndEsmdb",f:t},339:{n:"BrtBeginEsfmd",f:t},340:{n:"BrtEndEsfmd",f:t},341:{n:"BrtBeginSingleCells",f:t},342:{n:"BrtEndSingleCells",f:t},343:{n:"BrtBeginList",f:t},344:{n:"BrtEndList",f:t},345:{n:"BrtBeginListCols",f:t},346:{n:"BrtEndListCols",f:t},347:{n:"BrtBeginListCol",f:t},348:{n:"BrtEndListCol",f:t},349:{n:"BrtBeginListXmlCPr",f:t},350:{n:"BrtEndListXmlCPr",f:t},351:{n:"BrtListCCFmla",f:t},352:{n:"BrtListTrFmla",f:t},353:{n:"BrtBeginExternals",f:t},354:{n:"BrtEndExternals",f:t},355:{n:"BrtSupBookSrc",f:t},357:{n:"BrtSupSelf",f:t},358:{n:"BrtSupSame",f:t},359:{n:"BrtSupTabs",f:t},360:{n:"BrtBeginSupBook",f:t},361:{n:"BrtPlaceholderName",f:t},362:{n:"BrtExternSheet",f:t},363:{n:"BrtExternTableStart",f:t},364:{n:"BrtExternTableEnd",f:t},366:{n:"BrtExternRowHdr",f:t},367:{n:"BrtExternCellBlank",f:t},368:{n:"BrtExternCellReal",f:t},369:{n:"BrtExternCellBool",f:t},370:{n:"BrtExternCellError",f:t},371:{n:"BrtExternCellString",f:t},372:{n:"BrtBeginEsmdx",f:t},373:{n:"BrtEndEsmdx",f:t},374:{n:"BrtBeginMdxSet",f:t},375:{n:"BrtEndMdxSet",f:t},376:{n:"BrtBeginMdxMbrProp",f:t},377:{n:"BrtEndMdxMbrProp",f:t},378:{n:"BrtBeginMdxKPI",f:t},379:{n:"BrtEndMdxKPI",f:t},380:{n:"BrtBeginEsstr",f:t},381:{n:"BrtEndEsstr",f:t},382:{n:"BrtBeginPRFItem",f:t},383:{n:"BrtEndPRFItem",f:t},384:{n:"BrtBeginPivotCacheIDs",f:t},385:{n:"BrtEndPivotCacheIDs",f:t},386:{n:"BrtBeginPivotCacheID",f:t},387:{n:"BrtEndPivotCacheID",f:t},388:{n:"BrtBeginISXVIs",f:t},389:{n:"BrtEndISXVIs",f:t},390:{n:"BrtBeginColInfos",f:t},391:{n:"BrtEndColInfos",f:t},392:{n:"BrtBeginRwBrk",f:t},393:{n:"BrtEndRwBrk",f:t},394:{n:"BrtBeginColBrk",f:t},395:{n:"BrtEndColBrk",f:t},396:{n:"BrtBrk",f:t},397:{n:"BrtUserBookView",f:t},398:{n:"BrtInfo",f:t},399:{n:"BrtCUsr",f:t},400:{n:"BrtUsr",f:t},401:{n:"BrtBeginUsers",f:t},403:{n:"BrtEOF",f:t},404:{n:"BrtUCR",f:t},405:{n:"BrtRRInsDel",f:t},406:{n:"BrtRREndInsDel",f:t},407:{n:"BrtRRMove",f:t},408:{n:"BrtRREndMove",f:t},409:{n:"BrtRRChgCell",f:t},410:{n:"BrtRREndChgCell",f:t},411:{n:"BrtRRHeader",f:t},412:{n:"BrtRRUserView",f:t},413:{n:"BrtRRRenSheet",f:t},414:{n:"BrtRRInsertSh",f:t},415:{n:"BrtRRDefName",f:t},416:{n:"BrtRRNote",f:t},417:{n:"BrtRRConflict",f:t},418:{n:"BrtRRTQSIF",f:t},419:{n:"BrtRRFormat",f:t},420:{n:"BrtRREndFormat",f:t},421:{n:"BrtRRAutoFmt",f:t},422:{n:"BrtBeginUserShViews",f:t},423:{n:"BrtBeginUserShView",f:t},424:{n:"BrtEndUserShView",f:t},425:{n:"BrtEndUserShViews",f:t},426:{n:"BrtArrFmla",f:t},427:{n:"BrtShrFmla",f:t},428:{n:"BrtTable",f:t},429:{n:"BrtBeginExtConnections",f:t},430:{n:"BrtEndExtConnections",f:t},431:{n:"BrtBeginPCDCalcMems",f:t},432:{n:"BrtEndPCDCalcMems",f:t},433:{n:"BrtBeginPCDCalcMem",f:t},434:{n:"BrtEndPCDCalcMem",f:t},435:{n:"BrtBeginPCDHGLevels",f:t},436:{n:"BrtEndPCDHGLevels",f:t},437:{n:"BrtBeginPCDHGLevel",f:t},438:{n:"BrtEndPCDHGLevel",f:t},439:{n:"BrtBeginPCDHGLGroups",f:t},440:{n:"BrtEndPCDHGLGroups",f:t},441:{n:"BrtBeginPCDHGLGroup",f:t},442:{n:"BrtEndPCDHGLGroup",f:t},443:{n:"BrtBeginPCDHGLGMembers",f:t},444:{n:"BrtEndPCDHGLGMembers",f:t},445:{n:"BrtBeginPCDHGLGMember",f:t},446:{n:"BrtEndPCDHGLGMember",f:t},447:{n:"BrtBeginQSI",f:t},448:{n:"BrtEndQSI",f:t},449:{n:"BrtBeginQSIR",f:t},450:{n:"BrtEndQSIR",f:t},451:{n:"BrtBeginDeletedNames",f:t},452:{n:"BrtEndDeletedNames",f:t},453:{n:"BrtBeginDeletedName",f:t},454:{n:"BrtEndDeletedName",f:t},455:{n:"BrtBeginQSIFs",f:t},456:{n:"BrtEndQSIFs",f:t},457:{n:"BrtBeginQSIF",f:t},458:{n:"BrtEndQSIF",f:t},459:{n:"BrtBeginAutoSortScope",f:t},460:{n:"BrtEndAutoSortScope",f:t},461:{n:"BrtBeginConditionalFormatting",f:t},462:{n:"BrtEndConditionalFormatting",f:t},463:{n:"BrtBeginCFRule",f:t},464:{n:"BrtEndCFRule",f:t},465:{n:"BrtBeginIconSet",f:t},466:{n:"BrtEndIconSet",f:t},467:{n:"BrtBeginDatabar",f:t},468:{n:"BrtEndDatabar",f:t},469:{n:"BrtBeginColorScale",f:t},470:{n:"BrtEndColorScale",f:t},471:{n:"BrtCFVO",f:t},472:{n:"BrtExternValueMeta",f:t},473:{n:"BrtBeginColorPalette",f:t},474:{n:"BrtEndColorPalette",f:t},475:{n:"BrtIndexedColor",f:t},476:{n:"BrtMargins",f:t},477:{n:"BrtPrintOptions",f:t},478:{n:"BrtPageSetup",f:t},479:{n:"BrtBeginHeaderFooter",f:t},480:{n:"BrtEndHeaderFooter",f:t},481:{n:"BrtBeginSXCrtFormat",f:t},482:{n:"BrtEndSXCrtFormat",f:t},483:{n:"BrtBeginSXCrtFormats",f:t},484:{n:"BrtEndSXCrtFormats",f:t},485:{n:"BrtWsFmtInfo",f:t},486:{n:"BrtBeginMgs",f:t},487:{n:"BrtEndMGs",f:t},488:{n:"BrtBeginMGMaps",f:t},489:{n:"BrtEndMGMaps",f:t},490:{n:"BrtBeginMG",f:t},491:{n:"BrtEndMG",f:t},492:{n:"BrtBeginMap",f:t},493:{n:"BrtEndMap",f:t},494:{n:"BrtHLink",f:akt},495:{n:"BrtBeginDCon",f:t},496:{n:"BrtEndDCon",f:t},497:{n:"BrtBeginDRefs",f:t},498:{n:"BrtEndDRefs",f:t},499:{n:"BrtDRef",f:t},500:{n:"BrtBeginScenMan",f:t},501:{n:"BrtEndScenMan",f:t},502:{n:"BrtBeginSct",f:t},503:{n:"BrtEndSct",f:t},504:{n:"BrtSlc",f:t},505:{n:"BrtBeginDXFs",f:t},506:{n:"BrtEndDXFs",f:t},507:{n:"BrtDXF",f:t},508:{n:"BrtBeginTableStyles",f:t},509:{n:"BrtEndTableStyles",f:t},510:{n:"BrtBeginTableStyle",f:t},511:{n:"BrtEndTableStyle",f:t},512:{n:"BrtTableStyleElement",f:t},513:{n:"BrtTableStyleClient",f:t},514:{n:"BrtBeginVolDeps",f:t},515:{n:"BrtEndVolDeps",f:t},516:{n:"BrtBeginVolType",f:t},517:{n:"BrtEndVolType",f:t},518:{n:"BrtBeginVolMain",f:t},519:{n:"BrtEndVolMain",f:t},520:{n:"BrtBeginVolTopic",f:t},521:{n:"BrtEndVolTopic",f:t},522:{n:"BrtVolSubtopic",f:t},523:{n:"BrtVolRef",f:t},524:{n:"BrtVolNum",f:t},525:{n:"BrtVolErr",f:t},526:{n:"BrtVolStr",f:t},527:{n:"BrtVolBool",f:t},528:{n:"BrtBeginCalcChain$",f:t},529:{n:"BrtEndCalcChain$",f:t},530:{n:"BrtBeginSortState",f:t},531:{n:"BrtEndSortState",f:t},532:{n:"BrtBeginSortCond",f:t},533:{n:"BrtEndSortCond",f:t},534:{n:"BrtBookProtection",f:t},535:{n:"BrtSheetProtection",f:t},536:{n:"BrtRangeProtection",f:t},537:{n:"BrtPhoneticInfo",f:t},538:{n:"BrtBeginECTxtWiz",f:t},539:{n:"BrtEndECTxtWiz",f:t},540:{n:"BrtBeginECTWFldInfoLst",f:t},541:{n:"BrtEndECTWFldInfoLst",f:t},542:{n:"BrtBeginECTwFldInfo",f:t},548:{n:"BrtFileSharing",f:t},549:{n:"BrtOleSize",f:t},550:{n:"BrtDrawing",f:t},551:{n:"BrtLegacyDrawing",f:t},552:{n:"BrtLegacyDrawingHF",f:t},553:{n:"BrtWebOpt",f:t},554:{n:"BrtBeginWebPubItems",f:t},555:{n:"BrtEndWebPubItems",f:t},556:{n:"BrtBeginWebPubItem",f:t},557:{n:"BrtEndWebPubItem",f:t},558:{n:"BrtBeginSXCondFmt",f:t},559:{n:"BrtEndSXCondFmt",f:t},560:{n:"BrtBeginSXCondFmts",f:t},561:{n:"BrtEndSXCondFmts",f:t},562:{n:"BrtBkHim",f:t},564:{n:"BrtColor",f:t},565:{n:"BrtBeginIndexedColors",f:t},566:{n:"BrtEndIndexedColors",f:t},569:{n:"BrtBeginMRUColors",f:t},570:{n:"BrtEndMRUColors",f:t},572:{n:"BrtMRUColor",f:t},573:{n:"BrtBeginDVals",f:t},574:{n:"BrtEndDVals",f:t},577:{n:"BrtSupNameStart",f:t},578:{n:"BrtSupNameValueStart",f:t},579:{n:"BrtSupNameValueEnd",f:t},580:{n:"BrtSupNameNum",f:t},581:{n:"BrtSupNameErr",f:t},582:{n:"BrtSupNameSt",f:t},583:{n:"BrtSupNameNil",f:t},584:{n:"BrtSupNameBool",f:t},585:{n:"BrtSupNameFmla",f:t},586:{n:"BrtSupNameBits",f:t},587:{n:"BrtSupNameEnd",f:t},588:{n:"BrtEndSupBook",f:t},589:{n:"BrtCellSmartTagProperty",f:t},590:{n:"BrtBeginCellSmartTag",f:t},591:{n:"BrtEndCellSmartTag",f:t},592:{n:"BrtBeginCellSmartTags",f:t},593:{n:"BrtEndCellSmartTags",f:t},594:{n:"BrtBeginSmartTags",f:t},595:{n:"BrtEndSmartTags",f:t},596:{n:"BrtSmartTagType",f:t},597:{n:"BrtBeginSmartTagTypes",f:t},598:{n:"BrtEndSmartTagTypes",f:t},599:{n:"BrtBeginSXFilters",f:t},600:{n:"BrtEndSXFilters",f:t},601:{n:"BrtBeginSXFILTER",f:t},602:{n:"BrtEndSXFilter",f:t},603:{n:"BrtBeginFills",f:t},604:{n:"BrtEndFills",f:t},605:{n:"BrtBeginCellWatches",f:t},606:{n:"BrtEndCellWatches",f:t},607:{n:"BrtCellWatch",f:t},608:{n:"BrtBeginCRErrs",f:t},609:{n:"BrtEndCRErrs",f:t},610:{n:"BrtCrashRecErr",f:t},611:{n:"BrtBeginFonts",f:t},612:{n:"BrtEndFonts",f:t},613:{n:"BrtBeginBorders",f:t},614:{n:"BrtEndBorders",f:t},615:{n:"BrtBeginFmts",f:t},616:{n:"BrtEndFmts",f:t},617:{n:"BrtBeginCellXFs",f:t},618:{n:"BrtEndCellXFs",f:t},619:{n:"BrtBeginStyles",f:t},620:{n:"BrtEndStyles",f:t},625:{n:"BrtBigName",f:t},626:{n:"BrtBeginCellStyleXFs",f:t},627:{n:"BrtEndCellStyleXFs",f:t},628:{n:"BrtBeginComments",f:t},629:{n:"BrtEndComments",f:t},630:{n:"BrtBeginCommentAuthors",f:t},631:{n:"BrtEndCommentAuthors",f:t},632:{n:"BrtCommentAuthor",f:rc},633:{n:"BrtBeginCommentList",f:t},634:{n:"BrtEndCommentList",f:t},635:{n:"BrtBeginComment",f:gvt},636:{n:"BrtEndComment",f:t},637:{n:"BrtCommentText",f:uc},638:{n:"BrtBeginOleObjects",f:t},639:{n:"BrtOleObject",f:t},640:{n:"BrtEndOleObjects",f:t},641:{n:"BrtBeginSxrules",f:t},642:{n:"BrtEndSxRules",f:t},643:{n:"BrtBeginActiveXControls",f:t},644:{n:"BrtActiveX",f:t},645:{n:"BrtEndActiveXControls",f:t},646:{n:"BrtBeginPCDSDTCEMembersSortBy",f:t},648:{n:"BrtBeginCellIgnoreECs",f:t},649:{n:"BrtCellIgnoreEC",f:t},650:{n:"BrtEndCellIgnoreECs",f:t},651:{n:"BrtCsProp",f:t},652:{n:"BrtCsPageSetup",f:t},653:{n:"BrtBeginUserCsViews",f:t},654:{n:"BrtEndUserCsViews",f:t},655:{n:"BrtBeginUserCsView",f:t},656:{n:"BrtEndUserCsView",f:t},657:{n:"BrtBeginPcdSFCIEntries",f:t},658:{n:"BrtEndPCDSFCIEntries",f:t},659:{n:"BrtPCDSFCIEntry",f:t},660:{n:"BrtBeginListParts",f:t},661:{n:"BrtListPart",f:t},662:{n:"BrtEndListParts",f:t},663:{n:"BrtSheetCalcProp",f:t},664:{n:"BrtBeginFnGroup",f:t},665:{n:"BrtFnGroup",f:t},666:{n:"BrtEndFnGroup",f:t},667:{n:"BrtSupAddin",f:t},668:{n:"BrtSXTDMPOrder",f:t},669:{n:"BrtCsProtection",f:t},671:{n:"BrtBeginWsSortMap",f:t},672:{n:"BrtEndWsSortMap",f:t},673:{n:"BrtBeginRRSort",f:t},674:{n:"BrtEndRRSort",f:t},675:{n:"BrtRRSortItem",f:t},676:{n:"BrtFileSharingIso",f:t},677:{n:"BrtBookProtectionIso",f:t},678:{n:"BrtSheetProtectionIso",f:t},679:{n:"BrtCsProtectionIso",f:t},680:{n:"BrtRangeProtectionIso",f:t},1024:{n:"BrtRwDescent",f:t},1025:{n:"BrtKnownFonts",f:t},1026:{n:"BrtBeginSXTupleSet",f:t},1027:{n:"BrtEndSXTupleSet",f:t},1028:{n:"BrtBeginSXTupleSetHeader",f:t},1029:{n:"BrtEndSXTupleSetHeader",f:t},1030:{n:"BrtSXTupleSetHeaderItem",f:t},1031:{n:"BrtBeginSXTupleSetData",f:t},1032:{n:"BrtEndSXTupleSetData",f:t},1033:{n:"BrtBeginSXTupleSetRow",f:t},1034:{n:"BrtEndSXTupleSetRow",f:t},1035:{n:"BrtSXTupleSetRowItem",f:t},1036:{n:"BrtNameExt",f:t},1037:{n:"BrtPCDH14",f:t},1038:{n:"BrtBeginPCDCalcMem14",f:t},1039:{n:"BrtEndPCDCalcMem14",f:t},1040:{n:"BrtSXTH14",f:t},1041:{n:"BrtBeginSparklineGroup",f:t},1042:{n:"BrtEndSparklineGroup",f:t},1043:{n:"BrtSparkline",f:t},1044:{n:"BrtSXDI14",f:t},1045:{n:"BrtWsFmtInfoEx14",f:t},1046:{n:"BrtBeginConditionalFormatting14",f:t},1047:{n:"BrtEndConditionalFormatting14",f:t},1048:{n:"BrtBeginCFRule14",f:t},1049:{n:"BrtEndCFRule14",f:t},1050:{n:"BrtCFVO14",f:t},1051:{n:"BrtBeginDatabar14",f:t},1052:{n:"BrtBeginIconSet14",f:t},1053:{n:"BrtDVal14",f:t},1054:{n:"BrtBeginDVals14",f:t},1055:{n:"BrtColor14",f:t},1056:{n:"BrtBeginSparklines",f:t},1057:{n:"BrtEndSparklines",f:t},1058:{n:"BrtBeginSparklineGroups",f:t},1059:{n:"BrtEndSparklineGroups",f:t},1061:{n:"BrtSXVD14",f:t},1062:{n:"BrtBeginSxview14",f:t},1063:{n:"BrtEndSxview14",f:t},1066:{n:"BrtBeginPCD14",f:t},1067:{n:"BrtEndPCD14",f:t},1068:{n:"BrtBeginExtConn14",f:t},1069:{n:"BrtEndExtConn14",f:t},1070:{n:"BrtBeginSlicerCacheIDs",f:t},1071:{n:"BrtEndSlicerCacheIDs",f:t},1072:{n:"BrtBeginSlicerCacheID",f:t},1073:{n:"BrtEndSlicerCacheID",f:t},1075:{n:"BrtBeginSlicerCache",f:t},1076:{n:"BrtEndSlicerCache",f:t},1077:{n:"BrtBeginSlicerCacheDef",f:t},1078:{n:"BrtEndSlicerCacheDef",f:t},1079:{n:"BrtBeginSlicersEx",f:t},1080:{n:"BrtEndSlicersEx",f:t},1081:{n:"BrtBeginSlicerEx",f:t},1082:{n:"BrtEndSlicerEx",f:t},1083:{n:"BrtBeginSlicer",f:t},1084:{n:"BrtEndSlicer",f:t},1085:{n:"BrtSlicerCachePivotTables",f:t},1086:{n:"BrtBeginSlicerCacheOlapImpl",f:t},1087:{n:"BrtEndSlicerCacheOlapImpl",f:t},1088:{n:"BrtBeginSlicerCacheLevelsData",f:t},1089:{n:"BrtEndSlicerCacheLevelsData",f:t},1090:{n:"BrtBeginSlicerCacheLevelData",f:t},1091:{n:"BrtEndSlicerCacheLevelData",f:t},1092:{n:"BrtBeginSlicerCacheSiRanges",f:t},1093:{n:"BrtEndSlicerCacheSiRanges",f:t},1094:{n:"BrtBeginSlicerCacheSiRange",f:t},1095:{n:"BrtEndSlicerCacheSiRange",f:t},1096:{n:"BrtSlicerCacheOlapItem",f:t},1097:{n:"BrtBeginSlicerCacheSelections",f:t},1098:{n:"BrtSlicerCacheSelection",f:t},1099:{n:"BrtEndSlicerCacheSelections",f:t},1100:{n:"BrtBeginSlicerCacheNative",f:t},1101:{n:"BrtEndSlicerCacheNative",f:t},1102:{n:"BrtSlicerCacheNativeItem",f:t},1103:{n:"BrtRangeProtection14",f:t},1104:{n:"BrtRangeProtectionIso14",f:t},1105:{n:"BrtCellIgnoreEC14",f:t},1111:{n:"BrtList14",f:t},1112:{n:"BrtCFIcon",f:t},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs",f:t},1114:{n:"BrtEndSlicerCachesPivotCacheIDs",f:t},1115:{n:"BrtBeginSlicers",f:t},1116:{n:"BrtEndSlicers",f:t},1117:{n:"BrtWbProp14",f:t},1118:{n:"BrtBeginSXEdit",f:t},1119:{n:"BrtEndSXEdit",f:t},1120:{n:"BrtBeginSXEdits",f:t},1121:{n:"BrtEndSXEdits",f:t},1122:{n:"BrtBeginSXChange",f:t},1123:{n:"BrtEndSXChange",f:t},1124:{n:"BrtBeginSXChanges",f:t},1125:{n:"BrtEndSXChanges",f:t},1126:{n:"BrtSXTupleItems",f:t},1128:{n:"BrtBeginSlicerStyle",f:t},1129:{n:"BrtEndSlicerStyle",f:t},1130:{n:"BrtSlicerStyleElement",f:t},1131:{n:"BrtBeginStyleSheetExt14",f:t},1132:{n:"BrtEndStyleSheetExt14",f:t},1133:{n:"BrtBeginSlicerCachesPivotCacheID",f:t},1134:{n:"BrtEndSlicerCachesPivotCacheID",f:t},1135:{n:"BrtBeginConditionalFormattings",f:t},1136:{n:"BrtEndConditionalFormattings",f:t},1137:{n:"BrtBeginPCDCalcMemExt",f:t},1138:{n:"BrtEndPCDCalcMemExt",f:t},1139:{n:"BrtBeginPCDCalcMemsExt",f:t},1140:{n:"BrtEndPCDCalcMemsExt",f:t},1141:{n:"BrtPCDField14",f:t},1142:{n:"BrtBeginSlicerStyles",f:t},1143:{n:"BrtEndSlicerStyles",f:t},1144:{n:"BrtBeginSlicerStyleElements",f:t},1145:{n:"BrtEndSlicerStyleElements",f:t},1146:{n:"BrtCFRuleExt",f:t},1147:{n:"BrtBeginSXCondFmt14",f:t},1148:{n:"BrtEndSXCondFmt14",f:t},1149:{n:"BrtBeginSXCondFmts14",f:t},1150:{n:"BrtEndSXCondFmts14",f:t},1152:{n:"BrtBeginSortCond14",f:t},1153:{n:"BrtEndSortCond14",f:t},1154:{n:"BrtEndDVals14",f:t},1155:{n:"BrtEndIconSet14",f:t},1156:{n:"BrtEndDatabar14",f:t},1157:{n:"BrtBeginColorScale14",f:t},1158:{n:"BrtEndColorScale14",f:t},1159:{n:"BrtBeginSxrules14",f:t},1160:{n:"BrtEndSxrules14",f:t},1161:{n:"BrtBeginPRule14",f:t},1162:{n:"BrtEndPRule14",f:t},1163:{n:"BrtBeginPRFilters14",f:t},1164:{n:"BrtEndPRFilters14",f:t},1165:{n:"BrtBeginPRFilter14",f:t},1166:{n:"BrtEndPRFilter14",f:t},1167:{n:"BrtBeginPRFItem14",f:t},1168:{n:"BrtEndPRFItem14",f:t},1169:{n:"BrtBeginCellIgnoreECs14",f:t},1170:{n:"BrtEndCellIgnoreECs14",f:t},1171:{n:"BrtDxf14",f:t},1172:{n:"BrtBeginDxF14s",f:t},1173:{n:"BrtEndDxf14s",f:t},1177:{n:"BrtFilter14",f:t},1178:{n:"BrtBeginCustomFilters14",f:t},1180:{n:"BrtCustomFilter14",f:t},1181:{n:"BrtIconFilter14",f:t},1182:{n:"BrtPivotCacheConnectionName",f:t},2048:{n:"BrtBeginDecoupledPivotCacheIDs",f:t},2049:{n:"BrtEndDecoupledPivotCacheIDs",f:t},2050:{n:"BrtDecoupledPivotCacheID",f:t},2051:{n:"BrtBeginPivotTableRefs",f:t},2052:{n:"BrtEndPivotTableRefs",f:t},2053:{n:"BrtPivotTableRef",f:t},2054:{n:"BrtSlicerCacheBookPivotTables",f:t},2055:{n:"BrtBeginSxvcells",f:t},2056:{n:"BrtEndSxvcells",f:t},2057:{n:"BrtBeginSxRow",f:t},2058:{n:"BrtEndSxRow",f:t},2060:{n:"BrtPcdCalcMem15",f:t},2067:{n:"BrtQsi15",f:t},2068:{n:"BrtBeginWebExtensions",f:t},2069:{n:"BrtEndWebExtensions",f:t},2070:{n:"BrtWebExtension",f:t},2071:{n:"BrtAbsPath15",f:t},2072:{n:"BrtBeginPivotTableUISettings",f:t},2073:{n:"BrtEndPivotTableUISettings",f:t},2075:{n:"BrtTableSlicerCacheIDs",f:t},2076:{n:"BrtTableSlicerCacheID",f:t},2077:{n:"BrtBeginTableSlicerCache",f:t},2078:{n:"BrtEndTableSlicerCache",f:t},2079:{n:"BrtSxFilter15",f:t},2080:{n:"BrtBeginTimelineCachePivotCacheIDs",f:t},2081:{n:"BrtEndTimelineCachePivotCacheIDs",f:t},2082:{n:"BrtTimelineCachePivotCacheID",f:t},2083:{n:"BrtBeginTimelineCacheIDs",f:t},2084:{n:"BrtEndTimelineCacheIDs",f:t},2085:{n:"BrtBeginTimelineCacheID",f:t},2086:{n:"BrtEndTimelineCacheID",f:t},2087:{n:"BrtBeginTimelinesEx",f:t},2088:{n:"BrtEndTimelinesEx",f:t},2089:{n:"BrtBeginTimelineEx",f:t},2090:{n:"BrtEndTimelineEx",f:t},2091:{n:"BrtWorkBookPr15",f:t},2092:{n:"BrtPCDH15",f:t},2093:{n:"BrtBeginTimelineStyle",f:t},2094:{n:"BrtEndTimelineStyle",f:t},2095:{n:"BrtTimelineStyleElement",f:t},2096:{n:"BrtBeginTimelineStylesheetExt15",f:t},2097:{n:"BrtEndTimelineStylesheetExt15",f:t},2098:{n:"BrtBeginTimelineStyles",f:t},2099:{n:"BrtEndTimelineStyles",f:t},2100:{n:"BrtBeginTimelineStyleElements",f:t},2101:{n:"BrtEndTimelineStyleElements",f:t},2102:{n:"BrtDxf15",f:t},2103:{n:"BrtBeginDxfs15",f:t},2104:{n:"brtEndDxfs15",f:t},2105:{n:"BrtSlicerCacheHideItemsWithNoData",f:t},2106:{n:"BrtBeginItemUniqueNames",f:t},2107:{n:"BrtEndItemUniqueNames",f:t},2108:{n:"BrtItemUniqueName",f:t},2109:{n:"BrtBeginExtConn15",f:t},2110:{n:"BrtEndExtConn15",f:t},2111:{n:"BrtBeginOledbPr15",f:t},2112:{n:"BrtEndOledbPr15",f:t},2113:{n:"BrtBeginDataFeedPr15",f:t},2114:{n:"BrtEndDataFeedPr15",f:t},2115:{n:"BrtTextPr15",f:t},2116:{n:"BrtRangePr15",f:t},2117:{n:"BrtDbCommand15",f:t},2118:{n:"BrtBeginDbTables15",f:t},2119:{n:"BrtEndDbTables15",f:t},2120:{n:"BrtDbTable15",f:t},2121:{n:"BrtBeginDataModel",f:t},2122:{n:"BrtEndDataModel",f:t},2123:{n:"BrtBeginModelTables",f:t},2124:{n:"BrtEndModelTables",f:t},2125:{n:"BrtModelTable",f:t},2126:{n:"BrtBeginModelRelationships",f:t},2127:{n:"BrtEndModelRelationships",f:t},2128:{n:"BrtModelRelationship",f:t},2129:{n:"BrtBeginECTxtWiz15",f:t},2130:{n:"BrtEndECTxtWiz15",f:t},2131:{n:"BrtBeginECTWFldInfoLst15",f:t},2132:{n:"BrtEndECTWFldInfoLst15",f:t},2133:{n:"BrtBeginECTWFldInfo15",f:t},2134:{n:"BrtFieldListActiveItem",f:t},2135:{n:"BrtPivotCacheIdVersion",f:t},2136:{n:"BrtSXDI15",f:t},65535:{n:"",f:t}},ggt=ua(su,"n"),re={3:{n:"BIFF2NUM",f:gct},4:{n:"BIFF2STR",f:dct},6:{n:"Formula",f:yc},9:{n:"BOF",f:fh},10:{n:"EOF",f:tk},12:{n:"CalcCount",f:hb},13:{n:"CalcMode",f:ab},14:{n:"CalcPrecision",f:vb},15:{n:"CalcRefMode",f:yb},16:{n:"CalcDelta",f:cb},17:{n:"CalcIter",f:lb},18:{n:"Protect",f:gk},19:{n:"Password",f:yk},20:{n:"Header",f:sk},21:{n:"Footer",f:fk},23:{n:"ExternSheet",f:hw},24:{n:"Lbl",f:sw},25:{n:"WinProtect",f:cd},26:{n:"VerticalPageBreaks",f:ad},27:{n:"HorizontalPageBreaks",f:vd},28:{n:"Note",f:yw},29:{n:"Selection",f:yd},34:{n:"Date1904",f:kb},35:{n:"ExternName",f:sh},38:{n:"LeftMargin",f:lk},39:{n:"RightMargin",f:td},40:{n:"TopMargin",f:od},41:{n:"BottomMargin",f:ob},42:{n:"PrintRowCol",f:wk},43:{n:"PrintGrid",f:pk},47:{n:"FilePass",f:tat},49:{n:"Font",f:kp},51:{n:"PrintSize",f:bk},60:{n:"Continue",f:pd},61:{n:"Window1",f:bp},64:{n:"Backup",f:fb},65:{n:"Pane",f:wd},66:{n:"CodePage",f:wb},77:{n:"Pls",f:bd},80:{n:"DCon",f:kd},81:{n:"DConRef",f:dd},82:{n:"DConName",f:gd},85:{n:"DefColWidth",f:db},89:{n:"XCT",f:ng},90:{n:"CRN",f:tg},91:{n:"FileSharing",f:ig},92:{n:"WriteAccess",f:hp},93:{n:"Obj",f:ww},94:{n:"Uncalced",f:rg},95:{n:"CalcSaveRecalc",f:pb},96:{n:"Template",f:ug},97:{n:"Intl",f:fg},99:{n:"ObjProtect",f:vk},125:{n:"ColInfo",f:rb},128:{n:"Guts",f:uw},129:{n:"WsBool",f:eg},130:{n:"GridSet",f:ek},131:{n:"HCenter",f:ok},132:{n:"VCenter",f:hd},133:{n:"BoundSheet8",f:cp},134:{n:"WriteProtect",f:ld},140:{n:"Country",f:kw},141:{n:"HideObj",f:hk},144:{n:"Sort",f:og},146:{n:"Palette",f:gw},151:{n:"Sync",f:sg},152:{n:"LPr",f:hg},153:{n:"DxGCol",f:cg},154:{n:"FnGroupName",f:lg},155:{n:"FilterMode",f:ag},156:{n:"BuiltInFnGroupCount",f:sb},157:{n:"AutoFilterInfo",f:vg},158:{n:"AutoFilter",f:yg},160:{n:"Scl",f:ud},161:{n:"Setup",f:pg},174:{n:"ScenMan",f:wg},175:{n:"SCENARIO",f:bg},176:{n:"SxView",f:kg},177:{n:"Sxvd",f:dg},178:{n:"SXVI",f:gg},180:{n:"SxIvd",f:nn},181:{n:"SXLI",f:tn},182:{n:"SXPI",f:rn},184:{n:"DocRoute",f:un},185:{n:"RecipName",f:fn},189:{n:"MulRk",f:iw},190:{n:"MulBlank",f:en},193:{n:"Mms",f:ak},197:{n:"SXDI",f:on},198:{n:"SXDB",f:sn},199:{n:"SXFDB",f:hn},200:{n:"SXDBB",f:cn},201:{n:"SXNum",f:ln},202:{n:"SxBool",f:ed},203:{n:"SxErr",f:an},204:{n:"SXInt",f:vn},205:{n:"SXString",f:yn},206:{n:"SXDtr",f:pn},207:{n:"SxNil",f:wn},208:{n:"SXTbl",f:bn},209:{n:"SXTBRGIITM",f:kn},210:{n:"SxTbpg",f:dn},211:{n:"ObProj",f:gn},213:{n:"SXStreamID",f:ntt},215:{n:"DBCell",f:ttt},216:{n:"SXRng",f:itt},217:{n:"SxIsxoper",f:rtt},218:{n:"BookBool",f:utt},220:{n:"DbOrParamQry",f:ftt},221:{n:"ScenarioProtect",f:rd},222:{n:"OleObjectSize",f:ett},224:{n:"XF",f:rw},225:{n:"InterfaceHdr",f:sp},226:{n:"InterfaceEnd",f:ck},227:{n:"SXVS",f:ott},229:{n:"MergeCells",f:pw},233:{n:"BkHim",f:stt},235:{n:"MsoDrawingGroup",f:htt},236:{n:"MsoDrawing",f:ctt},237:{n:"MsoDrawingSelection",f:ltt},239:{n:"PhoneticInfo",f:att},240:{n:"SxRule",f:vtt},241:{n:"SXEx",f:ytt},242:{n:"SxFilt",f:ptt},244:{n:"SxDXF",f:wtt},245:{n:"SxItm",f:btt},246:{n:"SxName",f:ktt},247:{n:"SxSelect",f:dtt},248:{n:"SXPair",f:gtt},249:{n:"SxFmla",f:nit},251:{n:"SxFormat",f:tit},252:{n:"SST",f:lp},253:{n:"LabelSst",f:dp},255:{n:"ExtSST",f:ap},256:{n:"SXVDEx",f:iit},259:{n:"SXFormula",f:rit},290:{n:"SXDBEx",f:uit},311:{n:"RRDInsDel",f:fit},312:{n:"RRDHead",f:eit},315:{n:"RRDChgCell",f:oit},317:{n:"RRTabId",f:id},318:{n:"RRDRenSheet",f:sit},319:{n:"RRSort",f:hit},320:{n:"RRDMove",f:cit},330:{n:"RRFormat",f:lit},331:{n:"RRAutoFmt",f:ait},333:{n:"RRInsertSh",f:vit},334:{n:"RRDMoveBegin",f:yit},335:{n:"RRDMoveEnd",f:pit},336:{n:"RRDInsDelBegin",f:wit},337:{n:"RRDInsDelEnd",f:bit},338:{n:"RRDConflict",f:kit},339:{n:"RRDDefName",f:dit},340:{n:"RRDRstEtxp",f:git},351:{n:"LRng",f:nrt},352:{n:"UsesELFs",f:sd},353:{n:"DSF",f:gb},401:{n:"CUsr",f:trt},402:{n:"CbUsr",f:irt},403:{n:"UsrInfo",f:rrt},404:{n:"UsrExcl",f:urt},405:{n:"FileLock",f:frt},406:{n:"RRDInfo",f:ert},407:{n:"BCUsrs",f:ort},408:{n:"UsrChk",f:srt},425:{n:"UserBView",f:hrt},426:{n:"UserSViewBegin",f:crt},427:{n:"UserSViewEnd",f:lrt},428:{n:"RRDUserView",f:art},429:{n:"Qsi",f:vrt},430:{n:"SupBook",f:ow},431:{n:"Prot4Rev",f:kk},432:{n:"CondFmt",f:yrt},433:{n:"CF",f:prt},434:{n:"DVal",f:wrt},437:{n:"DConBin",f:brt},438:{n:"TxO",f:bw},439:{n:"RefreshAll",f:nd},440:{n:"HLink",f:hh},441:{n:"Lel",f:krt},442:{n:"CodeName",f:drt},443:{n:"SXFDBType",f:grt},444:{n:"Prot4RevPass",f:dk},445:{n:"ObNoMacros",f:nut},446:{n:"Dv",f:tut},448:{n:"Excel9File",f:ik},449:{n:"RecalcId",f:pp,r:2},450:{n:"EntExU2",f:nk},512:{n:"Dimensions",f:nw},513:{n:"Blank",f:eb},515:{n:"Number",f:ew},516:{n:"Label",f:oh},517:{n:"BoolErr",f:fw},519:{n:"String",f:fd},520:{n:"Row",f:vp},523:{n:"Index",f:iut},545:{n:"Array",f:lw},549:{n:"DefaultRowHeight",f:wp},566:{n:"Table",f:rut},574:{n:"Window2",f:ub},638:{n:"RK",f:tw},659:{n:"Style",f:tb},1048:{n:"BigName",f:uut},1054:{n:"Format",f:gp},1084:{n:"ContinueBigName",f:fut},1212:{n:"ShrFmla",f:cw},2048:{n:"HLinkTooltip",f:ch},2049:{n:"WebPub",f:eut},2050:{n:"QsiSXTag",f:sut},2051:{n:"DBQueryExt",f:hut},2052:{n:"ExtString",f:cut},2053:{n:"TxtQry",f:lut},2054:{n:"Qsir",f:aut},2055:{n:"Qsif",f:vut},2056:{n:"RRDTQSIF",f:yut},2057:{n:"BOF",f:fh},2058:{n:"OleDbConn",f:put},2059:{n:"WOpt",f:wut},2060:{n:"SXViewEx",f:but},2061:{n:"SXTH",f:kut},2062:{n:"SXPIEx",f:dut},2063:{n:"SXVDTEx",f:gut},2064:{n:"SXViewEx9",f:nft},2066:{n:"ContinueFrt",f:tft},2067:{n:"RealTimeData",f:ift},2128:{n:"ChartFrtInfo",f:rft},2129:{n:"FrtWrapper",f:uft},2130:{n:"StartBlock",f:fft},2131:{n:"EndBlock",f:eft},2132:{n:"StartObject",f:oft},2133:{n:"EndObject",f:sft},2134:{n:"CatLab",f:hft},2135:{n:"YMult",f:cft},2136:{n:"SXViewLink",f:lft},2137:{n:"PivotChartBits",f:aft},2138:{n:"FrtFontList",f:vft},2146:{n:"SheetExt",f:yft},2147:{n:"BookExt",f:pft,r:12},2148:{n:"SXAddl",f:wft},2149:{n:"CrErr",f:bft},2150:{n:"HFPicture",f:kft},2151:{n:"FeatHdr",f:rk},2152:{n:"Feat",f:dft},2154:{n:"DataLabExt",f:gft},2155:{n:"DataLabExtContents",f:net},2156:{n:"CellWatch",f:tet},2161:{n:"FeatHdr11",f:iet},2162:{n:"Feature11",f:ret},2164:{n:"DropDownObjIds",f:uet},2165:{n:"ContinueFrt11",f:fet},2166:{n:"DConn",f:eet},2167:{n:"List12",f:oet},2168:{n:"Feature12",f:set},2169:{n:"CondFmt12",f:het},2170:{n:"CF12",f:cet},2171:{n:"CFEx",f:aet},2172:{n:"XFCRC",f:nb,r:12},2173:{n:"XFExt",f:avt,r:12},2174:{n:"AutoFilter12",f:vet},2175:{n:"ContinueFrt12",f:yet},2180:{n:"MDTInfo",f:pet},2181:{n:"MDXStr",f:wet},2182:{n:"MDXTuple",f:bet},2183:{n:"MDXSet",f:ket},2184:{n:"MDXProp",f:det},2185:{n:"MDXKPI",f:get},2186:{n:"MDB",f:not},2187:{n:"PLV",f:tot},2188:{n:"Compat12",f:bb,r:12},2189:{n:"DXF",f:iot},2190:{n:"TableStyles",f:rot,r:12},2191:{n:"TableStyle",f:uot},2192:{n:"TableStyleElement",f:fot},2194:{n:"StyleExt",f:ib},2195:{n:"NamePublish",f:eot},2196:{n:"NameCmt",f:oot},2197:{n:"SortData",f:sot},2198:{n:"Theme",f:evt,r:12},2199:{n:"GUIDTypeLib",f:hot},2200:{n:"FnGrp12",f:cot},2201:{n:"NameFnGrp12",f:lot},2202:{n:"MTRSettings",f:aw,r:12},2203:{n:"CompressPictures",f:eh},2204:{n:"HeaderFooter",f:aot},2205:{n:"CrtLayout12",f:vot},2206:{n:"CrtMlFrt",f:yot},2207:{n:"CrtMlFrtContinue",f:pot},2211:{n:"ForceFullCalculation",f:yp},2212:{n:"ShapePropsStream",f:wot},2213:{n:"TextPropsStream",f:bot},2214:{n:"RichTextStream",f:kot},2215:{n:"CrtLayout12A",f:dot},4097:{n:"Units",f:got},4098:{n:"Chart",f:nst},4099:{n:"Series",f:tst},4102:{n:"DataFormat",f:ist},4103:{n:"LineFormat",f:rst},4105:{n:"MarkerFormat",f:ust},4106:{n:"AreaFormat",f:fst},4107:{n:"PieFormat",f:est},4108:{n:"AttachedLabel",f:ost},4109:{n:"SeriesText",f:sst},4116:{n:"ChartFormat",f:hst},4117:{n:"Legend",f:cst},4118:{n:"SeriesList",f:lst},4119:{n:"Bar",f:ast},4120:{n:"Line",f:vst},4121:{n:"Pie",f:yst},4122:{n:"Area",f:pst},4123:{n:"Scatter",f:wst},4124:{n:"CrtLine",f:bst},4125:{n:"Axis",f:kst},4126:{n:"Tick",f:dst},4127:{n:"ValueRange",f:gst},4128:{n:"CatSerRange",f:nht},4129:{n:"AxisLine",f:tht},4130:{n:"CrtLink",f:iht},4132:{n:"DefaultText",f:rht},4133:{n:"Text",f:uht},4134:{n:"FontX",f:uk},4135:{n:"ObjectLink",f:fht},4146:{n:"Frame",f:eht},4147:{n:"Begin",f:oht},4148:{n:"End",f:sht},4149:{n:"PlotArea",f:hht},4154:{n:"Chart3d",f:cht},4156:{n:"PicF",f:lht},4157:{n:"DropBar",f:aht},4158:{n:"Radar",f:vht},4159:{n:"Surf",f:yht},4160:{n:"RadarArea",f:pht},4161:{n:"AxisParent",f:wht},4163:{n:"LegendException",f:bht},4164:{n:"ShtProps",f:kht},4165:{n:"SerToCrt",f:dht},4166:{n:"AxesUsed",f:ght},4168:{n:"SBaseRef",f:nct},4170:{n:"SerParent",f:tct},4171:{n:"SerAuxTrend",f:ict},4174:{n:"IFmtRecord",f:rct},4175:{n:"Pos",f:uct},4176:{n:"AlRuns",f:fct},4177:{n:"BRAI",f:ect},4187:{n:"SerAuxErrBar",f:oct},4188:{n:"ClrtClient",f:dw},4189:{n:"SerFmt",f:sct},4191:{n:"Chart3DBarShape",f:hct},4192:{n:"Fbi",f:cct},4193:{n:"BopPop",f:lct},4194:{n:"AxcExt",f:act},4195:{n:"Dat",f:vct},4196:{n:"PlotGrowth",f:yct},4197:{n:"SIIndex",f:pct},4198:{n:"GelFrame",f:wct},4199:{n:"BopPopCustom",f:bct},4200:{n:"Fbi2",f:kct},22:{n:"ExternCount",f:t},126:{n:"RK",f:t},127:{n:"ImData",f:t},135:{n:"Addin",f:t},136:{n:"Edg",f:t},137:{n:"Pub",f:t},145:{n:"Sub",f:t},148:{n:"LHRecord",f:t},149:{n:"LHNGraph",f:t},150:{n:"Sound",f:t},169:{n:"CoordList",f:t},171:{n:"GCW",f:t},188:{n:"ShrFmla",f:t},194:{n:"AddMenu",f:t},195:{n:"DelMenu",f:t},214:{n:"RString",f:t},223:{n:"UDDesc",f:t},234:{n:"TabIdConf",f:t},354:{n:"XL5Modify",f:t},421:{n:"FileSharing2",f:t},536:{n:"Name",f:t},547:{n:"ExternName",f:sh},561:{n:"Font",f:t},1030:{n:"Formula",f:yc},2157:{n:"FeatInfo",f:t},2163:{n:"FeatInfo11",f:t},2177:{n:"SXAddl12",f:t},2240:{n:"AutoWebPub",f:t},2241:{n:"ListObj",f:t},2242:{n:"ListField",f:t},2243:{n:"ListDV",f:t},2244:{n:"ListCondFmt",f:t},2245:{n:"ListCF",f:t},2246:{n:"FMQry",f:t},2247:{n:"FMSQry",f:t},2248:{n:"PLV",f:t},2249:{n:"LnExt",f:t},2250:{n:"MkrExt",f:t},2251:{n:"CrtCoopt",f:t},0:{}};hu=ll([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]]);al=ll([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["WTF",!1]]);vl=function(n){return n.substr(-1)!="/"};lnt=fe;oe={encode_col:lt,encode_row:ct,encode_cell:s,encode_range:g,decode_col:na,decode_row:dl,split_cell:ia,decode_cell:wi,decode_range:hnt,format_cell:cu,get_formulae:ee,make_csv:fe,make_json:ue,make_formulae:ee,sheet_to_csv:fe,sheet_to_json:ue,sheet_to_formulae:ee,sheet_to_row_object_array:cnt};n.parse_xlscfb=ie;n.parse_zip=yl;n.read=pl;n.readFile=wl;n.readFileSync=wl;n.write=bl;n.writeFile=kl;n.writeFileSync=kl;n.utils=oe;n.CFB=er;n.SSF=i}(typeof exports!="undefined"?exports:XLSX);XLS=XLSX,function(n){var t={init:function(i){var r=n.extend({items:1,itemsOnPage:1,pages:0,displayedPages:5,edges:2,currentPage:0,hrefTextPrefix:"#page-",hrefTextSuffix:"",prevText:"Prev",nextText:"Next",firstText:"First",lastText:"Last",ellipseText:"&hellip;",ellipsePageSet:!0,cssStyle:"light-theme",listStyle:"",labelMap:[],selectOnClick:!0,nextAtFront:!1,invertPageOrder:!1,useStartEdge:!0,useEndEdge:!0,iblnRTL:!1,iblnHidePages:ns.iblnHidePagesFromGridPaging,iblnImages:ns.iblnImagesForPaging,idomInput:null,onPageClick:function(){},onInit:function(){}},i||{}),u=this;return r.pages=r.pages?r.pages:Math.ceil(r.items/r.itemsOnPage)?Math.ceil(r.items/r.itemsOnPage):1,r.currentPage=r.currentPage?r.currentPage-1:r.invertPageOrder?r.pages-1:0,r.halfDisplayed=r.displayedPages/2,this.each(function(){u.addClass(r.cssStyle+" simple-pagination").data("pagination",r);t._draw.call(u)}),r.onInit(),this},selectPage:function(n){return t._selectPage.call(this,n-1),this},prevPage:function(){var n=this.data("pagination");return n.invertPageOrder?n.currentPage<n.pages-1&&t._selectPage.call(this,n.currentPage+1):n.currentPage>0&&t._selectPage.call(this,n.currentPage-1),this},nextPage:function(){var n=this.data("pagination");return n.invertPageOrder?n.currentPage>0&&t._selectPage.call(this,n.currentPage-1):n.currentPage<n.pages-1&&t._selectPage.call(this,n.currentPage+1),this},getPagesCount:function(){return this.data("pagination").pages},setPagesCount:function(n){this.data("pagination").pages=n},getCurrentPage:function(){return this.data("pagination").currentPage+1},destroy:function(){return this.empty(),this},drawPage:function(n){var i=this.data("pagination");return i.currentPage=n-1,this.data("pagination",i),t._draw.call(this),this},redraw:function(){return t._draw.call(this),this},disable:function(){var n=this.data("pagination");return n.disabled=!0,this.data("pagination",n),t._draw.call(this),this},enable:function(){var n=this.data("pagination");return n.disabled=!1,this.data("pagination",n),t._draw.call(this),this},updateItems:function(n){var i=this.data("pagination");i.items=n;i.pages=t._getPages(i);this.data("pagination",i);t._draw.call(this)},updateItemsOnPage:function(n){var i=this.data("pagination");return i.itemsOnPage=n,i.pages=t._getPages(i),this.data("pagination",i),t._selectPage.call(this,0),this},getItemsOnPage:function(){return this.data("pagination").itemsOnPage},_draw:function(){var i=this.data("pagination"),u=t._getInterval(i),f,l,s,e,c,h,r,o;if(t.destroy.call(this),l=typeof this.prop=="function"?this.prop("tagName"):this.attr("tagName"),s=!1,e=l==="UL"?this:n(neo.htmlToElement("<ul"+(i.listStyle?' class="'+i.listStyle+'"':"")+"><\/ul>")).appendTo(this),i.prevText&&(t._appendItem.call(this,i.invertPageOrder?i.currentPage+1:i.currentPage-1,{text:i.iblnImages===!0?"":i.firstText,classes:"firstPage"}),t._appendItem.call(this,i.invertPageOrder?i.currentPage+1:i.currentPage-1,{text:i.iblnImages===!0?"":i.prevText,classes:"prev"})),i.nextText&&i.nextAtFront&&t._appendItem.call(this,i.invertPageOrder?i.currentPage-1:i.currentPage+1,{text:i.iblnImages===!0?"":i.nextText,classes:"next"}),i.invertPageOrder){if(u.end<i.pages&&i.edges>0){if(i.useStartEdge)for(c=Math.max(i.pages-i.edges,u.end),f=i.pages-1;f>=c;f--)t._appendItem.call(this,f);i.pages-i.edges>u.end&&i.pages-i.edges-u.end!=1?i.iblnHidePages===!0?s!==!0&&(r=neo.Clone(neo.elPagerEllipseHolder()),s=!0,r.querySelector(".span-ellipse-pages").innerHTML=i.pages,e[0].appendChild(r),i.idomInput=e[0].querySelector("li.ellipseholder"),o=i.idomInput.querySelector("input.ellipse-input-pageHolder"),o.value=i.currentPage+1,o.setAttribute("max",i.pages),o.setAttribute("value",i.currentPage+1),t._bindPagerInputEvent.call(this,n(i.idomInput),i.currentPage+1,i)):(r=neo.Clone(neo.elPagerEllipse),i.ellipseText!="&hellip;"&&(r.querySelector("span.ellipse").innerHTML=i.ellipseText),i.iblnRTL===!0?e[0].insertBefore(r,e[0].firstChild):e[0].appendChild(r)):i.pages-i.edges-u.end==1&&t._appendItem.call(this,u.end)}}else if(u.start>0&&i.edges>0){if(i.useStartEdge)for(h=Math.min(i.edges,u.start),f=0;f<h;f++)t._appendItem.call(this,f);i.edges<u.start&&u.start-i.edges!=1?i.iblnHidePages===!0?s!==!0&&(r=neo.Clone(neo.elPagerEllipseHolder()),s=!0,r.querySelector(".span-ellipse-pages").innerHTML=i.pages,e[0].appendChild(r),i.idomInput=e[0].querySelector("li.ellipseholder"),o=i.idomInput.querySelector("input.ellipse-input-pageHolder"),o.value=i.currentPage+1,o.setAttribute("max",i.pages),o.setAttribute("value",i.currentPage+1),t._bindPagerInputEvent.call(this,n(i.idomInput),i.currentPage+1,i)):(r=neo.Clone(neo.elPagerEllipse),i.ellipseText!="&hellip;"&&(r.querySelector("span.ellipse").innerHTML=i.ellipseText),i.iblnRTL===!0?e[0].insertBefore(r,e[0].firstChild):e[0].appendChild(r)):u.start-i.edges==1&&t._appendItem.call(this,i.edges)}if(i.invertPageOrder)for(f=u.end-1;f>=u.start;f--)t._appendItem.call(this,f);else for(f=u.start;f<u.end;f++)t._appendItem.call(this,f);if(i.invertPageOrder){if(u.start>0&&i.edges>0&&(i.edges<u.start&&u.start-i.edges!=1?i.iblnHidePages===!0?s!==!0&&(r=neo.Clone(neo.elPagerEllipseHolder()),s=!0,r.querySelector(".span-ellipse-pages").innerHTML=i.pages,e[0].appendChild(r),i.idomInput=e[0].querySelector("li.ellipseholder"),o=i.idomInput.querySelector("input.ellipse-input-pageHolder"),o.value=i.currentPage+1,o.setAttribute("max",i.pages),o.setAttribute("value",i.currentPage+1),t._bindPagerInputEvent.call(this,n(i.idomInput),val,i,$ellip)):(r,i.ellipseText!="&hellip;"&&(r.querySelector("span.ellipse").innerHTML=i.ellipseText),i.iblnRTL===!0?e[0].insertBefore(r,e[0].firstChild):e[0].appendChild(r)):u.start-i.edges==1&&t._appendItem.call(this,i.edges),i.useEndEdge))for(h=Math.min(i.edges,u.start),f=h-1;f>=0;f--)t._appendItem.call(this,f)}else if(u.end<i.pages&&i.edges>0&&(i.pages-i.edges>u.end&&i.pages-i.edges-u.end!=1?i.iblnHidePages===!0?s!==!0&&(r=neo.Clone(neo.elPagerEllipseHolder()),s=!0,r.querySelector(".span-ellipse-pages").innerHTML=i.pages,e[0].appendChild(r),i.idomInput=e[0].querySelector("li.ellipseholder"),o=i.idomInput.querySelector("input.ellipse-input-pageHolder"),o.value=i.currentPage+1,o.setAttribute("max",i.pages),o.setAttribute("value",i.currentPage+1),t._bindPagerInputEvent.call(this,n(i.idomInput),i.currentPage+1,i)):(r=neo.Clone(neo.elPagerEllipse),i.ellipseText!="&hellip;"&&(r.querySelector("span.ellipse").innerHTML=i.ellipseText),i.iblnRTL===!0?e[0].insertBefore(r,e[0].firstChild):e[0].appendChild(r)):i.pages-i.edges-u.end==1&&t._appendItem.call(this,u.end),i.useEndEdge))for(c=Math.max(i.pages-i.edges,u.end),f=c;f<i.pages;f++)t._appendItem.call(this,f);i.iblnHidePages===!0&&s!==!0&&(r=neo.Clone(neo.elPagerEllipseHolder()),s=!0,r.querySelector(".span-ellipse-pages").innerHTML=i.pages,e[0].appendChild(r),i.idomInput=e[0].querySelector("li.ellipseholder"),o=i.idomInput.querySelector("input.ellipse-input-pageHolder"),o.value=i.currentPage+1,o.setAttribute("max",i.pages),o.setAttribute("value",i.currentPage+1),t._bindPagerInputEvent.call(this,n(i.idomInput),i.currentPage+1,i));i.nextText&&!i.nextAtFront&&(t._appendItem.call(this,i.invertPageOrder?i.currentPage-1:i.currentPage+1,{text:i.iblnImages===!0?"":i.nextText,classes:"next"}),t._appendItem.call(this,i.invertPageOrder?i.currentPage-1:i.currentPage+1,{text:i.iblnImages===!0?"":i.lastText,classes:"lastPage"}));i.ellipsePageSet&&!i.disabled&&i.iblnHidePages!==!0&&t._ellipseClick.call(this,e)},_getPages:function(n){var t=Math.ceil(n.items/n.itemsOnPage);return t||1},_getInterval:function(n){return{start:Math.ceil(n.currentPage>n.halfDisplayed?Math.max(Math.min(n.currentPage-n.halfDisplayed,n.pages-n.displayedPages),0):0),end:Math.ceil(n.currentPage>n.halfDisplayed?Math.min(n.currentPage+n.halfDisplayed,n.pages):Math.min(n.displayedPages,n.pages))}},_appendItem:function(i,r){var o=this,u,h,f=o.data("pagination"),e=document.createElement("li"),c=o[0].querySelector("ul"),s;i=i<0?0:i<f.pages?i:f.pages-1;u={text:i+1,classes:""};f.labelMap.length&&f.labelMap[i]&&(u.text=f.labelMap[i]);u=n.extend(u,r||{});(f.iblnHidePages!==!0||u.classes==="prev"||u.classes==="next"||u.classes==="firstPage"||u.classes==="lastPage")&&(i==f.currentPage||f.disabled?(f.disabled||u.classes==="prev"||u.classes==="next"||u.classes==="firstPage"||u.classes==="lastPage"?e.classList.add("disabled"):e.classList.add("active"),h=neo.htmlToElement(['<span class="current">',u.text,"<\/span>"].join(""))):(s=i+1,u.classes==="firstPage"?s=1:u.classes==="lastPage"&&(s=f.pages),h=neo.htmlToElement(['<a data-page="',s,'" page-navigate="',f.hrefTextPrefix,s,f.hrefTextSuffix,'" class="page-link">',u.text,"<\/a>"].join("")),n(h).click(function(n){return t._selectPage.call(o,s-1,n)})),u.classes&&n(h).addClass(u.classes),e.appendChild(h),f.iblnRTL===!0?c!=null?c.insertBefore(e,c.firstChild):o[0].insertBefore(e,o[0].firstChild):c!=null?c.appendChild(e):o[0].appendChild(e))},_selectPage:function(n,i){var r=this.data("pagination"),u;r.currentPage=n;r.iblnHidePages===!0&&(u=r.idomInput.querySelector("input.ellipse-input-pageHolder"),u.value=r.currentPage+1,u.setAttribute("value",r.currentPage+1));r.selectOnClick&&t._draw.call(this);return r.onPageClick(n+1,i,this)},_bindPagerInputEvent:function(i,r,u,f){var o=this,e;o.data!=undefined&&o.data("pagination")!=undefined?e=o.data("pagination"):u!=undefined&&(e=u);i.find("input").off(".noeGridEvents").val(r).autoNumeric("init",{vMax:""+e.pages,vMin:"0",aNeg:"-",aSep:"",mDec:null}).on("click.noeGridEvents",function(n){n.stopPropagation()}).on("keydown.noeGridEvents",function(){var t=n(this).val(),i;if(t!==""&&(t=neoFormat.parseInt(t),i=neoFormat.parseInt(n(this).attr("max")),t==null||i==null||t<=0||t>i))return!1}).on("keyup.noeGridEvents",function(i){var r=n(this).val(),u;i.which===13&&r!==""?(r=neoFormat.parseInt(r),u=neoFormat.parseInt(n(this).attr("max")),(r==null||u==null||r<=0||r>u)&&(r=e.currentPage+1),t._selectPage.call(o,r-1)):i.which===27&&f!=undefined&&f.empty().html(e.ellipseText)}).on("blur.noeGridEvents",function(){var i=neoFormat.parseInt(n(this).val()),r=neoFormat.parseInt(n(this).attr("max"));return i==null||r==null||i<=0||i>r?(i=null,n(this).val(e.currentPage+1)):i===e.currentPage+1&&(i=null),i!==""&&i!=null&&t._selectPage.call(o,i-1),f!=undefined&&f.empty().html(e.ellipseText),!1});f!=undefined&&i.find("input").focus()},_ellipseClick:function(i){var f=this,r=this.data("pagination"),u=i.find(".ellipse");u.addClass("clickable").parent().removeClass("disabled");u.click(function(){if(!r.disable){var i=n(this),e=0,o="s-grid-pager-input";r.iblnRTL===!0?(e=(parseInt(i.parent().next().text(),10)||0)+1,o=[o," ","s-grid-rtl"].join("")):e=(parseInt(i.parent().prev().text(),10)||0)+1;i[0].innerHTML=['<input class="',o,'" type="text"  min="1" max="',r.pages,'" step="1" value="',e,'" />'].join("");t._bindPagerInputEvent.call(f,i,e,r,u)}return!1})}};n.fn.pagination=function(i){if(t[i]&&i.charAt(0)!="_")return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.pagination");else return t.init.apply(this,arguments)}}(jQuery);$.widget("sagitec.neoTags",{options:{list:[]},ClickCallback:function(){},_create:function(){this._refresh()},setClickCallback:function(n){this.ClickCallback=n},_refresh:function(){var t=this,n,i;$(t.element).html("");n=$("<ul class='tag-list'><\/ul>");$.each(t.options.list,function(i,r){var e="",o="",s,h,u,c,f;r.parentControl!=""&&(e=["parentControl='",r.parentControl,"'"].join(""));r.value!=undefined&&(o=["value='",r.value,"'"].join(""));i==0&&(s="<li><span class='filters'><b>Filter(s) :<\/b><\/span><\/li>",n.append($(s)));h=["<li ",e," ",o," controlid='",r.control,"'><span class='tagcaption'>",r.caption,"<\/span><a>","","<\/a><\/li>"].join("");u=$(h);u.find("a").text(r.valueText);n.append(u);i==t.options.list.length-1&&(c="<li '><span class='modifysearch' ><b><u>Modify Search<\/u><\/b> <\/span><\/li>",f=$(c),f.find("a").text("Modify Search"),n.append(f))});$(t.element).append(n);i=this;$(this.element).find("li").each(function(){$(this).click(function(){i.ClickCallback(this)});$(this).mouseover(function(){$(this).find(".tagcaption").show()});$(this).mouseout(function(){$(this).find(".tagcaption").hide()})})},clicked:function(){},setItems:function(n){this.options=n}});
/* @license 
 * jQuery.print, version 1.5.1
 *  (c) Sathvik Ponangi, Doers' Guild
 * Licence: CC-By (http://creativecommons.org/licenses/by/3.0/)
 *--------------------------------------------------------------------------*/
(function(n){"use strict";function i(t){var i=n("");try{i=n(t).clone()}catch(r){i=n("<span />").html(t)}return i}function r(t,i,r){var o=n.Deferred(),u,f,e,c,s,h;try{if(t=t.contentWindow||t.contentDocument||t,u=t.document||t.contentDocument||t,r.doctype&&u.write(r.doctype),u.write(i),u.querySelectorAll!=undefined&&(f=u.querySelectorAll("input[type='radio'][checked='checked'],input[type='radio'][checked='true'],input[type='radio'][checked='on'],input[type='checkbox'][checked='checked'],input[type='checkbox'][checked='true'],input[type='checkbox'][checked='on']"),f!=undefined&&f.length>0))for(e=0,c=f.length;e<c;e++)f[e].checked=!0;u.close();s=!1;h=function(){var i,r,f;if(!s){if(t.focus(),t.querySelectorAll!=undefined&&(i=u.querySelectorAll("input[type='radio'][checked='checked'],input[type='radio'][checked='true'],input[type='radio'][checked='on'],input[type='checkbox'][checked='checked'],input[type='checkbox'][checked='true'],input[type='checkbox'][checked='on']"),i!=undefined&&i.length>0))for(r=0,f=i.length;r<f;r++)i[r].checked=!0;try{t.document.execCommand("print",!1,null)||t.print();n("body").focus()}catch(e){t.print()}t.close();s=!0;o.resolve()}};n(t).on("load",h);setTimeout(h,r.timeout)}catch(l){o.reject(l)}return o}function f(i,u){var e=n(u.iframe+""),o=e.length,f,s;return o===0&&(f=document.createElement("iframe"),document.body.appendChild(f),nsCommon.setAttributes(f,{height:"0",width:"0",border:"0",wmode:"Opaque"}),f.style.position="absolute",f.style.top="-999",f.style.left="-999",e=n(f)),s=e.get(0),r(s,i,u).done(function(){var n=function(){o===0&&(e.remove(),ns.iblnPrintFrameClosed=!0)};setTimeout(n,u.timeout+250)}).fail(function(n){console.error("Failed to print from iframe",n);t(i,u)}).always(function(){try{u.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}function t(n,t){var i=window.open();return r(i,n,t).always(function(){try{t.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}function u(n){return!!(typeof Node=="object"?n instanceof Node:n&&typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.nodeName=="string")}n.print=n.fn.print=function(){var r,s,h=this,a,o,e,c,l;h instanceof n&&(h=h.get(0));u(h)?(s=n(h),arguments.length>0&&(r=arguments[0])):arguments.length>0?(s=n(arguments[0]),u(s[0])?arguments.length>1&&(r=arguments[1]):(r=arguments[0],s=n("html"))):s=n("html");a={globalStyles:!0,mediaPrint:!1,stylesheet:null,noPrintSelector:".no-print",iframe:!0,append:null,prepend:null,manuallyCopyFormValues:!0,deferred:n.Deferred(),timeout:1e3,title:null,doctype:"<!doctype html>"};r=n.extend({},a,r||{});o=n("");r.globalStyles?o=n("style, link, meta, base, title").clone():r.mediaPrint&&(o=n("link[media=print]"));r.stylesheet&&(o=n.merge(o,n('<link rel="stylesheet" href="'+r.stylesheet+'">')));o.each(function(){this.tagName!=undefined&&this.tagName==="LINK"&&n(this).attr("media","print")});e=s.clone();e=n("<span/>").append(e);e.find(r.noPrintSelector).remove();e.append(o.clone());r.title&&(c=n("title",e),c.length===0&&(c=n("<title />"),e.append(c)),c.text(r.title));e.append(i(r.append));e.prepend(i(r.prepend));r.manuallyCopyFormValues&&(e.find("input:visible").each(function(){var i=n(this),t;i.is("[type='radio']")?(t=i.is(":checked"),navigator.userAgent.search("Chrome")>-1&&(t===!0||t==="on")?t="on":navigator.userAgent.search("Chrome")>-1&&(t===!1||t==="off")&&(t="off"),i.attr("checked",t),i[0].checked=t==="on"?!0:t==="off"?!1:t):i.is("[type='checkbox']")?(t=i.is(":checked"),i.attr("checked",t),i.prop("checked",t),i[0].checked=t==="on"?!0:t==="off"?!1:t):i.attr("value",i.val())}),e.find("select:visible").each(function(){var t=n(this);t.find(":selected").length>0&&t.find(":selected").attr("selected","selected")}),e.find("textarea:visible").each(function(){var t=n(this);t.text(t.val())}),e.find("input[type='radio'][checked='checked'],input[type='radio'][checked='true'],input[type='radio'][checked='on']").each(function(){var t=n(this);t[0].checked=!0}));l=e.html();try{r.deferred.notify("generated_markup",l,e)}catch(y){console.warn("Error notifying deferred",y)}if(e.remove(),ns.iblnPrintFrameClosed=!1,r.iframe)try{f(l,r)}catch(v){console.error("Failed to print from iframe",v.stack,v.message);t(l,r)}else t(l,r);return this}})(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.fn.addBack=n.fn.addBack||n.fn.andSelf;n.fn.extend({actual:function(t,i){var s,u,h,c;if(!this[t])throw'$.actual => The jQuery method "'+t+'" you called does not exist';var f=n.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},i),r=this.eq(0),e,o;return f.clone===!0?(e=function(){r=r.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},o=function(){r.remove()}):(s=[],u="",e=function(){h=r.parents().addBack().filter(":hidden");u+="visibility: hidden !important; display: "+f.display+" !important; ";f.absolute===!0&&(u+="position: absolute !important; ");h.each(function(){var i=n(this),t=i.attr("style");s.push(t);i.attr("style",t?t+";"+u:u)})},o=function(){h.each(function(t){var i=n(this),r=s[t];r===undefined?i.removeAttr("style"):i.attr("style",r)})}),e(),c=/(outer)/.test(t)?r[t](f.includeMargin):r[t](),o(),c}})}),function(n){function i(t,i){this.element=t;this.options=n.extend(!0,{},r,i);this.updatePlaceholder=!0;"placeholder"in this.options&&(this.options.texts.placeholder=this.options.placeholder,delete this.options.placeholder);"default"in this.options.searchOptions&&(this.options.texts.search=this.options.searchOptions["default"],delete this.options.searchOptions["default"]);this.load()}var r={columns:1,search:!1,searchOptions:{delay:250,showOptGroups:!1,onSearch:function(){}},texts:{placeholder:"Select options",search:"Search",selectedOptions:" selected",selectAll:"Select all",unselectAll:"Unselect all",noneSelected:"None Selected"},selectAll:!1,selectGroup:!1,minHeight:200,maxHeight:null,showCheckbox:!0,jqActualOpts:{},optionAttributes:[],onLoad:function(){},onOptionClick:function(){},onControlClose:function(){},selectionToDisplay:5,width:null,minWidth:null,maxWidth:500,minSelect:!1,maxSelect:!1},t=1;typeof Array.prototype.map!="function"&&(Array.prototype.map=function(t,i){return typeof i=="undefined"&&(i=this),n.isArray(i)?n.map(i,t):[]});typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});i.prototype={load:function(){var t=this,u,e,o,f,c,s;if(t.element.nodeName!="SELECT"||n(t.element).hasClass("jqmsLoaded"))return!0;n(t.element).addClass("jqmsLoaded").data("plugin_multiselect-instance",t);n(t.element).next(".ms-options-wrap").length>0?n(t.element).next(".ms-options-wrap").html('<button>None Selected<\/button><div class="ms-options"><ul><\/ul><\/div>'):n(t.element).after('<div class="ms-options-wrap"><button>None Selected<\/button><div class="ms-options"><ul><\/ul><\/div><\/div>');var h=n(t.element).next(".ms-options-wrap").find("> button:first-child"),i=n(t.element).next(".ms-options-wrap").find("> .ms-options"),r=i.find("> ul"),l=n(t.element).find("optgroup").length?!0:!1;t.options.showCheckbox||i.addClass("hide-checkbox");n(t.element).prop("disabled")&&h.prop("disabled",!0);u=null;typeof t.options.maxWidth=="number"?(u=t.options.maxWidth,i.parent().css({maxWidth:u,position:"relative"})):typeof t.options.maxWidth=="string"?(u="100%",i.parent().css({maxWidth:u,position:"relative"})):i.parent().css("position","relative");e=null;typeof t.options.minWidth=="number"&&(e=t.options.minWidth,i.parent().css({minWidth:e}));o=null;t.options.width!=null&&(o=t.options.width,i.parent().css({width:o}));f=n(window).height()-i.offset().top+n(window).scrollTop()-20;t.options.maxHeight&&(f=t.options.maxHeight);f=f<t.options.minHeight?t.options.minHeight:f;i.css({maxWidth:u,minWidth:e,width:o,minHeight:t.options.minHeight,maxHeight:f,overflow:"auto"}).hide();i.bind("touchmove mousewheel DOMMouseScroll",function(t){if(n(this).outerHeight()<n(this)[0].scrollHeight){var i=t.originalEvent,r=i.wheelDelta||-i.detail;n(this).outerHeight()+n(this)[0].scrollTop>n(this)[0].scrollHeight&&(t.preventDefault(),this.scrollTop+=r<0?1:-1)}});n(document).off("click.ms-hideopts").on("click.ms-hideopts",function(t){n(t.target).closest(".ms-options-wrap").length||n(".ms-options-wrap > .ms-options:visible").length&&n(".ms-options-wrap > .ms-options:visible").each(function(){n(this).hide();var t=n(this).parent().prev(".jqmsLoaded").data("plugin_multiselect-instance");if(typeof t.options.onControlClose=="function")t.options.onControlClose(t.element)})});if(h.bind("mousedown",function(r){if(r.which!=1)return!0;if(n(".ms-options-wrap > .ms-options:visible").each(function(){if(n(this).parent().prev()[0]!=i.parent().prev()[0]){n(this).hide();var t=n(this).parent().prev(".jqmsLoaded").data("plugin_multiselect-instance");if(typeof t.options.onControlClose=="function")t.options.onControlClose(t.element)}}),i.toggle(),i.is(":visible")){i.css("maxHeight","");var u=n(window).height()-i.offset().top+n(window).scrollTop()-20;t.options.maxHeight&&(u=t.options.maxHeight);u=u<t.options.minHeight?t.options.minHeight:u;i.css("maxHeight",u)}else if(typeof t.options.onControlClose=="function")t.options.onControlClose(t.element)}).click(function(n){n.preventDefault()}),t.options.texts.placeholder&&h.text(t.options.texts.placeholder),t.options.search){r.before('<div class="ms-search"><input type="text" value="" placeholder="'+t.options.texts.search+'" /><\/div>');c=i.find(".ms-search input");c.on("keyup",function(){if(n(this).data("lastsearch")==n(this).val())return!0;n(this).data("searchTimeout")&&clearTimeout(n(this).data("searchTimeout"));var i=n(this),u=function(){if(i.data("lastsearch",i.val()),typeof t.options.searchOptions.onSearch=="function")t.options.searchOptions.onSearch(t.element);r.find("li:not(.optgroup)").each(function(){var r=n(this).text(),i;r.toLowerCase().indexOf(c.val().toLowerCase())>-1?n(this).show():n(this).hasClass("selected")||n(this).hide();i=n(this).closest("li.optgroup");!t.options.searchOptions.showOptGroups&&i&&(i.show(),i.find("li:visible").length?i.show():i.hide())});t._updateSelectAllText()};n(this).data("searchTimeout",setTimeout(u,t.options.searchOptions.delay))})}t.options.selectAll&&r.before('<a href="#" class="ms-selectall global">'+t.options.texts.selectAll+"<\/a>");i.on("click",".ms-selectall",function(i){if(i.preventDefault(),t.updatePlaceholder=!1,n(this).hasClass("global"))r.find("li:not(.optgroup)").filter(":not(.selected)").filter(":visible").length?r.find("li:not(.optgroup)").filter(":not(.selected)").filter(":visible").find('input[type="checkbox"]').trigger("click"):r.find('li:not(.optgroup).selected:visible input[type="checkbox"]').trigger("click");else if(n(this).closest("li").hasClass("optgroup")){var u=n(this).closest("li.optgroup");u.find("li:not(.selected)").filter(":visible").length?u.find('li:not(.selected):visible input[type="checkbox"]').trigger("click"):u.find('li.selected:visible input[type="checkbox"]').trigger("click")}t._updateSelectAllText();t.updatePlaceholder=!0;t._updatePlaceholderText()});s=[];n(t.element).children().each(function(){var u,f,i,r;if(this.nodeName=="OPTGROUP")u=[],n(this).children("option").each(function(){for(var i,f={},r=0;r<t.options.optionAttributes.length;r++)i=t.options.optionAttributes[r],n(this).attr(i)!==undefined&&(f[i]=n(this).attr(i));u.push({name:n(this).text(),value:n(this).val(),checked:n(this).prop("selected"),attributes:f})}),s.push({label:n(this).attr("label"),options:u});else if(this.nodeName=="OPTION"){for(f={},i=0;i<t.options.optionAttributes.length;i++)r=t.options.optionAttributes[i],n(this).attr(r)!==undefined&&(f[r]=n(this).attr(r));s.push({name:n(this).text(),value:n(this).val(),checked:n(this).prop("selected"),attributes:f})}else return!0});t.loadOptions(s,!0,!1);t._updateSelectAllText(!1);i.on("click",'input[type="checkbox"]',function(){n(this).closest("li").toggleClass("selected");var r=i.parent().prev();if(r.find('option[value="'+n(this).val()+'"]').prop("selected",n(this).is(":checked")).closest("select").trigger("change"),typeof t.options.onOptionClick=="function")t.options.onOptionClick(t.element,this);t._updateSelectAllText();t._updatePlaceholderText()});i.on("focusin",'input[type="checkbox"]',function(){n(this).closest("label").addClass("focused")}).on("focusout",'input[type="checkbox"]',function(){n(this).closest("label").removeClass("focused")});if(typeof t.options.onLoad=="function")t.options.onLoad(t.element);n(t.element).hide()},loadOptions:function(t,i,r){var a,l,y,s,p,h;i=typeof i=="boolean"?i:!0;r=typeof r=="boolean"?r:!0;var f=this,o=n(f.element).next(".ms-options-wrap").find("> .ms-options > ul"),w=n(f.element).next(".ms-options-wrap").find("> .ms-options"),c=w.parent().prev();i&&(o.find("> li").remove(),r&&c.find("> *").remove());for(a in t)if(t.hasOwnProperty(a)){var u=t[a],e=n("<li><\/li>"),v=!0;if(u.hasOwnProperty("options")){o.find("> li.optgroup > span.label").each(function(){n(this).text()==u.label&&(e=n(this).closest(".optgroup"),v=!1)});r&&(c.find('optgroup[label="'+u.label+'"]').length?l=c.find('optgroup[label="'+u.label+'"]'):(l=n('<optgroup label="'+u.label+'"><\/optgroup>'),c.append(l)));v&&(e.addClass("optgroup"),e.append('<span class="label">'+u.label+"<\/span>"),e.find("> .label").css({clear:"both"}),f.options.selectGroup&&e.append('<a href="#" class="ms-selectall">'+f.options.texts.selectAll+"<\/a>"),e.append("<ul><\/ul>"));for(y in u.options)u.options.hasOwnProperty(y)&&(s=u.options[y],p=n("<li><\/li>").addClass("ms-reflow"),s.hasOwnProperty("value"))&&(f._addOption(p,s),e.find("> ul").append(p),r&&(h=n('<option value="'+s.value+'">'+s.name+"<\/option>"),s.hasOwnProperty("attributes")&&Object.keys(s.attributes).length,s.checked&&h.prop("selected",!0),l.append(h)))}else if(u.hasOwnProperty("value"))e.addClass("ms-reflow"),f._addOption(e,u),r&&(h=n('<option value="'+u.value+'">'+u.name+"<\/option>"),u.hasOwnProperty("attributes")&&Object.keys(u.attributes).length&&h.attr(u.attributes),u.checked&&h.prop("selected",!0),c.append(h));else continue;v&&o.append(e)}o.find('.ms-reflow input[type="checkbox"]').each(function(){if(n(this).css("display").match(/block$/)){var t=n(this).outerWidth();t=t?t:15;n(this).closest("label").css("padding-left",parseInt(n(this).closest("label").css("padding-left"))*2+t);n(this).closest(".ms-reflow").removeClass("ms-reflow")}});f._updatePlaceholderText();w.find("ul").css({"column-count":"","column-gap":"","-webkit-column-count":"","-webkit-column-gap":"","-moz-column-count":"","-moz-column-gap":""});c.find("optgroup").length?(o.find("> li:not(.optgroup)").css({float:"left",width:100/f.options.columns+"%"}),o.find("li.optgroup").css({clear:"both"}).find("> ul").css({"column-count":f.options.columns,"column-gap":0,"-webkit-column-count":f.options.columns,"-webkit-column-gap":0,"-moz-column-count":f.options.columns,"-moz-column-gap":0}),this._ieVersion()&&this._ieVersion()<10&&o.find("li.optgroup > ul > li").css({float:"left",width:100/f.options.columns+"%"})):(o.css({"column-count":f.options.columns,"column-gap":0,"-webkit-column-count":f.options.columns,"-webkit-column-gap":0,"-moz-column-count":f.options.columns,"-moz-column-gap":0}),this._ieVersion()&&this._ieVersion()<10&&o.find("> li").css({float:"left",width:100/f.options.columns+"%"}))},settings:function(t){this.options=n.extend(!0,{},this.options,t);this.reload()},unload:function(){n(this.element).next(".ms-options-wrap").remove();n(this.element).show(function(){n(this).css("display","").removeClass("jqmsLoaded")})},reload:function(){n(this.element).next(".ms-options-wrap").length>0&&n(this.element).next(".ms-options-wrap").attr("data-bind")!=undefined?n(this.element).next(".ms-options-wrap").empty():n(this.element).next(".ms-options-wrap").remove();n(this.element).removeClass("jqmsLoaded");this.load()},reset:function(){var t=[];n(this.element).find("option").each(function(){n(this).prop("defaultSelected")&&t.push(n(this).val())});n(this.element).val(t);this.reload()},disable:function(t){t=typeof t!="boolean"?!0:!1;n(this.element).prop("disabled",t);n(this.element).next(".ms-options-wrap").find("button:first-child").prop("disabled",t)},_updateSelectAllText:function(t){var i,r;(typeof t!="boolean"&&(t=!0),i=this,i.options.selectAll||i.options.selectGroup)&&(r=n(i.element).next(".ms-options-wrap").find("> .ms-options"),r.find(".ms-selectall").each(function(){var r=n(this).parent().find("li:not(.optgroup)").filter(":not(.selected)");t&&(r=r.filter(":visible"));n(this).text(r.length?i.options.texts.selectAll:i.options.texts.unselectAll)}))},_updatePlaceholderText:function(){if(this.updatePlaceholder){var i=this,t=n(i.element).next(".ms-options-wrap").find("> button:first-child"),f=n(i.element).next(".ms-options-wrap").find("> .ms-options"),e=f.parent().prev(),r=[];e.find("option:selected").each(function(){r.push(n(this).text())});t.text(r.join(", "));var u=t.clone().css({display:"inline",width:"auto",visibility:"hidden"}).appendTo(f.parent()),o=typeof n.fn.actual!="undefined"?u.actual("width",i.options.jqActualOpts):u.width(),s=typeof n.fn.actual!="undefined"?t.actual("width",i.options.jqActualOpts):t.width();i.options.selectionToDisplay!=null&&typeof i.options.selectionToDisplay=="number"&&r.length>i.options.selectionToDisplay?(t.text(r.length+i.options.texts.selectedOptions),t.attr("title",r.map(function(n){return n.trim()}).join(", "))):o>s?(t.text(r.length+i.options.texts.selectedOptions),t.attr("title",r.map(function(n){return n.trim()}).join(", "))):r.length?(t.text(r.map(function(n){return n.trim()}).join(", ")),t.attr("title",r.map(function(n){return n.trim()}).join(", "))):(t.text(i.options.texts.placeholder),t.attr("title",i.options.texts.placeholder));u.remove()}},_addOption:function(i,r){var u,f;i.text(r.name);u=n('<input type="checkbox" value="" title="" />').val(r.value).attr("title",r.name).attr("id","ms-opt-"+t);r.hasOwnProperty("attributes")&&Object.keys(r.attributes).length&&u.attr(r.attributes);i.prepend(u);r.checked&&(i.addClass("default"),i.addClass("selected"),i.find('input[type="checkbox"]').prop("checked",!0));f=n("<label><\/label>").attr("for","ms-opt-"+t);i.wrapInner(f);t=t+1},_ieVersion:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!=-1?parseInt(n.split("msie")[1]):!1}};n.fn.multiselect=function(t){var u=arguments,r;return t===undefined||typeof t=="object"?this.each(function(){n.data(this,"plugin_multiselect")||n.data(this,"plugin_multiselect",new i(this,t))}):typeof t=="string"&&t[0]!=="_"&&t!=="init"?(this.each(function(){var f=n.data(this,"plugin_multiselect");f instanceof i&&typeof f[t]=="function"&&(r=f[t].apply(f,Array.prototype.slice.call(u,1)));t==="unload"&&n.data(this,"plugin_multiselect",null)}),r):void 0}}(jQuery),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.jspdf=t()}(this,function(){"use strict";var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s=function(){function t(n){this.value=n}function n(n){function e(n,t){return new Promise(function(f,e){var o={key:n,arg:t,resolve:f,reject:e,next:null};r?r=r.next=o:(i=r=o,u(n,t))})}function u(i,r){try{var e=n[i](r),o=e.value;o instanceof t?Promise.resolve(o.value).then(function(n){u("next",n)},function(n){u("throw",n)}):f(e.done?"return":"normal",e.value)}catch(s){f("throw",s)}}function f(n,t){switch(n){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next;i?u(i.key,i.arg):r=null}var i,r;this._invoke=e;typeof n.return!="function"&&(this.return=undefined)}return typeof Symbol=="function"&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(n){return this._invoke("next",n)},n.prototype.throw=function(n){return this._invoke("throw",n)},n.prototype.return=function(n){return this._invoke("return",n)},{wrap:function(t){return function(){return new n(t.apply(this,arguments))}},await:function(n){return new t(n)}}}(),t,n,i,u,f,e,o;
/** @preserve
 * jsPDF - PDF Document creation from JavaScript
 * Version 1.3.5 Built on 2017-09-14T15:10:09.569Z
 *                           CommitID 05dc915baf
 *
 * Copyright (c) 2010-2016 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
 *               2010 Aaron Spike, https://github.com/acspike
 *               2012 Willow Systems Corporation, willow-systems.com
 *               2012 Pablo Hess, https://github.com/pablohess
 *               2012 Florian Jenett, https://github.com/fjenett
 *               2013 Warren Weckesser, https://github.com/warrenweckesser
 *               2013 Youssef Beddad, https://github.com/lifof
 *               2013 Lee Driscoll, https://github.com/lsdriscoll
 *               2013 Stefan Slonevskiy, https://github.com/stefslon
 *               2013 Jeremy Morel, https://github.com/jmorel
 *               2013 Christoph Hartmann, https://github.com/chris-rock
 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
 *               2014 James Makes, https://github.com/dollaruw
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 Steven Spungin, https://github.com/Flamenco
 *               2014 Kenneth Glassey, https://github.com/Gavvers
 *
 * Licensed under the MIT License
 *
 * Contributor(s):
 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
 *    kim3er, mfo, alnorth, Flamenco
 */
t=function(n){function o(t){var i={};this.subscribe=function(n,t,r){if(typeof t!="function")return!1;i.hasOwnProperty(n)||(i[n]={});var u=Math.random().toString(35);return i[n][u]=[t,!!r],u};this.unsubscribe=function(n){for(var t in i)if(i[t][n])return delete i[t][n],!0;return!1};this.publish=function(r){var o,u,f,e;if(i.hasOwnProperty(r)){o=Array.prototype.slice.call(arguments,1);u=[];for(f in i[r]){e=i[r][f];try{e[0].apply(t,o)}catch(s){n.console&&console.error("jsPDF PubSub Error",s.message,s)}e[1]&&u.push(f)}u.length&&u.forEach(this.unsubscribe)}}}function t(s,h,c,l){var it={},kt;(typeof s=="undefined"?"undefined":r(s))==="object"&&(it=s,s=it.orientation,h=it.unit||h,c=it.format||c,l=it.compress||it.compressPdf||l);h=h||"mm";c=c||"a4";s=(""+(s||"P")).toLowerCase();var gr=(""+c).toLowerCase(),ti=!!l&&typeof Uint8Array=="function",ii=it.textColor||"0 g",nr=it.drawColor||"0 G",lt=it.fontSize||16,ri=it.lineHeight||1.15,tr=it.lineWidth||.200025,d=2,dt=!1,ot=[],b={},ft={},ut,v,yt,rt=0,st,k=[],et=[],nt=[],ui=[],pt=[],fi=0,ei=0,ht=0,gt,w,oi,ct,ni,at={title:"",subject:"",author:"",keywords:"",creator:""},p={},g=new o(p),ai=it.hotfixes||[],y=function(n){return n.toFixed(2)},tt=function(n){return n.toFixed(3)},vt=function(n){return("0"+parseInt(n)).slice(-2)},a=function(n){dt?k[st].push(n):(ht+=n.length+1,ui.push(n))},wt=function(){return d++,ot[d]=ht,a(d+" 0 obj"),d},ir=function(){var t=k.length*2+1,n;return t+=pt.length,n={objId:t,content:""},pt.push(n),n},rr=function(){return d++,ot[d]=function(){return ht},d},ur=function(n){ot[n]=ht},vi=function(n){a("stream");a(n);a("endstream")},fr=function(){var r,i,u,e,s,o,h,l,p,b=[],c;for(h=n.adler32cs||t.adler32cs,ti&&typeof h=="undefined"&&(ti=!1),r=1;r<=rt;r++){if(b.push(wt()),l=(gt=nt[r].width)*v,p=(w=nt[r].height)*v,a("<<\/Type /Page"),a("/Parent 1 0 R"),a("/Resources 2 0 R"),a("/MediaBox [0 0 "+y(l)+" "+y(p)+"]"),g.publish("putPage",{pageNumber:r,page:k[r]}),a("/Contents "+(d+1)+" 0 R"),a(">>"),a("endobj"),i=k[r].join("\n"),wt(),ti){for(u=[],e=i.length;e--;)u[e]=i.charCodeAt(e);o=h.from(i);s=new f(6);s.append(new Uint8Array(u));i=s.flush();u=new Uint8Array(i.length+6);u.set(new Uint8Array([120,156]));u.set(i,2);u.set(new Uint8Array([o&255,o>>8&255,o>>16&255,o>>24&255]),i.length+2);i=String.fromCharCode.apply(null,u);a("<<\/Length "+i.length+" /Filter [/FlateDecode]>>")}else a("<<\/Length "+i.length+">>");vi(i);a("endobj")}for(ot[1]=ht,a("1 0 obj"),a("<<\/Type /Pages"),c="/Kids [",e=0;e<rt;e++)c+=b[e]+" 0 R ";a(c+"]");a("/Count "+rt);a(">>");a("endobj");g.publish("postPutPages")},er=function(n){n.objectNumber=wt();a("<<\/BaseFont/"+n.PostScriptName+"/Type/Font");typeof n.encoding=="string"&&a("/Encoding/"+n.encoding);a("/Subtype/Type1>>");a("endobj")},or=function(){for(var n in b)b.hasOwnProperty(n)&&er(b[n])},sr=function(){g.publish("putXobjectDict")},hr=function(){a("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");a("/Font <<");for(var n in b)b.hasOwnProperty(n)&&a("/"+n+" "+b[n].objectNumber+" 0 R");a(">>");a("/XObject <<");sr();a(">>")},cr=function(){or();g.publish("putResources");ot[2]=ht;a("2 0 obj");a("<<");hr();a(">>");a("endobj");g.publish("postPutResources")},lr=function(){var n,t;for(g.publish("putAdditionalObjects"),n=0;n<pt.length;n++)t=pt[n],ot[t.objId]=ht,a(t.objId+" 0 obj"),a(t.content),a("endobj");d+=pt.length;g.publish("postPutAdditionalObjects")},yi=function(n,t,i){ft.hasOwnProperty(t)||(ft[t]={});ft[t][i]=n},pi=function(n,t,i,r){var u="F"+(Object.keys(b).length+1).toString(10),f=b[u]={id:u,PostScriptName:n,fontName:t,fontStyle:i,encoding:r,metadata:{}};return yi(u,t,i),g.publish("addFont",f),u},ar=function(){for(var c,h,i="helvetica",r="times",u="courier",f="normal",e="bold",o="italic",s="bolditalic",t=[["Helvetica",i,f],["Helvetica-Bold",i,e],["Helvetica-Oblique",i,o],["Helvetica-BoldOblique",i,s],["Courier",u,f],["Courier-Bold",u,e],["Courier-Oblique",u,o],["Courier-BoldOblique",u,s],["Times-Roman",r,f],["Times-Bold",r,e],["Times-Italic",r,o],["Times-BoldItalic",r,s],["ZapfDingbats","zapfdingbats"]],n=0,l=t.length;n<l;n++)c=pi(t[n][0],t[n][1],t[n][2],"StandardEncoding"),h=t[n][0].split("-"),yi(c,h[0],h[1]||"");g.publish("addFonts",{fonts:b,dictionary:ft})},vr=function(t){return t.foo=function(){var i,r;try{return t.apply(this,arguments)}catch(u){if(i=u.stack||"",~i.indexOf(" at ")&&(i=i.split(" at ")[1]),r="Error in function "+i.split("\n")[0].split("<")[0]+": "+u.message,n.console)n.console.error(r,u),n.alert&&alert(r);else throw new Error(r);}},t.foo.bar=t,t.foo},yr=function(n,t){var i,o,s,h,r,u,e,f,c;if(t=t||{},s=t.sourceEncoding||"Unicode",r=t.outputEncoding,(t.autoencode||r)&&b[ut].metadata&&b[ut].metadata[s]&&b[ut].metadata[s].encoding&&(h=b[ut].metadata[s].encoding,!r&&b[ut].encoding&&(r=b[ut].encoding),!r&&h.codePages&&(r=h.codePages[0]),typeof r=="string"&&(r=h[r]),r)){for(e=!1,u=[],i=0,o=n.length;i<o;i++)f=r[n.charCodeAt(i)],f?u.push(String.fromCharCode(f)):u.push(n[i]),u[i].charCodeAt(0)>>8&&(e=!0);n=u.join("")}for(i=n.length;e===undefined&&i!==0;)n.charCodeAt(i-1)>>8&&(e=!0),i--;if(!e)return n;for(u=t.noBOM?[]:[254,255],i=0,o=n.length;i<o;i++){if(f=n.charCodeAt(i),c=f>>8,c>>8)throw new Error("Character at position "+i+" of string '"+n+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");u.push(c);u.push(f-(c<<8))}return String.fromCharCode.apply(undefined,u)},si=function(n,t){return yr(n,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pr=function(){var i;a("/Producer (jsPDF "+t.version+")");for(i in at)at.hasOwnProperty(i)&&at[i]&&a("/"+i.substr(0,1).toUpperCase()+i.substr(1)+" ("+si(at[i])+")");var n=new Date,r=n.getTimezoneOffset(),u=r<0?"+":"-",f=Math.floor(Math.abs(r/60)),e=Math.abs(r%60),o=[u,vt(f),"'",vt(e),"'"].join("");a(["/CreationDate (D:",n.getFullYear(),vt(n.getMonth()+1),vt(n.getDate()),vt(n.getHours()),vt(n.getMinutes()),vt(n.getSeconds()),o,")"].join(""))},wr=function(){a("/Type /Catalog");a("/Pages 1 0 R");ct||(ct="fullwidth");switch(ct){case"fullwidth":a("/OpenAction [3 0 R /FitH null]");break;case"fullheight":a("/OpenAction [3 0 R /FitV null]");break;case"fullpage":a("/OpenAction [3 0 R /Fit]");break;case"original":a("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ct;n.substr(n.length-1)==="%"&&(ct=parseInt(ct)/100);typeof ct=="number"&&a("/OpenAction [3 0 R /XYZ null null "+y(ct)+"]")}ni||(ni="continuous");switch(ni){case"continuous":a("/PageLayout /OneColumn");break;case"single":a("/PageLayout /SinglePage");break;case"two":case"twoleft":a("/PageLayout /TwoColumnLeft");break;case"tworight":a("/PageLayout /TwoColumnRight")}oi&&a("/PageMode /"+oi);g.publish("putCatalog")},br=function(){a("/Size "+(d+1));a("/Root "+d+" 0 R");a("/Info "+(d-1)+" 0 R")},kr=function(n,t){var i=typeof t=="string"&&t.toLowerCase(),r;if(typeof n=="string"&&(r=n.toLowerCase(),u.hasOwnProperty(r)&&(n=u[r][0]/v,t=u[r][1]/v)),Array.isArray(n)&&(t=n[1],n=n[0]),i){switch(i.substr(0,1)){case"l":t>n&&(i="s");break;case"p":n>t&&(i="s")}i==="s"&&(yt=n,n=t,t=yt)}dt=!0;k[++rt]=[];nt[rt]={width:Number(n)||gt,height:Number(t)||w};et[rt]={};bi(rt)},wi=function(){kr.apply(this,arguments);a(y(tr*v)+" w");a(nr);fi!==0&&a(fi+" J");ei!==0&&a(ei+" j");g.publish("addPage",{pageNumber:rt})},dr=function(n){n>0&&n<=rt&&(k.splice(n,1),nt.splice(n,1),rt--,st>rt&&(st=rt),this.setPage(st))},bi=function(n){n>0&&n<=rt&&(st=n,gt=nt[n].width,w=nt[n].height)},hi=function(n,t){var i;n=n!==undefined?n:b[ut].fontName;t=t!==undefined?t:b[ut].fontStyle;n!==undefined&&(n=n.toLowerCase());switch(n){case"sans-serif":case"verdana":case"arial":case"helvetica":n="helvetica";break;case"fixed":case"monospace":case"terminal":case"courier":n="courier";break;case"serif":case"cursive":case"fantasy":default:n="times"}try{i=ft[n][t]}catch(r){}return i||(i=ft.times[t],i==null&&(i=ft.times.normal)),i},ci=function(){var i,n,t,r;for(dt=!1,d=2,ht=0,ui=[],ot=[],pt=[],g.publish("buildDocument"),a("%PDF-"+e),fr(),lr(),cr(),wt(),a("<<"),pr(),a(">>"),a("endobj"),wt(),a("<<"),wr(),a(">>"),a("endobj"),i=ht,t="0000000000",a("xref"),a("0 "+(d+1)),a(t+" 65535 f "),n=1;n<=d;n++)r=ot[n],typeof r=="function"?a((t+ot[n]()).slice(-10)+" 00000 n "):a((t+ot[n]).slice(-10)+" 00000 n ");return a("trailer"),a("<<"),br(),a(">>"),a("startxref"),a(""+i),a("%%EOF"),dt=!0,ui.join("\n")},bt=function(n){var t="S";return n==="F"?t="f":n==="FD"||n==="DF"?t="B":(n==="f"||n==="f*"||n==="B"||n==="B*")&&(t=n),t},ki=function(){for(var t=ci(),n=t.length,i=new ArrayBuffer(n),r=new Uint8Array(i);n--;)r[n]=t.charCodeAt(n);return i},li=function(){return new Blob([ki()],{type:"application/pdf"})},di=vr(function(t,r){var u=(""+t).substr(0,6)==="dataur"?"data:application/pdf;base64,"+btoa(ci()):0,f;switch(t){case undefined:return ci();case"save":if(navigator.getUserMedia&&(n.URL===undefined||n.URL.createObjectURL===undefined))return p.output("dataurlnewwindow");i(li(),r);typeof i.unload=="function"&&n.setTimeout&&setTimeout(i.unload,911);break;case"arraybuffer":return ki();case"blob":return li();case"bloburi":case"bloburl":return n.URL&&n.URL.createObjectURL(li())||void 0;case"datauristring":case"dataurlstring":return u;case"dataurlnewwindow":if(f=n.open(u),f||typeof safari=="undefined")return f;case"datauri":case"dataurl":return n.document.location.href=u;default:throw new Error('Output type "'+t+'" is not supported.');}}),gi=function(n){return Array.isArray(ai)===!0&&ai.indexOf(n)>-1};switch(h){case"pt":v=1;break;case"mm":v=72/25.4000508;break;case"cm":v=72/2.54000508;break;case"in":v=72;break;case"px":v=gi("px_scaling")==!0?72/96:96/72;break;case"pc":v=12;break;case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+h;}p.internal={pdfEscape:si,getStyle:bt,getFont:function(){return b[hi.apply(p,arguments)]},getFontSize:function(){return lt},getLineHeight:function(){return lt*ri},write:function(n){a(arguments.length===1?n:Array.prototype.join.call(arguments," "))},getCoordinateString:function(n){return y(n*v)},getVerticalCoordinateString:function(n){return y((w-n)*v)},collections:{},newObject:wt,newAdditionalObject:ir,newObjectDeferred:rr,newObjectDeferredBegin:ur,putStream:vi,events:g,scaleFactor:v,pageSize:{get width(){return gt},get height(){return w}},output:function(n,t){return di(n,t)},getNumberOfPages:function(){return k.length-1},pages:k,out:a,f2:y,getPageInfo:function(n){var t=(n-1)*2+3;return{objId:t,pageNumber:n,pageContext:et[n]}},getCurrentPageInfo:function(){var n=(st-1)*2+3;return{objId:n,pageNumber:st,pageContext:et[st]}},getPDFVersion:function(){return e},hasHotfix:gi};p.addPage=function(){return wi.apply(this,arguments),this};p.setPage=function(){return bi.apply(this,arguments),this};p.insertPage=function(n){return this.addPage(),this.movePage(st,n),this};p.movePage=function(n,t){var i;if(n>t){var r=k[n],u=nt[n],f=et[n];for(i=n;i>t;i--)k[i]=k[i-1],nt[i]=nt[i-1],et[i]=et[i-1];k[t]=r;nt[t]=u;et[t]=f;this.setPage(t)}else if(n<t){var r=k[n],u=nt[n],f=et[n];for(i=n;i<t;i++)k[i]=k[i+1],nt[i]=nt[i+1],et[i]=et[i+1];k[t]=r;nt[t]=u;et[t]=f;this.setPage(t)}return this};p.deletePage=function(){return dr.apply(this,arguments),this};p.setDisplayMode=function(n,t,i){ct=n;ni=t;oi=i;var r=[undefined,null,"UseNone","UseOutlines","UseThumbs","FullScreen"];if(r.indexOf(i)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+i+'" is not recognized.');return this};p.text=function(n,t,i,r,u,f){function et(n){return n=n.split("\t").join(Array(it.TabLen||9).join(" ")),si(n,r)}var k,d,g,nt,tt,c,e,l,ft,p,st,s,h,rt,b,ht;if(typeof n=="number"&&(yt=i,i=t,t=n,n=yt),typeof n=="string"&&(n=n.match(/[\n\r]/)?n.split(/\r\n|\r|\n/g):[n]),typeof u=="string"&&(f=u,u=null),typeof r=="string"&&(f=r,r=null),typeof r=="number"&&(u=r,r=null),k="",d="Td",u&&(u*=Math.PI/180,nt=Math.cos(u),tt=Math.sin(u),k=[y(nt),y(tt),y(tt*-1),y(nt),""].join(" "),d="Tm"),r=r||{},"noBOM"in r||(r.noBOM=!0),"autoencode"in r||(r.autoencode=!0),c="",e=this.internal.getCurrentPageInfo().pageContext,!0===r.stroke?e.lastTextWasStroke!==!0&&(c="1 Tr\n",e.lastTextWasStroke=!0):(e.lastTextWasStroke&&(c="0 Tr\n"),e.lastTextWasStroke=!1),typeof this._runningPageHeight=="undefined"&&(this._runningPageHeight=0),typeof n=="string")n=et(n);else if(Object.prototype.toString.call(n)==="[object Array]"){for(var ot=n.concat(),o=[],rt=ot.length;rt--;)o.push(et(ot.shift()));if(f){if(st=lt*ri,s=n.map(function(n){return this.getStringUnitWidth(n)*lt/v},this),p=Math.max.apply(Math,s),f==="center")l=t-p/2,t-=s[0]/2;else if(f==="right")l=t-p,t-=s[0];else throw new Error('Unrecognized alignment option, use "center" or "right".');for(ft=t,n=o[0],h=1,rt=o.length;h<rt;h++)b=p-s[h],f==="center"&&(b/=2),n+=") Tj\n"+(l-ft+b)+" -"+st+" Td ("+o[h],ft=l+b}else n=o.join(") Tj\nT* (")}else throw new Error('Type of text must be string or Array. "'+n+'" is not recognized.');return g||(ht=y((w-i)*v)),a("BT\n/"+ut+" "+lt+" Tf\n"+lt*ri+" TL\n"+c+ii+"\n"+k+y(t*v)+" "+ht+" "+d+"\n("+n+") Tj\nET"),g&&this.text(g,t,i),this};p.lstext=function(n,t,i,r){console.warn("jsPDF.lstext is deprecated");for(var u=0,f=n.length;u<f;u++,t+=r)this.text(n[u],t,i);return this};p.line=function(n,t,i,r){return this.lines([[i-n,r-t]],n,t)};p.clip=function(){a("W");a("S")};p.clip_fixed=function(n){"evenodd"===n?a("W*"):a("W");a("n")};p.lines=function(n,t,i,r,u,f){var h,c,l,y,e,p,b,k,d,o,s;for(typeof n=="number"&&(yt=i,i=t,t=n,n=yt),r=r||[1,1],a(tt(t*v)+" "+tt((w-i)*v)+" m "),h=r[0],c=r[1],y=n.length,o=t,s=i,l=0;l<y;l++)e=n[l],e.length===2?(o=e[0]*h+o,s=e[1]*c+s,a(tt(o*v)+" "+tt((w-s)*v)+" l")):(p=e[0]*h+o,b=e[1]*c+s,k=e[2]*h+o,d=e[3]*c+s,o=e[4]*h+o,s=e[5]*c+s,a(tt(p*v)+" "+tt((w-b)*v)+" "+tt(k*v)+" "+tt((w-d)*v)+" "+tt(o*v)+" "+tt((w-s)*v)+" c"));return f&&a(" h"),u!==null&&a(bt(u)),this};p.rect=function(n,t,i,r,u){var f=bt(u);return a([y(n*v),y((w-t)*v),y(i*v),y(-r*v),"re"].join(" ")),u!==null&&a(bt(u)),this};p.triangle=function(n,t,i,r,u,f,e){return this.lines([[i-n,r-t],[u-i,f-r],[n-u,t-f]],n,t,[1,1],e,!0),this};p.roundedRect=function(n,t,i,r,u,f,e){var o=4/3*(Math.SQRT2-1);return this.lines([[i-2*u,0],[u*o,0,u,f-f*o,u,f],[0,r-2*f],[0,f*o,-(u*o),f,-u,f],[-i+2*u,0],[-(u*o),0,-u,-(f*o),-u,-f],[0,-r+2*f],[0,-(f*o),u*o,-f,u,-f]],n+u,t,[1,1],e),this};p.ellipse=function(n,t,i,r,u){var f=4/3*(Math.SQRT2-1)*i,e=4/3*(Math.SQRT2-1)*r;return a([y((n+i)*v),y((w-t)*v),"m",y((n+i)*v),y((w-(t-e))*v),y((n+f)*v),y((w-(t-r))*v),y(n*v),y((w-(t-r))*v),"c"].join(" ")),a([y((n-f)*v),y((w-(t-r))*v),y((n-i)*v),y((w-(t-e))*v),y((n-i)*v),y((w-t)*v),"c"].join(" ")),a([y((n-i)*v),y((w-(t+e))*v),y((n-f)*v),y((w-(t+r))*v),y(n*v),y((w-(t+r))*v),"c"].join(" ")),a([y((n+f)*v),y((w-(t+r))*v),y((n+i)*v),y((w-(t+e))*v),y((n+i)*v),y((w-t)*v),"c"].join(" ")),u!==null&&a(bt(u)),this};p.circle=function(n,t,i,r){return this.ellipse(n,t,i,i,r)};p.setProperties=function(n){for(var t in at)at.hasOwnProperty(t)&&n[t]&&(at[t]=n[t]);return this};p.setFontSize=function(n){return lt=n,this};p.setFont=function(n,t){return ut=hi(n,t),this};p.setFontStyle=p.setFontType=function(n){return ut=hi(undefined,n),this};p.getFontList=function(){var i={},n,t,r;for(n in ft)if(ft.hasOwnProperty(n)){i[n]=r=[];for(t in ft[n])ft[n].hasOwnProperty(t)&&r.push(t)}return i};p.addFont=function(n,t,i){pi(n,t,i,"StandardEncoding")};p.setLineWidth=function(n){return a((n*v).toFixed(2)+" w"),this};p.setDrawColor=function(n,t,i,r){var u;return u=t===undefined||r===undefined&&n===t===i?typeof n=="string"?n+" G":y(n/255)+" G":r===undefined?typeof n=="string"?[n,t,i,"RG"].join(" "):[y(n/255),y(t/255),y(i/255),"RG"].join(" "):typeof n=="string"?[n,t,i,r,"K"].join(" "):[y(n),y(t),y(i),y(r),"K"].join(" "),a(u),this};p.setFillColor=function(n,t,i,u){var f;return t===undefined||u===undefined&&n===t===i?f=typeof n=="string"?n+" g":y(n/255)+" g":u===undefined||(typeof u=="undefined"?"undefined":r(u))==="object"?(f=typeof n=="string"?[n,t,i,"rg"].join(" "):[y(n/255),y(t/255),y(i/255),"rg"].join(" "),u&&u.a===0&&(f="255 255 255 rg")):f=typeof n=="string"?[n,t,i,u,"k"].join(" "):[y(n),y(t),y(i),y(u),"k"].join(" "),a(f),this};p.setTextColor=function(n,t,i){if(typeof n=="string"&&/^#[0-9A-Fa-f]{6}$/.test(n)){var r=parseInt(n.substr(1),16);n=r>>16&255;t=r>>8&255;i=r&255}return ii=n===0&&t===0&&i===0||typeof t=="undefined"?tt(n/255)+" g":[tt(n/255),tt(t/255),tt(i/255),"rg"].join(" "),this};p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2};p.setLineCap=function(n){var t=this.CapJoinStyles[n];if(t===undefined)throw new Error("Line cap style of '"+n+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fi=t,a(t+" J"),this};p.setLineJoin=function(n){var t=this.CapJoinStyles[n];if(t===undefined)throw new Error("Line join style of '"+n+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ei=t,a(t+" j"),this};p.output=di;p.save=function(n){p.output("save",n)};for(kt in t.API)t.API.hasOwnProperty(kt)&&(kt==="events"&&t.API.events.length?function(n,t){for(var u,r,i=t.length-1;i!==-1;i--)u=t[i][0],r=t[i][1],n.subscribe.apply(n,[u].concat(typeof r=="function"?[r]:r))}(g,t.API.events):p[kt]=t.API[kt]);return ar(),ut="F1",wi(c,s),g.publish("initialized"),p}var e="1.3",u={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};return t.API={events:[]},t.version="1.x-master",typeof define=="function"&&define.amd?define("jsPDF",function(){return t}):typeof module!="undefined"&&module.exports?module.exports=t:n.jsPDF=t,t}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||undefined);(window.AcroForm=function(n){var i=window.AcroForm,u;i.scale=function(n){return n*(u.internal.scaleFactor/1)};i.antiScale=function(n){return 1/u.internal.scaleFactor*n};u={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null};t.API.acroformPlugin=u;var f=function(){var t,n;for(t in this.acroformPlugin.acroFormDictionaryRoot.Fields)n=this.acroformPlugin.acroFormDictionaryRoot.Fields[t],n.hasAnnotation&&o.call(this,n)},e=function(){if(this.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");this.acroformPlugin.acroFormDictionaryRoot=new i.AcroFormDictionary;this.acroformPlugin.internal=this.internal;this.acroformPlugin.acroFormDictionaryRoot._eventID=this.internal.events.subscribe("postPutResources",h);this.internal.events.subscribe("buildDocument",f);this.internal.events.subscribe("putCatalog",s);this.internal.events.subscribe("postPutPages",c)},o=function(n){var i={type:"reference",object:n};t.API.annotationPlugin.annotations[this.internal.getPageInfo(n.page).pageNumber].push(i)},r=function(n){this.acroformPlugin.printedOut&&(this.acroformPlugin.printedOut=!1,this.acroformPlugin.acroFormDictionaryRoot=null);this.acroformPlugin.acroFormDictionaryRoot||e.call(this);this.acroformPlugin.acroFormDictionaryRoot.Fields.push(n)},s=function(){typeof this.acroformPlugin.acroFormDictionaryRoot!="undefined"?this.internal.write("/AcroForm "+this.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},h=function(){this.internal.events.unsubscribe(this.acroformPlugin.acroFormDictionaryRoot._eventID);delete this.acroformPlugin.acroFormDictionaryRoot._eventID;this.acroformPlugin.printedOut=!0},c=function(n){var c=!n,n,t,h,u,o,s,e,f,r;n||(this.internal.newObjectDeferredBegin(this.acroformPlugin.acroFormDictionaryRoot.objId),this.internal.out(this.acroformPlugin.acroFormDictionaryRoot.getString()));n=n||this.acroformPlugin.acroFormDictionaryRoot.Kids;for(f in n){if(t=n[f],h=t.Rect,t.Rect&&(t.Rect=i.internal.calculateCoordinates.call(this,t.Rect)),this.internal.newObjectDeferredBegin(t.objId),u="",u+=t.objId+" 0 obj\n",u+="<<\n"+t.getContent(),t.Rect=h,t.hasAppearanceStream&&!t.appearanceStreamContent&&(o=i.internal.calculateAppearanceStream.call(this,t),u+="/AP << /N "+o+" >>\n",this.acroformPlugin.xForms.push(o)),t.appearanceStreamContent){u+="/AP << ";for(s in t.appearanceStreamContent){if(e=t.appearanceStreamContent[s],u+="/"+s+" ",u+="<< ",Object.keys(e).length>=1||Array.isArray(e))for(f in e)r=e[f],typeof r=="function"&&(r=r.call(this,t)),u+="/"+f+" "+r+" ",this.acroformPlugin.xForms.indexOf(r)>=0||this.acroformPlugin.xForms.push(r);else r=e,typeof r=="function"&&(r=r.call(this,t)),u+="/"+f+" "+r+" \n",this.acroformPlugin.xForms.indexOf(r)>=0||this.acroformPlugin.xForms.push(r);u+=" >>\n"}u+=">>\n"}u+=">>\nendobj\n";this.internal.out(u)}c&&l.call(this,this.acroformPlugin.xForms)},l=function(n){var i,u,t,r;for(i in n)u=i,t=n[i],this.internal.newObjectDeferredBegin(t&&t.objId),r="",r+=t?t.getString():"",this.internal.out(r),delete n[u]};n.addField=function(n){return n instanceof i.TextField?v.call(this,n):n instanceof i.ChoiceField?y.call(this,n):n instanceof i.Button?a.call(this,n):n instanceof i.ChildClass?r.call(this,n):n&&r.call(this,n),n.page=this.acroformPlugin.internal.getCurrentPageInfo().pageNumber,this};var a=function(n){var n=n||new i.Field,t;n.FT="/Btn";t=n.Ff||0;n.pushbutton&&(t=i.internal.setBitPosition(t,17),delete n.pushbutton);n.radio&&(t=i.internal.setBitPosition(t,16),delete n.radio);n.noToggleToOff&&(t=i.internal.setBitPosition(t,15));n.Ff=t;r.call(this,n)},v=function(n){var n=n||new i.Field,t;n.FT="/Tx";t=n.Ff||0;n.multiline&&(t=t|4096);n.password&&(t=t|8192);n.fileSelect&&(t=t|1048576);n.doNotSpellCheck&&(t=t|4194304);n.doNotScroll&&(t=t|8388608);n.Ff=n.Ff||t;r.call(this,n)},y=function(n){var t=n||new i.Field,u;t.FT="/Ch";u=t.Ff||0;t.combo&&(u=i.internal.setBitPosition(u,18),delete t.combo);t.edit&&(u=i.internal.setBitPosition(u,19),delete t.edit);t.sort&&(u=i.internal.setBitPosition(u,20),delete t.sort);t.multiSelect&&this.internal.getPDFVersion()>=1.4&&(u=i.internal.setBitPosition(u,22),delete t.multiSelect);t.doNotSpellCheck&&this.internal.getPDFVersion()>=1.4&&(u=i.internal.setBitPosition(u,23),delete t.doNotSpellCheck);t.Ff=u;r.call(this,t)}})(t.API);n=window.AcroForm;n.internal={};n.createFormXObject=function(t){var i=new n.FormXObject,r=n.Appearance.internal.getHeight(t)||0,u=n.Appearance.internal.getWidth(t)||0;return i.BBox=[0,0,u,r],i};n.Appearance={CheckBox:{createAppearanceStream:function(){return{N:{On:n.Appearance.CheckBox.YesNormal},D:{On:n.Appearance.CheckBox.YesPushDown,Off:n.Appearance.CheckBox.OffPushDown}}},createMK:function(){return"<< /CA (3)>>"},YesPushDown:function(t){var u=n.createFormXObject(t),i="",r;return t.Q=1,r=n.internal.calculateX(t,"3","ZapfDingbats",50),i+="0.749023 g\n             0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n             f\n             BMC\n             q\n             0 0 1 rg\n             /F13 "+r.fontSize+" Tf 0 g\n             BT\n",i+=r.text,i+="ET\n             Q\n             EMC\n",u.stream=i,u},YesNormal:function(t){var u=n.createFormXObject(t),i="",r;return t.Q=1,r=n.internal.calculateX(t,"3","ZapfDingbats",n.Appearance.internal.getHeight(t)*.9),i+="1 g\n0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\nf\nq\n0 0 1 rg\n0 0 "+(n.Appearance.internal.getWidth(t)-1)+" "+(n.Appearance.internal.getHeight(t)-1)+" re\nW\nn\n0 g\nBT\n/F13 "+r.fontSize+" Tf 0 g\n",i+=r.text,i+="ET\n             Q\n",u.stream=i,u},OffPushDown:function(t){var i=n.createFormXObject(t),r="";return r+="0.749023 g\n            0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n            f\n",i.stream=r,i}},RadioButton:{Circle:{createAppearanceStream:function(t){var i={D:{Off:n.Appearance.RadioButton.Circle.OffPushDown},N:{}};return i.N[t]=n.Appearance.RadioButton.Circle.YesNormal,i.D[t]=n.Appearance.RadioButton.Circle.YesPushDown,i},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var u=n.createFormXObject(t),f="",i=n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4,r;return i*=.9,r=n.Appearance.internal.Bezier_C,f+="q\n1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+i+" 0 m\n"+i+" "+i*r+" "+i*r+" "+i+" 0 "+i+" c\n-"+i*r+" "+i+" -"+i+" "+i*r+" -"+i+" 0 c\n-"+i+" -"+i*r+" -"+i*r+" -"+i+" 0 -"+i+" c\n"+i*r+" -"+i+" "+i+" -"+i*r+" "+i+" 0 c\nf\nQ\n",u.stream=f,u},YesPushDown:function(t){var e=n.createFormXObject(t),o="",i=(n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4)*.9;var r=i*2,u=r*n.Appearance.internal.Bezier_C,f=i*n.Appearance.internal.Bezier_C;return o+="0.749023 g\n            q\n           1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+r+" 0 m\n"+r+" "+u+" "+u+" "+r+" 0 "+r+" c\n-"+u+" "+r+" -"+r+" "+u+" -"+r+" 0 c\n-"+r+" -"+u+" -"+u+" -"+r+" 0 -"+r+" c\n"+u+" -"+r+" "+r+" -"+u+" "+r+" 0 c\n            f\n            Q\n            0 g\n            q\n            1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+i+" 0 m\n"+i+" "+f+" "+f+" "+i+" 0 "+i+" c\n-"+f+" "+i+" -"+i+" "+f+" -"+i+" 0 c\n-"+i+" -"+f+" -"+f+" -"+i+" 0 -"+i+" c\n"+f+" -"+i+" "+i+" -"+f+" "+i+" 0 c\n            f\n            Q\n",e.stream=o,e},OffPushDown:function(t){var u=n.createFormXObject(t),f="",e=n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4,i,r;return e*=.9,i=e*2,r=i*n.Appearance.internal.Bezier_C,f+="0.749023 g\n            q\n 1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+i+" 0 m\n"+i+" "+r+" "+r+" "+i+" 0 "+i+" c\n-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c\n-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c\n"+r+" -"+i+" "+i+" -"+r+" "+i+" 0 c\n            f\n            Q\n",u.stream=f,u}},Cross:{createAppearanceStream:function(t){var i={D:{Off:n.Appearance.RadioButton.Cross.OffPushDown},N:{}};return i.N[t]=n.Appearance.RadioButton.Cross.YesNormal,i.D[t]=n.Appearance.RadioButton.Cross.YesPushDown,i},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var r=n.createFormXObject(t),u="",i=n.Appearance.internal.calculateCross(t);return u+="q\n            1 1 "+(n.Appearance.internal.getWidth(t)-2)+" "+(n.Appearance.internal.getHeight(t)-2)+" re\n            W\n            n\n            "+i.x1.x+" "+i.x1.y+" m\n            "+i.x2.x+" "+i.x2.y+" l\n            "+i.x4.x+" "+i.x4.y+" m\n            "+i.x3.x+" "+i.x3.y+" l\n            s\n            Q\n",r.stream=u,r},YesPushDown:function(t){var r=n.createFormXObject(t),i=n.Appearance.internal.calculateCross(t),u="";return u+="0.749023 g\n            0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n            f\n            q\n            1 1 "+(n.Appearance.internal.getWidth(t)-2)+" "+(n.Appearance.internal.getHeight(t)-2)+" re\n            W\n            n\n            "+i.x1.x+" "+i.x1.y+" m\n            "+i.x2.x+" "+i.x2.y+" l\n            "+i.x4.x+" "+i.x4.y+" m\n            "+i.x3.x+" "+i.x3.y+" l\n            s\n            Q\n",r.stream=u,r},OffPushDown:function(t){var i=n.createFormXObject(t),r="";return r+="0.749023 g\n            0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n            f\n",i.stream=r,i}}},createDefaultAppearanceStream:function(){return"/Helv 0 Tf 0 g"}};n.Appearance.internal={Bezier_C:.551915024494,calculateCross:function(t){var f=function(n,t){return n>t?t:n},r=n.Appearance.internal.getWidth(t),u=n.Appearance.internal.getHeight(t),i=f(r,u);return{x1:{x:(r-i)/2,y:(u-i)/2+i},x2:{x:(r-i)/2+i,y:(u-i)/2},x3:{x:(r-i)/2,y:(u-i)/2},x4:{x:(r-i)/2+i,y:(u-i)/2+i}}}};n.Appearance.internal.getWidth=function(n){return n.Rect[2]};n.Appearance.internal.getHeight=function(n){return n.Rect[3]};n.internal.inherit=function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n};n.internal.arrayToPdfArray=function(n){var t,i,r;if(Array.isArray(n)){t=" [";for(i in n)r=n[i].toString(),t+=r,t+=i<n.length-1?" ":"";return t+"]"}};n.internal.toPdfString=function(n){return n=n||"",n.indexOf("(")!==0&&(n="("+n),n.substring(n.length-1)!=")"&&(n+="("),n};n.PDFObject=function(){var n;Object.defineProperty(this,"objId",{get:function(){return n||(this.internal?n=this.internal.newObjectDeferred():t.API.acroformPlugin.internal&&(n=t.API.acroformPlugin.internal.newObjectDeferred())),n||console.log("Couldn't create Object ID"),n},configurable:!1})};n.PDFObject.prototype.toString=function(){return this.objId+" 0 R"};n.PDFObject.prototype.getString=function(){var n=this.objId+" 0 obj\n<<",t=this.getContent();return n+=t+">>\n",this.stream&&(n+="stream\n",n+=this.stream,n+="endstream\n"),n+"endobj\n"};n.PDFObject.prototype.getContent=function(){var t=function(t){var u="",f=Object.keys(t).filter(function(n){return n!="content"&&n!="appearanceStreamContent"&&n.substring(0,1)!="_"}),e,r,i;for(e in f)r=f[e],i=t[r],i&&(u+=Array.isArray(i)?"/"+r+" "+n.internal.arrayToPdfArray(i)+"\n":i instanceof n.PDFObject?"/"+r+" "+i.objId+" 0 R\n":"/"+r+" "+i+"\n");return u};return""+t(this)};n.FormXObject=function(){n.PDFObject.call(this);this.Type="/XObject";this.Subtype="/Form";this.FormType=1;this.BBox;this.Matrix;this.Resources="2 0 R";this.PieceInfo;var t;Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return t!==undefined?t.length:0}});Object.defineProperty(this,"stream",{enumerable:!1,set:function(n){t=n},get:function(){return t?t:null}})};n.internal.inherit(n.FormXObject,n.PDFObject);n.AcroFormDictionary=function(){n.PDFObject.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){if(t.length>0)return t}});Object.defineProperty(this,"Fields",{enumerable:!0,configurable:!0,get:function(){return t}});this.DA};n.internal.inherit(n.AcroFormDictionary,n.PDFObject);n.Field=function(){var i,r,t,u,f;n.PDFObject.call(this);Object.defineProperty(this,"Rect",{enumerable:!0,configurable:!1,get:function(){if(i)return i},set:function(n){i=n}});r="";Object.defineProperty(this,"FT",{enumerable:!0,set:function(n){r=n},get:function(){return r}});Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,set:function(n){t=n},get:function(){return!t||t.length<1?this instanceof n.ChildClass?void 0:"(FieldObject"+n.Field.FieldNum+++")":t.substring(0,1)=="("&&t.substring(t.length-1)?t:"("+t+")"}});Object.defineProperty(this,"DA",{enumerable:!0,get:function(){if(u)return"("+u+")"},set:function(n){u=n}});Object.defineProperty(this,"DV",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(n){f=n}});Object.defineProperty(this,"Type",{enumerable:!0,get:function(){return this.hasAnnotation?"/Annot":null}});Object.defineProperty(this,"Subtype",{enumerable:!0,get:function(){return this.hasAnnotation?"/Widget":null}});this.BG;Object.defineProperty(this,"hasAnnotation",{enumerable:!1,get:function(){return this.Rect||this.BC||this.BG?!0:!1}});Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,configurable:!0,writable:!0});Object.defineProperty(this,"page",{enumerable:!1,configurable:!0,writable:!0})};n.Field.FieldNum=0;n.internal.inherit(n.Field,n.PDFObject);n.ChoiceField=function(){n.Field.call(this);this.FT="/Ch";this.Opt=[];this.V="()";this.TI=0;this.combo=!1;Object.defineProperty(this,"edit",{enumerable:!0,set:function(n){n==!0?(this._edit=!0,this.combo=!0):this._edit=!1},get:function(){return this._edit?this._edit:!1},configurable:!1});this.hasAppearanceStream=!0;Object.defineProperty(this,"V",{get:function(){n.internal.toPdfString()}})};n.internal.inherit(n.ChoiceField,n.Field);window.ChoiceField=n.ChoiceField;n.ListBox=function(){n.ChoiceField.call(this)};n.internal.inherit(n.ListBox,n.ChoiceField);window.ListBox=n.ListBox;n.ComboBox=function(){n.ListBox.call(this);this.combo=!0};n.internal.inherit(n.ComboBox,n.ListBox);window.ComboBox=n.ComboBox;n.EditBox=function(){n.ComboBox.call(this);this.edit=!0};n.internal.inherit(n.EditBox,n.ComboBox);window.EditBox=n.EditBox;n.Button=function(){n.Field.call(this);this.FT="/Btn"};n.internal.inherit(n.Button,n.Field);window.Button=n.Button;n.PushButton=function(){n.Button.call(this);this.pushbutton=!0};n.internal.inherit(n.PushButton,n.Button);window.PushButton=n.PushButton;n.RadioButton=function(){var t,i;n.Button.call(this);this.radio=!0;t=[];Object.defineProperty(this,"Kids",{enumerable:!0,get:function(){if(t.length>0)return t}});Object.defineProperty(this,"__Kids",{get:function(){return t}});Object.defineProperty(this,"noToggleToOff",{enumerable:!1,get:function(){return i},set:function(n){i=n}})};n.internal.inherit(n.RadioButton,n.Button);window.RadioButton=n.RadioButton;n.ChildClass=function(t,i){n.Field.call(this);this.Parent=t;this._AppearanceType=n.Appearance.RadioButton.Circle;this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(i);this.F=n.internal.setBitPosition(this.F,3,1);this.MK=this._AppearanceType.createMK();this.AS="/Off";this._Name=i};n.internal.inherit(n.ChildClass,n.Field);n.RadioButton.prototype.setAppearance=function(n){var i,t;if(!("createAppearanceStream"in n&&"createMK"in n)){console.log("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");return}for(i in this.__Kids)t=this.__Kids[i],t.appearanceStreamContent=n.createAppearanceStream(t._Name),t.MK=n.createMK()};n.RadioButton.prototype.createOption=function(i){var u=this,r=new n.ChildClass(u,i);return this.__Kids.push(r),t.API.addField(r),r};n.CheckBox=function(){Button.call(this);this.appearanceStreamContent=n.Appearance.CheckBox.createAppearanceStream();this.MK=n.Appearance.CheckBox.createMK();this.AS="/On";this.V="/On"};n.internal.inherit(n.CheckBox,n.Button);window.CheckBox=n.CheckBox;n.TextField=function(){var t,i,r,u;n.Field.call(this);this.DA=n.Appearance.createDefaultAppearanceStream();this.F=4;Object.defineProperty(this,"V",{get:function(){return t?"("+t+")":t},enumerable:!0,set:function(n){t=n}});Object.defineProperty(this,"DV",{get:function(){return i?"("+i+")":i},enumerable:!0,set:function(n){i=n}});r=!1;Object.defineProperty(this,"multiline",{enumerable:!1,get:function(){return r},set:function(n){r=n}});u=!1;Object.defineProperty(this,"MaxLen",{enumerable:!0,get:function(){return u},set:function(n){u=n}});Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,get:function(){return this.V||this.DV}})};n.internal.inherit(n.TextField,n.Field);window.TextField=n.TextField;n.PasswordField=function(){TextField.call(this);Object.defineProperty(this,"password",{value:!0,enumerable:!1,configurable:!1,writable:!1})};n.internal.inherit(n.PasswordField,n.TextField);window.PasswordField=n.PasswordField;n.internal.calculateFontSpace=function(t,i,r){var r=r||"helvetica",e=n.internal.calculateFontSpace.canvas||(n.internal.calculateFontSpace.canvas=document.createElement("canvas")),u=e.getContext("2d"),o,f;return u.save(),o=i+" "+r,u.font=o,f=u.measureText(t),u.fontcolor="black",u=e.getContext("2d"),f.height=u.measureText("3").width*1.5,u.restore(),f};n.internal.calculateX=function(t,i,r,u){var u=u||12,r=r||"helvetica",tt={text:"",fontSize:""},s,ut,i,p,it,e,b,k,d,rt,g,o,nt;i=i.substr(0,1)=="("?i.substr(1):i;i=i.substr(i.length-1)==")"?i.substr(0,i.length-1):i;var c=i.split(" "),f=u,l=2,y=2,h=n.Appearance.internal.getHeight(t)||0;h=h<0?-h:h;s=n.Appearance.internal.getWidth(t)||0;s=s<0?-s:s;ut=function(t,i,u){if(t+1<c.length){var f=i+" "+c[t+1],e=n.internal.calculateFontSpace(f,u+"px",r).width,o=s-2*y;return e<=o}return!1};f++;n:for(;;){i="";f--;p=n.internal.calculateFontSpace("3",f+"px",r).height;it=t.multiline?h-f:(h-p)/2;it+=l;var a=-y,ot=a,ft=it,et=0,w=0,v=0;if(f==0){f=12;i="(...) Tj\n"+("% Width of Text: "+n.internal.calculateFontSpace(i,"1px").width+", FieldWidth:"+s+"\n");break}v=n.internal.calculateFontSpace(c[0]+" ",f+"px",r).width;e="";b=0;t:for(k in c){if(e+=c[k]+" ",e=e.substr(e.length-1)==" "?e.substr(0,e.length-1):e,d=parseInt(k),v=n.internal.calculateFontSpace(e+" ",f+"px",r).width,rt=ut(d,e,f),g=k>=c.length-1,rt&&!g){e+=" ";continue}else if(rt||g){if(g)w=d;else if(t.multiline&&(p+l)*(b+2)+l>h)continue n}else if(t.multiline){if((p+l)*(b+2)+l>h)continue n;w=d}else continue n;for(o="",nt=et;nt<=w;nt++)o+=c[nt]+" ";o=o.substr(o.length-1)==" "?o.substr(0,o.length-1):o;v=n.internal.calculateFontSpace(o,f+"px",r).width;switch(t.Q){case 2:a=s-v-y;break;case 1:a=(s-v)/2;break;case 0:default:a=y}i+=a+" "+ft+" Td\n";i+="("+o+") Tj\n";i+=-a+" 0 Td\n";ft=-(f+l);v=0;et=w+1;b++;e="";continue t}break}return tt.text=i,tt.fontSize=f,tt};n.internal.calculateAppearanceStream=function(t){var r;if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var i="",f=t.V||t.DV,u=n.internal.calculateX(t,f);return i+="/Tx BMC\nq\n/F1 "+u.fontSize+" Tf\n1 0 0 1 0 0 Tm\n",i+="BT\n",i+=u.text,i+="ET\n",i+="Q\nEMC\n",r=new n.createFormXObject(t),r.stream=i,r}};n.internal.calculateCoordinates=function(t,i,r,u){var f={},e;return this.internal?(e=function(n){return n*this.internal.scaleFactor},Array.isArray(t)?(t[0]=n.scale(t[0]),t[1]=n.scale(t[1]),t[2]=n.scale(t[2]),t[3]=n.scale(t[3]),f.lowerLeft_X=t[0]||0,f.lowerLeft_Y=e.call(this,this.internal.pageSize.height)-t[3]-t[1]||0,f.upperRight_X=t[0]+t[2]||0,f.upperRight_Y=e.call(this,this.internal.pageSize.height)-t[1]||0):(t=n.scale(t),i=n.scale(i),r=n.scale(r),u=n.scale(u),f.lowerLeft_X=t||0,f.lowerLeft_Y=this.internal.pageSize.height-i||0,f.upperRight_X=t+r||0,f.upperRight_Y=this.internal.pageSize.height-i+u||0)):Array.isArray(t)?(f.lowerLeft_X=t[0]||0,f.lowerLeft_Y=t[1]||0,f.upperRight_X=t[0]+t[2]||0,f.upperRight_Y=t[1]+t[3]||0):(f.lowerLeft_X=t||0,f.lowerLeft_Y=i||0,f.upperRight_X=t+r||0,f.upperRight_Y=i+u||0),[f.lowerLeft_X,f.lowerLeft_Y,f.upperRight_X,f.upperRight_Y]};n.internal.calculateColor=function(n,t,i){var r=new Array(3);return r.r=n|0,r.g=t|0,r.b=i|0,r};n.internal.getBitPosition=function(n,t){n=n||0;var i=1;return i=i<<t-1,n|i};n.internal.setBitPosition=function(n,t,i){var r,n;return n=n||0,i=i||1,r=1,r=r<<t-1,i==1?n|r:n&~r},function(n){n.addHTML=function(n,t,i,r,u){var s;if(typeof html2canvas=="undefined"&&typeof rasterizeHTML=="undefined")throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");typeof t!="number"&&(r=t,u=i);typeof r=="function"&&(u=r,r=null);var e=this.internal,f=e.scaleFactor,o=e.pageSize.width,h=e.pageSize.height;return(r=r||{},r.onrendered=function(n){var l,e,a,v;t=parseInt(t)||0;i=parseInt(i)||0;var y=r.dim||{},p=y.h||0,s=y.w||Math.min(o,n.width/f)-t,c="JPEG";r.format&&(c=r.format);n.height>h&&r.pagesplit?(l=function(){for(var e=0,r,a,l;;){if(r=document.createElement("canvas"),r.width=Math.min(o*f,n.width),r.height=Math.min(h*f,n.height-e),a=r.getContext("2d"),a.drawImage(n,0,e,n.width,r.height,0,0,r.width,r.height),l=[r,t,e?0:i,r.width/f,r.height/f,c,null,"SLOW"],this.addImage.apply(this,l),e+=r.height,e>=n.height)break;this.addPage()}u(s,e,null,l)}.bind(this),n.nodeName==="CANVAS"?(e=new Image,e.onload=l,e.src=n.toDataURL("image/png"),n=e):l()):(a=Math.random().toString(35),v=[n,t,i,s,p,c,a,"SLOW"],this.addImage.apply(this,v),u(s,p,a,v))}.bind(this),typeof html2canvas!="undefined"&&!r.rstz)?html2canvas(n,r):typeof rasterizeHTML!="undefined"?(s="drawDocument",typeof n=="string"&&(s=/^http/.test(n)?"drawURL":"drawHTML"),r.width=r.width||o*f,rasterizeHTML[s](n,void 0,r).then(function(n){r.onrendered(n.image)},function(n){u(null,n)})):null}}(t.API);
/** @preserve
 * jsPDF addImage plugin
 * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
 *               2013 Chris Dowling, https://github.com/gingerchris
 *               2013 Trinh Ho, https://github.com/ineedfat
 *               2013 Edwin Alejandro Perez, https://github.com/eaparango
 *               2013 Norah Smith, https://github.com/burnburnrocket
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 James Robb, https://github.com/jamesbrobb
 *
 * 
 */
(function(n){var t="addImage_",i=["jpeg","jpg","png"],u=function u(n){var i=this.internal.newObject(),t=this.internal.write,e=this.internal.putStream,s,f;if(n.n=i,t("<<\/Type /XObject"),t("/Subtype /Image"),t("/Width "+n.w),t("/Height "+n.h),n.cs===this.color_spaces.INDEXED?t("/ColorSpace [/Indexed /DeviceRGB "+(n.pal.length/3-1)+" "+("smask"in n?i+2:i+1)+" 0 R]"):(t("/ColorSpace /"+n.cs),n.cs===this.color_spaces.DEVICE_CMYK&&t("/Decode [1 0 1 0 1 0 1 0]")),t("/BitsPerComponent "+n.bpc),"f"in n&&t("/Filter /"+n.f),"dp"in n&&t("/DecodeParms <<"+n.dp+">>"),"trns"in n&&n.trns.constructor==Array){for(var o="",r=0,h=n.trns.length;r<h;r++)o+=n.trns[r]+" "+n.trns[r]+" ";t("/Mask ["+o+"]")}"smask"in n&&t("/SMask "+(i+1)+" 0 R");t("/Length "+n.data.length+">>");e(n.data);t("endobj");"smask"in n&&(s="/Predictor "+n.p+" /Colors 1 /BitsPerComponent "+n.bpc+" /Columns "+n.w,f={w:n.w,h:n.h,cs:"DeviceGray",bpc:n.bpc,dp:s,data:n.smask},"f"in n&&(f.f=n.f),u.call(this,f));n.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),t("<< /Length "+n.pal.length+">>"),e(this.arrayBufferToBinaryString(new Uint8Array(n.pal))),t("endobj"))},s=function(){var n=this.internal.collections[t+"images"];for(var i in n)u.call(this,n[i])},h=function(){var i=this.internal.collections[t+"images"],r=this.internal.write,n;for(var u in i)n=i[u],r("/I"+n.i,n.n,"0","R")},c=function(t){return t&&typeof t=="string"&&(t=t.toUpperCase()),t in n.image_compression?t:n.image_compression.NONE},l=function(){var n=this.internal.collections[t+"images"];return n||(this.internal.collections[t+"images"]=n={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",h)),n},a=function(n){var t=0;return n&&(t=Object.keys?Object.keys(n).length:function(n){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(n)),t},v=function(n){return typeof n=="undefined"||n===null},y=function(t){return typeof t=="string"&&n.sHashCode(t)},p=function(n){return i.indexOf(n)===-1},w=function(t){return typeof n["process"+t.toUpperCase()]!="function"},f=function(n){return(typeof n=="undefined"?"undefined":r(n))==="object"&&n.nodeType===1},b=function(n,t,i){var h,u,f,e,o,y,a,v,c,l,p,s;if(n.nodeName==="IMG"&&n.hasAttribute("src")){if(h=""+n.getAttribute("src"),!i&&h.indexOf("data:image/")===0)return h;!t&&/\.png(?:[?#].*)?$/i.test(h)&&(t="png")}if(n.nodeName==="CANVAS")u=n;else{if(u=document.createElement("canvas"),u.width=n.clientWidth||n.width,u.height=n.clientHeight||n.height,f=u.getContext("2d"),!f)throw"addImage requires canvas to be supported by browser.";i?(p=Math.PI/180,(typeof i=="undefined"?"undefined":r(i))==="object"&&(e=i.x,o=i.y,y=i.bg,i=i.angle),s=i*p,a=Math.abs(Math.cos(s)),v=Math.abs(Math.sin(s)),c=u.width,l=u.height,u.width=l*v+c*a,u.height=l*a+c*v,isNaN(e)&&(e=u.width/2),isNaN(o)&&(o=u.height/2),f.clearRect(0,0,u.width,u.height),f.fillStyle=y||"white",f.fillRect(0,0,u.width,u.height),f.save(),f.translate(e,o),f.rotate(s),f.drawImage(n,-(c/2),-(l/2)),f.rotate(-s),f.translate(-e,-o),f.restore()):f.drawImage(n,0,0,u.width,u.height)}return u.toDataURL((""+t).toLowerCase()=="png"?"image/png":"image/jpeg")},e=function(n,t){var r,i;if(t)for(i in t)if(n===t[i].alias){r=t[i];break}return r},k=function(n,t,i){return n||t||(n=-96,t=-96),n<0&&(n=-72*i.w/n/this.internal.scaleFactor),t<0&&(t=-72*i.h/t/this.internal.scaleFactor),n===0&&(n=t*i.w/i.h),t===0&&(t=n*i.h/i.w),[n,t]},d=function(n,t,i,r,u,f,e){var s=k.call(this,i,r,u),o=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;i=s[0];r=s[1];e[f]=u;this.internal.write("q",o(i),"0 0",o(r),o(n),h(t+r),"cm /I"+u.i,"Do Q")};n.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"};n.sHashCode=function(n){return Array.prototype.reduce&&n.split("").reduce(function(n,t){return n=(n<<5)-n+t.charCodeAt(0),n&n},0)};n.isString=function(n){return typeof n=="string"};n.extractInfoFromBase64DataURI=function(n){return/^data:([\w]+?\/([\w]+?));base64,(.+?)$/g.exec(n)};n.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};n.isArrayBuffer=function(n){return this.supportsArrayBuffer()?n instanceof ArrayBuffer:!1};n.isArrayBufferView=function(n){return this.supportsArrayBuffer()?typeof Uint32Array=="undefined"?!1:n instanceof Int8Array||n instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array:!1};n.binaryStringToUint8Array=function(n){for(var i=n.length,r=new Uint8Array(i),t=0;t<i;t++)r[t]=n.charCodeAt(t);return r};n.arrayBufferToBinaryString=function(n){var t;if(typeof atob=="function")return atob(this.arrayBufferToBase64(n));var r=this.isArrayBuffer(n)?n:new Uint8Array(n),i=20480,u="",f=Math.round(r.byteLength/i);for(t=0;t<f;t++)u+=String.fromCharCode.apply(null,r.slice(t*i,t*i+i));return u};n.arrayBufferToBase64=function(n){for(var o="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(n),l=r.byteLength,c=l%3,s=l-c,u,f,h,a,t,e=0;e<s;e=e+3)t=r[e]<<16|r[e+1]<<8|r[e+2],u=(t&16515072)>>18,f=(t&258048)>>12,h=(t&4032)>>6,a=t&63,o+=i[u]+i[f]+i[h]+i[a];return c==1?(t=r[s],u=(t&252)>>2,f=(t&3)<<4,o+=i[u]+i[f]+"=="):c==2&&(t=r[s]<<8|r[s+1],u=(t&64512)>>10,f=(t&1008)>>4,h=(t&15)<<2,o+=i[u]+i[f]+i[h]+"="),o};n.createImageInfo=function(n,t,i,r,u,f,e,o,s,h,c,l,a){var v={alias:o,w:t,h:i,cs:r,bpc:u,i:e,data:n};return f&&(v.f=f),s&&(v.dp=s),h&&(v.trns=h),c&&(v.pal=c),l&&(v.smask=l),a&&(v.p=a),v};n.addImage=function(n,t,u,o,s,h,k,g,nt){var ft,tt,rt,it,et,ut;if(typeof t!="string"&&(ft=h,h=s,s=o,o=u,u=t,t=ft),(typeof n=="undefined"?"undefined":r(n))==="object"&&!f(n)&&"imageData"in n&&(tt=n,n=tt.imageData,t=tt.format||t,u=tt.x||u||0,o=tt.y||o||0,s=tt.w||s,h=tt.h||h,k=tt.alias||k,g=tt.compression||g,nt=tt.rotation||tt.angle||nt),isNaN(u)||isNaN(o)){console.error("jsPDF.addImage: Invalid coordinates",arguments);throw new Error("Invalid coordinates passed to jsPDF.addImage");}if(rt=l.call(this),!(it=e(n,rt))&&(f(n)&&(n=b(n,t,nt)),v(k)&&(k=y(n)),!(it=e(k,rt)))){if(this.isString(n)&&(ut=this.extractInfoFromBase64DataURI(n),ut?(t=ut[2],n=atob(ut[3])):n.charCodeAt(0)===137&&n.charCodeAt(1)===80&&n.charCodeAt(2)===78&&n.charCodeAt(3)===71&&(t="png")),t=(t||"JPEG").toLowerCase(),p(t))throw new Error("addImage currently only supports formats "+i+", not '"+t+"'");if(w(t))throw new Error("please ensure that the plugin for '"+t+"' support is added");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(et=n,n=this.binaryStringToUint8Array(n))),it=this["process"+t.toUpperCase()](n,a(rt),k,c(g),et),!it)throw new Error("An unkwown error occurred whilst processing the image");}return d.call(this,u,o,s,h,it,it.i,rt),this};var g=function(n){var i,r,u;if(!1||!n.charCodeAt(6)==="J".charCodeAt(0)||!n.charCodeAt(7)==="F".charCodeAt(0)||!n.charCodeAt(8)==="I".charCodeAt(0)||!n.charCodeAt(9)==="F".charCodeAt(0)||!1)throw new Error("getJpegSize requires a binary string jpeg file");for(var f=n.charCodeAt(4)*256+n.charCodeAt(5),t=4,e=n.length;t<e;){if(t+=f,n.charCodeAt(t)!==255)throw new Error("getJpegSize could not find the size of the image");if(n.charCodeAt(t+1)===192||n.charCodeAt(t+1)===193||n.charCodeAt(t+1)===194||n.charCodeAt(t+1)===195||n.charCodeAt(t+1)===196||n.charCodeAt(t+1)===197||n.charCodeAt(t+1)===198||n.charCodeAt(t+1)===199)return r=n.charCodeAt(t+5)*256+n.charCodeAt(t+6),i=n.charCodeAt(t+7)*256+n.charCodeAt(t+8),u=n.charCodeAt(t+9),[i,r,u];t+=2;f=n.charCodeAt(t)*256+n.charCodeAt(t+1)}},nt=function(n){var s=n[0]<<8|n[1];if(s!==65496)throw new Error("Supplied data is not a JPEG");for(var h=n.length,r=(n[4]<<8)+n[5],i=4,t,u,f,e;i<h;){if(i+=r,t=o(n,i),r=(t[2]<<8)+t[3],(t[1]===192||t[1]===194)&&t[0]===255&&r>7)return t=o(n,i+5),u=(t[2]<<8)+t[3],f=(t[0]<<8)+t[1],e=t[4],{width:u,height:f,numcomponents:e};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image");},o=function(n,t){return n.subarray(t,t+5)};n.processJPEG=function(n,t,i,r,u){var e=this.color_spaces.DEVICE_RGB,o=this.decode.DCT_DECODE,s=8,f;return this.isString(n)?(f=g(n),this.createImageInfo(n,f[0],f[1],f[3]==1?this.color_spaces.DEVICE_GRAY:e,s,o,t,i)):(this.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.isArrayBufferView(n))?(f=nt(n),n=u||this.arrayBufferToBinaryString(n),this.createImageInfo(n,f.width,f.height,f.numcomponents==1?this.color_spaces.DEVICE_GRAY:e,s,o,t,i)):null};n.processJPG=function(){return this.processJPEG.apply(this,arguments)}})(t.API),function(n){var i={annotations:[],f2:function(n){return n.toFixed(2)},notEmpty:function(n){if(typeof n!="undefined"&&n!="")return!0}};return t.API.annotationPlugin=i,t.API.events.push(["addPage",function(n){this.annotationPlugin.annotations[n.pageNumber]=[]}]),n.events.push(["putPage",function(n){for(var t,p,v,s,r,n,w,h=this.annotationPlugin.annotations[n.pageNumber],c=!1,o=0;o<h.length&&!c;o++){t=h[o];switch(t.type){case"link":if(i.notEmpty(t.options.url)||i.notEmpty(t.options.pageNumber)){c=!0;break}case"reference":case"text":case"freetext":c=!0}}if(c!=!1){this.internal.write("/Annots [");var u=this.annotationPlugin.f2,f=this.internal.scaleFactor,e=this.internal.pageSize.height,b=this.internal.getPageInfo(n.pageNumber);for(o=0;o<h.length;o++){t=h[o];switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var l=this.internal.newAdditionalObject(),a=this.internal.newAdditionalObject(),k=t.title||"Note",s="/Rect ["+u(t.bounds.x*f)+" "+u(e-(t.bounds.y+t.bounds.h)*f)+" "+u((t.bounds.x+t.bounds.w)*f)+" "+u((e-t.bounds.y)*f)+"] ";r="<<\/Type /Annot /Subtype /Text "+s+"/Contents ("+t.contents+")";r+=" /Popup "+a.objId+" 0 R";r+=" /P "+b.objId+" 0 R";r+=" /T ("+k+") >>";l.content=r;var d=l.objId+" 0 R",y=30,s="/Rect ["+u((t.bounds.x+y)*f)+" "+u(e-(t.bounds.y+t.bounds.h)*f)+" "+u((t.bounds.x+t.bounds.w+y)*f)+" "+u((e-t.bounds.y)*f)+"] ";r="<<\/Type /Annot /Subtype /Popup "+s+" /Parent "+d;t.open&&(r+=" /Open true");r+=" >>";a.content=r;this.internal.write(l.objId,"0 R",a.objId,"0 R");break;case"freetext":s="/Rect ["+u(t.bounds.x*f)+" "+u((e-t.bounds.y)*f)+" "+u(t.bounds.x+t.bounds.w*f)+" "+u(e-(t.bounds.y+t.bounds.h)*f)+"] ";p=t.color||"#000000";r="<<\/Type /Annot /Subtype /FreeText "+s+"/Contents ("+t.contents+")";r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")";r+=" /Border [0 0 0]";r+=" >>";this.internal.write(r);break;case"link":if(t.options.name?(v=this.annotations._nameMap[t.options.name],t.options.pageNumber=v.page,t.options.top=v.y):t.options.top||(t.options.top=0),s="/Rect ["+u(t.x*f)+" "+u((e-t.y)*f)+" "+u((t.x+t.w)*f)+" "+u((e-(t.y+t.h))*f)+"] ",r="",t.options.url)r="<<\/Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <<\/S /URI /URI ("+t.options.url+") >>";else if(t.options.pageNumber){n=this.internal.getPageInfo(t.options.pageNumber);r="<<\/Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+n.objId+" 0 R";t.options.magFactor=t.options.magFactor||"XYZ";switch(t.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0;r+=" /FitV "+t.options.left+"]";break;case"XYZ":default:w=u((e-t.options.top)*f);t.options.left=t.options.left||0;typeof t.options.zoom=="undefined"&&(t.options.zoom=0);r+=" /XYZ "+t.options.left+" "+w+" "+t.options.zoom+"]"}}r!=""&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),n.createAnnotation=function(n){switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(n)}},n.link=function(n,t,i,r,u){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:n,y:t,w:i,h:r,options:u,type:"link"})},n.textWithLink=function(n,t,i,r){var f=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(n,t,i),i+=u*.2,this.link(t,i-u,f,u,r),f},n.getTextWidth=function(n){var t=this.internal.getFontSize();return this.getStringUnitWidth(n)*t/this.internal.scaleFactor},n.getLineHeight=function(){return this.internal.getLineHeight()},this}(t.API),function(n){n.autoPrint=function(){var n;return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject();this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+n+" 0 R")}),this}}(t.API),function(n){return n.events.push(["initialized",function(){this.canvas.pdf=this}]),n.canvas={getContext:function(){return this.pdf.context2d._canvas=this,this.pdf.context2d},style:{}},Object.defineProperty(n.canvas,"width",{get:function(){return this._width},set:function(n){this._width=n;this.getContext("2d").pageWrapX=n+1}}),Object.defineProperty(n.canvas,"height",{get:function(){return this._height},set:function(n){this._height=n;this.getContext("2d").pageWrapY=n+1}}),this}(t.API),function(n){var c,l,u,i=3,f=13,e,t={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},r=1,o=function(n,i,r,u,f){t={x:n,y:i,w:r,h:u,ln:f}},s=function(){return t},h={left:0,top:0,bottom:0};n.setHeaderFunction=function(n){e=n};n.getTextDimensions=function(n){c=this.internal.getFont().fontName;l=this.table_font_size||this.internal.getFontSize();u=this.internal.getFont().fontStyle;var i=.264583*72/25.4,r,t;t=document.createElement("font");t.id="jsPDFCell";try{t.style.fontStyle=u}catch(f){t.style.fontWeight=u}t.style.fontName=c;t.style.fontSize=l+"pt";try{t.textContent=n}catch(f){t.innerText=n}return document.body.appendChild(t),r={w:(t.offsetWidth+1)*i,h:(t.offsetHeight+1)*i},document.body.removeChild(t),r};n.cellAddPage=function(){var n=this.margins||h;this.addPage();o(n.left,n.top,undefined,undefined);r+=1};n.cellInitialize=function(){t={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined};r=1};n.cell=function(n,t,r,u,e,c,l){var a=s(),p=!1,w,v,y,b;if(a.ln!==undefined&&(a.ln===c?(n=a.x+a.w,t=a.y):(w=this.margins||h,a.y+a.h+u+f>=this.internal.pageSize.height-w.bottom&&(this.cellAddPage(),p=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(c,!0)),t=s().y+s().h,p&&(t=f+10))),e[0]!==undefined)if(this.printingHeaderRow?this.rect(n,t,r,u,"FD"):this.rect(n,t,r,u),l==="right")for(e instanceof Array||(e=[e]),v=0;v<e.length;v++)y=e[v],b=this.getStringUnitWidth(y)*this.internal.getFontSize(),this.text(y,n+r-b-i,t+this.internal.getLineHeight()*(v+1));else this.text(e,n+i,t+this.internal.getLineHeight());return o(n,t,r,u,c),this};n.arrayMax=function(n,t){for(var i=n[0],r,u=0,f=n.length;u<f;u+=1)r=n[u],t?t(i,r)===-1&&(i=r):r>i&&(i=r);return i};n.table=function(i,u,f,e,o){var ht,k;if(!f)throw"No data for PDF table";var l=[],y=[],c,s,a,it,rt={},p={},ut,d,w=[],v,ft=[],g,et,ot,st=!1,nt=!0,b=12,tt=h;if(tt.width=this.internal.pageSize.width,o&&(o.autoSize===!0&&(st=!0),o.printHeaders===!1&&(nt=!1),o.fontSize&&(b=o.fontSize),o.css&&typeof o.css["font-size"]!="undefined"&&(b=o.css["font-size"]*16),o.margins&&(tt=o.margins)),this.lnMod=0,t={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},r=1,this.printHeaders=nt,this.margins=tt,this.setFontSize(b),this.table_font_size=b,e===undefined||e===null)l=Object.keys(f[0]);else if(e[0]&&typeof e[0]!="string")for(ht=.264583*72/25.4,s=0,a=e.length;s<a;s+=1)c=e[s],l.push(c.name),y.push(c.prompt),p[c.name]=c.width*ht;else l=e;if(st)for(ot=function(n){return n[c]},s=0,a=l.length;s<a;s+=1){for(c=l[s],rt[c]=f.map(ot),w.push(this.getTextDimensions(y[s]||c).w),d=rt[c],v=0,it=d.length;v<it;v+=1)ut=d[v],w.push(this.getTextDimensions(ut).w);p[c]=n.arrayMax(w);w=[]}if(nt){for(k=this.calculateLineHeight(l,p,y.length?y:l),s=0,a=l.length;s<a;s+=1)c=l[s],ft.push([i,u,p[c],k,String(y.length?y[s]:c)]);this.setTableHeaderRow(ft);this.printHeaderRow(1,!1)}for(s=0,a=f.length;s<a;s+=1)for(g=f[s],k=this.calculateLineHeight(l,p,g),v=0,et=l.length;v<et;v+=1)c=l[v],this.cell(i,u,p[c],k,g[c],s+2,c.align);return this.lastCellPos=t,this.table_x=i,this.table_y=u,this};n.calculateLineHeight=function(n,t,r){for(var o,u,f=0,e=0;e<n.length;e++)u=n[e],r[u]=this.splitTextToSize(String(r[u]),t[u]-i),o=this.internal.getLineHeight()*r[u].length+i,o>f&&(f=o);return f};n.setTableHeaderRow=function(n){this.tableHeaderRow=n};n.printHeaderRow=function(n,t){var u,c,s,l,i,h;if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";for(this.printingHeaderRow=!0,e!==undefined&&(i=e(this,r),o(i[0],i[1],i[2],i[3],-1)),this.setFontStyle("bold"),h=[],s=0,l=this.tableHeaderRow.length;s<l;s+=1)this.setFillColor(200,200,200),u=this.tableHeaderRow[s],t&&(this.margins.top=f,u[1]=this.margins&&this.margins.top||0,h.push(u)),c=[].concat(u),this.cell.apply(this,c.concat(n));h.length>0&&this.setTableHeaderRow(h);this.setFontStyle("normal");this.printingHeaderRow=!1}}(t.API),function(n){function i(){this._isStrokeTransparent=!1;this._strokeOpacity=1;this.strokeStyle="#000000";this.fillStyle="#000000";this._isFillTransparent=!1;this._fillOpacity=1;this.font="12pt times";this.textBaseline="alphabetic";this.textAlign="start";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this._transform=[1,0,0,1,0,0];this.globalCompositeOperation="normal";this.globalAlpha=1;this._clip_path=[];this.ignoreClearRect=!1;this.copy=function(n){this._isStrokeTransparent=n._isStrokeTransparent;this._strokeOpacity=n._strokeOpacity;this.strokeStyle=n.strokeStyle;this._isFillTransparent=n._isFillTransparent;this._fillOpacity=n._fillOpacity;this.fillStyle=n.fillStyle;this.font=n.font;this.lineWidth=n.lineWidth;this.lineJoin=n.lineJoin;this.lineCap=n.lineCap;this.textBaseline=n.textBaseline;this.textAlign=n.textAlign;this._fontSize=n._fontSize;this._transform=n._transform.slice(0);this.globalCompositeOperation=n.globalCompositeOperation;this.globalAlpha=n.globalAlpha;this._clip_path=n._clip_path.slice(0);this.ignoreClearRect=n.ignoreClearRect}}n.events.push(["initialized",function(){this.context2d.pdf=this;this.context2d.internal.pdf=this;this.context2d.ctx=new i;this.context2d.ctxStack=[];this.context2d.path=[]}]);n.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!1,pageWrapX:9999999,pageWrapY:9999999,ctx:new i,f2:function(n){return n.toFixed(2)},fillRect:function(n,t,i,r){if(!this._isFillTransparent()){n=this._wrapX(n);t=this._wrapY(t);var u=this._matrix_map_rect(this.ctx._transform,{x:n,y:t,w:i,h:r});this.pdf.rect(u.x,u.y,u.w,u.h,"f")}},strokeRect:function(n,t,i,r){if(!this._isStrokeTransparent()){n=this._wrapX(n);t=this._wrapY(t);var u=this._matrix_map_rect(this.ctx._transform,{x:n,y:t,w:i,h:r});this.pdf.rect(u.x,u.y,u.w,u.h,"s")}},clearRect:function(n,t,i,r){if(!this.ctx.ignoreClearRect){n=this._wrapX(n);t=this._wrapY(t);var u=this._matrix_map_rect(this.ctx._transform,{x:n,y:t,w:i,h:r});this.save();this.setFillStyle("#ffffff");this.pdf.rect(u.x,u.y,u.w,u.h,"f");this.restore()}},save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize();var n=new i;n.copy(this.ctx);this.ctxStack.push(this.ctx);this.ctx=n},restore:function(){this.ctx=this.ctxStack.pop();this.setFillStyle(this.ctx.fillStyle);this.setStrokeStyle(this.ctx.strokeStyle);this.setFont(this.ctx.font);this.pdf.setFontSize(this.ctx._fontSize);this.setLineCap(this.ctx.lineCap);this.setLineWidth(this.ctx.lineWidth);this.setLineJoin(this.ctx.lineJoin)},rect:function(n,t,i,r){this.moveTo(n,t);this.lineTo(n+i,t);this.lineTo(n+i,t+r);this.lineTo(n,t+r);this.lineTo(n,t);this.closePath()},beginPath:function(){this.path=[]},closePath:function(){this.path.push({type:"close"})},_getRGBA:function(n){var i,r,f,e,t;return n?(this.internal.rxTransparent.test(n)?(i=0,r=0,f=0,e=0):(t=this.internal.rxRgb.exec(n),t!=null?(i=parseInt(t[1]),r=parseInt(t[2]),f=parseInt(t[3]),e=1):(t=this.internal.rxRgba.exec(n),t!=null?(i=parseInt(t[1]),r=parseInt(t[2]),f=parseInt(t[3]),e=parseFloat(t[4])):(e=1,n.charAt(0)!="#"&&(n=u.colorNameToHex(n),n||(n="#000000")),n.length===4?(i=n.substring(1,2),i+=i,r=n.substring(2,3),r+=r,f=n.substring(3,4)+f):(i=n.substring(1,3),r=n.substring(3,5),f=n.substring(5,7)),i=parseInt(i,16),r=parseInt(r,16),f=parseInt(f,16)))),{r:i,g:r,b:f,a:e,style:n}):{r:0,g:0,b:0,a:0,style:n}},setFillStyle:function(n){var t=this._getRGBA(n);this.ctx.fillStyle=n;this.ctx._isFillTransparent=t.a===0;this.ctx._fillOpacity=t.a;this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a});this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})},setStrokeStyle:function(n){var t=this._getRGBA(n);this.ctx.strokeStyle=t.style;this.ctx._isStrokeTransparent=t.a===0;this.ctx._strokeOpacity=t.a;t.a===0?this.pdf.setDrawColor(255,255,255):t.a===1?this.pdf.setDrawColor(t.r,t.g,t.b):this.pdf.setDrawColor(t.r,t.g,t.b)},fillText:function(n,t,i){var u,s,f,e,h,r,o;if(!this._isFillTransparent()){t=this._wrapX(t);i=this._wrapY(i);u=this._matrix_map_point(this.ctx._transform,[t,i]);t=u[0];i=u[1];s=this._matrix_rotation(this.ctx._transform);f=s*57.2958;this.ctx._clip_path.length>0&&(e=window.outIntercept?window.outIntercept.type==="group"?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),e.push("q"),h=this.path,this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=h);r=1;try{r=this._matrix_decompose(this._getTransform()).scale[0]}catch(c){console.warn(c)}r<.01?this.pdf.text(n,t,this._getBaseline(i),null,f):(o=this.pdf.internal.getFontSize(),this.pdf.setFontSize(o*r),this.pdf.text(n,t,this._getBaseline(i),null,f),this.pdf.setFontSize(o));this.ctx._clip_path.length>0&&e.push("Q")}},strokeText:function(n,t,i){var u,s,f,e,h,r,o;if(!this._isStrokeTransparent()){t=this._wrapX(t);i=this._wrapY(i);u=this._matrix_map_point(this.ctx._transform,[t,i]);t=u[0];i=u[1];s=this._matrix_rotation(this.ctx._transform);f=s*57.2958;this.ctx._clip_path.length>0&&(e=window.outIntercept?window.outIntercept.type==="group"?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),e.push("q"),h=this.path,this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=h);r=1;try{r=this._matrix_decompose(this._getTransform()).scale[0]}catch(c){console.warn(c)}r===1?this.pdf.text(n,t,this._getBaseline(i),{stroke:!0},f):(o=this.pdf.internal.getFontSize(),this.pdf.setFontSize(o*r),this.pdf.text(n,t,this._getBaseline(i),{stroke:!0},f),this.pdf.setFontSize(o));this.ctx._clip_path.length>0&&e.push("Q")}},setFont:function(n){var s,t,c,u,f,i;if(this.ctx.font=n,f=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+(.*)?/,i=f.exec(n),i!=null){var l=i[1],e=i[3],r=i[4],o=i[5],a=i[6];r="px"===o?Math.floor(parseFloat(r)):"em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r));this.pdf.setFontSize(r);e==="bold"||e==="700"?this.pdf.setFontStyle("bold"):l==="italic"?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal");s=a;t=s.toLowerCase().split(/\s*,\s*/);c=t.indexOf("arial")!=-1?"Arial":t.indexOf("verdana")!=-1?"Verdana":t.indexOf("helvetica")!=-1?"Helvetica":t.indexOf("sans-serif")!=-1?"sans-serif":t.indexOf("fixed")!=-1?"Fixed":t.indexOf("monospace")!=-1?"Monospace":t.indexOf("terminal")!=-1?"Terminal":t.indexOf("courier")!=-1?"Courier":t.indexOf("times")!=-1?"Times":t.indexOf("cursive")!=-1?"Cursive":t.indexOf("fantasy")!=-1?"Fantasy":t.indexOf("serif")!=-1?"Serif":"Serif";u="bold"===e?"bold":"normal";this.pdf.setFont(c,u)}else if(f=/\s*(\d+)(pt|px|em)\s+([\w "]+)\s*([\w "]+)?/,i=f.exec(n),i!=null){var h=i[1],s=i[3],u=i[4];u||(u="normal");h="em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(h));this.pdf.setFontSize(h);this.pdf.setFont(s,u)}},setTextBaseline:function(n){this.ctx.textBaseline=n},getTextBaseline:function(){return this.ctx.textBaseline},setTextAlign:function(n){this.ctx.textAlign=n},getTextAlign:function(){return this.ctx.textAlign},setLineWidth:function(n){this.ctx.lineWidth=n;this.pdf.setLineWidth(n)},setLineCap:function(n){this.ctx.lineCap=n;this.pdf.setLineCap(n)},setLineJoin:function(n){this.ctx.lineJoin=n;this.pdf.setLineJoin(n)},moveTo:function(n,t){var i,r;n=this._wrapX(n);t=this._wrapY(t);i=this._matrix_map_point(this.ctx._transform,[n,t]);n=i[0];t=i[1];r={type:"mt",x:n,y:t};this.path.push(r)},_wrapX:function(n){return this.pageWrapXEnabled?n%this.pageWrapX:n},_wrapY:function(n){return this.pageWrapYEnabled?(this._gotoPage(this._page(n)),(n-this.lastBreak)%this.pageWrapY):n},transform:function(n,t,i,r,u,f){this.ctx._transform=[n,t,i,r,u,f]},setTransform:function(n,t,i,r,u,f){this.ctx._transform=[n,t,i,r,u,f]},_getTransform:function(){return this.ctx._transform},lastBreak:0,pageBreaks:[],_page:function(n){var u,i,t,f,r;if(this.pageWrapYEnabled){for(this.lastBreak=0,u=0,i=0,t=0;t<this.pageBreaks.length;t++)n>=this.pageBreaks[t]&&(u++,this.lastBreak===0&&i++,f=this.pageBreaks[t]-this.lastBreak,this.lastBreak=this.pageBreaks[t],r=Math.floor(f/this.pageWrapY),i+=r);return this.lastBreak===0&&(r=Math.floor(n/this.pageWrapY)+1,i+=r),i+u}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(){},lineTo:function(n,t){var i,r;n=this._wrapX(n);t=this._wrapY(t);i=this._matrix_map_point(this.ctx._transform,[n,t]);n=i[0];t=i[1];r={type:"lt",x:n,y:t};this.path.push(r)},bezierCurveTo:function(n,t,i,r,u,f){var e,o;n=this._wrapX(n);t=this._wrapY(t);i=this._wrapX(i);r=this._wrapY(r);u=this._wrapX(u);f=this._wrapY(f);e=this._matrix_map_point(this.ctx._transform,[u,f]);u=e[0];f=e[1];e=this._matrix_map_point(this.ctx._transform,[n,t]);n=e[0];t=e[1];e=this._matrix_map_point(this.ctx._transform,[i,r]);i=e[0];r=e[1];o={type:"bct",x1:n,y1:t,x2:i,y2:r,x:u,y:f};this.path.push(o)},quadraticCurveTo:function(n,t,i,r){var u,f;n=this._wrapX(n);t=this._wrapY(t);i=this._wrapX(i);r=this._wrapY(r);u=this._matrix_map_point(this.ctx._transform,[i,r]);i=u[0];r=u[1];u=this._matrix_map_point(this.ctx._transform,[n,t]);n=u[0];t=u[1];f={type:"qct",x1:n,y1:t,x:i,y:r};this.path.push(f)},arc:function(n,t,i,r,u,f){var e,o,s,h;n=this._wrapX(n);t=this._wrapY(t);this._matrix_is_identity(this.ctx._transform)||(e=this._matrix_map_point(this.ctx._transform,[n,t]),n=e[0],t=e[1],o=this._matrix_map_point(this.ctx._transform,[0,0]),s=this._matrix_map_point(this.ctx._transform,[0,i]),i=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)));h={type:"arc",x:n,y:t,radius:i,startAngle:r,endAngle:u,anticlockwise:f};this.path.push(h)},drawImage:function(n,t,i,r,u,f,e,o,s){f!==undefined&&(t=f,i=e,r=o,u=s);t=this._wrapX(t);i=this._wrapY(i);var h=this._matrix_map_rect(this.ctx._transform,{x:t,y:i,w:r,h:u}),a=this._matrix_map_rect(this.ctx._transform,{x:f,y:e,w:o,h:s}),c,l=/data:image\/(\w+).*/i.exec(n);c=l!=null?l[1]:"png";this.pdf.addImage(n,c,h.x,h.y,h.w,h.h)},_matrix_multiply:function(n,t){var i=t[0],r=t[1],u=t[2],f=t[3],e=t[4],o=t[5],s=i*n[0]+r*n[2],h=u*n[0]+f*n[2],c=e*n[0]+o*n[2]+n[4];return r=i*n[1]+r*n[3],f=u*n[1]+f*n[3],o=e*n[1]+o*n[3]+n[5],i=s,u=h,e=c,[i,r,u,f,e,o]},_matrix_rotation:function(n){return Math.atan2(n[2],n[0])},_matrix_decompose:function(n){var t=n[0],i=n[1],u=n[2],f=n[3],e=Math.sqrt(t*t+i*i),r,o;return t/=e,i/=e,r=t*u+i*f,u-=t*r,f-=i*r,o=Math.sqrt(u*u+f*f),u/=o,f/=o,r/=o,t*f<i*u&&(t=-t,i=-i,r=-r,e=-e),{scale:[e,0,0,o,0,0],translate:[1,0,0,1,n[4],n[5]],rotate:[t,i,-i,t,0,0],skew:[1,0,r,1,0,0]}},_matrix_map_point:function(n,t){var u=n[0],f=n[1],e=n[2],o=n[3],s=n[4],h=n[5],i=t[0],r=t[1],c=i*u+r*e+s,l=i*f+r*o+h;return[c,l]},_matrix_map_point_obj:function(n,t){var i=this._matrix_map_point(n,[t.x,t.y]);return{x:i[0],y:i[1]}},_matrix_map_rect:function(n,t){var i=this._matrix_map_point(n,[t.x,t.y]),r=this._matrix_map_point(n,[t.x+t.w,t.y+t.h]);return{x:i[0],y:i[1],w:r[0]-i[0],h:r[1]-i[1]}},_matrix_is_identity:function(n){return n[0]!=1?!1:n[1]!=0?!1:n[2]!=0?!1:n[3]!=1?!1:n[4]!=0?!1:n[5]!=0?!1:!0},rotate:function(n){var t=[Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,t)},scale:function(n,t){var i=[n,0,0,t,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,i)},translate:function(n,t){var i=[1,0,0,1,n,t];this.ctx._transform=this._matrix_multiply(this.ctx._transform,i)},stroke:function(){var n,t;this.ctx._clip_path.length>0?(n=window.outIntercept?window.outIntercept.type==="group"?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),n.push("q"),t=this.path,this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=t,this._stroke(!1),n.push("Q")):this._stroke(!1)},_stroke:function(n){var i,u,r,e,t,c,l,o,s,h;if(n||!this._isStrokeTransparent()){for(i=[],u=this.path,t=0;t<u.length;t++){r=u[t];switch(r.type){case"mt":i.push({start:r,deltas:[],abs:[]});break;case"lt":e=[r.x-u[t-1].x,r.y-u[t-1].y];i[i.length-1].deltas.push(e);i[i.length-1].abs.push(r);break;case"bct":e=[r.x1-u[t-1].x,r.y1-u[t-1].y,r.x2-u[t-1].x,r.y2-u[t-1].y,r.x-u[t-1].x,r.y-u[t-1].y];i[i.length-1].deltas.push(e);break;case"qct":var a=u[t-1].x+2/3*(r.x1-u[t-1].x),v=u[t-1].y+2/3*(r.y1-u[t-1].y),y=r.x+2/3*(r.x1-r.x),p=r.y+2/3*(r.y1-r.y),w=r.x,b=r.y,e=[a-u[t-1].x,v-u[t-1].y,y-u[t-1].x,p-u[t-1].y,w-u[t-1].x,b-u[t-1].y];i[i.length-1].deltas.push(e);break;case"arc":i.length==0&&i.push({start:{x:0,y:0},deltas:[],abs:[]});i[i.length-1].arc=!0;i[i.length-1].abs.push(r)}}for(t=0;t<i.length;t++)if(c=t==i.length-1?"s":null,i[t].arc)for(l=i[t].abs,o=0;o<l.length;o++){var f=l[o],k=f.startAngle*360/(2*Math.PI),d=f.endAngle*360/(2*Math.PI),s=f.x,h=f.y;this.internal.arc2(this,s,h,f.radius,k,d,f.anticlockwise,c,n)}else s=i[t].start.x,h=i[t].start.y,n?(this.pdf.lines(i[t].deltas,s,h,null,null),this.pdf.clip_fixed()):this.pdf.lines(i[t].deltas,s,h,null,c)}},_isFillTransparent:function(){return this.ctx._isFillTransparent||this.globalAlpha==0},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||this.globalAlpha==0},fill:function(n){var t,i;this.ctx._clip_path.length>0?(t=window.outIntercept?window.outIntercept.type==="group"?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),t.push("q"),i=this.path,this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(n,!0),this.ctx._clip_path=this.path,this.path=i,this._fill(n,!1),t.push("Q")):this._fill(n,!1)},_fill:function(n,i){var d,p,u,tt,g,l,it,nt,w,s,a,e,f,y,r,b,k,v,o,h,c;if(!this._isFillTransparent()){if(d=typeof this.pdf.internal.newObject2=="function",p=window.outIntercept?window.outIntercept.type==="group"?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),u=[],tt=window.outIntercept,d)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":g=this.pdf.internal.newStreamObject();l=this.pdf.internal.newObject2();l.push("<<\/Type /ExtGState");l.push("/SMask <<\/S /Alpha /G "+g.objId+" 0 R>>");l.push(">>");a="MASK"+l.objId;this.pdf.internal.addGraphicsState(a,l.objId);it="/"+a+" gs";p.splice(0,0,"q");p.splice(1,0,it);p.push("Q");window.outIntercept=g;break;default:nt="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];nt&&this.pdf.internal.out(nt+" gs")}for(w=this.ctx.globalAlpha,this.ctx._fillOpacity<1&&(w=this.ctx._fillOpacity),d&&(s=this.pdf.internal.newObject2(),s.push("<<\/Type /ExtGState"),s.push("/CA "+w),s.push("/ca "+w),s.push(">>"),a="GS_O_"+s.objId,this.pdf.internal.addGraphicsState(a,s.objId),this.pdf.internal.out("/"+a+" gs")),e=this.path,r=0;r<e.length;r++){f=e[r];switch(f.type){case"mt":u.push({start:f,deltas:[],abs:[]});break;case"lt":y=[f.x-e[r-1].x,f.y-e[r-1].y];u[u.length-1].deltas.push(y);u[u.length-1].abs.push(f);break;case"bct":y=[f.x1-e[r-1].x,f.y1-e[r-1].y,f.x2-e[r-1].x,f.y2-e[r-1].y,f.x-e[r-1].x,f.y-e[r-1].y];u[u.length-1].deltas.push(y);break;case"qct":var rt=e[r-1].x+2/3*(f.x1-e[r-1].x),ut=e[r-1].y+2/3*(f.y1-e[r-1].y),ft=f.x+2/3*(f.x1-f.x),et=f.y+2/3*(f.y1-f.y),ot=f.x,st=f.y,y=[rt-e[r-1].x,ut-e[r-1].y,ft-e[r-1].x,et-e[r-1].y,ot-e[r-1].x,st-e[r-1].y];u[u.length-1].deltas.push(y);break;case"arc":u.length===0&&u.push({deltas:[],abs:[]});u[u.length-1].arc=!0;u[u.length-1].abs.push(f);break;case"close":u.push({close:!0})}}for(r=0;r<u.length;r++)if(r==u.length-1?(b="f",n==="evenodd"&&(b+="*")):b=null,u[r].close)this.pdf.internal.out("h"),this.pdf.internal.out("f");else if(u[r].arc)for(u[r].start&&this.internal.move2(this,u[r].start.x,u[r].start.y),k=u[r].abs,v=0;v<k.length;v++)if(o=k[v],typeof o.startAngle!="undefined"){var ht=o.startAngle*360/(2*Math.PI),ct=o.endAngle*360/(2*Math.PI),h=o.x,c=o.y;v===0&&this.internal.move2(this,h,c);this.internal.arc2(this,h,c,o.radius,ht,ct,o.anticlockwise,null,i);v===k.length-1&&u[r].start&&(h=u[r].start.x,c=u[r].start.y,this.internal.line2(t,h,c))}else this.internal.line2(t,o.x,o.y);else h=u[r].start.x,c=u[r].start.y,i?(this.pdf.lines(u[r].deltas,h,c,null,null),this.pdf.clip_fixed()):this.pdf.lines(u[r].deltas,h,c,null,b);window.outIntercept=tt}},pushMask:function(){var u=typeof this.pdf.internal.newObject2=="function",i,n,t,r;if(!u){console.log("jsPDF v2 not enabled");return}i=this.pdf.internal.newStreamObject();n=this.pdf.internal.newObject2();n.push("<<\/Type /ExtGState");n.push("/SMask <<\/S /Alpha /G "+i.objId+" 0 R>>");n.push(">>");t="MASK"+n.objId;this.pdf.internal.addGraphicsState(t,n.objId);r="/"+t+" gs";this.pdf.internal.out(r)},clip:function(){if(this.ctx._clip_path.length>0)for(var n=0;n<this.path.length;n++)this.ctx._clip_path.push(this.path[n]);else this.ctx._clip_path=this.path;this.path=[]},measureText:function(n){var t=this.pdf;return{getWidth:function(){var i=t.internal.getFontSize(),r=t.getStringUnitWidth(n)*i/t.internal.scaleFactor;return r*1.3333},get width(){return this.getWidth(n)}}},_getBaseline:function(n){var t=parseInt(this.pdf.internal.getFontSize()),i=t*.25;switch(this.ctx.textBaseline){case"bottom":return n-i;case"top":return n+t;case"hanging":return n+t-i;case"middle":return n+t/2-i;case"ideographic":return n;case"alphabetic":default:return n}}};var t=n.context2d;return Object.defineProperty(t,"fillStyle",{set:function(n){this.setFillStyle(n)},get:function(){return this.ctx.fillStyle}}),Object.defineProperty(t,"strokeStyle",{set:function(n){this.setStrokeStyle(n)},get:function(){return this.ctx.strokeStyle}}),Object.defineProperty(t,"lineWidth",{set:function(n){this.setLineWidth(n)},get:function(){return this.ctx.lineWidth}}),Object.defineProperty(t,"lineCap",{set:function(n){this.setLineCap(n)},get:function(){return this.ctx.lineCap}}),Object.defineProperty(t,"lineJoin",{set:function(n){this.setLineJoin(n)},get:function(){return this.ctx.lineJoin}}),Object.defineProperty(t,"miterLimit",{set:function(n){this.ctx.miterLimit=n},get:function(){return this.ctx.miterLimit}}),Object.defineProperty(t,"textBaseline",{set:function(n){this.setTextBaseline(n)},get:function(){return this.getTextBaseline()}}),Object.defineProperty(t,"textAlign",{set:function(n){this.setTextAlign(n)},get:function(){return this.getTextAlign()}}),Object.defineProperty(t,"font",{set:function(n){this.setFont(n)},get:function(){return this.ctx.font}}),Object.defineProperty(t,"globalCompositeOperation",{set:function(n){this.ctx.globalCompositeOperation=n},get:function(){return this.ctx.globalCompositeOperation}}),Object.defineProperty(t,"globalAlpha",{set:function(n){this.ctx.globalAlpha=n},get:function(){return this.ctx.globalAlpha}}),Object.defineProperty(t,"ignoreClearRect",{set:function(n){this.ctx.ignoreClearRect=n},get:function(){return this.ctx.ignoreClearRect}}),t.internal={},t.internal.rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,t.internal.rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,t.internal.rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,t.internal.arc=function(n,t,i,r,u,f,e,o){for(var s,h=this.pdf.internal.scaleFactor,l=this.pdf.internal.pageSize.height,c=this.pdf.internal.f2,y=u*(Math.PI/180),p=f*(Math.PI/180),v=this.createArc(r,y,p,e),a=0;a<v.length;a++)s=v[a],!0&&a===0?this.pdf.internal.out([c((s.x1+t)*h),c((l-(s.y1+i))*h),"m",c((s.x2+t)*h),c((l-(s.y2+i))*h),c((s.x3+t)*h),c((l-(s.y3+i))*h),c((s.x4+t)*h),c((l-(s.y4+i))*h),"c"].join(" ")):this.pdf.internal.out([c((s.x2+t)*h),c((l-(s.y2+i))*h),c((s.x3+t)*h),c((l-(s.y3+i))*h),c((s.x4+t)*h),c((l-(s.y4+i))*h),"c"].join(" ")),n._lastPoint={x:t,y:i};o!==null&&this.pdf.internal.out(this.pdf.internal.getStyle(o))},t.internal.arc2=function(n,t,i,r,u,f,e,o,s){var h=t,c=i;s?(this.arc(n,h,c,r,u,f,e,null),this.pdf.clip_fixed()):this.arc(n,h,c,r,u,f,e,o)},t.internal.move2=function(n,t,i){var r=this.pdf.internal.scaleFactor,f=this.pdf.internal.pageSize.height,u=this.pdf.internal.f2;this.pdf.internal.out([u(t*r),u((f-i)*r),"m"].join(" "));n._lastPoint={x:t,y:i}},t.internal.line2=function(n,t,i){var u=this.pdf.internal.scaleFactor,e=this.pdf.internal.pageSize.height,f=this.pdf.internal.f2,r={x:t,y:i};this.pdf.internal.out([f(r.x*u),f((e-r.y)*u),"l"].join(" "));n._lastPoint=r},t.internal.createArc=function(n,t,i,r){var f=Math.PI*2,l=Math.PI/2,u=t,e,c,s;for((u<f||u>f)&&(u=u%f),u<0&&(u=f+u);t>i;)t=t-f;e=Math.abs(i-t);e<f&&r&&(e=f-e);for(var h=[],a=r?-1:1,o=u;e>1e-5;)c=a*Math.min(e,l),s=o+c,h.push(this.createSmallArc(n,o,s)),e-=Math.abs(s-o),o=s;return h},t.internal.getCurrentPage=function(){return this.pdf.internal.pages[this.pdf.internal.getCurrentPageInfo().pageNumber]},t.internal.createSmallArc=function(n,t,i){var o=(i-t)/2,s=n*Math.cos(o),h=n*Math.sin(o),r=s,u=-h,a=r*r+u*u,v=a+r*s+u*h,y=4/3*(Math.sqrt(2*a*v)-v)/(r*h-u*s),c=r-y*u,l=u+y*r,p=c,w=-l,b=o+t,f=Math.cos(b),e=Math.sin(b);return{x1:n*Math.cos(t),y1:n*Math.sin(t),x2:c*f-l*e,y2:c*e+l*f,x3:p*f-w*e,y3:p*e+w*f,x4:n*Math.cos(i),y4:n*Math.sin(i)}},this}(t.API);
/** @preserve
 * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 Daniel Husar, https://github.com/danielhusar
 *               2014 Wolfgang Gassler, https://github.com/woolfg
 *               2014 Steven Spungin, https://github.com/flamenco
 *
 * 
 * ====================================================================
 */
(function(n){var l,f,y,p,w,b,k,d,o,a,t,g,i,e,s,h,nt,tt,it,rt,c,v;l=function(){function n(){}return function(t){return n.prototype=t,new n}}();a=function(n){var i,t,r,u,o,f,e;for(t=0,r=n.length,i=void 0,u=!1,f=!1;!u&&t!==r;)i=n[t]=n[t].trimLeft(),i&&(u=!0),t++;for(t=r-1;r&&!f&&t!==-1;)i=n[t]=n[t].trimRight(),i&&(f=!0),t--;for(o=/\s+$/g,e=!0,t=0;t!==r;)n[t]!="\u2028"&&(i=n[t].replace(/\s+/g," "),e&&(i=i.trimLeft()),i&&(e=o.test(i)),n[t]=i),t++;return n};t=function(n,t,i,r){return this.pdf=n,this.x=t,this.y=i,this.settings=r,this.watchFunctions=[],this.init(),this};g=function(n){var t,i,r;for(t=void 0,r=n.split(","),i=r.shift();!t&&i;)t=y[i.trim().toLowerCase()],i=r.shift();return t};i=function(n){n=n==="auto"?"0px":n;n.indexOf("em")>-1&&!isNaN(Number(n.replace("em","")))&&(n=Number(n.replace("em",""))*18.719+"px");n.indexOf("pt")>-1&&!isNaN(Number(n.replace("pt","")))&&(n=Number(n.replace("pt",""))*1.333+"px");var i,r,t;return(r=void 0,i=16,t=e[n],t)?t:e[n]=(t={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[{css_line_height_string:n}],t!==r)?t/i:(t=parseFloat(n))?t/i:(t=n.match(/([\d\.]+)(px)/),t.length===3)?parseFloat(t[1])/i:1};o=function(n){var t,u,r;return r=function(n){var t;return t=function(n){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(n,null):n.currentStyle?n.currentStyle:n.style}(n),function(n){return n=n.replace(/-\D/g,function(n){return n.charAt(1).toUpperCase()}),t[n]}}(n),t={},u=void 0,t["font-family"]=g(r("font-family"))||"times",t["font-style"]=p[r("font-style")]||"normal",t["text-align"]=w[r("text-align")]||"left",u=b[r("font-weight")]||"normal",u==="bold"&&(t["font-style"]=t["font-style"]==="normal"?u:u+t["font-style"]),t["font-size"]=i(r("font-size"))||1,t["line-height"]=i(r("line-height"))||1,t.display=r("display")==="inline"?"inline":"block",u=t.display==="block",t["margin-top"]=u&&i(r("margin-top"))||0,t["margin-bottom"]=u&&i(r("margin-bottom"))||0,t["padding-top"]=u&&i(r("padding-top"))||0,t["padding-bottom"]=u&&i(r("padding-bottom"))||0,t["margin-left"]=u&&i(r("margin-left"))||0,t["margin-right"]=u&&i(r("margin-right"))||0,t["padding-left"]=u&&i(r("padding-left"))||0,t["padding-right"]=u&&i(r("padding-right"))||0,t["page-break-before"]=r("page-break-before")||"auto",t.float=k[r("cssFloat")]||"none",t.clear=d[r("clear")]||"none",t.color=r("color"),t};s=function(n,t,i){var r,u,f,e,o;if(f=!1,u=void 0,e=void 0,r=i["#"+n.id],r)if(typeof r=="function")f=r(n,t);else for(u=0,e=r.length;!f&&u!==e;)f=r[u](n,t),u++;if(r=i[n.nodeName],!f&&r)if(typeof r=="function")f=r(n,t);else for(u=0,e=r.length;!f&&u!==e;)f=r[u](n,t),u++;for(o=n.className?n.className.split(" "):[],u=0;u<o.length;u++)if(r=i["."+o[u]],!f&&r)if(typeof r=="function")f=r(n,t);else for(u=0,e=r.length;!f&&u!==e;)f=r[u](n,t),u++;return f};rt=function(n,t){var e,u,i,r,o,s,h,f,c;for(e=[],u=[],i=0,c=n.rows[0].cells.length,h=n.clientWidth;i<c;)f=n.rows[0].cells[i],u[i]={name:f.textContent.toLowerCase().replace(/\s+/g,""),prompt:f.textContent.replace(/\r?\n/g,""),width:f.clientWidth/h*t.pdf.internal.pageSize.width},i++;for(i=1;i<n.rows.length;){for(s=n.rows[i],o={},r=0;r<s.cells.length;)o[u[r].name]=s.cells[r].textContent.replace(/\r?\n/g,""),r++;e.push(o);i++}return{rows:e,headers:u}};c={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1};v=1;f=function(n,t,i){var u,g,a,y,nt,et,tt,ot,st,ht,p,it,at,d;for(g=n.childNodes,u=void 0,a=o(n),nt=a.display==="block",nt&&(t.setBlockBoundary(),t.setBlockStyle(a)),y=0,et=g.length;y<et;){if(u=g[y],(typeof u=="undefined"?"undefined":r(u))==="object")if(t.executeWatchFunctions(u),u.nodeType===1&&u.nodeName==="HEADER"&&(st=u,ht=t.pdf.margins_doc.top,t.pdf.internal.events.subscribe("addPage",function(){t.y=ht;f(st,t,i);t.pdf.margins_doc.top=t.y+10;t.y+=10},!1)),u.nodeType===8&&u.nodeName==="#comment")~u.textContent.indexOf("ADD_PAGE")&&(t.pdf.addPage(),t.y=t.pdf.margins_doc.top);else if(u.nodeType!==1||c[u.nodeName])if(u.nodeType===3){if(d=u.nodeValue,u.nodeValue&&u.parentNode.nodeName==="LI")if(u.parentNode.parentNode.nodeName==="OL")d=v+++". "+d;else{var ft=a["font-size"],vt=(3-ft*.75)*t.pdf.internal.scaleFactor,yt=ft*.75*t.pdf.internal.scaleFactor,pt=ft*1.74/t.pdf.internal.scaleFactor;ot=function(n,t){this.pdf.circle(n+vt,t+yt,pt,"FD")}}!(u.ownerDocument.body.compareDocumentPosition(u)&16)||t.addText(d,a)}else typeof u=="string"&&t.addText(u,a);else if(u.nodeName==="IMG"&&(it=u.getAttribute("src"),p=h[t.pdf.sHashCode(it)||it]),p){t.pdf.internal.pageSize.height-t.pdf.margins_doc.bottom<t.y+u.height&&t.y>t.pdf.margins_doc.top&&(t.pdf.addPage(),t.y=t.pdf.margins_doc.top,t.executeWatchFunctions(u));var e=o(u),ct=t.x,w=12/t.pdf.internal.scaleFactor,b=(e["margin-left"]+e["padding-left"])*w,k=(e["margin-right"]+e["padding-right"])*w,ut=(e["margin-top"]+e["padding-top"])*w,lt=(e["margin-bottom"]+e["padding-bottom"])*w;ct+=e.float!==undefined&&e.float==="right"?t.settings.width-u.width-k:b;t.pdf.addImage(p,ct,t.y+ut,u.width,u.height);p=undefined;e.float==="right"||e.float==="left"?(t.watchFunctions.push(function(n,i,r,u){return t.y>=i?(t.x+=n,t.settings.width+=r,!0):u&&u.nodeType===1&&!c[u.nodeName]&&t.x+u.width>t.pdf.margins_doc.left+t.pdf.margins_doc.width?(t.x+=n,t.y=i,t.settings.width+=r,!0):!1}.bind(this,e.float==="left"?-u.width-b-k:0,t.y+u.height+ut+lt,u.width)),t.watchFunctions.push(function(n,i,r){return t.y<n&&i===t.pdf.internal.getNumberOfPages()?r.nodeType===1&&o(r).clear==="both"?(t.y=n,!0):!1:!0}.bind(this,t.y+u.height,t.pdf.internal.getNumberOfPages())),t.settings.width-=u.width+b+k,e.float==="left"&&(t.x+=u.width+b+k)):t.y+=u.height+ut+lt}else u.nodeName==="TABLE"?(tt=rt(u,t),t.y+=10,t.pdf.table(t.x,t.y,tt.rows,tt.headers,{autoSize:!1,printHeaders:i.printHeaders,margins:t.pdf.margins_doc,css:o(u)}),t.y=t.pdf.lastCellPos.y+t.pdf.lastCellPos.h+20):u.nodeName==="OL"||u.nodeName==="UL"?(v=1,s(u,t,i)||f(u,t,i),t.y+=10):u.nodeName==="LI"?(at=t.x,t.x+=20/t.pdf.internal.scaleFactor,t.y+=3,s(u,t,i)||f(u,t,i),t.x=at):u.nodeName==="BR"?(t.y+=a["font-size"]*t.pdf.internal.scaleFactor,t.addText("\u2028",l(a))):s(u,t,i)||f(u,t,i);y++}return i.outY=t.y,nt?t.setBlockBoundary(ot):void 0};h={};nt=function(n,t,i,r){function s(){t.pdf.internal.events.publish("imagesLoaded");r(o)}function c(n,i,r){if(n){var u=new Image;o=++e;u.crossOrigin="";u.onerror=u.onload=function(){if(u.complete&&(u.src.indexOf("data:image/")===0&&(u.width=i||u.width||0,u.height=r||u.height||0),u.width+u.height)){var f=t.pdf.sHashCode(n)||n;h[f]=h[f]||u}--e||s()};u.src=n}}for(var u=n.getElementsByTagName("img"),f=u.length,o,e=0;f--;)c(u[f].getAttribute("src"),u[f].width,u[f].height);return e||s()};tt=function(n,t,i){var r=n.getElementsByTagName("footer"),l,o,u,s,h,e;if(r.length>0){for(r=r[0],l=t.pdf.internal.write,o=t.y,t.pdf.internal.write=function(){},f(r,t,i),u=Math.ceil(t.y-o)+5,t.y=o,t.pdf.internal.write=l,t.pdf.margins_doc.bottom+=u,s=function(n){var s=n!==undefined?n.pageNumber:1,h=t.y,o,e;for(t.y=t.pdf.internal.pageSize.height-t.pdf.margins_doc.bottom,t.pdf.margins_doc.bottom-=u,o=r.getElementsByTagName("span"),e=0;e<o.length;++e)(" "+o[e].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")>-1&&(o[e].innerHTML=s),(" "+o[e].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&(o[e].innerHTML="###jsPDFVarTotalPages###");f(r,t,i);t.pdf.margins_doc.bottom+=u;t.y=h},h=r.getElementsByTagName("span"),e=0;e<h.length;++e)(" "+h[e].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&t.pdf.internal.events.subscribe("htmlRenderingFinished",t.pdf.putTotalPages.bind(t.pdf,"###jsPDFVarTotalPages###"),!0);t.pdf.internal.events.subscribe("addPage",s,!1);s();c.FOOTER=1}};it=function(n,i,r,u,e,o){if(!i)return!1;typeof i=="string"||i.parentNode||(i=""+i.innerHTML);typeof i=="string"&&(i=function(n){var t,i,r,u;return r="jsPDFhtmlText"+Date.now().toString()+(Math.random()*1e3).toFixed(0),u="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",i=document.createElement("div"),i.style.cssText=u,i.innerHTML='<iframe style="height:1px;width:1px" name="'+r+'" />',document.body.appendChild(i),t=window.frames[r],t.document.open(),t.document.writeln(n),t.document.close(),t.document.body}(i.replace(/<\/?script[^>]*?>/gi,"")));var s=new t(n,r,u,e),h;return nt.call(this,i,s,e.elementHandlers,function(n){tt(i,s,e.elementHandlers);f(i,s,e.elementHandlers);s.pdf.internal.events.publish("htmlRenderingFinished");h=s.dispose();typeof o=="function"?o(h):n&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),h||{x:s.x,y:s.y}};t.prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")};t.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}};t.prototype.executeWatchFunctions=function(n){var i=!1,r=[],t;if(this.watchFunctions.length>0){for(t=0;t<this.watchFunctions.length;++t)this.watchFunctions[t](n)===!0?i=!0:r.push(this.watchFunctions[t]);this.watchFunctions=r}return i};t.prototype.splitFragmentsIntoLines=function(n,t){var h,d,c,o,k,s,a,y,f,v,p,e,r,w,i,u,g,b,nt;for(d=12,p=this.pdf.internal.scaleFactor,k={},c=void 0,v=void 0,o=void 0,s=void 0,i=void 0,f=void 0,y=void 0,a=void 0,e=[],r=[e],h=0,w=this.settings.width;n.length;)if(s=n.shift(),i=t.shift(),s)if(c=i["font-family"],v=i["font-style"],o=k[c+v],o||(o=this.pdf.internal.getFont(c,v).metadata.Unicode,k[c+v]=o),f={widths:o.widths,kerning:o.kerning,fontSize:i["font-size"]*d,textIndent:h},y=this.pdf.getStringUnitWidth(s,f)*f.fontSize/p,s=="\u2028")e=[],r.push(e);else if(h+y>w){for(a=this.pdf.splitTextToSize(s,w,f),e.push([a.shift(),i]);a.length;)e=[[a.shift(),i]],r.push(e);h=this.pdf.getStringUnitWidth(e[0][0],f)*f.fontSize/p}else e.push([s,i]),h+=y;if(i["text-align"]!==undefined&&(i["text-align"]==="center"||i["text-align"]==="right"||i["text-align"]==="justify"))for(u=0;u<r.length;++u)g=this.pdf.getStringUnitWidth(r[u][0][0],f)*f.fontSize/p,u>0&&(r[u][0][1]=l(r[u][0][1])),b=w-g,i["text-align"]==="right"?r[u][0][1]["margin-left"]=b:i["text-align"]==="center"?r[u][0][1]["margin-left"]=b/2:i["text-align"]==="justify"&&(nt=r[u][0][0].split(" ").length-1,r[u][0][1]["word-spacing"]=b/nt,u===r.length-1&&(r[u][0][1]["word-spacing"]=0));return r};t.prototype.RenderTextFragment=function(n,t){var u,f,i,r;i=0;u=12;this.pdf.internal.pageSize.height-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),t.color,"Td"),i=Math.max(i,t["line-height"],t["font-size"]),this.pdf.internal.write(0,(-1*u*i).toFixed(2),"Td"));f=this.pdf.internal.getFont(t["font-family"],t["font-style"]);r=this.getPdfColor(t.color);r!==this.lastTextColor&&(this.pdf.internal.write(r),this.lastTextColor=r);t["word-spacing"]!==undefined&&t["word-spacing"]>0&&this.pdf.internal.write(t["word-spacing"].toFixed(2),"Tw");this.pdf.internal.write("/"+f.id,(u*t["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(n)+") Tj");t["word-spacing"]!==undefined&&this.pdf.internal.write(0,"Tw")};t.prototype.getPdfColor=function(n){var t,i,r,e=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(n),o,f;return e!=null?(t=parseInt(e[1]),i=parseInt(e[2]),r=parseInt(e[3])):(n.charAt(0)!="#"&&(n=u.colorNameToHex(n),n||(n="#000000")),t=n.substring(1,3),t=parseInt(t,16),i=n.substring(3,5),i=parseInt(i,16),r=n.substring(5,7),r=parseInt(r,16)),typeof t=="string"&&/^#[0-9A-Fa-f]{6}$/.test(t)&&(o=parseInt(t.substr(1),16),t=o>>16&255,i=o>>8&255,r=o&255),f=this.f3,t===0&&i===0&&r===0||typeof i=="undefined"?f(t/255)+" g":[f(t/255),f(i/255),f(r/255),"rg"].join(" ")};t.prototype.f3=function(n){return n.toFixed(3)};t.prototype.renderParagraph=function(n){var r,c,u,l,i,s,t,f,e,o,k,v,d,g,y,p,h,nt,w,b;if(l=a(this.paragraph.text),d=this.paragraph.style,r=this.paragraph.blockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:r},l.join("").trim()){for(f=this.splitFragmentsIntoLines(l,d),t=void 0,e=void 0,c=12,u=c/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,v=(Math.max((r["margin-top"]||0)-this.priorMarginBottom,0)+(r["padding-top"]||0))*u,k=((r["margin-bottom"]||0)+(r["padding-bottom"]||0))*u,this.priorMarginBottom=r["margin-bottom"]||0,r["page-break-before"]==="always"&&(this.pdf.addPage(),this.y=0,v=((r["margin-top"]||0)+(r["padding-top"]||0))*u),o=this.pdf.internal.write,i=void 0,s=void 0,this.y+=v,o("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),y=0;f.length;){for(t=f.shift(),e=0,i=0,s=t.length;i!==s;)t[i][0].trim()&&(e=Math.max(e,t[i][1]["line-height"],t[i][1]["font-size"]),g=t[i][1]["font-size"]*7),i++;for(p=0,h=0,t[0][1]["margin-left"]!==undefined&&t[0][1]["margin-left"]>0&&(h=this.pdf.internal.getCoordinateString(t[0][1]["margin-left"]),p=h-y,y=h),nt=Math.max(r["margin-left"]||0,0)*u,o(p+nt,(-1*c*e).toFixed(2),"Td"),i=0,s=t.length;i!==s;)t[i][0]&&this.RenderTextFragment(t[i][0],t[i][1]),i++;this.y+=e*u;this.executeWatchFunctions(t[0][1])&&f.length>0&&(w=[],b=[],f.forEach(function(n){for(var t=0,i=n.length;t!==i;)n[t][0]&&(w.push(n[t][0]+" "),b.push(n[t][1])),++t}),f=this.splitFragmentsIntoLines(a(w),b),o("ET","Q"),o("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"))}return n&&typeof n=="function"&&n.call(this,this.x-9,this.y-g/2),o("ET","Q"),this.y+=k}};t.prototype.setBlockBoundary=function(n){return this.renderParagraph(n)};t.prototype.setBlockStyle=function(n){return this.paragraph.blockstyle=n};t.prototype.addText=function(n,t){return this.paragraph.text.push(n),this.paragraph.style.push(t)};y={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"};b={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"};p={normal:"normal",italic:"italic",oblique:"italic"};w={left:"left",right:"right",center:"center",justify:"justify"};k={none:"none",right:"right",left:"left"};d={none:"none",both:"both"};e={normal:1};n.fromHTML=function(n,t,i,r,u,f){return this.margins_doc=f||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),it(this,n,isNaN(t)?4:t,isNaN(i)?4:i,r,u)}})(t.API),function(n){var t,i,r;n.addJS=function(n){return r=n,this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject();this.internal.write("<< /Names [(EmbeddedJS) "+(t+1)+" 0 R] >>","endobj");i=this.internal.newObject();this.internal.write("<< /S /JavaScript /JS (",r,") >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==undefined&&i!==undefined&&this.internal.write("/Names <<\/JavaScript "+t+" 0 R>>")}),this}}(t.API),function(n){return n.events.push(["postPutResources",function(){var n=this,r,u,f,e,o,i,s,h,c,t,l;if(this.outline.root.children.length>0)for(r=n.outline.render().split(/\r\n/),t=0;t<r.length;t++)u=r[t],f=/^(\d+) 0 obj$/.exec(u),f!=null&&(e=f[1],n.internal.newObjectDeferredBegin(e)),n.internal.write(u);if(this.outline.createNamedDestinations){for(o=this.internal.pages.length,i=[],t=0;t<o;t++)s=n.internal.newObject(),i.push(s),h=n.internal.getPageInfo(t+1),n.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj");for(c=n.internal.newObject(),n.internal.write("<< /Names [ "),t=0;t<i.length;t++)n.internal.write("(page_"+(t+1)+")"+i[t]+" 0 R");n.internal.write(" ] >>","endobj");l=n.internal.newObject();n.internal.write("<< /Dests "+c+" 0 R");n.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+namesOid+" 0 R"))}]),n.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}};n.outline.add=function(n,t,i){var r={title:t,options:i,children:[]};return n==null&&(n=this.root),n.children.push(r),r};n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val};n.outline.genIds_r=function(t){t.id=n.internal.newObjectDeferred();for(var i=0;i<t.children.length;i++)this.genIds_r(t.children[i])};n.outline.renderRoot=function(n){this.objStart(n);this.line("/Type /Outlines");n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));this.line("/Count "+this.count_r({count:0},n));this.objEnd()};n.outline.renderItems=function(t){for(var u,f,i,r=0;r<t.children.length;r++)i=t.children[r],this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),u=this.count=this.count_r({count:0},i),u>0&&this.line("/Count "+u),i.options&&i.options.pageNumber&&(f=n.internal.getPageInfo(i.options.pageNumber),this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+this.ctx.pdf.internal.pageSize.height+" 0]")),this.objEnd();for(r=0;r<t.children.length;r++)i=t.children[r],this.renderItems(i)};n.outline.line=function(n){this.ctx.val+=n+"\r\n"};n.outline.makeRef=function(n){return n.id+" 0 R"};n.outline.makeString=function(t){return"("+n.internal.pdfEscape(t)+")"};n.outline.objStart=function(n){this.ctx.val+="\r\n"+n.id+" 0 obj\r\n<<\r\n"};n.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"};n.outline.count_r=function(n,t){for(var i=0;i<t.children.length;i++)n.count++,this.count_r(n,t.children[i]);return n.count}}]),this}(t.API);
/**@preserve
 *  ====================================================================
 * jsPDF PNG PlugIn
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * 
 * ====================================================================
 */
(function(n){var s=function(){return typeof PNG!="function"||typeof o!="function"},h=function(t){return t!==n.image_compression.NONE&&c()},c=function(){var n=typeof f=="function";if(!n)throw new Error("requires deflate.js for compression");return n},t=function(t,o,s,h){var y=5,w=r;switch(h){case n.image_compression.FAST:y=3;w=i;break;case n.image_compression.MEDIUM:y=6;w=u;break;case n.image_compression.SLOW:y=9;w=e}t=v(t,o,s,w);var b=new Uint8Array(l(y)),k=a(t),g=new f(y),d=g.append(t),nt=g.flush(),p=b.length+d.length+nt.length,c=new Uint8Array(p+4);return c.set(b),c.set(d,b.length),c.set(nt,b.length+d.length),c[p++]=k>>>24&255,c[p++]=k>>>16&255,c[p++]=k>>>8&255,c[p++]=k&255,n.arrayBufferToBinaryString(c)},l=function(n,t){var u=Math.LOG2E*Math.log(32768)-8,r=u<<4|8,i=r<<8,f=Math.min(3,(t-1&255)>>1);return i|=f<<6,i|=0,i+=31-i%31,[r,i&255]},a=function(n,t){for(var e=1,i=e&65535,u=e>>>16&65535,r=n.length,f,o=0;r>0;){f=r>t?t:r;r-=f;do i+=n[o++],u+=i;while(--f);i%=65521;u%=65521}return(u<<16|i)>>>0},v=function(n,t,i,r){for(var l=n.length/t,s=new Uint8Array(n.length+l),a=w(),u=0,e,h,f,v;u<l;u++){if(f=u*t,e=n.subarray(f,f+t),r)s.set(r(e,i,h),f+u);else{for(var o=0,y=a.length,c=[];o<y;o++)c[o]=a[o](e,i,h);v=b(c.concat());s.set(c[v],f+u)}h=e}return s},y=function(n){var t=Array.apply([],n);return t.unshift(0),t},i=function(n,t){var r=[],i=0,f=n.length,u;for(r[0]=1;i<f;i++)u=n[i-t]||0,r[i+1]=n[i]-u+256&255;return r},r=function(n,t,i){var u=[],r=0,e=n.length,f;for(u[0]=2;r<e;r++)f=i&&i[r]||0,u[r+1]=n[r]-f+256&255;return u},u=function(n,t,i){var u=[],r=0,o=n.length,f,e;for(u[0]=3;r<o;r++)f=n[r-t]||0,e=i&&i[r]||0,u[r+1]=n[r]+256-(f+e>>>1)&255;return u},e=function(n,t,i){var u=[],r=0,h=n.length,f,e,o,s;for(u[0]=4;r<h;r++)f=n[r-t]||0,e=i&&i[r]||0,o=i&&i[r-t]||0,s=p(f,e,o),u[r+1]=n[r]-s+256&255;return u},p=function(n,t,i){var r=n+t-i,u=Math.abs(r-n),f=Math.abs(r-t),e=Math.abs(r-i);return u<=f&&u<=e?n:f<=e?t:i},w=function(){return[y,i,r,u,e]},b=function(n){for(var t=0,f=n.length,i,r,u;t<f;)i=k(n[t].slice(1)),(i<r||!r)&&(r=i,u=t),t++;return u},k=function(n){for(var t=0,r=n.length,i=0;t<r;)i+=Math.abs(n[t++]);return i},d=function(t){var i;switch(t){case n.image_compression.FAST:i=11;break;case n.image_compression.MEDIUM:i=13;break;case n.image_compression.SLOW:i=14;break;default:i=12}return i};n.processPNG=function(n,i,r,u){var nt=this.color_spaces.DEVICE_RGB,tt=this.decode.FLATE_DECODE,w=8,f,ut,ft,it,et,c,rt;if(this.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.isArrayBufferView(n)){if(s())throw new Error("PNG support requires png.js and zlib.js");if(f=new PNG(n),n=f.imgData,w=f.bits,nt=f.colorSpace,it=f.colors,[4,6].indexOf(f.colorType)!==-1){if(f.bits===8)for(var a=f.pixelBitlength==32?new Uint32Array(f.decodePixels().buffer):f.pixelBitlength==16?new Uint16Array(f.decodePixels().buffer):new Uint8Array(f.decodePixels().buffer),o=a.length,v=new Uint8Array(o*f.colors),y=new Uint8Array(o),ot=f.pixelBitlength-f.bits,e=0,g=0,l,p;e<o;e++){for(l=a[e],p=0;p<ot;)v[g++]=l>>>p&255,p=p+f.bits;y[e]=l>>>p&255}if(f.bits===16){for(var a=new Uint32Array(f.decodePixels().buffer),o=a.length,v=new Uint8Array(o*(32/f.pixelBitlength)*f.colors),y=new Uint8Array(o*(32/f.pixelBitlength)),st=f.colors>1,e=0,g=0,ht=0,l;e<o;)l=a[e++],v[g++]=l>>>0&255,st&&(v[g++]=l>>>16&255,l=a[e++],v[g++]=l>>>0&255),y[ht++]=l>>>16&255;w=8}h(u)?(n=t(v,f.width*f.colors,f.colors,u),c=t(y,f.width,1,u)):(n=v,c=y,tt=null)}if(f.colorType===3&&(nt=this.color_spaces.INDEXED,et=f.palette,f.transparency.indexed)){for(var b=f.transparency.indexed,k=0,e=0,o=b.length;e<o;++e)k+=b[e];if(k=k/255,k===o-1&&b.indexOf(0)!==-1)ft=[b.indexOf(0)];else if(k!==o){for(var a=f.decodePixels(),y=new Uint8Array(a.length),e=0,o=a.length;e<o;e++)y[e]=b[a[e]];c=t(y,f.width,1)}}return rt=d(u),ut=tt===this.decode.FLATE_DECODE?"/Predictor "+rt+" /Colors "+it+" /BitsPerComponent "+w+" /Columns "+f.width:"/Colors "+it+" /BitsPerComponent "+w+" /Columns "+f.width,(this.isArrayBuffer(n)||this.isArrayBufferView(n))&&(n=this.arrayBufferToBinaryString(n)),(c&&this.isArrayBuffer(c)||this.isArrayBufferView(c))&&(c=this.arrayBufferToBinaryString(c)),this.createImageInfo(n,f.width,f.height,nt,w,tt,i,r,ut,ft,et,c,rt)}throw new Error("Unsupported PNG image data, try using JPEG instead.");}})(t.API),function(n){n.autoPrint=function(){var n;return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject();this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+n+" 0 R")}),this}}(t.API);
/** @preserve
 * jsPDF split_text_to_size plugin - MIT license.
 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
 *               2014 Diego Casorran, https://github.com/diegocr
 */
(function(n){var t=n.getCharWidthsArray=function(n,t){t||(t={});for(var r=t.widths?t.widths:this.internal.getFont().metadata.Unicode.widths,e=r.fof?r.fof:1,u=t.kerning?t.kerning:this.internal.getFont().metadata.Unicode.kerning,c=u.fof?u.fof:1,i,s=0,l=r[0]||e,h=[],f=0,o=n.length;f<o;f++)i=n.charCodeAt(f),h.push((r[i]||l)/e+(u[i]&&u[i][s]||0)/c),s=i;return h},i=function(n){for(var t=n.length,i=0;t;)t--,i+=n[t];return i},r=n.getStringUnitWidth=function(n,r){return i(t.call(this,n,r))},u=function(n,t,i,r){for(var o=[],u=0,s=n.length,f=0,e;u!==s&&f+t[u]<i;)f+=t[u],u++;for(o.push(n.slice(0,u)),e=u,f=0;u!==s;)f+t[u]>r&&(o.push(n.slice(e,u)),f=0,e=u),f+=t[u],u++;return e!==u&&o.push(n.slice(e,u)),o},f=function(n,f,e){var d,y,g,it;e||(e={});var s=[],k=[s],p=e.textIndent||0,l=0,c=0,o,w,a=n.split(" "),nt=t(" ",e)[0],b,tt,v,h;for(h=e.lineIndent===-1?a[0].length+2:e.lineIndent||0,h&&(d=Array(h).join(" "),y=[],a.map(function(n){n=n.split(/\s*\n/);n.length>1?y=y.concat(n.map(function(n,t){return(t&&n.length?"\n":"")+n})):y.push(n[0])}),a=y,h=r(d,e)),b=0,tt=a.length;b<tt;b++)if(g=0,o=a[b],h&&o[0]=="\n"&&(o=o.substr(1),g=1),w=t(o,e),c=i(w),p+l+c>f||g){if(c>f){for(v=u(o,w,f-(p+l),f),s.push(v.shift()),s=[v.pop()];v.length;)k.push([v.shift()]);c=i(w.slice(o.length-s[0].length))}else s=[o];k.push(s);p=c+h;l=nt}else s.push(o),p+=l+c,l=nt;return it=h?function(n,t){return(t?d:"")+n.join(" ")}:function(n){return n.join(" ")},k.map(it)};n.splitTextToSize=function(n,t,i){var o,r,s,h,u,c,e;for(i||(i={}),o=i.fontSize||this.internal.getFontSize(),r=function(n){var r={0:1},u={},t,i;return n.widths&&n.kerning?{widths:n.widths,kerning:n.kerning}:(t=this.internal.getFont(n.fontName,n.fontStyle),i="Unicode",t.metadata[i])?{widths:t.metadata[i].widths||r,kerning:t.metadata[i].kerning||u}:{widths:r,kerning:u}}.call(this,i),s=Array.isArray(n)?n:n.split(/\r?\n/),h=1*this.internal.scaleFactor*t/o,r.textIndent=i.textIndent?i.textIndent*1*this.internal.scaleFactor/o:0,r.lineIndent=i.lineIndent,e=[],u=0,c=s.length;u<c;u++)e=e.concat(f(s[u],h,r));return e}})(t.API);
/** @preserve 
jsPDF standard_fonts_metrics plugin
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
MIT license.
*/
(function(n){var t=function(n){for(var a="klmnopqrstuvwxyz",f={},i=0;i<a.length;i++)f[a[i]]="0123456789abcdef"[i];var e,v={},o=1,u,s=v,y=[],h,c="",l="",r,p=n.length-1,t;for(i=1;i!=p;)t=n[i],i+=1,t=="'"?u?(r=u.join(""),u=e):u=[]:u?u.push(t):t=="{"?(y.push([s,r]),s={},r=e):t=="}"?(h=y.pop(),h[0][h[1]]=s,r=e,s=h[0]):t=="-"?o=-1:r===e?f.hasOwnProperty(t)?(c+=f[t],r=parseInt(c,16)*o,o=1,c=""):c+=t:f.hasOwnProperty(t)?(l+=f[t],s[r]=parseInt(l,16)*o,o=1,r=e,l=""):l+=t;return v},i={codePages:["WinAnsiEncoding"],WinAnsiEncoding:t("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},r={Unicode:{Courier:i,"Courier-Bold":i,"Courier-BoldOblique":i,"Courier-Oblique":i,Helvetica:i,"Helvetica-Bold":i,"Helvetica-BoldOblique":i,"Helvetica-Oblique":i,"Times-Roman":i,"Times-Bold":i,"Times-BoldItalic":i,"Times-Italic":i}},u={Unicode:{"Courier-Oblique":t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":t("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":t("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":t("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:t("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":t("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":t("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":t("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":t("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(n){var e,f,t="Unicode",i;e=u[t][n.PostScriptName];e&&(f=n.metadata[t]?n.metadata[t]:n.metadata[t]={},f.widths=e.widths,f.kerning=e.kerning);i=r[t][n.PostScriptName];i&&(f=n.metadata[t]?n.metadata[t]:n.metadata[t]={},f.encoding=i,i.codePages&&i.codePages.length&&(n.encoding=i.codePages[0]))}])})(t.API);
/** @preserve
jsPDF SVG plugin
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
*/
(function(n){n.addSVG=function(n,t,i,r,u){function p(n,t){var i=t.createElement("style");i.type="text/css";i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n));t.getElementsByTagName("head")[0].appendChild(i)}function w(n){var t=n.createElement("iframe");return p(".jsPDF_sillysvg_iframe {display:none;position:absolute;}",n),t.name="childframe",t.setAttribute("width",0),t.setAttribute("height",0),t.setAttribute("frameborder","0"),t.setAttribute("scrolling","no"),t.setAttribute("seamless","seamless"),t.setAttribute("class","jsPDF_sillysvg_iframe"),n.body.appendChild(t),t}function b(n,t){var i=(t.contentWindow||t.contentDocument).document;return i.write(n),i.close(),i.getElementsByTagName("svg")[0]}function k(n){for(var r=parseFloat(n[1]),u=parseFloat(n[2]),i=[],t=3,f=n.length;t<f;)n[t]==="c"?(i.push([parseFloat(n[t+1]),parseFloat(n[t+2]),parseFloat(n[t+3]),parseFloat(n[t+4]),parseFloat(n[t+5]),parseFloat(n[t+6])]),t+=7):n[t]==="l"?(i.push([parseFloat(n[t+1]),parseFloat(n[t+2])]),t+=3):t+=1;return[r,u,i]}var v,h,y,c,f,a;if(t===v||i===v)throw new Error("addSVG needs values for 'x' and 'y'");var d=w(document),l=b(n,d),e=[1,1],o=parseFloat(l.getAttribute("width")),s=parseFloat(l.getAttribute("height"));for(o&&s&&(r&&u?e=[r/o,u/s]:r?e=[r/o,r/o]:u&&(e=[u/s,u/s])),a=l.childNodes,h=0,y=a.length;h<y;h++)c=a[h],c.tagName&&c.tagName.toUpperCase()==="PATH"&&(f=k(c.getAttribute("d").split(" ")),f[0]=f[0]*e[0]+t,f[1]=f[1]*e[1]+i,this.lines.call(this,f[2],f[0],f[1],e));return this}})(t.API),function(n){n.putTotalPages=function(n){for(var i,r=new RegExp(n,"g"),t=1;t<=this.internal.getNumberOfPages();t++)for(i=0;i<this.internal.pages[t].length;i++)this.internal.pages[t][i]=this.internal.pages[t][i].replace(r,this.internal.getNumberOfPages());return this}}(t.API),function(n){var i="",r="",t="";n.addMetadata=function(n,u){return r=u||"http://jspdf.default.namespaceuri/",i=n,this.internal.events.subscribe("postPutResources",function(){if(i){var s='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+r+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),u=unescape(encodeURIComponent(s)),f=unescape(encodeURIComponent(i)),e=unescape(encodeURIComponent("<\/jspdf:metadata><\/rdf:Description><\/rdf:RDF>")),o=unescape(encodeURIComponent("<\/x:xmpmeta>")),h=u.length+f.length+e.length+n.length+o.length;t=this.internal.newObject();this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>");this.internal.write("stream");this.internal.write(n+u+f+e+o);this.internal.write("endstream");this.internal.write("endobj")}else t=""}),this.internal.events.subscribe("putCatalog",function(){t&&this.internal.write("/Metadata "+t+" 0 R")}),this}}(t.API);
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
(function(n){var t,i;if(n.URL=n.URL||n.webkitURL,n.Blob&&n.URL)try{new Blob;return}catch(r){}t=n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||window.MSBlobBuilder||function(n){var s=function(n){return Object.prototype.toString.call(n).match(/^\[object\s(.*)\]$/)[1]},h=function(){this.data=[]},t=function(n,t,i){this.data=n;this.size=n.length;this.type=t;this.encoding=i},u=h.prototype,r=t.prototype,c=n.FileReaderSync,l=function(n){this.code=this[this.name=n]},a="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),f=a.length,i=n.URL||n.webkitURL||n,v=i.createObjectURL,y=i.revokeObjectURL,e=i,p=n.btoa,w=n.atob,b=n.ArrayBuffer,o=n.Uint8Array,k=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(t.fake=r.fake=!0;f--;)l.prototype[a[f]]=f+1;return i.createObjectURL||(e=n.URL=function(n){var t=document.createElementNS("http://www.w3.org/1999/xhtml","a"),i;return t.href=n,"origin"in t||(t.protocol.toLowerCase()==="data:"?t.origin=null:(i=n.match(k),t.origin=i&&i[1])),t}),e.createObjectURL=function(n){var u=n.type,r;return(u===null&&(u="application/octet-stream"),n instanceof t)?(r="data:"+u,n.encoding==="base64")?r+";base64,"+n.data:n.encoding==="URI"?r+","+decodeURIComponent(n.data):p?r+";base64,"+p(n.data):r+","+encodeURIComponent(n.data):v?v.call(i,n):void 0},e.revokeObjectURL=function(n){n.substring(0,5)!=="data:"&&y&&y.call(i,n)},u.append=function(n){var i=this.data,e;if(o&&(n instanceof b||n instanceof o)){for(var u="",f=new o(n),r=0,h=f.length;r<h;r++)u+=String.fromCharCode(f[r]);i.push(u)}else if(s(n)==="Blob"||s(n)==="File")if(c)e=new c,i.push(e.readAsBinaryString(n));else throw new l("NOT_READABLE_ERR");else n instanceof t?n.encoding==="base64"&&w?i.push(w(n.data)):n.encoding==="URI"?i.push(decodeURIComponent(n.data)):n.encoding==="raw"&&i.push(n.data):(typeof n!="string"&&(n+=""),i.push(unescape(encodeURIComponent(n))))},u.getBlob=function(n){return arguments.length||(n=null),new t(this.data.join(""),n,"raw")},u.toString=function(){return"[object BlobBuilder]"},r.slice=function(n,i,r){var u=arguments.length;return u<3&&(r=null),new t(this.data.slice(n,u>1?i:this.data.length),r,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=0;delete this.data},h}(n);n.Blob=function(n,i){var o=i?i.type||"":"",f=new t,r,e,u;if(n)for(r=0,e=n.length;r<e;r++)Uint8Array&&n[r]instanceof Uint8Array?f.append(n[r].buffer):f.append(n[r]);return u=f.getBlob(o),!u.slice&&u.webkitSlice&&(u.slice=u.webkitSlice),u};i=Object.getPrototypeOf||function(n){return n.__proto__};n.Blob.prototype=i(new n.Blob)})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||undefined.content||undefined);
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
return i=i||function(n){if(typeof n!="undefined"&&(typeof navigator=="undefined"||!/MSIE [1-9]\./.test(navigator.userAgent))){var s=n.document,r=function(){return n.URL||n.webkitURL||n},i=s.createElementNS("http://www.w3.org/1999/xhtml","a"),h="download"in i,c=function(n){var t=new MouseEvent("click");n.dispatchEvent(t)},l=/constructor/i.test(n.HTMLElement)||n.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(t){(n.setImmediate||n.setTimeout)(function(){throw t;},0)},v="application/octet-stream",y=4e4,f=function(n){var t=function(){typeof n=="string"?r().revokeObjectURL(n):n.remove()};setTimeout(t,y)},p=function(n,t,i){var r,u;for(t=[].concat(t),r=t.length;r--;)if(u=n["on"+t[r]],typeof u=="function")try{u.call(n,i||n)}catch(f){a(f)}},e=function(n){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n},o=function(t,o,s){s||(t=e(t));var a=this,k=t.type,b=k===v,y,w=function(){p(a,"writestart progress write writeend".split(" "))},d=function(){var i,e;if((u||b&&l)&&n.FileReader){i=new FileReader;i.onloadend=function(){var t=u?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;"),r=n.open(t,"_blank");r||(n.location.href=t);t=undefined;a.readyState=a.DONE;w()};i.readAsDataURL(t);a.readyState=a.INIT;return}y||(y=r().createObjectURL(t));b?n.location.href=y:(e=n.open(y,"_blank"),e||(n.location.href=y));a.readyState=a.DONE;w();f(y)};if(a.readyState=a.INIT,h){y=r().createObjectURL(t);setTimeout(function(){i.href=y;i.download=o;c(i);w();f(y);a.readyState=a.DONE});return}d()},t=o.prototype,w=function(n,t,i){return new o(n,t||n.name||"download",i)};return typeof navigator!="undefined"&&navigator.msSaveOrOpenBlob?function(n,t,i){return t=t||n.name||"download",i||(n=e(n)),navigator.msSaveOrOpenBlob(n,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,w)}}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||undefined.content),typeof module!="undefined"&&module.exports?module.exports.saveAs=i:typeof define!="undefined"&&define!==null&&define.amd!==null&&define("FileSaver.js",function(){return i}),void function(n,t){typeof module=="object"?module.exports=t():typeof define=="function"?define(t):n.adler32cs=t()}(t,function(){var r=typeof ArrayBuffer=="function"&&typeof Uint8Array=="function",t=null,f=function(){if(!r)return function(){return!1};try{var n={};typeof n.Buffer=="function"&&(t=n.Buffer)}catch(u){}return function(n){return n instanceof ArrayBuffer||t!==null&&n instanceof t}}(),e=function(){return t!==null?function(n){return new t(n,"utf8").toString("binary")}:function(n){return unescape(encodeURIComponent(n))}}(),u=65521,n=function(n,t){for(var i=n&65535,r=n>>>16,f=0,e=t.length;f<e;f++)i=(i+(t.charCodeAt(f)&255))%u,r=(r+i)%u;return(r<<16|i)>>>0},o=function(n,t){for(var i=n&65535,r=n>>>16,f=0,e=t.length;f<e;f++)i=(i+t[f])%u,r=(r+i)%u;return(r<<16|i)>>>0},i={},s=i.Adler32=function(){var t=function(n){if(!(this instanceof t))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(n=n==null?1:+n))throw new Error("First arguments needs to be a finite number.");this.checksum=n>>>0},i=t.prototype={};return i.constructor=t,t.from=function(n){return n.prototype=i,n}(function(i){if(!(this instanceof t))throw new TypeError("Constructor cannot called be as a function.");if(i==null)throw new Error("First argument needs to be a string.");this.checksum=n(1,i.toString())}),t.fromUtf8=function(n){return n.prototype=i,n}(function(i){if(!(this instanceof t))throw new TypeError("Constructor cannot called be as a function.");if(i==null)throw new Error("First argument needs to be a string.");var r=e(i.toString());this.checksum=n(1,r)}),r&&(t.fromBuffer=function(n){return n.prototype=i,n}(function(n){if(!(this instanceof t))throw new TypeError("Constructor cannot called be as a function.");if(!f(n))throw new Error("First argument needs to be ArrayBuffer.");var i=new Uint8Array(n);return this.checksum=o(1,i)})),i.update=function(t){if(t==null)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=n(this.checksum,t)},i.updateUtf8=function(t){if(t==null)throw new Error("First argument needs to be a string.");var i=e(t.toString());return this.checksum=n(this.checksum,i)},r&&(i.updateBuffer=function(n){if(!f(n))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(n);return this.checksum=o(this.checksum,t)}),i.clone=function(){return new s(this.checksum)},t}();return i.from=function(t){if(t==null)throw new Error("First argument needs to be a string.");return n(1,t.toString())},i.fromUtf8=function(t){if(t==null)throw new Error("First argument needs to be a string.");var i=e(t.toString());return n(1,i)},r&&(i.fromBuffer=function(n){if(!f(n))throw new Error("First argument need to be ArrayBuffer.");var t=new Uint8Array(n);return o(1,t)}),i}),u={},u._colorsTable={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},u.colorNameToHex=function(n){return(n=n.toLowerCase(),typeof this._colorsTable[n]!="undefined")?this._colorsTable[n]:!1},f=function(){function n(){function t(t){for(var u=n.dyn_tree,l=n.stat_desc.static_tree,y=n.stat_desc.extra_bits,a=n.stat_desc.extra_base,e=n.stat_desc.max_length,o,r,f,s,c,h=0,i=0;i<=v;i++)t.bl_count[i]=0;for(u[t.heap[t.heap_max]*2+1]=0,o=t.heap_max+1;o<vt;o++)(r=t.heap[o],i=u[u[r*2+1]*2+1]+1,i>e&&(i=e,h++),u[r*2+1]=i,r>n.max_code)||(t.bl_count[i]++,s=0,r>=a&&(s=y[r-a]),c=u[r*2],t.opt_len+=c*(i+s),l&&(t.static_len+=c*(l[r*2+1]+s)));if(h!==0){do{for(i=e-1;t.bl_count[i]===0;)i--;t.bl_count[i]--;t.bl_count[i+1]+=2;t.bl_count[e]--;h-=2}while(h>0);for(i=e;i!==0;i--)for(r=t.bl_count[i];r!==0;)(f=t.heap[--o],f>n.max_code)||(u[f*2+1]!=i&&(t.opt_len+=(i-u[f*2+1])*u[f*2],u[f*2+1]=i),r--)}}function i(n,t){var i=0;do i|=n&1,n>>>=1,i<<=1;while(--t>0);return i>>>1}function r(n,t,r){for(var o=[],s=0,f,e,u=1;u<=v;u++)o[u]=s=s+r[u-1]<<1;for(f=0;f<=t;f++)(e=n[f*2+1],e!==0)&&(n[f*2]=i(o[e]++,e))}var n=this;n.build_tree=function(i){var f=n.dyn_tree,h=n.stat_desc.static_tree,c=n.stat_desc.elems,u,o,s=-1,e;for(i.heap_len=0,i.heap_max=vt,u=0;u<c;u++)f[u*2]!==0?(i.heap[++i.heap_len]=s=u,i.depth[u]=0):f[u*2+1]=0;while(i.heap_len<2)e=i.heap[++i.heap_len]=s<2?++s:0,f[e*2]=1,i.depth[e]=0,i.opt_len--,h&&(i.static_len-=h[e*2+1]);for(n.max_code=s,u=Math.floor(i.heap_len/2);u>=1;u--)i.pqdownheap(f,u);e=c;do u=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(f,1),o=i.heap[1],i.heap[--i.heap_max]=u,i.heap[--i.heap_max]=o,f[e*2]=f[u*2]+f[o*2],i.depth[e]=Math.max(i.depth[u],i.depth[o])+1,f[u*2+1]=f[o*2+1]=e,i.heap[1]=e++,i.pqdownheap(f,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1];t(i);r(f,n.max_code,i.bl_count)}}function i(n,t,i,r,u){var f=this;f.static_tree=n;f.extra_bits=t;f.extra_base=i;f.elems=r;f.max_length=u}function h(n,t,i,r,u){var f=this;f.good_length=n;f.max_lazy=t;f.nice_length=i;f.max_chain=r;f.func=u}function ii(n,t,i,r){var u=n[t*2],f=n[i*2];return u<f||u==f&&r[t]<=r[i]}function li(){function uf(){var n;for(yu=2*li,vi[ar-1]=0,n=0;n<ar-1;n++)vi[n]=0;ru=s[pi].max_lazy;su=s[pi].good_length;hu=s[pi].nice_length;ou=s[pi].max_chain;h=0;ur=0;ri=0;yi=nr=t-1;vr=0;dt=0}function wu(){for(var n=0;n<ot;n++)or[n*2]=0;for(n=0;n<ft;n++)sr[n*2]=0;for(n=0;n<et;n++)wi[n*2]=0;or[y*2]=1;vt.opt_len=vt.static_len=0;tr=au=0}function ff(){kr.dyn_tree=or;kr.stat_desc=i.static_l_desc;dr.dyn_tree=sr;dr.stat_desc=i.static_d_desc;cu.dyn_tree=wi;cu.stat_desc=i.static_bl_desc;gi=0;bi=0;nu=8;wu()}function bu(n,t){var o,s=-1,i,r=n[1],u=0,f=7,e=4;for(r===0&&(f=138,e=3),n[(t+1)*2+1]=65535,o=0;o<=t;o++){if(i=r,r=n[(o+1)*2+1],++u<f&&i==r)continue;else u<e?wi[i*2]+=u:i!==0?(i!=s&&wi[i*2]++,wi[yt*2]++):u<=10?wi[pt*2]++:wi[wt*2]++;u=0;s=i;r===0?(f=138,e=3):i==r?(f=6,e=3):(f=7,e=4)}}function ef(){var t;for(bu(or,kr.max_code),bu(sr,dr.max_code),cu.build_tree(vt),t=et-1;t>=3;t--)if(wi[n.bl_order[t]*2+1]!==0)break;return vt.opt_len+=3*(t+1)+5+5+4,t}function pr(n){vt.pending_buf[vt.pending++]=n}function tu(n){pr(n&255);pr(n>>>8&255)}function of(n){pr(n>>8&255);pr(n&255)}function ki(n,t){var i,r=t;bi>st-r?(i=n,gi|=i<<bi&65535,tu(gi),gi=i>>>st-bi,bi+=r-st):(gi|=n<<bi&65535,bi+=r)}function ir(n,t){var i=n*2;ki(t[i]&65535,t[i+1]&65535)}function ku(n,t){var o,s=-1,r,u=n[1],i=0,f=7,e=4;for(u===0&&(f=138,e=3),o=0;o<=t;o++){if(r=u,u=n[(o+1)*2+1],++i<f&&r==u)continue;else if(i<e){do ir(r,wi);while(--i!=0)}else r!==0?(r!=s&&(ir(r,wi),i--),ir(yt,wi),ki(i-3,2)):i<=10?(ir(pt,wi),ki(i-3,3)):(ir(wt,wi),ki(i-11,7));i=0;s=r;u===0?(f=138,e=3):r==u?(f=6,e=3):(f=7,e=4)}}function sf(t,i,r){var u;for(ki(t-257,5),ki(i-1,5),ki(r-4,4),u=0;u<r;u++)ki(wi[n.bl_order[u]*2+1],3);ku(or,t-1);ku(sr,i-1)}function du(){bi==16?(tu(gi),gi=0,bi=0):bi>=8&&(pr(gi&255),gi>>>=8,bi-=8)}function hf(){ki(at<<1,3);ir(y,i.static_ltree);du();1+nu+10-bi<9&&(ki(at<<1,3),ir(y,i.static_ltree),du());nu=7}function iu(t,i){var u,f,r;if(vt.pending_buf[gr+tr*2]=t>>>8&255,vt.pending_buf[gr+tr*2+1]=t&255,vt.pending_buf[lu+tr]=i&255,tr++,t===0?or[i*2]++:(au++,t--,or[(n._length_code[i]+b+1)*2]++,sr[n.d_code(t)*2]++),(tr&8191)==0&&pi>2){for(u=tr*8,f=h-ur,r=0;r<ft;r++)u+=sr[r*2]*(5+n.extra_dbits[r]);if(u>>>=3,au<Math.floor(tr/2)&&u<Math.floor(f/2))return!0}return tr==yr-1}function gu(t,i){var u,e,o=0,r,f;if(tr!==0)do u=vt.pending_buf[gr+o*2]<<8&65280|vt.pending_buf[gr+o*2+1]&255,e=vt.pending_buf[lu+o]&255,o++,u===0?ir(e,t):(r=n._length_code[e],ir(r+b+1,t),f=n.extra_lbits[r],f!==0&&(e-=n.base_length[r],ki(e,f)),u--,r=n.d_code(u),ir(r,i),f=n.extra_dbits[r],f!==0&&(u-=n.base_dist[r],ki(u,f)));while(o<tr);ir(y,t);nu=t[y*2+1]}function nf(){bi>8?tu(gi):bi>0&&pr(gi&255);gi=0;bi=0}function cf(n,t,i){nf();nu=8;i&&(tu(t),tu(~t));vt.pending_buf.set(v.subarray(n,n+t),vt.pending);vt.pending+=t}function tf(n,t,i){ki((hi<<1)+(i?1:0),3);cf(n,t,!0)}function lf(n,t,r){var u,f,e=0;pi>0?(kr.build_tree(vt),dr.build_tree(vt),e=ef(),u=vt.opt_len+3+7>>>3,f=vt.static_len+3+7>>>3,f<=u&&(u=f)):u=f=t+5;t+4<=u&&n!=-1?tf(n,t,r):f==u?(ki((at<<1)+(r?1:0),3),gu(i.static_ltree,i.static_dtree)):(ki((ci<<1)+(r?1:0),3),sf(kr.max_code+1,dr.max_code+1,e+1),gu(or,sr));wu();r&&nf()}function hr(n){lf(ur>=0?ur:-1,h-ur,n);ur=h;ai.flush_pending()}function vu(){var n,r,f,i;do{if(i=yu-ri-h,i===0&&h===0&&ri===0)i=li;else if(i==-1)i--;else if(h>=li+li-u){v.set(v.subarray(li,li+li),0);wr-=li;h-=li;ur-=li;n=ar;f=n;do r=vi[--f]&65535,vi[f]=r>=li?r-li:0;while(--n!=0);n=li;f=n;do r=rr[--f]&65535,rr[f]=r>=li?r-li:0;while(--n!=0);i+=li}if(ai.avail_in===0)return;n=ai.read_buf(v,h+ri,i);ri+=n;ri>=t&&(dt=v[h]&255,dt=(dt<<er^v[h+1]&255)&fr)}while(ri<u&&ai.avail_in!==0)}function af(n){var i=65535,t;for(i>uu-5&&(i=uu-5);;){if(ri<=1){if(vu(),ri===0&&n==l)return f;if(ri===0)break}if((h+=ri,ri=0,t=ur+i,(h===0||h>=t)&&(ri=h-t,h=t,hr(!1),ai.avail_out===0))||h-ur>=li-u&&(hr(!1),ai.avail_out===0))return f}return(hr(n==r),ai.avail_out===0)?n==r?p:f:n==r?it:tt}function rf(n){var s=ou,t=h,i,f,r=nr,a=h>li-u?h-(li-u):0,e=hu,y=cr,o=h+ut,c=v[t+r-1],l=v[t+r];nr>=su&&(s>>=2);e>ri&&(e=ri);do if(i=n,v[i+r]==l&&v[i+r-1]==c&&v[i]==v[t]&&v[++i]==v[t+1]){t+=2;i++;do;while(v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&v[++t]==v[++i]&&t<o);if(f=ut-(o-t),t=o-ut,f>r){if(wr=n,r=f,f>=e)break;c=v[t+r-1];l=v[t+r]}}while((n=rr[n&y]&65535)>a&&--s!=0);return r<=ri?r:ri}function vf(n){for(var i=0,e;;){if(ri<u){if(vu(),ri<u&&n==l)return f;if(ri===0)break}if(ri>=t&&(dt=(dt<<er^v[h+(t-1)]&255)&fr,i=vi[dt]&65535,rr[h&cr]=vi[dt],vi[dt]=h),i!==0&&(h-i&65535)<=li-u&&br!=k&&(yi=rf(i)),yi>=t)if(e=iu(h-wr,yi-t),ri-=yi,yi<=ru&&ri>=t){yi--;do h++,dt=(dt<<er^v[h+(t-1)]&255)&fr,i=vi[dt]&65535,rr[h&cr]=vi[dt],vi[dt]=h;while(--yi!=0);h++}else h+=yi,yi=0,dt=v[h]&255,dt=(dt<<er^v[h+1]&255)&fr;else e=iu(0,v[h]&255),ri--,h++;if(e&&(hr(!1),ai.avail_out===0))return f}return(hr(n==r),ai.avail_out===0)?n==r?p:f:n==r?it:tt}function yf(n){for(var i=0,e,o;;){if(ri<u){if(vu(),ri<u&&n==l)return f;if(ri===0)break}if(ri>=t&&(dt=(dt<<er^v[h+(t-1)]&255)&fr,i=vi[dt]&65535,rr[h&cr]=vi[dt],vi[dt]=h),nr=yi,pu=wr,yi=t-1,i!==0&&nr<ru&&(h-i&65535)<=li-u&&(br!=k&&(yi=rf(i)),yi<=5&&(br==ui||yi==t&&h-wr>4096)&&(yi=t-1)),nr>=t&&yi<=nr){o=h+ri-t;e=iu(h-1-pu,nr-t);ri-=nr-1;nr-=2;do++h<=o&&(dt=(dt<<er^v[h+(t-1)]&255)&fr,i=vi[dt]&65535,rr[h&cr]=vi[dt],vi[dt]=h);while(--nr!=0);if(vr=0,yi=t-1,h++,e&&(hr(!1),ai.avail_out===0))return f}else if(vr!==0){if(e=iu(0,v[h-1]&255),e&&hr(!1),h++,ri--,ai.avail_out===0)return f}else vr=1,h++,ri--}return(vr!==0&&(e=iu(0,v[h-1]&255),vr=0),hr(n==r),ai.avail_out===0)?n==r?p:f:n==r?it:tt}function pf(n){return n.total_in=n.total_out=0,n.msg=null,vt.pending=0,vt.pending_out=0,di=rt,lr=l,ff(),uf(),e}var vt=this,ai,di,uu,lr,li,fu,cr,v,yu,rr,vi,dt,ar,eu,fr,er,ur,yi,pu,vr,h,wr,ri,nr,ou,ru,pi,br,su,hu,or,sr,wi,kr=new n,dr=new n,cu=new n,lu,yr,tr,gr,au,nu,gi,bi;vt.depth=[];vt.bl_count=[];vt.heap=[];or=[];sr=[];wi=[];vt.pqdownheap=function(n,t){for(var r=vt.heap,u=r[t],i=t<<1;i<=vt.heap_len;){if(i<vt.heap_len&&ii(n,r[i+1],r[i],vt.depth)&&i++,ii(n,u,r[i],vt.depth))break;r[t]=r[i];t=i;i<<=1}r[t]=u};vt.deflateInit=function(n,i,r,u,f,e){return(u||(u=lt),f||(f=ni),e||(e=fi),n.msg=null,i==ht&&(i=6),f<1||f>gt||u!=lt||r<9||r>15||i<0||i>9||e<0||e>k)?o:(n.dstate=vt,fu=r,li=1<<fu,cr=li-1,eu=f+7,ar=1<<eu,fr=ar-1,er=Math.floor((eu+t-1)/t),v=new Uint8Array(li*2),rr=[],vi=[],yr=1<<f+6,vt.pending_buf=new Uint8Array(yr*4),uu=yr*4,gr=Math.floor(yr/2),lu=3*yr,pi=i,br=e,pf(n))};vt.deflateEnd=function(){return di!=ct&&di!=rt&&di!=w?o:(vt.pending_buf=null,vi=null,rr=null,v=null,vt.dstate=null,di==rt?oi:e)};vt.deflateParams=function(n,t,i){var r=e;return(t==ht&&(t=6),t<0||t>9||i<0||i>k)?o:(s[pi].func!=s[t].func&&n.total_in!==0&&(r=n.deflate(bt)),pi!=t&&(pi=t,ru=s[pi].max_lazy,su=s[pi].good_length,hu=s[pi].nice_length,ou=s[pi].max_chain),br=i,r)};vt.deflateSetDictionary=function(n,i,r){var f=r,s,c=0;if(!i||di!=ct)return o;if(f<t)return e;for(f>li-u&&(f=li-u,c=r-f),v.set(i.subarray(c,c+f),0),h=f,ur=f,dt=v[0]&255,dt=(dt<<er^v[1]&255)&fr,s=0;s<=f-t;s++)dt=(dt<<er^v[s+(t-1)]&255)&fr,rr[s&cr]=vi[dt],vi[dt]=s;return e};vt.deflate=function(n,t){var v,u,y,b,i;if(t>r||t<0)return o;if(!n.next_out||!n.next_in&&n.avail_in!==0||di==w&&t!=r)return n.msg=nt[d-o],o;if(n.avail_out===0)return n.msg=nt[d-a],a;if(ai=n,b=lr,lr=t,di==ct&&(u=lt+(fu-8<<4)<<8,y=(pi-1&255)>>1,y>3&&(y=3),u|=y<<6,h!==0&&(u|=si),u+=31-u%31,di=rt,of(u)),vt.pending!==0){if(ai.flush_pending(),ai.avail_out===0)return lr=-1,e}else if(ai.avail_in===0&&t<=b&&t!=r)return ai.msg=nt[d-a],a;if(di==w&&ai.avail_in!==0)return n.msg=nt[d-a],a;if(ai.avail_in!==0||ri!==0||t!=l&&di!=w){i=-1;switch(s[pi].func){case ti:i=af(t);break;case g:i=vf(t);break;case c:i=yf(t)}if((i==p||i==it)&&(di=w),i==f||i==p)return ai.avail_out===0&&(lr=-1),e;if(i==tt){if(t==bt)hf();else if(tf(0,0,!1),t==ei)for(v=0;v<ar;v++)vi[v]=0;if(ai.flush_pending(),ai.avail_out===0)return lr=-1,e}}return t!=r?e:kt}}function ri(){var n=this;n.next_in_index=0;n.next_out_index=0;n.avail_in=0;n.total_in=0;n.avail_out=0;n.total_out=0}var v=15,ft=30,et=19,b=256,ot=b+1+29,vt=2*ot+1,y=256,yt=16,pt=17,wt=18,st=16,ht=-1,ui=1,k=2,fi=0,l=0,bt=1,ei=3,r=4,e=0,kt=1,d=2,o=-2,oi=-3,a=-5,dt=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29],gt,ni;n._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28];n.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];n.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];n.d_code=function(n){return n<256?dt[n]:dt[256+(n>>>7)]};n.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];n.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];n.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];n.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];i.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8];i.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5];i.static_l_desc=new i(i.static_ltree,n.extra_lbits,b+1,ot,v);i.static_d_desc=new i(i.static_dtree,n.extra_dbits,0,ft,v);i.static_bl_desc=new i(null,n.extra_blbits,0,et,7);gt=9;ni=8;var ti=0,g=1,c=2,s=[new h(0,0,0,0,ti),new h(4,4,8,4,g),new h(4,5,16,8,g),new h(4,6,32,32,g),new h(4,4,16,16,c),new h(8,16,32,32,c),new h(8,16,128,128,c),new h(8,32,128,256,c),new h(32,128,258,1024,c),new h(32,258,258,4096,c)],nt=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],f=0,tt=1,p=2,it=3,si=32,ct=42,rt=113,w=666,lt=8,hi=0,at=1,ci=2,t=3,ut=258,u=ut+t+1;return ri.prototype={deflateInit:function(n,t){var i=this;return i.dstate=new li,t||(t=v),i.dstate.deflateInit(i,n,t)},deflate:function(n){var t=this;return t.dstate?t.dstate.deflate(t,n):o},deflateEnd:function(){var n=this,t;return n.dstate?(t=n.dstate.deflateEnd(),n.dstate=null,t):o},deflateParams:function(n,t){var i=this;return i.dstate?i.dstate.deflateParams(i,n,t):o},deflateSetDictionary:function(n,t){var i=this;return i.dstate?i.dstate.deflateSetDictionary(i,n,t):o},read_buf:function(n,t,i){var u=this,r=u.avail_in;return(r>i&&(r=i),r===0)?0:(u.avail_in-=r,n.set(u.next_in.subarray(u.next_in_index,u.next_in_index+r),t),u.next_in_index+=r,u.total_in+=r,r)},flush_pending:function(){var n=this,t=n.dstate.pending;(t>n.avail_out&&(t=n.avail_out),t!==0)&&(n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out,n.dstate.pending_out+t),n.next_out_index),n.next_out_index+=t,n.dstate.pending_out+=t,n.total_out+=t,n.avail_out-=t,n.dstate.pending-=t,n.dstate.pending===0&&(n.dstate.pending_out=0))}},function(n){var f=this,t=new ri,i=512,o=l,u=new Uint8Array(i);typeof n=="undefined"&&(n=ht);t.deflateInit(n);t.next_out=u;f.append=function(n,r){var h,f=[],c=0,l=0,a=0,s;if(n.length){t.next_in_index=0;t.next_in=n;t.avail_in=n.length;do{if(t.next_out_index=0,t.avail_out=i,h=t.deflate(o),h!=e)throw"deflating: "+t.msg;t.next_out_index&&(t.next_out_index==i?f.push(new Uint8Array(u)):f.push(new Uint8Array(u.subarray(0,t.next_out_index))));a+=t.next_out_index;r&&t.next_in_index>0&&t.next_in_index!=c&&(r(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return s=new Uint8Array(a),f.forEach(function(n){s.set(n,l);l+=n.length}),s}};f.flush=function(){var n,o=[],s=0,h=0,f;do{if(t.next_out_index=0,t.avail_out=i,n=t.deflate(r),n!=kt&&n!=e)throw"deflating: "+t.msg;i-t.avail_out>0&&o.push(new Uint8Array(u.subarray(0,t.next_out_index)));h+=t.next_out_index}while(t.avail_in>0||t.avail_out===0);return t.deflateEnd(),f=new Uint8Array(h),o.forEach(function(n){f.set(n,s);s+=n.length}),f}}}(undefined),!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self);t.html2canvas=n()}}(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[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:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,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(t,i,r){(function(t){
/*! http://mths.be/punycode v1.2.4 by @mathias */
(function(u){function o(n){throw RangeError(vt[n]);}function nt(n,t){for(var i=n.length;i--;)n[i]=t(n[i]);return n}function tt(n,t){return nt(n.split(at),t).join(".")}function it(n){for(var r=[],i=0,f=n.length,t,u;i<f;)t=n.charCodeAt(i++),t>=55296&&t<=56319&&i<f?(u=n.charCodeAt(i++),(u&64512)==56320?r.push(((t&1023)<<10)+(u&1023)+65536):(r.push(t),i--)):r.push(t);return r}function rt(n){return nt(n,function(n){var t="";return n>65535&&(n-=65536,t+=a(n>>>10&1023|55296),n=56320|n&1023),t+a(n)}).join("")}function yt(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:f}function ut(n,t){return n+22+75*(n<26)-((t!=0)<<5)}function ft(n,t,i){var r=0;for(n=i?e(n/ht):n>>1,n+=e(n/t);n>w*l>>1;r+=f)n=e(n/w);return e(r+(w+1)*n/(n+st))}function et(n){var v=[],ut=n.length,r,t=0,b=d,y=k,i,u,w,nt,s,c,a,tt,it;for(i=n.lastIndexOf(g),i<0&&(i=0),u=0;u<i;++u)n.charCodeAt(u)>=128&&o("not-basic"),v.push(n.charCodeAt(u));for(w=i>0?i+1:0;w<ut;){for(nt=t,s=1,c=f;;c+=f){if(w>=ut&&o("invalid-input"),a=yt(n.charCodeAt(w++)),(a>=f||a>e((h-t)/s))&&o("overflow"),t+=a*s,tt=c<=y?p:c>=y+l?l:c-y,a<tt)break;it=f-tt;s>e(h/it)&&o("overflow");s*=it}r=v.length+1;y=ft(t-nt,r,nt==0);e(t/r)>h-b&&o("overflow");b+=e(t/r);t%=r;v.splice(t++,0,b)}return rt(v)}function ot(n){var r,u,v,et,y,t,s,w,b,nt,i,c=[],tt,rt,ot,st;for(n=it(n),tt=n.length,r=d,u=0,y=k,t=0;t<tt;++t)i=n[t],i<128&&c.push(a(i));for(v=et=c.length,et&&c.push(g);v<tt;){for(s=h,t=0;t<tt;++t)i=n[t],i>=r&&i<s&&(s=i);for(rt=v+1,s-r>e((h-u)/rt)&&o("overflow"),u+=(s-r)*rt,r=s,t=0;t<tt;++t)if(i=n[t],i<r&&++u>h&&o("overflow"),i==r){for(w=u,b=f;;b+=f){if(nt=b<=y?p:b>=y+l?l:b-y,w<nt)break;st=w-nt;ot=f-nt;c.push(a(ut(nt+st%ot,0)));w=e(st/ot)}c.push(a(ut(w,0)));y=ft(u,rt,v==et);u=0;++v}++u;++r}return c.join("")}function pt(n){return tt(n,function(n){return ct.test(n)?et(n.slice(4).toLowerCase()):n})}function wt(n){return tt(n,function(n){return lt.test(n)?"xn--"+ot(n):n})}var v=typeof r=="object"&&r,b=typeof i=="object"&&i&&i.exports==v&&i,c=typeof t=="object"&&t;(c.global===c||c.window===c)&&(u=c);var s,h=2147483647,f=36,p=1,l=26,st=38,ht=700,k=72,d=128,g="-",ct=/^xn--/,lt=/[^ -~]/,at=/\x2E|\u3002|\uFF0E|\uFF61/g,vt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=f-p,e=Math.floor,a=String.fromCharCode,y;if(s={version:"1.2.4",ucs2:{decode:it,encode:rt},decode:et,encode:ot,toASCII:wt,toUnicode:pt},typeof n!="function"||typeof n.amd!="object"||!n.amd)if(v&&!v.nodeType)if(b)b.exports=s;else for(y in s)s.hasOwnProperty(y)&&(v[y]=s[y]);else u.punycode=s})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,t){function f(n,t,i){n.defaultView&&(t!==n.defaultView.pageXOffset||i!==n.defaultView.pageYOffset)&&n.defaultView.scrollTo(t,i)}function e(n,t){try{t&&(t.width=n.width,t.height=n.height,t.getContext("2d").putImageData(n.getContext("2d").getImageData(0,0,n.width,n.height),0,0))}catch(i){u("Unable to copy canvas content from",n,i)}}function i(n,t){for(var r=n.nodeType===3?document.createTextNode(n.nodeValue):n.cloneNode(!1),u=n.firstChild;u;)(t===!0||u.nodeType!==1||u.nodeName!=="SCRIPT")&&r.appendChild(i(u,t)),u=u.nextSibling;return n.nodeType===1&&(r._scrollTop=n.scrollTop,r._scrollLeft=n.scrollLeft,n.nodeName==="CANVAS"?e(n,r):(n.nodeName==="TEXTAREA"||n.nodeName==="SELECT")&&(r.value=n.value)),r}function r(n){if(n.nodeType===1){n.scrollTop=n._scrollTop;n.scrollLeft=n._scrollLeft;for(var t=n.firstChild;t;)r(t),t=t.nextSibling}}var u=n("./log");t.exports=function(n,t,u,e,o,s,h){var l=i(n.documentElement,o.javascriptEnabled),c=t.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=u,c.height=e,c.scrolling="no",t.body.appendChild(c),new Promise(function(t){var i=c.contentWindow.document;c.contentWindow.onload=c.onload=function(){var n=setInterval(function(){i.body.childNodes.length>0&&(r(i.documentElement),clearInterval(n),o.type==="view"&&(c.contentWindow.scrollTo(s,h),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.contentWindow.scrollY!==h||c.contentWindow.scrollX!==s)&&(i.documentElement.style.top=-h+"px",i.documentElement.style.left=-s+"px",i.documentElement.style.position="absolute")),t(c))},50)};i.open();i.write("<!DOCTYPE html><html><\/html>");f(n,s,h);i.replaceChild(i.adoptNode(l),i.documentElement);i.close()})}},{"./log":13}],3:[function(n,t){function i(n){this.r=0;this.g=0;this.b=0;this.a=null;var t=this.fromArray(n)||this.namedColor(n)||this.rgb(n)||this.rgba(n)||this.hex6(n)||this.hex3(n)}var r,u,f,e,o;i.prototype.darken=function(n){var t=1-n;return new i([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])};i.prototype.isTransparent=function(){return this.a===0};i.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};i.prototype.fromArray=function(n){return Array.isArray(n)&&(this.r=Math.min(n[0],255),this.g=Math.min(n[1],255),this.b=Math.min(n[2],255),n.length>3&&(this.a=n[3])),Array.isArray(n)};r=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(n){var t=null;return(t=n.match(r))!==null&&(this.r=parseInt(t[1][0]+t[1][0],16),this.g=parseInt(t[1][1]+t[1][1],16),this.b=parseInt(t[1][2]+t[1][2],16)),t!==null};u=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(n){var t=null;return(t=n.match(u))!==null&&(this.r=parseInt(t[1].substring(0,2),16),this.g=parseInt(t[1].substring(2,4),16),this.b=parseInt(t[1].substring(4,6),16)),t!==null};f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(n){var t=null;return(t=n.match(f))!==null&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3])),t!==null};e=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;i.prototype.rgba=function(n){var t=null;return(t=n.match(e))!==null&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3]),this.a=Number(t[4])),t!==null};i.prototype.toString=function(){return this.a!==null&&this.a!==1?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"};i.prototype.namedColor=function(n){n=n.toLowerCase();var t=o[n];if(t)this.r=t[0],this.g=t[1],this.b=t[2];else if(n==="transparent")return this.r=this.g=this.b=this.a=0,!0;return!!t};i.prototype.isColor=!0;o={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};t.exports=i},{}],4:[function(n,t){function r(n,t){var f=b++,o,h,r;return(t=t||{},t.logging&&(i.options.logging=!0,i.options.start=Date.now()),t.async=typeof t.async=="undefined"?!0:t.async,t.allowTaint=typeof t.allowTaint=="undefined"?!1:t.allowTaint,t.removeContainer=typeof t.removeContainer=="undefined"?!0:t.removeContainer,t.javascriptEnabled=typeof t.javascriptEnabled=="undefined"?!1:t.javascriptEnabled,t.imageTimeout=typeof t.imageTimeout=="undefined"?1e4:t.imageTimeout,t.renderer=typeof t.renderer=="function"?t.renderer:u,t.strict=!!t.strict,typeof n=="string")?typeof t.proxy!="string"?Promise.reject("Proxy must be used when rendering url"):(o=t.width!=null?t.width:window.innerWidth,h=t.height!=null?t.height:window.innerHeight,p(tt(n),t.proxy,document,o,h,t).then(function(n){return s(n.contentWindow.document.documentElement,n,t,o,h)})):(r=(n===undefined?[document.documentElement]:n.length?n:[n])[0],r.setAttribute(e+f,f),k(r.ownerDocument,t,r.ownerDocument.defaultView.innerWidth,r.ownerDocument.defaultView.innerHeight,f).then(function(n){if(typeof t.onrendered=="function"){i("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");t.onrendered(n)}return n}))}function k(n,t,r,u,f){return y(n,n,r,u,t,n.defaultView.pageXOffset,n.defaultView.pageYOffset).then(function(o){var h,c;i("Document cloned");h=e+f;c="["+h+"='"+f+"']";n.querySelector(c).removeAttribute(h);var l=o.contentWindow,a=l.document.querySelector(c),v=typeof t.onclone=="function"?Promise.resolve(t.onclone(l.document)):Promise.resolve(!0);return v.then(function(){return s(a,o,t,r,u)})})}function s(n,t,r,u,f){var o=t.contentWindow,v=new c(o.document),y=new l(r,v),s=w(n),p=r.type==="view"?u:g(o.document),b=r.type==="view"?f:nt(o.document),e=new r.renderer(p,b,y,r,document),k=new a(n,e,v,y,r);return k.ready.then(function(){i("Finished rendering");var u;return u=r.type==="view"?h(e.canvas,{width:e.canvas.width,height:e.canvas.height,top:0,left:0,x:0,y:0}):n===o.document.body||n===o.document.documentElement||r.canvas!=null?e.canvas:h(e.canvas,{width:r.width!=null?r.width:s.width,height:r.height!=null?r.height:s.height,top:s.top,left:s.left,x:0,y:0}),d(t,r),u})}function d(n,t){t.removeContainer&&(n.parentNode.removeChild(n),i("Cleaned up container"))}function h(n,t){var r=document.createElement("canvas"),e=Math.min(n.width-1,Math.max(0,t.left)),s=Math.min(n.width,Math.max(1,t.left+t.width)),o=Math.min(n.height-1,Math.max(0,t.top)),h=Math.min(n.height,Math.max(1,t.top+t.height)),u,f;return r.width=t.width,r.height=t.height,u=s-e,f=h-o,i("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",u,"height:",f),i("Resulting crop with width",t.width,"and height",t.height,"with x",e,"and y",o),r.getContext("2d").drawImage(n,e,o,u,f,t.x,t.y,u,f),r}function g(n){return Math.max(Math.max(n.body.scrollWidth,n.documentElement.scrollWidth),Math.max(n.body.offsetWidth,n.documentElement.offsetWidth),Math.max(n.body.clientWidth,n.documentElement.clientWidth))}function nt(n){return Math.max(Math.max(n.body.scrollHeight,n.documentElement.scrollHeight),Math.max(n.body.offsetHeight,n.documentElement.offsetHeight),Math.max(n.body.clientHeight,n.documentElement.clientHeight))}function tt(n){var t=document.createElement("a");return t.href=n,t.href=t.href,t}var c=n("./support"),u=n("./renderers/canvas"),l=n("./imageloader"),a=n("./nodeparser"),v=n("./nodecontainer"),i=n("./log"),f=n("./utils"),y=n("./clone"),p=n("./proxy").loadUrlDocument,w=f.getBounds,e="data-html2canvas-node",b=0,o;r.CanvasRenderer=u;r.NodeContainer=v;r.log=i;r.utils=f;o=typeof document=="undefined"||typeof Object.create!="function"||typeof document.createElement("canvas").getContext!="function"?function(){return Promise.reject("No canvas support")}:r;t.exports=o},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(n,t){function i(n){if(this.src=n,r("DummyImageContainer for",n),!this.promise||!this.image){r("Initiating DummyImageContainer");i.prototype.image=new Image;var t=this.image;i.prototype.promise=new Promise(function(n,i){t.onload=n;t.onerror=i;t.src=u();t.complete===!0&&n(t)})}}var r=n("./log"),u=n("./utils").smallImage;t.exports=i},{"./log":13,"./utils":26}],6:[function(n,t){function r(n,t){var r=document.createElement("div"),u=document.createElement("img"),f=document.createElement("span"),e="Hidden Text",o,s;r.style.visibility="hidden";r.style.fontFamily=n;r.style.fontSize=t;r.style.margin=0;r.style.padding=0;document.body.appendChild(r);u.src=i();u.width=1;u.height=1;u.style.margin=0;u.style.padding=0;u.style.verticalAlign="baseline";f.style.fontFamily=n;f.style.fontSize=t;f.style.margin=0;f.style.padding=0;f.appendChild(document.createTextNode(e));r.appendChild(f);r.appendChild(u);o=u.offsetTop-f.offsetTop+1;r.removeChild(f);r.appendChild(document.createTextNode(e));r.style.lineHeight="normal";u.style.verticalAlign="super";s=u.offsetTop-r.offsetTop+1;document.body.removeChild(r);this.baseline=o;this.lineWidth=1;this.middle=s}var i=n("./utils").smallImage;t.exports=r},{"./utils":26}],7:[function(n,t){function i(){this.data={}}var r=n("./font");i.prototype.getMetrics=function(n,t){return this.data[n+"-"+t]===undefined&&(this.data[n+"-"+t]=new r(n,t)),this.data[n+"-"+t]};t.exports=i},{"./font":6}],8:[function(n,t){function i(t,i,r){this.image=null;this.src=t;var f=this,e=u(t);this.promise=(i?new Promise(function(n){t.contentWindow.document.URL==="about:blank"||t.contentWindow.document.documentElement==null?t.contentWindow.onload=t.onload=function(){n(t)}:n(t)}):this.proxyLoad(r.proxy,e,r)).then(function(t){var i=n("./core");return i(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})}).then(function(n){return f.image=n})}var r=n("./utils"),u=r.getBounds,f=n("./proxy").loadUrlDocument;i.prototype.proxyLoad=function(n,t,i){var r=this.src;return f(r.src,n,r.ownerDocument,t.width,t.height,i)};t.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(n,t){function i(n){this.src=n.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(!0)}i.TYPES={LINEAR:1,RADIAL:2};i.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i;t.exports=i},{}],10:[function(n,t){function i(n,t){this.src=n;this.image=new Image;var i=this;this.tainted=null;this.promise=new Promise(function(r,u){i.image.onload=r;i.image.onerror=u;t&&(i.image.crossOrigin="anonymous");i.image.src=n;i.image.complete===!0&&r(i.image)})}t.exports=i},{}],11:[function(n,t){function i(n,t){this.link=null;this.options=n;this.support=t;this.origin=this.getOrigin(window.location.href)}var r=n("./log"),u=n("./imagecontainer"),f=n("./dummyimagecontainer"),o=n("./proxyimagecontainer"),s=n("./framecontainer"),e=n("./svgcontainer"),h=n("./svgnodecontainer"),c=n("./lineargradientcontainer"),l=n("./webkitgradientcontainer"),a=n("./utils").bind;i.prototype.findImages=function(n){var t=[];return n.reduce(function(n,t){switch(t.node.nodeName){case"IMG":return n.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return n.concat([{args:[t.node],method:t.node.nodeName}])}return n},[]).forEach(this.addImage(t,this.loadImage),this),t};i.prototype.findBackgroundImage=function(n,t){return t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(n,this.loadImage),this),n};i.prototype.addImage=function(n,t){return function(i){i.args.forEach(function(u){this.imageExists(n,u)||(n.splice(0,0,t.call(this,i)),r("Added image #"+n.length,typeof u=="string"?u.substring(0,100):u))},this)}};i.prototype.hasImageBackground=function(n){return n.method!=="none"};i.prototype.loadImage=function(n){if(n.method==="url"){var t=n.args[0];return!this.isSVG(t)||this.support.svg||this.options.allowTaint?t.match(/data:image\/.*;base64,/i)?new u(t.replace(/url\(['"]{0,}|['"]{0,}\)$/ig,""),!1):this.isSameOrigin(t)||this.options.allowTaint===!0||this.isSVG(t)?new u(t,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new u(t,!0):this.options.proxy?new o(t,this.options.proxy):new f(t):new e(t)}return n.method==="linear-gradient"?new c(n):n.method==="gradient"?new l(n):n.method==="svg"?new h(n.args[0],this.support.svg):n.method==="IFRAME"?new s(n.args[0],this.isSameOrigin(n.args[0].src),this.options):new f(n)};i.prototype.isSVG=function(n){return n.substring(n.length-3).toLowerCase()==="svg"||e.prototype.isInline(n)};i.prototype.imageExists=function(n,t){return n.some(function(n){return n.src===t})};i.prototype.isSameOrigin=function(n){return this.getOrigin(n)===this.origin};i.prototype.getOrigin=function(n){var t=this.link||(this.link=document.createElement("a"));return t.href=n,t.href=t.href,t.protocol+t.hostname+t.port};i.prototype.getPromise=function(n){return this.timeout(n,this.options.imageTimeout)["catch"](function(){var t=new f(n.src);return t.promise.then(function(t){n.image=t})})};i.prototype.get=function(n){var t=null;return this.images.some(function(i){return(t=i).src===n})?t:null};i.prototype.fetch=function(n){return this.images=n.reduce(a(this.findBackgroundImage,this),this.findImages(n)),this.images.forEach(function(n,t){n.promise.then(function(){r("Succesfully loaded image #"+(t+1),n)},function(i){r("Failed loading image #"+(t+1),n,i)})}),this.ready=Promise.all(this.images.map(this.getPromise,this)),r("Finished searching images"),this};i.prototype.timeout=function(n,t){var i,u=Promise.race([n.promise,new Promise(function(u,f){i=setTimeout(function(){r("Timed out loading image",n);f(n)},t)})]).then(function(n){return clearTimeout(i),n});return u["catch"](function(){clearTimeout(i)}),u};t.exports=i},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(n,t){function r(n){i.apply(this,arguments);this.type=i.TYPES.LINEAR;var t=r.REGEXP_DIRECTION.test(n.args[0])||!i.REGEXP_COLORSTOP.test(n.args[0]);t?n.args[0].split(/\s+/).reverse().forEach(function(n,t){var r,u,i;switch(n){case"left":this.x0=0;this.x1=1;break;case"top":this.y0=0;this.y1=1;break;case"right":this.x0=1;this.x1=0;break;case"bottom":this.y0=1;this.y1=0;break;case"to":r=this.y0;u=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=u;this.y1=r;break;case"center":break;default:if(i=parseFloat(n,10)*.01,isNaN(i))break;t===0?(this.y0=i,this.y1=1-this.y0):(this.x0=i,this.x1=1-this.x0)}},this):(this.y0=0,this.y1=1);this.colorStops=n.args.slice(t?1:0).map(function(n){var t=n.match(i.REGEXP_COLORSTOP),r=+t[2],f=r===0?"%":t[3];return{color:new u(t[1]),stop:f==="%"?r/100:null}});this.colorStops[0].stop===null&&(this.colorStops[0].stop=0);this.colorStops[this.colorStops.length-1].stop===null&&(this.colorStops[this.colorStops.length-1].stop=1);this.colorStops.forEach(function(n,t){n.stop===null&&this.colorStops.slice(t).some(function(i,r){return i.stop!==null?(n.stop=(i.stop-this.colorStops[t-1].stop)/(r+1)+this.colorStops[t-1].stop,!0):!1},this)},this)}var i=n("./gradientcontainer"),u=n("./color");r.prototype=Object.create(i.prototype);r.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;t.exports=r},{"./color":3,"./gradientcontainer":9}],13:[function(n,t){var i=function(){i.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-i.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};i.options={logging:!1};t.exports=i},{}],14:[function(n,t){function i(n,t){this.node=n;this.parent=t;this.stack=null;this.bounds=null;this.borders=null;this.clip=[];this.backgroundClip=[];this.offsetBounds=null;this.visible=null;this.computedStyles=null;this.colors={};this.styles={};this.backgroundImages=null;this.transformData=null;this.transformMatrix=null;this.isPseudoElement=!1;this.opacity=null}function h(n){var t=n.options[n.selectedIndex||0];return t?t.text||"":""}function c(n){if(n&&n[1]==="matrix")return n[2].split(",").map(function(n){return parseFloat(n.trim())});if(n&&n[1]==="matrix3d"){var t=n[2].split(",").map(function(n){return parseFloat(n.trim())});return[t[0],t[1],t[4],t[5],t[12],t[13]]}}function r(n){return n.toString().indexOf("%")!==-1}function l(n){return n.replace("px","")}function a(n){return parseFloat(n)}var f=n("./color"),u=n("./utils"),e=u.getBounds,o=u.parseBackgrounds,s=u.offsetBounds;i.prototype.cloneTo=function(n){n.visible=this.visible;n.borders=this.borders;n.bounds=this.bounds;n.clip=this.clip;n.backgroundClip=this.backgroundClip;n.computedStyles=this.computedStyles;n.styles=this.styles;n.backgroundImages=this.backgroundImages;n.opacity=this.opacity};i.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};i.prototype.assignStack=function(n){this.stack=n;n.children.push(this)};i.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:this.css("display")!=="none"&&this.css("visibility")!=="hidden"&&!this.node.hasAttribute("data-html2canvas-ignore")&&(this.node.nodeName!=="INPUT"||this.node.getAttribute("type")!=="hidden")};i.prototype.css=function(n){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[n]||(this.styles[n]=this.computedStyles[n])};i.prototype.prefixedCss=function(n){var t=this.css(n);return t===undefined&&["webkit","moz","ms","o"].some(function(i){return t=this.css(i+n.substr(0,1).toUpperCase()+n.substr(1)),t!==undefined},this),t===undefined?null:t};i.prototype.computedStyle=function(n){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,n)};i.prototype.cssInt=function(n){var t=parseInt(this.css(n),10);return isNaN(t)?0:t};i.prototype.color=function(n){return this.colors[n]||(this.colors[n]=new f(this.css(n)))};i.prototype.cssFloat=function(n){var t=parseFloat(this.css(n));return isNaN(t)?0:t};i.prototype.fontWeight=function(){var n=this.css("fontWeight");switch(parseInt(n,10)){case 401:n="bold";break;case 400:n="normal"}return n};i.prototype.parseClip=function(){var n=this.css("clip").match(this.CLIP);return n?{top:parseInt(n[1],10),right:parseInt(n[2],10),bottom:parseInt(n[3],10),left:parseInt(n[4],10)}:null};i.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};i.prototype.cssList=function(n,t){var i=(this.css(n)||"").split(",");return i=i[t||0]||i[0]||"auto",i=i.trim().split(" "),i.length===1&&(i=[i[0],r(i[0])?"auto":i[0]]),i};i.prototype.parseBackgroundSize=function(n,t,i){var u=this.cssList("backgroundSize",i),f,o,s,e;if(r(u[0]))f=n.width*parseFloat(u[0])/100;else{if(/contain|cover/.test(u[0]))return s=n.width/n.height,e=t.width/t.height,s<e^u[0]==="contain"?{width:n.height*e,height:n.height}:{width:n.width,height:n.width/e};f=parseInt(u[0],10)}return o=u[0]==="auto"&&u[1]==="auto"?t.height:u[1]==="auto"?f/t.width*t.height:r(u[1])?n.height*parseFloat(u[1])/100:parseInt(u[1],10),u[0]==="auto"&&(f=o/t.height*t.width),{width:f,height:o}};i.prototype.parseBackgroundPosition=function(n,t,i,u){var f=this.cssList("backgroundPosition",i),e,o;return e=r(f[0])?(n.width-(u||t).width)*(parseFloat(f[0])/100):parseInt(f[0],10),o=f[1]==="auto"?e/t.width*t.height:r(f[1])?(n.height-(u||t).height)*parseFloat(f[1])/100:parseInt(f[1],10),f[0]==="auto"&&(e=o/t.height*t.width),{left:e,top:o}};i.prototype.parseBackgroundRepeat=function(n){return this.cssList("backgroundRepeat",n)[0]};i.prototype.parseTextShadows=function(){var r=this.css("textShadow"),u=[],t,i,n;if(r&&r!=="none")for(t=r.match(this.TEXT_SHADOW_PROPERTY),i=0;t&&i<t.length;i++)n=t[i].match(this.TEXT_SHADOW_VALUES),u.push({color:new f(n[0]),offsetX:n[1]?parseFloat(n[1].replace("px","")):0,offsetY:n[2]?parseFloat(n[2].replace("px","")):0,blur:n[3]?n[3].replace("px",""):0});return u};i.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),n=this.prefixedCss("transformOrigin").split(" ").map(l).map(a);n[0]+=t.left;n[1]+=t.top;this.transformData={origin:n,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData};i.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var n=this.prefixedCss("transform"),t=n?c(n.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=t?t:[1,0,0,1,0,0]}return this.transformMatrix};i.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):e(this.node))};i.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};i.prototype.getValue=function(){var n=this.node.value||"";return this.node.tagName==="SELECT"?n=h(this.node):this.node.type==="password"&&(n=Array(n.length+1).join("•")),n.length===0?this.node.placeholder||"":n};i.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;i.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;i.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;i.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;t.exports=i},{"./color":3,"./utils":26}],15:[function(n,t){function i(n,t,i,f,e){var o,s;r("Starting NodeParser");this.renderer=t;this.options=e;this.range=null;this.support=i;this.renderQueue=[];this.stack=new k(!0,1,n.ownerDocument,null);o=new w(n,null);e.background&&t.rectangle(0,0,t.width,t.height,new u(e.background));n===n.ownerDocument.documentElement&&(s=new w(o.color("backgroundColor").isTransparent()?n.ownerDocument.body:n.ownerDocument.documentElement,null),t.rectangle(0,0,t.width,t.height,s.color("backgroundColor")));o.visibile=o.isElementVisible();this.createPseudoHideStyles(n.ownerDocument);this.disableAnimations(n.ownerDocument);this.nodes=it([o].concat(this.getChildren(o)).filter(function(n){return n.visible=n.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new ct;r("Fetched nodes, total:",this.nodes.length);r("Calculate overflow clips");this.calculateOverflowClips();r("Start fetching images");this.images=f.fetch(this.nodes.filter(l));this.ready=this.images.ready.then(d(function(){return r("Images loaded, starting parsing"),r("Creating stacking contexts"),this.createStackingContexts(),r("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),r("Render queue created with "+this.renderQueue.length+" items"),new Promise(d(function(n){e.async?typeof e.async=="function"?e.async.call(this,this.renderQueue,n):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,n)):n():(this.renderQueue.forEach(this.paint,this),n())},this))},this))}function rt(n){return n.parent&&n.parent.clip.length}function yt(n){return n.replace(/(\-[a-z])/g,function(n){return n.toUpperCase().replace("-","")})}function ut(){}function ft(n,t,i,r){return n.map(function(u,f){if(u.width>0){var o=t.left,e=t.top,s=t.width,h=t.height-n[2].width;switch(f){case 0:h=n[0].width;u.args=p({c1:[o,e],c2:[o+s,e],c3:[o+s-n[1].width,e+h],c4:[o+n[3].width,e+h]},r[0],r[1],i.topLeftOuter,i.topLeftInner,i.topRightOuter,i.topRightInner);break;case 1:o=t.left+t.width-n[1].width;s=n[1].width;u.args=p({c1:[o+s,e],c2:[o+s,e+h+n[2].width],c3:[o,e+h],c4:[o,e+n[0].width]},r[1],r[2],i.topRightOuter,i.topRightInner,i.bottomRightOuter,i.bottomRightInner);break;case 2:e=e+t.height-n[2].width;h=n[2].width;u.args=p({c1:[o+s,e+h],c2:[o,e+h],c3:[o+n[3].width,e],c4:[o+s-n[3].width,e]},r[2],r[3],i.bottomRightOuter,i.bottomRightInner,i.bottomLeftOuter,i.bottomLeftInner);break;case 3:s=n[3].width;u.args=p({c1:[o,e+h+n[2].width],c2:[o,e],c3:[o+s,e+n[0].width],c4:[o+s,e+h]},r[3],r[0],i.bottomLeftOuter,i.bottomLeftInner,i.topLeftOuter,i.topLeftInner)}}return u})}function f(n,t,i,r){var h=4*((Math.sqrt(2)-1)/3),e=i*h,s=r*h,u=n+i,f=t+r;return{topLeft:o({x:n,y:f},{x:n,y:f-s},{x:u-e,y:t},{x:u,y:t}),topRight:o({x:n,y:t},{x:n+e,y:t},{x:u,y:f-s},{x:u,y:f}),bottomRight:o({x:u,y:t},{x:u,y:t+s},{x:n+e,y:f},{x:n,y:f}),bottomLeft:o({x:u,y:f},{x:u-e,y:f},{x:n,y:t+s},{x:n,y:t})}}function et(n,t,i){var e=n.left,o=n.top,r=n.width,u=n.height,v=t[0][0]<r/2?t[0][0]:r/2,y=t[0][1]<u/2?t[0][1]:u/2,s=t[1][0]<r/2?t[1][0]:r/2,p=t[1][1]<u/2?t[1][1]:u/2,h=t[2][0]<r/2?t[2][0]:r/2,c=t[2][1]<u/2?t[2][1]:u/2,w=t[3][0]<r/2?t[3][0]:r/2,l=t[3][1]<u/2?t[3][1]:u/2,a=r-s,b=u-c,k=r-h,d=u-l;return{topLeftOuter:f(e,o,v,y).topLeft.subdivide(.5),topLeftInner:f(e+i[3].width,o+i[0].width,Math.max(0,v-i[3].width),Math.max(0,y-i[0].width)).topLeft.subdivide(.5),topRightOuter:f(e+a,o,s,p).topRight.subdivide(.5),topRightInner:f(e+Math.min(a,r+i[3].width),o+i[0].width,a>r+i[3].width?0:s-i[3].width,p-i[0].width).topRight.subdivide(.5),bottomRightOuter:f(e+k,o+b,h,c).bottomRight.subdivide(.5),bottomRightInner:f(e+Math.min(k,r-i[3].width),o+Math.min(b,u+i[0].width),Math.max(0,h-i[1].width),c-i[2].width).bottomRight.subdivide(.5),bottomLeftOuter:f(e,o+d,w,l).bottomLeft.subdivide(.5),bottomLeftInner:f(e+i[3].width,o+d,Math.max(0,w-i[3].width),l-i[2].width).bottomLeft.subdivide(.5)}}function o(n,t,i,r){var u=function(n,t,i){return{x:n.x+(t.x-n.x)*i,y:n.y+(t.y-n.y)*i}};return{start:n,startControl:t,endControl:i,end:r,subdivide:function(f){var e=u(n,t,f),s=u(t,i,f),h=u(i,r,f),c=u(e,s,f),l=u(s,h,f),a=u(c,l,f);return[o(n,e,c,a),o(a,l,h,r)]},curveTo:function(n){n.push(["bezierCurve",t.x,t.y,i.x,i.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",i.x,i.y,t.x,t.y,n.x,n.y])}}}function p(n,t,i,r,u,f,e){var o=[];return t[0]>0||t[1]>0?(o.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(o)):o.push(["line",n.c1[0],n.c1[1]]),i[0]>0||i[1]>0?(o.push(["line",f[0].start.x,f[0].start.y]),f[0].curveTo(o),o.push(["line",e[0].end.x,e[0].end.y]),e[0].curveToReversed(o)):(o.push(["line",n.c2[0],n.c2[1]]),o.push(["line",n.c3[0],n.c3[1]])),t[0]>0||t[1]>0?(o.push(["line",u[1].end.x,u[1].end.y]),u[1].curveToReversed(o)):o.push(["line",n.c4[0],n.c4[1]]),o}function e(n,t,i,r,u,f,e){t[0]>0||t[1]>0?(n.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(n),r[1].curveTo(n)):n.push(["line",f,e]);(i[0]>0||i[1]>0)&&n.push(["line",u[0].start.x,u[0].start.y])}function pt(n){return n.cssInt("zIndex")<0}function wt(n){return n.cssInt("zIndex")>0}function ot(n){return n.cssInt("zIndex")===0}function st(n){return["inline","inline-block","inline-table"].indexOf(n.css("display"))!==-1}function ht(n){return n instanceof k}function bt(n){return n.node.data.trim().length>0}function kt(n){return/^(normal|none|0px)$/.test(n.parent.css("letterSpacing"))}function dt(n){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var r=n.css("border"+t+"Radius"),i=r.split(" ");return i.length<=1&&(i[1]=i[0]),i.map(ui)})}function gt(n){return n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE}function ni(n){var t=n.css("position"),i=["absolute","relative","fixed"].indexOf(t)!==-1?n.css("zIndex"):"auto";return i!=="auto"}function h(n){return n.css("position")!=="static"}function nt(n){return n.css("float")!=="none"}function ti(n){return["inline-block","inline-table"].indexOf(n.css("display"))!==-1}function c(n){var t=this;return function(){return!n.apply(t,arguments)}}function l(n){return n.node.nodeType===Node.ELEMENT_NODE}function a(n){return n.isPseudoElement===!0}function tt(n){return n.node.nodeType===Node.TEXT_NODE}function ii(n){return function(t,i){return t.cssInt("zIndex")+n.indexOf(t)/n.length-(i.cssInt("zIndex")+n.indexOf(i)/n.length)}}function ri(n){return n.getOpacity()<1}function ui(n){return parseInt(n,10)}function fi(n){return n.width}function ei(n){return n.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(n.node.nodeName)===-1}function it(n){return[].concat.apply([],n)}function oi(n){var t=n.substr(0,1);return t===n.substr(n.length-1)&&t.match(/'|"/)?n.substr(1,n.length-2):n}function si(n){for(var r=[],t=0,u=!1,i;n.length;)hi(n[t])===u?(i=n.splice(0,t),i.length&&r.push(v.ucs2.encode(i)),u=!u,t=0):t++,t>=n.length&&(i=n.splice(0,t),i.length&&r.push(v.ucs2.encode(i)));return r}function hi(n){return[32,13,10,9,45].indexOf(n)!==-1}function ci(n){return/[^\u0000-\u00ff]/.test(n)}var r=n("./log"),v=n("punycode"),w=n("./nodecontainer"),b=n("./textcontainer"),s=n("./pseudoelementcontainer"),ct=n("./fontmetrics"),u=n("./color"),k=n("./stackingcontext"),y=n("./utils"),d=y.bind,lt=y.getBounds,at=y.parseBackgrounds,vt=y.offsetBounds,g;i.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(n){if(l(n)){a(n)&&n.appendToDOM();n.borders=this.parseBorders(n);var i=n.css("overflow")==="hidden"?[n.borders.clip]:[],t=n.parseClip();t&&["absolute","fixed"].indexOf(n.css("position"))!==-1&&i.push([["rect",n.bounds.left+t.left,n.bounds.top+t.top,t.right-t.left,t.bottom-t.top]]);n.clip=rt(n)?n.parent.clip.concat(i):i;n.backgroundClip=n.css("overflow")!=="hidden"?n.clip.concat([n.borders.clip]):n.clip;a(n)&&n.cleanDOM()}else tt(n)&&(n.clip=rt(n)?n.parent.clip:[]);a(n)||(n.bounds=null)},this)};i.prototype.asyncRenderer=function(n,t,i){i=i||Date.now();this.paint(n[this.renderIndex++]);n.length===this.renderIndex?t():i+20>Date.now()?this.asyncRenderer(n,t,i):setTimeout(d(function(){this.asyncRenderer(n,t)},this),0)};i.prototype.createPseudoHideStyles=function(n){this.createStyles(n,"."+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};i.prototype.disableAnimations=function(n){this.createStyles(n,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")};i.prototype.createStyles=function(n,t){var i=n.createElement("style");i.innerHTML=t;n.body.appendChild(i)};i.prototype.getPseudoElements=function(n){var t=[[n]],i,r;return n.node.nodeType===Node.ELEMENT_NODE&&(i=this.getPseudoElement(n,":before"),r=this.getPseudoElement(n,":after"),i&&t.push(i),r&&t.push(r)),it(t)};i.prototype.getPseudoElement=function(n,t){var i=n.computedStyle(t),u,o,h;if(!i||!i.content||i.content==="none"||i.content==="-moz-alt-content"||i.display==="none")return null;var f=oi(i.content),c=f.substr(0,3)==="url",r=document.createElement(c?"img":"html2canvaspseudoelement"),e=new s(r,n,t);for(u=i.length-1;u>=0;u--)o=yt(i.item(u)),r.style[o]=i[o];return r.className=s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,c?(r.src=at(f)[0].args[0],[e]):(h=document.createTextNode(f),r.appendChild(h),[e,new b(h,e)])};i.prototype.getChildren=function(n){return it([].filter.call(n.node.childNodes,gt).map(function(t){var i=[t.nodeType===Node.TEXT_NODE?new b(t,n):new w(t,n)].filter(ei);return t.nodeType===Node.ELEMENT_NODE&&i.length&&t.tagName!=="TEXTAREA"?i[0].isElementVisible()?i.concat(this.getChildren(i[0])):[]:i},this))};i.prototype.newStackingContext=function(n,t){var i=new k(t,n.getOpacity(),n.node,n.parent),r;n.cloneTo(i);r=t?i.getParentStack(this):i.parent.stack;r.contexts.push(i);n.stack=i};i.prototype.createStackingContexts=function(){this.nodes.forEach(function(n){l(n)&&(this.isRootElement(n)||ri(n)||ni(n)||this.isBodyWithTransparentRoot(n)||n.hasTransform())?this.newStackingContext(n,!0):l(n)&&(h(n)&&ot(n)||ti(n)||nt(n))?this.newStackingContext(n,!1):n.assignStack(n.parent.stack)},this)};i.prototype.isBodyWithTransparentRoot=function(n){return n.node.nodeName==="BODY"&&n.parent.color("backgroundColor").isTransparent()};i.prototype.isRootElement=function(n){return n.parent===null};i.prototype.sortStackingContexts=function(n){n.contexts.sort(ii(n.contexts.slice(0)));n.contexts.forEach(this.sortStackingContexts,this)};i.prototype.parseTextBounds=function(n){return function(t,i,r){var u,f,e;if(n.parent.css("textDecoration").substr(0,4)!=="none"||t.trim().length!==0){if(this.support.rangeBounds&&!n.parent.hasTransform())return u=r.slice(0,i).join("").length,this.getRangeBounds(n.node,u,t.length);if(n.node&&typeof n.node.data=="string")return f=n.node.splitText(t.length),e=this.getWrapperBounds(n.node,n.parent.hasTransform()),n.node=f,e}else(!this.support.rangeBounds||n.parent.hasTransform())&&(n.node=n.node.splitText(t.length));return{}}};i.prototype.getWrapperBounds=function(n,t){var i=n.ownerDocument.createElement("html2canvaswrapper"),r=n.parentNode,f=n.cloneNode(!0),u;return i.appendChild(n.cloneNode(!0)),r.replaceChild(i,n),u=t?vt(i):lt(i),r.replaceChild(f,i),u};i.prototype.getRangeBounds=function(n,t,i){var r=this.range||(this.range=n.ownerDocument.createRange());return r.setStart(n,t),r.setEnd(n,t+i),r.getBoundingClientRect()};i.prototype.parse=function(n){var r=n.contexts.filter(pt),i=n.children.filter(l),t=i.filter(c(nt)),u=t.filter(c(h)).filter(c(st)),f=i.filter(c(h)).filter(nt),e=t.filter(c(h)).filter(st),o=n.contexts.concat(t.filter(h)).filter(ot),s=n.children.filter(tt).filter(bt),a=n.contexts.filter(wt);r.concat(u).concat(f).concat(e).concat(o).concat(s).concat(a).forEach(function(n){this.renderQueue.push(n);ht(n)&&(this.parse(n),this.renderQueue.push(new ut))},this)};i.prototype.paint=function(n){try{n instanceof ut?this.renderer.ctx.restore():tt(n)?(a(n.parent)&&n.parent.appendToDOM(),this.paintText(n),a(n.parent)&&n.parent.cleanDOM()):this.paintNode(n)}catch(t){if(r(t),this.options.strict)throw t;}};i.prototype.paintNode=function(n){ht(n)&&(this.renderer.setOpacity(n.opacity),this.renderer.ctx.save(),n.hasTransform()&&this.renderer.setTransform(n.parseTransform()));n.node.nodeName==="INPUT"&&n.node.type==="checkbox"?this.paintCheckbox(n):n.node.nodeName==="INPUT"&&n.node.type==="radio"?this.paintRadio(n):this.paintElement(n)};i.prototype.paintElement=function(n){var t=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,t,n.borders.borders.map(fi))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){var i,u;switch(n.node.nodeName){case"svg":case"IFRAME":i=this.images.get(n.node);i?this.renderer.renderImage(n,t,n.borders,i):r("Error loading <"+n.node.nodeName+">",n.node);break;case"IMG":u=this.images.get(n.node.src);u?this.renderer.renderImage(n,t,n.borders,u):r("Error loading <img>",n.node.src);break;case"CANVAS":this.renderer.renderImage(n,t,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n)}},this)};i.prototype.paintCheckbox=function(n){var r=n.parseBounds(),i=Math.min(r.width,r.height),t={width:i-1,height:i-1,top:r.top,left:r.left},f=[3,3],e=[f,f,f,f],o=[1,1,1,1].map(function(n){return{color:new u("#A5A5A5"),width:n}}),s=et(t,e,o);this.renderer.clip(n.backgroundClip,function(){this.renderer.rectangle(t.left+1,t.top+1,t.width-2,t.height-2,new u("#DEDEDE"));this.renderer.renderBorders(ft(o,t,s,e));n.node.checked&&(this.renderer.font(new u("#424242"),"normal","normal","bold",i-3+"px","arial"),this.renderer.text("✔",t.left+i/6,t.top+i-1))},this)};i.prototype.paintRadio=function(n){var t=n.parseBounds(),i=Math.min(t.width,t.height)-2;this.renderer.clip(n.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,i,new u("#DEDEDE"),1,new u("#A5A5A5"));n.node.checked&&this.renderer.circle(Math.ceil(t.left+i/4)+1,Math.ceil(t.top+i/4)+1,Math.floor(i/2),new u("#424242"))},this)};i.prototype.paintFormValue=function(n){var f=n.getValue(),u;if(f.length>0){var i=n.node.ownerDocument,t=i.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach(function(i){try{t.style[i]=n.css(i)}catch(u){r("html2canvas: Parse: Exception caught in renderFormValue: "+u.message)}});u=n.parseBounds();t.style.position="fixed";t.style.left=u.left+"px";t.style.top=u.top+"px";t.textContent=f;i.body.appendChild(t);this.paintText(new b(t.firstChild,n));i.body.removeChild(t)}};i.prototype.paintText=function(n){n.applyTextTransform();var i=v.ucs2.decode(n.node.data),r=(!this.options.letterRendering||kt(n))&&!ci(n.node.data)?si(i):i.map(function(n){return v.ucs2.encode([n])}),e=n.parent.fontWeight(),u=n.parent.css("fontSize"),f=n.parent.css("fontFamily"),t=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),e,u,f);t.length?this.renderer.fontShadow(t[0].color,t[0].offsetX,t[0].offsetY,t[0].blur):this.renderer.clearShadow();this.renderer.clip(n.parent.clip,function(){r.map(this.parseTextBounds(n),this).forEach(function(t,i){t&&(this.renderer.text(r[i],t.left,t.bottom),this.renderTextDecoration(n.parent,t,this.fontMetrics.getMetrics(f,u)))},this)},this)};i.prototype.renderTextDecoration=function(n,t,i){switch(n.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+i.baseline+i.lineWidth),t.width,1,n.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,n.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+i.middle+i.lineWidth),t.width,1,n.color("color"))}};g={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};i.prototype.parseBorders=function(n){var t=n.parseBounds(),i=dt(n),r=["Top","Right","Bottom","Left"].map(function(t,i){var e=n.css("border"+t+"Style"),r=n.color("border"+t+"Color"),f;return e==="inset"&&r.isBlack()&&(r=new u([255,255,255,r.a])),f=g[e]?g[e][i]:null,{width:n.cssInt("border"+t+"Width"),color:f?r[f[0]](f[1]):r,args:null}}),f=et(t,i,r);return{clip:this.parseBackgroundClip(n,f,r,i,t),borders:ft(r,t,f,i)}};i.prototype.parseBackgroundClip=function(n,t,i,r,u){var o=n.css("backgroundClip"),f=[];switch(o){case"content-box":case"padding-box":e(f,r[0],r[1],t.topLeftInner,t.topRightInner,u.left+i[3].width,u.top+i[0].width);e(f,r[1],r[2],t.topRightInner,t.bottomRightInner,u.left+u.width-i[1].width,u.top+i[0].width);e(f,r[2],r[3],t.bottomRightInner,t.bottomLeftInner,u.left+u.width-i[1].width,u.top+u.height-i[2].width);e(f,r[3],r[0],t.bottomLeftInner,t.topLeftInner,u.left+i[3].width,u.top+u.height-i[2].width);break;default:e(f,r[0],r[1],t.topLeftOuter,t.topRightOuter,u.left,u.top);e(f,r[1],r[2],t.topRightOuter,t.bottomRightOuter,u.left+u.width,u.top);e(f,r[2],r[3],t.bottomRightOuter,t.bottomLeftOuter,u.left+u.width,u.top+u.height);e(f,r[3],r[0],t.bottomLeftOuter,t.topLeftOuter,u.left,u.top+u.height)}return f};t.exports=i},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(n,t,i){function u(n,t,i){var h="withCredentials"in new XMLHttpRequest,r,u;return t?(r=e(h),u=o(t,n,r),h?s(u):f(i,u,r).then(function(n){return l(n.content)})):Promise.reject("No proxy configured")}function v(n,t,i){var r="crossOrigin"in new Image,u=e(r),s=o(t,n,u);return r?Promise.resolve(s):f(i,s,u).then(function(n){return"data:"+n.type+";base64,"+n.content})}function f(n,t,i){return new Promise(function(r,u){var f=n.createElement("script"),e=function(){delete window.html2canvas.proxy[i];n.body.removeChild(f)};window.html2canvas.proxy[i]=function(n){e();r(n)};f.src=t;f.onerror=function(n){e();u(n)};n.body.appendChild(f)})}function e(n){return n?"":"html2canvas_"+Date.now()+"_"+ ++a+"_"+Math.round(Math.random()*1e5)}function o(n,t,i){return n+"?url="+encodeURIComponent(t)+(i.length?"&callback=html2canvas.proxy."+i:"")}function y(n){return function(t){var e=new DOMParser,i,u,f;try{i=e.parseFromString(t,"text/html")}catch(o){r("DOMParser not supported, falling back to createHTMLDocument");i=document.implementation.createHTMLDocument("");try{i.open();i.write(t);i.close()}catch(s){r("createHTMLDocument write not supported, falling back to document.body.innerHTML");i.body.innerHTML=t}}return u=i.querySelector("base"),u&&u.href.host||(f=i.createElement("base"),f.href=n,i.head.insertBefore(f,i.head.firstChild)),i}}function p(n,t,i,r,f,e){return new u(n,t,window.document).then(y(n)).then(function(n){return c(n,i,r,f,e,0,0)})}var s=n("./xhr"),h=n("./utils"),r=n("./log"),c=n("./clone"),l=h.decode64,a=0;i.Proxy=u;i.ProxyURL=v;i.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(n,t){function r(n,t){var u=document.createElement("a"),r;u.href=n;n=u.href;this.src=n;this.image=new Image;r=this;this.promise=new Promise(function(u,f){r.image.crossOrigin="Anonymous";r.image.onload=u;r.image.onerror=f;new i(n,t,document).then(function(n){r.image.src=n})["catch"](f)})}var i=n("./proxy").ProxyURL;t.exports=r},{"./proxy":16}],18:[function(n,t){function i(n,t,i){r.call(this,n,t);this.isPseudoElement=!0;this.before=i===":before"}var r=n("./nodecontainer");i.prototype.cloneTo=function(n){i.prototype.cloneTo.call(this,n);n.isPseudoElement=!0;n.before=this.before};i.prototype=Object.create(r.prototype);i.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node);this.parent.node.className+=" "+this.getHideClass()};i.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};i.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";t.exports=i},{"./nodecontainer":14}],19:[function(n,t){function i(n,t,i,r,u){this.width=n;this.height=t;this.images=i;this.options=r;this.document=u}var r=n("./log");i.prototype.renderImage=function(n,t,i,r){var f=n.cssInt("paddingLeft"),e=n.cssInt("paddingTop"),h=n.cssInt("paddingRight"),c=n.cssInt("paddingBottom"),u=i.borders,o=t.width-(u[1].width+u[3].width+f+h),s=t.height-(u[0].width+u[2].width+e+c);this.drawImage(r,0,0,r.image.width||o,r.image.height||s,t.left+f+u[3].width,t.top+e+u[0].width,o,s)};i.prototype.renderBackground=function(n,t,i){t.height>0&&t.width>0&&(this.renderBackgroundColor(n,t),this.renderBackgroundImage(n,t,i))};i.prototype.renderBackgroundColor=function(n,t){var i=n.color("backgroundColor");i.isTransparent()||this.rectangle(t.left,t.top,t.width,t.height,i)};i.prototype.renderBorders=function(n){n.forEach(this.renderBorder,this)};i.prototype.renderBorder=function(n){n.color.isTransparent()||n.args===null||this.drawShape(n.args,n.color)};i.prototype.renderBackgroundImage=function(n,t,i){var u=n.parseBackgroundImages();u.reverse().forEach(function(u,f,e){var o,s;switch(u.method){case"url":o=this.images.get(u.args[0]);o?this.renderBackgroundRepeating(n,t,o,e.length-(f+1),i):r("Error loading background-image",u.args[0]);break;case"linear-gradient":case"gradient":s=this.images.get(u.value);s?this.renderBackgroundGradient(s,t,i):r("Error loading background-image",u.args[0]);break;case"none":break;default:r("Unknown background-image type",u.args[0])}},this)};i.prototype.renderBackgroundRepeating=function(n,t,i,r,u){var f=n.parseBackgroundSize(t,i.image,r),e=n.parseBackgroundPosition(t,i.image,r,f),o=n.parseBackgroundRepeat(r);switch(o){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(i,e,f,t,t.left+u[3],t.top+e.top+u[0],99999,f.height,u);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(i,e,f,t,t.left+e.left+u[3],t.top+u[0],f.width,99999,u);break;case"no-repeat":this.backgroundRepeatShape(i,e,f,t,t.left+e.left+u[3],t.top+e.top+u[0],f.width,f.height,u);break;default:this.renderBackgroundRepeat(i,e,f,{top:t.top,left:t.left},u[3],u[0])}};t.exports=i},{"./log":13}],20:[function(n,t){function i(n,t){r.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");this.options.canvas||(this.canvas.width=n,this.canvas.height=t);this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};f("Initialized CanvasRenderer with size",n,"x",t)}function e(n){return n.length>0}var r=n("../renderer"),u=n("../lineargradientcontainer"),f=n("../log");i.prototype=Object.create(r.prototype);i.prototype.setFillStyle=function(n){return this.ctx.fillStyle=typeof n=="object"&&!!n.isColor?n.toString():n,this.ctx};i.prototype.rectangle=function(n,t,i,r,u){this.setFillStyle(u).fillRect(n,t,i,r)};i.prototype.circle=function(n,t,i,r){this.setFillStyle(r);this.ctx.beginPath();this.ctx.arc(n+i/2,t+i/2,i/2,0,Math.PI*2,!0);this.ctx.closePath();this.ctx.fill()};i.prototype.circleStroke=function(n,t,i,r,u,f){this.circle(n,t,i,r);this.ctx.strokeStyle=f.toString();this.ctx.stroke()};i.prototype.drawShape=function(n,t){this.shape(n);this.setFillStyle(t).fill()};i.prototype.taints=function(n){if(n.tainted===null){this.taintCtx.drawImage(n.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);n.tainted=!1}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d");n.tainted=!0}}return n.tainted};i.prototype.drawImage=function(n,t,i,r,u,f,e,o,s){(!this.taints(n)||this.options.allowTaint)&&this.ctx.drawImage(n.image,t,i,r,u,f,e,o,s)};i.prototype.clip=function(n,t,i){this.ctx.save();n.filter(e).forEach(function(n){this.shape(n).clip()},this);t.call(i);this.ctx.restore()};i.prototype.shape=function(n){return this.ctx.beginPath(),n.forEach(function(n,t){n[0]==="rect"?this.ctx.rect.apply(this.ctx,n.slice(1)):this.ctx[t===0?"moveTo":n[0]+"To"].apply(this.ctx,n.slice(1))},this),this.ctx.closePath(),this.ctx};i.prototype.font=function(n,t,i,r,u,f){this.setFillStyle(n).font=[t,i,r,u,f].join(" ").split(",")[0]};i.prototype.fontShadow=function(n,t,i,r){this.setVariable("shadowColor",n.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",i).setVariable("shadowBlur",r)};i.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};i.prototype.setOpacity=function(n){this.ctx.globalAlpha=n};i.prototype.setTransform=function(n){this.ctx.translate(n.origin[0],n.origin[1]);this.ctx.transform.apply(this.ctx,n.matrix);this.ctx.translate(-n.origin[0],-n.origin[1])};i.prototype.setVariable=function(n,t){return this.variables[n]!==t&&(this.variables[n]=this.ctx[n]=t),this};i.prototype.text=function(n,t,i){this.ctx.fillText(n,t,i)};i.prototype.backgroundRepeatShape=function(n,t,i,r,u,f,e,o,s){var h=[["line",Math.round(u),Math.round(f)],["line",Math.round(u+e),Math.round(f)],["line",Math.round(u+e),Math.round(o+f)],["line",Math.round(u),Math.round(o+f)]];this.clip([h],function(){this.renderBackgroundRepeat(n,t,i,r,s[3],s[0])},this)};i.prototype.renderBackgroundRepeat=function(n,t,i,r,u,f){var e=Math.round(r.left+t.left+u),o=Math.round(r.top+t.top+f);this.setFillStyle(this.ctx.createPattern(this.resizeImage(n,i),"repeat"));this.ctx.translate(e,o);this.ctx.fill();this.ctx.translate(-e,-o)};i.prototype.renderBackgroundGradient=function(n,t){if(n instanceof u){var i=this.ctx.createLinearGradient(t.left+t.width*n.x0,t.top+t.height*n.y0,t.left+t.width*n.x1,t.top+t.height*n.y1);n.colorStops.forEach(function(n){i.addColorStop(n.stop,n.color.toString())});this.rectangle(t.left,t.top,t.width,t.height,i)}};i.prototype.resizeImage=function(n,t){var i=n.image,u,r;return i.width===t.width&&i.height===t.height?i:(r=document.createElement("canvas"),r.width=t.width,r.height=t.height,u=r.getContext("2d"),u.drawImage(i,0,0,i.width,i.height,0,0,t.width,t.height),r)};t.exports=i},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(n,t){function i(n,t,i,u){r.call(this,i,u);this.ownStacking=n;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*t}var r=n("./nodecontainer");i.prototype=Object.create(r.prototype);i.prototype.getParentStack=function(n){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(n):n.stack};t.exports=i},{"./nodecontainer":14}],22:[function(n,t){function i(n){this.rangeBounds=this.testRangeBounds(n);this.cors=this.testCORS();this.svg=this.testSVG()}i.prototype.testRangeBounds=function(n){var i,t,r,u,f=!1;return n.createRange&&(i=n.createRange(),i.getBoundingClientRect&&(t=n.createElement("boundtest"),t.style.height="123px",t.style.display="block",n.body.appendChild(t),i.selectNode(t),r=i.getBoundingClientRect(),u=r.height,u===123&&(f=!0),n.body.removeChild(t))),f};i.prototype.testCORS=function(){return typeof(new Image).crossOrigin!="undefined"};i.prototype.testSVG=function(){var n=new Image,t=document.createElement("canvas"),i=t.getContext("2d");n.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><\/svg>";try{i.drawImage(n,0,0);t.toDataURL()}catch(r){return!1}return!0};t.exports=i},{}],23:[function(n,t){function i(n){this.src=n;this.image=null;var t=this;this.promise=this.hasFabric().then(function(){return t.isInline(n)?Promise.resolve(t.inlineFormatting(n)):r(n)}).then(function(n){return new Promise(function(i){window.html2canvas.svg.fabric.loadSVGFromString(n,t.createCanvas.call(t,i))})})}var r=n("./xhr"),u=n("./utils").decode64;i.prototype.hasFabric=function(){return!window.html2canvas.svg||!window.html2canvas.svg.fabric?Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg")):Promise.resolve()};i.prototype.inlineFormatting=function(n){return/^data:image\/svg\+xml;base64,/.test(n)?this.decode64(this.removeContentType(n)):this.removeContentType(n)};i.prototype.removeContentType=function(n){return n.replace(/^data:image\/svg\+xml(;base64)?,/,"")};i.prototype.isInline=function(n){return/^data:image\/svg\+xml/i.test(n)};i.prototype.createCanvas=function(n){var t=this;return function(i,r){var u=new window.html2canvas.svg.fabric.StaticCanvas("c");t.image=u.lowerCanvasEl;u.setWidth(r.width).setHeight(r.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(i,r)).renderAll();n(u.lowerCanvasEl)}};i.prototype.decode64=function(n){return typeof atob=="function"?window.atob(n):u(n)};t.exports=i},{"./utils":26,"./xhr":28}],24:[function(n,t){function i(n,t){this.src=n;this.image=null;var i=this;this.promise=t?new Promise(function(t,r){i.image=new Image;i.image.onload=t;i.image.onerror=r;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);i.image.complete===!0&&t(i.image)}):this.hasFabric().then(function(){return new Promise(function(t){window.html2canvas.svg.fabric.parseSVGDocument(n,i.createCanvas.call(i,t))})})}var r=n("./svgcontainer");i.prototype=Object.create(r.prototype);t.exports=i},{"./svgcontainer":23}],25:[function(n,t){function i(n,t){r.call(this,n,t)}function u(n,t,i){if(n.length>0)return t+i.toUpperCase()}var r=n("./nodecontainer");i.prototype=Object.create(r.prototype);i.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};i.prototype.transform=function(n){var t=this.node.data;switch(n){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,u);case"uppercase":return t.toUpperCase();default:return t}};t.exports=i},{"./nodecontainer":14}],26:[function(n,t,i){i.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};i.bind=function(n,t){return function(){return n.apply(t,arguments)}};i.decode64=function(n){for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=n.length,s,e,r,u,f,o,h,c="",t=0;t<l;t+=4)s=i.indexOf(n[t]),e=i.indexOf(n[t+1]),r=i.indexOf(n[t+2]),u=i.indexOf(n[t+3]),f=s<<2|e>>4,o=(e&15)<<4|r>>2,h=(r&3)<<6|u,c+=r===64?String.fromCharCode(f):u===64||u===-1?String.fromCharCode(f,o):String.fromCharCode(f,o,h);return c};i.getBounds=function(n){if(n.getBoundingClientRect){var t=n.getBoundingClientRect(),i=n.offsetWidth==null?t.width:n.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+i,left:t.left,width:i,height:n.offsetHeight==null?t.height:n.offsetHeight}}return{}};i.offsetBounds=function(n){var t=n.offsetParent?i.offsetBounds(n.offsetParent):{top:0,left:0};return{top:n.offsetTop+t.top,bottom:n.offsetTop+n.offsetHeight+t.top,right:n.offsetLeft+t.left+n.offsetWidth,left:n.offsetLeft+t.left,width:n.offsetWidth,height:n.offsetHeight}};i.parseBackgrounds=function(n){var a=" \r\n\t",t,i,o,h,u,l=[],r=0,s=0,f,e,c=function(){t&&(i.substr(0,1)==='"'&&(i=i.substr(1,i.length-2)),i&&e.push(i),t.substr(0,1)==="-"&&(h=t.indexOf("-",1)+1)>0&&(o=t.substr(0,h),t=t.substr(h)),l.push({prefix:o,method:t.toLowerCase(),value:u,args:e,image:null}));e=[];t=o=i=u=""};return e=[],t=o=i=u="",n.split("").forEach(function(n){if(r!==0||!(a.indexOf(n)>-1)){switch(n){case'"':f?f===n&&(f=null):f=n;break;case"(":if(f)break;else{if(r===0){r=1;u+=n;return}s++}break;case")":if(f)break;else if(r===1){if(s===0){r=0;u+=n;c();return}s--}break;case",":if(f)break;else{if(r===0){c();return}if(r===1&&s===0&&!t.match(/^url$/i)){e.push(i);i="";u+=n;return}}}u+=n;r===0?t+=n:i+=n}}),c(),l}},{}],27:[function(n,t){function r(n){i.apply(this,arguments);this.type=n.args[0]==="linear"?i.TYPES.LINEAR:i.TYPES.RADIAL}var i=n("./gradientcontainer");r.prototype=Object.create(i.prototype);t.exports=r},{"./gradientcontainer":9}],28:[function(n,t){function i(n){return new Promise(function(t,i){var r=new XMLHttpRequest;r.open("GET",n);r.onload=function(){r.status===200?t(r.responseText):i(new Error(r.statusText))};r.onerror=function(){i(new Error("Network Error"))};r.send()})}t.exports=i},{}]},{},[4])(4)}),function(n){var t;t=function(){function t(n){var t,l,s,a,v,i,r,h,y,c,u,o,f,e,p;for(this.data=n,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){t=this.readUInt32();c=function(){var n,t;for(t=[],r=n=0;n<4;r=++n)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("");switch(c){case"IHDR":this.width=this.readUInt32();this.height=this.readUInt32();this.bits=this.data[this.pos++];this.colorType=this.data[this.pos++];this.compressionMethod=this.data[this.pos++];this.filterMethod=this.data[this.pos++];this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||Infinity,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":i&&this.animation.frames.push(i);this.pos+=4;i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()};v=this.readUInt16();a=this.readUInt16()||100;i.delay=1e3*v/a;i.disposeOp=this.data[this.pos++];i.blendOp=this.data[this.pos++];i.data=[];break;case"IDAT":case"fdAT":for(c==="fdAT"&&(this.pos+=4,t-=4),n=(i!=null?i.data:void 0)||this.imgData,r=f=0;0<=t?f<t:f>t;r=0<=t?++f:--f)n.push(this.data[this.pos++]);break;case"tRNS":this.transparency={};switch(this.colorType){case 3:if(s=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>s)throw new Error("More transparent colors than palette size");if(u=s-this.transparency.indexed.length,u>0)for(r=e=0;0<=u?e<u:e>u;r=0<=u?++e:--e)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":o=this.read(t);h=o.indexOf(0);y=String.fromCharCode.apply(String,o.slice(0,h));this.text[y]=String.fromCharCode.apply(String,o.slice(h+1));break;case"IEND":i&&this.animation.frames.push(i);this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this);this.hasAlphaChannel=(p=this.colorType)===4||p===6;l=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*l;this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file");}return}var u,f,e,s,r,i;t.load=function(n,i,r){var u;return typeof i=="function"&&(r=i),u=new XMLHttpRequest,u.open("GET",n,!0),u.responseType="arraybuffer",u.onload=function(){var f,n;return f=new Uint8Array(u.response||u.mozResponseArrayBuffer),n=new t(f),typeof(i!=null?i.getContext:void 0)=="function"&&n.render(i),typeof r=="function"?r(n):void 0},u.send(null)};f=1;e=2;u=0;t.prototype.read=function(n){for(var t,i=[],r=t=0;0<=n?t<n:t>n;r=0<=n?++t:--t)i.push(this.data[this.pos++]);return i};t.prototype.readUInt32=function(){var n,t,i,r;return n=this.data[this.pos++]<<24,t=this.data[this.pos++]<<16,i=this.data[this.pos++]<<8,r=this.data[this.pos++],n|t|i|r};t.prototype.readUInt16=function(){var n,t;return n=this.data[this.pos++]<<8,t=this.data[this.pos++],n|t};t.prototype.decodePixels=function(n){var c,f,l,t,a,it,y,p,rt,w,b,i,r,e,s,u,h,v,k,d,g,nt,tt;if(n==null&&(n=this.imgData),n.length===0)return new Uint8Array(0);for(n=new o(n),n=n.getBytes(),i=this.pixelBitlength/8,u=i*this.width,r=new Uint8Array(u*this.height),it=n.length,s=0,e=0,f=0;e<it;){switch(n[e++]){case 0:for(t=k=0;k<u;t=k+=1)r[f++]=n[e++];break;case 1:for(t=d=0;d<u;t=d+=1)c=n[e++],a=t<i?0:r[f-i],r[f++]=(c+a)%256;break;case 2:for(t=g=0;g<u;t=g+=1)c=n[e++],l=(t-t%i)/i,h=s&&r[(s-1)*u+l*i+t%i],r[f++]=(h+c)%256;break;case 3:for(t=nt=0;nt<u;t=nt+=1)c=n[e++],l=(t-t%i)/i,a=t<i?0:r[f-i],h=s&&r[(s-1)*u+l*i+t%i],r[f++]=(c+Math.floor((a+h)/2))%256;break;case 4:for(t=tt=0;tt<u;t=tt+=1)c=n[e++],l=(t-t%i)/i,a=t<i?0:r[f-i],s===0?h=v=0:(h=r[(s-1)*u+l*i+t%i],v=l&&r[(s-1)*u+(l-1)*i+t%i]),y=a+h-v,p=Math.abs(y-a),w=Math.abs(y-h),b=Math.abs(y-v),rt=p<=w&&p<=b?a:w<=b?h:v,r[f++]=(c+rt)%256;break;default:throw new Error("Invalid filter algorithm: "+n[e-1]);}s++}return r};t.prototype.decodePalette=function(){var e,i,n,r,t,u,f,o,s;for(n=this.palette,u=this.transparency.indexed||[],t=new Uint8Array((u.length||0)+n.length),r=0,e=0,i=f=0,o=n.length;f<o;i=f+=3)t[r++]=n[i],t[r++]=n[i+1],t[r++]=n[i+2],t[r++]=(s=u[e++])!=null?s:255;return t};t.prototype.copyToImageData=function(n,t){var s,c,r,i,f,e,u,l,o,h,a;if(c=this.colors,o=null,s=this.hasAlphaChannel,this.palette.length&&(o=(a=this._decodedPalette)!=null?a:this._decodedPalette=this.decodePalette(),c=4,s=!0),r=n.data||n,l=r.length,f=o||t,i=e=0,c===1)while(i<l)u=o?t[i/4]*4:e,h=f[u++],r[i++]=h,r[i++]=h,r[i++]=h,r[i++]=s?f[u++]:255,e=u;else while(i<l)u=o?t[i/4]*4:e,r[i++]=f[u++],r[i++]=f[u++],r[i++]=f[u++],r[i++]=s?f[u++]:255,e=u};t.prototype.decode=function(){var n;return n=new Uint8Array(this.width*this.height*4),this.copyToImageData(n,this.decodePixels()),n};try{r=n.document.createElement("canvas");i=r.getContext("2d")}catch(h){return-1}return s=function(n){var t;return i.width=n.width,i.height=n.height,i.clearRect(0,0,n.width,n.height),i.putImageData(n,0,0),t=new Image,t.src=r.toDataURL(),t},t.prototype.decodeFrames=function(n){var t,r,i,o,u,h,f,e;if(this.animation){for(f=this.animation.frames,e=[],r=u=0,h=f.length;u<h;r=++u)t=f[r],i=n.createImageData(t.width,t.height),o=this.decodePixels(new Uint8Array(t.data)),this.copyToImageData(i,o),t.imageData=i,e.push(t.image=s(i));return e}},t.prototype.renderFrame=function(n,t){var r,o,i;return o=this.animation.frames,r=o[t],i=o[t-1],t===0&&n.clearRect(0,0,this.width,this.height),(i!=null?i.disposeOp:void 0)===f?n.clearRect(i.xOffset,i.yOffset,i.width,i.height):(i!=null?i.disposeOp:void 0)===e&&n.putImageData(i.imageData,i.xOffset,i.yOffset),r.blendOp===u&&n.clearRect(r.xOffset,r.yOffset,r.width,r.height),n.drawImage(r.image,r.xOffset,r.yOffset)},t.prototype.animate=function(n){var u,r,f,t,e,i,o=this;return r=0,i=this.animation,t=i.numFrames,f=i.frames,e=i.numPlays,(u=function(){var i,s;return i=r++%t,s=f[i],o.renderFrame(n,i),t>1&&r/t<e?o.animation._timeout=setTimeout(u,s.delay):void 0})()},t.prototype.stopAnimation=function(){var n;return clearTimeout((n=this.animation)!=null?n._timeout:void 0)},t.prototype.render=function(n){var t,i;return n._png&&n._png.stopAnimation(),n._png=this,n.width=this.width,n.height=this.height,t=n.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(i=t.createImageData(this.width,this.height),this.copyToImageData(i,this.decodePixels()),t.putImageData(i,0,0))},t}();n.PNG=t}(typeof window!="undefined"&&window||undefined),e=function(){function n(){this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=null}return n.prototype={ensureBuffer:function(n){var i=this.buffer,f=i?i.byteLength:0,r,u,t;if(n<f)return i;for(r=512;r<n;)r<<=1;for(u=new Uint8Array(r),t=0;t<f;++t)u[t]=i[t];return this.buffer=u},getByte:function(){for(var n=this.pos;this.bufferLength<=n;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(n){var i=this.pos,r,t;if(n){for(this.ensureBuffer(i+n),t=i+n;!this.eof&&this.bufferLength<t;)this.readBlock();r=this.bufferLength;t>r&&(t=r)}else{while(!this.eof)this.readBlock();t=this.bufferLength}return this.pos=t,this.buffer.subarray(i,t)},lookChar:function(){for(var n=this.pos;this.bufferLength<=n;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var n=this.pos;this.bufferLength<=n;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(n,t,i){for(var r=n+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,n,t,i)},skip:function(n){n||(n=1);this.pos+=n},reset:function(){this.pos=0}},n}(),o=function(){function n(n){throw new Error(n);}function t(t){var i=0,r=t[i++],u=t[i++];(r==-1||u==-1)&&n("Invalid header in flate stream");(r&15)!=8&&n("Unknown compression method in flate stream");((r<<8)+u)%31!=0&&n("Bad FCHECK in flate stream");u&32&&n("FDICT bit set in flate stream");this.bytes=t;this.bytesPos=i;this.codeSize=0;this.codeBuf=0;e.call(this)}if(typeof Uint32Array=="undefined")return undefined;var i=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),u=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),f=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return t.prototype=Object.create(e.prototype),t.prototype.getBits=function(t){for(var i=this.codeSize,u=this.codeBuf,e=this.bytes,f=this.bytesPos,r;i<t;)typeof(r=e[f++])=="undefined"&&n("Bad encoding in flate stream"),u|=r<<i,i+=8;return r=u&(1<<t)-1,this.codeBuf=u>>t,this.codeSize=i-=t,this.bytesPos=f,r},t.prototype.getCode=function(t){for(var h=t[0],f=t[1],i=this.codeSize,u=this.codeBuf,c=this.bytes,e=this.bytesPos,o;i<f;)typeof(o=c[e++])=="undefined"&&n("Bad encoding in flate stream"),u|=o<<i,i+=8;var s=h[u&(1<<f)-1],r=s>>16,l=s&65535;return(i==0||i<r||r==0)&&n("Bad encoding in flate stream"),this.codeBuf=u>>r,this.codeSize=i-r,this.bytesPos=e,l},t.prototype.generateHuffmanTable=function(n){for(var e,o,u,f,h,c=n.length,i=0,t=0;t<c;++t)n[t]>i&&(i=n[t]);e=1<<i;o=new Uint32Array(e);for(var r=1,s=0,l=2;r<=i;++r,s<<=1,l<<=1)for(u=0;u<c;++u)if(n[u]==r){for(f=0,h=s,t=0;t<r;++t)f=f<<1|h&1,h>>=1;for(t=f;t<e;t+=l)o[t]=r<<16|u;++s}return[o,i]},t.prototype.readBlock=function(){function nt(n,t,i,r,u){for(var f=n.getBits(i)+r;f-->0;)t[b++]=u}var p=this.getBits(3),v,a,e,w,tt,d,rt,ut,k,t,h,l,ct,ot;if(p&1&&(this.eof=!0),p>>=1,p==0){v=this.bytes;a=this.bytesPos;typeof(e=v[a++])=="undefined"&&n("Bad block header in flate stream");w=e;typeof(e=v[a++])=="undefined"&&n("Bad block header in flate stream");w|=e<<8;typeof(e=v[a++])=="undefined"&&n("Bad block header in flate stream");tt=e;typeof(e=v[a++])=="undefined"&&n("Bad block header in flate stream");tt|=e<<8;tt!=(~w&65535)&&n("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var it=this.bufferLength,s=this.ensureBuffer(it+w),st=it+w;for(this.bufferLength=st,d=it;d<st;++d){if(typeof(e=v[a++])=="undefined"){this.eof=!0;break}s[d]=e}this.bytesPos=a;return}if(p==1)rt=f,ut=o;else if(p==2){for(var ft=this.getBits(5)+257,lt=this.getBits(5)+1,at=this.getBits(4)+4,ht=Array(i.length),b=0;b<at;)ht[i[b++]]=this.getBits(3);for(var vt=this.generateHuffmanTable(ht),l=0,b=0,et=ft+lt,y=new Array(et);b<et;)k=this.getCode(vt),k==16?nt(this,y,2,3,l):k==17?nt(this,y,3,3,l=0):k==18?nt(this,y,7,11,l=0):y[b++]=l=k;rt=this.generateHuffmanTable(y.slice(0,ft));ut=this.generateHuffmanTable(y.slice(ft,et))}else n("Unknown block type in flate stream");for(var s=this.buffer,g=s?s.length:0,c=this.bufferLength;;){if(t=this.getCode(rt),t<256){c+1>=g&&(s=this.ensureBuffer(c+1),g=s.length);s[c++]=t;continue}if(t==256){this.bufferLength=c;return}for(t-=257,t=r[t],h=t>>16,h>0&&(h=this.getBits(h)),l=(t&65535)+h,t=this.getCode(ut),t=u[t],h=t>>16,h>0&&(h=this.getBits(h)),ct=(t&65535)+h,c+l>=g&&(s=this.ensureBuffer(c+l),g=s.length),ot=0;ot<l;++ot,++c)s[c]=s[c-ct]}},t}(),function(n){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";typeof n.btoa=="undefined"&&(n.btoa=function(n){var e,o,s,h,c,l,a,i,r=0,y=0,f="",v=[],u;if(!n)return n;do e=n.charCodeAt(r++),o=n.charCodeAt(r++),s=n.charCodeAt(r++),i=e<<16|o<<8|s,h=i>>18&63,c=i>>12&63,l=i>>6&63,a=i&63,v[y++]=t.charAt(h)+t.charAt(c)+t.charAt(l)+t.charAt(a);while(r<n.length);return f=v.join(""),u=n.length%3,(u?f.slice(0,u-3):f)+"===".slice(u||3)});typeof n.atob=="undefined"&&(n.atob=function(n){var r,f,s,h,c,e,o,u,i=0,a=0,l=[];if(!n)return n;n+="";do h=t.indexOf(n.charAt(i++)),c=t.indexOf(n.charAt(i++)),e=t.indexOf(n.charAt(i++)),o=t.indexOf(n.charAt(i++)),u=h<<18|c<<12|e<<6|o,r=u>>16&255,f=u>>8&255,s=u&255,l[a++]=e==64?String.fromCharCode(r):o==64?String.fromCharCode(r,f):String.fromCharCode(r,f,s);while(i<n.length);return l.join("")});Array.prototype.map||(Array.prototype.map=function(n){var t;if(this===void 0||this===null||typeof n!="function")throw new TypeError;var i=Object(this),r=i.length>>>0,u=new Array(r),f=arguments.length>1?arguments[1]:void 0;for(t=0;t<r;t++)t in i&&(u[t]=n.call(f,i[t],t,i));return u});Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});Array.prototype.forEach||(Array.prototype.forEach=function(n,t){var r,u,i;if(this===void 0||this===null||typeof n!="function")throw new TypeError;for(r=Object(this),u=r.length>>>0,i=0;i<u;i++)i in r&&n.call(t,r[i],i,r)});Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,i=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(u){if(typeof u!="object"&&(typeof u!="function"||u===null))throw new TypeError;var e=[],o,f;for(o in u)t.call(u,o)&&e.push(o);if(i)for(f=0;f<r;f++)t.call(u,n[f])&&e.push(n[f]);return e}}());String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")});String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")})}(typeof self!="undefined"&&self||typeof window!="undefined"&&window||undefined),t});
/*!
 * jsPDF AutoTable plugin v2.3.2
 * Copyright (c) 2014 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 *
 * */
typeof window=="object"&&(window.jspdfAutoTableVersion="2.3.2"),function(n,t){var i,r;if(typeof exports=="object"&&typeof module=="object")module.exports=t(require("jspdf"));else if(typeof define=="function"&&define.amd)define(["jspdf"],t);else{i=typeof exports=="object"?t(require("jspdf")):t(n.jsPDF);for(r in i)(typeof exports=="object"?exports:n)[r]=i[r]}}(this,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.i=function(n){return n},t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=35)}([function(n,t,i){"use strict";function e(){var n=f.scaleFactor();return{theme:"striped",styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{},startY:!1,margin:40/n,pageBreak:"auto",tableWidth:"auto",showHeader:"everyPage",tableLineWidth:0,tableLineColor:200,createdHeaderCell:function(){},createdCell:function(){},drawHeaderRow:function(){},drawRow:function(){},drawHeaderCell:function(){},drawCell:function(){},addPageContent:function(){}}}function h(){var n=f.scaleFactor();return{font:"helvetica",fontStyle:"normal",overflow:"ellipsize",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/n,lineColor:200,lineWidth:0/n,columnWidth:"auto"}}var f;t.__esModule=!0;t.FONT_ROW_RATIO=1.15;var o=i(16),r=null,u=i(13),s=i(33);t.getTheme=function(n){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},header:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},header:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},alternateRow:{}},plain:{header:{fontStyle:"bold"}}}[n]};t.getDefaults=e;f=function(){function n(){}return n.pageSize=function(){return r.doc.internal.pageSize},n.applyUserStyles=function(){n.applyStyles(r.userStyles)},n.createTable=function(n){return r=new o.Table(n)},n.tableInstance=function(){return r},n.scaleFactor=function(){return r.doc.internal.scaleFactor},n.hooksData=function(n){return n===void 0&&(n={}),u({pageCount:r.pageCount,settings:r.settings,table:r,doc:r.doc,cursor:r.cursor},n||{})},n.initSettings=function(n,t){for(var a,i,h,r,c,f,p=function(i){var r=t.map(function(n){return n[i]||{}});n.styles[i]=u.apply(void 0,[{}].concat(r))},o=0,l=Object.keys(n.styles);o<l.length;o++)a=l[o],p(a);for(i=0,h=s(n.hooks);i<h.length;i++){var v=h[i],y=v[0],w=v[1];for(r=0,c=t;r<c.length;r++)f=c[r],f&&f[y]&&w.push(f[y])}n.settings=u.apply(void 0,[e()].concat(t))},n.marginOrPadding=function(n,t){var i={},u,f,r;if(Array.isArray(n))n.length>=4?i={top:n[0],right:n[1],bottom:n[2],left:n[3]}:n.length===3?i={top:n[0],right:n[1],bottom:n[2],left:n[1]}:n.length===2?i={top:n[0],right:n[1],bottom:n[0],left:n[1]}:n=n.length===1?n[0]:t;else if(typeof n=="object")for(n.vertical?(n.top=n.vertical,n.bottom=n.vertical):n.horizontal&&(n.right=n.horizontal,n.left=n.horizontal),u=0,f=["top","right","bottom","left"];u<f.length;u++)r=f[u],i[r]=n[r]||n[r]===0?n[r]:t;return typeof n=="number"&&(i={top:n,right:n,bottom:n,left:n}),i},n.styles=function(n){return n=Array.isArray(n)?n:[n],u.apply(void 0,[h()].concat(n))},n.applyStyles=function(n){var t=r.doc,i={fillColor:t.setFillColor,textColor:t.setTextColor,fontStyle:t.setFontStyle,lineColor:t.setDrawColor,lineWidth:t.setLineWidth,font:t.setFont,fontSize:t.setFontSize};Object.keys(i).forEach(function(t){var r=n[t],u=i[t];typeof r!="undefined"&&(Array.isArray(r)?u.apply(this,r):u(r))})},n}();t.Config=f},function(n,t,i){"use strict";function u(n,t){var f=r.Config.scaleFactor(),e=t.fontSize/f,i,u;return r.Config.applyStyles(t),n=Array.isArray(n)?n:[n],i=0,n.forEach(function(n){var t=r.Config.tableInstance().doc.getStringUnitWidth(n);t>i&&(i=t)}),u=1e4*f,i=Math.floor(i*u)/u,i*e}function f(n,t,i,e){var o,s;if(e===void 0&&(e="..."),Array.isArray(n))return o=[],n.forEach(function(n,r){o[r]=f(n,t,i,e)}),o;if(s=1e4*r.Config.scaleFactor(),t=Math.ceil(t*s)/s,t>=u(n,i))return n;while(t<u(n+e,i)){if(n.length<=1)break;n=n.substring(0,n.length-1)}return n.trim()+e}function e(){var n=r.Config.tableInstance(),i={lineWidth:n.settings.tableLineWidth,lineColor:n.settings.tableLineColor},t;r.Config.applyStyles(i);t=s(i);t&&n.doc.rect(n.pageStartX,n.pageStartY,n.width,n.cursor.y-n.pageStartY,t)}function l(){var n=r.Config.tableInstance();n.finalY=n.cursor.y;o();e();h(n.doc);n.pageCount++;n.cursor={x:n.margin("left"),y:n.margin("top")};n.pageStartX=n.cursor.x;n.pageStartY=n.cursor.y;(n.settings.showHeader===!0||n.settings.showHeader==="everyPage")&&c.printRow(n.headerRow,n.hooks.drawHeaderRow,n.hooks.drawHeaderCell)}function o(){for(var i,n=0,t=r.Config.tableInstance().hooks.addPageContent;n<t.length;n++)i=t[n],r.Config.applyUserStyles(),i(r.Config.hooksData());r.Config.applyUserStyles()}function s(n){var t=n.lineWidth>0,i=n.fillColor||n.fillColor===0;return t&&i?"DF":t?"S":i?"F":!1}function h(n){var t=n.internal.getCurrentPageInfo().pageNumber,i;n.setPage(t+1);i=n.internal.getCurrentPageInfo().pageNumber;i===t&&n.addPage()}t.__esModule=!0;var r=i(0),c=i(4);t.getStringWidth=u;t.ellipsize=f;t.addTableBorder=e;t.addPage=l;t.addContentHooks=o;t.getFillStyle=s;t.nextPage=h},function(n,t,i){var r=i(27);n.exports=Function.prototype.bind||r},function(n){"use strict";var t=Function.prototype.toString,r=/^\s*class /,i=function(n){try{var i=t.call(n),u=i.replace(/\/\/.*\n/g,""),f=u.replace(/\/\*[.\s\S]*\*\//g,""),e=f.replace(/\n/mg," ").replace(/ {2}/g," ");return r.test(e)}catch(o){return!1}},u=function(n){try{return i(n)?!1:(t.call(n),!0)}catch(r){return!1}},f=Object.prototype.toString,e="[object Function]",o="[object GeneratorFunction]",s=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";n.exports=function(n){if(!n||typeof n!="function"&&typeof n!="object")return!1;if(s)return u(n);if(i(n))return!1;var t=f.call(n);return t===e||t===o}},function(n,t,i){"use strict";function f(n,t,i){var v=0,y={},c=r.Config.tableInstance(),g,a,b,k,d,h,l,s;if(!o(n.height))if(n.maxLineCount<=1)u.addPage();else{for(n.spansMultiplePages=!0,g=c.doc.internal.pageSize.height,a=0,h=0;h<c.columns.length;h++){var l=c.columns[h],s=n.cells[l.dataKey],p=s.styles.fontSize/r.Config.scaleFactor()*r.FONT_ROW_RATIO,w=s.padding("vertical"),tt=g-c.cursor.y-c.margin("bottom"),nt=Math.floor((tt-w)/p);Array.isArray(s.text)&&s.text.length>nt&&(b=s.text.splice(nt,s.text.length),y[l.dataKey]=b,k=s.text.length*p+w,k>a&&(a=k),d=b.length*p+w,d>v&&(v=d))}n.height=a}if(e(n,t,i),Object.keys(y).length>0){for(h=0;h<c.columns.length;h++)l=c.columns[h],s=n.cells[l.dataKey],s.text=y[l.dataKey]||"";u.addPage();n.pageCount++;n.height=v;f(n,t,i)}}function e(n,t,i){var e=r.Config.tableInstance(),o,a,h,c,f,v,w,l,y,s,p;for(n.y=e.cursor.y,o=0,a=t;o<a.length;o++)if(s=a[o],s(n,r.Config.hooksData({row:n,addPage:u.addPage}))===!1)return;for(e.cursor.x=e.margin("left"),h=0;h<e.columns.length;h++)if(c=e.columns[h],f=n.cells[c.dataKey],f){for(r.Config.applyStyles(f.styles),f.x=e.cursor.x,f.y=e.cursor.y,f.height=n.height,f.width=c.width,f.textPos.y=f.styles.valign==="top"?e.cursor.y+f.padding("top"):f.styles.valign==="bottom"?e.cursor.y+n.height-f.padding("bottom"):e.cursor.y+n.height/2,f.textPos.x=f.styles.halign==="right"?f.x+f.width-f.padding("right"):f.styles.halign==="center"?f.x+f.width/2:f.x+f.padding("left"),v=!0,w=r.Config.hooksData({column:c,row:n,addPage:u.addPage}),l=0,y=i;l<y.length;l++)s=y[l],s(f,w)===!1&&(v=!1);v&&(p=u.getFillStyle(f.styles),p&&e.doc.rect(f.x,f.y,f.width,f.height,p),e.doc.autoTableText(f.text,f.textPos.x,f.textPos.y,{halign:f.styles.halign,valign:f.styles.valign}));e.cursor.x+=f.width}e.cursor.y+=n.height}function o(n){var t=r.Config.tableInstance(),i=n+t.cursor.y+t.margin("bottom");return i<r.Config.pageSize().height}t.__esModule=!0;var r=i(0),u=i(1);t.printFullRow=f;t.printRow=e},function(n,t,i){"use strict";var f=i(31),e=i(26),o=typeof Symbol=="function"&&typeof Symbol()=="symbol",s=Object.prototype.toString,h=function(n){return typeof n=="function"&&s.call(n)==="[object Function]"},c=function(){var n={},t;try{Object.defineProperty(n,"x",{enumerable:!1,value:n});for(t in n)return!1;return n.x===n}catch(i){return!1}},r=Object.defineProperty&&c(),l=function(n,t,i,u){t in n&&(!h(u)||!u())||(r?Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):n[t]=i)},u=function(n,t){var r=arguments.length>2?arguments[2]:{},i=f(t);o&&(i=i.concat(Object.getOwnPropertySymbols(t)));e(i,function(i){l(n,i,t[i],r[i])})};u.supportsDescriptors=!!r;n.exports=u},function(n){var t=Object.prototype.hasOwnProperty;n.exports=Object.assign||function(n,i){for(var r in i)t.call(i,r)&&(n[r]=i[r]);return n}},function(n){var t=Number.isNaN||function(n){return n!==n};n.exports=Number.isFinite||function(n){return typeof n=="number"&&!t(n)&&n!==Infinity&&n!==-Infinity}},function(n){n.exports=Number.isNaN||function(n){return n!==n}},function(n){n.exports=function(n,t){var i=n%t;return Math.floor(i>=0?i:i+t)}},function(n){n.exports=function(n){return n>=0?1:-1}},function(n){n.exports=function(n){return n===null||typeof n!="function"&&typeof n!="object"}},function(n,t,i){var r=i(2);n.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(n){"use strict";
/*
            object-assign
            (c) Sindre Sorhus
            @license MIT
            */
function u(n){if(n===null||n===undefined)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function f(){var i,t,n,u,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de",Object.getOwnPropertyNames(i)[0]==="5"))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return(u=Object.getOwnPropertyNames(t).map(function(n){return t[n]}),u.join("")!=="0123456789")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),Object.keys(Object.assign({},r)).join("")!=="abcdefghijklmnopqrst")?!1:!0}catch(f){return!1}}var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;n.exports=f()?Object.assign:function(n){for(var s,e,f,h=u(n),o,c=1;c<arguments.length;c++){f=Object(arguments[c]);for(s in f)i.call(f,s)&&(h[s]=f[s]);if(t)for(o=t(f),e=0;e<o.length;e++)r.call(f,o[e])&&(h[o[e]]=f[o[e]])}return h}},function(n,t,i){"use strict";var r=i(22),u=i(12),f=i(2),e=f.call(Function.call,Object.prototype.propertyIsEnumerable);n.exports=function(n){var t=r.RequireObjectCoercible(n),f=[];for(var i in t)u(t,i)&&e(t,i)&&f.push([i,t[i]]);return f}},function(n,t,i){"use strict";var r=i(14);n.exports=function(){return typeof Object.entries=="function"?Object.entries:r}},function(n,t,i){"use strict";var r,u,f,e,o;t.__esModule=!0;r=i(0);t.table={};u=function(){function n(n){this.height=0;this.width=0;this.contentWidth=0;this.preferredWidth=0;this.rows=[];this.columns=[];this.headerRow=null;this.pageCount=1;this.hooks={createdHeaderCell:[],createdCell:[],drawHeaderRow:[],drawRow:[],drawHeaderCell:[],drawCell:[],addPageContent:[]};this.styles={styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{}};this.doc=n;this.userStyles={textColor:30,fontSize:n.internal.getFontSize(),fontStyle:n.internal.getFont().fontStyle}}return n.prototype.margin=function(n){return r.Config.marginOrPadding(this.settings.margin,r.getDefaults().margin)[n]},n}();t.Table=u;f=function(){function n(n,t){this.cells={};this.spansMultiplePages=!1;this.pageCount=1;this.height=0;this.y=0;this.maxLineCount=1;this.raw=n;this.index=t}return n}();t.Row=f;e=function(){function n(n){this.styles={};this.text="";this.contentWidth=0;this.textPos={};this.height=0;this.width=0;this.x=0;this.y=0;this.raw=n}return n.prototype.padding=function(n){var t=r.Config.marginOrPadding(this.styles.cellPadding,r.Config.styles([]).cellPadding);return n==="vertical"?t.top+t.bottom:n==="horizontal"?t.left+t.right:t[n]},n}();t.Cell=e;o=function(){function n(n,t){this.options={};this.contentWidth=0;this.preferredWidth=0;this.widthStyle="auto";this.width=0;this.x=0;this.dataKey=n;this.index=t}return n}();t.Column=o},function(n,t,i){"use strict";function e(n,t){var i=r.Config.tableInstance(),e=0,o=0,s=[],c=i.columns.length,h;i.columns.forEach(function(n){n.contentWidth=0;i.rows.concat(i.headerRow).forEach(function(t){var i=t.cells[n.dataKey];i.contentWidth=i.padding("horizontal")+u.getStringWidth(i.text,i.styles);i.contentWidth>n.contentWidth&&(n.contentWidth=i.contentWidth,!(typeof n.widthStyle=="number")&&c>=5&&n.contentWidth>300&&(n.contentWidth=i.contentWidth=300))});i.contentWidth+=n.contentWidth;typeof n.widthStyle=="number"?(n.preferredWidth=n.widthStyle,e+=n.preferredWidth,n.width=n.preferredWidth):n.widthStyle==="wrap"?(n.preferredWidth=n.contentWidth,e+=n.preferredWidth,n.width=n.preferredWidth):(n.preferredWidth=n.contentWidth,o+=n.contentWidth,s.push(n));i.preferredWidth+=n.preferredWidth});i.width=typeof i.settings.tableWidth=="number"?i.settings.tableWidth:i.settings.tableWidth==="wrap"?i.preferredWidth:t-i.margin("left")-i.margin("right");f(s,e,o,0);h=i.rows.concat(i.headerRow);h.forEach(function(t){i.columns.forEach(function(i){var f=t.cells[i.dataKey],e;if(r.Config.applyStyles(f.styles),e=i.width-f.padding("horizontal"),f.styles.overflow==="linebreak")try{f.text=n.splitTextToSize(f.text,e+1,{fontSize:f.styles.fontSize})}catch(o){if(o instanceof TypeError&&Array.isArray(f.text))f.text=n.splitTextToSize(f.text.join(" "),e+1,{fontSize:f.styles.fontSize});else throw o;}else f.styles.overflow==="ellipsize"?f.text=u.ellipsize(f.text,e,f.styles):f.styles.overflow==="visible"||(f.styles.overflow==="hidden"?f.text=u.ellipsize(f.text,e,f.styles,""):typeof f.styles.overflow=="function"?f.text=f.styles.overflow(f.text,e):console.error("Unrecognized overflow type: "+f.styles.overflow));var h=r.Config.scaleFactor(),s=Array.isArray(f.text)?f.text.length:1,c=f.styles.fontSize/h*r.FONT_ROW_RATIO;f.contentHeight=s*c+f.padding("vertical");f.contentHeight>t.height&&(t.height=f.contentHeight,t.maxLineCount=s)});i.height+=t.height})}function f(n,t,i,u){for(var c=r.Config.tableInstance(),s=c.width-t-i,o=0;o<n.length;o++){var e=n[o],h=e.contentWidth/i,l=e.contentWidth+s*h<u;if(s<0&&l){n.splice(o,1);i-=e.contentWidth;e.width=u;t+=e.width;f(n,t,i,u);break}else e.width=e.contentWidth+s*h}}t.__esModule=!0;var r=i(0),u=i(1);t.calculateWidths=e},function(n,t,i){"use strict";function e(n,t,i){var e,u,f,o;for(n&&typeof n=="object"||console.error("The headers should be an object or array, is: "+typeof n),t&&typeof t=="object"||console.error("The data should be an object or array, is: "+typeof t),e=function(n){var i,u,t;for(n&&typeof n!="object"&&console.error("The options parameter should be of type object, is: "+typeof n),typeof n.extendWidth!="undefined"&&(n.tableWidth=n.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof n.margins!="undefined"&&(typeof n.margin=="undefined"&&(n.margin=n.margins),console.error("Use of deprecated option: margins, use margin instead.")),(typeof n.afterPageContent!="undefined"||typeof n.beforePageContent!="undefined"||typeof n.afterPageAdd!="undefined")&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use addPageContent instead"),typeof n.addPageContent=="undefined"&&(n.addPageContent=function(t){r.Config.applyUserStyles();n.beforePageContent&&n.beforePageContent(t);r.Config.applyUserStyles();n.afterPageContent&&n.afterPageContent(t);r.Config.applyUserStyles();n.afterPageAdd&&t.pageCount>1&&t.afterPageAdd(t);r.Config.applyUserStyles()})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(t){var i=typeof t=="string"?t:t[0],r=typeof t=="string"?t:t[1];typeof n[i]!="undefined"&&(typeof n.styles[r]=="undefined"&&(n.styles[r]=n[i]),console.error("Use of deprecated option: "+i+", use the style "+r+" instead."))}),i=0,u=["styles","bodyStyles","headerStyles","columnStyles"];i<u.length;i++)t=u[i],n[t]&&typeof n[t]!="object"?console.error("The "+t+" style should be of type object, is: "+typeof n[t]):n[t]&&n[t].rowHeight&&console.error("Use of deprecated style: rowHeight, use vertical cell padding instead")},u=0,f=i;u<f.length;u++)o=f[u],e(o)}function o(n,t){var s=/\r\n|\r|\n/g,i=r.Config.tableInstance(),h=i.settings,e=r.getTheme(h.theme),o=new u.Row(n,-1);o.index=-1;n.forEach(function(n,t){var l=t,c,f,y,a,v,p;for(typeof n.dataKey!="undefined"?l=n.dataKey:typeof n.key!="undefined"&&(console.error("Deprecation warning: Use dataKey instead of key"),l=n.key),c=new u.Column(l,t),c.raw=n,c.widthStyle=r.Config.styles([e.table,e.header,i.styles.styles,i.styles.columnStyles[c.dataKey]||{}]).columnWidth,i.columns.push(c),f=new u.Cell(n),f.styles=r.Config.styles([e.table,e.header,i.styles.styles,i.styles.headerStyles]),f.raw instanceof HTMLElement?f.text=(f.raw.innerText||"").trim():(y=typeof f.raw=="object"?f.raw.title:f.raw,f.text=typeof f.raw!="undefined"?""+y:""),f.text=f.text.split(s),o.cells[l]=f,a=0,v=i.hooks.createdHeaderCell;a<v.length;a++)p=v[a],p(f,{cell:f,column:c,row:o,settings:h})});i.headerRow=o;t.forEach(function(n,t){var o=new u.Row(n,t),h=t%2==0?f({},e.alternateRow,i.styles.alternateRowStyles):{};i.columns.forEach(function(t){var f=new u.Cell(n[t.dataKey]),v=i.styles.columnStyles[t.dataKey]||{},c,l,a;for(f.styles=r.Config.styles([e.table,e.body,i.styles.styles,i.styles.bodyStyles,h,v]),f.text=f.raw&&f.raw instanceof HTMLElement?(f.raw.innerText||"").trim():typeof f.raw!="undefined"?""+f.raw:"",f.text=f.text.split(s),o.cells[t.dataKey]=f,c=0,l=i.hooks.createdCell;c<l.length;c++)a=l[c],a(f,r.Config.hooksData({cell:f,column:t,row:o}))});i.rows.push(o)})}t.__esModule=!0;var u=i(16),r=i(0),f=i(13);t.validateInput=e;t.createModels=o},function(t){t.exports=n},function(n,t,i){"use strict";var r=i(8),u=i(7),f=i(10),e=i(9),o=i(3),s=i(24),h={ToPrimitive:s,ToBoolean:function(n){return Boolean(n)},ToNumber:function(n){return Number(n)},ToInteger:function(n){var t=this.ToNumber(n);return r(t)?0:t===0||!u(t)?t:f(t)*Math.floor(Math.abs(t))},ToInt32:function(n){return this.ToNumber(n)>>0},ToUint32:function(n){return this.ToNumber(n)>>>0},ToUint16:function(n){var t=this.ToNumber(n),i;return r(t)||t===0||!u(t)?0:(i=f(t)*Math.floor(Math.abs(t)),e(i,65536))},ToString:function(n){return String(n)},ToObject:function(n){return this.CheckObjectCoercible(n),Object(n)},CheckObjectCoercible:function(n,t){if(n==null)throw new TypeError(t||"Cannot call method on "+n);return n},IsCallable:o,SameValue:function(n,t){return n===t?n===0?1/n==1/t:!0:r(n)&&r(t)},Type:function(n){return n===null?"Null":typeof n=="undefined"?"Undefined":typeof n=="function"||typeof n=="object"?"Object":typeof n=="number"?"Number":typeof n=="boolean"?"Boolean":typeof n=="string"?"String":void 0}};n.exports=h},function(n,t,i){"use strict";var e=Object.prototype.toString,o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",b=o?Symbol.prototype.toString:e,u=i(8),s=i(7),h=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,c=i(6),k=i(10),d=i(9),l=i(23),a=i(25),v=parseInt,r=i(2),y=r.call(Function.call,String.prototype.slice),g=r.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),nt=r.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),tt="​￾",it=new RegExp("["+tt+"]","g"),rt=r.call(Function.call,RegExp.prototype.test,it),ut=r.call(Function.call,RegExp.prototype.test,/^[-+]0x[0-9a-f]+$/i),p="\t\n\x0b\f\r   ᠎             　\u2028\u2029﻿",ft=new RegExp("(^["+p+"]+)|(["+p+"]+$)","g"),et=r.call(Function.call,String.prototype.replace),ot=function(n){return et(n,ft,"")},f=i(20),st=i(29),w=c(c({},f),{Call:function(n,t){var i=arguments.length>2?arguments[2]:[];if(!this.IsCallable(n))throw new TypeError(n+" is not a function");return n.apply(t,i)},ToPrimitive:a,ToNumber:function(n){var t=l(n)?n:a(n,"number"),i;if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a number");if(typeof t=="string"){if(g(t))return this.ToNumber(v(y(t,2),2));if(nt(t))return this.ToNumber(v(y(t,2),8));if(rt(t)||ut(t))return NaN;if(i=ot(t),i!==t)return this.ToNumber(i)}return Number(t)},ToInt16:function(n){var t=this.ToUint16(n);return t>=32768?t-65536:t},ToInt8:function(n){var t=this.ToUint8(n);return t>=128?t-256:t},ToUint8:function(n){var t=this.ToNumber(n),i;return u(t)||t===0||!s(t)?0:(i=k(t)*Math.floor(Math.abs(t)),d(i,256))},ToUint8Clamp:function(n){var i=this.ToNumber(n),t;return u(i)||i<=0?0:i>=255?255:(t=Math.floor(n),t+.5<i)?t+1:i<t+.5?t:t%2!=0?t+1:t},ToString:function(n){if(typeof n=="symbol")throw new TypeError("Cannot convert a Symbol value to a string");return String(n)},ToObject:function(n){return this.RequireObjectCoercible(n),Object(n)},ToPropertyKey:function(n){var t=this.ToPrimitive(n,String);return typeof t=="symbol"?b.call(t):this.ToString(t)},ToLength:function(n){var t=this.ToInteger(n);return t<=0?0:t>h?h:t},CanonicalNumericIndexString:function(n){if(e.call(n)!=="[object String]")throw new TypeError("must be a string");if(n==="-0")return-0;var t=this.ToNumber(n);if(this.SameValue(this.ToString(t),n))return t},RequireObjectCoercible:f.CheckObjectCoercible,IsArray:Array.isArray||function(n){return e.call(n)==="[object Array]"},IsConstructor:function(n){return typeof n=="function"&&!!n.prototype},IsExtensible:function(n){return Object.preventExtensions?l(n)?!1:Object.isExtensible(n):!0},IsInteger:function(n){if(typeof n!="number"||u(n)||!s(n))return!1;var t=Math.abs(n);return Math.floor(t)===t},IsPropertyKey:function(n){return typeof n=="string"||typeof n=="symbol"},IsRegExp:function(n){if(!n||typeof n!="object")return!1;if(o){var t=n[Symbol.match];if(typeof t!="undefined")return f.ToBoolean(t)}return st(n)},SameValueZero:function(n,t){return n===t||u(n)&&u(t)},GetV:function(n,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var i=this.ToObject(n);return i[t]},GetMethod:function(n,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var i=this.GetV(n,t);if(i==null)return undefined;if(!this.IsCallable(i))throw new TypeError(t+"is not a function");return i},Get:function(n,t){if(this.Type(n)!=="Object")throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return n[t]},Type:function(n){return typeof n=="symbol"?"Symbol":f.Type(n)},SpeciesConstructor:function(n,t){var i,r;if(this.Type(n)!=="Object")throw new TypeError("Assertion failed: Type(O) is not Object");if(i=n.constructor,typeof i=="undefined")return t;if(this.Type(i)!=="Object")throw new TypeError("O.constructor is not an Object");if(r=o&&Symbol.species?i[Symbol.species]:undefined,r==null)return t;if(this.IsConstructor(r))return r;throw new TypeError("no constructor found");}});delete w.CheckObjectCoercible;n.exports=w},function(n,t,i){"use strict";var r=i(21),u=i(6),f=u(r,{SameValueNonNumber:function(n,t){if(typeof n=="number"||typeof n!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(n,t)}});n.exports=f},function(n){n.exports=function(n){return n===null||typeof n!="function"&&typeof n!="object"}},function(n,t,i){"use strict";var u=Object.prototype.toString,r=i(11),f=i(3),e={"[[DefaultValue]]":function(n,t){var o=t||(u.call(n)==="[object Date]"?String:Number),e,s,i;if(o===String||o===Number){for(e=o===String?["toString","valueOf"]:["valueOf","toString"],i=0;i<e.length;++i)if(f(n[e[i]])&&(s=n[e[i]](),r(s)))return s;throw new TypeError("No default value");}throw new TypeError("invalid [[DefaultValue]] hint supplied");}};n.exports=function(n,t){return r(n)?n:e["[[DefaultValue]]"](n,t)}},function(n,t,i){"use strict";var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",r=i(11),u=i(3),o=i(28),f=i(30),s=function(n,t){if(typeof n=="undefined"||n===null)throw new TypeError("Cannot call method on "+n);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');for(var o=t==="string"?["toString","valueOf"]:["valueOf","toString"],f,e,i=0;i<o.length;++i)if(f=n[o[i]],u(f)&&(e=f.call(n),r(e)))return e;throw new TypeError("No default value");},h=function(n,t){var i=n[t];if(i!==null&&typeof i!="undefined"){if(!u(i))throw new TypeError(i+" returned for property "+t+" of object "+n+" is not a function");return i}};n.exports=function(n,t){var i,u,c;if(r(n))return n;if(i="default",arguments.length>1&&(t===String?i="string":t===Number&&(i="number")),e&&(Symbol.toPrimitive?u=h(n,Symbol.toPrimitive):f(n)&&(u=Symbol.prototype.valueOf)),typeof u!="undefined"){if(c=u.call(n,i),r(c))return c;throw new TypeError("unable to convert exotic object to primitive");}return i==="default"&&(o(n)||f(n))&&(i="string"),s(n,i==="default"?"number":i)}},function(n){var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString;n.exports=function(n,r,u){var e,f,o;if(i.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");if(e=n.length,e===+e)for(f=0;f<e;f++)r.call(u,n[f],f,n);else for(o in n)t.call(n,o)&&r.call(u,n[o],o,n)}},function(n){var i="Function.prototype.bind called on incompatible ",t=Array.prototype.slice,r=Object.prototype.toString,u="[object Function]";n.exports=function(n){var f=this,o,s;if(typeof f!="function"||r.call(f)!==u)throw new TypeError(i+f);var h=t.call(arguments,1),e,l=function(){if(this instanceof e){var i=f.apply(this,h.concat(t.call(arguments)));return Object(i)===i?i:this}return f.apply(n,h.concat(t.call(arguments)))},a=Math.max(0,f.length-h.length),c=[];for(o=0;o<a;o++)c.push("$"+o);return e=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),f.prototype&&(s=function(){},s.prototype=f.prototype,e.prototype=new s,s.prototype=null),e}},function(n){"use strict";var t=Date.prototype.getDay,i=function(n){try{return t.call(n),!0}catch(i){return!1}},r=Object.prototype.toString,u="[object Date]",f=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";n.exports=function(n){return typeof n!="object"||n===null?!1:f?i(n):r.call(n)===u}},function(n,t,i){"use strict";var r=i(12),u=RegExp.prototype.exec,f=Object.getOwnPropertyDescriptor,e=function(n){try{var t=n.lastIndex;return n.lastIndex=0,u.call(n),!0}catch(i){return!1}finally{n.lastIndex=t}},o=Object.prototype.toString,s="[object RegExp]",h=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";n.exports=function(n){if(!n||typeof n!="object")return!1;if(!h)return o.call(n)===s;var t=f(n,"lastIndex"),i=t&&r(t,"value");return i?e(n):!1}},function(n){"use strict";var t=Object.prototype.toString,i=typeof Symbol=="function"&&typeof Symbol()=="symbol";if(i){var r=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,f=function(n){return typeof n.valueOf()!="symbol"?!1:u.test(r.call(n))};n.exports=function(n){if(typeof n=="symbol")return!0;if(t.call(n)!=="[object Symbol]")return!1;try{return f(n)}catch(i){return!1}}}else n.exports=function(){return!1}},function(n,t,i){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,c=Array.prototype.slice,s=i(32),h=Object.prototype.propertyIsEnumerable,l=!h.call({toString:null},"toString"),a=h.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=function(n){var t=n.constructor;return t&&t.prototype===n},v={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if(typeof window=="undefined")return!1;for(var n in window)try{if(!v["$"+n]&&r.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{e(window[n])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(n){if(typeof window=="undefined"||!y)return e(n);try{return e(n)}catch(t){return!1}},f=function(n){var c=n!==null&&typeof n=="object",v=o.call(n)==="[object Function]",y=s(n),k=c&&o.call(n)==="[object String]",i=[],w,f,e,h,b,t;if(!c&&!v&&!y)throw new TypeError("Object.keys called on a non-object");if(w=a&&v,k&&n.length>0&&!r.call(n,0))for(f=0;f<n.length;++f)i.push(String(f));if(y&&n.length>0)for(e=0;e<n.length;++e)i.push(String(e));else for(h in n)w&&h==="prototype"||!r.call(n,h)||i.push(String(h));if(l)for(b=p(n),t=0;t<u.length;++t)b&&u[t]==="constructor"||!r.call(n,u[t])||i.push(u[t]);return i};f.shim=function(){var t,n;return Object.keys?(t=function(){return(Object.keys(arguments)||"").length===2}(1,2),t||(n=Object.keys,Object.keys=function(t){return s(t)?n(c.call(t)):n(t)})):Object.keys=f,Object.keys||f};n.exports=f},function(n){"use strict";var t=Object.prototype.toString;n.exports=function(n){var r=t.call(n),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&t.call(n.callee)==="[object Function]"),i}},function(n,t,i){"use strict";var f=i(5),e=i(14),r=i(15),o=i(34),u=r();f(u,{getPolyfill:r,implementation:e,shim:o});n.exports=u},function(n,t,i){"use strict";var r=i(15),u=i(5);n.exports=function(){var n=r();return u(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n}},function(n,t,i){"use strict";t.__esModule=!0;var r=i(19),u=i(0),f=i(1),e=i(4),s=i(17),o=i(18);r.API.autoTable=function(n,t,i){var l,h,c,a,y,v;return i===void 0&&(i={}),this.autoTableState=this.autoTableState||{},r.autoTableState=r.autoTableState||{},l=[r.autoTableState.defaults||{},this.autoTableState.defaults||{},i||{}],o.validateInput(n,t,l),h=u.Config.createTable(this),u.Config.initSettings(h,l),c=h.settings,o.createModels(n,t),c.margin=u.Config.marginOrPadding(c.margin,u.getDefaults().margin),s.calculateWidths(this,u.Config.pageSize().width),h.cursor={x:h.margin("left"),y:c.startY===!1?h.margin("top"):c.startY},a=c.startY+h.margin("bottom")+h.headerRow.height,c.pageBreak==="avoid"&&(a+=h.height),y=u.Config.pageSize().height,(c.pageBreak==="always"&&c.startY!==!1||c.startY!==!1&&a>y)&&(f.nextPage(h.doc),h.cursor.y=h.margin("top")),h.pageStartX=h.cursor.x,h.pageStartY=h.cursor.y,u.Config.applyUserStyles(),(c.showHeader===!0||c.showHeader==="firstPage"||c.showHeader==="everyPage")&&e.printRow(h.headerRow,h.hooks.drawHeaderRow,h.hooks.drawHeaderCell),u.Config.applyUserStyles(),h.rows.forEach(function(n){e.printFullRow(n,h.hooks.drawRow,h.hooks.drawCell)}),f.addTableBorder(),v=this.internal.getCurrentPageInfo().pageNumber,this.autoTableState.addPageHookPages&&this.autoTableState.addPageHookPages[v]?typeof i.addPageContent=="function"&&i.addPageContent(u.Config.hooksData()):(this.autoTableState.addPageHookPages||(this.autoTableState.addPageHookPages={}),this.autoTableState.addPageHookPages[v]=!0,f.addContentHooks()),h.finalY=h.cursor.y,this.autoTable.previous=h,u.Config.applyUserStyles(),this};r.API.autoTable.previous=!1;r.API.autoTableSetDefaults=function(n){return this.autoTableState||(this.autoTableState={}),n&&typeof n=="object"?this.autoTableState.defaults=n:delete this.autoTableState.defaults,this};r.autoTableSetDefaults=function(n){r.autoTableState||(r.autoTableState={});n&&typeof n=="object"?this.autoTableState.defaults=n:delete this.autoTableState.defaults;r.autoTableState.defaults=n};r.API.autoTableHtmlToJson=function(n,t){var f,o,s,i,h;if(t=t||!1,!n||!(n instanceof HTMLTableElement))return console.error("A HTMLTableElement has to be sent to autoTableHtmlToJson"),null;var r={},u=[],e=n.rows[0];for(i=0;i<e.cells.length;i++)f=e.cells[i],o=window.getComputedStyle(f),(t||o.display!=="none")&&(r[i]=f);for(s=function(i){var e=n.rows[i],o=window.getComputedStyle(e),f;(t||o.display!=="none")&&(f=[],Object.keys(r).forEach(function(n){var t=e.cells[n];f.push(t)}),u.push(f))},i=1;i<n.rows.length;i++)s(i);return h=Object.keys(r).map(function(n){return r[n]}),{columns:h,rows:u,data:u}};r.API.autoTableText=function(n,t,i,r){var h,o;(typeof t!="number"||typeof i!="number")&&console.error("The x and y parameters are required. Missing for the text: ",n);var c=this.internal.scaleFactor,f=this.internal.getFontSize()/c,e=null,s=1;if((r.valign==="middle"||r.valign==="bottom"||r.halign==="center"||r.halign==="right")&&(e=typeof n=="string"?n.split(/\r\n|\r|\n/g):n,s=e.length||1),i+=f*(2-u.FONT_ROW_RATIO),r.valign==="middle"?i-=s/2*f*u.FONT_ROW_RATIO:r.valign==="bottom"&&(i-=s*f*u.FONT_ROW_RATIO),r.halign==="center"||r.halign==="right"){if(h=f,r.halign==="center"&&(h*=.5),s>=1){for(o=0;o<e.length;o++)this.text(e[o],t-this.getStringUnitWidth(e[o])*h,i),i+=f;return this}t-=this.getStringUnitWidth(n)*h}return this.text(n,t,i),this};r.API.autoTableEndPosY=function(){var n=this.autoTable.previous;return n.cursor&&typeof n.cursor.y=="number"?n.cursor.y:0};r.API.autoTableAddPageContent=function(n){return r.API.autoTable.globalDefaults||(r.API.autoTable.globalDefaults={}),r.API.autoTable.globalDefaults.addPageContent=n,this};r.API.autoTableAddPage=function(){return f.addPage(),this}}])})