function namespace(n){for(var u=n.split("."),i,t=window,r=0,f=u.length;r<f;r++)i=u[r],t[i]=t[i]||{},t=t[i];return t}!function(n,t){"object"==typeof module&&"object"==typeof module.exports?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)}("undefined"!=typeof window?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ye.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>-1!==r})}function kr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function pe(n){var t={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function dr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v)):(u.detachEvent("onreadystatechange",v),n.detachEvent("onload",v))}function v(){(u.addEventListener||"load"===n.event.type||"complete"===u.readyState)&&(dr(),i.ready())}function nu(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(be,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:we.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function fi(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function tu(n,t,r,u){if(ot(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function iu(n,t,u){if(ot(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!fi(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,fi(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=void 0)}}}function ru(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&oi.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ou(n){var i=eu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,o=0,r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ci(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function ke(n){si.test(n.type)&&(n.defaultChecked=n.checked)}function hu(n,t,u,e,s){for(var l,h,k,c,w,b,v,d=n.length,y=ou(t),a=[],p=0;d>p;p++)if(h=n[p],h||0===h)if("object"===i.type(h))i.merge(a,h.nodeType?[h]:h);else if(su.test(h)){for(c=c||y.appendChild(t.createElement("div")),w=(uu.exec(h)||["",""])[1].toLowerCase(),v=o[w]||o._default,c.innerHTML=v[1]+i.htmlPrefilter(h)+v[2],l=v[0];l--;)c=c.lastChild;if(!r.leadingWhitespace&&hi.test(h)&&a.push(t.createTextNode(hi.exec(h)[0])),!r.tbody)for(h="table"!==w||li.test(h)?"<table>"!==v[1]||li.test(h)?0:c:c.firstChild,l=h&&h.childNodes.length;l--;)i.nodeName(b=h.childNodes[l],"tbody")&&!b.childNodes.length&&h.removeChild(b);for(i.merge(a,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=y.lastChild}else a.push(t.createTextNode(h));for(c&&y.removeChild(c),r.appendChecked||i.grep(f(a,"input"),ke),p=0;h=a[p++];)if(e&&i.inArray(h,e)>-1)s&&s.push(h);else if(k=i.contains(h.ownerDocument,h),c=f(y.appendChild(h),"script"),k&&ci(c),u)for(l=0;h=c[l++];)fu.test(h.type||"")&&u.push(h);return c=null,y}function vt(){return!0}function rt(){return!1}function au(){try{return u.activeElement}catch(n){}}function vi(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)vi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=rt;else if(!f)return n;return 1===e&&(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 yu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function pu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function wu(n){var t=uo.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function bu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function oo(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(pu(t).text=n.text,wu(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&si.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}function k(n,t,u,e){t=sr.apply([],t);var l,o,a,h,p,c,s=0,v=n.length,b=v-1,y=t[0],w=i.isFunction(y);if(w||v>1&&"string"==typeof y&&!r.checkClone&&ro.test(y))return n.each(function(i){var r=n.eq(i);w&&(t[0]=y.call(this,i,r.html()));k(r,t,u,e)});if(v&&(c=hu(t,n[0].ownerDocument,!1,n,e),l=c.firstChild,1===c.childNodes.length&&(c=l),l||e)){for(h=i.map(f(c,"script"),pu),a=h.length;v>s;s++)o=c,s!==b&&(o=i.clone(o,!0,!0),a&&i.merge(h,f(o,"script"))),u.call(n[s],o,s);if(a)for(p=h[h.length-1].ownerDocument,i.map(h,wu),s=0;a>s;s++)o=h[s],fu.test(o.type||"")&&!i._data(o,"globalEval")&&i.contains(p,o)&&(o.src?i._evalUrl&&i._evalUrl(o.src):i.globalEval((o.text||o.textContent||o.innerHTML||"").replace(fo,"")));c=l=null}return n}function ku(n,t,r){for(var u,o=t?i.filter(t,n):n,e=0;null!=(u=o[e]);e++)r||1!==u.nodeType||i.cleanData(f(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ci(f(u,"script")),u.parentNode.removeChild(u));return n}function du(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function yt(n){var r=u,t=pi[n];return t||(t=du(n,r),"none"!==t&&t||(ht=(ht||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ht[0].contentWindow||ht[0].contentDocument).document,r.write(),r.close(),t=du(n,r),ht.detach()),pi[n]=t),t}function bi(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function ef(n){if(n in ff)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),t=uf.length;t--;)if(n=uf[t]+i,n in ff)return n}function of(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&st(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=st(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function sf(n,t,i){var r=co.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function hf(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function cf(t,f,e){var h=!0,o="width"===f?t.offsetWidth:t.offsetHeight,s=d(t),c=r.boxSizing&&"border-box"===i.css(t,"boxSizing",!1,s);if(u.msFullscreenElement&&n.top!==n&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[f])),0>=o||null==o){if(o=p(t,f,s),(0>o||null==o)&&(o=t.style[f]),pt.test(o))return o;h=c&&(r.boxSizingReliable()||o===t.style[f]);o=parseFloat(o)||0}return o+hf(t,f,e||(c?"border":"content"),h,s)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function vf(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yf(n,t,i){for(var u,f=(h.tweeners[t]||[]).concat(h.tweeners["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function ao(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&st(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],lf.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yf(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function vo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.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 h(n,t,r){var e,o,s=0,a=h.prefilters.length,f=i.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var s=ut||vf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;e>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||vf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;r>i;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(vo(c,u.opts.specialEasing);a>s;s++)if(e=h.prefilters[s].call(u,n,c,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(c,yf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(l,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function nt(n){return i.attr(n,"class")||""}function ie(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function re(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);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===tr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function rr(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ns(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function ts(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())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===!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}}function is(n){return n.style&&n.style.display||i.css(n,"display")}function rs(n){while(n&&1===n.nodeType){if("none"===is(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}function ur(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fs.test(n)?u(n,i):ur(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)ur(n+"["+f+"]",t[f],r,u)}function fr(){try{return new n.XMLHttpRequest}catch(t){}}function fe(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ee(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],u=n.document,a=c.slice,sr=c.concat,ti=c.push,hr=c.indexOf,lt={},he=lt.toString,tt=lt.hasOwnProperty,r={},cr="1.12.0",i=function(n,t){return new i.fn.init(n,t)},ce=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,le=/^-ms-/,ae=/-([\da-z])/gi,ve=function(n,t){return t.toUpperCase()},w,ui,yr,pr,wr,br,s,at,gr,o,su,li,ht,pi,d,p,tf,ut,wt,lf,af,pf,bf,kf,dt,er,ni,or,oe,se;i.fn=i.prototype={jquery:cr,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,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(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(!r.ownFirst)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?lt[he.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(le,"ms-").replace(ae,ve)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;r>i;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 null==n?"":(n+"").replace(ce,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ii(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(hr)return hr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;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(ii(n))for(e=n.length;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return sr.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=a.call(arguments,2),r=function(){return n.apply(t||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=c[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()});w=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=sr.exec(n)))if(l=d[1]){if(9===v){if(!(a=t.getElementById(l)))return r;if(a.id===l)return r.push(a),r}else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}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 ii(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}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 ar(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;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,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:pt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(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=pt(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=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[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}];s>i;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),s>r&&ei(n=n.slice(r)),s>r&&yt(n))}f.push(u)}return ui(f)}function vr(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&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,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]=gi.call(l));w=pt(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,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),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("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,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:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),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=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!f.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;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},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};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=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),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(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=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(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):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&&fr.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("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?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=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),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(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),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((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[e]||(c[e]={}),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,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?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 yi.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||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);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===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!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!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[0>i?i+t:i]}),even:it(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.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 i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l="function"==typeof n&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],1===c.length){if(e=c[0]=c[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;l&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("div"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ti(kt,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=w;i.expr=w.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=w.uniqueSort;i.text=w.getText;i.isXMLDoc=w.isXML;i.contains=w.contains;var it=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext,vr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ye=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,"string"==typeof n&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;pr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ui,"string"==typeof n){if(f="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),vr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}if(e=u.getElementById(f[2]),e&&e.parentNode){if(e.id!==f[2])return ui.find(n);this.length=1;this[0]=e}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof r.ready?r.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};pr.prototype=i.fn;ui=i(u);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ar.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):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(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},parentsUntil:function(n,t,i){return it(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return it(n,"nextSibling")},prevAll:function(n){return it(n,"previousSibling")},nextUntil:function(n,t,i){return it(n,"nextSibling",i)},prevUntil:function(n,t,i){return it(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(br[n]||(f=i.uniqueSort(f)),wr.test(n)&&(f=f.reverse())),this.pushStack(f)}});s=/\S+/g;i.Callbacks=function(n){n="string"==typeof n?pe(n):i.extend({},n);var e,r,h,f,t=[],o=[],u=-1,c=function(){for(f=n.once,h=e=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);e=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(u=t.length-1,o.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==i.type(u)&&f(u)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),u>=f&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=!0,r||s.disable(),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){if(!at)if(at=i.Deferred(),"complete"===u.readyState)n.setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v);else{u.attachEvent("onreadystatechange",v);n.attachEvent("onload",v);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(t){return n.setTimeout(f,50)}dr();i.ready()}}()}return at.promise(t)};i.ready.promise();for(gr in i(r))break;r.ownFirst="0"===gr;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}n=null}();var ot=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t},we=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,be=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!fi(n)},data:function(n,t,i){return tu(n,t,i)},removeData:function(n,t){return iu(n,t)},_data:function(n,t,i){return tu(n,t,i,!0)},_removeData:function(n,t){return iu(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),nu(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?nu(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},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)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&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 r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}}),function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ei=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oi=new RegExp("^(?:([+-])=|)("+ei+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],st=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)};var y=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)y(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},si=/^(?:checkbox|radio)$/i,uu=/<([\w:-]+)/,fu=/^$|\/(?:java|ecma)script/i,hi=/^\s+/,eu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var n=u.createElement("div"),f=u.createDocumentFragment(),t=u.createElement("input");n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";r.leadingWhitespace=3===n.firstChild.nodeType;r.tbody=!n.getElementsByTagName("tbody").length;r.htmlSerialize=!!n.getElementsByTagName("link").length;r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;t.type="checkbox";t.checked=!0;f.appendChild(t);r.appendChecked=t.checked;n.innerHTML="<textarea>x<\/textarea>";r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;f.appendChild(n);t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;r.noCloneEvent=!!n.addEventListener;n[i.expando]=1;r.attributes=!n.getAttribute(i.expando)}();o={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]};o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;su=/<|&#?\w+;/;li=/<tbody/i;!function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t]=i in n)||(f.setAttribute(i,"t"),r[t]=f.attributes[i].expando===!1);f=null}();var ai=/^(?:input|select|textarea)$/i,de=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=/^(?:focusinfocus|focusoutblur)$/,lu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,r,u,f){var p,v,w,y,o,h,c,l,e,b,k,a=i._data(n);if(a){for(r.handler&&(y=r,r=y.handler,f=y.selector),r.guid||(r.guid=i.guid++),(v=a.events)||(v=a.events={}),(h=a.handle)||(h=a.handle=function(n){if("undefined"!=typeof i&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(h.elem,arguments)},h.elem=n),t=(t||"").match(s)||[""],w=t.length;w--;)p=lu.exec(t[w])||[],e=k=p[1],b=(p[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},c=i.extend({type:e,origType:k,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:b.join(".")},y),(l=v[e])||(l=v[e]=[],l.delegateCount=0,o.setup&&o.setup.call(n,u,b,h)!==!1||(n.addEventListener?n.addEventListener(e,h,!1):n.attachEvent&&n.attachEvent("on"+e,h))),o.add&&(o.add.call(n,c),c.handler.guid||(c.handler.guid=r.guid)),f?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=lu.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!cu.test(s+i.event.triggered)&&(s.indexOf(".")>-1&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,cu.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&ot(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&ot(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,o,f,r,t,s=[],h=a.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.rnamespace||n.rnamespace.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=ge.test(r)?this.mouseHooks:de.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==au()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===au()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t);u.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)}:function(n,t,i){var r="on"+t;n.detachEvent&&("undefined"==typeof n[r]&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:rt):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:rt,isPropagationStopped:rt,isImmediatePropagationStopped:rt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&!this.isSimulated&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};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}}});r.submit||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?i.prop(r,"form"):void 0;t&&!i._data(t,"submit")&&(i.event.add(t,"submit._submit",function(n){n._submitBubble=!0}),i._data(t,"submit",!0))})},postDispatch:function(n){n._submitBubble&&(delete n._submitBubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.change||(i.event.special.change={setup:function(){return ai.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._justChanged=!0)}),i.event.add(this,"click._change",function(n){this._justChanged&&!n.isTrigger&&(this._justChanged=!1);i.event.simulate("change",this,n)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ai.test(t.nodeName)&&!i._data(t,"change")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n)}),i._data(t,"change",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ai.test(this.nodeName)}});r.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,i,r){return vi(this,n,t,i,r)},one:function(n,t,i,r){return vi(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("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=rt),this.each(function(){i.event.remove(this,n,r,t)})},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)}});var no=/ jQuery\d+="(?:null|\d+)"/g,vu=new RegExp("<(?:"+eu+")[\\s/>]","i"),to=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,io=/<script|<style|<link/i,ro=/checked\s*(?:[^=]|=\s*.checked.)/i,uo=/^true\/(.*)/,fo=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,eo=ou(u),yi=eo.appendChild(u.createElement("div"));i.extend({htmlPrefilter:function(n){return n.replace(to,"<$1><\/$2>")},clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(yi.innerHTML=n.outerHTML,yi.removeChild(s=yi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&oo(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)bu(c,e[o]);else bu(n,s);return e=f(s,"script"),e.length>0&&ci(e,!l&&f(n,"script")),e=h=c=null,s},cleanData:function(n,t){for(var u,e,f,o,l=0,s=i.expando,h=i.cache,a=r.attributes,v=i.event.special;null!=(u=n[l]);l++)if((t||ot(u))&&(f=u[s],o=f&&h[f])){if(o.events)for(e in o.events)v[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);h[f]&&(delete h[f],a||"undefined"==typeof u.removeAttribute?u[s]=void 0:u.removeAttribute(s),c.push(f))}}});i.fn.extend({domManip:k,detach:function(n){return ku(this,n,!0)},remove:function(n){return ku(this,n)},text:function(n){return y(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.appendChild(n)}})},prepend:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return y(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(no,""):void 0;if("string"==typeof n&&!io.test(n)&&(r.htmlSerialize||!vu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!o[(uu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return k(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(f(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,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});pi={HTML:"block",BODY:"block"};var gu=/^margin/,pt=new RegExp("^("+ei+")(?!px)[a-z%]+$","i"),wi=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},nf=u.documentElement;!function(){var f,h,c,e,l,a,s=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.cssText="float:left;opacity:.5";r.opacity="0.5"===t.style.opacity;r.cssFloat=!!t.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===t.style.backgroundClip;s=u.createElement("div");s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute";t.innerHTML="";s.appendChild(t);r.boxSizing=""===t.style.boxSizing||""===t.style.MozBoxSizing||""===t.style.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==f&&o(),e},boxSizingReliable:function(){return null==f&&o(),c},pixelMarginRight:function(){return null==f&&o(),h},pixelPosition:function(){return null==f&&o(),f},reliableMarginRight:function(){return null==f&&o(),l},reliableMarginLeft:function(){return null==f&&o(),a}});function o(){var i,r,o=u.documentElement;o.appendChild(s);t.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";f=c=a=!1;h=l=!0;n.getComputedStyle&&(r=n.getComputedStyle(t),f="1%"!==(r||{}).top,a="2px"===(r||{}).marginLeft,c="4px"===(r||{width:"4px"}).width,t.style.marginRight="50%",h="4px"===(r||{marginRight:"4px"}).marginRight,i=t.appendChild(u.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((n.getComputedStyle(i)||{}).marginRight),t.removeChild(i));t.style.display="none";e=0===t.getClientRects().length;e&&(t.style.display="",t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===i[0].offsetHeight,e&&(i[0].style.display="",i[1].style.display="none",e=0===i[0].offsetHeight));o.removeChild(s)}}}();tf=/^(top|right|bottom|left)$/;n.getComputedStyle?(d=function(t){var i=t.ownerDocument.defaultView;return i.opener||(i=n),i.getComputedStyle(t)},p=function(n,t,u){var o,s,h,f,e=n.style;return u=u||d(n),f=u?u.getPropertyValue(t)||u[t]:void 0,u&&(""!==f||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),!r.pixelMarginRight()&&pt.test(f)&&gu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=f,f=u.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0===f?f:f+""}):nf.currentStyle&&(d=function(n){return n.currentStyle},p=function(n,t,i){var o,f,e,r,u=n.style;return i=i||d(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!tf.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});var ki=/alpha\([^)]*\)/i,so=/opacity\s*=\s*([^)]*)/i,ho=/^(none|table(?!-c[ea]).+)/,co=new RegExp("^("+ei+")(.*)$","i"),lo={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"},uf=["Webkit","O","Moz","ms"],ff=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=p(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:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ef(s)||s),o=i.cssHooks[t]||i.cssHooks[s],void 0===u)return o&&"get"in o&&void 0!==(e=o.get(n,!1,f))?e:c[t];if(h=typeof u,"string"===h&&(e=oi.exec(u))&&e[1]&&(u=ru(n,t,e),h="number"),null!=u&&u===u&&("number"===h&&(u+=e&&e[3]||(i.cssNumber[s]?"":"px")),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(o&&"set"in o&&void 0===(u=o.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,o,e=i.camelCase(t);return t=i.cssProps[e]||(i.cssProps[e]=ef(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=p(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ho.test(i.css(n,"display"))&&0===n.offsetWidth?wi(n,lo,function(){return cf(n,t,u)}):cf(n,t,u)},set:function(n,u,f){var e=f&&d(n);return sf(n,u,f?hf(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return so.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ki,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ki.test(f)?f.replace(ki,e):f+" "+e)}});i.cssHooks.marginRight=bi(r.reliableMarginRight,function(n,t){if(t)return wi(n,{display:"inline-block"},p,[n,"marginRight"])});i.cssHooks.marginLeft=bi(r.reliableMarginLeft,function(n,t){if(t)return(parseFloat(p(n,"marginLeft"))||(i.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-wi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};gu.test(n)||(i.cssHooks[n+t].set=sf)});i.fn.extend({css:function(n,t){return y(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=d(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return of(this,!0)},hide:function(){return of(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){st(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,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=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.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):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};e.propHooks.scrollTop=e.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=e.prototype.init;i.fx.step={};lf=/^(?:toggle|show|hide)$/;af=/queueHooks$/;i.Animation=i.extend(h,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,oi.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(s);for(var r,u=0,f=n.length;f>u;u++)r=n[u],h.tweeners[r]=h.tweeners[r]||[],h.tweeners[r].unshift(t)},prefilters:[ao],prefilter:function(n,t){t?h.prefilters.unshift(n):h.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=h(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&af.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("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=i.timers,t=0;for(ut=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(wt);wt=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 i,n=u.createElement("input"),t=u.createElement("div"),f=u.createElement("select"),e=f.appendChild(u.createElement("option"));t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];n.setAttribute("type","checkbox");t.appendChild(n);i=t.getElementsByTagName("a")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();pf=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(pf,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ft,wf,l=i.expr.attrHandle,di=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return y(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(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?wf:ft)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!di.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)}});wf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!di.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=l[t]||i.find.attr;l[t]=kt&&g||!di.test(t)?function(n,t,i){var u,f;return i||(f=l[t],l[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,l[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ft&&ft.set(n,t,r)}});g||(ft={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},l.id=l.name=l.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ft.set},i.attrHooks.contenteditable={set:function(n,t,i){ft.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});bf=/^(?:input|select|textarea|button|object)$/i;kf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return y(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):bf.test(n.nodeName)||kf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if("string"==typeof n&&n)for(o=n.match(s)||[];t=this[c++];)if(u=nt(t),r=1===t.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=i.trim(r);u!==e&&i.attr(t,"class",e)}return this},removeClass:function(n){var o,r,t,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(s)||[];r=this[c++];)if(u=nt(r),t=1===r.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&i.attr(r,"class",e)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,f,u,e;if("string"===r)for(f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(void 0===n||"boolean"===r)&&(t=nt(this),t&&i._data(this,"__className__",t),i.attr(this,"class",t||n===!1?"":i._data(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+nt(t)+" ").replace(dt," ").indexOf(i)>-1)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error 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)}});var yo=n.location,gi=i.now(),nr=/\?/,po=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(po,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new n.DOMParser,r=u.parseFromString(t,"text/xml")):(r=new n.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var wo=/#.*$/,df=/([?&])_=[^&]*/,bo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ko=/^(?:GET|HEAD)$/,go=/^\/\//,gf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ne={},tr={},te="*/".concat("*"),ir=yo.href,et=gf.exec(ir.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ir,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(et[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":te,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":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?rr(rr(n,i.ajaxSettings),t):rr(i.ajaxSettings,n)},ajaxPrefilter:ie(ne),ajaxTransport:ie(tr),ajax:function(t,r){function w(t,r,s,c){var y,rt,it,w,tt,l=r;2!==o&&(o=2,k&&n.clearTimeout(k),v=void 0,b=c||"",f.readyState=t>0?4:0,y=t>=200&&300>t||304===t,s&&(w=ns(u,f,s)),w=ts(u,w,f,y),y?(u.ifModified&&(tt=f.getResponseHeader("Last-Modified"),tt&&(i.lastModified[e]=tt),tt=f.getResponseHeader("etag"),tt&&(i.etag[e]=tt)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=w.state,rt=w.data,it=w.error,y=!it)):(it=l,(t||!l)&&(l="error",0>t&&(t=0))),f.status=t,f.statusText=(r||l)+"",y?g.resolveWith(h,[rt,l,f]):g.rejectWith(h,[f,l,it]),f.statusCode(p),p=void 0,a&&d.trigger(y?"ajaxSuccess":"ajaxError",[f,u,y?rt:it]),nt.fireWith(h,[f,l]),a&&(d.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var c,l,e,b,k,a,v,y,u=i.ajaxSetup({},r),h=u.context||u,d=u.context&&(h.nodeType||h.jquery)?i(h):i.event,g=i.Deferred(),nt=i.Callbacks("once memory"),p=u.statusCode||{},tt={},it={},o=0,rt="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!y)for(y={};t=bo.exec(b);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)p[t]=[p[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||rt;return v&&v.abort(t),w(0,t),this}};if(g.promise(f).complete=nt.add,f.success=f.done,f.error=f.fail,u.url=((t||u.url||ir)+"").replace(wo,"").replace(go,et[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(c=gf.exec(u.url.toLowerCase()),u.crossDomain=!(!c||c[1]===et[1]&&c[2]===et[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(et[3]||("http:"===et[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),re(ne,u,r,f),2===o)return f;a=i.event&&u.global;a&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!ko.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(nr.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=df.test(e)?e.replace(df,"$1_="+gi++):e+(nr.test(e)?"&":"?")+"_="+gi++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+te+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();rt="abort";for(l in{success:1,error:1,complete:1})f[l](u[l]);if(v=re(tr,u,r,f)){if(f.readyState=1,a&&d.trigger("ajaxSend",[f,u]),2===o)return f;u.async&&u.timeout>0&&(k=n.setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(tt,w)}catch(ut){if(!(2>o))throw ut;w(-1,ut)}}else w(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},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){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var 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.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(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=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return r.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:rs(n)};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var us=/%20/g,fs=/\[\]$/,ue=/\r?\n/g,es=/^(?:submit|button|image|reset|file)$/i,os=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ur(r,n[r],t,f);return u.join("&").replace(us,"+")};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")&&os.test(this.nodeName)&&!es.test(n)&&(this.checked||!si.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ue,"\r\n")}}):{name:t.name,value:r.replace(ue,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?fe():u.documentMode>8?fr():/^(get|post|head|put|delete|options)$/i.test(this.type)&&fr()||fe()}:fr;var ss=0,gt={},ct=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ct&&"withCredentials"in ct,ct=r.ajax=!!ct,ct&&i.ajaxTransport(function(t){if(!t.crossDomain||r.cors){var u;return{send:function(r,f){var o,e=t.xhr(),s=++ss;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||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&e.setRequestHeader(o,r[o]+"");e.send(t.hasContent&&t.data||null);u=function(n,r){var o,c,h;if(u&&(r||4===e.readyState))if(delete gt[s],u=void 0,e.onreadystatechange=i.noop,r)4!==e.readyState&&e.abort();else{h={};o=e.status;"string"==typeof e.responseText&&(h.text=e.responseText);try{c=e.statusText}catch(l){c=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=h.text?200:404}h&&f(o,c,h,e.getAllResponseHeaders())};t.async?4===e.readyState?n.setTimeout(u):e.onreadystatechange=gt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}}),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){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),er=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=er.pop()||i.expando+"_"+gi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,er.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script")}),r.createHTMLDocument=function(){if(!u.implementation.createHTMLDocument)return!1;var n=u.implementation.createHTMLDocument("");return n.body.innerHTML="<form><\/form><form><\/form>",2===n.body.childNodes.length}(),i.parseHTML=function(n,t,f){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(f=t,t=!1);t=t||(r.createHTMLDocument?u.implementation.createHTMLDocument(""):u);var e=vr.exec(n),o=!f&&[];return e?[t.createElement(e[1])]:(e=hu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},or=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&or)return or.apply(this,arguments);var f,o,s,u=this,e=n.indexOf(" ");return e>-1&&(f=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),u.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;u.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){u.each(function(){r.apply(u,s||[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.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(u=r.getBoundingClientRect()),f=ee(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0)-n.scrollTop(),t.left+=i.css(n[0],"borderLeftWidth",!0)-n.scrollLeft()),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||nf})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return y(this,function(n,u,f){var e=ee(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=bi(r.pixelPosition,function(n,r){if(r)return(r=p(n,t),pt.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(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return y(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),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 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),oe=n.jQuery,se=n.$,i.noConflict=function(t){return n.$===i&&(n.$=se),t&&n.jQuery===i&&(n.jQuery=oe),i},t||(n.jQuery=n.$=i),i}),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i=0,r;(r=t[i])!=null;i++)try{n(r).triggerHandler("remove")}catch(f){}u(t)};n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];t=t.split(".")[1];s=e+"-"+t;r||(r=i,i=n.Widget);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(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(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},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)};n.widget.extend=function(r){for(var o=i.call(arguments,1),e=0,s=o.length,u,f;e<s;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r};n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h=typeof e=="string",o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?!n.isFunction(u[e])||e.charAt(0)==="_"?n.error("no such method '"+e+"' for "+r+" widget instance"):(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=r++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();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._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var o=i,u,f,e;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof i=="string")if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;e<u.length-1;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_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];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_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){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("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()})}})}(jQuery);window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.6.2",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document);!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.React=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";function i(n){var t={"=":"=0",":":"=2"};return"$"+(""+n).replace(/[=:]/g,function(n){return t[n]})}function r(n){var t={"=0":"=","=2":":"};return(""+("."===n[0]&&"$"===n[1]?n.substring(2):n.substring(1))).replace(/(=0|=2)/g,function(n){return t[n]})}var u={escape:i,unescape:r};t.exports=u},{}],2:[function(n,t){"use strict";var r=n(19),i=(n(24),function(n){var t=this,i;return t.instancePool.length?(i=t.instancePool.pop(),t.call(i,n),i):new t(n)}),u=function(n,t){var i=this,r;return i.instancePool.length?(r=i.instancePool.pop(),i.call(r,n,t),r):new i(n,t)},f=function(n,t,i){var r=this,u;return r.instancePool.length?(u=r.instancePool.pop(),r.call(u,n,t,i),u):new r(n,t,i)},e=function(n,t,i,r){var u=this,f;return u.instancePool.length?(f=u.instancePool.pop(),u.call(f,n,t,i,r),f):new u(n,t,i,r)},o=function(n){var t=this;n instanceof t||r("25");n.destructor();t.instancePool.length<t.poolSize&&t.instancePool.push(n)},s=i,h=function(n,t){var i=n;return i.instancePool=[],i.getPooled=t||s,i.poolSize||(i.poolSize=10),i.release=o,i},c={addPoolingTo:h,oneArgumentPooler:i,twoArgumentPooler:u,threeArgumentPooler:f,fourArgumentPooler:e};t.exports=c},{19:19,24:24}],3:[function(n,t){"use strict";var f=n(26),u=n(4),i=n(5),e=n(7),r=n(8),o=n(11),s=n(13),h=n(15),c=n(18),l=r.createElement,a=r.createFactory,v=r.cloneElement,y=f,p=function(n){return n},w={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:c},Component:u.Component,PureComponent:u.PureComponent,createElement:l,cloneElement:v,isValidElement:r.isValidElement,PropTypes:o,createClass:h,createFactory:a,createMixin:p,DOM:e,version:s,__spread:y};t.exports=w},{11:11,13:13,15:15,18:18,26:26,4:4,5:5,7:7,8:8}],4:[function(n,t){"use strict";function i(n,t,i){this.props=n;this.context=t;this.refs=e;this.updater=i||f}function r(n,t,i){this.props=n;this.context=t;this.refs=e;this.updater=i||f}function u(){}var o=n(19),s=n(26),f=n(10),e=(n(14),n(23));n(24);n(17);i.prototype.isReactComponent={};i.prototype.setState=function(n,t){"object"!=typeof n&&"function"!=typeof n&&null!=n&&o("85");this.updater.enqueueSetState(this,n);t&&this.updater.enqueueCallback(this,t,"setState")};i.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this);n&&this.updater.enqueueCallback(this,n,"forceUpdate")};u.prototype=i.prototype;r.prototype=new u;r.prototype.constructor=r;s(r.prototype,i.prototype);r.prototype.isPureReactComponent=!0;t.exports={Component:i,PureComponent:r}},{10:10,14:14,17:17,19:19,23:23,24:24,26:26}],5:[function(n,t){"use strict";function o(n){return(""+n).replace(g,"$&/")}function i(n,t){this.func=n;this.context=t;this.count=0}function l(n,t){var i=n.func,r=n.context;i.call(r,t,n.count++)}function a(n,t,r){if(null==n)return n;var u=i.getPooled(t,r);e(n,l,u);i.release(u)}function r(n,t,i,r){this.result=n;this.keyPrefix=t;this.func=i;this.context=r;this.count=0}function v(n,t,i){var f=n.result,e=n.keyPrefix,c=n.func,l=n.context,r=c.call(l,t,n.count++);Array.isArray(r)?u(r,f,i,h.thatReturnsArgument):null!=r&&(s.isValidElement(r)&&(r=s.cloneAndReplaceKey(r,e+(!r.key||t&&t.key===r.key?"":o(r.key)+"/")+i)),f.push(r))}function u(n,t,i,u,f){var h="",s;null!=i&&(h=o(i)+"/");s=r.getPooled(t,h,u,f);e(n,v,s);r.release(s)}function y(n,t,i){if(null==n)return n;var r=[];return u(n,r,null,t,i),r}function p(){return null}function w(n){return e(n,p,null)}function b(n){var t=[];return u(n,t,null,h.thatReturnsArgument),t}var f=n(2),s=n(8),h=n(22),e=n(20),k=f.twoArgumentPooler,d=f.fourArgumentPooler,g=/\/+/g,c;i.prototype.destructor=function(){this.func=null;this.context=null;this.count=0};f.addPoolingTo(i,k);r.prototype.destructor=function(){this.result=null;this.keyPrefix=null;this.func=null;this.context=null;this.count=0};f.addPoolingTo(r,d);c={forEach:a,map:y,mapIntoWithKeyPrefixInternal:u,count:w,toArray:b};t.exports=c},{2:2,20:20,22:22,8:8}],6:[function(n,t){"use strict";t.exports={current:null}},{}],7:[function(n,t){"use strict";var r=n(8),i=r.createFactory,u={a:i("a"),abbr:i("abbr"),address:i("address"),area:i("area"),article:i("article"),aside:i("aside"),audio:i("audio"),b:i("b"),base:i("base"),bdi:i("bdi"),bdo:i("bdo"),big:i("big"),blockquote:i("blockquote"),body:i("body"),br:i("br"),button:i("button"),canvas:i("canvas"),caption:i("caption"),cite:i("cite"),code:i("code"),col:i("col"),colgroup:i("colgroup"),data:i("data"),datalist:i("datalist"),dd:i("dd"),del:i("del"),details:i("details"),dfn:i("dfn"),dialog:i("dialog"),div:i("div"),dl:i("dl"),dt:i("dt"),em:i("em"),embed:i("embed"),fieldset:i("fieldset"),figcaption:i("figcaption"),figure:i("figure"),footer:i("footer"),form:i("form"),h1:i("h1"),h2:i("h2"),h3:i("h3"),h4:i("h4"),h5:i("h5"),h6:i("h6"),head:i("head"),header:i("header"),hgroup:i("hgroup"),hr:i("hr"),html:i("html"),i:i("i"),iframe:i("iframe"),img:i("img"),input:i("input"),ins:i("ins"),kbd:i("kbd"),keygen:i("keygen"),label:i("label"),legend:i("legend"),li:i("li"),link:i("link"),main:i("main"),map:i("map"),mark:i("mark"),menu:i("menu"),menuitem:i("menuitem"),meta:i("meta"),meter:i("meter"),nav:i("nav"),noscript:i("noscript"),object:i("object"),ol:i("ol"),optgroup:i("optgroup"),option:i("option"),output:i("output"),p:i("p"),param:i("param"),picture:i("picture"),pre:i("pre"),progress:i("progress"),q:i("q"),rp:i("rp"),rt:i("rt"),ruby:i("ruby"),s:i("s"),samp:i("samp"),script:i("script"),section:i("section"),select:i("select"),small:i("small"),source:i("source"),span:i("span"),strong:i("strong"),style:i("style"),sub:i("sub"),summary:i("summary"),sup:i("sup"),table:i("table"),tbody:i("tbody"),td:i("td"),textarea:i("textarea"),tfoot:i("tfoot"),th:i("th"),thead:i("thead"),time:i("time"),title:i("title"),tr:i("tr"),track:i("track"),u:i("u"),ul:i("ul"),"var":i("var"),video:i("video"),wbr:i("wbr"),circle:i("circle"),clipPath:i("clipPath"),defs:i("defs"),ellipse:i("ellipse"),g:i("g"),image:i("image"),line:i("line"),linearGradient:i("linearGradient"),mask:i("mask"),path:i("path"),pattern:i("pattern"),polygon:i("polygon"),polyline:i("polyline"),radialGradient:i("radialGradient"),rect:i("rect"),stop:i("stop"),svg:i("svg"),text:i("text"),tspan:i("tspan")};t.exports=u},{8:8}],8:[function(n,t){"use strict";function r(n){return void 0!==n.ref}function u(n){return void 0!==n.key}var h=n(26),f=n(6),e=(n(25),n(14),Object.prototype.hasOwnProperty),o=n(9),s={key:!0,ref:!0,__self:!0,__source:!0},i=function(n,t,i,r,u,f,e){return{$$typeof:o,type:n,key:t,ref:i,props:e,_owner:f}};i.createElement=function(n,t,o){var h,c={},p=null,w=null,l,v,a,y;if(null!=t){r(t)&&(w=t.ref);u(t)&&(p=""+t.key);void 0===t.__self?null:t.__self;void 0===t.__source?null:t.__source;for(h in t)e.call(t,h)&&!s.hasOwnProperty(h)&&(c[h]=t[h])}if(l=arguments.length-2,1===l)c.children=o;else if(l>1){for(v=Array(l),a=0;a<l;a++)v[a]=arguments[a+2];c.children=v}if(n&&n.defaultProps){y=n.defaultProps;for(h in y)void 0===c[h]&&(c[h]=y[h])}return i(n,p,w,0,0,f.current,c)};i.createFactory=function(n){var t=i.createElement.bind(null,n);return t.type=n,t};i.cloneAndReplaceKey=function(n,t){return i(n.type,t,n.ref,n._self,n._source,n._owner,n.props)};i.cloneElement=function(n,t,o){var c,v=h({},n.props),w=n.key,b=n.ref,k=(n._self,n._source,n._owner),y,l,p,a;if(null!=t){r(t)&&(b=t.ref,k=f.current);u(t)&&(w=""+t.key);n.type&&n.type.defaultProps&&(y=n.type.defaultProps);for(c in t)e.call(t,c)&&!s.hasOwnProperty(c)&&(v[c]=void 0===t[c]&&void 0!==y?y[c]:t[c])}if(l=arguments.length-2,1===l)v.children=o;else if(l>1){for(p=Array(l),a=0;a<l;a++)p[a]=arguments[a+2];v.children=p}return i(n.type,w,b,0,0,k,v)};i.isValidElement=function(n){return"object"==typeof n&&null!==n&&n.$$typeof===o};t.exports=i},{14:14,25:25,26:26,6:6,9:9}],9:[function(n,t){"use strict";var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=i},{}],10:[function(n,t){"use strict";var i=(n(25),{isMounted:function(){return!1},enqueueCallback:function(){},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}});t.exports=i},{25:25}],11:[function(n,t){"use strict";var i=n(8),r=i.isValidElement,u=n(28);t.exports=u(r)},{28:28,8:8}],12:[function(n,t){"use strict";var i=n(26),r=n(3),u=i(r,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:n(6)}});t.exports=u},{26:26,3:3,6:6}],13:[function(n,t){"use strict";t.exports="15.6.1"},{}],14:[function(n,t){"use strict";t.exports=!1},{}],15:[function(n,t){"use strict";var i=n(4),r=i.Component,u=n(8),f=u.isValidElement,e=n(10),o=n(21);t.exports=o(r,f,e)},{10:10,21:21,4:4,8:8}],16:[function(n,t){"use strict";function r(n){var t=n&&(i&&n[i]||n[u]);if("function"==typeof t)return t}var i="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";t.exports=r},{}],17:[function(n,t){"use strict";var i=function(){};t.exports=i},{}],18:[function(n,t){"use strict";function i(n){return u.isValidElement(n)||r("143"),n}var r=n(19),u=n(8);n(24);t.exports=i},{19:19,24:24,8:8}],19:[function(n,t){"use strict";function i(n){for(var t,u=arguments.length-1,i="Minified React error #"+n+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+n,r=0;r<u;r++)i+="&args[]="+encodeURIComponent(arguments[r+1]);i+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";t=new Error(i);throw t.name="Invariant Violation",t.framesToPop=1,t;}t.exports=i},{}],20:[function(n,t){"use strict";function i(n,t){return n&&"object"==typeof n&&null!=n.key?u.escape(n.key):t.toString(36)}function r(n,t,o,l){var v=typeof n,a,y,p,b,w,k,d,nt,it,g,tt;if("undefined"!==v&&"boolean"!==v||(n=null),null===n||"string"===v||"number"===v||"object"===v&&n.$$typeof===h)return o(l,n,""===t?f+i(n,0):t),1;if(p=0,b=""===t?f:t+e,Array.isArray(n))for(w=0;w<n.length;w++)a=n[w],y=b+i(a,w),p+=r(a,y,o,l);else if(k=c(n),k)if(nt=k.call(n),k!==n.entries)for(it=0;!(d=nt.next()).done;)a=d.value,y=b+i(a,it++),p+=r(a,y,o,l);else for(;!(d=nt.next()).done;)g=d.value,g&&(a=g[1],y=b+u.escape(g[0])+e+i(a,0),p+=r(a,y,o,l));else"object"===v&&(tt=String(n),s("31","[object Object]"===tt?"object with keys {"+Object.keys(n).join(", ")+"}":tt,""));return p}function o(n,t,i){return null==n?0:r(n,"",t,i)}var s=n(19),h=(n(6),n(9)),c=n(16),u=(n(24),n(1)),f=(n(25),"."),e=":";t.exports=o},{1:1,16:16,19:19,24:24,25:25,6:6,9:9}],21:[function(n,t){"use strict";function f(n){return n}function e(n,t,e){function p(n,t){var r=h.hasOwnProperty(t)?h[t]:null;v.hasOwnProperty(t)&&i("OVERRIDE_BASE"===r,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t);n&&i("DEFINE_MANY"===r||"DEFINE_MANY_MERGED"===r,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function s(n,r){var e,v,f,o,l,s;if(r){i("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.");i(!t(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");e=n.prototype;v=e.__reactAutoBindPairs;r.hasOwnProperty(u)&&c.mixins(n,r.mixins);for(f in r)if(r.hasOwnProperty(f)&&f!==u)if(o=r[f],l=e.hasOwnProperty(f),p(l,f),c.hasOwnProperty(f))c[f](n,o);else{var y=h.hasOwnProperty(f),w="function"==typeof o,k=w&&!y&&!l&&!1!==r.autobind;k?(v.push(f,o),e[f]=o):l?(s=h[f],i(y&&("DEFINE_MANY_MERGED"===s||"DEFINE_MANY"===s),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",s,f),"DEFINE_MANY_MERGED"===s?e[f]=a(e[f],o):"DEFINE_MANY"===s&&(e[f]=b(e[f],o))):e[f]=o}}}function w(n,t){var r,u,f,e;if(t)for(r in t)u=t[r],t.hasOwnProperty(r)&&(f=r in c,i(!f,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r),e=r in n,i(!e,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r),n[r]=u)}function l(n,t){i(n&&t&&"object"==typeof n&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var r in t)t.hasOwnProperty(r)&&(i(void 0===n[r],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r),n[r]=t[r]);return n}function a(n,t){return function(){var r=n.apply(this,arguments),u=t.apply(this,arguments),i;return null==r?u:null==u?r:(i={},l(i,r),l(i,u),i)}}function b(n,t){return function(){n.apply(this,arguments);t.apply(this,arguments)}}function k(n,t){return t.bind(n)}function d(n){for(var r,u,i=n.__reactAutoBindPairs,t=0;t<i.length;t+=2)r=i[t],u=i[t+1],n[r]=k(n,u)}function g(n){var t=f(function(n,r,u){this.__reactAutoBindPairs.length&&d(this);this.props=n;this.context=r;this.refs=o;this.updater=u||e;this.state=null;var f=this.getInitialState?this.getInitialState():null;i("object"==typeof f&&!Array.isArray(f),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent");this.state=f}),r;t.prototype=new y;t.prototype.constructor=t;t.prototype.__reactAutoBindPairs=[];nt.forEach(s.bind(null,t));s(t,tt);s(t,n);s(t,it);t.getDefaultProps&&(t.defaultProps=t.getDefaultProps());i(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(r in h)t.prototype[r]||(t.prototype[r]=null);return t}var nt=[],h={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={displayName:function(n,t){n.displayName=t},mixins:function(n,t){if(t)for(var i=0;i<t.length;i++)s(n,t[i])},childContextTypes:function(n,t){n.childContextTypes=r({},n.childContextTypes,t)},contextTypes:function(n,t){n.contextTypes=r({},n.contextTypes,t)},getDefaultProps:function(n,t){n.getDefaultProps=n.getDefaultProps?a(n.getDefaultProps,t):t},propTypes:function(n,t){n.propTypes=r({},n.propTypes,t)},statics:function(n,t){w(n,t)},autobind:function(){}},tt={componentDidMount:function(){this.__isMounted=!0}},it={componentWillUnmount:function(){this.__isMounted=!1}},v={replaceState:function(n,t){this.updater.enqueueReplaceState(this,n,t)},isMounted:function(){return!!this.__isMounted}},y=function(){};return r(y.prototype,n.prototype,v),g}var r=n(26),o=n(23),i=n(24),u="mixins";t.exports=e},{23:23,24:24,25:25,26:26}],22:[function(n,t){"use strict";function r(n){return function(){return n}}var i=function(){};i.thatReturns=r;i.thatReturnsFalse=r(!1);i.thatReturnsTrue=r(!0);i.thatReturnsNull=r(null);i.thatReturnsThis=function(){return this};i.thatReturnsArgument=function(n){return n};t.exports=i},{}],23:[function(n,t){"use strict";t.exports={}},{}],24:[function(n,t){"use strict";function i(n,t,i,u,f,e,o,s){var h,c,l;if(r(t),!n){void 0===t?h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[i,u,f,e,o,s],l=0,h=new Error(t.replace(/%s/g,function(){return c[l++]})),h.name="Invariant Violation");throw h.framesToPop=1,h;}}var r=function(){};t.exports=i},{}],25:[function(n,t){"use strict";var i=n(22),r=i;t.exports=r},{22:22}],26:[function(n,t){"use strict";function r(n){if(null===n||void 0===n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;t.exports=function(){var i,t,n,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de","5"===Object.getOwnPropertyNames(i)[0]))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(i){return!1}}()?Object.assign:function(n){for(var t,o,c,e,s=r(n),h=1;h<arguments.length;h++){t=Object(arguments[h]);for(c in t)u.call(t,c)&&(s[c]=t[c]);if(i)for(o=i(t),e=0;e<o.length;e++)f.call(t,o[e])&&(s[o[e]]=t[o[e]])}return s}},{}],27:[function(n,t){"use strict";function i(){}t.exports=i},{24:24,25:25,30:30}],28:[function(n,t){"use strict";var i=n(29);t.exports=function(n){return i(n,!1)}},{29:29}],29:[function(n,t){"use strict";var r=n(22),u=n(24),f=n(25),i=n(30),e=n(27);t.exports=function(n,t){function w(n){var t=n&&(p&&n[p]||n[et]);if("function"==typeof t)return t}function b(n,t){return n===t?0!==n||1/n==1/t:n!==n&&t!==t}function o(n){this.message=n;this.stack=""}function s(n){function r(r,f,e,s,h,c,l){return(s=s||v,c=c||e,l!==i)&&t&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"),null==f[e]?r?new o(null===f[e]?"The "+h+" `"+c+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+h+" `"+c+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:n(f,e,s,h,c)}var f=r.bind(null,!1);return f.isRequired=r.bind(null,!0),f}function h(n){function t(t,i,r,u,f){var e=t[i];return c(e)!==n?new o("Invalid "+u+" `"+f+"` of type `"+y(e)+"` supplied to `"+r+"`, expected `"+n+"`."):null}return s(t)}function k(n){function t(t,r,u,f,e){var s,h,l;if("function"!=typeof n)return new o("Property `"+e+"` of component `"+u+"` has invalid PropType notation inside arrayOf.");if(s=t[r],!Array.isArray(s))return new o("Invalid "+f+" `"+e+"` of type `"+c(s)+"` supplied to `"+u+"`, expected an array.");for(h=0;h<s.length;h++)if(l=n(s,h,u,f,e+"["+h+"]",i),l instanceof Error)return l;return null}return s(t)}function d(n){function t(t,i,r,u,f){if(!(t[i]instanceof n)){var e=n.name||v;return new o("Invalid "+u+" `"+f+"` of type `"+ft(t[i])+"` supplied to `"+r+"`, expected instance of `"+e+"`.")}return null}return s(t)}function g(n){function t(t,i,r,u,f){for(var s=t[i],e=0;e<n.length;e++)if(b(s,n[e]))return null;return new o("Invalid "+u+" `"+f+"` of value `"+s+"` supplied to `"+r+"`, expected one of "+JSON.stringify(n)+".")}return Array.isArray(n)?s(t):r.thatReturnsNull}function nt(n){function t(t,r,u,f,e){var s,l,h,a;if("function"!=typeof n)return new o("Property `"+e+"` of component `"+u+"` has invalid PropType notation inside objectOf.");if(s=t[r],l=c(s),"object"!==l)return new o("Invalid "+f+" `"+e+"` of type `"+l+"` supplied to `"+u+"`, expected an object.");for(h in s)if(s.hasOwnProperty(h)&&(a=n(s,h,u,f,e+"."+h,i),a instanceof Error))return a;return null}return s(t)}function tt(n){function e(t,r,u,f,e){for(var s=0;s<n.length;s++)if(null==n[s](t,r,u,f,e,i))return null;return new o("Invalid "+f+" `"+e+"` supplied to `"+u+"`.")}var t,u;if(!Array.isArray(n))return r.thatReturnsNull;for(t=0;t<n.length;t++)if(u=n[t],"function"!=typeof u)return f(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",ut(u),t),r.thatReturnsNull;return s(e)}function it(n){function t(t,r,u,f,e){var a=t[r],v=c(a),s,h,l;if("object"!==v)return new o("Invalid "+f+" `"+e+"` of type `"+v+"` supplied to `"+u+"`, expected `object`.");for(s in n)if(h=n[s],h&&(l=h(a,s,u,f,e+"."+s,i),l))return l;return null}return s(t)}function l(t){var i,r,u,f;switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||n(t))return!0;if(i=w(t),!i)return!1;if(u=i.call(t),i!==t.entries){for(;!(r=u.next()).done;)if(!l(r.value))return!1}else for(;!(r=u.next()).done;)if(f=r.value,f&&!l(f[1]))return!1;return!0;default:return!1}}function rt(n,t){return"symbol"===n||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function c(n){var t=typeof n;return Array.isArray(n)?"array":n instanceof RegExp?"object":rt(t,n)?"symbol":t}function y(n){if(void 0===n||null===n)return""+n;var t=c(n);if("object"===t){if(n instanceof Date)return"date";if(n instanceof RegExp)return"regexp"}return t}function ut(n){var t=y(n);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function ft(n){return n.constructor&&n.constructor.name?n.constructor.name:v}var p="function"==typeof Symbol&&Symbol.iterator,et="@@iterator",v="<<anonymous>>",a={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return s(r.thatReturnsNull)}(),arrayOf:k,element:function(){function t(t,i,r,u,f){var e=t[i];return n(e)?null:new o("Invalid "+u+" `"+f+"` of type `"+c(e)+"` supplied to `"+r+"`, expected a single ReactElement.")}return s(t)}(),instanceOf:d,node:function(){function n(n,t,i,r,u){return l(n[t])?null:new o("Invalid "+r+" `"+u+"` supplied to `"+i+"`, expected a ReactNode.")}return s(n)}(),objectOf:nt,oneOf:g,oneOfType:tt,shape:it};return o.prototype=Error.prototype,a.checkPropTypes=e,a.PropTypes=a,a}},{22:22,24:24,25:25,27:27,30:30}],30:[function(n,t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[12])(12)});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n(require("react"));else if("function"==typeof define&&define.amd)define(["react"],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.ReactDOM=n(t.React)}}(function(n){return function(){return function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";t.exports={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}}},{}],2:[function(n,t){"use strict";var i=n(33),r=n(132),u={focusDOMComponent:function(){r(i.getNodeFromInstance(this))}};t.exports=u},{132:132,33:33}],3:[function(n,t){"use strict";function w(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function b(n){switch(n){case"topCompositionStart":return i.compositionStart;case"topCompositionEnd":return i.compositionEnd;case"topCompositionUpdate":return i.compositionUpdate}}function k(n,t){return"topKeyDown"===n&&t.keyCode===l}function o(n,t){switch(n){case"topKeyUp":return-1!==ut.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==l;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(n){var t=n.detail;return"object"==typeof t&&"data"in t?t.data:null}function d(n,t,u,f){var l,y,v,p;return(e?l=b(n):r?o(n,u)&&(l=i.compositionEnd):k(n,u)&&(l=i.compositionStart),!l)?null:(a&&(r||l!==i.compositionStart?l===i.compositionEnd&&r&&(y=r.getData()):r=c.getPooled(f)),v=it.getPooled(l,t,u,f),y?v.data=y:(p=s(u),null!==p&&(v.data=p)),h.accumulateTwoPhaseDispatches(v),v)}function g(n,t){switch(n){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==v?null:(p=!0,y);case"topTextInput":var i=t.data;return i===y&&p?null:i;default:return null}}function nt(n,t){if(r){if("topCompositionEnd"===n||!e&&o(n,t)){var i=r.getData();return c.release(r),r=null,i}return null}switch(n){case"topPaste":return null;case"topKeyPress":return t.which&&!w(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return a?null:t.data;default:return null}}function tt(n,t,r,u){var e,f;return(e=ft?g(n,r):nt(n,r))?(f=rt.getPooled(i.beforeInput,t,r,u),f.data=e,h.accumulateTwoPhaseDispatches(f),f):null}var h=n(19),f=n(124),c=n(20),it=n(78),rt=n(82),ut=[9,13,27,32],l=229,e=f.canUseDOM&&"CompositionEvent"in window,u=null;f.canUseDOM&&"documentMode"in document&&(u=document.documentMode);var ft=f.canUseDOM&&"TextEvent"in window&&!u&&!function(){var n=window.opera;return"object"==typeof n&&"function"==typeof n.version&&parseInt(n.version(),10)<=12}(),a=f.canUseDOM&&(!e||u&&u>8&&u<=11),v=32,y=String.fromCharCode(v),i={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},p=!1,r=null,et={eventTypes:i,extractEvents:function(n,t,i,r){return[d(n,t,i,r),tt(n,t,i,r)]}};t.exports=et},{124:124,19:19,20:20,78:78,82:82}],4:[function(n,t){"use strict";function f(n,t){return n+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},e=["Webkit","ms","Moz","O"],r,u;Object.keys(i).forEach(function(n){e.forEach(function(t){i[f(t,n)]=i[n]})});r={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}};u={isUnitlessNumber:i,shorthandPropertyExpansions:r};t.exports=u},{}],5:[function(n,t){"use strict";var o=n(4),s=n(124),i=(n(58),n(126),n(94)),h=n(137),c=n(141),l=(n(143),c(function(n){return h(n)})),r=!1,u="cssFloat",f,e;if(s.canUseDOM){f=document.createElement("div").style;try{f.font=""}catch(n){r=!0}void 0===document.documentElement.style.cssFloat&&(u="styleFloat")}e={createMarkupForStyles:function(n,t){var u="",r,e,f;for(r in n)n.hasOwnProperty(r)&&(e=0===r.indexOf("--"),f=n[r],null!=f&&(u+=l(r)+":",u+=i(r,f,t,e)+";"));return u||null},setValueForStyles:function(n,t,f){var s=n.style,e,c,h,l,a;for(e in t)if(t.hasOwnProperty(e))if(c=0===e.indexOf("--"),h=i(e,t[e],f,c),"float"!==e&&"cssFloat"!==e||(e=u),c)s.setProperty(e,h);else if(h)s[e]=h;else if(l=r&&o.shorthandPropertyExpansions[e],l)for(a in l)s[a]="";else s[e]=""}};t.exports=e},{124:124,126:126,137:137,141:141,143:143,4:4,58:58,94:94}],6:[function(n,t){"use strict";function i(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r=n(113),u=n(24),f=(n(138),function(){function n(t){i(this,n);this._callbacks=null;this._contexts=null;this._arg=t}return n.prototype.enqueue=function(n,t){this._callbacks=this._callbacks||[];this._callbacks.push(n);this._contexts=this._contexts||[];this._contexts.push(t)},n.prototype.notifyAll=function(){var n=this._callbacks,i=this._contexts,u=this._arg,t;if(n&&i){for(n.length!==i.length&&r("24"),this._callbacks=null,this._contexts=null,t=0;t<n.length;t++)n[t].call(i[t],u);n.length=0;i.length=0}},n.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},n.prototype.rollback=function(n){this._callbacks&&this._contexts&&(this._callbacks.length=n,this._contexts.length=n)},n.prototype.reset=function(){this._callbacks=null;this._contexts=null},n.prototype.destructor=function(){this.reset()},n}());t.exports=u.addPoolingTo(f)},{113:113,138:138,24:24}],7:[function(n,t){"use strict";function s(n,t,i){var r=lt.getPooled(p.change,n,t,i);return r.type="change",st.accumulateTwoPhaseDispatches(r),r}function b(n){var t=n.nodeName&&n.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===n.type}function e(n){var t=s(r,n,vt(n));ct.batchedUpdates(k,t)}function k(n){a.enqueueEvents(n);a.processEventQueue(!1)}function d(n,t){i=n;r=t;i.attachEvent("onchange",e)}function h(){i&&(i.detachEvent("onchange",e),i=null,r=null)}function u(n,t){var i=at.updateValueIfChanged(n),r=!0===t.simulated&&o._allowSimulatedPassThrough;if(i||r)return n}function g(n,t){if("topChange"===n)return t}function nt(n,t,i){"topFocus"===n?(h(),d(t,i)):"topBlur"===n&&h()}function tt(n,t){i=n;r=t;i.attachEvent("onpropertychange",l)}function c(){i&&(i.detachEvent("onpropertychange",l),i=null,r=null)}function l(n){"value"===n.propertyName&&u(r,n)&&e(n)}function it(n,t,i){"topFocus"===n?(c(),tt(t,i)):"topBlur"===n&&c()}function rt(n,t,i){if("topSelectionChange"===n||"topKeyUp"===n||"topKeyDown"===n)return u(r,i)}function ut(n){var t=n.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===n.type||"radio"===n.type)}function ft(n,t,i){if("topClick"===n)return u(t,i)}function et(n,t,i){if("topInput"===n||"topChange"===n)return u(t,i)}function ot(n,t){var i,r;null!=n&&(i=n._wrapperState||t._wrapperState,i&&i.controlled&&"number"===t.type&&(r=""+t.value,t.getAttribute("value")!==r&&t.setAttribute("value",r)))}var a=n(16),st=n(19),v=n(124),ht=n(33),ct=n(71),lt=n(80),at=n(108),vt=n(102),y=n(110),yt=n(111),p={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},i=null,r=null,w=!1,f,o;v.canUseDOM&&(w=y("change")&&(!document.documentMode||document.documentMode>8));f=!1;v.canUseDOM&&(f=y("input")&&(!("documentMode"in document)||document.documentMode>9));o={eventTypes:p,_allowSimulatedPassThrough:!0,_isInputEventSupported:f,extractEvents:function(n,t,i,r){var u,o,e=t?ht.getNodeFromInstance(t):window,h;if((b(e)?w?u=g:o=nt:yt(e)?f?u=et:(u=rt,o=it):ut(e)&&(u=ft),u)&&(h=u(n,t,i),h))return s(h,i,r);o&&o(n,e,t);"topBlur"===n&&ot(t,e)}};t.exports=o},{102:102,108:108,110:110,111:111,124:124,16:16,19:19,33:33,71:71,80:80}],8:[function(n,t){"use strict";function u(n,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:n.firstChild}function e(n,t,i){l.insertTreeBefore(n,t,i)}function o(n,t,i){Array.isArray(t)?h(n,t[0],t[1],i):r(n,t,i)}function s(n,t){if(Array.isArray(t)){var r=t[1];t=t[0];i(n,t,r);n.removeChild(r)}n.removeChild(t)}function h(n,t,i,u){for(var e,f=t;;){if(e=f.nextSibling,r(n,f,u),f===i)break;f=e}}function i(n,t,i){for(;;){var r=t.nextSibling;if(r===i)break;n.removeChild(r)}}function c(n,t,u){var o=n.parentNode,e=n.nextSibling;e===t?u&&r(o,document.createTextNode(u),e):u?(f(e,u),i(o,e,t)):i(o,n,t)}var l=n(9),a=n(13),v=(n(33),n(58),n(93)),y=n(115),f=n(116),r=v(function(n,t,i){n.insertBefore(t,i)}),p=a.dangerouslyReplaceNodeWithMarkup,w={dangerouslyReplaceNodeWithMarkup:p,replaceDelimitedText:c,processUpdates:function(n,t){for(var i,r=0;r<t.length;r++){i=t[r];switch(i.type){case"INSERT_MARKUP":e(n,i.content,u(n,i.afterNode));break;case"MOVE_EXISTING":o(n,i.fromNode,u(n,i.afterNode));break;case"SET_MARKUP":y(n,i.content);break;case"TEXT_CONTENT":f(n,i.content);break;case"REMOVE_NODE":s(n,i.fromNode)}}}};t.exports=w},{115:115,116:116,13:13,33:33,58:58,9:9,93:93}],9:[function(n,t){"use strict";function u(n){var t,i,u;if(r)if(t=n.node,i=n.children,i.length)for(u=0;u<i.length;u++)o(t,i[u],null);else null!=n.html?f(t,n.html):null!=n.text&&e(t,n.text)}function s(n,t){n.parentNode.replaceChild(t.node,n);u(t)}function h(n,t){r?n.children.push(t):n.node.appendChild(t.node)}function c(n,t){r?n.html=t:f(n.node,t)}function l(n,t){r?n.text=t:e(n.node,t)}function a(){return this.node.nodeName}function i(n){return{node:n,children:[],html:null,text:null,toString:a}}var v=n(10),f=n(115),y=n(93),e=n(116),r="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),o=y(function(n,t,i){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===v.html)?(u(t),n.insertBefore(t.node,i)):(n.insertBefore(t.node,i),u(t))});i.insertTreeBefore=o;i.replaceChildWithTree=s;i.queueChild=h;i.queueHTML=c;i.queueText=l;t.exports=i},{10:10,115:115,116:116,93:93}],10:[function(n,t){"use strict";t.exports={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}},{}],11:[function(n,t){"use strict";function r(n,t){return(n&t)===t}var u=n(113),f=(n(138),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(n){var o=f,h=n.Properties||{},c=n.DOMAttributeNamespaces||{},l=n.DOMAttributeNames||{},a=n.DOMPropertyNames||{},v=n.DOMMutationMethods||{},t,y;n.isCustomAttribute&&i._isCustomAttributeFunctions.push(n.isCustomAttribute);for(t in h){i.properties.hasOwnProperty(t)&&u("48",t);var p=t.toLowerCase(),s=h[t],e={attributeName:p,attributeNamespace:null,propertyName:t,mutationMethod:null,mustUseProperty:r(s,o.MUST_USE_PROPERTY),hasBooleanValue:r(s,o.HAS_BOOLEAN_VALUE),hasNumericValue:r(s,o.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(s,o.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(s,o.HAS_OVERLOADED_BOOLEAN_VALUE)};(e.hasBooleanValue+e.hasNumericValue+e.hasOverloadedBooleanValue<=1||u("50",t),l.hasOwnProperty(t))&&(y=l[t],e.attributeName=y);c.hasOwnProperty(t)&&(e.attributeNamespace=c[t]);a.hasOwnProperty(t)&&(e.propertyName=a[t]);v.hasOwnProperty(t)&&(e.mutationMethod=v[t]);i.properties[t]=e}}}),e=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:e,ATTRIBUTE_NAME_CHAR:e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(n){for(var t=0;t<i._isCustomAttributeFunctions.length;t++)if(i._isCustomAttributeFunctions[t](n))return!0;return!1},injection:f};t.exports=i},{113:113,138:138}],12:[function(n,t){"use strict";function u(n){return!!o.hasOwnProperty(n)||!e.hasOwnProperty(n)&&(h.test(n)?(o[n]=!0,!0):(e[n]=!0,!1))}function f(n,t){return null==t||n.hasBooleanValue&&!t||n.hasNumericValue&&isNaN(t)||n.hasPositiveNumericValue&&t<1||n.hasOverloadedBooleanValue&&!1===t}var i=n(11),r=(n(33),n(58),n(112)),h=(n(143),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),e={},o={},s={createMarkupForID:function(n){return i.ID_ATTRIBUTE_NAME+"="+r(n)},setAttributeForID:function(n,t){n.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(n){n.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(n,t){var u=i.properties.hasOwnProperty(n)?i.properties[n]:null,e;return u?f(u,t)?"":(e=u.attributeName,u.hasBooleanValue||u.hasOverloadedBooleanValue&&!0===t?e+'=""':e+"="+r(t)):i.isCustomAttribute(n)?null==t?"":n+"="+r(t):null},createMarkupForCustomAttribute:function(n,t){return u(n)&&null!=t?n+"="+r(t):""},setValueForProperty:function(n,t,r){var u=i.properties.hasOwnProperty(t)?i.properties[t]:null,o,e,h;if(u)if(o=u.mutationMethod,o)o(n,r);else{if(f(u,r))return void this.deleteValueForProperty(n,t);u.mustUseProperty?n[u.propertyName]=r:(e=u.attributeName,h=u.attributeNamespace,h?n.setAttributeNS(h,e,""+r):u.hasBooleanValue||u.hasOverloadedBooleanValue&&!0===r?n.setAttribute(e,""):n.setAttribute(e,""+r))}else if(i.isCustomAttribute(t))return void s.setValueForAttribute(n,t,r)},setValueForAttribute:function(n,t,i){u(t)&&(null==i?n.removeAttribute(t):n.setAttribute(t,""+i))},deleteValueForAttribute:function(n,t){n.removeAttribute(t)},deleteValueForProperty:function(n,t){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null,u,f;r?(u=r.mutationMethod,u?u(n,void 0):r.mustUseProperty?(f=r.propertyName,n[f]=r.hasBooleanValue?!1:""):n.removeAttribute(r.attributeName)):i.isCustomAttribute(t)&&n.removeAttribute(t)}};t.exports=s},{11:11,112:112,143:143,33:33,58:58}],13:[function(n,t){"use strict";var i=n(113),r=n(9),u=n(124),f=n(129),e=n(130),o=(n(138),{dangerouslyReplaceNodeWithMarkup:function(n,t){if(u.canUseDOM||i("56"),t||i("57"),"HTML"===n.nodeName&&i("58"),"string"==typeof t){var o=f(t,e)[0];n.parentNode.replaceChild(o,n)}else r.replaceChildWithTree(n,t)}});t.exports=o},{113:113,124:124,129:129,130:130,138:138,9:9}],14:[function(n,t){"use strict";t.exports=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"]},{}],15:[function(n,t){"use strict";var f=n(19),i=n(33),u=n(84),r={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},e={eventTypes:r,extractEvents:function(n,t,e,o){var a,v,s,h,y,c;if("topMouseOver"===n&&(e.relatedTarget||e.fromElement)||"topMouseOut"!==n&&"topMouseOver"!==n||(o.window===o?a=o:(v=o.ownerDocument,a=v?v.defaultView||v.parentWindow:window),"topMouseOut"===n?(s=t,y=e.relatedTarget||e.toElement,h=y?i.getClosestInstanceFromNode(y):null):(s=null,h=t),s===h))return null;var p=null==s?a:i.getNodeFromInstance(s),w=null==h?a:i.getNodeFromInstance(h),l=u.getPooled(r.mouseLeave,s,e,o);return l.type="mouseleave",l.target=p,l.relatedTarget=w,c=u.getPooled(r.mouseEnter,h,e,o),c.type="mouseenter",c.target=w,c.relatedTarget=p,f.accumulateEnterLeaveDispatches(l,c,s,h),[l,c]}};t.exports=e},{19:19,33:33,84:84}],16:[function(n,t){"use strict";function c(n){return"button"===n||"input"===n||"select"===n||"textarea"===n}function l(n,t,i){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!i.disabled||!c(t));default:return!1}}var e=n(113),r=n(17),a=n(18),v=n(50),o=n(91),s=n(98),i=(n(138),{}),u=null,h=function(n,t){n&&(a.executeDispatchesInOrder(n,t),n.isPersistent()||n.constructor.release(n))},y=function(n){return h(n,!0)},p=function(n){return h(n,!1)},f=function(n){return"."+n._rootNodeID},w={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(n,t,u){var s,o;"function"!=typeof u&&e("94",t,typeof u);s=f(n);(i[t]||(i[t]={}))[s]=u;o=r.registrationNameModules[t];o&&o.didPutListener&&o.didPutListener(n,t,u)},getListener:function(n,t){var r=i[t],u;return l(t,n._currentElement.type,n._currentElement.props)?null:(u=f(n),r&&r[u])},deleteListener:function(n,t){var u=r.registrationNameModules[t],e;u&&u.willDeleteListener&&u.willDeleteListener(n,t);e=i[t];e&&delete e[f(n)]},deleteAllListeners:function(n){var e=f(n),t,u;for(t in i)i.hasOwnProperty(t)&&i[t][e]&&(u=r.registrationNameModules[t],u&&u.willDeleteListener&&u.willDeleteListener(n,t),delete i[t][e])},extractEvents:function(n,t,i,u){for(var e,h,c,s=r.plugins,f=0;f<s.length;f++)h=s[f],h&&(c=h.extractEvents(n,t,i,u),c&&(e=o(e,c)));return e},enqueueEvents:function(n){n&&(u=o(u,n))},processEventQueue:function(n){var t=u;u=null;n?s(t,y):s(t,p);u&&e("95");v.rethrowCaughtError()},__purge:function(){i={}},__getListenerBank:function(){return i}};t.exports=w},{113:113,138:138,17:17,18:18,50:50,91:91,98:98}],17:[function(n,t){"use strict";function e(){var n,t,e,h,o;if(f)for(n in r)if(t=r[n],e=f.indexOf(n),e>-1||u("96",n),!i.plugins[e]){t.extractEvents||u("97",n);i.plugins[e]=t;h=t.eventTypes;for(o in h)s(h[o],t,o)||u("98",o,n)}}function s(n,t,r){var f,e,s;if(i.eventNameDispatchConfigs.hasOwnProperty(r)&&u("99",r),i.eventNameDispatchConfigs[r]=n,f=n.phasedRegistrationNames,f){for(e in f)f.hasOwnProperty(e)&&(s=f[e],o(s,t,r));return!0}return!!n.registrationName&&(o(n.registrationName,t,r),!0)}function o(n,t,r){i.registrationNameModules[n]&&u("100",n);i.registrationNameModules[n]=t;i.registrationNameDependencies[n]=t.eventTypes[r].dependencies}var u=n(113),f=(n(138),null),r={},i={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(n){f&&u("101");f=Array.prototype.slice.call(n);e()},injectEventPluginsByName:function(n){var f=!1,t,i;for(t in n)n.hasOwnProperty(t)&&(i=n[t],r.hasOwnProperty(t)&&r[t]===i||(r[t]&&u("102",t),r[t]=i,f=!0));f&&e()},getPluginModuleForEvent:function(n){var t=n.dispatchConfig,r,u,f;if(t.registrationName)return i.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){r=t.phasedRegistrationNames;for(u in r)if(r.hasOwnProperty(u)&&(f=i.registrationNameModules[r[u]],f))return f}return null},_resetEventPlugins:function(){var u,n,e,t,o;f=null;for(u in r)r.hasOwnProperty(u)&&delete r[u];i.plugins.length=0;n=i.eventNameDispatchConfigs;for(e in n)n.hasOwnProperty(e)&&delete n[e];t=i.registrationNameModules;for(o in t)t.hasOwnProperty(o)&&delete t[o]}};t.exports=i},{113:113,138:138}],18:[function(n,t){"use strict";function o(n){return"topMouseUp"===n||"topTouchEnd"===n||"topTouchCancel"===n}function s(n){return"topMouseMove"===n||"topTouchMove"===n}function h(n){return"topMouseDown"===n||"topTouchStart"===n}function f(n,t,i,r){var f=n.type||"unknown-event";n.currentTarget=u.getNodeFromInstance(r);t?e.invokeGuardedCallbackWithCatch(f,i,n):e.invokeGuardedCallback(f,i,n);n.currentTarget=null}function c(n,t){var i=n._dispatchListeners,u=n._dispatchInstances,r;if(Array.isArray(i))for(r=0;r<i.length&&!n.isPropagationStopped();r++)f(n,t,i[r],u[r]);else i&&f(n,t,i,u);n._dispatchListeners=null;n._dispatchInstances=null}function l(n){var i=n._dispatchListeners,r=n._dispatchInstances,t;if(Array.isArray(i)){for(t=0;t<i.length&&!n.isPropagationStopped();t++)if(i[t](n,r[t]))return r[t]}else if(i&&i(n,r))return r;return null}function a(n){var t=l(n);return n._dispatchInstances=null,n._dispatchListeners=null,t}function v(n){var t=n._dispatchListeners,r=n._dispatchInstances,i;return Array.isArray(t)&&p("103"),n.currentTarget=t?u.getNodeFromInstance(r):null,i=t?t(n):null,n.currentTarget=null,n._dispatchListeners=null,n._dispatchInstances=null,i}function y(n){return!!n._dispatchListeners}var r,i,p=n(113),e=n(50),w=(n(138),n(143),{injectComponentTree:function(n){r=n},injectTreeTraversal:function(n){i=n}}),u={isEndish:o,isMoveish:s,isStartish:h,executeDirectDispatch:v,executeDispatchesInOrder:c,executeDispatchesInOrderStopAtTrue:a,hasDispatches:y,getInstanceFromNode:function(n){return r.getInstanceFromNode(n)},getNodeFromInstance:function(n){return r.getNodeFromInstance(n)},isAncestor:function(n,t){return i.isAncestor(n,t)},getLowestCommonAncestor:function(n,t){return i.getLowestCommonAncestor(n,t)},getParentInstance:function(n){return i.getParentInstance(n)},traverseTwoPhase:function(n,t,r){return i.traverseTwoPhase(n,t,r)},traverseEnterLeave:function(n,t,r,u,f){return i.traverseEnterLeave(n,t,r,u,f)},injection:w};t.exports=u},{113:113,138:138,143:143,50:50}],19:[function(n,t){"use strict";function s(n,t,i){var r=t.dispatchConfig.phasedRegistrationNames[i];return o(n,r)}function f(n,t,i){var u=s(n,i,t);u&&(i._dispatchListeners=r(i._dispatchListeners,u),i._dispatchInstances=r(i._dispatchInstances,n))}function h(n){n&&n.dispatchConfig.phasedRegistrationNames&&i.traverseTwoPhase(n._targetInst,f,n)}function c(n){if(n&&n.dispatchConfig.phasedRegistrationNames){var t=n._targetInst,r=t?i.getParentInstance(t):null;i.traverseTwoPhase(r,f,n)}}function e(n,t,i){if(i&&i.dispatchConfig.registrationName){var f=i.dispatchConfig.registrationName,u=o(n,f);u&&(i._dispatchListeners=r(i._dispatchListeners,u),i._dispatchInstances=r(i._dispatchInstances,n))}}function l(n){n&&n.dispatchConfig.registrationName&&e(n._targetInst,null,n)}function a(n){u(n,h)}function v(n){u(n,c)}function y(n,t,r,u){i.traverseEnterLeave(r,u,e,n,t)}function p(n){u(n,l)}var w=n(16),i=n(18),r=n(91),u=n(98),o=(n(143),w.getListener),b={accumulateTwoPhaseDispatches:a,accumulateTwoPhaseDispatchesSkipTarget:v,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:y};t.exports=b},{143:143,16:16,18:18,91:91,98:98}],20:[function(n,t){"use strict";function i(n){this._root=n;this._startText=this.getText();this._fallbackText=null}var r=n(144),u=n(24),f=n(106);r(i.prototype,{destructor:function(){this._root=null;this._startText=null;this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[f()]},getData:function(){var f,e;if(this._fallbackText)return this._fallbackText;for(var t,r=this._startText,u=r.length,i=this.getText(),o=i.length,n=0;n<u&&r[n]===i[n];n++);for(f=u-n,t=1;t<=f&&r[u-t]===i[o-t];t++);return e=t>1?1-t:void 0,this._fallbackText=i.slice(n,e),this._fallbackText}});u.addPoolingTo(i);t.exports=i},{106:106,144:144,24:24}],21:[function(n,t){"use strict";var r=n(11),u=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,e=r.injection.HAS_NUMERIC_VALUE,f=r.injection.HAS_POSITIVE_NUMERIC_VALUE,o=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,s={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:u|i,cite:0,classID:0,className:0,cols:f,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,"default":i,defer:i,dir:0,disabled:i,download:o,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:u|i,muted:u|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:f,rowSpan:e,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:u|i,shape:0,size:f,sizes:0,span:f,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:e,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(n,t){if(null==t)return n.removeAttribute("value");"number"!==n.type||!1===n.hasAttribute("value")?n.setAttribute("value",""+t):n.validity&&!n.validity.badInput&&n.ownerDocument.activeElement!==n&&n.setAttribute("value",""+t)}}};t.exports=s},{11:11}],22:[function(n,t){"use strict";function i(n){var t={"=":"=0",":":"=2"};return"$"+(""+n).replace(/[=:]/g,function(n){return t[n]})}function r(n){var t={"=0":"=","=2":":"};return(""+("."===n[0]&&"$"===n[1]?n.substring(2):n.substring(1))).replace(/(=0|=2)/g,function(n){return t[n]})}var u={escape:i,unescape:r};t.exports=u},{}],23:[function(n,t){"use strict";function u(n){null!=n.checkedLink&&null!=n.valueLink&&i("87")}function f(n){u(n);(null!=n.value||null!=n.onChange)&&i("88")}function e(n){u(n);(null!=n.checked||null!=n.onChange)&&i("89")}function s(n){if(n){var t=n.getName();if(t)return" Check the render method of `"+t+"`."}return""}var i=n(113),h=n(64),c=n(146),l=n(121),a=c(l.isValidElement),v=(n(138),n(143),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),r={value:function(n,t){return!n[t]||v[n.type]||n.onChange||n.readOnly||n.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(n,t){return!n[t]||n.onChange||n.readOnly||n.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:a.func},o={},y={checkPropTypes:function(n,t,i){var u,f;for(u in r)r.hasOwnProperty(u)&&(f=r[u](t,u,n,"prop",null,h)),f instanceof Error&&!(f.message in o)&&(o[f.message]=!0,s(i))},getValue:function(n){return n.valueLink?(f(n),n.valueLink.value):n.value},getChecked:function(n){return n.checkedLink?(e(n),n.checkedLink.value):n.checked},executeOnChange:function(n,t){return n.valueLink?(f(n),n.valueLink.requestChange(t.target.value)):n.checkedLink?(e(n),n.checkedLink.requestChange(t.target.checked)):n.onChange?n.onChange.call(void 0,t):void 0}};t.exports=y},{113:113,121:121,138:138,143:143,146:146,64:64}],24:[function(n,t){"use strict";var r=n(113),i=(n(138),function(n){var t=this,i;return t.instancePool.length?(i=t.instancePool.pop(),t.call(i,n),i):new t(n)}),u=function(n,t){var i=this,r;return i.instancePool.length?(r=i.instancePool.pop(),i.call(r,n,t),r):new i(n,t)},f=function(n,t,i){var r=this,u;return r.instancePool.length?(u=r.instancePool.pop(),r.call(u,n,t,i),u):new r(n,t,i)},e=function(n,t,i,r){var u=this,f;return u.instancePool.length?(f=u.instancePool.pop(),u.call(f,n,t,i,r),f):new u(n,t,i,r)},o=function(n){var t=this;n instanceof t||r("25");n.destructor();t.instancePool.length<t.poolSize&&t.instancePool.push(n)},s=i,h=function(n,t){var i=n;return i.instancePool=[],i.getPooled=t||s,i.poolSize||(i.poolSize=10),i.release=o,i},c={addPoolingTo:h,oneArgumentPooler:i,twoArgumentPooler:u,threeArgumentPooler:f,fourArgumentPooler:e};t.exports=c},{113:113,138:138}],25:[function(n,t){"use strict";function c(n){return Object.prototype.hasOwnProperty.call(n,f)||(n[f]=p++,o[n[f]]={}),o[n[f]]}var e,l=n(144),a=n(17),v=n(51),y=n(90),u=n(107),r=n(110),o={},s=!1,p=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},f="_reactListenersID"+String(Math.random()).slice(2),i=l({},v,{ReactEventListener:null,injection:{injectReactEventListener:function(n){n.setHandleTopLevel(i.handleTopLevel);i.ReactEventListener=n}},setEnabled:function(n){i.ReactEventListener&&i.ReactEventListener.setEnabled(n)},isEnabled:function(){return!(!i.ReactEventListener||!i.ReactEventListener.isEnabled())},listenTo:function(n,t){for(var u,f=t,e=c(f),s=a.registrationNameDependencies[n],o=0;o<s.length;o++)u=s[o],e.hasOwnProperty(u)&&e[u]||("topWheel"===u?r("wheel")?i.ReactEventListener.trapBubbledEvent("topWheel","wheel",f):r("mousewheel")?i.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",f):i.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",f):"topScroll"===u?r("scroll",!0)?i.ReactEventListener.trapCapturedEvent("topScroll","scroll",f):i.ReactEventListener.trapBubbledEvent("topScroll","scroll",i.ReactEventListener.WINDOW_HANDLE):"topFocus"===u||"topBlur"===u?(r("focus",!0)?(i.ReactEventListener.trapCapturedEvent("topFocus","focus",f),i.ReactEventListener.trapCapturedEvent("topBlur","blur",f)):r("focusin")&&(i.ReactEventListener.trapBubbledEvent("topFocus","focusin",f),i.ReactEventListener.trapBubbledEvent("topBlur","focusout",f)),e.topBlur=!0,e.topFocus=!0):h.hasOwnProperty(u)&&i.ReactEventListener.trapBubbledEvent(u,h[u],f),e[u]=!0)},trapBubbledEvent:function(n,t,r){return i.ReactEventListener.trapBubbledEvent(n,t,r)},trapCapturedEvent:function(n,t,r){return i.ReactEventListener.trapCapturedEvent(n,t,r)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var n=document.createEvent("MouseEvent");return null!=n&&"pageX"in n},ensureScrollValueMonitoring:function(){if(void 0===e&&(e=i.supportsEventPageXY()),!e&&!s){var n=y.refreshScrollValues;i.ReactEventListener.monitorScrollValue(n);s=!0}}});t.exports=i},{107:107,110:110,144:144,17:17,51:51,90:90}],26:[function(n,t){(function(i){"use strict";function e(n,t,i){var r=void 0===n[i];null!=t&&r&&(n[i]=u(t,!0))}var r=n(66),u=n(109),o=(n(22),n(117)),s=n(118),f;n(143);void 0!==i&&i.env;f={instantiateChildren:function(n){if(null==n)return null;var t={};return s(n,e,t),t},updateChildren:function(n,t,i,f,e,s,h,c,l){var a,v,w,y,p,b;if(t||n){for(a in t)t.hasOwnProperty(a)&&(v=n&&n[a],w=v&&v._currentElement,y=t[a],null!=v&&o(w,y)?(r.receiveComponent(v,y,e,c),t[a]=v):(v&&(f[a]=r.getHostNode(v),r.unmountComponent(v,!1)),p=u(y,!0),t[a]=p,b=r.mountComponent(p,e,s,h,c,l),i.push(b)));for(a in n)!n.hasOwnProperty(a)||t&&t.hasOwnProperty(a)||(v=n[a],f[a]=r.getHostNode(v),r.unmountComponent(v,!1))}},unmountChildren:function(n,t){var i,u;for(i in n)n.hasOwnProperty(i)&&(u=n[i],r.unmountComponent(u,t))}};t.exports=f}).call(this,void 0)},{109:109,117:117,118:118,143:143,22:22,66:66}],27:[function(n,t){"use strict";var i=n(8),r=n(37),u={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup};t.exports=u},{37:37,8:8}],28:[function(n,t){"use strict";var u=n(113),r=(n(138),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(n){r&&u("104");i.replaceNodeWithMarkup=n.replaceNodeWithMarkup;i.processChildrenUpdates=n.processChildrenUpdates;r=!0}}};t.exports=i},{113:113,138:138}],29:[function(n,t){"use strict";function h(){}function p(n){return!(!n.prototype||!n.prototype.isReactComponent)}function w(n){return!(!n.prototype||!n.prototype.isPureReactComponent)}var r=n(113),e=n(144),c=n(121),b=n(28),l=n(120),k=n(50),o=n(57),f=(n(58),n(62)),i=n(66),s=n(131),a=(n(138),n(142)),d=n(117),u=(n(143),{ImpureClass:0,PureClass:1,StatelessFunctional:2}),v,y;h.prototype.render=function(){var n=o.get(this)._currentElement.type;return n(this.props,this.context,this.updater)};v=1;y={construct:function(n){this._currentElement=n;this._rootNodeID=0;this._compositeType=null;this._instance=null;this._hostParent=null;this._hostContainerInfo=null;this._updateBatchNumber=null;this._pendingElement=null;this._pendingStateQueue=null;this._pendingReplaceState=!1;this._pendingForceUpdate=!1;this._renderedNodeType=null;this._renderedComponent=null;this._context=null;this._mountOrder=0;this._topLevelWrapper=null;this._pendingCallbacks=null;this._calledComponentWillUnmount=!1},mountComponent:function(n,t,i,f){var a,nt;this._context=f;this._mountOrder=v++;this._hostParent=t;this._hostContainerInfo=i;var y,b=this._currentElement.props,k=this._processContext(f),l=this._currentElement.type,d=n.getUpdateQueue(),g=p(l),e=this._constructComponent(g,b,k,d);return g||null!=e&&null!=e.render?this._compositeType=w(l)?u.PureClass:u.ImpureClass:(y=e,null===e||!1===e||c.isValidElement(e)||r("105",l.displayName||l.name||"Component"),e=new h(l),this._compositeType=u.StatelessFunctional),e.props=b,e.context=k,e.refs=s,e.updater=d,this._instance=e,o.set(e,this),a=e.state,void 0===a&&(e.state=a=null),("object"!=typeof a||Array.isArray(a))&&r("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,nt=e.unstable_handleError?this.performInitialMountWithErrorHandling(y,t,i,n,f):this.performInitialMount(y,t,i,n,f),e.componentDidMount&&n.getReactMountReady().enqueue(e.componentDidMount,e),nt},_constructComponent:function(n,t,i,r){return this._constructComponentWithoutOwner(n,t,i,r)},_constructComponentWithoutOwner:function(n,t,i,r){var u=this._currentElement.type;return n?new u(t,i,r):u(t,i,r)},performInitialMountWithErrorHandling:function(n,t,i,r,u){var f,e=r.checkpoint();try{f=this.performInitialMount(n,t,i,r,u)}catch(o){r.rollback(e);this._instance.unstable_handleError(o);this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context));e=r.checkpoint();this._renderedComponent.unmountComponent(!0);r.rollback(e);f=this.performInitialMount(n,t,i,r,u)}return f},performInitialMount:function(n,t,r,u,e){var o=this._instance,s,h;return o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===n&&(n=this._renderValidatedComponent()),s=f.getType(n),this._renderedNodeType=s,h=this._instantiateReactComponent(n,s!==f.EMPTY),this._renderedComponent=h,i.mountComponent(h,u,t,r,this._processChildContext(e),0)},getHostNode:function(){return i.getHostNode(this._renderedComponent)},unmountComponent:function(n){var t,r;this._renderedComponent&&(t=this._instance,t.componentWillUnmount&&!t._calledComponentWillUnmount&&((t._calledComponentWillUnmount=!0,n)?(r=this.getName()+".componentWillUnmount()",k.invokeGuardedCallback(r,t.componentWillUnmount.bind(t))):t.componentWillUnmount()),this._renderedComponent&&(i.unmountComponent(this._renderedComponent,n),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,o.remove(t))},_maskContext:function(n){var u=this._currentElement.type,r=u.contextTypes,t,i;if(!r)return s;t={};for(i in r)t[i]=n[i];return t},_processContext:function(n){return this._maskContext(n)},_processChildContext:function(n){var t,u=this._currentElement.type,f=this._instance,i;if(f.getChildContext&&(t=f.getChildContext()),t){"object"!=typeof u.childContextTypes&&r("107",this.getName()||"ReactCompositeComponent");for(i in t)i in u.childContextTypes||r("108",this.getName()||"ReactCompositeComponent",i);return e({},n,t)}return n},_checkContextTypes:function(){},receiveComponent:function(n,t,i){var r=this._currentElement,u=this._context;this._pendingElement=null;this.updateComponent(t,r,n,u,i)},performUpdateIfNecessary:function(n){null!=this._pendingElement?i.receiveComponent(this,this._pendingElement,n,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(n,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(n,t,i,f,e){var o=this._instance,s,l,y,h,c,v;null==o&&r("136",this.getName()||"ReactCompositeComponent");l=!1;this._context===e?s=o.context:(s=this._processContext(e),l=!0);y=t.props;h=i.props;t!==i&&(l=!0);l&&o.componentWillReceiveProps&&o.componentWillReceiveProps(h,s);c=this._processPendingState(h,s);v=!0;this._pendingForceUpdate||(o.shouldComponentUpdate?v=o.shouldComponentUpdate(h,c,s):this._compositeType===u.PureClass&&(v=!a(y,h)||!a(o.state,c)));this._updateBatchNumber=null;v?(this._pendingForceUpdate=!1,this._performComponentUpdate(i,h,c,s,n,e)):(this._currentElement=i,this._context=e,o.props=h,o.state=c,o.context=s)},_processPendingState:function(n,t){var o=this._instance,i=this._pendingStateQueue,s=this._pendingReplaceState,r,u,f;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!i)return o.state;if(s&&1===i.length)return i[0];for(r=e({},s?i[0]:o.state),u=s?1:0;u<i.length;u++)f=i[u],e(r,"function"==typeof f?f.call(o,r,n,t):f);return r},_performComponentUpdate:function(n,t,i,r,u,f){var o,s,h,e=this._instance,c=Boolean(e.componentDidUpdate);c&&(o=e.props,s=e.state,h=e.context);e.componentWillUpdate&&e.componentWillUpdate(t,i,r);this._currentElement=n;this._context=f;e.props=t;e.state=i;e.context=r;this._updateRenderedComponent(u,f);c&&u.getReactMountReady().enqueue(e.componentDidUpdate.bind(e,o,s,h),e)},_updateRenderedComponent:function(n,t){var r=this._renderedComponent,c=r._currentElement,u=this._renderValidatedComponent(),s,e,o,h;d(c,u)?i.receiveComponent(r,u,n,this._processChildContext(t)):(s=i.getHostNode(r),i.unmountComponent(r,!1),e=f.getType(u),this._renderedNodeType=e,o=this._instantiateReactComponent(u,e!==f.EMPTY),this._renderedComponent=o,h=i.mountComponent(o,n,this._hostParent,this._hostContainerInfo,this._processChildContext(t),0),this._replaceNodeWithMarkup(s,h,r))},_replaceNodeWithMarkup:function(n,t,i){b.replaceNodeWithMarkup(n,t,i)},_renderValidatedComponentWithoutOwnerOrContext:function(){return this._instance.render()},_renderValidatedComponent:function(){var n;if(this._compositeType!==u.StatelessFunctional){l.current=this;try{n=this._renderValidatedComponentWithoutOwnerOrContext()}finally{l.current=null}}else n=this._renderValidatedComponentWithoutOwnerOrContext();return null===n||!1===n||c.isValidElement(n)||r("109",this.getName()||"ReactCompositeComponent"),n},attachRef:function(n,t){var i=this.getPublicInstance(),u;null==i&&r("110");u=t.getPublicInstance();(i.refs===s?i.refs={}:i.refs)[n]=u},detachRef:function(n){delete this.getPublicInstance().refs[n]},getName:function(){var t=this._currentElement.type,n=this._instance&&this._instance.constructor;return t.displayName||n&&n.displayName||t.name||n&&n.name||null},getPublicInstance:function(){var n=this._instance;return this._compositeType===u.StatelessFunctional?null:n},_instantiateReactComponent:null};t.exports=y},{113:113,117:117,120:120,121:121,131:131,138:138,142:142,143:143,144:144,28:28,50:50,57:57,58:58,62:62,66:66}],30:[function(n,t){"use strict";var r=n(33),f=n(47),i=n(60),e=n(66),o=n(71),s=n(72),h=n(96),c=n(103),l=n(114),u;n(143);f.inject();u={findDOMNode:h,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:s,unstable_batchedUpdates:o.batchedUpdates,unstable_renderSubtreeIntoContainer:l};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(n){return n._renderedComponent&&(n=c(n)),n?r.getNodeFromInstance(n):null}},Mount:i,Reconciler:e});t.exports=u},{103:103,114:114,143:143,33:33,47:47,60:60,66:66,71:71,72:72,96:96}],31:[function(n,t){"use strict";function lt(n){var t,i;return n&&(t=n._currentElement._owner||null,t&&(i=t.getName(),i))?" This DOM node was rendered by `"+i+"`.":""}function rt(n,t){t&&(oi[n._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&u("137",n._tag,n._currentElement._owner?" Check the render method of "+n._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&u("60"),"object"==typeof t.dangerouslySetInnerHTML&&ui in t.dangerouslySetInnerHTML||u("61")),null!=t.style&&"object"!=typeof t.style&&u("62",lt(n)))}function ut(n,t,i,r){if(!(r instanceof ni)){var u=n._hostContainerInfo,f=u._node&&u._node.nodeType===fi,e=f?u._node:u._ownerDocument;ri(t,e);r.getReactMountReady().enqueue(at,{inst:n,registrationName:t,listener:i})}}function at(){var n=this;d.putListener(n.inst,n.registrationName,n.listener)}function vt(){var n=this;o.postMountWrapper(n)}function yt(){var n=this;s.postMountWrapper(n)}function pt(){var n=this;c.postMountWrapper(n)}function ft(){ot.track(this)}function a(){var n=this,t,i;n._rootNodeID||u("63");t=f(n);switch(t||u("64"),n._tag){case"iframe":case"object":n._wrapperState.listeners=[r.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":n._wrapperState.listeners=[];for(i in it)it.hasOwnProperty(i)&&n._wrapperState.listeners.push(r.trapBubbledEvent(i,it[i],t));break;case"source":n._wrapperState.listeners=[r.trapBubbledEvent("topError","error",t)];break;case"img":n._wrapperState.listeners=[r.trapBubbledEvent("topError","error",t),r.trapBubbledEvent("topLoad","load",t)];break;case"form":n._wrapperState.listeners=[r.trapBubbledEvent("topReset","reset",t),r.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":n._wrapperState.listeners=[r.trapBubbledEvent("topInvalid","invalid",t)]}}function wt(){l.postUpdateWrapper(this)}function bt(n){hi.call(ct,n)||(si.test(n)||u("65",n),ct[n]=!0)}function b(n,t){return n.indexOf("-")>=0||null!=t.is}function h(n){var t=n.type;bt(t);this._currentElement=n;this._tag=t.toLowerCase();this._namespaceURI=null;this._renderedChildren=null;this._previousStyle=null;this._previousStyleCopy=null;this._hostNode=null;this._hostParent=null;this._rootNodeID=0;this._domID=0;this._hostContainerInfo=null;this._wrapperState=null;this._topLevelWrapper=null;this._flags=0}var u=n(113),v=n(144),k=n(2),et=n(5),y=n(9),e=n(10),p=n(11),i=n(12),d=n(16),kt=n(17),r=n(25),dt=n(32),g=n(33),o=n(38),c=n(39),l=n(40),s=n(43),gt=(n(58),n(61)),ni=n(68),ti=(n(130),n(95)),ot=(n(138),n(110),n(142),n(108)),ii=(n(119),n(143),dt),st=d.deleteListener,f=g.getNodeFromInstance,ri=r.listenTo,nt=kt.registrationNameModules,w={string:!0,number:!0},ui="__html",tt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},fi=11,it={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ht={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ei={listing:!0,pre:!0,textarea:!0},oi=v({menuitem:!0},ht),si=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ct={},hi={}.hasOwnProperty,ci=1;h.displayName="ReactDOMComponent";h.Mixin={mountComponent:function(n,t,r,u){var f,h,b,d,v,p,w,nt,tt,it,ut;this._rootNodeID=ci++;this._domID=r._idCounter++;this._hostParent=t;this._hostContainerInfo=r;f=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null};n.getReactMountReady().enqueue(a,this);break;case"input":o.mountWrapper(this,f,t);f=o.getHostProps(this,f);n.getReactMountReady().enqueue(ft,this);n.getReactMountReady().enqueue(a,this);break;case"option":c.mountWrapper(this,f,t);f=c.getHostProps(this,f);break;case"select":l.mountWrapper(this,f,t);f=l.getHostProps(this,f);n.getReactMountReady().enqueue(a,this);break;case"textarea":s.mountWrapper(this,f,t);f=s.getHostProps(this,f);n.getReactMountReady().enqueue(ft,this);n.getReactMountReady().enqueue(a,this)}rt(this,f);null!=t?(h=t._namespaceURI,b=t._tag):r._tag&&(h=r._namespaceURI,b=r._tag);(null==h||h===e.svg&&"foreignobject"===b)&&(h=e.html);h===e.html&&("svg"===this._tag?h=e.svg:"math"===this._tag&&(h=e.mathml));this._namespaceURI=h;n.useCreateElement?(p=r._ownerDocument,h===e.html?"script"===this._tag?(w=p.createElement("div"),nt=this._currentElement.type,w.innerHTML="<"+nt+"><\/"+nt+">",v=w.removeChild(w.firstChild)):v=f.is?p.createElement(this._currentElement.type,f.is):p.createElement(this._currentElement.type):v=p.createElementNS(h,this._currentElement.type),g.precacheNode(this,v),this._flags|=ii.hasCachedChildNodes,this._hostParent||i.setAttributeForRoot(v),this._updateDOMProperties(null,f,n),tt=y(v),this._createInitialChildren(n,f,u,tt),d=tt):(it=this._createOpenTagMarkupAndPutListeners(n,f),ut=this._createContentMarkup(n,f,u),d=!ut&&ht[this._tag]?it+"/>":it+">"+ut+"<\/"+this._currentElement.type+">");switch(this._tag){case"input":n.getReactMountReady().enqueue(vt,this);f.autoFocus&&n.getReactMountReady().enqueue(k.focusDOMComponent,this);break;case"textarea":n.getReactMountReady().enqueue(yt,this);f.autoFocus&&n.getReactMountReady().enqueue(k.focusDOMComponent,this);break;case"select":case"button":f.autoFocus&&n.getReactMountReady().enqueue(k.focusDOMComponent,this);break;case"option":n.getReactMountReady().enqueue(pt,this)}return d},_createOpenTagMarkupAndPutListeners:function(n,t){var e="<"+this._currentElement.type,u,r,f;for(u in t)t.hasOwnProperty(u)&&(r=t[u],null!=r&&(nt.hasOwnProperty(u)?r&&ut(this,u,r,n):("style"===u&&(r&&(r=this._previousStyleCopy=v({},t.style)),r=et.createMarkupForStyles(r,this)),f=null,null!=this._tag&&b(this._tag,t)?tt.hasOwnProperty(u)||(f=i.createMarkupForCustomAttribute(u,r)):f=i.createMarkupForProperty(u,r),f&&(e+=" "+f))));return n.renderToStaticMarkup?e:(this._hostParent||(e+=" "+i.createMarkupForRoot()),e+=" "+i.createMarkupForID(this._domID))},_createContentMarkup:function(n,t,i){var r="",f=t.dangerouslySetInnerHTML,u,e,o;return null!=f?null!=f.__html&&(r=f.__html):(u=w[typeof t.children]?t.children:null,e=null!=u?null:t.children,null!=u?r=ti(u):null!=e&&(o=this.mountChildren(e,n,i),r=o.join(""))),ei[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(n,t,i,r){var e=t.dangerouslySetInnerHTML,u,o,s,f;if(null!=e)null!=e.__html&&y.queueHTML(r,e.__html);else if(u=w[typeof t.children]?t.children:null,o=null!=u?null:t.children,null!=u)""!==u&&y.queueText(r,u);else if(null!=o)for(s=this.mountChildren(o,n,i),f=0;f<s.length;f++)y.queueChild(r,s[f])},receiveComponent:function(n,t,i){var r=this._currentElement;this._currentElement=n;this.updateComponent(t,r,n,i)},updateComponent:function(n,t,i,r){var f=t.props,u=this._currentElement.props;switch(this._tag){case"input":f=o.getHostProps(this,f);u=o.getHostProps(this,u);break;case"option":f=c.getHostProps(this,f);u=c.getHostProps(this,u);break;case"select":f=l.getHostProps(this,f);u=l.getHostProps(this,u);break;case"textarea":f=s.getHostProps(this,f);u=s.getHostProps(this,u)}switch(rt(this,u),this._updateDOMProperties(f,u,n),this._updateDOMChildren(f,u,n,r),this._tag){case"input":o.updateWrapper(this);break;case"textarea":s.updateWrapper(this);break;case"select":n.getReactMountReady().enqueue(wt,this)}},_updateDOMProperties:function(n,t,r){var u,o,s,c,e,h,l;for(u in n)if(!t.hasOwnProperty(u)&&n.hasOwnProperty(u)&&null!=n[u])if("style"===u){c=this._previousStyleCopy;for(o in c)c.hasOwnProperty(o)&&(s=s||{},s[o]="");this._previousStyleCopy=null}else nt.hasOwnProperty(u)?n[u]&&st(this,u):b(this._tag,n)?tt.hasOwnProperty(u)||i.deleteValueForAttribute(f(this),u):(p.properties[u]||p.isCustomAttribute(u))&&i.deleteValueForProperty(f(this),u);for(u in t)if(e=t[u],h="style"===u?this._previousStyleCopy:null!=n?n[u]:void 0,t.hasOwnProperty(u)&&e!==h&&(null!=e||null!=h))if("style"===u)if(e?e=this._previousStyleCopy=v({},e):this._previousStyleCopy=null,h){for(o in h)!h.hasOwnProperty(o)||e&&e.hasOwnProperty(o)||(s=s||{},s[o]="");for(o in e)e.hasOwnProperty(o)&&h[o]!==e[o]&&(s=s||{},s[o]=e[o])}else s=e;else nt.hasOwnProperty(u)?e?ut(this,u,e,r):h&&st(this,u):b(this._tag,t)?tt.hasOwnProperty(u)||i.setValueForAttribute(f(this),u,e):(p.properties[u]||p.isCustomAttribute(u))&&(l=f(this),null!=e?i.setValueForProperty(l,u,e):i.deleteValueForProperty(l,u));s&&et.setValueForStyles(f(this),s,this)},_updateDOMChildren:function(n,t,i,r){var e=w[typeof n.children]?n.children:null,u=w[typeof t.children]?t.children:null,s=n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html,f=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,h=null!=e?null:n.children,o=null!=u?null:t.children,c=null!=e||null!=s,l=null!=u||null!=f;null!=h&&null==o?this.updateChildren(null,i,r):c&&!l&&this.updateTextContent("");null!=u?e!==u&&this.updateTextContent(""+u):null!=f?s!==f&&this.updateMarkup(""+f):null!=o&&this.updateChildren(o,i,r)},getHostNode:function(){return f(this)},unmountComponent:function(n){var t,i;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":if(t=this._wrapperState.listeners,t)for(i=0;i<t.length;i++)t[i].remove();break;case"input":case"textarea":ot.stopTracking(this);break;case"html":case"head":case"body":u("66",this._tag)}this.unmountChildren(n);g.uncacheNode(this);d.deleteAllListeners(this);this._rootNodeID=0;this._domID=0;this._wrapperState=null},getPublicInstance:function(){return f(this)}};v(h.prototype,h.Mixin,gt.Mixin);t.exports=h},{10:10,108:108,11:11,110:110,113:113,119:119,12:12,130:130,138:138,142:142,143:143,144:144,16:16,17:17,2:2,25:25,32:32,33:33,38:38,39:39,40:40,43:43,5:5,58:58,61:61,68:68,9:9,95:95}],32:[function(n,t){"use strict";t.exports={hasCachedChildNodes:1}},{}],33:[function(n,t){"use strict";function h(n,t){return 1===n.nodeType&&n.getAttribute(p)===String(t)||8===n.nodeType&&n.nodeValue===" react-text: "+t+" "||8===n.nodeType&&n.nodeValue===" react-empty: "+t+" "}function f(n){for(var t;t=n._renderedComponent;)n=t;return n}function e(n,t){var r=f(n);r._hostNode=t;t[i]=r}function c(n){var t=n._hostNode;t&&(delete t[i],n._hostNode=null)}function r(n,t){var r,i,c,l,o;if(!(n._flags&s.hasCachedChildNodes)){r=n._renderedChildren;i=t.firstChild;n:for(c in r)if(r.hasOwnProperty(c)&&(l=r[c],o=f(l)._domID,0!==o)){for(;null!==i;i=i.nextSibling)if(h(i,o)){e(l,i);continue n}u("32",o)}n._flags|=s.hasCachedChildNodes}}function o(n){var t,f,u;if(n[i])return n[i];for(t=[];!n[i];){if(t.push(n),!n.parentNode)return null;n=n.parentNode}for(;n&&(u=n[i]);n=t.pop())f=u,t.length&&r(u,n);return f}function l(n){var t=o(n);return null!=t&&t._hostNode===n?t:null}function a(n){if(void 0===n._hostNode&&u("33"),n._hostNode)return n._hostNode;for(var t=[];!n._hostNode;)t.push(n),n._hostParent||u("34"),n=n._hostParent;for(;t.length;n=t.pop())r(n,n._hostNode);return n._hostNode}var u=n(113),v=n(11),y=n(32),p=(n(138),v.ID_ATTRIBUTE_NAME),s=y,i="__reactInternalInstance$"+Math.random().toString(36).slice(2),w={getClosestInstanceFromNode:o,getInstanceFromNode:l,getNodeFromInstance:a,precacheChildNodes:r,precacheNode:e,uncacheNode:c};t.exports=w},{11:11,113:113,138:138,32:32}],34:[function(n,t){"use strict";function i(n,t){return{_topLevelWrapper:n,_idCounter:1,_ownerDocument:t?t.nodeType===r?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null}}var r=(n(119),9);t.exports=i},{119:119}],35:[function(n,t){"use strict";var u=n(144),f=n(9),i=n(33),r=function(){this._currentElement=null;this._hostNode=null;this._hostParent=null;this._hostContainerInfo=null;this._domID=0};u(r.prototype,{mountComponent:function(n,t,r){var s=r._idCounter++,u,o,e;return(this._domID=s,this._hostParent=t,this._hostContainerInfo=r,u=" react-empty: "+this._domID+" ",n.useCreateElement)?(o=r._ownerDocument,e=o.createComment(u),i.precacheNode(this,e),f(e)):n.renderToStaticMarkup?"":"<!--"+u+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}});t.exports=r},{144:144,33:33,9:9}],36:[function(n,t){"use strict";t.exports={useCreateElement:!0,useFiber:!1}},{}],37:[function(n,t){"use strict";var i=n(8),r=n(33),u={dangerouslyProcessChildrenUpdates:function(n,t){var u=r.getNodeFromInstance(n);i.processUpdates(u,t)}};t.exports=u},{33:33,8:8}],38:[function(n,t){"use strict";function u(){this._rootNodeID&&e.updateWrapper(this)}function o(n){return"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}function s(n){var c=this._currentElement.props,y=r.executeOnChange(c,n),l,e,t,a,o,s,v;if(f.asap(u,this),l=c.name,"radio"===c.type&&null!=l){for(e=i.getNodeFromInstance(this),t=e;t.parentNode;)t=t.parentNode;for(a=t.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),o=0;o<a.length;o++)s=a[o],s!==e&&s.form===e.form&&(v=i.getInstanceFromNode(s),v||h("90"),f.asap(u,v))}return y}var h=n(113),c=n(144),l=n(12),r=n(23),i=n(33),f=n(71),e=(n(138),n(143),{getHostProps:function(n,t){var i=r.getValue(t),u=r.getChecked(t);return c({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=i?i:n._wrapperState.initialValue,checked:null!=u?u:n._wrapperState.initialChecked,onChange:n._wrapperState.onChange})},mountWrapper:function(n,t){var i=t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:i,listeners:null,onChange:s.bind(n),controlled:o(t)}},updateWrapper:function(n){var u=n._currentElement.props,o=u.checked,t,f,e;null!=o&&l.setValueForProperty(i.getNodeFromInstance(n),"checked",o||!1);t=i.getNodeFromInstance(n);f=r.getValue(u);null!=f?0===f&&""===t.value?t.value="0":"number"===u.type?(e=parseFloat(t.value,10)||0,(f!=e||f==e&&t.value!=f)&&(t.value=""+f)):t.value!==""+f&&(t.value=""+f):(null==u.value&&null!=u.defaultValue&&t.defaultValue!==""+u.defaultValue&&(t.defaultValue=""+u.defaultValue),null==u.checked&&null!=u.defaultChecked&&(t.defaultChecked=!!u.defaultChecked))},postMountWrapper:function(n){var u=n._currentElement.props,t=i.getNodeFromInstance(n),r;switch(u.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="";t.value=t.defaultValue;break;default:t.value=t.value}r=t.name;""!==r&&(t.name="");t.defaultChecked=!t.defaultChecked;t.defaultChecked=!t.defaultChecked;""!==r&&(t.name=r)}});t.exports=e},{113:113,12:12,138:138,143:143,144:144,23:23,33:33,71:71}],39:[function(n,t){"use strict";function i(n){var t="";return f.Children.forEach(n,function(n){null!=n&&("string"==typeof n||"number"==typeof n?t+=n:r||(r=!0))}),t}var u=n(144),f=n(121),e=n(33),o=n(40),r=(n(143),!1),s={mountWrapper:function(n,t,r){var f=null,u,e,h,s;if(null!=r&&(u=r,"optgroup"===u._tag&&(u=u._hostParent),null!=u&&"select"===u._tag&&(f=o.getSelectValueContext(u))),e=null,null!=f)if(h=null!=t.value?t.value+"":i(t.children),e=!1,Array.isArray(f)){for(s=0;s<f.length;s++)if(""+f[s]===h){e=!0;break}}else e=""+f===h;n._wrapperState={selected:e}},postMountWrapper:function(n){var t=n._currentElement.props;null!=t.value&&e.getNodeFromInstance(n).setAttribute("value",t.value)},getHostProps:function(n,t){var r=u({selected:void 0,children:void 0},t),f;return null!=n._wrapperState.selected&&(r.selected=n._wrapperState.selected),f=i(t.children),f&&(r.children=f),r}};t.exports=s},{121:121,143:143,144:144,33:33,40:40}],40:[function(n,t){"use strict";function f(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var n=this._currentElement.props,t=r.getValue(n);null!=t&&i(this,Boolean(n.multiple),t)}}function i(n,t,i){var f,r,u=s.getNodeFromInstance(n).options,e;if(t){for(f={},r=0;r<i.length;r++)f[""+i[r]]=!0;for(r=0;r<u.length;r++)e=f.hasOwnProperty(u[r].value),u[r].selected!==e&&(u[r].selected=e)}else{for(f=""+i,r=0;r<u.length;r++)if(u[r].value===f)return void(u[r].selected=!0);u.length&&(u[0].selected=!0)}}function e(n){var t=this._currentElement.props,i=r.executeOnChange(t,n);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),h.asap(f,this),i}var o=n(144),r=n(23),s=n(33),h=n(71),u=(n(143),!1),c={getHostProps:function(n,t){return o({},t,{onChange:n._wrapperState.onChange,value:void 0})},mountWrapper:function(n,t){var i=r.getValue(t);n._wrapperState={pendingUpdate:!1,initialValue:null!=i?i:t.defaultValue,listeners:null,onChange:e.bind(n),wasMultiple:Boolean(t.multiple)};void 0===t.value||void 0===t.defaultValue||u||(u=!0)},getSelectValueContext:function(n){return n._wrapperState.initialValue},postUpdateWrapper:function(n){var t=n._currentElement.props,f,u;n._wrapperState.initialValue=void 0;f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=Boolean(t.multiple);u=r.getValue(t);null!=u?(n._wrapperState.pendingUpdate=!1,i(n,Boolean(t.multiple),u)):f!==Boolean(t.multiple)&&(null!=t.defaultValue?i(n,Boolean(t.multiple),t.defaultValue):i(n,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=c},{143:143,144:144,23:23,33:33,71:71}],41:[function(n,t){"use strict";function i(n,t,i,r){return n===i&&t===r}function f(n){var u=document.selection,t=u.createRange(),f=t.text.length,i=t.duplicate(),r;return i.moveToElementText(n),i.setEndPoint("EndToStart",t),r=i.text.length,{start:r,end:r+f}}function e(n){var t=window.getSelection&&window.getSelection(),o;if(!t||0===t.rangeCount)return null;var h=t.anchorNode,c=t.anchorOffset,l=t.focusNode,a=t.focusOffset,u=t.getRangeAt(0);try{u.startContainer.nodeType;u.endContainer.nodeType}catch(n){return null}var v=i(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),y=v?0:u.toString().length,r=u.cloneRange();r.selectNodeContents(n);r.setEnd(u.startContainer,u.startOffset);var p=i(r.startContainer,r.startOffset,r.endContainer,r.endOffset),f=p?0:r.toString().length,s=f+y,e=document.createRange();return e.setStart(h,c),e.setEnd(l,a),o=e.collapsed,{start:o?s:f,end:o?f:s}}function o(n,t){var i,u,r=document.selection.createRange().duplicate();void 0===t.end?(i=t.start,u=i):t.start>t.end?(i=t.end,u=t.start):(i=t.start,u=t.end);r.moveToElementText(n);r.moveStart("character",i);r.setEndPoint("EndToStart",r);r.moveEnd("character",u-i);r.select()}function s(n,t){var l,s,u,o;if(window.getSelection){var f=window.getSelection(),h=n[c()].length,i=Math.min(t.start,h),e=void 0===t.end?i:Math.min(t.end,h);!f.extend&&i>e&&(l=e,e=i,i=l);s=r(n,i);u=r(n,e);s&&u&&(o=document.createRange(),o.setStart(s.node,s.offset),f.removeAllRanges(),i>e?(f.addRange(o),f.extend(u.node,u.offset)):(o.setEnd(u.node,u.offset),f.addRange(o)))}}var h=n(124),r=n(105),c=n(106),u=h.canUseDOM&&"selection"in document&&!("getSelection"in window),l={getOffsets:u?f:e,setOffsets:u?o:s};t.exports=l},{105:105,106:106,124:124}],42:[function(n,t){"use strict";var f=n(113),e=n(144),o=n(8),i=n(9),r=n(33),s=n(95),u=(n(138),n(119),function(n){this._currentElement=n;this._stringText=""+n;this._hostNode=null;this._hostParent=null;this._domID=0;this._mountIndex=0;this._closingComment=null;this._commentNodes=null});e(u.prototype,{mountComponent:function(n,t,u){var h=u._idCounter++,c=" react-text: "+h+" ",o;if(this._domID=h,this._hostParent=t,n.useCreateElement){var f=u._ownerDocument,l=f.createComment(c),a=f.createComment(" /react-text "),e=i(f.createDocumentFragment());return i.queueChild(e,i(l)),this._stringText&&i.queueChild(e,i(f.createTextNode(this._stringText))),i.queueChild(e,i(a)),r.precacheNode(this,l),this._closingComment=a,e}return o=s(this._stringText),n.renderToStaticMarkup?o:"<!--"+c+"-->"+o+"<!-- /react-text -->"},receiveComponent:function(n){var t,i;n!==this._currentElement&&(this._currentElement=n,t=""+n,t!==this._stringText&&(this._stringText=t,i=this.getHostNode(),o.replaceDelimitedText(i[0],i[1],t)))},getHostNode:function(){var t=this._commentNodes,i,n;if(t)return t;if(!this._closingComment)for(i=r.getNodeFromInstance(this),n=i.nextSibling;;){if(null==n&&f("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null;this._commentNodes=null;r.uncacheNode(this)}});t.exports=u},{113:113,119:119,138:138,144:144,33:33,8:8,9:9,95:95}],43:[function(n,t){"use strict";function e(){this._rootNodeID&&f.updateWrapper(this)}function o(n){var t=this._currentElement.props,i=r.executeOnChange(t,n);return h.asap(e,this),i}var i=n(113),s=n(144),r=n(23),u=n(33),h=n(71),f=(n(138),n(143),{getHostProps:function(n,t){return null!=t.dangerouslySetInnerHTML&&i("91"),s({},t,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue,onChange:n._wrapperState.onChange})},mountWrapper:function(n,t){var e=r.getValue(t),s=e,f,u;null==e&&(f=t.defaultValue,u=t.children,null!=u&&(null!=f&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),f=""+u),null==f&&(f=""),s=f);n._wrapperState={initialValue:""+s,listeners:null,onChange:o.bind(n)}},updateWrapper:function(n){var t=n._currentElement.props,i=u.getNodeFromInstance(n),e=r.getValue(t),f;null!=e&&(f=""+e,f!==i.value&&(i.value=f),null==t.defaultValue&&(i.defaultValue=f));null!=t.defaultValue&&(i.defaultValue=t.defaultValue)},postMountWrapper:function(n){var t=u.getNodeFromInstance(n),i=t.textContent;i===n._wrapperState.initialValue&&(t.value=i)}});t.exports=f},{113:113,138:138,143:143,144:144,23:23,33:33,71:71}],44:[function(n,t){"use strict";function r(n,t){var r,f,u,e,o;for(("_hostNode"in n)||i("33"),("_hostNode"in t)||i("33"),r=0,f=n;f;f=f._hostParent)r++;for(u=0,e=t;e;e=e._hostParent)u++;for(;r-u>0;)n=n._hostParent,r--;for(;u-r>0;)t=t._hostParent,u--;for(o=r;o--;){if(n===t)return n;n=n._hostParent;t=t._hostParent}return null}function u(n,t){for(("_hostNode"in n)||i("35"),("_hostNode"in t)||i("35");t;){if(t===n)return!0;t=t._hostParent}return!1}function f(n){return"_hostNode"in n||i("36"),n._hostParent}function e(n,t,i){for(var r,u=[];n;)u.push(n),n=n._hostParent;for(r=u.length;r-->0;)t(u[r],"captured",i);for(r=0;r<u.length;r++)t(u[r],"bubbled",i)}function o(n,t,i,u,f){for(var s,e,h=n&&t?r(n,t):null,o=[];n&&n!==h;)o.push(n),n=n._hostParent;for(s=[];t&&t!==h;)s.push(t),t=t._hostParent;for(e=0;e<o.length;e++)i(o[e],"bubbled",u);for(e=s.length;e-->0;)i(s[e],"captured",f)}var i=n(113);n(138);t.exports={isAncestor:u,getLowestCommonAncestor:r,getParentInstance:f,traverseTwoPhase:e,traverseEnterLeave:o}},{113:113,138:138}],45:[function(n,t){"use strict";var i=n(121),u=n(30),r=u;i.addons&&(i.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r);t.exports=r},{121:121,30:30}],46:[function(n,t){"use strict";function r(){this.reinitializeTransaction()}var o=n(144),u=n(71),s=n(89),f=n(130),h={initialize:f,close:function(){i.isBatchingUpdates=!1}},c={initialize:f,close:u.flushBatchedUpdates.bind(u)},l=[c,h],e,i;o(r.prototype,s,{getTransactionWrappers:function(){return l}});e=new r;i={isBatchingUpdates:!1,batchedUpdates:function(n,t,r,u,f,o){var s=i.isBatchingUpdates;return i.isBatchingUpdates=!0,s?n(t,r,u,f,o):e.perform(n,null,t,r,u,f,o)}};t.exports=i},{130:130,144:144,71:71,89:89}],47:[function(n,t){"use strict";function u(){r||(r=!0,i.EventEmitter.injectReactEventListener(k),i.EventPluginHub.injectEventPluginOrder(s),i.EventPluginUtils.injectComponentTree(v),i.EventPluginUtils.injectTreeTraversal(p),i.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:tt,EnterLeaveEventPlugin:h,ChangeEventPlugin:o,SelectEventPlugin:nt,BeforeInputEventPlugin:e}),i.HostComponent.injectGenericComponentClass(a),i.HostComponent.injectTextComponentClass(w),i.DOMProperty.injectDOMPropertyConfig(f),i.DOMProperty.injectDOMPropertyConfig(c),i.DOMProperty.injectDOMPropertyConfig(g),i.EmptyComponent.injectEmptyComponentFactory(function(n){return new y(n)}),i.Updates.injectReconcileTransaction(d),i.Updates.injectBatchingStrategy(b),i.Component.injectEnvironment(l))}var f=n(1),e=n(3),o=n(7),s=n(14),h=n(15),c=n(21),l=n(27),a=n(31),v=n(33),y=n(35),p=n(44),w=n(42),b=n(46),k=n(52),i=n(55),d=n(65),g=n(73),nt=n(74),tt=n(75),r=!1;t.exports={inject:u}},{1:1,14:14,15:15,21:21,27:27,3:3,31:31,33:33,35:35,42:42,44:44,46:46,52:52,55:55,65:65,7:7,73:73,74:74,75:75}],48:[function(n,t){"use strict";var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=i},{}],49:[function(n,t){"use strict";var i,u={injectEmptyComponentFactory:function(n){i=n}},r={create:function(n){return i(n)}};r.injection=u;t.exports=r},{}],50:[function(n,t){"use strict";function r(n,t,r){try{t(r)}catch(n){null===i&&(i=n)}}var i=null,u={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(i){var n=i;throw i=null,n;}}};t.exports=u},{}],51:[function(n,t){"use strict";function r(n){i.enqueueEvents(n);i.processEventQueue(!1)}var i=n(16),u={handleTopLevel:function(n,t,u,f){r(i.extractEvents(n,t,u,f))}};t.exports=u},{16:16}],52:[function(n,t){"use strict";function s(n){for(;n._hostParent;)n=n._hostParent;var t=f.getNodeFromInstance(n),i=t.parentNode;return f.getClosestInstanceFromNode(i)}function r(n,t){this.topLevelType=n;this.nativeEvent=t;this.ancestors=[]}function h(n){var e=o(n.nativeEvent),u=f.getClosestInstanceFromNode(e),t=u,r;do n.ancestors.push(t),t=t&&s(t);while(t);for(r=0;r<n.ancestors.length;r++)u=n.ancestors[r],i._handleTopLevel(n.topLevelType,u,n.nativeEvent,o(n.nativeEvent))}function c(n){n(y(window))}var l=n(144),u=n(123),a=n(124),e=n(24),f=n(33),v=n(71),o=n(102),y=n(135),i;l(r.prototype,{destructor:function(){this.topLevelType=null;this.nativeEvent=null;this.ancestors.length=0}});e.addPoolingTo(r,e.twoArgumentPooler);i={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:a.canUseDOM?window:null,setHandleTopLevel:function(n){i._handleTopLevel=n},setEnabled:function(n){i._enabled=!!n},isEnabled:function(){return i._enabled},trapBubbledEvent:function(n,t,r){return r?u.listen(r,t,i.dispatchEvent.bind(null,n)):null},trapCapturedEvent:function(n,t,r){return r?u.capture(r,t,i.dispatchEvent.bind(null,n)):null},monitorScrollValue:function(n){var t=c.bind(null,n);u.listen(window,"scroll",t)},dispatchEvent:function(n,t){if(i._enabled){var u=r.getPooled(n,t);try{v.batchedUpdates(h,u)}finally{r.release(u)}}}};t.exports=i},{102:102,123:123,124:124,135:135,144:144,24:24,33:33,71:71}],53:[function(n,t){"use strict";t.exports={logTopLevelRenders:!1}},{}],54:[function(n,t){"use strict";function u(n){return i||o("111",n.type),new i(n)}function f(n){return new r(n)}function e(n){return n instanceof r}var o=n(113),i=(n(138),null),r=null,s={injectGenericComponentClass:function(n){i=n},injectTextComponentClass:function(n){r=n}},h={createInternalComponent:u,createInstanceForText:f,isTextComponent:e,injection:s};t.exports=h},{113:113,138:138}],55:[function(n,t){"use strict";var i=n(11),r=n(16),u=n(18),f=n(28),e=n(49),o=n(25),s=n(54),h=n(71),c={Component:f.injection,DOMProperty:i.injection,EmptyComponent:e.injection,EventPluginHub:r.injection,EventPluginUtils:u.injection,EventEmitter:o.injection,HostComponent:s.injection,Updates:h.injection};t.exports=c},{11:11,16:16,18:18,25:25,28:28,49:49,54:54,71:71}],56:[function(n,t){"use strict";function f(n){return e(document.documentElement,n)}var r=n(41),e=n(127),o=n(132),u=n(133),i={hasSelectionCapabilities:function(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&("input"===t&&"text"===n.type||"textarea"===t||"true"===n.contentEditable)},getSelectionInformation:function(){var n=u();return{focusedElem:n,selectionRange:i.hasSelectionCapabilities(n)?i.getSelection(n):null}},restoreSelection:function(n){var r=u(),t=n.focusedElem,e=n.selectionRange;r!==t&&f(t)&&(i.hasSelectionCapabilities(t)&&i.setSelection(t,e),o(t))},getSelection:function(n){var t,i;return"selectionStart"in n?t={start:n.selectionStart,end:n.selectionEnd}:document.selection&&n.nodeName&&"input"===n.nodeName.toLowerCase()?(i=document.selection.createRange(),i.parentElement()===n&&(t={start:-i.moveStart("character",-n.value.length),end:-i.moveEnd("character",-n.value.length)})):t=r.getOffsets(n),t||{start:0,end:0}},setSelection:function(n,t){var u=t.start,f=t.end,i;(void 0===f&&(f=u),"selectionStart"in n)?(n.selectionStart=u,n.selectionEnd=Math.min(f,n.value.length)):document.selection&&n.nodeName&&"input"===n.nodeName.toLowerCase()?(i=n.createTextRange(),i.collapse(!0),i.moveStart("character",u),i.moveEnd("character",f-u),i.select()):r.setOffsets(n,t)}};t.exports=i},{127:127,132:132,133:133,41:41}],57:[function(n,t){"use strict";var i={remove:function(n){n._reactInternalInstance=void 0},get:function(n){return n._reactInternalInstance},has:function(n){return void 0!==n._reactInternalInstance},set:function(n,t){n._reactInternalInstance=t}};t.exports=i},{}],58:[function(n,t){"use strict";t.exports={debugTool:null}},{}],59:[function(n,t){"use strict";var r=n(92),u=/\/?>/,f=/^<\!\-\-/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(n){var t=r(n);return f.test(n)?n:n.replace(u," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(n,t){var u=t.getAttribute(i.CHECKSUM_ATTR_NAME);return u=u&&parseInt(u,10),r(n)===u}};t.exports=i},{92:92}],60:[function(n,t){"use strict";function d(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i++)if(n.charAt(i)!==t.charAt(i))return i;return n.length===t.length?-1:r}function e(n){return n?n.nodeType===u?n.documentElement:n.firstChild:null}function g(n){return n.getAttribute&&n.getAttribute(vt)||""}function nt(n,t,r,u,f){var o,s,e,h;st.logTopLevelRenders&&(s=n._currentElement.props.child,e=s.type,o="React mount: "+("string"==typeof e?e:e.displayName||e.name),console.time(o));h=k.mountComponent(n,r,null,et(n,t),f,0);o&&console.timeEnd(o);n._renderedComponent._topLevelWrapper=n;i._mountImageIntoNode(h,t,n,u,r)}function tt(n,t,i,r){var u=h.ReactReconcileTransaction.getPooled(!i&&ot.useCreateElement);u.perform(nt,null,n,t,u,i,r);h.ReactReconcileTransaction.release(u)}function it(n,t,i){for(k.unmountComponent(n,i),t.nodeType===u&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function v(n){var i=e(n),t;if(i)return t=o.getInstanceFromNode(i),!(!t||!t._hostParent)}function c(n){return!(!n||n.nodeType!==pt&&n.nodeType!==u&&n.nodeType!==wt)}function rt(n){var i=e(n),t=i&&o.getInstanceFromNode(i);return t&&!t._hostParent?t:null}function y(n){var t=rt(n);return t?t._hostContainerInfo._topLevelWrapper:null}var r=n(113),ut=n(9),p=n(11),w=n(121),ft=n(25),o=(n(120),n(33)),et=n(34),ot=n(36),st=n(53),b=n(57),s=(n(58),n(59)),k=n(66),l=n(70),h=n(71),ht=n(131),ct=n(109),lt=(n(138),n(115)),at=n(117),vt=(n(143),p.ID_ATTRIBUTE_NAME),yt=p.ROOT_ATTRIBUTE_NAME,pt=1,u=9,wt=11,a={},bt=1,f=function(){this.rootID=bt++},i;f.prototype.isReactComponent={};f.prototype.render=function(){return this.props.child};f.isReactTopLevelWrapper=!0;i={TopLevelWrapper:f,_instancesByReactRootID:a,scrollMonitor:function(n,t){t()},_updateRootComponent:function(n,t,r,u,f){return i.scrollMonitor(u,function(){l.enqueueElementInternal(n,t,r);f&&l.enqueueCallbackInternal(n,f)}),n},_renderNewRootComponent:function(n,t,i,u){var f,e;return c(t)||r("37"),ft.ensureScrollValueMonitoring(),f=ct(n,!1),h.batchedUpdates(tt,f,t,i,u),e=f._instance.rootID,a[e]=f,f},renderSubtreeIntoContainer:function(n,t,u,f){return null!=n&&b.has(n)||r("38"),i._renderSubtreeIntoContainer(n,t,u,f)},_renderSubtreeIntoContainer:function(n,t,u,o){var h,c,a,s,k,d,p,nt;if(l.validateCallback(o,"ReactDOM.render"),w.isValidElement(t)||r("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":""),c=w.createElement(f,{child:t}),n?(a=b.get(n),h=a._processChildContext(a._context)):h=ht,s=y(u),s){if(k=s._currentElement,d=k.props.child,at(d,t))return p=s._renderedComponent.getPublicInstance(),nt=o&&function(){o.call(p)},i._updateRootComponent(s,c,h,u,nt),p;i.unmountComponentAtNode(u)}var tt=e(u),rt=tt&&!!g(tt),ut=v(u),ft=rt&&!s&&!ut,it=i._renderNewRootComponent(c,u,ft,h)._renderedComponent.getPublicInstance();return o&&o.call(it),it},render:function(n,t,r){return i._renderSubtreeIntoContainer(null,n,t,r)},unmountComponentAtNode:function(n){c(n)||r("40");var t=y(n);return t?(delete a[t._instance.rootID],h.batchedUpdates(it,t,n,!1),!0):(v(n),1===n.nodeType&&n.hasAttribute(yt),!1)},_mountImageIntoNode:function(n,t,i,f,h){var l,y,v;if(c(t)||r("41"),f){if(l=e(t),s.canReuseMarkup(n,l))return void o.precacheNode(i,l);y=l.getAttribute(s.CHECKSUM_ATTR_NAME);l.removeAttribute(s.CHECKSUM_ATTR_NAME);v=l.outerHTML;l.setAttribute(s.CHECKSUM_ATTR_NAME,y);var p=n,a=d(p,v),w=" (client) "+p.substring(a-20,a+20)+"\n (server) "+v.substring(a-20,a+20);t.nodeType===u&&r("42",w)}if(t.nodeType===u&&r("43"),h.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);ut.insertTreeBefore(t,n,null)}else lt(t,n),o.precacheNode(i,t.firstChild)}};t.exports=i},{109:109,11:11,113:113,115:115,117:117,120:120,121:121,131:131,138:138,143:143,25:25,33:33,34:34,36:36,53:53,57:57,58:58,59:59,66:66,70:70,71:71,9:9}],61:[function(n,t){"use strict";function o(n,t,i){return{type:"INSERT_MARKUP",content:n,fromIndex:null,fromNode:null,toIndex:i,afterNode:t}}function s(n,t,i){return{type:"MOVE_EXISTING",content:null,fromIndex:n._mountIndex,fromNode:f.getHostNode(n),toIndex:i,afterNode:t}}function h(n,t){return{type:"REMOVE_NODE",content:null,fromIndex:n._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function c(n){return{type:"SET_MARKUP",content:n,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(n){return{type:"TEXT_CONTENT",content:n,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function r(n,t){return t&&(n=n||[],n.push(t)),n}function u(n,t){a.processChildrenUpdates(n,t)}var e=n(113),a=n(28),f=(n(57),n(58),n(120),n(66)),i=n(26),v=(n(130),n(97)),y=(n(138),{Mixin:{_reconcilerInstantiateChildren:function(n,t,r){return i.instantiateChildren(n,t,r)},_reconcilerUpdateChildren:function(n,t,r,u,f,e){var o;return o=v(t,0),i.updateChildren(n,o,r,u,f,this,this._hostContainerInfo,e,0),o},mountChildren:function(n,t,i){var r=this._reconcilerInstantiateChildren(n,t,i),u,s,e,o,h;this._renderedChildren=r;u=[];s=0;for(e in r)r.hasOwnProperty(e)&&(o=r[e],h=f.mountComponent(o,t,this,this._hostContainerInfo,i,0),o._mountIndex=s++,u.push(h));return u},updateTextContent:function(n){var t=this._renderedChildren,r;i.unmountChildren(t,!1);for(r in t)t.hasOwnProperty(r)&&e("118");u(this,[l(n)])},updateMarkup:function(n){var t=this._renderedChildren,r;i.unmountChildren(t,!1);for(r in t)t.hasOwnProperty(r)&&e("118");u(this,[c(n)])},updateChildren:function(n,t,i){this._updateChildren(n,t,i)},_updateChildren:function(n,t,i){var h=this._renderedChildren,a={},w=[],c=this._reconcilerUpdateChildren(h,n,w,a,t,i),s,y;if(c||h){var e,o=null,v=0,l=0,b=0,p=null;for(e in c)c.hasOwnProperty(e)&&(s=h&&h[e],y=c[e],s===y?(o=r(o,this.moveChild(s,p,v,l)),l=Math.max(s._mountIndex,l),s._mountIndex=v):(s&&(l=Math.max(s._mountIndex,l)),o=r(o,this._mountChildAtIndex(y,w[b],p,v,t,i)),b++),v++,p=f.getHostNode(y));for(e in a)a.hasOwnProperty(e)&&(o=r(o,this._unmountChild(h[e],a[e])));o&&u(this,o);this._renderedChildren=c}},unmountChildren:function(n){var t=this._renderedChildren;i.unmountChildren(t,n);this._renderedChildren=null},moveChild:function(n,t,i,r){if(n._mountIndex<r)return s(n,t,i)},createChild:function(n,t,i){return o(i,t,n._mountIndex)},removeChild:function(n,t){return h(n,t)},_mountChildAtIndex:function(n,t,i,r){return n._mountIndex=r,this.createChild(n,i,t)},_unmountChild:function(n,t){var i=this.removeChild(n,t);return n._mountIndex=null,i}}});t.exports=y},{113:113,120:120,130:130,138:138,26:26,28:28,57:57,58:58,66:66,97:97}],62:[function(n,t){"use strict";var r=n(113),u=n(121),i=(n(138),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(n){return null===n||!1===n?i.EMPTY:u.isValidElement(n)?"function"==typeof n.type?i.COMPOSITE:i.HOST:void r("26",n)}});t.exports=i},{113:113,121:121,138:138}],63:[function(n,t){"use strict";function i(n){return!(!n||"function"!=typeof n.attachRef||"function"!=typeof n.detachRef)}var r=n(113),u=(n(138),{addComponentAsRefTo:function(n,t,u){i(u)||r("119");u.attachRef(t,n)},removeComponentAsRefFrom:function(n,t,u){i(u)||r("120");var f=u.getPublicInstance();f&&f.refs[t]===n.getPublicInstance()&&u.detachRef(t)}});t.exports=u},{113:113,138:138}],64:[function(n,t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],65:[function(n,t){"use strict";function i(n){this.reinitializeTransaction();this.renderToStaticMarkup=!1;this.reactMountReady=u.getPooled(null);this.useCreateElement=n}var e=n(144),u=n(6),o=n(24),r=n(25),f=n(56),s=(n(58),n(89)),h=n(70),c={initialize:f.getSelectionInformation,close:f.restoreSelection},l={initialize:function(){var n=r.isEnabled();return r.setEnabled(!1),n},close:function(n){r.setEnabled(n)}},a={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},v=[c,l,a],y={getTransactionWrappers:function(){return v},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return h},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(n){this.reactMountReady.rollback(n)},destructor:function(){u.release(this.reactMountReady);this.reactMountReady=null}};e(i.prototype,s,y);o.addPoolingTo(i);t.exports=i},{144:144,24:24,25:25,56:56,58:58,6:6,70:70,89:89}],66:[function(n,t){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=n(67),u=(n(58),n(143),{mountComponent:function(n,t,i,u,f,e){var o=n.mountComponent(t,i,u,f,e);return n._currentElement&&null!=n._currentElement.ref&&t.getReactMountReady().enqueue(r,n),o},getHostNode:function(n){return n.getHostNode()},unmountComponent:function(n,t){i.detachRefs(n,n._currentElement);n.unmountComponent(t)},receiveComponent:function(n,t,u,f){var e=n._currentElement,o;(t!==e||f!==n._context)&&(o=i.shouldUpdateRefs(e,t),o&&i.detachRefs(n,e),n.receiveComponent(t,u,f),o&&n._currentElement&&null!=n._currentElement.ref&&u.getReactMountReady().enqueue(r,n))},performUpdateIfNecessary:function(n,t,i){n._updateBatchNumber===i&&n.performUpdateIfNecessary(t)}});t.exports=u},{143:143,58:58,67:67}],67:[function(n,t){"use strict";function u(n,t,i){"function"==typeof n?n(t.getPublicInstance()):r.addComponentAsRefTo(t,n,i)}function f(n,t,i){"function"==typeof n?n(null):r.removeComponentAsRefFrom(t,n,i)}var r=n(63),i={};i.attachRefs=function(n,t){if(null!==t&&"object"==typeof t){var i=t.ref;null!=i&&u(i,n,t._owner)}};i.shouldUpdateRefs=function(n,t){var u=null,f=null,i,r;return null!==n&&"object"==typeof n&&(u=n.ref,f=n._owner),i=null,r=null,null!==t&&"object"==typeof t&&(i=t.ref,r=t._owner),u!==i||"string"==typeof i&&r!==f};i.detachRefs=function(n,t){if(null!==t&&"object"==typeof t){var i=t.ref;null!=i&&f(i,n,t._owner)}};t.exports=i},{63:63}],68:[function(n,t){"use strict";function i(n){this.reinitializeTransaction();this.renderToStaticMarkup=n;this.useCreateElement=!1;this.updateQueue=new e(this)}var r=n(144),u=n(24),f=n(89),e=(n(58),n(69)),o=[],s={enqueue:function(){}},h={getTransactionWrappers:function(){return o},getReactMountReady:function(){return s},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};r(i.prototype,f,h);u.addPoolingTo(i);t.exports=i},{144:144,24:24,58:58,69:69,89:89}],69:[function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var i=n(70),u=(n(143),function(){function n(t){r(this,n);this.transaction=t}return n.prototype.isMounted=function(){return!1},n.prototype.enqueueCallback=function(n,t,r){this.transaction.isInTransaction()&&i.enqueueCallback(n,t,r)},n.prototype.enqueueForceUpdate=function(n){this.transaction.isInTransaction()&&i.enqueueForceUpdate(n)},n.prototype.enqueueReplaceState=function(n,t){this.transaction.isInTransaction()&&i.enqueueReplaceState(n,t)},n.prototype.enqueueSetState=function(n,t){this.transaction.isInTransaction()&&i.enqueueSetState(n,t)},n}());t.exports=u},{143:143,70:70}],70:[function(n,t){"use strict";function i(n){s.enqueueUpdate(n)}function e(n){var i=typeof n,r,t;return"object"!==i?i:(r=n.constructor&&n.constructor.name||i,t=Object.keys(n),t.length>0&&t.length<20?r+" (keys: "+t.join(", ")+")":r)}function r(n){var t=f.get(n);return t||null}var o=n(113),f=(n(120),n(57)),s=(n(58),n(71)),u=(n(138),n(143),{isMounted:function(n){var t=f.get(n);return!!t&&!!t._renderedComponent},enqueueCallback:function(n,t,f){u.validateCallback(t,f);var e=r(n);if(!e)return null;e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t];i(e)},enqueueCallbackInternal:function(n,t){n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t];i(n)},enqueueForceUpdate:function(n){var t=r(n,"forceUpdate");t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(n,t,f){var e=r(n,"replaceState");e&&(e._pendingStateQueue=[t],e._pendingReplaceState=!0,void 0!==f&&null!==f&&(u.validateCallback(f,"replaceState"),e._pendingCallbacks?e._pendingCallbacks.push(f):e._pendingCallbacks=[f]),i(e))},enqueueSetState:function(n,t){var u=r(n,"setState");u&&((u._pendingStateQueue||(u._pendingStateQueue=[])).push(t),i(u))},enqueueElementInternal:function(n,t,r){n._pendingElement=t;n._context=r;i(n)},validateCallback:function(n,t){n&&"function"!=typeof n&&o("122",t,e(n))}});t.exports=u},{113:113,120:120,138:138,143:143,57:57,58:58,71:71}],71:[function(n,t){"use strict";function l(){e.ReactReconcileTransaction&&u||r("123")}function o(){this.reinitializeTransaction();this.dirtyComponentsLength=null;this.callbackQueue=f.getPooled();this.reconcileTransaction=e.ReactReconcileTransaction.getPooled(!0)}function p(n,t,i,r,f,e){return l(),u.batchedUpdates(n,t,i,r,f,e)}function w(n,t){return n._mountOrder-t._mountOrder}function b(n){var s=n.dirtyComponentsLength,u,t,f,e,c,o;for(s!==i.length&&r("124",s,i.length),i.sort(w),h++,u=0;u<s;u++)if(t=i[u],f=t._pendingCallbacks,t._pendingCallbacks=null,nt.logTopLevelRenders&&(c=t,t._currentElement.type.isReactTopLevelWrapper&&(c=t._renderedComponent),e="React update: "+c.getName(),console.time(e)),tt.performUpdateIfNecessary(t,n.reconcileTransaction,h),e&&console.timeEnd(e),f)for(o=0;o<f.length;o++)n.callbackQueue.enqueue(f[o],t.getPublicInstance())}function a(n){if(l(),!u.isBatchingUpdates)return void u.batchedUpdates(a,n);i.push(n);null==n._updateBatchNumber&&(n._updateBatchNumber=h+1)}function k(n,t){u.isBatchingUpdates||r("125");c.enqueue(n,t);s=!0}var r=n(113),d=n(144),f=n(6),g=n(24),nt=n(53),tt=n(66),v=n(89),i=(n(138),[]),h=0,c=f.getPooled(),s=!1,u=null,it={initialize:function(){this.dirtyComponentsLength=i.length},close:function(){this.dirtyComponentsLength!==i.length?(i.splice(0,this.dirtyComponentsLength),y()):i.length=0}},rt={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},ut=[it,rt];d(o.prototype,v,{getTransactionWrappers:function(){return ut},destructor:function(){this.dirtyComponentsLength=null;f.release(this.callbackQueue);this.callbackQueue=null;e.ReactReconcileTransaction.release(this.reconcileTransaction);this.reconcileTransaction=null},perform:function(n,t,i){return v.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,n,t,i)}});g.addPoolingTo(o);var y=function(){for(var n,t;i.length||s;)i.length&&(n=o.getPooled(),n.perform(b,null,n),o.release(n)),s&&(s=!1,t=c,c=f.getPooled(),t.notifyAll(),f.release(t))},ft={injectReconcileTransaction:function(n){n||r("126");e.ReactReconcileTransaction=n},injectBatchingStrategy:function(n){n||r("127");"function"!=typeof n.batchedUpdates&&r("128");"boolean"!=typeof n.isBatchingUpdates&&r("129");u=n}},e={ReactReconcileTransaction:null,batchedUpdates:p,enqueueUpdate:a,flushBatchedUpdates:y,injection:ft,asap:k};t.exports=e},{113:113,138:138,144:144,24:24,53:53,6:6,66:66,89:89}],72:[function(n,t){"use strict";t.exports="15.6.1"},{}],73:[function(n,t){"use strict";var i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering","in":0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},u={Properties:{},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(n){u.Properties[n]=0;r[n]&&(u.DOMAttributeNames[n]=r[n])});t.exports=u},{}],74:[function(n,t){"use strict";function h(n){var t,i;return"selectionStart"in n&&v.hasSelectionCapabilities(n)?{start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(t=window.getSelection(),{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}):document.selection?(i=document.selection.createRange(),{parentElement:i.parentElement(),text:i.text,top:i.boundingTop,left:i.boundingLeft}):void 0}function e(n,t){var s,e;return f||null==i||i!==p()?null:(s=h(i),!r||!b(r,s))?(r=s,e=y.getPooled(o.select,u,n,t),e.type="select",e.target=i,c.accumulateTwoPhaseDispatches(e),e):null}var c=n(19),l=n(124),a=n(33),v=n(56),y=n(80),p=n(133),w=n(111),b=n(142),k=l.canUseDOM&&"documentMode"in document&&document.documentMode<=11,o={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},i=null,u=null,r=null,f=!1,s=!1,d={eventTypes:o,extractEvents:function(n,t,o,h){if(!s)return null;var c=t?a.getNodeFromInstance(t):window;switch(n){case"topFocus":(w(c)||"true"===c.contentEditable)&&(i=c,u=t,r=null);break;case"topBlur":i=null;u=null;r=null;break;case"topMouseDown":f=!0;break;case"topContextMenu":case"topMouseUp":return f=!1,e(o,h);case"topSelectionChange":if(k)break;case"topKeyDown":case"topKeyUp":return e(o,h)}return null},didPutListener:function(n,t){"onSelect"===t&&(s=!0)}};t.exports=d},{111:111,124:124,133:133,142:142,19:19,33:33,56:56,80:80}],75:[function(n,t){"use strict";function r(n){return"."+n._rootNodeID}function u(n){return"button"===n||"input"===n||"select"===n||"textarea"===n}var s=n(113),h=n(123),c=n(19),l=n(33),a=n(76),v=n(77),y=n(80),p=n(81),w=n(83),b=n(84),k=n(79),d=n(85),g=n(86),nt=n(87),tt=n(88),it=n(130),rt=n(99),f=(n(138),{}),e={},i,o;["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(n){var t=n[0].toUpperCase()+n.slice(1),i="on"+t,r="top"+t,u={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r]};f[n]=u;e[r]=u});i={};o={eventTypes:f,extractEvents:function(n,t,i,r){var o=e[n],u,f;if(!o)return null;switch(n){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":u=y;break;case"topKeyPress":if(0===rt(i))return null;case"topKeyDown":case"topKeyUp":u=w;break;case"topBlur":case"topFocus":u=p;break;case"topClick":if(2===i.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":u=b;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":u=k;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":u=d;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":u=a;break;case"topTransitionEnd":u=g;break;case"topScroll":u=nt;break;case"topWheel":u=tt;break;case"topCopy":case"topCut":case"topPaste":u=v}return u||s("86",n),f=u.getPooled(o,t,i,r),c.accumulateTwoPhaseDispatches(f),f},didPutListener:function(n,t){if("onClick"===t&&!u(n._tag)){var f=r(n),e=l.getNodeFromInstance(n);i[f]||(i[f]=h.listen(e,"click",it))}},willDeleteListener:function(n,t){if("onClick"===t&&!u(n._tag)){var f=r(n);i[f].remove();delete i[f]}}};t.exports=o},{113:113,123:123,130:130,138:138,19:19,33:33,76:76,77:77,79:79,80:80,81:81,83:83,84:84,85:85,86:86,87:87,88:88,99:99}],76:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80);r.augmentClass(i,{animationName:null,elapsedTime:null,pseudoElement:null});t.exports=i},{80:80}],77:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80),u={clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}};r.augmentClass(i,u);t.exports=i},{80:80}],78:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80);r.augmentClass(i,{data:null});t.exports=i},{80:80}],79:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(84);r.augmentClass(i,{dataTransfer:null});t.exports=i},{84:84}],80:[function(n,t){"use strict";function r(n,t,r,u){var e,f,o,s;this.dispatchConfig=n;this._targetInst=t;this.nativeEvent=r;e=this.constructor.Interface;for(f in e)e.hasOwnProperty(f)&&(o=e[f],o?this[f]=o(r):"target"===f?this.target=u:this[f]=r[f]);return s=null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue,this.isDefaultPrevented=s?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}var f=n(144),u=n(24),i=n(130),e=(n(143),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),o={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};f(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():"unknown"!=typeof n.returnValue&&(n.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():"unknown"!=typeof n.cancelBubble&&(n.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var i=this.constructor.Interface,t,n;for(t in i)this[t]=null;for(n=0;n<e.length;n++)this[e[n]]=null}});r.Interface=o;r.augmentClass=function(n,t){var i=this,e=function(){},r;e.prototype=i.prototype;r=new e;f(r,n.prototype);n.prototype=r;n.prototype.constructor=n;n.Interface=f({},i.Interface,t);n.augmentClass=i.augmentClass;u.addPoolingTo(n,u.fourArgumentPooler)};u.addPoolingTo(r,u.fourArgumentPooler);t.exports=r},{130:130,143:143,144:144,24:24}],81:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(87);r.augmentClass(i,{relatedTarget:null});t.exports=i},{87:87}],82:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80);r.augmentClass(i,{data:null});t.exports=i},{80:80}],83:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(87),u=n(99),f=n(100),e=n(101),o={key:f,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:e,charCode:function(n){return"keypress"===n.type?u(n):0},keyCode:function(n){return"keydown"===n.type||"keyup"===n.type?n.keyCode:0},which:function(n){return"keypress"===n.type?u(n):"keydown"===n.type||"keyup"===n.type?n.keyCode:0}};r.augmentClass(i,o);t.exports=i},{100:100,101:101,87:87,99:99}],84:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(87),u=n(90),f=n(101),e={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:f,button:function(n){var t=n.button;return"which"in n?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(n){return n.relatedTarget||(n.fromElement===n.srcElement?n.toElement:n.fromElement)},pageX:function(n){return"pageX"in n?n.pageX:n.clientX+u.currentScrollLeft},pageY:function(n){return"pageY"in n?n.pageY:n.clientY+u.currentScrollTop}};r.augmentClass(i,e);t.exports=i},{101:101,87:87,90:90}],85:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(87),u=n(101),f={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:u};r.augmentClass(i,f);t.exports=i},{101:101,87:87}],86:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80);r.augmentClass(i,{propertyName:null,elapsedTime:null,pseudoElement:null});t.exports=i},{80:80}],87:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(80),u=n(102),f={view:function(n){var t,i;return n.view?n.view:(t=u(n),t.window===t)?t:(i=t.ownerDocument,i?i.defaultView||i.parentWindow:window)},detail:function(n){return n.detail||0}};r.augmentClass(i,f);t.exports=i},{102:102,80:80}],88:[function(n,t){"use strict";function i(n,t,i,u){return r.call(this,n,t,i,u)}var r=n(84),u={deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(i,u);t.exports=i},{84:84}],89:[function(n,t){"use strict";var r=n(113),i=(n(138),{}),u={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers();this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[];this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(n,t,i,u,f,e,o,s){this.isInTransaction()&&r("27");var h,c;try{this._isInTransaction=!0;h=!0;this.initializeAll(0);c=n.call(t,i,u,f,e,o,s);h=!1}finally{try{if(h)try{this.closeAll(0)}catch(n){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(n){for(var u,r=this.transactionWrappers,t=n;t<r.length;t++){u=r[t];try{this.wrapperInitData[t]=i;this.wrapperInitData[t]=u.initialize?u.initialize.call(this):null}finally{if(this.wrapperInitData[t]===i)try{this.initializeAll(t+1)}catch(n){}}}},closeAll:function(n){var u,t,f,e,o;for(this.isInTransaction()||r("28"),u=this.transactionWrappers,t=n;t<u.length;t++){e=u[t];o=this.wrapperInitData[t];try{f=!0;o!==i&&e.close&&e.close.call(this,o);f=!1}finally{if(f)try{this.closeAll(t+1)}catch(n){}}}this.wrapperInitData.length=0}};t.exports=u},{113:113,138:138}],90:[function(n,t){"use strict";var i={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(n){i.currentScrollLeft=n.x;i.currentScrollTop=n.y}};t.exports=i},{}],91:[function(n,t){"use strict";function i(n,t){return null==t&&r("30"),null==n?t:Array.isArray(n)?Array.isArray(t)?(n.push.apply(n,t),n):(n.push(t),n):Array.isArray(t)?[n].concat(t):[n,t]}var r=n(113);n(138);t.exports=i},{113:113,138:138}],92:[function(n,t){"use strict";function r(n){for(var o,r=1,u=0,t=0,f=n.length,e=-4&f;t<e;){for(o=Math.min(t+4096,e);t<o;t+=4)u+=(r+=n.charCodeAt(t))+(r+=n.charCodeAt(t+1))+(r+=n.charCodeAt(t+2))+(r+=n.charCodeAt(t+3));r%=i;u%=i}for(;t<f;t++)u+=r+=n.charCodeAt(t);return r%=i,u%=i,r|u<<16}var i=65521;t.exports=r},{}],93:[function(n,t){"use strict";var i=function(n){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,i,r,u){MSApp.execUnsafeLocalFunction(function(){return n(t,i,r,u)})}:n};t.exports=i},{}],94:[function(n,t){"use strict";function r(n,t,r,u){if(null==t||"boolean"==typeof t||""===t)return"";var f=isNaN(t);return u||f||0===t||i.hasOwnProperty(n)&&i[n]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var u=n(4),i=(n(143),u.isUnitlessNumber);t.exports=r},{143:143,4:4}],95:[function(n,t){"use strict";function i(n){var i=""+n,o=u.exec(i);if(!o)return i;for(var r,e="",t=0,f=0,t=o.index;t<i.length;t++){switch(i.charCodeAt(t)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}f!==t&&(e+=i.substring(f,t));f=t+1;e+=r}return f!==t?e+i.substring(f,t):e}function r(n){return"boolean"==typeof n||"number"==typeof n?""+n:i(n)}var u=/["'&<>]/;t.exports=r},{}],96:[function(n,t){"use strict";function r(n){if(null==n)return null;if(1===n.nodeType)return n;var t=f.get(n);if(t)return t=e(t),t?u.getNodeFromInstance(t):null;"function"==typeof n.render?i("44"):i("45",Object.keys(n))}var i=n(113),u=(n(120),n(33)),f=n(57),e=n(103);n(138);n(143);t.exports=r},{103:103,113:113,120:120,138:138,143:143,33:33,57:57}],97:[function(n,t){(function(i){"use strict";function r(n,t,i){if(n&&"object"==typeof n){var r=n;void 0===r[i]&&null!=t&&(r[i]=t)}}function u(n){if(null==n)return n;var t={};return f(n,r,t),t}var f=(n(22),n(118));n(143);void 0!==i&&i.env;t.exports=u}).call(this,void 0)},{118:118,143:143,22:22}],98:[function(n,t){"use strict";function i(n,t,i){Array.isArray(n)?n.forEach(t,i):n&&t.call(i,n)}t.exports=i},{}],99:[function(n,t){"use strict";function i(n){var t,i=n.keyCode;return"charCode"in n?0===(t=n.charCode)&&13===i&&(t=13):t=i,t>=32||13===t?t:0}t.exports=i},{}],100:[function(n,t){"use strict";function i(n){var t,i;return n.key&&(t=u[n.key]||n.key,"Unidentified"!==t)?t:"keypress"===n.type?(i=r(n),13===i?"Enter":String.fromCharCode(i)):"keydown"===n.type||"keyup"===n.type?f[n.keyCode]||"Unidentified":""}var r=n(99),u={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=i},{99:99}],101:[function(n,t){"use strict";function i(n){var r=this,t=r.nativeEvent,i;return t.getModifierState?t.getModifierState(n):(i=u[n],!!i&&!!t[i])}function r(){return i}var u={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},{}],102:[function(n,t){"use strict";function i(n){var t=n.target||n.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=i},{}],103:[function(n,t){"use strict";function r(n){for(var t;(t=n._renderedNodeType)===i.COMPOSITE;)n=n._renderedComponent;return t===i.HOST?n._renderedComponent:t===i.EMPTY?null:void 0}var i=n(62);t.exports=r},{62:62}],104:[function(n,t){"use strict";function r(n){var t=n&&(i&&n[i]||n[u]);if("function"==typeof t)return t}var i="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";t.exports=r},{}],105:[function(n,t){"use strict";function i(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function r(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function u(n,t){for(var u=i(n),f=0,e=0;u;){if(3===u.nodeType){if(e=f+u.textContent.length,f<=t&&e>=t)return{node:u,offset:t-f};f=e}u=i(r(u))}}t.exports=u},{}],106:[function(n,t){"use strict";function r(){return!i&&u.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var u=n(124),i=null;t.exports=r},{124:124}],107:[function(n,t){"use strict";function r(n,t){var i={};return i[n.toLowerCase()]=t.toLowerCase(),i["Webkit"+n]="webkit"+t,i["Moz"+n]="moz"+t,i["ms"+n]="MS"+t,i["O"+n]="o"+t.toLowerCase(),i}function e(n){var t,r;if(u[n])return u[n];if(!i[n])return n;t=i[n];for(r in t)if(t.hasOwnProperty(r)&&r in f)return u[n]=t[r];return""}var o=n(124),i={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},u={},f={};o.canUseDOM&&(f=document.createElement("div").style,"AnimationEvent"in window||(delete i.animationend.animation,delete i.animationiteration.animation,delete i.animationstart.animation),"TransitionEvent"in window||delete i.transitionend.transition);t.exports=e},{124:124}],108:[function(n,t){"use strict";function u(n){var t=n.type,i=n.nodeName;return i&&"input"===i.toLowerCase()&&("checkbox"===t||"radio"===t)}function i(n){return n._wrapperState.valueTracker}function e(n,t){n._wrapperState.valueTracker=t}function o(n){delete n._wrapperState.valueTracker}function s(n){var t;return n&&(t=u(n)?""+n.checked:n.value),t}var r=n(33),f={_getTrackerFromNode:function(n){return i(r.getInstanceFromNode(n))},track:function(n){if(!i(n)){var t=r.getNodeFromInstance(n),f=u(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,f),h=""+t[f];t.hasOwnProperty(f)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,f,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(n){h=""+n;s.set.call(this,n)}}),e(n,{getValue:function(){return h},setValue:function(n){h=""+n},stopTracking:function(){o(n);delete t[f]}}))}},updateValueIfChanged:function(n){var t,e,u;return n?(t=i(n),!t)?(f.track(n),!0):(e=t.getValue(),u=s(r.getNodeFromInstance(n)),u!==e&&(t.setValue(u),!0)):!1},stopTracking:function(n){var t=i(n);t&&t.stopTracking()}};t.exports=f},{33:33}],109:[function(n,t){"use strict";function e(n){if(n){var t=n.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(n){return"function"==typeof n&&void 0!==n.prototype&&"function"==typeof n.prototype.mountComponent&&"function"==typeof n.prototype.receiveComponent}function i(n){var t,s,h,l;return null===n||!1===n?t=c.create(i):"object"==typeof n?(s=n,h=s.type,"function"!=typeof h&&"string"!=typeof h&&(l="",l+=e(s._owner),r("130",null==h?h:typeof h,l)),"string"==typeof s.type?t=u.createInternalComponent(s):o(s.type)?(t=new s.type(s),t.getHostNode||(t.getHostNode=t.getNativeNode)):t=new f(s)):"string"==typeof n||"number"==typeof n?t=u.createInstanceForText(n):r("131",typeof n),t._mountIndex=0,t._mountImage=null,t}var r=n(113),s=n(144),h=n(29),c=n(49),u=n(54),f=(n(122),n(138),n(143),function(n){this.construct(n)});s(f.prototype,h,{_instantiateReactComponent:i});t.exports=i},{113:113,122:122,138:138,143:143,144:144,29:29,49:49,54:54}],110:[function(n,t){"use strict";function u(n,t){var f,u,e;return!r.canUseDOM||t&&!("addEventListener"in document)?!1:(f="on"+n,u=f in document,u||(e=document.createElement("div"),e.setAttribute(f,"return;"),u="function"==typeof e[f]),!u&&i&&"wheel"===n&&(u=document.implementation.hasFeature("Events.wheel","3.0")),u)}var i,r=n(124);r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));t.exports=u},{124:124}],111:[function(n,t){"use strict";function i(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return"input"===t?!!r[n.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=i},{}],112:[function(n,t){"use strict";function i(n){return'"'+r(n)+'"'}var r=n(95);t.exports=i},{95:95}],113:[function(n,t){"use strict";function i(n){for(var t,u=arguments.length-1,i="Minified React error #"+n+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+n,r=0;r<u;r++)i+="&args[]="+encodeURIComponent(arguments[r+1]);i+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";t=new Error(i);throw t.name="Invariant Violation",t.framesToPop=1,t;}t.exports=i},{}],114:[function(n,t){"use strict";var i=n(60);t.exports=i.renderSubtreeIntoContainer},{60:60}],115:[function(n,t){"use strict";var i,f=n(124),e=n(10),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,h=n(93),u=h(function(n,t){if(n.namespaceURI!==e.svg||"innerHTML"in n)n.innerHTML=t;else{i=i||document.createElement("div");i.innerHTML="<svg>"+t+"<\/svg>";for(var r=i.firstChild;r.firstChild;)n.appendChild(r.firstChild)}}),r;f.canUseDOM&&(r=document.createElement("div"),r.innerHTML=" ",""===r.innerHTML&&(u=function(n,t){if(n.parentNode&&n.parentNode.replaceChild(n,n),o.test(t)||"<"===t[0]&&s.test(t)){n.innerHTML=String.fromCharCode(65279)+t;var i=n.firstChild;1===i.data.length?n.removeChild(i):i.deleteData(0,1)}else n.innerHTML=t}),r=null);t.exports=u},{10:10,124:124,93:93}],116:[function(n,t){"use strict";var r=n(124),u=n(95),f=n(115),i=function(n,t){if(t){var i=n.firstChild;if(i&&i===n.lastChild&&3===i.nodeType)return void(i.nodeValue=t)}n.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(n,t){if(3===n.nodeType)return void(n.nodeValue=t);f(n,u(t))}));t.exports=i},{115:115,124:124,95:95}],117:[function(n,t){"use strict";function i(n,t){var u=null===n||!1===n,f=null===t||!1===t,r,i;return u||f?u===f:(r=typeof n,i=typeof t,"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&n.type===t.type&&n.key===t.key)}t.exports=i},{}],118:[function(n,t){"use strict";function i(n,t){return n&&"object"==typeof n&&null!=n.key?u.escape(n.key):t.toString(36)}function r(n,t,o,l){var v=typeof n,a,y,p,b,w,k,d,nt,it,g,tt;if("undefined"!==v&&"boolean"!==v||(n=null),null===n||"string"===v||"number"===v||"object"===v&&n.$$typeof===h)return o(l,n,""===t?f+i(n,0):t),1;if(p=0,b=""===t?f:t+e,Array.isArray(n))for(w=0;w<n.length;w++)a=n[w],y=b+i(a,w),p+=r(a,y,o,l);else if(k=c(n),k)if(nt=k.call(n),k!==n.entries)for(it=0;!(d=nt.next()).done;)a=d.value,y=b+i(a,it++),p+=r(a,y,o,l);else for(;!(d=nt.next()).done;)g=d.value,g&&(a=g[1],y=b+u.escape(g[0])+e+i(a,0),p+=r(a,y,o,l));else"object"===v&&(tt=String(n),s("31","[object Object]"===tt?"object with keys {"+Object.keys(n).join(", ")+"}":tt,""));return p}function o(n,t,i){return null==n?0:r(n,"",t,i)}var s=n(113),h=(n(120),n(48)),c=n(104),u=(n(138),n(22)),f=(n(143),"."),e=":";t.exports=o},{104:104,113:113,120:120,138:138,143:143,22:22,48:48}],119:[function(n,t){"use strict";var i=(n(144),n(130)),r=(n(143),i);t.exports=r},{130:130,143:143,144:144}],120:[function(t,i){"use strict";var r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;i.exports=r.ReactCurrentOwner},{}],121:[function(t,i){"use strict";i.exports=n},{}],122:[function(t,i){"use strict";var r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;i.exports=r.getNextDebugID},{}],123:[function(n,t){"use strict";var i=n(130),r={listen:function(n,t,i){return n.addEventListener?(n.addEventListener(t,i,!1),{remove:function(){n.removeEventListener(t,i,!1)}}):n.attachEvent?(n.attachEvent("on"+t,i),{remove:function(){n.detachEvent("on"+t,i)}}):void 0},capture:function(n,t,r){return n.addEventListener?(n.addEventListener(t,r,!0),{remove:function(){n.removeEventListener(t,r,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},{130:130}],124:[function(n,t){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},{}],125:[function(n,t){"use strict";function i(n){return n.replace(r,function(n,t){return t.toUpperCase()})}var r=/-(.)/g;t.exports=i},{}],126:[function(n,t){"use strict";function i(n){return r(n.replace(u,"ms-"))}var r=n(125),u=/^-ms-/;t.exports=i},{125:125}],127:[function(n,t){"use strict";function i(n,t){return!(!n||!t)&&(n===t||!r(n)&&(r(t)?i(n,t.parentNode):"contains"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}var r=n(140);t.exports=i},{140:140}],128:[function(n,t){"use strict";function r(n){var t=n.length,u,r;if((Array.isArray(n)||"object"!=typeof n&&"function"!=typeof n)&&i(!1),"number"!=typeof t&&i(!1),0===t||t-1 in n||i(!1),"function"==typeof n.callee&&i(!1),n.hasOwnProperty)try{return Array.prototype.slice.call(n)}catch(n){}for(u=Array(t),r=0;r<t;r++)u[r]=n[r];return u}function u(n){return!!n&&("object"==typeof n||"function"==typeof n)&&"length"in n&&!("setInterval"in n)&&"number"!=typeof n.nodeType&&(Array.isArray(n)||"callee"in n||"item"in n)}function f(n){return u(n)?Array.isArray(n)?n.slice():r(n):[n]}var i=n(138);t.exports=f},{138:138}],129:[function(n,t){"use strict";function u(n){var t=n.match(h);return t&&t[1].toLowerCase()}function f(n,t){var f=r,h,e,l,c,a;if(r||i(!1),h=u(n),e=h&&s(h),e)for(f.innerHTML=e[1]+n+e[2],l=e[0];l--;)f=f.lastChild;else f.innerHTML=n;for(c=f.getElementsByTagName("script"),c.length&&(t||i(!1),o(c).forEach(t)),a=Array.from(f.childNodes);f.lastChild;)f.removeChild(f.lastChild);return a}var e=n(124),o=n(128),s=n(134),i=n(138),r=e.canUseDOM?document.createElement("div"):null,h=/^\s*<(\w+)/;t.exports=f},{124:124,128:128,134:134,138:138}],130:[function(n,t){"use strict";function r(n){return function(){return n}}var i=function(){};i.thatReturns=r;i.thatReturnsFalse=r(!1);i.thatReturnsTrue=r(!0);i.thatReturnsNull=r(null);i.thatReturnsThis=function(){return this};i.thatReturnsArgument=function(n){return n};t.exports=i},{}],131:[function(n,t){"use strict";t.exports={}},{}],132:[function(n,t){"use strict";function i(n){try{n.focus()}catch(n){}}t.exports=i},{}],133:[function(n,t){"use strict";function i(n){if(void 0===(n=n||("undefined"!=typeof document?document:void 0)))return null;try{return n.activeElement||n.body}catch(t){return n.body}}t.exports=i},{}],134:[function(n,t){"use strict";function s(n){return u||c(!1),f.hasOwnProperty(n)||(n="*"),r.hasOwnProperty(n)||(u.innerHTML="*"===n?"<link />":"<"+n+"><\/"+n+">",r[n]=!u.firstChild),r[n]?f[n]:null}var h=n(124),c=n(138),u=h.canUseDOM?document.createElement("div"):null,r={},e=[1,'<select multiple="true">',"<\/select>"],i=[1,"<table>","<\/table>"],o=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],l=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"<\/svg>"],f={"*":[1,"?<div>","<\/div>"],area:[1,"<map>","<\/map>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],legend:[1,"<fieldset>","<\/fieldset>"],param:[1,"<object>","<\/object>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],optgroup:e,option:e,caption:i,colgroup:i,tbody:i,tfoot:i,thead:i,td:o,th:o};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(n){f[n]=l;r[n]=!0});t.exports=s},{124:124,138:138}],135:[function(n,t){"use strict";function i(n){return n.Window&&n instanceof n.Window?{x:n.pageXOffset||n.document.documentElement.scrollLeft,y:n.pageYOffset||n.document.documentElement.scrollTop}:{x:n.scrollLeft,y:n.scrollTop}}t.exports=i},{}],136:[function(n,t){"use strict";function i(n){return n.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=i},{}],137:[function(n,t){"use strict";function i(n){return r(n).replace(u,"-ms-")}var r=n(136),u=/^ms-/;t.exports=i},{136:136}],138:[function(n,t){"use strict";function i(n,t,i,u,f,e,o,s){var h,c,l;if(r(t),!n){void 0===t?h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[i,u,f,e,o,s],l=0,h=new Error(t.replace(/%s/g,function(){return c[l++]})),h.name="Invariant Violation");throw h.framesToPop=1,h;}}var r=function(){};t.exports=i},{}],139:[function(n,t){"use strict";function i(n){var i=n?n.ownerDocument||n:document,t=i.defaultView||window;return!(!n||!("function"==typeof t.Node?n instanceof t.Node:"object"==typeof n&&"number"==typeof n.nodeType&&"string"==typeof n.nodeName))}t.exports=i},{}],140:[function(n,t){"use strict";function i(n){return r(n)&&3==n.nodeType}var r=n(139);t.exports=i},{139:139}],141:[function(n,t){"use strict";function i(n){var t={};return function(i){return t.hasOwnProperty(i)||(t[i]=n.call(this,i)),t[i]}}t.exports=i},{}],142:[function(n,t){"use strict";function i(n,t){return n===t?0!==n||0!==t||1/n==1/t:n!==n&&t!==t}function r(n,t){var r,e,f;if(i(n,t))return!0;if("object"!=typeof n||null===n||"object"!=typeof t||null===t||(r=Object.keys(n),e=Object.keys(t),r.length!==e.length))return!1;for(f=0;f<r.length;f++)if(!u.call(t,r[f])||!i(n[r[f]],t[r[f]]))return!1;return!0}var u=Object.prototype.hasOwnProperty;t.exports=r},{}],143:[function(n,t){"use strict";var i=n(130),r=i;t.exports=r},{130:130}],144:[function(n,t){"use strict";function r(n){if(null===n||void 0===n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;t.exports=function(){var i,t,n,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de","5"===Object.getOwnPropertyNames(i)[0]))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(i){return!1}}()?Object.assign:function(n){for(var t,o,c,e,s=r(n),h=1;h<arguments.length;h++){t=Object(arguments[h]);for(c in t)u.call(t,c)&&(s[c]=t[c]);if(i)for(o=i(t),e=0;e<o.length;e++)f.call(t,o[e])&&(s[o[e]]=t[o[e]])}return s}},{}],145:[function(n,t){"use strict";function i(){}t.exports=i},{138:138,143:143,148:148}],146:[function(n,t){"use strict";var i=n(147);t.exports=function(n){return i(n,!1)}},{147:147}],147:[function(n,t){"use strict";var r=n(130),u=n(138),f=n(143),i=n(148),e=n(145);t.exports=function(n,t){function w(n){var t=n&&(p&&n[p]||n[et]);if("function"==typeof t)return t}function b(n,t){return n===t?0!==n||1/n==1/t:n!==n&&t!==t}function o(n){this.message=n;this.stack=""}function s(n){function r(r,f,e,s,h,c,l){return(s=s||v,c=c||e,l!==i)&&t&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"),null==f[e]?r?new o(null===f[e]?"The "+h+" `"+c+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+h+" `"+c+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:n(f,e,s,h,c)}var f=r.bind(null,!1);return f.isRequired=r.bind(null,!0),f}function h(n){function t(t,i,r,u,f){var e=t[i];return c(e)!==n?new o("Invalid "+u+" `"+f+"` of type `"+y(e)+"` supplied to `"+r+"`, expected `"+n+"`."):null}return s(t)}function k(n){function t(t,r,u,f,e){var s,h,l;if("function"!=typeof n)return new o("Property `"+e+"` of component `"+u+"` has invalid PropType notation inside arrayOf.");if(s=t[r],!Array.isArray(s))return new o("Invalid "+f+" `"+e+"` of type `"+c(s)+"` supplied to `"+u+"`, expected an array.");for(h=0;h<s.length;h++)if(l=n(s,h,u,f,e+"["+h+"]",i),l instanceof Error)return l;return null}return s(t)}function d(n){function t(t,i,r,u,f){if(!(t[i]instanceof n)){var e=n.name||v;return new o("Invalid "+u+" `"+f+"` of type `"+ft(t[i])+"` supplied to `"+r+"`, expected instance of `"+e+"`.")}return null}return s(t)}function g(n){function t(t,i,r,u,f){for(var s=t[i],e=0;e<n.length;e++)if(b(s,n[e]))return null;return new o("Invalid "+u+" `"+f+"` of value `"+s+"` supplied to `"+r+"`, expected one of "+JSON.stringify(n)+".")}return Array.isArray(n)?s(t):r.thatReturnsNull}function nt(n){function t(t,r,u,f,e){var s,l,h,a;if("function"!=typeof n)return new o("Property `"+e+"` of component `"+u+"` has invalid PropType notation inside objectOf.");if(s=t[r],l=c(s),"object"!==l)return new o("Invalid "+f+" `"+e+"` of type `"+l+"` supplied to `"+u+"`, expected an object.");for(h in s)if(s.hasOwnProperty(h)&&(a=n(s,h,u,f,e+"."+h,i),a instanceof Error))return a;return null}return s(t)}function tt(n){function e(t,r,u,f,e){for(var s=0;s<n.length;s++)if(null==n[s](t,r,u,f,e,i))return null;return new o("Invalid "+f+" `"+e+"` supplied to `"+u+"`.")}var t,u;if(!Array.isArray(n))return r.thatReturnsNull;for(t=0;t<n.length;t++)if(u=n[t],"function"!=typeof u)return f(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",ut(u),t),r.thatReturnsNull;return s(e)}function it(n){function t(t,r,u,f,e){var a=t[r],v=c(a),s,h,l;if("object"!==v)return new o("Invalid "+f+" `"+e+"` of type `"+v+"` supplied to `"+u+"`, expected `object`.");for(s in n)if(h=n[s],h&&(l=h(a,s,u,f,e+"."+s,i),l))return l;return null}return s(t)}function l(t){var i,r,u,f;switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||n(t))return!0;if(i=w(t),!i)return!1;if(u=i.call(t),i!==t.entries){for(;!(r=u.next()).done;)if(!l(r.value))return!1}else for(;!(r=u.next()).done;)if(f=r.value,f&&!l(f[1]))return!1;return!0;default:return!1}}function rt(n,t){return"symbol"===n||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function c(n){var t=typeof n;return Array.isArray(n)?"array":n instanceof RegExp?"object":rt(t,n)?"symbol":t}function y(n){if(void 0===n||null===n)return""+n;var t=c(n);if("object"===t){if(n instanceof Date)return"date";if(n instanceof RegExp)return"regexp"}return t}function ut(n){var t=y(n);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function ft(n){return n.constructor&&n.constructor.name?n.constructor.name:v}var p="function"==typeof Symbol&&Symbol.iterator,et="@@iterator",v="<<anonymous>>",a={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return s(r.thatReturnsNull)}(),arrayOf:k,element:function(){function t(t,i,r,u,f){var e=t[i];return n(e)?null:new o("Invalid "+u+" `"+f+"` of type `"+c(e)+"` supplied to `"+r+"`, expected a single ReactElement.")}return s(t)}(),instanceOf:d,node:function(){function n(n,t,i,r,u){return l(n[t])?null:new o("Invalid "+r+" `"+u+"` supplied to `"+i+"`, expected a ReactNode.")}return s(n)}(),objectOf:nt,oneOf:g,oneOfType:tt,shape:it};return o.prototype=Error.prototype,a.checkPropTypes=e,a.PropTypes=a,a}},{130:130,138:138,143:143,145:145,148:148}],148:[function(n,t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[45])(45)}()}()});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):n.ReactBootstrapTypeahead=t(n.React,n.ReactDOM)}("undefined"!=typeof self?self:this,function(n,t){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.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=83)}([function(t){t.exports=n},function(n,t,i){n.exports=i(90)()},function(n){var t=Array.isArray;n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});t.warn=t.stripDiacritics=t.scrollIntoViewIfNeeded=t.preventInputBlur=t.pluralize=t.getTruncatedOptions=t.getStringLabelKey=t.getOptionLabel=t.getMenuItemId=t.getMatchBounds=t.getInputText=t.getHintText=t.getDisplayName=t.getAccessibilityStatus=t.defaultFilterBy=t.addCustomOption=void 0;var u=i(94),f=r(u),e=i(98),o=r(e),s=i(178),h=r(s),c=i(179),l=r(c),a=i(180),v=r(a),y=i(184),p=r(y),w=i(61),b=r(w),k=i(185),d=r(k),g=i(34),nt=r(g),tt=i(63),it=r(tt),rt=i(186),ut=r(rt),ft=i(187),et=r(ft),ot=i(188),st=r(ot),ht=i(189),ct=r(ht),lt=i(33),at=r(lt),vt=i(8),yt=r(vt);t.addCustomOption=f.default;t.defaultFilterBy=o.default;t.getAccessibilityStatus=h.default;t.getDisplayName=l.default;t.getHintText=v.default;t.getInputText=p.default;t.getMatchBounds=b.default;t.getMenuItemId=d.default;t.getOptionLabel=nt.default;t.getStringLabelKey=it.default;t.getTruncatedOptions=ut.default;t.pluralize=et.default;t.preventInputBlur=st.default;t.scrollIntoViewIfNeeded=ct.default;t.stripDiacritics=at.default;t.warn=yt.default},function(n,t,i){var r=i(43),u="object"==typeof self&&self&&self.Object===Object&&self,f=r||u||Function("return this")();n.exports=f},function(n,t){var i,r;!function(){"use strict";function u(){for(var n,r,e,t=[],i=0;i<arguments.length;i++)if(n=arguments[i],n)if(r=typeof n,"string"===r||"number"===r)t.push(n);else if(Array.isArray(n))t.push(u.apply(null,n));else if("object"===r)for(e in n)f.call(n,e)&&n[e]&&t.push(e);return t.join(" ")}var f={}.hasOwnProperty;void 0!==n&&n.exports?n.exports=u:(i=[],void 0!==(r=function(){return u}.apply(t,i))&&(n.exports=r))}()},function(n){function t(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}n.exports=t},function(n){function t(n){return null!=n&&"object"==typeof n}n.exports=t},function(n,t,i){"use strict";function u(n,t){if(!n&&-1!==t.indexOf("deprecated")){if(r[t])return;r[t]=!0}t="[react-bootstrap-typeahead] "+t;for(var u=arguments.length,f=Array(u>2?u-2:0),i=2;i<u;i++)f[i-2]=arguments[i];o.default.apply(void 0,[n,t].concat(f))}function f(){r={}}Object.defineProperty(t,"__esModule",{value:!0});t.default=u;t._resetWarned=f;var e=i(177),o=function(n){return n&&n.__esModule?n:{"default":n}}(e),r={}},function(n,t,i){function f(n){return null==n?void 0===n?h:s:u&&u in Object(n)?e(n):o(n)}var r=i(13),e=i(88),o=i(89),s="[object Null]",h="[object Undefined]",u=r?r.toStringTag:void 0;n.exports=f},function(n,t,i){function r(n,t){var i=f(n,t);if(u(i))return i}var u=i(110),f=i(113);n.exports=r},function(n){n.exports=t},function(n){"use strict";n.exports={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40}},function(n,t,i){var r=i(4),u=r.Symbol;n.exports=u},function(n,t,i){function r(n){if("string"==typeof n||u(n))return n;var t=n+"";return"0"==t&&1/n==-f?"-0":t}var u=i(15),f=1/0;n.exports=r},function(n,t,i){function r(n){return"symbol"==typeof n||f(n)&&u(n)==e}var u=i(9),f=i(7),e="[object Symbol]";n.exports=r},function(n,t,i){function r(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(100),f=i(101),e=i(102),o=i(103),s=i(104);r.prototype.clear=u;r.prototype.delete=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n,t,i){function r(n,t){for(var i=n.length;i--;)if(u(n[i][0],t))return i;return-1}var u=i(18);n.exports=r},function(n){function t(n,t){return n===t||n!==n&&t!==t}n.exports=t},function(n,t,i){var r=i(10),u=r(Object,"create");n.exports=u},function(n,t,i){function r(n,t){var i=n.__data__;return u(t)?i["string"==typeof t?"string":"hash"]:i.map}var u=i(122);n.exports=r},function(n){function t(n,t){var u=typeof n;return!!(t=null==t?i:t)&&("number"==u||"symbol"!=u&&r.test(n))&&n>-1&&n%1==0&&n<t}var i=9007199254740991,r=/^(?:0|[1-9]\d*)$/;n.exports=t},function(n,t,i){function r(n,t){return u(n)?n:f(n,t)?[n]:e(o(n))}var u=i(2),f=i(32),e=i(162),o=i(45);n.exports=r},function(n,t,i){function r(n,t,i,e,o){return n===t||(null==n||null==t||!u(n)&&!u(t)?n!==n&&t!==t:f(n,t,i,e,r,o))}var f=i(99),u=i(7);n.exports=r},function(n,t,i){var r=i(10),u=i(4),f=r(u,"Map");n.exports=f},function(n,t,i){function r(n){if(!f(n))return!1;var t=u(n);return t==o||t==s||t==e||t==h}var u=i(9),f=i(6),e="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",h="[object Proxy]";n.exports=r},function(n,t,i){function r(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(114),f=i(121),e=i(123),o=i(124),s=i(125);r.prototype.clear=u;r.prototype.delete=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n,t,i){function r(n){return e(n)?u(n):f(n)}var u=i(140),f=i(147),e=i(30);n.exports=r},function(n,t,i){var r=i(142),f=i(7),u=Object.prototype,e=u.hasOwnProperty,o=u.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(n){return f(n)&&e.call(n,"callee")&&!o.call(n,"callee")};n.exports=s},function(n){function t(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=i}var i=9007199254740991;n.exports=t},function(n,t,i){function r(n){return null!=n&&f(n.length)&&!u(n)}var u=i(25),f=i(29);n.exports=r},function(n,t,i){function r(n,t){t=u(t,n);for(var i=0,r=t.length;null!=n&&i<r;)n=n[f(t[i++])];if(i&&i==r)return n}var u=i(22),f=i(14);n.exports=r},function(n,t,i){function r(n,t){if(u(n))return!1;var i=typeof n;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=n&&!f(n))||o.test(n)||!e.test(n)||null!=t&&n in Object(t)}var u=i(2),f=i(15),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;n.exports=r},function(n,t){"use strict";function o(n){return n.replace(/[\u0300-\u036F]/g,"").replace(/[^\u0000-\u007E]/g,function(n){return e[n]||n})}var f,r;Object.defineProperty(t,"__esModule",{value:!0});t.default=o;for(var u=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],e={},i=0;i<u.length;i++)for(f=u[i].letters,r=0;r<f.length;r++)e[f[r]]=u[i].base},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n,t){if(n.paginationOption||n.customOption)return n[c.default(t)];var i=void 0;return"string"==typeof n&&(i=n),"function"==typeof t?i=t(n):"string"==typeof t&&s.default(n)&&(i=n[t]),"string"!=typeof i&&e.default(!1),i}Object.defineProperty(t,"__esModule",{value:!0});var f=i(182),e=r(f),o=i(62),s=r(o),h=i(63),c=r(h);t.default=u},function(n){function t(n){if(n&&n.length)return n[0]}n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i,r,u){var e=n[t],s=void 0===e?"undefined":f(e);return o.default.isValidElement(e)?new Error("Invalid "+r+" `"+u+"` of type ReactElement supplied to `"+i+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===s&&"function"==typeof e.render||1===e.nodeType?null:new Error("Invalid "+r+" `"+u+"` of value `"+e+"` supplied to `"+i+"`, expected a ReactComponent or a DOMElement.")}Object.defineProperty(t,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=i(0),o=r(e),s=i(207),h=r(s);t.default=h.default(u);n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});t.BaseMenuItem=void 0;var l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=i(5),o=r(v),y=i(38),p=r(y),w=i(0),u=r(w),b=i(79),k=r(b),f=function(n){function t(){var r,u,n,f;h(this,t);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return u=n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),n._handleClick=function(t){var i=n.props,r=i.disabled,u=i.onClick;t.preventDefault();r||u(t)},f=u,e(n,f)}return c(t,n),a(t,[{key:"render",value:function(){var n=this.props,i=n.active,r=n.children,f=n.className,e=n.disabled,h=(n.onClick,n.onMouseDown),c=s(n,["active","children","className","disabled","onClick","onMouseDown"]),t={active:i,disabled:e};return u.default.createElement("li",l({},c,{className:o.default(t,f)}),u.default.createElement("a",{className:o.default("dropdown-item",t),href:"#",onClick:this._handleClick,onMouseDown:h},r))}}]),t}(u.default.Component);f.defaultProps={onClick:p.default};t.BaseMenuItem=f;t.default=k.default(f)},function(n){function t(){}n.exports=t},function(n,t,i){function r(n,t){this.__wrapped__=n;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=void 0}var u=i(80),f=i(40);r.prototype=u(f.prototype);r.prototype.constructor=r;n.exports=r},function(n){function t(){}n.exports=t},function(n,t,i){function r(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=e;this.__views__=[]}var u=i(80),f=i(40),e=4294967295;r.prototype=u(f.prototype);r.prototype.constructor=r;n.exports=r},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=i(85),v=u(a),y=i(1),r=u(y),p=i(0),e=u(p),w=i(3),b=function(n){var t=function(t){function i(){var r,u,n,e;s(this,i);for(var o=arguments.length,h=Array(o),t=0;t<o;t++)h[t]=arguments[t];return u=n=f(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(h))),n.state={query:""},n._getEmptyLabel=function(){var t=n.props,u=t.emptyLabel,f=t.isLoading,e=t.multiple,o=t.promptText,s=t.searchText,h=t.useCache,i=n.state,c=i.hasSelection,r=i.query;return!r.length||!e&&c?o:f||h&&!n._cache[r]?s:u},n._handleInputChange=function(t){n.props.onInputChange&&n.props.onInputChange(t);n._handleSearchDebounced(t)},n._handleSearch=function(t){var i=n.props,r=i.minLength,u=i.onSearch,f=i.useCache;n.setState({query:t});!t||r&&t.length<r||f&&n._cache[t]||u(t)},e=u,f(n,e)}return h(i,t),l(i,[{key:"componentWillMount",value:function(){this._cache={};this._handleSearchDebounced=v.default(this._handleSearch,this.props.delay)}},{key:"componentWillReceiveProps",value:function(n){var t=n.options,i=n.useCache;this.props.isLoading&&i&&(this._cache[this.state.query]=t)}},{key:"componentWillUnmount",value:function(){this._cache={};this._handleSearchDebounced.cancel()}},{key:"render",value:function(){var f=this,t=this.props,s=t.allowNew,h=t.options,l=t.useCache,i=o(t,["allowNew","options","useCache"]),r=this._cache[this.state.query],u=this._getEmptyLabel(),a=s&&u===i.emptyLabel;return e.default.createElement(n,c({},i,{allowNew:a,emptyLabel:u,onInputChange:this._handleInputChange,options:l&&r?r:h,ref:function(n){return f._instance=n}}))}},{key:"getInstance",value:function(){return this._instance.getInstance()}}]),i}(e.default.Component);return t.displayName="AsyncContainer("+w.getDisplayName(n)+")",t.propTypes={delay:r.default.number,isLoading:r.default.bool.isRequired,onSearch:r.default.func.isRequired,options:r.default.array,promptText:r.default.node,searchText:r.default.node,useCache:r.default.bool},t.defaultProps={delay:200,minLength:2,options:[],promptText:"Type to search...",searchText:"Searching...",useCache:!0},t};t.default=b},function(n,t,i){(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;n.exports=i}).call(t,i(44))},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t,i){function r(n){return null==n?"":u(n)}var u=i(96);n.exports=r},function(n,t,i){function r(n,t){return u(n,t)}var u=i(23);n.exports=r},function(n,t,i){function r(n){var t=this.__data__=new u(n);this.size=t.size}var u=i(16),f=i(105),e=i(106),o=i(107),s=i(108),h=i(109);r.prototype.clear=f;r.prototype.delete=e;r.prototype.get=o;r.prototype.has=s;r.prototype.set=h;n.exports=r},function(n){function t(n){if(null!=n){try{return r.call(n)}catch(n){}try{return n+""}catch(n){}}return""}var i=Function.prototype,r=i.toString;n.exports=t},function(n,t,i){function r(n,t,i,r,h,c){var d=i&o,p=n.length,g=t.length,w,l,v,k;if(p!=g&&!(d&&g>p))return!1;if(w=c.get(n),w&&c.get(t))return w==t;var a=-1,y=!0,b=i&s?new u:void 0;for(c.set(n,t),c.set(t,n);++a<p;){if(l=n[a],v=t[a],r&&(k=d?r(v,l,a,t,n,c):r(l,v,a,n,t,c)),void 0!==k){if(k)continue;y=!1;break}if(b){if(!f(t,function(n,t){if(!e(b,t)&&(l===n||h(l,n,i,r,c)))return b.push(t)})){y=!1;break}}else if(l!==v&&!h(l,v,i,r,c)){y=!1;break}}return c.delete(n),c.delete(t),y}var u=i(126),f=i(50),e=i(129),o=1,s=2;n.exports=r},function(n){function t(n,t){for(var i=-1,r=null==n?0:n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}n.exports=t},function(n){function t(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}n.exports=t},function(n,t,i){(function(n){var e=i(4),o=i(143),r="object"==typeof t&&t&&!t.nodeType&&t,u=r&&"object"==typeof n&&n&&!n.nodeType&&n,s=u&&u.exports===r,f=s?e.Buffer:void 0,h=f?f.isBuffer:void 0,c=h||o;n.exports=c}).call(t,i(53)(n))},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(n,t,i){var f=i(144),e=i(145),r=i(146),u=r&&r.isTypedArray,o=u?e(u):f;n.exports=o},function(n){function t(n,t){return function(i){return n(t(i))}}n.exports=t},function(n,t,i){var r=i(10),u=i(4),f=r(u,"WeakMap");n.exports=f},function(n,t,i){function r(n){return n===n&&!u(n)}var u=i(6);n.exports=r},function(n){function t(n,t){return function(i){return null!=i&&i[n]===t&&(void 0!==t||n in Object(i))}}n.exports=t},function(n,t,i){function r(n,t){return null!=n&&f(n,t,u)}var u=i(165),f=i(166);n.exports=r},function(n){function t(n){return n}n.exports=t},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){var u,i,e,o,h;if(t=new RegExp(s.default(f.default(t)),c),u=t.exec(f.default(n)),!u)return null;if(i=u.index,e=u[0].length,r.test(n)){for(o=0;o<=i;o++)r.test(n[o])&&i++;for(h=i;h<=i+e;h++)r.test(n[h])&&e++}return{end:i+e,start:i}}Object.defineProperty(t,"__esModule",{value:!0});t.default=e;var o=i(181),s=u(o),h=i(33),f=u(h),c="i",r=/[\u0300-\u036F]/},function(n,t,i){function u(n){var i,t;return!o(n)||f(n)!=s?!1:(i=e(n),null===i)?!0:(t=l.call(i,"constructor")&&i.constructor,"function"==typeof t&&t instanceof t&&r.call(t)==a)}var f=i(9),e=i(183),o=i(7),s="[object Object]",h=Function.prototype,c=Object.prototype,r=h.toString,l=c.hasOwnProperty,a=r.call(Object);n.exports=u},function(n,t,i){"use strict";function r(n){return"string"==typeof n?n:u.DEFAULT_LABELKEY}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(64)},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DEFAULT_LABELKEY="label"},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var f=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=i(5),h=r(y),p=i(190),e=r(p),w=i(1),b=r(w),k=i(0),u=r(k),d=i(68),g=r(d),nt=i(205),tt=r(nt),it=i(206),rt=r(it),ut=i(217),ft=r(ut),et=i(219),ot=r(et),st=i(76),ht=r(st),ct=i(221),lt=r(ct),c=i(3),o=function(n){function t(){var r,f,n,e;l(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return f=n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(a))),n._renderInput=function(n){var t=n.multiple?ft.default:ot.default;return u.default.createElement(t,n)},n._renderAux=function(){var t=n.props,i=t.bsSize,f=t.clearButton,e=t.disabled,o=t.isLoading,s=t.onClear,l=t.selected,r=void 0;return o?r=u.default.createElement(tt.default,{bsSize:i}):f&&!e&&l.length&&(r=u.default.createElement(g.default,{bsSize:i,onClick:s,onFocus:function(n){n.stopPropagation()},onMouseDown:c.preventInputBlur})),r?u.default.createElement("div",{className:h.default("rbt-aux",{"rbt-aux-lg":"large"===i||"lg"===i})},r):null},e=f,s(n,e)}return a(t,n),v(t,[{key:"componentWillReceiveProps",value:function(n){var t=n.allowNew,i=n.onInitialItemChange,r=n.results;t||r.length||i(null)}},{key:"render",value:function(){var i=this,n=this.props,r=n.bodyContainer,o=n.className,s=n.isMenuShown,l=n.menuId,a=n.renderMenu,v=n.results,y=e.default(this.props,["activeIndex","activeItem","bsSize","disabled","initialItem","inputProps","inputRef","isMenuShown","labelKey","menuId","multiple","onAdd","onBlur","onChange","onFocus","onKeyDown","onRemove","placeholder","renderToken","selected","selectHintOnEnter","text"]),p=e.default(this.props,["align","className","dropup","flip","onMenuHide","onMenuShow"]),w=e.default(this.props,["emptyLabel","labelKey","maxHeight","newSelectionPrefix","renderMenuItemChildren","text"]),t=this._renderAux();return u.default.createElement("div",{className:h.default("rbt","clearfix","open",{"has-aux":!!t},o),ref:function(n){return i._target=n},style:{position:"relative"},tabIndex:-1},this._renderInput(y),t,u.default.createElement(rt.default,f({},p,{container:r?document.body:this,show:s,target:this._target}),a(v,f({},w,{id:l}))),u.default.createElement("div",{"aria-atomic":!0,"aria-live":"polite",className:"sr-only rbt-sr-status",role:"status"},c.getAccessibilityStatus(this.props)))}}]),t}(u.default.Component);o.propTypes={renderMenu:b.default.func};o.defaultProps={renderMenu:function(n,t){return u.default.createElement(ht.default,f({},t,{options:n}))}};t.default=lt.default(o)},function(n,t,i){var r=i(10),u=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=u},function(n,t,i){function r(n){return e(f(n,void 0,u),n+"")}var u=i(196),f=i(199),e=i(201);n.exports=r},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},h=i(5),c=r(h),l=i(0),u=r(l),a=i(1),f=r(a),e=function(n){var t=n.bsSize,r=n.className,i=n.label,f=n.onClick,e=o(n,["bsSize","className","label","onClick"]);return u.default.createElement("button",s({},e,{"aria-label":i,className:c.default("close","rbt-close",{"rbt-close-lg":"large"===t||"lg"===t},r),onClick:function(n){n.stopPropagation();f(n)},type:"button"}),u.default.createElement("span",{"aria-hidden":"true"},"×"),u.default.createElement("span",{className:"sr-only"},i))};e.propTypes={bsSize:f.default.oneOf(["large","lg","small","sm"]),label:f.default.string,onClick:f.default.func.isRequired};e.defaultProps={label:"Clear"};t.default=e},function(n,t,i){"use strict";function r(n,t){return n="function"==typeof n?n():n,f.default.findDOMNode(n)||t}t.__esModule=!0;t.default=r;var u=i(11),f=function(n){return n&&n.__esModule?n:{"default":n}}(u);n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;t.default=function(n){return o.default(f.default.findDOMNode(n))};var u=i(11),f=r(u),e=i(209),o=r(e);n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=i(5),s=r(y),p=i(0),u=r(p),w=i(1),f=r(w),b=i(68),k=r(b),d=i(72),g=r(d),nt=i(12),e=function(n){function t(){var r,f,n,e;c(this,t);for(var l=arguments.length,v=Array(l),i=0;i<l;i++)v[i]=arguments[i];return f=n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(v))),n._renderRemoveableToken=function(){var t=n.props,i=t.active,r=t.children,f=t.className,e=t.onRemove,o=h(t,["active","children","className","onRemove"]);return u.default.createElement("div",a({},o,{className:s.default("rbt-token","rbt-token-removeable",{"rbt-token-active":i},f)}),r,u.default.createElement(k.default,{className:"rbt-token-remove-button",label:"Remove",onClick:e,onKeyDown:n._handleRemoveButtonKeydown,tabIndex:-1}))},n._renderToken=function(){var t=n.props,i=t.children,e=t.className,o=t.disabled,r=t.href,f=s.default("rbt-token",{"rbt-token-disabled":o},e);return r?u.default.createElement("a",{className:f,href:r},i):u.default.createElement("div",{className:f},i)},n._handleRemoveButtonKeydown=function(t){switch(t.keyCode){case nt.RETURN:n.props.onRemove()}},e=f,o(n,e)}return l(t,n),v(t,[{key:"render",value:function(){return this.props.onRemove&&!this.props.disabled?this._renderRemoveableToken():this._renderToken()}}]),t}(u.default.Component);e.propTypes={active:f.default.bool,onRemove:f.default.func,tabIndex:f.default.number};e.defaultProps={active:!1,tabIndex:0};t.default=g.default(e)},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=i(0),f=r(l),a=i(73),v=r(a),y=i(3),p=i(12),w=function(n){var t=function(t){function i(){var r,f,n,e;o(this,i);for(var s=arguments.length,h=Array(s),t=0;t<s;t++)h[t]=arguments[t];return f=n=u(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(h))),n.state={active:!1},n._handleBlur=function(){n.setState({active:!1})},n._handleKeyDown=function(t){switch(t.keyCode){case p.BACKSPACE:n.state.active&&(t.preventDefault(),n.props.onRemove())}},n.handleClickOutside=function(){n._handleBlur()},n._handleActive=function(t){t.stopPropagation();n.setState({active:!0})},e=f,u(n,e)}return s(i,t),c(i,[{key:"render",value:function(){var t=this.props,i=(t.disableOnClickOutside,t.enableOnClickOutside,t.eventTypes,t.outsideClickIgnoreClass,t.preventDefault,t.stopPropagation,e(t,["disableOnClickOutside","enableOnClickOutside","eventTypes","outsideClickIgnoreClass","preventDefault","stopPropagation"]));return f.default.createElement(n,h({},i,this.state,{onBlur:this._handleBlur,onClick:this._handleActive,onFocus:this._handleActive,onKeyDown:this._handleKeyDown}))}}]),i}(f.default.Component);return t.displayName="TokenContainer("+y.getDisplayName(n)+")",v.default(t)};t.default=w},function(n,t,i){"use strict";function c(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t}function l(n,t){var i,r,u,f,e;if(null==n)return{};for(u={},f=Object.keys(n),r=0;r<f.length;r++)i=f[r],t.indexOf(i)>=0||(u[i]=n[i]);if(Object.getOwnPropertySymbols)for(e=Object.getOwnPropertySymbols(n),r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(n,i)&&(u[i]=n[i]);return u}function a(n,t,i){return n===t||(n.correspondingElement?n.correspondingElement.classList.contains(i):n.classList.contains(i))}function v(n,t,i){if(n===t)return!0;for(;n.parentNode;){if(a(n,t,i))return!0;n=n.parentNode}return n}function y(n){return document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY}function s(n,t){var i=null;return-1!==k.indexOf(t)&&u&&(i={passive:!n.props.preventDefault}),i}function p(n,t){var i,a;return a=i=function(i){function a(n){var t;return t=i.call(this,n)||this,t.__outsideClickHandler=function(n){if("function"==typeof t.__clickOutsideHandlerProp)return void t.__clickOutsideHandlerProp(n);var i=t.getInstance();if("function"==typeof i.props.handleClickOutside)return void i.props.handleClickOutside(n);if("function"==typeof i.handleClickOutside)return void i.handleClickOutside(n);throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.");},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!o[t._uid]){void 0===u&&(u=w());o[t._uid]=!0;var n=t.props.eventTypes;n.forEach||(n=[n]);r[t._uid]=function(n){t.props.disableOnClickOutside||null===t.componentNode||(t.props.preventDefault&&n.preventDefault(),t.props.stopPropagation&&n.stopPropagation(),t.props.excludeScrollbar&&y(n))||v(n.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(n)};n.forEach(function(n){document.addEventListener(n,r[t._uid],s(t,n))})}},t.disableOnClickOutside=function(){var i,n;delete o[t._uid];i=r[t._uid];i&&"undefined"!=typeof document&&(n=t.props.eventTypes,n.forEach||(n=[n]),n.forEach(function(n){return document.removeEventListener(n,i,s(t,n))}),delete r[t._uid])},t.getRef=function(n){return t.instanceRef=n},t._uid=b(),t}c(a,i);var h=a.prototype;return h.getInstance=function(){if(!n.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},h.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var n=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(n),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=Object(e.findDOMNode)(this.getInstance());this.enableOnClickOutside()}},h.componentDidUpdate=function(){this.componentNode=Object(e.findDOMNode)(this.getInstance())},h.componentWillUnmount=function(){this.disableOnClickOutside()},h.render=function(){var i=this.props,t=(i.excludeScrollbar,l(i,["excludeScrollbar"]));return n.prototype.isReactComponent?t.ref=this.getRef:t.wrappedRef=this.getRef,t.disableOnClickOutside=this.disableOnClickOutside,t.enableOnClickOutside=this.enableOnClickOutside,Object(f.createElement)(n,t)},a}(f.Component),i.displayName="OnClickOutside("+(n.displayName||n.name||"Component")+")",i.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},i.getClass=function(){return n.getClass?n.getClass():n},a}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"IGNORE_CLASS_NAME",function(){return h});var u,f=i(0),e=(i.n(f),i(11)),w=(i.n(e),function(){if("undefined"!=typeof window&&"function"==typeof addEventListener){var n=!1,t=Object.defineProperty({},"passive",{get:function(){n=!0}}),i=function(){};return window.addEventListener("testPassiveEventSupport",i,t),window.removeEventListener("testPassiveEventSupport",i,t),n}}),b=function(n){return void 0===n&&(n=0),function(){return++n}}(),r={},o={},k=["touchstart","touchmove"],h="ignore-react-onclickoutside";t.default=p},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function u(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i&&(i=i.replace(i[0],i[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(r){return n[t+r+i]}).join(" ")}function h(n,t){var i=window.getComputedStyle(n);t.style.borderStyle=u(i,"border","style");t.style.borderWidth=u(i,"border","width");t.style.fontSize=i.fontSize;t.style.lineHeight=i.lineHeight;t.style.margin=u(i,"margin");t.style.padding=u(i,"padding")}function a(n){var t=function(t){function i(){var r,u,n,f;c(this,i);for(var o=arguments.length,h=Array(o),t=0;t<o;t++)h[t]=arguments[t];return u=n=s(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(h))),n._handleKeyDown=function(t){var i=n.context,u=i.hintText,f=i.initialItem,o=i.onAdd,s=i.selectHintOnEnter,r=n.props,h=r.onKeyDown,c=r.value;u&&(t.keyCode===e.RETURN&&s||t.keyCode===e.RIGHT&&t.target.selectionStart===c.length||t.keyCode===e.TAB)&&(t.preventDefault(),o(f));h(t)},f=u,s(n,f)}return l(i,t),y(i,[{key:"componentDidMount",value:function(){h(this._input,this._hint)}},{key:"componentDidUpdate",value:function(){h(this._input,this._hint)}},{key:"render",value:function(){var t=this;return f.default.createElement("div",{className:"rbt-input-hint-container",style:{position:"relative"}},f.default.createElement(n,v({},this.props,{inputRef:function(n){t._input=n;t.props.inputRef(n)},onKeyDown:this._handleKeyDown})),f.default.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:function(n){return t._hint=n},style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.35)",left:0,pointerEvents:"none",position:"absolute",top:0},tabIndex:-1,value:this.context.hintText}))}}]),i}(f.default.Component);return t.displayName="HintContainer("+b.getDisplayName(n)+")",t.contextTypes={hintText:r.default.string.isRequired,initialItem:r.default.oneOfType([r.default.object.isRequired,r.default.string.isRequired]),onAdd:r.default.func.isRequired,selectHintOnEnter:r.default.bool.isRequired},t}Object.defineProperty(t,"__esModule",{value:!0});var v=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=i(1),r=o(p),w=i(0),f=o(w),b=i(3),e=i(12);t.default=a},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function a(n){var t=function(t){function i(){var r,u,n,f;c(this,i);for(var e=arguments.length,o=Array(e),t=0;t<e;t++)o[t]=arguments[t];return u=n=s(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(o))),n.state={isFocused:!1},n._handleBlur=function(t){t.persist();n.setState({isFocused:!1},function(){return n.props.onBlur(t)})},n._handleFocus=function(t){t.persist();n.setState({isFocused:!0},function(){return n.props.onFocus(t)})},f=u,s(n,f)}return l(i,t),v(i,[{key:"getChildContext",value:function(){var n=this.props,t=n.initialItem,i=n.onAdd,r=n.selectHintOnEnter;return{hintText:f.getHintText(this.props),initialItem:t,onAdd:i,selectHintOnEnter:r}}},{key:"render",value:function(){var i,t=this.props,c=t.activeIndex,r=t.bsSize,v=t.disabled,y=t.inputRef,w=t.isMenuShown,b=t.labelKey,k=t.menuId,s=t.multiple,d=t.onChange,g=t.onKeyDown,nt=t.onRemove,tt=t.placeholder,it=t.renderToken,l=t.selected,e=o({},this.props.inputProps,{"aria-activedescendant":c>=0?f.getMenuItemId(c):"","aria-autocomplete":s?"list":"both","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":k,autoComplete:"off",disabled:v,inputRef:y,onBlur:this._handleBlur,onChange:d,onClick:this._handleFocus,onFocus:this._handleFocus,onKeyDown:g,placeholder:l.length?null:tt,role:"combobox",value:f.getInputText(this.props)}),a=e.className||"";return s&&(e=o({},e,{inputClassName:a,labelKey:b,onRemove:nt,renderToken:it,role:"",selected:l})),h.default.createElement(n,o({},e,{className:p.default("rbt-input",(i={},u(i,a,!s),u(i,"focus",this.state.isFocused),u(i,"input-lg form-control-lg","large"===r||"lg"===r),u(i,"input-sm form-control-sm","small"===r||"sm"===r),i))}))}}]),i}(h.default.Component);return t.displayName="InputContainer("+f.getDisplayName(n)+")",t.childContextTypes={hintText:r.default.string.isRequired,initialItem:r.default.oneOfType([r.default.object.isRequired,r.default.string.isRequired]),onAdd:r.default.func.isRequired,selectHintOnEnter:r.default.bool.isRequired},t}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=i(5),p=e(y),w=i(1),r=e(w),b=i(0),h=e(b),f=i(3);t.default=a},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function p(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},w=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),b=i(0),r=u(b),k=i(1),h=u(k),d=i(77),c=u(d),g=i(78),l=u(g),nt=i(37),f=u(nt),a=i(3),e=function(n){function t(){var u,e,n,h;y(this,t);for(var v=arguments.length,p=Array(v),i=0;i<v;i++)p[i]=arguments[i];return e=n=o(this,(u=t.__proto__||Object.getPrototypeOf(t)).call.apply(u,[this].concat(p))),n._renderMenuItem=function(t,i){var u=n.props,v=u.labelKey,h=u.newSelectionPrefix,y=u.renderMenuItemChildren,p=u.text,e=a.getOptionLabel(t,v),o={disabled:t.disabled,key:i,label:e,option:t,position:i};return t.customOption?r.default.createElement(f.default,s({},o,{className:"rbt-menu-custom-option",label:h+e}),h,r.default.createElement(c.default,{search:p},e)):t.paginationOption?[r.default.createElement(l.default.Divider,{key:"pagination-item-divider"}),r.default.createElement(f.default,s({},o,{className:"rbt-menu-pagination-option",key:"pagination-item"}),e)]:r.default.createElement(f.default,o,y(t,n.props,i))},h=e,o(n,h)}return p(t,n),w(t,[{key:"render",value:function(){var n=this.props,t=(n.labelKey,n.newSelectionPrefix,n.options),i=(n.renderMenuItemChildren,n.text,v(n,["labelKey","newSelectionPrefix","options","renderMenuItemChildren","text"]));return r.default.createElement(l.default,i,t.map(this._renderMenuItem))}}]),t}(r.default.Component);e.propTypes={newSelectionPrefix:h.default.string,renderMenuItemChildren:h.default.func};e.defaultProps={newSelectionPrefix:"New selection: ",renderMenuItemChildren:function(n,t){return r.default.createElement(c.default,{search:t.text},a.getOptionLabel(n,t.labelKey))}};t.default=e},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=i(1),e=u(l),a=i(0),r=u(a),v=i(3),o=function(n){function t(){var r,u,i,e;s(this,t);for(var o=arguments.length,h=Array(o),n=0;n<o;n++)h[n]=arguments[n];return u=i=f(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(h))),i._count=0,e=u,f(i,e)}return h(t,n),c(t,[{key:"render",value:function(){var n=this.props.search?this._renderHighlightedChildren():this.props.children;return r.default.createElement("span",null,n)}},{key:"_renderHighlightedChildren",value:function(){for(var i,u,f,t=[],n=this.props.children;n;){if(i=v.getMatchBounds(n,this.props.search),!i)return this._count++,t.push(r.default.createElement("span",{key:this._count},n)),t;u=n.slice(0,i.start);u&&(this._count++,t.push(r.default.createElement("span",{key:this._count},u)));f=n.slice(i.start,i.end);f&&(this._count++,t.push(r.default.createElement("mark",{className:"rbt-highlight-text",key:this._count},f)));n=n.slice(i.end)}return t}}]),t}(r.default.Component);o.propTypes={children:e.default.string.isRequired,search:e.default.string.isRequired};t.default=o},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=i(5),y=f(v),p=i(1),e=f(p),w=i(220),b=f(w),s=i(0),r=f(s),k=i(37),u=function(n){function t(){return h(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,n),a(t,[{key:"render",value:function(){var n=this.props,t=n.children,i=n.className,u=n.emptyLabel,f=n.id,e=n.innerRef,h=n.maxHeight,c=n.style,l=0===s.Children.count(t)?r.default.createElement(k.BaseMenuItem,{disabled:!0},u):t;return r.default.createElement("ul",{className:y.default("rbt-menu","dropdown-menu","show",i),id:f,ref:e,role:"listbox",style:o({},c,{display:"block",maxHeight:h,overflow:"auto"})},l)}}]),t}(r.default.Component);u.propTypes={id:b.default(e.default.oneOfType([e.default.number,e.default.string])),maxHeight:e.default.string};u.defaultProps={maxHeight:"300px"};u.Divider=function(){return r.default.createElement("li",{className:"divider dropdown-divider",role:"separator"})};u.Header=function(n){return r.default.createElement("li",o({},n,{className:"dropdown-header"}))};t.default=u},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=i(0),o=f(v),y=i(1),r=f(y),p=i(11),u=i(3),w=function(n){var t=function(t){function i(){var r,u,n,f;h(this,i);for(var o=arguments.length,s=Array(o),t=0;t<o;t++)s[t]=arguments[t];return u=n=e(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(s))),n._handleClick=function(t){var i=n.props,u=i.option,r=i.onClick;n.context.onMenuItemClick(u,t);r&&r(t)},n._updateInitialItem=function(t){var i=t.option;0===t.position&&n.context.onInitialItemChange(i)},f=u,e(n,f)}return c(i,t),a(i,[{key:"componentWillMount",value:function(){this._updateInitialItem(this.props)}},{key:"componentWillReceiveProps",value:function(n,t){var r=this.context.activeIndex===this.props.position,f=n.option,i=n.position,e=t.activeIndex,o=t.onActiveItemChange;null!=i&&(e===i&&(u.scrollIntoViewIfNeeded(p.findDOMNode(this)),!r&&o(f)),this._updateInitialItem(n))}},{key:"render",value:function(){var i=this.context,e=i.activeIndex,h=i.isOnlyResult,t=this.props,c=t.label,r=(t.option,t.position),a=s(t,["label","option","position"]),f=h||e===r;return o.default.createElement(n,l({},a,{active:f,"aria-label":c,"aria-selected":f,id:u.getMenuItemId(r),onClick:this._handleClick,onMouseDown:u.preventInputBlur,role:"option"}))}}]),i}(o.default.Component);return t.displayName="MenuItemContainer("+u.getDisplayName(n)+")",t.propTypes={option:r.default.oneOfType([r.default.object,r.default.string]).isRequired,position:r.default.number},t.contextTypes={activeIndex:r.default.number.isRequired,isOnlyResult:r.default.bool.isRequired,onActiveItemChange:r.default.func.isRequired,onInitialItemChange:r.default.func.isRequired,onMenuItemClick:r.default.func.isRequired},t};t.default=w},function(n,t,i){var u=i(6),r=Object.create,f=function(){function n(){}return function(t){if(!u(t))return{};if(r)return r(t);n.prototype=t;var i=new n;return n.prototype=void 0,i}}();n.exports=f},function(n,t,i){var r=i(224),u=i(38),f=r?function(n){return r.get(n)}:u;n.exports=f},function(n,t,i){function u(n){for(var i,u,t=n.name+"",f=r[t],o=e.call(r,t)?f.length:0;o--;)if(i=f[o],u=i.func,null==u||u==n)return i.name;return t}var r=i(225),f=Object.prototype,e=f.hasOwnProperty;n.exports=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});t.tokenContainer=t.menuItemContainer=t.asyncContainer=t.TypeaheadMenu=t.Typeahead=t.Token=t.MenuItem=t.Menu=t.Highlighter=t.AsyncTypeahead=void 0;var u=i(84),f=r(u),e=i(77),o=r(e),s=i(78),h=r(s),c=i(37),l=r(c),a=i(71),v=r(a),y=i(65),p=r(y),w=i(76),b=r(w),k=i(42),d=r(k),g=i(79),nt=r(g),tt=i(72),it=r(tt);t.AsyncTypeahead=f.default;t.Highlighter=o.default;t.Menu=h.default;t.MenuItem=l.default;t.Token=v.default;t.Typeahead=p.default;t.TypeaheadMenu=b.default;t.asyncContainer=d.default;t.menuItemContainer=nt.default;t.tokenContainer=it.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var u=i(42),f=r(u),e=i(65),o=r(e);t.default=f.default(o.default)},function(n,t,i){function f(n,t,i){function k(t){var i=l,r=a;return l=a=void 0,y=t,v=n.apply(r,i)}function rt(n){return y=n,f=setTimeout(w,t),it?k(n):v}function ut(n){var r=n-c,u=n-y,i=t-r;return p?h(i,b-u):i}function nt(n){var i=n-c,r=n-y;return void 0===c||i>=t||i<0||p&&r>=b}function w(){var n=r();if(nt(n))return tt(n);f=setTimeout(w,ut(n))}function tt(n){return f=void 0,g&&l?k(n):(l=a=void 0,v)}function ft(){void 0!==f&&clearTimeout(f);y=0;l=c=a=f=void 0}function et(){return void 0===f?v:tt(r())}function d(){var n=r(),i=nt(n);if(l=arguments,a=this,c=n,i){if(void 0===f)return rt(c);if(p)return f=setTimeout(w,t),k(c)}return void 0===f&&(f=setTimeout(w,t)),v}var l,a,b,v,f,c,y=0,it=!1,p=!1,g=!0;if("function"!=typeof n)throw new TypeError(o);return t=u(t)||0,e(i)&&(it=!!i.leading,p="maxWait"in i,b=p?s(u(i.maxWait)||0,t):b,g="trailing"in i?!!i.trailing:g),d.cancel=ft,d.flush=et,d}var e=i(6),r=i(86),u=i(87),o="Expected a function",s=Math.max,h=Math.min;n.exports=f},function(n,t,i){var r=i(4),u=function(){return r.Date.now()};n.exports=u},function(n,t,i){function f(n){var t,i;return"number"==typeof n?n:e(n)?u:(r(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=r(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(o,""),i=h.test(n),i||c.test(n)?l(n.slice(2),i?2:8):s.test(n)?u:+n)}var r=i(6),e=i(15),u=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;n.exports=f},function(n,t,i){function e(n){var u=o.call(n,r),f=n[r],t,i;try{n[r]=void 0;t=!0}catch(n){}return i=s.call(n),t&&(u?n[r]=f:delete n[r]),i}var u=i(13),f=Object.prototype,o=f.hasOwnProperty,s=f.toString,r=u?u.toStringTag:void 0;n.exports=e},function(n){function t(n){return r.call(n)}var i=Object.prototype,r=i.toString;n.exports=t},function(n,t,i){"use strict";var r=i(91),u=i(92),f=i(93);n.exports=function(){function n(n,t,i,r,e,o){o!==f&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return n}n.isRequired=n;var i={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return i.checkPropTypes=r,i.PropTypes=i,i}},function(n){"use strict";function i(n){return function(){return n}}var t=function(){};t.thatReturns=i;t.thatReturnsFalse=i(!1);t.thatReturnsTrue=i(!0);t.thatReturnsNull=i(null);t.thatReturnsThis=function(){return this};t.thatReturnsArgument=function(n){return n};n.exports=t},function(n){"use strict";function t(n,t,r,u,f,e,o,s){var h,c,l;if(i(t),!n){void 0===t?h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[r,u,f,e,o,s],l=0,h=new Error(t.replace(/%s/g,function(){return c[l++]})),h.name="Invariant Violation");throw h.framesToPop=1,h;}}var i=function(){};n.exports=t},function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(n,t,i){"use strict";function u(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}function f(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function e(n,t,i){var o=n.some(function(n){return r.getOptionLabel(n,i)===t}),e;return!t.trim()||o?n:(e=f({customOption:!0,id:s.default("new-id-")},r.getStringLabelKey(i),t),[].concat(u(n),[e]))}Object.defineProperty(t,"__esModule",{value:!0});var o=i(95),s=function(n){return n&&n.__esModule?n:{"default":n}}(o),r=i(3);t.default=e},function(n,t,i){function r(n){var t=++f;return u(n)+t}var u=i(45),f=0;n.exports=r},function(n,t,i){function r(n){if("string"==typeof n)return n;if(s(n))return o(n,r)+"";if(h(n))return e?e.call(n):"";var t=n+"";return"0"==t&&1/n==-c?"-0":t}var u=i(13),o=i(97),s=i(2),h=i(15),c=1/0,f=u?u.prototype:void 0,e=f?f.toString:void 0;n.exports=r},function(n){function t(n,t){for(var i=-1,r=null==n?0:n.length,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){return i.caseSensitive||(n=n.toLowerCase(),t=t.toLowerCase()),i.ignoreDiacritics&&(n=e.default(n),t=e.default(t)),-1!==t.indexOf(n)}function s(n,t){var s=t.filterBy,i=t.labelKey,h=t.multiple,l=t.selected,e=t.text,r;return h&&l.some(function(t){return c.default(t,n)})?!1:(r=s.slice(),!(!a.default(i)||!u(e,i(n),t))||(f.default(i)&&-1===r.indexOf(i)&&r.unshift(i),f.default(n)?(o.default(r.length<=1,"You cannot filter by properties when `option` is a string."),u(e,n,t)):p.default(r,function(i){var r=n[i];return f.default(r)||(o.default(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),r+=""),u(e,r,t)})))}Object.defineProperty(t,"__esModule",{value:!0});t.default=s;var h=i(46),c=r(h),l=i(25),a=r(l),v=i(154),f=r(v),y=i(155),p=r(y),w=i(33),e=r(w),b=i(8),o=r(b)},function(n,t,i){function l(n,t,i,l,b,k){var nt=e(n),ot=e(t),d=nt?h:f(n),g=ot?h:f(t),rt,ut,ft,et;d=d==s?r:d;g=g==s?r:g;var tt=d==r,st=g==r,it=d==g;if(it&&o(n)){if(!o(t))return!1;nt=!0;tt=!1}return it&&!tt?(k||(k=new u),nt||p(n)?a(n,t,i,l,b,k):v(n,t,d,i,l,b,k)):!(i&w)&&(rt=tt&&c.call(n,"__wrapped__"),ut=st&&c.call(t,"__wrapped__"),rt||ut)?(ft=rt?n.value():n,et=ut?t.value():t,k||(k=new u),b(ft,et,i,l,k)):!!it&&(k||(k=new u),y(n,t,i,l,b,k))}var u=i(47),a=i(49),v=i(130),y=i(134),f=i(150),e=i(2),o=i(52),p=i(54),w=1,s="[object Arguments]",h="[object Array]",r="[object Object]",b=Object.prototype,c=b.hasOwnProperty;n.exports=l},function(n){function t(){this.__data__=[];this.size=0}n.exports=t},function(n,t,i){function r(n){var t=this.__data__,i=u(t,n);return!(i<0)&&(i==t.length-1?t.pop():e.call(t,i,1),--this.size,!0)}var u=i(17),f=Array.prototype,e=f.splice;n.exports=r},function(n,t,i){function r(n){var t=this.__data__,i=u(t,n);if(!(i<0))return t[i][1]}var u=i(17);n.exports=r},function(n,t,i){function r(n){return u(this.__data__,n)>-1}var u=i(17);n.exports=r},function(n,t,i){function r(n,t){var i=this.__data__,r=u(i,n);return r<0?(++this.size,i.push([n,t])):i[r][1]=t,this}var u=i(17);n.exports=r},function(n,t,i){function r(){this.__data__=new u;this.size=0}var u=i(16);n.exports=r},function(n){function t(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}n.exports=t},function(n){function t(n){return this.__data__.get(n)}n.exports=t},function(n){function t(n){return this.__data__.has(n)}n.exports=t},function(n,t,i){function r(n,t){var i=this.__data__,r;if(i instanceof u){if(r=i.__data__,!f||r.length<o-1)return r.push([n,t]),this.size=++i.size,this;i=this.__data__=new e(r)}return i.set(n,t),this.size=i.size,this}var u=i(16),f=i(24),e=i(26),o=200;n.exports=r},function(n,t,i){function r(n){return!(!e(n)||f(n))&&(u(n)?v:s).test(o(n))}var u=i(25),f=i(111),e=i(6),o=i(48),s=/^\[object .+?Constructor\]$/,h=Function.prototype,c=Object.prototype,l=h.toString,a=c.hasOwnProperty,v=RegExp("^"+l.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n.exports=r},function(n,t,i){function f(n){return!!u&&u in n}var r=i(112),u=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();n.exports=f},function(n,t,i){var r=i(4),u=r["__core-js_shared__"];n.exports=u},function(n){function t(n,t){if(null!=n)return n[t]}n.exports=t},function(n,t,i){function u(){this.size=0;this.__data__={hash:new r,map:new(e||f),string:new r}}var r=i(115),f=i(16),e=i(24);n.exports=u},function(n,t,i){function r(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}var u=i(116),f=i(117),e=i(118),o=i(119),s=i(120);r.prototype.clear=u;r.prototype.delete=f;r.prototype.get=e;r.prototype.has=o;r.prototype.set=s;n.exports=r},function(n,t,i){function u(){this.__data__=r?r(null):{};this.size=0}var r=i(19);n.exports=u},function(n){function t(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}n.exports=t},function(n,t,i){function r(n){var t=this.__data__,i;return u?(i=t[n],i===f?void 0:i):o.call(t,n)?t[n]:void 0}var u=i(19),f="__lodash_hash_undefined__",e=Object.prototype,o=e.hasOwnProperty;n.exports=r},function(n,t,i){function r(n){var t=this.__data__;return u?void 0!==t[n]:e.call(t,n)}var u=i(19),f=Object.prototype,e=f.hasOwnProperty;n.exports=r},function(n,t,i){function r(n,t){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=u&&void 0===t?f:t,this}var u=i(19),f="__lodash_hash_undefined__";n.exports=r},function(n,t,i){function r(n){var t=u(this,n).delete(n);return this.size-=t?1:0,t}var u=i(20);n.exports=r},function(n){function t(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}n.exports=t},function(n,t,i){function r(n){return u(this,n).get(n)}var u=i(20);n.exports=r},function(n,t,i){function r(n){return u(this,n).has(n)}var u=i(20);n.exports=r},function(n,t,i){function r(n,t){var i=u(this,n),r=i.size;return i.set(n,t),this.size+=i.size==r?0:1,this}var u=i(20);n.exports=r},function(n,t,i){function r(n){var t=-1,i=null==n?0:n.length;for(this.__data__=new u;++t<i;)this.add(n[t])}var u=i(26),f=i(127),e=i(128);r.prototype.add=r.prototype.push=f;r.prototype.has=e;n.exports=r},function(n){function t(n){return this.__data__.set(n,i),this}var i="__lodash_hash_undefined__";n.exports=t},function(n){function t(n){return this.__data__.has(n)}n.exports=t},function(n){function t(n,t){return n.has(t)}n.exports=t},function(n,t,i){function o(n,t,i,u,e,o,ut){var ft,ot,et,st;switch(i){case rt:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer;t=t.buffer;case it:return!(n.byteLength!=t.byteLength||!o(new f(n),new f(t)));case y:case p:case k:return s(+n,+t);case w:return n.name==t.name&&n.message==t.message;case d:case nt:return n==t+"";case b:ft=c;case g:return(ot=u&a,ft||(ft=l),n.size!=t.size&&!ot)?!1:(et=ut.get(n),et)?et==t:(u|=v,ut.set(n,t),st=h(ft(n),ft(t),u,e,o,ut),ut.delete(n),st);case tt:if(r)return r.call(n)==r.call(t)}return!1}var u=i(13),f=i(131),s=i(18),h=i(49),c=i(132),l=i(133),a=1,v=2,y="[object Boolean]",p="[object Date]",w="[object Error]",b="[object Map]",k="[object Number]",d="[object RegExp]",g="[object Set]",nt="[object String]",tt="[object Symbol]",it="[object ArrayBuffer]",rt="[object DataView]",e=u?u.prototype:void 0,r=e?e.valueOf:void 0;n.exports=o},function(n,t,i){var r=i(4),u=r.Uint8Array;n.exports=u},function(n){function t(n){var i=-1,t=Array(n.size);return n.forEach(function(n,r){t[++i]=[r,n]}),t}n.exports=t},function(n){function t(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=n}),t}n.exports=t},function(n,t,i){function u(n,t,i,u,e,s){var w=i&f,k=r(n),d=k.length,c,h,g,l,b,a,v,nt,y,p;if(d!=r(t).length&&!w)return!1;for(c=d;c--;)if(h=k[c],!(w?h in t:o.call(t,h)))return!1;if(g=s.get(n),g&&s.get(t))return g==t;for(l=!0,s.set(n,t),s.set(t,n),b=w;++c<d;){if(h=k[c],a=n[h],v=t[h],u&&(nt=w?u(v,a,h,t,n,s):u(a,v,h,n,t,s)),!(void 0===nt?a===v||e(a,v,i,u,s):nt)){l=!1;break}b||(b="constructor"==h)}return l&&!b&&(y=n.constructor,p=t.constructor,y!=p&&"constructor"in n&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof p&&p instanceof p)&&(l=!1)),s.delete(n),s.delete(t),l}var r=i(135),f=1,e=Object.prototype,o=e.hasOwnProperty;n.exports=u},function(n,t,i){function r(n){return u(n,e,f)}var u=i(136),f=i(137),e=i(27);n.exports=r},function(n,t,i){function r(n,t,i){var r=t(n);return f(n)?r:u(r,i(n))}var u=i(51),f=i(2);n.exports=r},function(n,t,i){var u=i(138),f=i(139),e=Object.prototype,o=e.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(n){return null==n?[]:(n=Object(n),u(r(n),function(t){return o.call(n,t)}))}:f;n.exports=s},function(n){function t(n,t){for(var r,i=-1,f=null==n?0:n.length,e=0,u=[];++i<f;)r=n[i],t(r,i,n)&&(u[e++]=r);return u}n.exports=t},function(n){function t(){return[]}n.exports=t},function(n,t,i){function r(n,t){var r=e(n),c=!r&&f(n),a=!r&&!c&&o(n),y=!r&&!c&&!a&&h(n),p=r||c||a||y,v=p?u(n.length,String):[],w=v.length;for(var i in n)!t&&!l.call(n,i)||p&&("length"==i||a&&("offset"==i||"parent"==i)||y&&("buffer"==i||"byteLength"==i||"byteOffset"==i)||s(i,w))||v.push(i);return v}var u=i(141),f=i(28),e=i(2),o=i(52),s=i(21),h=i(54),c=Object.prototype,l=c.hasOwnProperty;n.exports=r},function(n){function t(n,t){for(var i=-1,r=Array(n);++i<n;)r[i]=t(i);return r}n.exports=t},function(n,t,i){function r(n){return f(n)&&u(n)==e}var u=i(9),f=i(7),e="[object Arguments]";n.exports=r},function(n){function t(){return!1}n.exports=t},function(n,t,i){function u(n){return o(n)&&e(n.length)&&!!r[f(n)]}var f=i(9),e=i(29),o=i(7),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0;r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;n.exports=u},function(n){function t(n){return function(t){return n(t)}}n.exports=t},function(n,t,i){(function(n){var e=i(43),f="object"==typeof t&&t&&!t.nodeType&&t,r=f&&"object"==typeof n&&n&&!n.nodeType&&n,o=r&&r.exports===f,u=o&&e.process,s=function(){try{var n=r&&r.require&&r.require("util").types;return n||u&&u.binding&&u.binding("util")}catch(n){}}();n.exports=s}).call(t,i(53)(n))},function(n,t,i){function r(n){var i,t;if(!u(n))return f(n);i=[];for(t in Object(n))o.call(n,t)&&"constructor"!=t&&i.push(t);return i}var u=i(148),f=i(149),e=Object.prototype,o=e.hasOwnProperty;n.exports=r},function(n){function t(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;n.exports=t},function(n,t,i){var r=i(55),u=r(Object.keys,Object);n.exports=u},function(n,t,i){var f=i(151),e=i(24),o=i(152),s=i(153),h=i(56),c=i(9),u=i(48),l=u(f),a=u(e),v=u(o),y=u(s),p=u(h),r=c;(f&&"[object DataView]"!=r(new f(new ArrayBuffer(1)))||e&&"[object Map]"!=r(new e)||o&&"[object Promise]"!=r(o.resolve())||s&&"[object Set]"!=r(new s)||h&&"[object WeakMap]"!=r(new h))&&(r=function(n){var t=c(n),i="[object Object]"==t?n.constructor:void 0,r=i?u(i):"";if(r)switch(r){case l:return"[object DataView]";case a:return"[object Map]";case v:return"[object Promise]";case y:return"[object Set]";case p:return"[object WeakMap]"}return t});n.exports=r},function(n,t,i){var r=i(10),u=i(4),f=r(u,"DataView");n.exports=f},function(n,t,i){var r=i(10),u=i(4),f=r(u,"Promise");n.exports=f},function(n,t,i){var r=i(10),u=i(4),f=r(u,"Set");n.exports=f},function(n,t,i){function r(n){return"string"==typeof n||!f(n)&&e(n)&&u(n)==o}var u=i(9),f=i(2),e=i(7),o="[object String]";n.exports=r},function(n,t,i){function r(n,t,i){var r=o(n)?u:e;return i&&s(n,t,i)&&(t=void 0),r(n,f(t,3))}var u=i(50),f=i(156),e=i(170),o=i(2),s=i(176);n.exports=r},function(n,t,i){function r(n){return"function"==typeof n?n:null==n?e:"object"==typeof n?o(n)?f(n[0],n[1]):u(n):s(n)}var u=i(157),f=i(160),e=i(60),o=i(2),s=i(167);n.exports=r},function(n,t,i){function r(n){var t=f(n);return 1==t.length&&t[0][2]?e(t[0][0],t[0][1]):function(i){return i===n||u(i,n,t)}}var u=i(158),f=i(159),e=i(58);n.exports=r},function(n,t,i){function r(n,t,i,r){var h=i.length,y=h,p=!r,s,a,v;if(null==n)return!y;for(n=Object(n);h--;)if(s=i[h],p&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1;for(;++h<y;){s=i[h];var c=s[0],l=n[c],w=s[1];if(p&&s[2]){if(void 0===l&&!(c in n))return!1}else if(a=new u,r&&(v=r(l,w,c,n,t,a)),!(void 0===v?f(w,l,e|o,r,a):v))return!1}return!0}var u=i(47),f=i(23),e=1,o=2;n.exports=r},function(n,t,i){function r(n){for(var r,e,t=f(n),i=t.length;i--;)r=t[i],e=n[r],t[i]=[r,e,u(e)];return t}var u=i(57),f=i(27);n.exports=r},function(n,t,i){function r(n,t){return o(n)&&s(t)?h(c(n),t):function(i){var r=f(i,n);return void 0===r&&r===t?e(i,n):u(t,r,l|a)}}var u=i(23),f=i(161),e=i(59),o=i(32),s=i(57),h=i(58),c=i(14),l=1,a=2;n.exports=r},function(n,t,i){function r(n,t,i){var r=null==n?void 0:u(n,t);return void 0===r?i:r}var u=i(31);n.exports=r},function(n,t,i){var r=i(163),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,e=r(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(u,function(n,i,r,u){t.push(r?u.replace(f,"$1"):i||n)}),t});n.exports=e},function(n,t,i){function r(n){var t=u(n,function(n){return i.size===f&&i.clear(),n}),i=t.cache;return t}var u=i(164),f=500;n.exports=r},function(n,t,i){function r(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new TypeError(f);var i=function(){var u=arguments,f=t?t.apply(this,u):u[0],r=i.cache,e;return r.has(f)?r.get(f):(e=n.apply(this,u),i.cache=r.set(f,e)||r,e)};return i.cache=new(r.Cache||u),i}var u=i(26),f="Expected a function";r.Cache=u;n.exports=r},function(n){function t(n,t){return null!=n&&t in Object(n)}n.exports=t},function(n,t,i){function r(n,t,i){var c;t=u(t,n);for(var l=-1,r=t.length,a=!1;++l<r;){if(c=h(t[l]),!(a=null!=n&&i(n,c)))break;n=n[c]}return a||++l!=r?a:!!(r=null==n?0:n.length)&&s(r)&&o(c,r)&&(e(n)||f(n))}var u=i(22),f=i(28),e=i(2),o=i(21),s=i(29),h=i(14);n.exports=r},function(n,t,i){function r(n){return e(n)?u(o(n)):f(n)}var u=i(168),f=i(169),e=i(32),o=i(14);n.exports=r},function(n){function t(n){return function(t){if(null!=t)return t[n]}}n.exports=t},function(n,t,i){function r(n){return function(t){return u(t,n)}}var u=i(31);n.exports=r},function(n,t,i){function r(n,t){var i;return u(n,function(n,r,u){return!(i=t(n,r,u))}),!!i}var u=i(171);n.exports=r},function(n,t,i){var r=i(172),u=i(175),f=u(r);n.exports=f},function(n,t,i){function r(n,t){return n&&u(n,t,f)}var u=i(173),f=i(27);n.exports=r},function(n,t,i){var r=i(174),u=r();n.exports=u},function(n){function t(n){return function(t,i,r){for(var u,s=-1,f=Object(t),e=r(t),o=e.length;o--;)if(u=e[n?o:++s],!1===i(f[u],u,f))break;return t}}n.exports=t},function(n,t,i){function r(n,t){return function(i,r){if(null==i)return i;if(!u(i))return n(i,r);for(var e=i.length,f=t?e:-1,o=Object(i);(t?f--:++f<e)&&!1!==r(o[f],f,o););return i}}var u=i(30);n.exports=r},function(n,t,i){function r(n,t,i){if(!o(i))return!1;var r=typeof t;return!!("number"==r?f(i)&&e(t,i.length):"string"==r&&t in i)&&u(i[t],n)}var u=i(18),f=i(30),e=i(21),o=i(6);n.exports=r},function(n){"use strict";var t=function(){};n.exports=t},function(n,t){"use strict";function i(n){var i=n.a11yNumResults,r=n.a11yNumSelected,u=n.emptyLabel,f=n.isMenuShown,t=n.results,e=n.selected;return f?0===t.length?u:i(t):r(e)}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t){"use strict";function i(n){return n.displayName||n.name||"Component"}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){var f=n.activeItem,r=n.initialItem,o=n.isMenuShown,h=n.labelKey,c=n.multiple,l=n.selected,u=n.text,t,i;return!u||!o||!r||r.customOption||f||l.length&&!c?"":(t=s.default(r,h),i=e.default(t.toLowerCase(),u.toLowerCase()),i&&0===i.start?u+t.slice(i.end,t.length):"")}Object.defineProperty(t,"__esModule",{value:!0});var f=i(61),e=r(f),o=i(34),s=r(o);t.default=u},function(n){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;n.exports=function(n){if("string"!=typeof n)throw new TypeError("Expected a string");return n.replace(t,"\\$&")}},function(n){"use strict";var t=function(n,t,i,r,u,f,e,o){var s,h,c;if(!n){void 0===t?s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(h=[i,r,u,f,e,o],c=0,s=new Error(t.replace(/%s/g,function(){return h[c++]})),s.name="Invariant Violation");throw s.framesToPop=1,s;}};n.exports=t},function(n,t,i){var r=i(55),u=r(Object.getPrototypeOf,Object);n.exports=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t=n.activeItem,r=n.labelKey,s=n.multiple,f=n.selected,e=n.text,i;return t?t.paginationOption?e:u.default(t,r):(i=!s&&!!f.length&&o.default(f),i?u.default(i,r):e)}Object.defineProperty(t,"__esModule",{value:!0});var e=i(35),o=r(e),s=i(34),u=r(s);t.default=f},function(n,t){"use strict";function i(n){return"rbt-menu-item-"+n}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t){"use strict";function i(n,t){return!t||t>=n.length?n:n.slice(0,t)}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t){"use strict";function i(n,t,i){return i=i||n+"s",1===t?"1 "+n:t+" "+i}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t){"use strict";function i(n){n.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t){"use strict";function i(n){if(Element.prototype.scrollIntoViewIfNeeded)return void n.scrollIntoViewIfNeeded();var i=n.getBoundingClientRect(),t=n.parentNode,r=t.getBoundingClientRect(),u=window.getComputedStyle(t,null),f=parseInt(u.getPropertyValue("border-top-width"));(i.top<r.top||i.bottom>r.bottom)&&(t.scrollTop=n.offsetTop-t.offsetTop-t.clientHeight/2-f+n.clientHeight/2)}Object.defineProperty(t,"__esModule",{value:!0});t.default=i},function(n,t,i){var r=i(191),u=i(67),f=u(function(n,t){return null==n?{}:r(n,t)});n.exports=f},function(n,t,i){function r(n,t){return u(n,t,function(t,i){return f(n,i)})}var u=i(192),f=i(59);n.exports=r},function(n,t,i){function r(n,t,i){for(var r,o,s=-1,c=t.length,h={};++s<c;)r=t[s],o=u(n,r),i(o,r)&&f(h,e(r,n),o);return h}var u=i(31),f=i(193),e=i(22);n.exports=r},function(n,t,i){function u(n,t,i,u){var c,l,v;if(!r(n))return n;t=e(t,n);for(var a=-1,y=t.length,p=y-1,h=n;null!=h&&++a<y;)c=s(t[a]),l=i,a!=p&&(v=h[c],l=u?u(v,c,h):void 0,void 0===l&&(l=r(v)?v:o(t[a+1])?[]:{})),f(h,c,l),h=h[c];return n}var f=i(194),e=i(22),o=i(21),r=i(6),s=i(14);n.exports=u},function(n,t,i){function r(n,t,i){var r=n[t];o.call(n,t)&&f(r,i)&&(void 0!==i||t in n)||u(n,t,i)}var u=i(195),f=i(18),e=Object.prototype,o=e.hasOwnProperty;n.exports=r},function(n,t,i){function u(n,t,i){"__proto__"==t&&r?r(n,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[t]=i}var r=i(66);n.exports=u},function(n,t,i){function r(n){return(null==n?0:n.length)?u(n,1):[]}var u=i(197);n.exports=r},function(n,t,i){function r(n,t,i,e,o){var h=-1,c=n.length,s;for(i||(i=f),o||(o=[]);++h<c;)s=n[h],t>0&&i(s)?t>1?r(s,t-1,i,e,o):u(o,s):e||(o[o.length]=s);return o}var u=i(51),f=i(198);n.exports=r},function(n,t,i){function f(n){return o(n)||e(n)||!!(u&&n&&n[u])}var r=i(13),e=i(28),o=i(2),u=r?r.isConcatSpreadable:void 0;n.exports=f},function(n,t,i){function u(n,t,i){return t=r(void 0===t?n.length-1:t,0),function(){for(var e,o=arguments,u=-1,s=r(o.length-t,0),h=Array(s);++u<s;)h[u]=o[t+u];for(u=-1,e=Array(t+1);++u<t;)e[u]=o[u];return e[t]=i(h),f(n,this,e)}}var f=i(200),r=Math.max;n.exports=u},function(n){function t(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}n.exports=t},function(n,t,i){var r=i(202),u=i(204),f=u(r);n.exports=f},function(n,t,i){var u=i(203),r=i(66),f=i(60),e=r?function(n,t){return r(n,"toString",{configurable:!0,enumerable:!1,value:u(t),writable:!0})}:f;n.exports=e},function(n){function t(n){return function(){return n}}n.exports=t},function(n){function t(n){var t=0,f=0;return function(){var e=u(),o=r-(e-f);if(f=e,o>0){if(++t>=i)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}var i=800,r=16,u=Date.now;n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),e=r(f),o=i(0),s=r(o),h=i(1),c=r(h),u=function(n){var t=n.bsSize;return s.default.createElement("div",{className:e.default("rbt-loader",{"rbt-loader-lg":"large"===t||"lg"===t,"rbt-loader-sm":"small"===t||"sm"===t})})};u.propTypes={bsSize:c.default.oneOf(["large","lg","small","sm"])};t.default=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function v(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function y(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function h(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function w(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function b(n){var t=n.align,i=n.flip;return{computeStyles:{enabled:!0,fn:function(n){return"right"!==t&&"left"!==t&&(n.styles.width=n.offsets.reference.width),n}},flip:{enabled:i},preventOverflow:{escapeWithReference:!0}}}function u(n){return n===document.body}Object.defineProperty(t,"__esModule",{value:!0});var k=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},d=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),g=i(5),nt=r(g),f=i(0),o=r(f),tt=i(1),e=r(tt),it=i(36),l=r(it),rt=i(208),ut=r(rt),ft=i(211),a="rbt-body-container",s=function(n){function t(){var r,f,n,e;p(this,t);for(var o=arguments.length,s=Array(o),i=0;i<o;i++)s[i]=arguments[i];return f=n=c(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),n._update=function(){var r,t=n.props,f=t.className,i=t.container;t.show&&u(i)&&(i.classList.add(a),!!f&&(r=i.classList).add.apply(r,h(f.split(" "))))},e=f,c(n,e)}return w(t,n),d(t,[{key:"componentDidMount",value:function(){this._update()}},{key:"componentWillReceiveProps",value:function(n){var o=n.onMenuHide,s=n.onMenuShow,i=n.show,e;this.props.show&&!i&&o();!this.props.show&&i&&s();var r=this.props,f=r.className,t=r.container;u(t)&&!u(n.container)&&(t.classList.remove(a),!f||(e=t.classList).remove.apply(e,h(f.split(" "))));this._update()}},{key:"render",value:function(){var n=this.props,s=n.align,i=n.children,r=n.container,h=n.dropup,c=n.show,e=n.target;if(!(c&&f.Children.count(i)&&e))return null;var t=f.Children.only(i),l="right"===s?"end":"start",a=h?"top":"bottom";return o.default.createElement(ut.default,{container:r},o.default.createElement(ft.Popper,{modifiers:b(this.props),placement:a+"-"+l,target:e},function(n){var i=n.popperProps,e=i.ref,o=y(i,["ref"]);return f.cloneElement(t,k({},t.props,o,{className:nt.default(t.props.className,v({},"ignore-react-onclickoutside",u(r))),innerRef:e}))}))}}]),t}(o.default.Component);s.propTypes={children:e.default.element,container:l.default.isRequired,onMenuHide:e.default.func.isRequired,onMenuShow:e.default.func.isRequired,show:e.default.bool,target:l.default};s.defaultProps={show:!1};t.default=s},function(n,t){"use strict";function i(n){function t(t,i,r,u,f,e){var h=u||"<<anonymous>>",c=e||r;if(null==i[r])return t?new Error("Required "+f+" `"+c+"` was not specified in `"+h+"`."):null;for(var s=arguments.length,l=Array(s>6?s-6:0),o=6;o<s;o++)l[o-6]=arguments[o];return n.apply(void 0,[i,r,h,f,c].concat(l))}var i=t.bind(null,!1);return i.isRequired=t.bind(null,!0),i}Object.defineProperty(t,"__esModule",{value:!0});t.default=i;n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}t.__esModule=!0;var c=i(1),u=r(c),l=i(36),a=r(l),v=i(0),y=r(v),p=i(11),o=r(p),w=i(69),b=r(w),k=i(70),d=r(k),g=i(210),nt=r(g),f=function(n){function t(){var u,i,f;s(this,t);for(var o=arguments.length,h=Array(o),r=0;r<o;r++)h[r]=arguments[r];return u=i=e(this,n.call.apply(n,[this].concat(h))),i.setContainer=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.props;i._portalContainerNode=b.default(n.container,d.default(i).body)},i.getMountNode=function(){return i._portalContainerNode},f=u,e(i,f)}return h(t,n),t.prototype.componentDidMount=function(){this.setContainer();this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(n){n.container!==this.props.container&&this.setContainer(n)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?o.default.createPortal(this.props.children,this._portalContainerNode):null},t}(y.default.Component);f.displayName="Portal";f.propTypes={container:u.default.oneOfType([a.default,u.default.func]),onRendered:u.default.func};t.default=o.default.createPortal?f:nt.default;n.exports=t.default},function(n,t){"use strict";function i(n){return n&&n.ownerDocument||document}Object.defineProperty(t,"__esModule",{value:!0});t.default=i;n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}t.__esModule=!0;var v=i(1),u=r(v),y=i(36),p=r(y),w=i(0),o=r(w),b=i(11),s=r(b),k=i(69),h=r(k),d=i(70),c=r(d),f=function(n){function t(){var u,i,f;l(this,t);for(var a=arguments.length,v=Array(a),r=0;r<a;r++)v[r]=arguments[r];return u=i=e(this,n.call.apply(n,[this].concat(v))),i._mountOverlayTarget=function(){i._overlayTarget||(i._overlayTarget=document.createElement("div"),i._portalContainerNode=h.default(i.props.container,c.default(i).body),i._portalContainerNode.appendChild(i._overlayTarget))},i._unmountOverlayTarget=function(){i._overlayTarget&&(i._portalContainerNode.removeChild(i._overlayTarget),i._overlayTarget=null);i._portalContainerNode=null},i._renderOverlay=function(){var n=i.props.children?o.default.Children.only(i.props.children):null,t;null!==n?(i._mountOverlayTarget(),t=!i._overlayInstance,i._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(i,n,i._overlayTarget,function(){t&&i.props.onRendered&&i.props.onRendered()})):(i._unrenderOverlay(),i._unmountOverlayTarget())},i._unrenderOverlay=function(){i._overlayTarget&&(s.default.unmountComponentAtNode(i._overlayTarget),i._overlayInstance=null)},i.getMountNode=function(){return i._overlayTarget},f=u,e(i,f)}return a(t,n),t.prototype.componentDidMount=function(){this._isMounted=!0;this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(n){this._overlayTarget&&n.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=h.default(n.container,c.default(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1;this._unrenderOverlay();this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(o.default.Component);f.displayName="Portal";f.propTypes={container:u.default.oneOfType([p.default,u.default.func]),onRendered:u.default.func};t.default=f;n.exports=t.default},function(n,t,i){"use strict";var u,f,r,e;Object.defineProperty(t,"__esModule",{value:!0});u=i(212);i.d(t,"Manager",function(){return u.a});f=i(213);i.d(t,"Target",function(){return f.a});r=i(214);i.d(t,"Popper",function(){return r.a});i.d(t,"placements",function(){return r.b});e=i(216);i.d(t,"Arrow",function(){return e.a})},function(n,t,i){"use strict";function o(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f=i(0),c=(i.n(f),i(1)),r=i.n(c),l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function(n){function t(){var r,u,n,f;s(this,t);for(var o=arguments.length,h=Array(o),i=0;i<o;i++)h[i]=arguments[i];return u=n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(h))),n._setTargetNode=function(t){n._targetNode=t},n._getTargetNode=function(){return n._targetNode},f=u,e(n,f)}return h(t,n),l(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var n=this.props,t=n.tag,i=n.children,r=o(n,["tag","children"]);return!1!==t?Object(f.createElement)(t,r,i):i}}]),t}(f.Component);u.childContextTypes={popperManager:r.a.object.isRequired};u.propTypes={tag:r.a.oneOfType([r.a.string,r.a.bool]),children:r.a.oneOfType([r.a.node,r.a.func])};u.defaultProps={tag:"div"};t.a=u},function(n,t,i){"use strict";function e(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}var f=i(0),o=(i.n(f),i(1)),r=i.n(o),s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(n,t){var o=n.component,h=void 0===o?"div":o,c=n.innerRef,r=n.children,l=e(n,["component","innerRef","children"]),a=t.popperManager,u=function(n){a.setTargetNode(n);"function"==typeof c&&c(n)},i;return"function"==typeof r?r({targetProps:{ref:u},restProps:l}):(i=s({},l),"string"==typeof h?i.ref=u:i.innerRef=u,Object(f.createElement)(h,i,r))};u.contextTypes={popperManager:r.a.object.isRequired};u.propTypes={component:r.a.oneOfType([r.a.node,r.a.func]),innerRef:r.a.func,children:r.a.oneOfType([r.a.node,r.a.func])};t.a=u},function(n,t,i){"use strict";function c(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function l(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"b",function(){return h});var e=i(0),v=(i.n(e),i(1)),r=i.n(v),s=i(215),u=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=s.a.placements,f=function(n){function t(){var r,f,n,e;l(this,t);for(var s=arguments.length,h=Array(s),i=0;i<s;i++)h[i]=arguments[i];return f=n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(h))),n.state={},n._setArrowNode=function(t){n._arrowNode=t},n._getTargetNode=function(){if(n.props.target)return n.props.target;if(!n.context.popperManager||!n.context.popperManager.getTargetNode())throw new Error("Target missing. Popper must be given a target from the Popper Manager, or as a prop.");return n.context.popperManager.getTargetNode()},n._getOffsets=function(n){return Object.keys(n.offsets).map(function(t){return n.offsets[t]})},n._isDataDirty=function(t){return!n.state.data||JSON.stringify(n._getOffsets(n.state.data))!==JSON.stringify(n._getOffsets(t))},n._updateStateModifier={enabled:!0,order:900,fn:function(t){return n._isDataDirty(t)&&n.setState({data:t}),t}},n._getPopperStyle=function(){var t=n.state.data;return n._popper&&t?u({position:t.offsets.popper.position},t.styles):{position:"absolute",pointerEvents:"none",opacity:0}},n._getPopperPlacement=function(){if(n.state.data)return n.state.data.placement},n._getPopperHide=function(){if(n.state.data&&n.state.data.hide)return""},n._getArrowStyle=function(){if(n.state.data&&n.state.data.offsets.arrow){var t=n.state.data.offsets.arrow;return{top:t.top,left:t.left}}return{}},n._handlePopperRef=function(t){n._popperNode=t;t?n._createPopper():n._destroyPopper();n.props.innerRef&&n.props.innerRef(t)},n._scheduleUpdate=function(){n._popper&&n._popper.scheduleUpdate()},e=f,o(n,e)}return a(t,n),y(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(n){n.placement===this.props.placement&&n.eventsEnabled===this.props.eventsEnabled&&n.target===this.props.target||(this._destroyPopper(),this._createPopper());n.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var i=this,n=this.props,r=n.placement,f=n.eventsEnabled,t=u({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(t.arrow=u({},this.props.modifiers.arrow||{},{element:this._arrowNode}));this._popper=new s.a(this._getTargetNode(),this._popperNode,{placement:r,eventsEnabled:f,modifiers:t});setTimeout(function(){return i._scheduleUpdate()})}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var n=this.props,f=n.component,i=(n.innerRef,n.placement,n.eventsEnabled,n.modifiers,n.children),r=c(n,["component","innerRef","placement","eventsEnabled","modifiers","children"]),o=this._getPopperStyle(),s=this._getPopperPlacement(),h=this._getPopperHide(),t;return"function"==typeof i?i({popperProps:{ref:this._handlePopperRef,style:o,"data-placement":s,"data-x-out-of-boundaries":h},restProps:r,scheduleUpdate:this._scheduleUpdate}):(t=u({},r,{style:u({},r.style,o),"data-placement":s,"data-x-out-of-boundaries":h}),"string"==typeof f?t.ref=this._handlePopperRef:t.innerRef=this._handlePopperRef,Object(e.createElement)(f,t,i))}}]),t}(e.Component);f.contextTypes={popperManager:r.a.object};f.childContextTypes={popper:r.a.object.isRequired};f.propTypes={component:r.a.oneOfType([r.a.node,r.a.func]),innerRef:r.a.func,placement:r.a.oneOf(h),eventsEnabled:r.a.bool,modifiers:r.a.object,children:r.a.oneOfType([r.a.node,r.a.func]),target:r.a.oneOfType([r.a.instanceOf("undefined"!=typeof Element?Element:Object),r.a.shape({getBoundingClientRect:r.a.func.isRequired,clientWidth:r.a.number.isRequired,clientHeight:r.a.number.isRequired})])};f.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}};t.a=f},function(n,t,i){"use strict";(function(n){function fi(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}function ei(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}}function ft(n){return n&&"[object Function]"==={}.toString.call(n)}function u(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function p(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function h(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=u(n),i=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(i+t.overflowY+r)?n:h(p(n))}function f(n){return 11===n?ii:10===n?ri:ii||ri}function e(n){var r,t,i;if(!n)return document.documentElement;for(r=f(10)?document.body:null,t=n.offsetParent;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===u(t,"position")?e(t):t:n?n.ownerDocument.documentElement:document.documentElement}function oi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||e(n.firstElementChild)===n)}function w(n){return null!==n.parentNode?w(n.parentNode):n}function l(n,t){var i,u;if(!(n&&n.nodeType&&t&&t.nodeType))return document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=f?n:t,s=f?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?oi(i)?i:e(i):(u=w(n),u.host?l(u.host,t):l(n,w(t).host))}function o(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===u?"scrollTop":"scrollLeft",i=n.nodeName,r;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||r)[t]):n[t]}function si(n,t){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=o(t,"top"),u=o(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function et(n,t){var i="x"===t?"Left":"Top",r="Left"===i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function ot(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],f(10)?i["offset"+n]+r["margin"+("Height"===n?"Top":"Left")]+r["margin"+("Height"===n?"Bottom":"Right")]:0)}function st(){var t=document.body,n=document.documentElement,i=f(10)&&getComputedStyle(n);return{height:ot("Height",t,n,i),width:ot("Width",t,n,i)}}function r(n){return i({},n,{right:n.left+n.width,bottom:n.top+n.height})}function b(n){var t={},e,s,l;try{f(10)?(t=n.getBoundingClientRect(),e=o(n,"top"),s=o(n,"left"),t.top+=e,t.left+=s,t.bottom+=e,t.right+=s):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?st():{},v=a.width||n.clientWidth||i.right-i.left,y=a.height||n.clientHeight||i.bottom-i.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=u(n),h-=et(l,"x"),c-=et(l,"y"),i.width-=h,i.height-=c),r(i)}function k(n,t){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],w=f(10),k="HTML"===t.nodeName,o=b(n),e=b(t),a=h(n),s=u(t),v=parseFloat(s.borderTopWidth,10),y=parseFloat(s.borderLeftWidth,10),i,c,l;return p&&"HTML"===t.nodeName&&(e.top=Math.max(e.top,0),e.left=Math.max(e.left,0)),i=r({top:o.top-e.top-v,left:o.left-e.left-y,width:o.width,height:o.height}),(i.marginTop=0,i.marginLeft=0,!w&&k)&&(c=parseFloat(s.marginTop,10),l=parseFloat(s.marginLeft,10),i.top-=v-c,i.bottom-=v-c,i.left-=y-l,i.right-=y-l,i.marginTop=c,i.marginLeft=l),(w&&!p?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(i=si(i,t)),i}function hi(n){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=k(n,t),f=Math.max(t.clientWidth,window.innerWidth||0),e=Math.max(t.clientHeight,window.innerHeight||0),s=u?0:o(t),h=u?0:o(t,"left");return r({top:s-i.top+i.marginTop,left:h-i.left+i.marginLeft,width:f,height:e})}function ht(n){var t=n.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===u(n,"position")||ht(p(n)))}function ct(n){if(!n||!n.parentElement||f())return document.documentElement;for(var t=n.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function d(n,t,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},s=o?ct(n):l(n,t),e,f;if("viewport"===r)u=hi(s,o);else if(e=void 0,"scrollParent"===r?(e=h(p(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=k(e,s,o),"HTML"!==e.nodeName||ht(s))u=f;else{var c=st(),a=c.height,v=c.width;u.top+=f.top-f.marginTop;u.bottom=a+f.top;u.left+=f.left-f.marginLeft;u.right=v+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){return n.width*n.height}function lt(n,t,r,u,f){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var e=d(r,u,l,f),o={top:{width:e.width,height:t.top-e.top},right:{width:e.right-t.right,height:e.height},bottom:{width:e.width,height:e.bottom-t.bottom},left:{width:t.left-e.left,height:e.height}},s=Object.keys(o).map(function(n){return i({key:n},o[n],{area:ci(o[n])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function at(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(i,r?ct(t):l(t,i),r)}function vt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function a(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function yt(n,t,i){i=i.split("-")[0];var r=vt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[a(f)],e}function c(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=c(n,function(n){return n[t]===i});return n.indexOf(r)}function pt(n,t,i){return(void 0===i?n:n.slice(0,li(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&ft(i)&&(t.offsets.popper=r(t.offsets.popper),t.offsets.reference=r(t.offsets.reference),t=i(t,n))}),t}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=lt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=yt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=pt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function wt(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function g(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,void 0!==document.body.style[r])return r;return null}function vi(){return this.state.isDestroyed=!0,wt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[g("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(n){var t=n.ownerDocument;return t?t.defaultView:window}function kt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||kt(h(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;bt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=h(n);return kt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return bt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){!1!==t[i]?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function di(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n}function gi(n,t,i,r,u){var f=at(u,t,n,i.positionFixed),e=lt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:i.positionFixed?"fixed":"absolute"}),i}function nr(n,t){var d=t.x,nt=t.y,u=n.offsets.popper,h=c(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,p,w,k;void 0!==h&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var tt=void 0!==h?h:t.gpuAcceleration,it=e(n.instance.popper),v=b(it),r={position:u.position},s={left:Math.floor(u.left),top:Math.round(u.top),bottom:Math.round(u.bottom),right:Math.floor(u.right)},f="bottom"===d?"top":"bottom",o="right"===nt?"left":"right",y=g("transform"),l=void 0,a=void 0;return(a="bottom"===f?-v.height+s.bottom:s.top,l="right"===o?-v.width+s.right:s.left,tt&&y)?(r[y]="translate3d("+l+"px, "+a+"px, 0)",r[f]=0,r[o]=0,r.willChange="transform"):(p="bottom"===f?-1:1,w="right"===o?-1:1,r[f]=a*p,r[o]=l*w,r.willChange=f+", "+o),k={"x-placement":n.placement},n.attributes=i({},k,n.attributes),n.styles=i({},r,n.styles),n.arrowStyles=i({},n.offsets.arrow,n.arrowStyles),n}function dt(n,t,i){var u=c(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function tr(n,t){var c,f;if(!dt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=t.element,"string"==typeof f){if(!(f=n.instance.popper.querySelector(f)))return n}else if(!n.instance.popper.contains(f))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var k=n.placement.split("-")[0],w=n.offsets,h=w.popper,e=w.reference,l=-1!==["left","right"].indexOf(k),v=l?"height":"width",y=l?"Top":"Left",i=y.toLowerCase(),d=l?"left":"top",a=l?"bottom":"right",o=vt(f)[v];e[a]-o<h[i]&&(n.offsets.popper[i]-=h[i]-(e[a]-o));e[i]+o>h[a]&&(n.offsets.popper[i]+=e[i]+o-h[a]);n.offsets.popper=r(n.offsets.popper);var g=e[i]+e[v]/2-o/2,b=u(n.instance.popper),nt=parseFloat(b["margin"+y],10),tt=parseFloat(b["border"+y+"Width"],10),p=g-n.offsets.popper[i]-nt-tt;return p=Math.max(Math.min(h[v]-o,p),0),n.arrowElement=f,n.offsets.arrow=(c={},s(c,i,Math.round(p)),s(c,d,""),c),n}function ir(n){return"end"===n?"start":"start"===n?"end":n}function gt(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=rt.indexOf(n),i=rt.slice(t+1).concat(rt.slice(0,t));return r?i.reverse():i}function rr(n,t){if(wt(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var e=d(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),r=n.placement.split("-")[0],o=a(r),u=n.placement.split("-")[1]||"",f=[];switch(t.behavior){case ut.FLIP:f=[r,o];break;case ut.CLOCKWISE:f=gt(r);break;case ut.COUNTERCLOCKWISE:f=gt(r,!0);break;default:f=t.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return n;r=n.placement.split("-")[0];o=a(r);var l=n.offsets.popper,v=n.offsets.reference,c=Math.floor,p="left"===r&&c(l.right)>c(v.left)||"right"===r&&c(l.left)<c(v.right)||"top"===r&&c(l.bottom)>c(v.top)||"bottom"===r&&c(l.top)<c(v.bottom),w=c(l.left)<c(e.left),b=c(l.right)>c(e.right),k=c(l.top)<c(e.top),d=c(l.bottom)>c(e.bottom),g="left"===r&&w||"right"===r&&b||"top"===r&&k||"bottom"===r&&d,y=-1!==["top","bottom"].indexOf(r),nt=!!t.flipVariations&&(y&&"start"===u&&w||y&&"end"===u&&b||!y&&"start"===u&&k||!y&&"end"===u&&d);(p||g||nt)&&(n.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=ir(u)),n.placement=r+(u?"-"+u:""),n.offsets.popper=i({},n.offsets.popper,yt(n.instance.popper,n.offsets.reference,n.placement)),n=pt(n.instance.modifiers,n,"flip"))}),n}function ur(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function fr(n,t,i,u){var s=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+s[1],f=s[2],o;if(!e)return n;if(0===f.indexOf("%")){o=void 0;switch(f){case"%p":o=i;break;case"%":case"%r":default:o=u}return r(o)[t]/100*e}return"vh"===f||"vw"===f?("vh"===f?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*e:e}function er(n,t,i,r){var s=[0,0],h=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(c(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1!==f?[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(1===r?!h:h)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return fr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function or(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:er(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function sr(n,t){var o=t.boundariesElement||e(n.instance.popper),f;n.instance.reference===o&&(o=e(o));var h=g("transform"),u=n.instance.popper.style,c=u.top,l=u.left,a=u[h];u.top="";u.left="";u[h]="";f=d(n.instance.popper,n.instance.reference,t.padding,o,n.positionFixed);u.top=c;u.left=l;u[h]=a;t.boundaries=f;var v=t.priority,r=n.offsets.popper,y={primary:function(n){var i=r[n];return r[n]<f[n]&&!t.escapeWithReference&&(i=Math.max(r[n],f[n])),s({},n,i)},secondary:function(n){var i="right"===n?"left":"top",u=r[i];return r[n]>f[n]&&!t.escapeWithReference&&(u=Math.min(r[i],f[n]-("right"===n?r.width:r.height))),s({},i,u)}};return v.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";r=i({},r,y[t](n))}),n.offsets.popper=r,n}function hr(n){var u=n.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=n.offsets,r=e.reference,o=e.popper,h=-1!==["bottom","top"].indexOf(l),t=h?"left":"top",c=h?"width":"height",a={start:s({},t,r[t]),end:s({},t,r[t]+r[c]-o[c])};n.offsets.popper=i({},o,a[f])}return n}function cr(n){if(!dt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=c(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function lr(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,i=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return i[e?"left":"top"]=o[t]-(s?i[e?"width":"height"]:0),n.placement=a(u),n.offsets.popper=r(i),n}for(var v="undefined"!=typeof window&&"undefined"!=typeof document,ni=["Edge","Trident","Firefox"],ti=0,it=0;it<ni.length;it+=1)if(v&&navigator.userAgent.indexOf(ni[it])>=0){ti=1;break}var ar=v&&window.Promise,vr=ar?fi:ei,ii=v&&!(!window.MSInputMethodContext||!document.documentMode),ri=v&&/MSIE 10/.test(navigator.userAgent),yr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},pr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},i=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},ui=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rt=ui.slice(3),ut={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},wr={shift:{order:100,enabled:!0,fn:hr},offset:{order:200,enabled:!0,fn:or,offset:0},preventOverflow:{order:300,enabled:!0,fn:sr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ur},arrow:{order:500,enabled:!0,fn:tr,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:lr},hide:{order:800,enabled:!0,fn:cr},computeStyle:{order:850,enabled:!0,fn:nr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:di,onLoad:gi,gpuAcceleration:void 0}},br={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:wr},y=function(){function n(t,r){var u=this,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e;yr(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=vr(this.update.bind(this));this.options=i({},n.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(i({},n.Defaults.modifiers,f.modifiers)).forEach(function(t){u.options.modifiers[t]=i({},n.Defaults.modifiers[t]||{},f.modifiers?f.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return i({name:n},u.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ft(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return pr(n,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),n}();y.Utils=("undefined"!=typeof window?window:n).PopperUtils;y.placements=ui;y.Defaults=br;t.a=y}).call(t,i(44))},function(n,t,i){"use strict";function o(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}var f=i(0),s=(i.n(f),i(1)),r=i.n(s),e=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(n,t){var h=n.component,c=void 0===h?"span":h,l=n.innerRef,r=n.children,u=o(n,["component","innerRef","children"]),a=t.popper,s=function(n){a.setArrowNode(n);"function"==typeof l&&l(n)},v=a.getArrowStyle(),i;return"function"==typeof r?r({arrowProps:{ref:s,style:v},restProps:u}):(i=e({},u,{style:e({},v,u.style)}),"string"==typeof c?i.ref=s:i.innerRef=s,Object(f.createElement)(c,i,r))};u.contextTypes={popper:r.a.object.isRequired};u.propTypes={component:r.a.oneOfType([r.a.node,r.a.func]),innerRef:r.a.func,children:r.a.oneOfType([r.a.node,r.a.func])};t.a=u},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=i(5),s=r(v),y=i(1),p=r(y),w=i(0),u=r(w),b=i(218),k=r(b),d=i(71),g=r(d),nt=i(3),tt=i(74),it=r(tt),rt=i(75),ut=r(rt),ft=i(12),et=it.default(k.default),f=function(n){function t(){var r,u,n,f;c(this,t);for(var s=arguments.length,h=Array(s),i=0;i<s;i++)h[i]=arguments[i];return u=n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(h))),n._renderToken=function(t,i){var r=n.props,u=r.onRemove,f=r.renderToken,e=o({},n.props,{onRemove:function(){return u(t)}});return f(t,e,i)},n._handleContainerClickOrFocus=function(t){if(n.props.disabled)return void t.target.blur();var i=n._input;t.target!==i&&(i.selectionStart=i.value.length);i.focus()},n._handleKeyDown=function(t){var i=n.props,f=i.onKeyDown,e=i.selected,o=i.value,r,u;switch(t.keyCode){case ft.BACKSPACE:t.target===n._input&&e.length&&!o&&(r=n._wrapper.children,u=r[r.length-2],u&&u.focus())}f(t)},f=u,e(n,f)}return l(t,n),a(t,[{key:"render",value:function(){var t=this,n=this.props,r=n.className,f=n.inputClassName,e=(n.labelKey,n.onRemove,n.renderToken,n.selected),i=h(n,["className","inputClassName","labelKey","onRemove","renderToken","selected"]);return u.default.createElement("div",{className:s.default("form-control","rbt-input-multi",r),disabled:i.disabled,onClick:this._handleContainerClickOrFocus,onFocus:this._handleContainerClickOrFocus,tabIndex:-1},u.default.createElement("div",{className:"rbt-input-wrapper",ref:function(n){return t._wrapper=n}},e.map(this._renderToken),u.default.createElement(et,o({},i,{inputClassName:s.default("rbt-input-main",f),inputRef:function(n){t._input=n;t.props.inputRef(n)},inputStyle:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0},onKeyDown:this._handleKeyDown,style:{position:"relative",zIndex:1}}))))}}]),t}(u.default.Component);f.propTypes={renderToken:p.default.func};f.defaultProps={renderToken:function(n,t,i){return u.default.createElement(g.default,{disabled:t.disabled,key:i,onRemove:t.onRemove,tabIndex:t.tabIndex},nt.getOptionLabel(n,t.labelKey))}};t.default=ut.default(f)},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function v(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=i(1),f=e(p),w=i(0),r=e(w),s={height:0,left:0,overflow:"scroll",position:"absolute",top:0,visibility:"hidden",whiteSpace:"pre"},b=["inputClassName","inputRef","inputStyle"],h=1,k=function(n){return b.forEach(function(t){return delete n[t]}),n},c=function(n,t){t.style.fontSize=n.fontSize;t.style.fontFamily=n.fontFamily;t.style.fontWeight=n.fontWeight;t.style.fontStyle=n.fontStyle;t.style.letterSpacing=n.letterSpacing;t.style.textTransform=n.textTransform},l=function(n){function t(){var r,u,n,f;a(this,t);for(var e=arguments.length,s=Array(e),i=0;i<e;i++)s[i]=arguments[i];return u=n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),n.state={inputWidth:h},n._copyInputStyles=function(){var t=n._input&&window.getComputedStyle&&window.getComputedStyle(n._input);t&&(c(t,n._sizer),n._placeHolderSizer&&c(t,n._placeHolderSizer))},n._updateInputWidth=function(){if(n._sizer&&void 0!==n._sizer.scrollWidth){n._copyInputStyles();var i=n._placeHolderSizer&&n._placeHolderSizer.scrollWidth||h,t=Math.max(n._sizer.scrollWidth,i)+2;t!==n.state.inputWidth&&n.setState({inputWidth:t})}},f=u,o(n,f)}return v(t,n),y(t,[{key:"componentDidMount",value:function(){this._updateInputWidth()}},{key:"componentDidUpdate",value:function(){this._updateInputWidth()}},{key:"render",value:function(){var n=this,t=this.props,o=t.className,h=t.defaultValue,f=t.placeholder,c=t.value,i=u({},this.props.style),e;return i.display||(i.display="inline-block"),e=k(u({},this.props,{className:this.props.inputClassName,style:u({},this.props.inputStyle,{boxSizing:"content-box",width:this.state.inputWidth+"px"})})),r.default.createElement("div",{className:o,style:i},r.default.createElement("input",u({},e,{ref:function(t){n._input=t;"function"==typeof n.props.inputRef&&n.props.inputRef(t)}})),r.default.createElement("div",{ref:function(t){return n._sizer=t},style:s},h||c||""),f?r.default.createElement("div",{ref:function(t){return n._placeHolderSizer=t},style:s},f):null)}}]),t}(r.default.Component);l.propTypes={inputClassName:f.default.string,inputRef:f.default.func,inputStyle:f.default.object};t.default=l},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){var r={};for(var i in n)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=i(5),a=r(l),v=i(0),u=r(v),y=i(74),p=r(y),w=i(75),b=r(w),k=function(n){function t(){return e(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,n),c(t,[{key:"render",value:function(){var n=this.props,t=n.className,i=n.inputRef,r=f(n,["className","inputRef"]);return u.default.createElement("input",h({},r,{className:a.default("rbt-input-main","form-control",t),ref:i,type:"text"}))}}]),t}(u.default.Component);t.default=b.default(p.default(k))},function(n,t){"use strict";function i(n){return function(t,i,r,u,f){var h=r||"<<anonymous>>",c=f||i;if(null==t[i])return new Error("The "+u+" `"+c+"` is required to make `"+h+"` accessible for users of assistive technologies such as screen readers.");for(var o=arguments.length,s=Array(o>5?o-5:0),e=5;e<o;e++)s[e-5]=arguments[e];return n.apply(void 0,[t,i,r,u,f].concat(s))}}Object.defineProperty(t,"__esModule",{value:!0});t.default=i;n.exports=t.default},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function v(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function w(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function b(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function k(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+Math.random().toString(36).substr(2,12)}function h(n){var r=n.defaultInputValue,u=n.defaultSelected,e=n.maxResults,o=n.multiple,t=n.selected?n.selected.slice():u.slice(),i=r;return!o&&t.length&&(i=f.getOptionLabel(l.default(t),n.labelKey),t.length>1&&(t=t.slice(0,1))),{activeIndex:-1,activeItem:null,initialItem:null,selected:t,showMenu:!1,shownResults:e,text:i}}function d(n){n=tt.default(ct.default)(n);var t=function(t){function i(n){p(this,i);var t=w(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,n));return t.blur=function(){t.getInput().blur();t._hideMenu()},t.clear=function(){t.setState(c({},h(t.props),{selected:[],text:""}),function(){t.props.onInputChange("")})},t.focus=function(){t.getInput().focus()},t.getInput=function(){return t._input},t._handleActiveIndexChange=function(n){var i={activeIndex:n};-1===n&&(i.activeItem=null);t.setState(i)},t._handleActiveItemChange=function(n){t.setState({activeItem:n})},t._handleClear=function(){t.clear();t._updateSelected([])},t._handleFocus=function(n){t.setState({showMenu:!0},function(){return t.props.onFocus(n)})},t._handleInitialItemChange=function(n){var r=t.props.labelKey,i=t.state.initialItem;a.default(n,i)||i&&n&&n.customOption&&n[r]===i[r]||t.setState({initialItem:n})},t._handleInputChange=function(n){n.persist();var i=n.target.value,r=h(t.props),f=r.activeIndex,e=r.activeItem,u=t.props,o=u.multiple,s=u.onInputChange;t.setState({activeIndex:f,activeItem:e,showMenu:!0,text:i},function(){return s(i,n)});t.state.selected.length&&!o&&t._updateSelected([])},t._handleKeyDown=function(n,i,r){var f=t.state.activeItem,u;switch(n.keyCode){case e.UP:case e.DOWN:if(!r){t._showMenu();break}for(u=t.state.activeIndex,n.preventDefault(),u+=n.keyCode===e.UP?-1:1;i[u]&&i[u].disabled;)u+=n.keyCode===e.UP?-1:1;u===i.length?u=-1:-2===u&&(u=i.length-1);t._handleActiveIndexChange(u);break;case e.ESC:r&&t._hideMenu();break;case e.RETURN:if(!r)break;n.preventDefault();f&&t._handleMenuItemSelect(f,n);break;case e.RIGHT:case e.TAB:if(!r)break;if(f&&!f.paginationOption){n.keyCode===e.TAB&&n.preventDefault();t._handleSelectionAdd(f);break}n.keyCode===e.TAB&&t._hideMenu()}t.props.onKeyDown(n)},t._handleMenuItemSelect=function(n,i){n.paginationOption?t._handlePaginate(i):t._handleSelectionAdd(n)},t._handlePaginate=function(n){n.persist();var i=t.props,r=i.maxResults,u=i.onPaginate;t.setState({shownResults:t.state.shownResults+r},function(){return u(n)})},t._handleSelectionAdd=function(n){var u=t.props,e=u.multiple,o=u.labelKey,i=void 0,r=void 0;e?(i=t.state.selected.concat(n),r=""):(i=[n],r=f.getOptionLabel(n,o));t._hideMenu();t.setState({initialItem:n,text:r});t._updateSelected(i)},t._handleSelectionRemove=function(n){var i=t.state.selected.filter(function(t){return!a.default(t,n)});t.focus();t._hideMenu();t._updateSelected(i)},t.handleClickOutside=function(){t.state.showMenu&&t._hideMenu()},t._hideMenu=function(){var n=h(t.props),i=n.activeIndex,r=n.activeItem,u=n.showMenu,f=n.shownResults;t.setState({activeIndex:i,activeItem:r,showMenu:u,shownResults:f})},t._showMenu=function(){t.setState({showMenu:!0})},t._updateSelected=function(n){t.setState({selected:n},function(){return t.props.onChange(n)})},t.state=h(n),t}return b(i,t),g(i,[{key:"getChildContext",value:function(){return{activeIndex:this.state.activeIndex,onActiveItemChange:this._handleActiveItemChange,onInitialItemChange:this._handleInitialItemChange,onMenuItemClick:this._handleMenuItemSelect}}},{key:"componentWillMount",value:function(){this._menuId=k("rbt-menu-")}},{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentWillReceiveProps",value:function(n){var u=n.labelKey,r=n.multiple,t=n.selected,i;if(t&&!a.default(t,this.state.selected)){if(this.setState({selected:t}),r)return;this.setState({text:t.length?f.getOptionLabel(l.default(t),u):""})}if(i=t||this.state.selected,!r&&i.length>1)return i=i.slice(0,1),void this.setState({selected:i,text:f.getOptionLabel(l.default(i),u)});r!==this.props.multiple&&this.setState({text:""})}},{key:"render",value:function(){var r=this,i=this.props,k=i.allowNew,d=i.emptyLabel,h=i.filterBy,l=i.labelKey,a=i.minLength,g=i.options,nt=i.paginate,tt=i.paginationText,e=this.state,p=e.shownResults,it=e.showMenu,o=e.text,t=[],w,b,u,s;return o.length>=a&&(w=Array.isArray(h)?f.defaultFilterBy:h,t=g.filter(function(n){return w(n,c({},r.props,r.state))})),b=nt&&t.length>p,(t=f.getTruncatedOptions(t,p),k&&(t=f.addCustomOption(t,o,l)),b)&&t.push((u={},v(u,f.getStringLabelKey(l),tt),v(u,"paginationOption",!0),u)),s=!!(o.length>=a&&it&&(t.length||d)),y.default.createElement(n,c({},this.props,this.state,{inputRef:function(n){return r._input=n},isMenuShown:s,menuId:this.props.menuId||this._menuId,onAdd:this._handleSelectionAdd,onChange:this._handleInputChange,onClear:this._handleClear,onFocus:this._handleFocus,onInitialItemChange:this._handleInitialItemChange,onKeyDown:function(n){return r._handleKeyDown(n,t,s)},onRemove:this._handleSelectionRemove,results:t}))}}]),i}(y.default.Component);return t.displayName="TypeaheadContainer("+f.getDisplayName(n)+")",t.propTypes={a11yNumResults:r.default.func,a11yNumSelected:r.default.func,align:r.default.oneOf(["justify","left","right"]),allowNew:r.default.bool,autoFocus:r.default.bool,bodyContainer:r.default.bool,caseSensitive:u.checkPropType(r.default.bool,u.caseSensitiveType),clearButton:r.default.bool,defaultInputValue:u.checkPropType(r.default.string,u.defaultInputValueType),defaultSelected:u.optionType,disabled:r.default.bool,dropup:r.default.bool,emptyLabel:r.default.node,filterBy:r.default.oneOfType([r.default.arrayOf(r.default.string.isRequired),r.default.func]),flip:r.default.bool,highlightOnlyResult:u.checkPropType(r.default.bool,u.highlightOnlyResultType),ignoreDiacritics:u.checkPropType(r.default.bool,u.ignoreDiacriticsType),inputProps:u.checkPropType(r.default.object,u.inputPropsType),isLoading:r.default.bool,labelKey:u.checkPropType(r.default.oneOfType([r.default.string,r.default.func]),u.labelKeyType),maxResults:r.default.number,menuId:r.default.oneOfType([r.default.number,r.default.string]),minLength:r.default.number,multiple:r.default.bool,onBlur:r.default.func,onChange:r.default.func,onFocus:r.default.func,onInputChange:r.default.func,onKeyDown:r.default.func,onMenuHide:r.default.func,onMenuShow:r.default.func,onPaginate:r.default.func,options:u.optionType.isRequired,paginate:r.default.bool,paginationText:r.default.string,placeholder:r.default.string,renderMenu:r.default.func,selected:u.optionType,selectHintOnEnter:r.default.bool},t.defaultProps={a11yNumResults:function(n){return f.pluralize("result",n.length)+". Use up and down arrow keys to navigate."},a11yNumSelected:function(n){return f.pluralize("selection",n.length)},align:"justify",allowNew:!1,autoFocus:!1,bodyContainer:!1,caseSensitive:!1,clearButton:!1,defaultInputValue:"",defaultSelected:[],disabled:!1,dropup:!1,emptyLabel:"No matches found.",filterBy:[],flip:!1,highlightOnlyResult:!1,ignoreDiacritics:!0,inputProps:{},isLoading:!1,labelKey:lt.DEFAULT_LABELKEY,maxResults:100,minLength:0,multiple:!1,onBlur:s.default,onChange:s.default,onFocus:s.default,onInputChange:s.default,onKeyDown:s.default,onMenuHide:s.default,onMenuShow:s.default,onPaginate:s.default,paginate:!0,paginationText:"Display additional results...",placeholder:"",selectHintOnEnter:!1},t.childContextTypes={activeIndex:r.default.number.isRequired,onActiveItemChange:r.default.func.isRequired,onInitialItemChange:r.default.func.isRequired,onMenuItemClick:r.default.func.isRequired},ot.default(t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},g=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),nt=i(222),tt=o(nt),it=i(35),l=o(it),rt=i(46),a=o(rt),ut=i(38),s=o(ut),ft=i(1),r=o(ft),et=i(73),ot=o(et),st=i(0),y=o(st),ht=i(230),ct=o(ht),u=i(231),f=i(3),lt=i(64),e=i(12);t.default=d},function(n,t,i){var r=i(223),u=r(!0);n.exports=u},function(n,t,i){function e(n){return o(function(t){var w=t.length,p=w,k=u.prototype.thru,e,i,b,o;for(n&&t.reverse();p--;){if(e=t[p],"function"!=typeof e)throw new TypeError(c);k&&!i&&"wrapper"==r(e)&&(i=new u([],!0))}for(p=i?p:w;++p<w;)e=t[p],b=r(e),o="wrapper"==b?s(e):void 0,i=o&&f(o[0])&&o[1]==(v|l|a|y)&&!o[4].length&&1==o[9]?i[r(o[0])].apply(i,o[3]):1==e.length&&f(e)?i[b]():i.thru(e);return function(){var u=arguments,f=u[0],n,r;if(i&&1==u.length&&h(f))return i.plant(f).value();for(n=0,r=w?t[n].apply(this,u):f;++n<w;)r=t[n].call(this,r);return r}})}var u=i(39),o=i(67),s=i(81),r=i(82),h=i(2),f=i(226),c="Expected a function",l=8,a=32,v=128,y=256;n.exports=e},function(n,t,i){var r=i(56),u=r&&new r;n.exports=u},function(n){n.exports={}},function(n,t,i){function r(n){var r=e(n),t=o[r],i;return"function"!=typeof t||!(r in u.prototype)?!1:n===t?!0:(i=f(t),!!i&&n===i[0])}var u=i(41),f=i(81),e=i(82),o=i(227);n.exports=r},function(n,t,i){function r(n){if(s(n)&&!o(n)&&!(n instanceof f)){if(n instanceof u)return n;if(l.call(n,"__wrapped__"))return h(n)}return new u(n)}var f=i(41),u=i(39),e=i(40),o=i(2),s=i(7),h=i(228),c=Object.prototype,l=c.hasOwnProperty;r.prototype=e.prototype;r.prototype.constructor=r;n.exports=r},function(n,t,i){function r(n){if(n instanceof u)return n.clone();var t=new f(n.__wrapped__,n.__chain__);return t.__actions__=e(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var u=i(41),f=i(39),e=i(229);n.exports=r},function(n){function t(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}n.exports=t},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function s(n){var t=function(t){function i(){var r,f,n,o;e(this,i);for(var s=arguments.length,h=Array(s),t=0;t<s;t++)h[t]=arguments[t];return f=n=u(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this].concat(h))),n.state={isOnlyResult:!1},n._handleKeyDown=function(t){var i=n.props,r=i.initialItem,u=i.onKeyDown,f=i.onAdd;switch(t.keyCode){case w.RETURN:n.state.isOnlyResult&&f(r)}u(t)},o=f,u(n,o)}return o(i,t),c(i,[{key:"componentWillReceiveProps",value:function(n){var i=n.allowNew,r=n.highlightOnlyResult,t=n.results;r&&!i&&t.length!==this.props.results.length&&this.setState({isOnlyResult:1===t.length&&!a.default(t).disabled})}},{key:"getChildContext",value:function(){return{isOnlyResult:this.state.isOnlyResult}}},{key:"render",value:function(){return f.default.createElement(n,h({},this.props,{onKeyDown:this._handleKeyDown}))}}]),i}(f.default.Component);return t.childContextTypes={isOnlyResult:y.default.bool.isRequired},t}Object.defineProperty(t,"__esModule",{value:!0});var h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=i(35),a=r(l),v=i(1),y=r(v),p=i(0),f=r(p),w=i(12);t.default=s},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});t.optionType=t.labelKeyType=t.inputPropsType=t.ignoreDiacriticsType=t.highlightOnlyResultType=t.defaultInputValueType=t.checkPropType=t.caseSensitiveType=void 0;var u=i(232),f=r(u),e=i(233),o=r(e),s=i(234),h=r(s),c=i(235),l=r(c),a=i(236),v=r(a),y=i(237),p=r(y),w=i(238),b=r(w),k=i(239),d=r(k);t.caseSensitiveType=f.default;t.checkPropType=o.default;t.defaultInputValueType=h.default;t.highlightOnlyResultType=l.default;t.ignoreDiacriticsType=v.default;t.inputPropsType=p.default;t.labelKeyType=b.default;t.optionType=d.default},function(n,t,i){"use strict";function r(n){var t=n.caseSensitive,i=n.filterBy;f.default(!t||"function"!=typeof i,"Your `filterBy` function will override the `caseSensitive` prop.")}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u)},function(n,t,i){"use strict";function r(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function u(n,t){return function(i,u,f){e.default.checkPropTypes(r({},u,n),i,"prop",f);"function"==typeof t&&t(i,u,f)}}Object.defineProperty(t,"__esModule",{value:!0});t.default=u;var f=i(1),e=function(n){return n&&n.__esModule?n:{"default":n}}(f)},function(n,t,i){"use strict";function r(n){var r=n.defaultInputValue,t=n.defaultSelected,u=n.multiple,i=n.selected,e=t.length?"defaultSelected":"selected";f.default(!(!u&&r&&(t.length||i&&i.length)),"`defaultInputValue` will be overridden by the value from `"+e+"`.")}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u)},function(n,t,i){"use strict";function r(n){var t=n.allowNew,i=n.highlightOnlyResult;f.default(!(i&&t),"`highlightOnlyResult` will not work with `allowNew`.")}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u)},function(n,t,i){"use strict";function r(n){var t=n.filterBy,i=n.ignoreDiacritics;f.default(i||"function"!=typeof t,"Your `filterBy` function will override the `ignoreDiacritics` prop.")}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u)},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){var t=n.inputProps;t&&e.default(t)&&h.forEach(function(n){var i=n.alt,r=n.prop,u=i?" Use the top-level `"+i+"` prop instead.":null;s.default(!t.hasOwnProperty(r),"The `"+r+"` property of `inputProps` will be ignored."+u)})}Object.defineProperty(t,"__esModule",{value:!0});t.default=u;var f=i(62),e=r(f),o=i(8),s=r(o),h=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}]},function(n,t,i){"use strict";function r(n){var t=n.allowNew,i=n.labelKey;f.default(!("function"==typeof i&&t),"`labelKey` must be a string when `allowNew={true}`.")}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u)},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(1),r=function(n){return n&&n.__esModule?n:{"default":n}}(u);t.default=r.default.oneOfType([r.default.arrayOf(r.default.object.isRequired),r.default.arrayOf(r.default.string.isRequired)])}])});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactTransitionGroup=t(require("react"),require("react-dom")):n.ReactTransitionGroup=t(n.React,n.ReactDOM)}(this,function(n,t){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=17)}([function(t){t.exports=n},function(n,t,i){"use strict";"function"==typeof Symbol&&Symbol.iterator;n.exports=i(14)()},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=i(6),v=u(a),y=i(0),e=u(y),p=i(1),o=u(p),w=i(15),r=(u(w),i(18)),b=(o.default.any,o.default.func,o.default.node,{component:"span",childFactory:function(n){return n}}),f=function(n){function t(i,u){h(this,t);var f=c(this,n.call(this,i,u));return f.performAppear=function(n,t){f.currentlyTransitioningKeys[n]=!0;t.componentWillAppear?t.componentWillAppear(f._handleDoneAppearing.bind(f,n,t)):f._handleDoneAppearing(n,t)},f._handleDoneAppearing=function(n,t){t.componentDidAppear&&t.componentDidAppear();delete f.currentlyTransitioningKeys[n];var i=r.getChildMapping(f.props.children);i&&i.hasOwnProperty(n)||f.performLeave(n,t)},f.performEnter=function(n,t){f.currentlyTransitioningKeys[n]=!0;t.componentWillEnter?t.componentWillEnter(f._handleDoneEntering.bind(f,n,t)):f._handleDoneEntering(n,t)},f._handleDoneEntering=function(n,t){t.componentDidEnter&&t.componentDidEnter();delete f.currentlyTransitioningKeys[n];var i=r.getChildMapping(f.props.children);i&&i.hasOwnProperty(n)||f.performLeave(n,t)},f.performLeave=function(n,t){f.currentlyTransitioningKeys[n]=!0;t.componentWillLeave?t.componentWillLeave(f._handleDoneLeaving.bind(f,n,t)):f._handleDoneLeaving(n,t)},f._handleDoneLeaving=function(n,t){t.componentDidLeave&&t.componentDidLeave();delete f.currentlyTransitioningKeys[n];var i=r.getChildMapping(f.props.children);i&&i.hasOwnProperty(n)?f.keysToEnter.push(n):f.setState(function(t){var i=s({},t.children);return delete i[n],{children:i}})},f.childRefs=Object.create(null),f.state={children:r.getChildMapping(i.children)},f}return l(t,n),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={};this.keysToEnter=[];this.keysToLeave=[]},t.prototype.componentDidMount=function(){var t=this.state.children;for(var n in t)t[n]&&this.performAppear(n,this.childRefs[n])},t.prototype.componentWillReceiveProps=function(n){var t=r.getChildMapping(n.children),i=this.state.children,u,e,f,o;this.setState({children:r.mergeChildMappings(i,t)});for(u in t)e=i&&i.hasOwnProperty(u),!t[u]||e||this.currentlyTransitioningKeys[u]||this.keysToEnter.push(u);for(f in i)o=t&&t.hasOwnProperty(f),!i[f]||o||this.currentlyTransitioningKeys[f]||this.keysToLeave.push(f)},t.prototype.componentDidUpdate=function(){var n=this,i=this.keysToEnter,t;this.keysToEnter=[];i.forEach(function(t){return n.performEnter(t,n.childRefs[t])});t=this.keysToLeave;this.keysToLeave=[];t.forEach(function(t){return n.performLeave(t,n.childRefs[t])})},t.prototype.render=function(){var t=this,i=[],r,n;for(r in this.state.children)!function(n){var r=t.state.children[n];if(r){var o="string"!=typeof r.ref,f=t.props.childFactory(r),u=function(i){t.childRefs[n]=i};f===r&&o&&(u=v.default(r.ref,u));i.push(e.default.cloneElement(f,{key:n,ref:u}))}}(r);return n=s({},this.props),delete n.transitionLeave,delete n.transitionName,delete n.transitionAppear,delete n.transitionEnter,delete n.childFactory,delete n.transitionLeaveTimeout,delete n.transitionEnterTimeout,delete n.transitionAppearTimeout,delete n.component,e.default.createElement(this.props.component,n,i)},t}(e.default.Component);f.displayName="TransitionGroup";f.propTypes={};f.defaultProps=b;t.default=f;n.exports=t.default},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=!("undefined"==typeof window||!window.document||!window.document.createElement);n.exports=t.default},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n){var t="transition"+n+"Timeout",i="transition"+n;return function(n){if(n[i]){if(null==n[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof n[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0;t.nameShape=void 0;t.transitionTimeout=f;var e=i(0),o=(u(e),i(1)),r=u(o);t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}t.__esModule=!0;var l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=i(0),e=r(a),v=i(1),o=r(v),y=i(2),p=r(y),w=i(16),b=r(w),u=i(4),k=(u.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,u.transitionTimeout("Appear"),u.transitionTimeout("Enter"),u.transitionTimeout("Leave"),{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}),f=function(n){function t(){var u,i,f;h(this,t);for(var o=arguments.length,c=Array(o),r=0;r<o;r++)c[r]=arguments[r];return u=i=s(this,n.call.apply(n,[this].concat(c))),i._wrapChild=function(n){return e.default.createElement(b.default,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},n)},f=u,s(i,f)}return c(t,n),t.prototype.render=function(){return e.default.createElement(p.default,l({},this.props,{childFactory:this._wrapChild}))},t}(e.default.Component);f.displayName="CSSTransitionGroup";f.propTypes={};f.defaultProps=k;t.default=f;n.exports=t.default},function(n){"use strict";n.exports=function(){for(var i=arguments.length,n=[],t=0;t<i;t++)n[t]=arguments[t];if(n=n.filter(function(n){return null!=n}),0!==n.length)return 1===n.length?n[0]:n.reduce(function(n,t){return function(){n.apply(this,arguments);t.apply(this,arguments)}})}},function(n,t,i){"use strict";function r(n,t){n.classList?n.classList.add(t):f.default(n)||(n.className=n.className+" "+t)}Object.defineProperty(t,"__esModule",{value:!0});t.default=r;var u=i(8),f=function(n){return n&&n.__esModule?n:{"default":n}}(u);n.exports=t.default},function(n,t){"use strict";function i(n,t){return n.classList?!!t&&n.classList.contains(t):-1!==(" "+n.className+" ").indexOf(" "+t+" ")}Object.defineProperty(t,"__esModule",{value:!0});t.default=i;n.exports=t.default},function(n){"use strict";n.exports=function(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},function(n,t,i){"use strict";var f;Object.defineProperty(t,"__esModule",{value:!0});t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var w=i(3),b=function(n){return n&&n.__esModule?n:{"default":n}}(w),u="transform",r=void 0,e=void 0,l=void 0,o=void 0,s=void 0,h=void 0,c=void 0,a=void 0,v=void 0,y=void 0,p=void 0;b.default&&(f=function(){for(var n,t=document.createElement("div").style,u={O:function(n){return"o"+n.toLowerCase()},Moz:function(n){return n.toLowerCase()},Webkit:function(n){return"webkit"+n},ms:function(n){return"MS"+n}},e=Object.keys(u),i=void 0,r=void 0,o="",f=0;f<e.length;f++)if(n=e[f],n+"TransitionProperty"in t){o="-"+n.toLowerCase();i=u[n]("TransitionEnd");r=u[n]("AnimationEnd");break}return!i&&"transitionProperty"in t&&(i="transitionend"),!r&&"animationName"in t&&(r="animationend"),t=null,{animationEnd:r,transitionEnd:i,prefix:o}}(),r=f.prefix,t.transitionEnd=e=f.transitionEnd,t.animationEnd=l=f.animationEnd,t.transform=u=r+"-"+u,t.transitionProperty=o=r+"-transition-property",t.transitionDuration=s=r+"-transition-duration",t.transitionDelay=c=r+"-transition-delay",t.transitionTiming=h=r+"-transition-timing-function",t.animationName=a=r+"-animation-name",t.animationDuration=v=r+"-animation-duration",t.animationTiming=y=r+"-animation-delay",t.animationDelay=p=r+"-animation-timing-function");t.transform=u;t.transitionProperty=o;t.transitionTiming=h;t.transitionDelay=c;t.transitionDuration=s;t.transitionEnd=e;t.animationName=a;t.animationDuration=v;t.animationTiming=y;t.animationDelay=p;t.animationEnd=l;t.default={transform:u,end:e,property:o,timing:h,delay:c,duration:s}},function(n,t,i){"use strict";function s(n){var t=(new Date).getTime(),i=Math.max(0,16-(t-f)),r=setTimeout(n,i);return f=t,r}var f;Object.defineProperty(t,"__esModule",{value:!0});var h=i(3),c=function(n){return n&&n.__esModule?n:{"default":n}}(h),r="clearTimeout",e=s,u=void 0,o=function(n,t){return n+(n?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};c.default&&["","webkit","moz","o","ms"].some(function(n){var t=o(n,"request");if(t in window)return r=o(n,"cancel"),e=function(n){return window[t](n)}});f=(new Date).getTime();u=function(n){return e(n)};u.cancel=function(n){window[r]&&"function"==typeof window[r]&&window[r](n)};t.default=u;n.exports=t.default},function(n){"use strict";function i(n){return function(){return n}}var t=function(){};t.thatReturns=i;t.thatReturnsFalse=i(!1);t.thatReturnsTrue=i(!0);t.thatReturnsNull=i(null);t.thatReturnsThis=function(){return this};t.thatReturnsArgument=function(n){return n};n.exports=t},function(n){"use strict";function t(n,t,r,u,f,e,o,s){var h,c,l;if(i(t),!n){void 0===t?h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[r,u,f,e,o,s],l=0,h=new Error(t.replace(/%s/g,function(){return c[l++]})),h.name="Invariant Violation");throw h.framesToPop=1,h;}}var i=function(){};n.exports=t},function(n,t,i){"use strict";var r=i(12),u=i(13);n.exports=function(){function n(){u(!1)}function t(){return n}n.isRequired=n;var i={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:t,element:n,instanceOf:t,node:n,objectOf:t,oneOf:t,oneOfType:t,shape:t};return i.checkPropTypes=r,i.PropTypes=i,i}},function(n){"use strict";var t=function(){};n.exports=t},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function v(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function y(n,t){return u.length?u.forEach(function(i){return n.addEventListener(i,t,!1)}):setTimeout(t,0),function(){u.length&&u.forEach(function(i){return n.removeEventListener(i,t,!1)})}}var o;t.__esModule=!0;var p=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},w=i(7),c=f(w),b=i(9),l=f(b),k=i(11),d=f(k),e=i(10),g=i(0),s=f(g),nt=i(1),r=f(nt),tt=i(19),it=i(4),u=[];e.transitionEnd&&u.push(e.transitionEnd);e.animationEnd&&u.push(e.animationEnd);o=(r.default.node,it.nameShape.isRequired,r.default.bool,r.default.bool,r.default.bool,r.default.number,r.default.number,r.default.number,function(n){function t(){var u,i,f;a(this,t);for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return u=i=h(this,n.call.apply(n,[this].concat(o))),i.componentWillAppear=function(n){i.props.appear?i.transition("appear",n,i.props.appearTimeout):n()},i.componentWillEnter=function(n){i.props.enter?i.transition("enter",n,i.props.enterTimeout):n()},i.componentWillLeave=function(n){i.props.leave?i.transition("leave",n,i.props.leaveTimeout):n()},f=u,h(i,f)}return v(t,n),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[];this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0;this.timeout&&clearTimeout(this.timeout);this.transitionTimeouts.forEach(function(n){clearTimeout(n)});this.classNameAndNodeQueue.length=0},t.prototype.transition=function(n,t,i){var r=tt.findDOMNode(this),s;if(!r)return void(t&&t());var f=this.props.name[n]||this.props.name+"-"+n,h=this.props.name[n+"Active"]||f+"-active",o=null,u=void 0;c.default(r,f);this.queueClassAndNode(h,r);s=function(n){n&&n.target!==r||(clearTimeout(o),u&&u(),l.default(r,f),l.default(r,h),u&&u(),t&&t())};i?(o=setTimeout(s,i),this.transitionTimeouts.push(o)):e.transitionEnd&&(u=y(r,s))},t.prototype.queueClassAndNode=function(n,t){var i=this;this.classNameAndNodeQueue.push({className:n,node:t});this.rafHandle||(this.rafHandle=d.default(function(){return i.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(n){n.node.scrollTop;c.default(n.node,n.className)});this.classNameAndNodeQueue.length=0;this.rafHandle=null},t.prototype.render=function(){var n=p({},this.props);return delete n.name,delete n.appear,delete n.enter,delete n.leave,delete n.appearTimeout,delete n.enterTimeout,delete n.leaveTimeout,delete n.children,s.default.cloneElement(s.default.Children.only(this.props.children),n)},t}(s.default.Component));o.displayName="CSSTransitionGroupChild";o.propTypes={};t.default=o;n.exports=t.default},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var u=i(5),f=r(u),e=i(2),o=r(e);n.exports={TransitionGroup:o.default,CSSTransitionGroup:f.default}},function(n,t,i){"use strict";function r(n){if(!n)return n;var t={};return f.Children.map(n,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function u(n,t){function s(i){return t.hasOwnProperty(i)?t[i]:n[i]}var f,r,o,i,e,u,h;n=n||{};t=t||{};f={};r=[];for(o in n)t.hasOwnProperty(o)?r.length&&(f[o]=r,r=[]):r.push(o);i=void 0;e={};for(u in t){if(f.hasOwnProperty(u))for(i=0;i<f[u].length;i++)h=f[u][i],e[f[u][i]]=s(h);e[u]=s(u)}for(i=0;i<r.length;i++)e[r[i]]=s(r[i]);return e}t.__esModule=!0;t.getChildMapping=r;t.mergeChildMappings=u;var f=i(0)},function(n){n.exports=t}])}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery","jquery.ui.widget"],n):n(window.jQuery)}(function(n){"use strict";n.support.xhrFileUpload=!!(window.XMLHttpRequestUpload&&window.FileReader);n.support.xhrFormDataFileUpload=!!window.FormData;n.widget("blueimp.fileupload",{options:{dropZone:n(document),pasteZone:n(document),fileInput:undefined,replaceFileInput:!0,paramName:undefined,singleFileUploads:!0,limitMultiFileUploads:undefined,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,formData:function(n){return n.serializeArray()},add:function(t,i){(i.autoUpload||i.autoUpload!==!1&&(n(this).data("blueimp-fileupload")||n(this).data("fileupload")).options.autoUpload)&&i.submit()},processData:!1,contentType:!1,cache:!1},_refreshOptionsList:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_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 typeof 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(n,t){if(n.lengthComputable){var i=Date.now?Date.now():(new Date).getTime(),r;if(t._time&&t.progressInterval&&i-t._time<t.progressInterval&&n.loaded!==n.total)return;t._time=i;r=Math.floor(n.loaded/n.total*(t.chunkSize||t._progress.total))+(t.uploadedBytes||0);this._progress.loaded+=r-t._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(i,this._progress.loaded,t.bitrateInterval);t._progress.loaded=t.loaded=r;t._progress.bitrate=t.bitrate=t._bitrateTimer.getBitrate(i,r,t.bitrateInterval);this._trigger("progress",n,t);this._trigger("progressall",n,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})},_initXHRData:function(t){var i,r=t.files[0],f=t.multipart||!n.support.xhrFileUpload,u=t.paramName[0];t.headers=t.headers||{};t.contentRange&&(t.headers["Content-Range"]=t.contentRange);f?n.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:u,value:t.blob}):n.each(t.files,function(n,r){i.push({name:t.paramName[n]||u,value:r})})):(t.formData instanceof FormData?i=t.formData:(i=new FormData,n.each(this._getFormData(t),function(n,t){i.append(t.name,t.value)})),t.blob?(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"',i.append(u,t.blob,r.name)):n.each(t.files,function(n,r){(window.Blob&&r instanceof Blob||window.File&&r instanceof File)&&i.append(t.paramName[n]||u,r,r.name)})),t.data=i):(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"',t.contentType=r.type,t.data=t.blob||r);t.blob=null},_initIframeSettings:function(t){t.dataType="iframe "+(t.dataType||"");t.formData=this._getFormData(t);t.redirect&&n("<a><\/a>").prop("href",t.url).prop("host")!==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,"iframe")},_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||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(n,t){var i=this;t.submit=function(){return this.state()!=="pending"&&(t.jqXHR=this.jqXHR=i._trigger("submit",n,this)!==!1&&i._onSend(n,this)),this.jqXHR||i._getXHRPromise()};t.abort=function(){return this.jqXHR?this.jqXHR.abort():i._getXHRPromise()};t.state=function(){if(this.jqXHR)return i._getDeferredState(this.jqXHR)};t.progress=function(){return this._progress};t.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){var u=this,f=t.files[0],e=f.size,r=t.uploadedBytes=t.uploadedBytes||0,c=t.maxChunkSize||e,l=f.slice||f.webkitSlice||f.mozSlice,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="Uploaded bytes exceed file size",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;i._progress.loaded===s&&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",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.pipe(o)):h=this._sequence=this._sequence.pipe(o,o),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 s=this,l=!0,u=n.extend({},this.options,i),f=u.limitMultiFileUploads,h=this._getParamName(u),e,c,o,r;if((u.singleFileUploads||f)&&this._isXHRUpload(u))if(!u.singleFileUploads&&f)for(o=[],e=[],r=0;r<i.files.length;r+=f)o.push(i.files.slice(r,r+f)),c=h.slice(r,r+f),c.length||(c=h),e.push(c);else e=h;else o=[i.files],e=[h];return i.originalFiles=i.files,n.each(o||i.files,function(r,u){var f=n.extend({},i);return f.files=o?u:[u],f.paramName=e[r],s._initResponseObject(f),s._initProgressObject(f),s._addConvenienceMethods(t,f),l=s._trigger("add",t,f)}),l},_replaceFileInput:function(t){var i=t.clone(!0);n("<form><\/form>").append(i)[0].reset();t.after(i).detach();n.cleanData(t.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(n,r){return r===t[0]?i[0]:r});t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var e=this,r=n.Deferred(),u=function(n){n&&!n.entry&&(n.entry=t);r.resolve([n])},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?(f=t.createReader(),f.readEntries(function(n){e._handleFileTreeEntries(n,i+t.name+"/").done(function(n){r.resolve(n)}).fail(u)},u)):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)})).pipe(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)).pipe(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(n){i.files=n;r.options.replaceFileInput&&r._replaceFileInput(i.fileInput);r._trigger("change",t,i)!==!1&&r._onAdd(t,i)})},_onPaste:function(t){var r=t.originalEvent.clipboardData,u=r&&r.items||[],i={files:[]};return n.each(u,function(n,t){var r=t.getAsFile&&t.getAsFile();r&&i.files.push(r)}),this._trigger("paste",t,i)===!1||this._onAdd(t,i)===!1?!1:void 0},_onDrop:function(n){var r=this,t=n.dataTransfer=n.originalEvent.dataTransfer,i={};t&&t.files&&t.files.length&&n.preventDefault();this._getDroppedFiles(t).always(function(t){i.files=t;r._trigger("drop",n,i)!==!1&&r._onAdd(n,i)})},_onDragOver:function(t){var i=t.dataTransfer=t.originalEvent.dataTransfer;if(this._trigger("dragover",t)===!1)return!1;i&&n.inArray("Files",i.types)!==-1&&(i.dropEffect="copy",t.preventDefault())},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste}));this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(t,i){var r=n.inArray(t,this._refreshOptionsList)!==-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))},_create:function(){var t=this.options;n.extend(t,n(this.element[0].cloneNode(!1)).data());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(),r=i.promise(),u,f;return r.abort=function(){return(f=!0,u)?u.abort():(i.reject(null,"abort","abort"),r)},this._getFileInputFiles(t.fileInput).always(function(n){f||(t.files=n,u=e._onSend(null,t).then(function(n,t,r){i.resolve(n,t,r)},function(n,t,r){i.reject(n,t,r)}))}),this._enhancePromise(r)}if(t.files=n.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(n){"use strict";function u(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),n(this).ajaxSubmit(i))}function f(t){var r=t.target,u=n(r),f,i,e;if(!u.is("[type=submit],[type=image]")){if(f=u.closest("[type=submit]"),f.length===0)return;r=f[0]}i=this;i.clk=r;r.type=="image"&&(t.offsetX!==undefined?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):typeof n.fn.offset=="function"?(e=u.offset(),i.clk_x=t.pageX-e.left,i.clk_y=t.pageY-e.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop));setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function t(){if(n.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i={},r;i.fileapi=n("<input type='file'/>").get(0).files!==undefined;i.formdata=window.FormData!==undefined;r=!!n.fn.prop;n.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var n=this.prop.apply(this,arguments);return n&&n.jquery||typeof n=="string"?n:this.attr.apply(this,arguments)};n.fn.ajaxSubmit=function(u){function ft(t){for(var r=n.param(t).split("&"),e=r.length,f=[],u,i=0;i<e;i++)r[i]=r[i].replace(/\+/g," "),u=r[i].split("="),f.push([decodeURIComponent(u[0]),decodeURIComponent(u[1])]);return f}function et(t){for(var f,r,o,e=new FormData,i=0;i<t.length;i++)e.append(t[i].name,t[i].value);if(u.extraData)for(f=ft(u.extraData),i=0;i<f.length;i++)f[i]&&e.append(f[i][0],f[i][1]);return u.data=null,r=n.extend(!0,{},n.ajaxSettings,u,{contentType:!1,processData:!1,cache:!1,type:h||"POST"}),u.uploadProgress&&(r.xhr=function(){var n=jQuery.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",function(n){var t=0,i=n.loaded||n.position,r=n.total;n.lengthComputable&&(t=Math.ceil(i/r*100));u.uploadProgress(n,i,r,t)},!1),n}),r.data=null,o=r.beforeSend,r.beforeSend=function(n,t){t.data=e;o&&o.call(this,n,t)},n.ajax(r)}function rt(i){function ot(n){return n.contentWindow?n.contentWindow.document:n.contentDocument?n.contentDocument:n.document}function st(){function s(){try{var n=ot(a).readyState;t("state = "+n);n&&n.toLowerCase()=="uninitialized"&&setTimeout(s,50)}catch(i){t("Server abort: ",i," (",i.name,")");b(tt);g&&clearTimeout(g);g=undefined}}var u=f.attr2("target"),o=f.attr2("action"),r,i,c;l.setAttribute("target",d);h||l.setAttribute("method","POST");o!=e.url&&l.setAttribute("action",e.url);e.skipEncodingOverride||h&&!/post/i.test(h)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});e.timeout&&(g=setTimeout(function(){rt=!0;b(ut)},e.timeout));r=[];try{if(e.extraData)for(i in e.extraData)e.extraData.hasOwnProperty(i)&&(n.isPlainObject(e.extraData[i])&&e.extraData[i].hasOwnProperty("name")&&e.extraData[i].hasOwnProperty("value")?r.push(n('<input type="hidden" name="'+e.extraData[i].name+'">').val(e.extraData[i].value).appendTo(l)[0]):r.push(n('<input type="hidden" name="'+i+'">').val(e.extraData[i]).appendTo(l)[0]));e.iframeTarget||(v.appendTo("body"),a.attachEvent?a.attachEvent("onload",b):a.addEventListener("load",b,!1));setTimeout(s,15);try{l.submit()}catch(y){c=document.createElement("form").submit;c.apply(l)}}finally{l.setAttribute("action",o);u?l.setAttribute("target",u):f.removeAttr("target");n(r).remove()}}function b(i){var r,u,w,f,k,d,h,c,l;if(!o.aborted&&!lt){try{s=ot(a)}catch(it){t("cannot access response document: ",it);i=tt}if(i===ut&&o){o.abort("timeout");y.reject(o,"timeout");return}if(i==tt&&o){o.abort("server abort");y.reject(o,"error","server abort");return}if(s&&s.location.href!=e.iframeSrc||rt){a.detachEvent?a.detachEvent("onload",b):a.removeEventListener("load",b,!1);r="success";try{if(rt)throw"timeout";if(w=e.dataType=="xml"||s.XMLDocument||n.isXMLDoc(s),t("isXml="+w),!w&&window.opera&&(s.body===null||!s.body.innerHTML)&&--ct){t("requeing onLoad callback, DOM not available");setTimeout(b,250);return}f=s.body?s.body:s.documentElement;o.responseText=f?f.innerHTML:null;o.responseXML=s.XMLDocument?s.XMLDocument:s;w&&(e.dataType="xml");o.getResponseHeader=function(n){var t={"content-type":e.dataType};return t[n]};f&&(o.status=Number(f.getAttribute("status"))||o.status,o.statusText=f.getAttribute("statusText")||o.statusText);k=(e.dataType||"").toLowerCase();d=/(json|script|text)/.test(k);d||e.textarea?(h=s.getElementsByTagName("textarea")[0],h?(o.responseText=h.value,o.status=Number(h.getAttribute("status"))||o.status,o.statusText=h.getAttribute("statusText")||o.statusText):d&&(c=s.getElementsByTagName("pre")[0],l=s.getElementsByTagName("body")[0],c?o.responseText=c.textContent?c.textContent:c.innerText:l&&(o.responseText=l.textContent?l.textContent:l.innerText))):k=="xml"&&!o.responseXML&&o.responseText&&(o.responseXML=at(o.responseText));try{ht=yt(o,k,e)}catch(nt){r="parsererror";o.error=u=nt||r}}catch(nt){t("error caught: ",nt);r="error";o.error=u=nt||r}o.aborted&&(t("upload aborted"),r=null);o.status&&(r=o.status>=200&&o.status<300||o.status===304?"success":"error");r==="success"?(e.success&&e.success.call(e.context,ht,"success",o),y.resolve(o.responseText,"success",o),p&&n.event.trigger("ajaxSuccess",[o,e])):r&&(u===undefined&&(u=o.statusText),e.error&&e.error.call(e.context,o,r,u),y.reject(o,"error",u),p&&n.event.trigger("ajaxError",[o,e,u]));p&&n.event.trigger("ajaxComplete",[o,e]);p&&!--n.active&&n.event.trigger("ajaxStop");e.complete&&e.complete.call(e.context,o,r);lt=!0;e.timeout&&clearTimeout(g);setTimeout(function(){e.iframeTarget||v.remove();o.responseXML=null},100)}}}var l=f[0],it,nt,e,p,d,v,a,o,k,w,rt,g,y=n.Deferred(),ut,tt,ft,et,ht,s,ct,lt;if(i)for(nt=0;nt<c.length;nt++)it=n(c[nt]),r?it.prop("disabled",!1):it.removeAttr("disabled");if(e=n.extend(!0,{},n.ajaxSettings,u),e.context=e.context||e,d="jqFormIO"+(new Date).getTime(),e.iframeTarget?(v=n(e.iframeTarget),w=v.attr2("name"),w?d=w:v.attr2("name",d)):(v=n('<iframe name="'+d+'" src="'+e.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),a=v[0],o={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r=i==="timeout"?"timeout":"aborted";t("aborting upload... "+r);this.aborted=1;try{a.contentWindow.document.execCommand&&a.contentWindow.document.execCommand("Stop")}catch(u){}v.attr("src",e.iframeSrc);o.error=r;e.error&&e.error.call(e.context,o,r,i);p&&n.event.trigger("ajaxError",[o,e,r]);e.complete&&e.complete.call(e.context,o,r)}},p=e.global,p&&0==n.active++&&n.event.trigger("ajaxStart"),p&&n.event.trigger("ajaxSend",[o,e]),e.beforeSend&&e.beforeSend.call(e.context,o,e)===!1)return e.global&&n.active--,y.reject(),y;if(o.aborted)return y.reject(),y;k=l.clk;k&&(w=k.name,w&&!k.disabled&&(e.extraData=e.extraData||{},e.extraData[w]=k.value,k.type=="image"&&(e.extraData[w+".x"]=l.clk_x,e.extraData[w+".y"]=l.clk_y)));ut=1;tt=2;ft=n("meta[name=csrf-token]").attr("content");et=n("meta[name=csrf-param]").attr("content");et&&ft&&(e.extraData=e.extraData||{},e.extraData[et]=ft);e.forceSync?st():setTimeout(st,10);ct=50;var at=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null},vt=n.parseJSON||function(s){return window.eval("("+s+")")},yt=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e=i==="xml"||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&u.documentElement.nodeName==="parsererror"&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),typeof u=="string"&&(i==="json"||!i&&f.indexOf("json")>=0?u=vt(u):(i==="script"||!i&&f.indexOf("javascript")>=0)&&n.globalEval(u)),u};return y}var h,b,e,f,a,v,c,y,o,l,s,d,it,p,w;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(f=this,typeof u=="function"&&(u={success:u}),h=this.attr2("method"),b=this.attr2("action"),e=typeof b=="string"?n.trim(b):"",e=e||window.location.href||"",e&&(e=(e.match(/^([^#]+)/)||[])[1]),u=n.extend(!0,{url:e,success:n.ajaxSettings.success,type:h||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},u),a={},this.trigger("form-pre-serialize",[this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(u.beforeSerialize&&u.beforeSerialize(this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(v=u.traditional,v===undefined&&(v=n.ajaxSettings.traditional),c=[],o=this.formToArray(u.semantic,c),u.data&&(u.extraData=u.data,y=n.param(u.data,v)),u.beforeSubmit&&u.beforeSubmit(o,this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[o,this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;l=n.param(o,v);y&&(l=l?l+"&"+y:y);u.type.toUpperCase()=="GET"?(u.url+=(u.url.indexOf("?")>=0?"&":"?")+l,u.data=null):u.data=l;s=[];u.resetForm&&s.push(function(){f.resetForm()});u.clearForm&&s.push(function(){f.clearForm(u.includeHidden)});!u.dataType&&u.target?(d=u.success||function(){},s.push(function(t){var i=u.replaceTarget?"replaceWith":"html";n(u.target)[i](t).each(d,arguments)})):u.success&&s.push(u.success);u.success=function(n,t,i){for(var e=u.context||this,r=0,o=s.length;r<o;r++)s[r].apply(e,[n,t,i||f,f])};var ut=n('input[type=file]:enabled[value!=""]',this),g=ut.length>0,nt="multipart/form-data",tt=f.attr("enctype")==nt||f.attr("encoding")==nt,k=i.fileapi&&i.formdata;for(t("fileAPI :"+k),it=(g||tt)&&!k,u.iframe!==!1&&(u.iframe||it)?u.closeKeepAlive?n.get(u.closeKeepAlive,function(){p=rt(o)}):p=rt(o):p=(g||tt)&&k?et(o):n.ajax(u),f.removeData("jqxhr").data("jqxhr",p),w=0;w<c.length;w++)c[w]=null;return this.trigger("form-submit-notify",[this,u]),this};n.fn.ajaxForm=function(i){if(i=i||{},i.delegation=i.delegation&&n.isFunction(n.fn.on),!i.delegation&&this.length===0){var r={s:this.selector,c:this.context};return!n.isReady&&r.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(r.s,r.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}if(i.delegation){n(document).off("submit.form-plugin",this.selector,u).off("click.form-plugin",this.selector,f).on("submit.form-plugin",this.selector,i,u).on("click.form-plugin",this.selector,i,f);return this}return this.ajaxFormUnbind().bind("submit.form-plugin",i,u).bind("click.form-plugin",i,f)};n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};n.fn.formToArray=function(t,r){var o=[],e,c,l,s,f,h,u,p,w,a,y,v;if(this.length===0||(e=this[0],c=t?e.getElementsByTagName("*"):e.elements,!c))return o;for(l=0,p=c.length;l<p;l++)if(u=c[l],f=u.name,f&&!u.disabled){if(t&&e.clk&&u.type=="image"){e.clk==u&&(o.push({name:f,value:n(u).val(),type:u.type}),o.push({name:f+".x",value:e.clk_x},{name:f+".y",value:e.clk_y}));continue}if(h=n.fieldValue(u,!0),h&&h.constructor==Array)for(r&&r.push(u),s=0,w=h.length;s<w;s++)o.push({name:f,value:h[s]});else if(i.fileapi&&u.type=="file")if(r&&r.push(u),a=u.files,a.length)for(s=0;s<a.length;s++)o.push({name:f,value:a[s],type:u.type});else o.push({name:f,value:"",type:u.type});else h!==null&&typeof h!="undefined"&&(r&&r.push(u),o.push({name:f,value:h,type:u.type,required:u.required}))}return!t&&e.clk&&(y=n(e.clk),v=y[0],f=v.name,f&&!v.disabled&&v.type=="image"&&(o.push({name:f,value:y.val()}),o.push({name:f+".x",value:e.clk_x},{name:f+".y",value:e.clk_y}))),o};n.fn.formSerialize=function(t){return n.param(this.formToArray(t))};n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var f=this.name,r,u,e;if(f)if(r=n.fieldValue(this,t),r&&r.constructor==Array)for(u=0,e=r.length;u<e;u++)i.push({name:f,value:r[u]});else r!==null&&typeof r!="undefined"&&i.push({name:this.name,value:r})}),n.param(i)};n.fn.fieldValue=function(t){for(var f,i,r=[],u=0,e=this.length;u<e;u++)(f=this[u],i=n.fieldValue(f,t),i!==null&&typeof i!="undefined"&&(i.constructor!=Array||i.length))&&(i.constructor==Array?n.merge(r,i):r.push(i));return r};n.fieldValue=function(t,i){var a=t.name,u=t.type,h=t.tagName.toLowerCase(),e,o,r,f;if(i===undefined&&(i=!0),i&&(!a||t.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!t.checked||(u=="submit"||u=="image")&&t.form&&t.form.clk!=t||h=="select"&&t.selectedIndex==-1))return null;if(h=="select"){if(e=t.selectedIndex,e<0)return null;var c=[],l=t.options,s=u=="select-one",v=s?e+1:l.length;for(o=s?e:0;o<v;o++)if(r=l[o],r.selected){if(f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value),s)return f;c.push(f)}return c}return n(t).val()};n.fn.clearForm=function(t){return this.each(function(){n("input,select,textarea",this).clearFields(t)})};n.fn.clearFields=n.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var r=this.type,u=this.tagName.toLowerCase();i.test(r)||u=="textarea"?this.value="":r=="checkbox"||r=="radio"?this.checked=!1:u=="select"?this.selectedIndex=-1:r=="file"?/MSIE/.test(navigator.userAgent)?n(this).replaceWith(n(this).clone(!0)):n(this).val(""):t&&(t===!0&&/hidden/.test(r)||typeof t=="string"&&n(this).is(t))&&(this.value="")})};n.fn.resetForm=function(){return this.each(function(){typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset()})};n.fn.enable=function(n){return n===undefined&&(n=!0),this.each(function(){this.disabled=!n})};n.fn.selected=function(t){return t===undefined&&(t=!0),this.each(function(){var r=this.type,i;r=="checkbox"||r=="radio"?this.checked=t:this.tagName.toLowerCase()=="option"&&(i=n(this).parent("select"),t&&i[0]&&i[0].type=="select-one"&&i.find("option").selected(!1),this.selected=t)})};n.fn.ajaxSubmit.debug=!1}(jQuery),function(n,t){var u=document.createElement("input"),i={setSelectionRange:"setSelectionRange"in u||"selectionStart"in u,createTextRange:"createTextRange"in u||"selection"in document},a=/\r\n/g,o=/\r/g,r=function(t){return typeof t.value!="undefined"?t.value:n(t).text()},v=function(t,i){typeof t.value!="undefined"?t.value=i:n(t).text(i)},f=function(n,t){var u=r(n).replace(o,""),i=u.length;return typeof t=="undefined"&&(t=i),t=Math.floor(t),t<0&&(t=i+t),t<0&&(t=0),t>i&&(t=i),t},y=function(n,t){return n.hasAttribute?n.hasAttribute(t):typeof n[t]!="undefined"},e=function(n,t,i,r){this.start=n||0;this.end=t||0;this.length=i||0;this.text=r||""};e.prototype.toString=function(){return JSON.stringify(this,null,"    ")};var p=function(n){return n.selectionStart},w=function(n){var t,i,u,e,f;return(n.focus(),n.focus(),t=document.selection.createRange(),t&&t.parentElement()===n)?(u=r(n),e=u.length,i=n.createTextRange(),i.moveToBookmark(t.getBookmark()),f=n.createTextRange(),f.collapse(!1),i.compareEndPoints("StartToEnd",f)>-1?u.replace(a,"\n").length:-i.moveStart("character",-e)):0},s=function(n){return n?i.setSelectionRange?p(n):i.createTextRange?w(n):t:t},b=function(n,t){n.setSelectionRange(t,t)},k=function(n,t){var i=n.createTextRange();i.move("character",t);i.select()},h=function(n,t){n.focus();t=f(n,t);i.setSelectionRange?b(n,t):i.createTextRange&&k(n,t)},d=function(n,t){var i=s(n),u=r(n).replace(o,""),f=+(i+t.length+(u.length-i)),e=+n.getAttribute("maxlength"),c;y(n,"maxlength")&&f>e&&(c=t.length-(f-e),t=t.substr(0,c));v(n,u.substr(0,i)+t+u.substr(i));h(n,i+t.length)},g=function(n){var t=new e,i,u;return t.start=n.selectionStart,t.end=n.selectionEnd,i=Math.min(t.start,t.end),u=Math.max(t.start,t.end),t.length=u-i,t.text=r(n).substring(i,u),t},nt=function(n){var t=new e,s;if(n.focus(),s=document.selection.createRange(),s&&s.parentElement()===n){var o,h,u,c,i=0,f=0,l=r(n);o=l.length;h=l.replace(/\r\n/g,"\n");u=n.createTextRange();u.moveToBookmark(s.getBookmark());c=n.createTextRange();c.collapse(!1);u.compareEndPoints("StartToEnd",c)>-1?i=f=o:(i=-u.moveStart("character",-o),i+=h.slice(0,i).split("\n").length-1,f=u.compareEndPoints("EndToEnd",c)>-1?o:-u.moveEnd("character",-o)+(h.slice(0,f).split("\n").length-1));i-=l.substring(0,i).split("\r\n").length-1;f-=l.substring(0,f).split("\r\n").length-1;t.start=i;t.end=f;t.length=t.end-t.start;t.text=h.substr(t.start,t.length)}return t},c=function(n){return n?i.setSelectionRange?g(n):i.createTextRange?nt(n):t:t},tt=function(n,t,i){n.setSelectionRange(t,i)},it=function(n,t,i){var r=n.createTextRange();r.moveEnd("textedit",-1);r.moveStart("character",t);r.moveEnd("character",i-t);r.select()},l=function(n,t,r){t=f(n,t);r=f(n,r);i.setSelectionRange?tt(n,t,r):i.createTextRange&&it(n,t,r)},rt=function(t,i){var u=n(t),f=u.val(),r=c(t),s=+(r.start+i.length+(f.length-r.end)),h=+u.attr("maxlength"),a,v,y,e,o;u.is("[maxlength]")&&s>h&&(a=i.length-(s-h),i=i.substr(0,a));v=f.substr(0,r.start);y=f.substr(r.end);u.val(v+i+y);e=r.start;o=e+i.length;l(t,r.length?e:o,o)},ut=function(n){var t=window.getSelection(),i=document.createRange();i.selectNodeContents(n);t.removeAllRanges();t.addRange(i)},ft=function(n){var t=document.body.createTextRange();t.moveToElementText(n);t.select()},et=function(t){var r=n(t);if(r.is("input, textarea")||t.select){r.select();return}i.setSelectionRange?ut(t):i.createTextRange&&ft(t)},ot=function(){document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()};n.extend(n.fn,{caret:function(){var n=this.filter("input, textarea"),t,i,r;return arguments.length===0?(t=n.get(0),s(t)):(typeof arguments[0]=="number"?(i=arguments[0],n.each(function(n,t){h(t,i)})):(r=arguments[0],n.each(function(n,t){d(t,r)})),this)},range:function(){var n=this.filter("input, textarea"),t,i,r,u;return arguments.length===0?(t=n.get(0),c(t)):(typeof arguments[0]=="number"?(i=arguments[0],r=arguments[1],n.each(function(n,t){l(t,i,r)})):(u=arguments[0],n.each(function(n,t){rt(t,u)})),this)},selectAll:function(){return this.each(function(n,t){et(t)})}});n.extend(n,{deselectAll:function(){return ot(),this}})}(window.jQuery||window.Zepto||window.$),function(n){var u,f;n.fn.drag=function(t,i,r){var u=typeof t=="string"?t:"",f=n.isFunction(t)?t:n.isFunction(i)?i:null;return u.indexOf("drag")!==0&&(u="drag"+u),r=(t==f?i:r)||{},f?this.bind(u,r,f):this.trigger(u)};var i=n.event,r=i.special,t=r.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(i){var r=n.data(this,t.datakey),u=i.data||{};r.related+=1;n.each(t.defaults,function(n){u[n]!==undefined&&(r[n]=u[n])})},remove:function(){n.data(this,t.datakey).related-=1},setup:function(){if(!n.data(this,t.datakey)){var r=n.extend({related:0},t.defaults);n.data(this,t.datakey,r);i.add(this,"touchstart mousedown",t.init,r);this.attachEvent&&this.attachEvent("ondragstart",t.dontstart)}},teardown:function(){var r=n.data(this,t.datakey)||{};r.related||(n.removeData(this,t.datakey),i.remove(this,"touchstart mousedown",t.init),t.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",t.dontstart))},init:function(u){if(!t.touched){var f=u.data,e;if(u.which==0||!(f.which>0)||u.which==f.which)return n(u.target).is(f.not)?void 0:f.handle&&!n(u.target).closest(f.handle,u.currentTarget).length?void 0:(t.touched=u.type=="touchstart"?this:null,f.propagates=1,f.mousedown=this,f.interactions=[t.interaction(this,f)],f.target=u.target,f.pageX=u.pageX,f.pageY=u.pageY,f.dragging=null,e=t.hijack(u,"draginit",f),!f.propagates)?void 0:(e=t.flatten(e),e&&e.length&&(f.interactions=[],n.each(e,function(){f.interactions.push(t.interaction(this,f))})),f.propagates=f.interactions.length,f.drop!==!1&&r.drop&&r.drop.handler(u,f),t.textselect(!1),t.touched?i.add(t.touched,"touchmove touchend",t.handler,f):i.add(document,"mousemove mouseup",t.handler,f),!t.touched||f.live?!1:void 0)}},interaction:function(i,r){var u=n(i)[r.relative?"position":"offset"]()||{top:0,left:0};return{drag:i,callback:new t.callback,droppable:[],offset:u}},handler:function(u){var f=u.data;switch(u.type){case!f.dragging&&"touchmove":u.preventDefault();case!f.dragging&&"mousemove":if(Math.pow(u.pageX-f.pageX,2)+Math.pow(u.pageY-f.pageY,2)<Math.pow(f.distance,2))break;u.target=f.target;t.hijack(u,"dragstart",f);f.propagates&&(f.dragging=!0);case"touchmove":u.preventDefault();case"mousemove":if(f.dragging){if(t.hijack(u,"drag",f),f.propagates){f.drop!==!1&&r.drop&&r.drop.handler(u,f);break}u.type="mouseup"}case"touchend":case"mouseup":default:t.touched?i.remove(t.touched,"touchmove touchend",t.handler):i.remove(document,"mousemove mouseup",t.handler);f.dragging&&(f.drop!==!1&&r.drop&&r.drop.handler(u,f),t.hijack(u,"dragend",f));t.textselect(!0);f.click===!1&&f.dragging&&n.data(f.mousedown,"suppress.click",(new Date).getTime()+5);f.dragging=t.touched=!1}},hijack:function(r,u,f,e,o){if(f){var v={event:r.originalEvent,type:r.type},l=u.indexOf("drop")?"drag":"drop",h,a=e||0,s,c,y=isNaN(e)?f.interactions.length:e;r.type=u;r.originalEvent=null;f.results=[];do if(s=f.interactions[a]){if(u!=="dragend"&&s.cancelled)continue;c=t.properties(r,f,s);s.results=[];n(o||s[l]||f.droppable).each(function(e,o){return c.target=o,r.isPropagationStopped=function(){return!1},h=o?i.dispatch.call(o,r,c):null,h===!1?(l=="drag"&&(s.cancelled=!0,f.propagates-=1),u=="drop"&&(s[l][e]=null)):u=="dropinit"&&s.droppable.push(t.element(h)||o),u=="dragstart"&&(s.proxy=n(t.element(h)||s.drag)[0]),s.results.push(h),delete r.result,u!=="dropinit"?h:void 0});f.results[a]=t.flatten(s.results);u=="dropinit"&&(s.droppable=t.flatten(s.droppable));u!="dragstart"||s.cancelled||c.update()}while(++a<y);return r.type=v.type,r.originalEvent=v.event,t.flatten(f.results)}},properties:function(n,i,r){var u=r.callback;return u.drag=r.drag,u.proxy=r.proxy||r.drag,u.startX=i.pageX,u.startY=i.pageY,u.deltaX=n.pageX-i.pageX,u.deltaY=n.pageY-i.pageY,u.originalX=r.offset.left,u.originalY=r.offset.top,u.offsetX=u.originalX+u.deltaX,u.offsetY=u.originalY+u.deltaY,u.drop=t.flatten((r.drop||[]).slice()),u.available=t.flatten((r.droppable||[]).slice()),u},element:function(n){if(n&&(n.jquery||n.nodeType==1))return n},flatten:function(i){return n.map(i,function(i){return i&&i.jquery?n.makeArray(i):i&&i.length?t.flatten(i):i})},textselect:function(i){n(document)[i?"unbind":"bind"]("selectstart",t.dontstart).css("MozUserSelect",i?"":"none");document.unselectable=i?"off":"on"},dontstart:function(){return!1},callback:function(){}};t.callback.prototype={update:function(){r.drop&&this.available.length&&n.each(this.available,function(n){r.drop.locate(this,n)})}};u=i.dispatch;i.dispatch=function(t){if(n.data(this,"suppress."+t.type)-(new Date).getTime()>0){n.removeData(this,"suppress."+t.type);return}return u.apply(this,arguments)};f=i.fixHooks.touchstart=i.fixHooks.touchmove=i.fixHooks.touchend=i.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(t,i){if(i){var r=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0]||null;r&&n.each(f.props,function(n,i){t[i]=r[i]})}return t}};r.draginit=r.dragstart=r.dragend=t}(jQuery),function(n){var i=n.event,t=i.special.drag,r=t.add,u=t.teardown;t.noBubble=!1;t.livekey="livedrag";t.add=function(u){r.apply(this,arguments);var f=n.data(this,t.datakey);!f.live&&u.selector&&(f.live=!0,i.add(this,"draginit."+t.livekey,t.delegate))};t.teardown=function(){u.apply(this,arguments);var r=n.data(this,t.datakey)||{};r.live&&(i.remove(this,"draginit."+t.livekey,t.delegate),r.live=!1)};t.delegate=function(r){var f=[],u,e=n.data(this,"events")||{};return(n.each(e||[],function(e,o){e.indexOf("drag")===0&&n.each(o||[],function(e,o){(u=n(r.target).closest(o.selector,r.currentTarget)[0],u)&&(i.add(u,o.origType+"."+t.livekey,o.origHandler||o.handler,o.data),n.inArray(u,f)<0&&f.push(u))})}),!f.length)?!1:n(f).bind("dragend."+t.livekey,function(){i.remove(this,"."+t.livekey)})}}(jQuery),function(n){n.fn.drop=function(t,i,r){var u=typeof t=="string"?t:"",f=n.isFunction(t)?t:n.isFunction(i)?i:null;return u.indexOf("drop")!==0&&(u="drop"+u),r=(t==f?i:r)||{},f?this.bind(u,r,f):this.trigger(u)};n.drop=function(i){i=i||{};t.multi=i.multi===!0?Infinity:i.multi===!1?1:isNaN(i.multi)?t.multi:i.multi;t.delay=i.delay||t.delay;t.tolerance=n.isFunction(i.tolerance)?i.tolerance:i.tolerance===null?null:t.tolerance;t.mode=i.mode||t.mode||"intersect"};var r=n.event,i=r.special,t=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(){var i=n.data(this,t.datakey);i.related+=1},remove:function(){n.data(this,t.datakey).related-=1},setup:function(){if(!n.data(this,t.datakey))n.data(this,t.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),t.targets.push(this)},teardown:function(){var r=n.data(this,t.datakey)||{},i;r.related||(n.removeData(this,t.datakey),i=this,t.targets=n.grep(t.targets,function(n){return n!==i}))},handler:function(r,u){var f;if(u)switch(r.type){case"mousedown":case"touchstart":f=n(t.targets);typeof u.drop=="string"&&(f=f.filter(u.drop));f.each(function(){var i=n.data(this,t.datakey);i.active=[];i.anyactive=0;i.winner=0});u.droppable=f;i.drag.hijack(r,"dropinit",u);break;case"mousemove":case"touchmove":t.event=r;t.timer||t.tolerate(u);break;case"mouseup":case"touchend":t.timer=clearTimeout(t.timer);u.propagates&&(i.drag.hijack(r,"drop",u),i.drag.hijack(r,"dropend",u))}},locate:function(i,r){var u=n.data(i,t.datakey),e=n(i),f=e.offset()||{},o=e.outerHeight(),s=e.outerWidth(),h={elem:i,width:s,height:o,top:f.top,left:f.left,right:f.left+s,bottom:f.top+o};return u&&(u.location=h,u.index=r,u.elem=i),h},contains:function(n,t){return(t[0]||t.left)>=n.left&&(t[0]||t.right)<=n.right&&(t[1]||t.top)>=n.top&&(t[1]||t.bottom)<=n.bottom},modes:{intersect:function(n,t,i){return this.contains(i,[n.pageX,n.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(n,t,i){return Math.max(0,Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top))*Math.max(0,Math.min(i.right,t.right)-Math.max(i.left,t.left))},fit:function(n,t,i){return this.contains(i,t)?1:0},middle:function(n,t,i){return this.contains(i,[t.left+t.width*.5,t.top+t.height*.5])?1:0}},sort:function(n,t){return t.winner-n.winner||n.index-t.index},tolerate:function(r){var o,s,v,u,h,c,y,f=0,e,p=r.interactions.length,l=[t.event.pageX,t.event.pageY],a=t.tolerance||t.modes[t.mode];do if(e=r.interactions[f]){if(!e)return;e.drop=[];h=[];c=e.droppable.length;a&&(v=t.locate(e.proxy));o=0;do if(y=e.droppable[o]){if(u=n.data(y,t.datakey),s=u.location,!s)continue;u.winner=a?a.call(t,t.event,v,s):t.contains(s,l)?1:0;h.push(u)}while(++o<c);h.sort(t.sort);o=0;do(u=h[o])&&(u.winner&&e.drop.length<t.multi?(u.active[f]||u.anyactive||(i.drag.hijack(t.event,"dropstart",r,f,u.elem)[0]!==!1?(u.active[f]=1,u.anyactive+=1):u.winner=0),u.winner&&e.drop.push(u.elem)):u.active[f]&&u.anyactive==1&&(i.drag.hijack(t.event,"dropend",r,f,u.elem),u.active[f]=0,u.anyactive-=1));while(++o<c)}while(++f<p);t.last&&l[0]==t.last.pageX&&l[1]==t.last.pageY?delete t.timer:t.timer=setTimeout(function(){t.tolerate(r)},t.delay);t.last=t.event}};i.dropinit=i.dropstart=i.dropend=t}(jQuery),function(n){var i=n.event,t=i.special.drop,r=t.add,u=t.teardown;t.noBubble=!1;t.livekey="livedrop";t.add=function(u){r.apply(this,arguments);var f=n.data(this,t.datakey);!f.live&&u.selector&&(f.live=!0,i.add(this,"dropinit."+t.livekey,t.delegate))};t.teardown=function(){u.apply(this,arguments);var r=n.data(this,t.datakey)||{};r.live&&(i.remove(this,"dropinit",t.delegate),r.live=!1)};t.delegate=function(r,u){var f=[],e,o=n.data(this,"events")||{};return n.each(o||[],function(u,o){u.indexOf("drop")===0&&n.each(o,function(u,o){(e=n(r.currentTarget).find(o.selector),e.length)&&e.each(function(){i.add(this,o.origType+"."+t.livekey,o.origHandler||o.handler,o.data);n.inArray(this,f)<0&&f.push(this)})})}),u&&i.add(u.drag,"dragend."+t.livekey,function(){n.each(f.concat(this),function(){i.remove(this,"."+t.livekey)})}),f.length?n(f):!1}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}});window.JSON||(window.JSON={}),function(){function i(n){return n<10?"0"+n:n}function e(n){return s.lastIndex=0,s.test(n)?'"'+n.replace(s,function(n){var t=h[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,u){var c,l,s,a,v=n,h,o=u[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(u,i,o));switch(typeof o){case"string":return e(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=f,h=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,c=0;c<a;c+=1)h[c]=r(c,o)||"null";return s=h.length===0?"[]":n?"[\n"+n+h.join(",\n"+n)+"\n"+v+"]":"["+h.join(",")+"]",n=v,s}if(t&&typeof t=="object")for(a=t.length,c=0;c<a;c+=1)l=t[c],typeof l=="string"&&(s=r(l,o),s&&h.push(e(l)+(n?": ":":")+s));else for(l in o)Object.hasOwnProperty.call(o,l)&&(s=r(l,o),s&&h.push(e(l)+(n?": ":":")+s));return s=h.length===0?"{}":n?"{\n"+n+h.join(",\n"+n)+"\n"+v+"}":"{"+h.join(",")+"}",n=v,s}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var u=window.JSON,o=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,f,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof u.stringify!="function"&&(u.stringify=function(i,u,e){var o;if(n="",f="",typeof e=="number")for(o=0;o<e;o+=1)f+=" ";else typeof e=="string"&&(f=e);if(t=u,!u||typeof u=="function"||typeof u=="object"&&typeof u.length=="number")return r("",{"":i});throw new Error("JSON.stringify");});typeof u.parse!="function"&&(u.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),o.lastIndex=0,o.test(text)&&(text=text.replace(o,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}};typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var i=n.document,u=n.setTimeout||u,f=n.clearTimeout||f,r=n.setInterval||r,t=n.History=n.History||{};if(typeof t.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");t.initHtml4=function(){if(typeof t.initHtml4.initialized!="undefined")return!1;t.initHtml4.initialized=!0;t.enabled=!0;t.savedHashes=[];t.isLastHash=function(n){var r=t.getHashByIndex(),i;return i=n===r,i};t.saveHash=function(n){return t.isLastHash(n)?!1:(t.savedHashes.push(n),!0)};t.getHashByIndex=function(n){var i=null;return i=typeof n=="undefined"?t.savedHashes[t.savedHashes.length-1]:n<0?t.savedHashes[t.savedHashes.length+n]:t.savedHashes[n],i};t.discardedHashes={};t.discardedStates={};t.discardState=function(n,i,r){var f=t.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:i},t.discardedStates[f]=u,!0};t.discardHash=function(n,i,r){var u={discardedHash:n,backState:r,forwardState:i};return t.discardedHashes[n]=u,!0};t.discardedState=function(n){var r=t.getHashByState(n),i;return i=t.discardedStates[r]||!1,i};t.discardedHash=function(n){return t.discardedHashes[n]||!1};t.recycleState=function(n){var i=t.getHashByState(n);return t.discardedState(n)&&delete t.discardedStates[i],!0};t.emulated.hashChange&&(t.hashChangeInit=function(){t.checkerFunction=null;var f="",s,u,e,o,h=Boolean(t.getHash());return t.isInternetExplorer()?(s="historyjs-iframe",u=i.createElement("iframe"),u.setAttribute("id",s),u.style.display="none",i.body.appendChild(u),u.contentWindow.document.open(),u.contentWindow.document.close(),e="",o=!1,t.checkerFunction=function(){if(o)return!1;o=!0;var r=t.getHash()||"",i=t.getHash(u.contentWindow.document)||"";return r!==f?(f=r,i!==r&&(e=i=r,u.contentWindow.document.open(),u.contentWindow.document.close(),u.contentWindow.document.location.hash=t.escapeHash(r)),t.Adapter.trigger(n,"hashchange")):i!==e&&(e=i,h&&i===""?t.back():t.setHash(i,!1)),o=!1,!0}):t.checkerFunction=function(){var i=t.getHash()||"";return i!==f&&(f=i,t.Adapter.trigger(n,"hashchange")),!0},t.intervalList.push(r(t.checkerFunction,t.options.hashChangeInterval)),!0},t.Adapter.onDomLoad(t.hashChangeInit));t.emulated.pushState&&(t.onHashChange=function(i){var e=i&&i.newURL||t.getLocationHref(),u=t.getHashByUrl(e),r=null,o=null,f;return t.isLastHash(u)?(t.busy(!1),!1):(t.doubleCheckComplete(),t.saveHash(u),u&&t.isTraditionalAnchor(u)?(t.Adapter.trigger(n,"anchorchange"),t.busy(!1),!1):(r=t.extractState(t.getFullUrl(u||t.getLocationHref(),!1),!0),t.isLastSavedState(r)?(t.busy(!1),!1):(o=t.getHashByState(r),f=t.discardedState(r),f?(t.getHashByIndex(-2)===t.getHashByState(f.forwardState)?t.back(!1):t.forward(!1),!1):(t.pushState(r.data,r.title,r.url,!1),!0))))},t.Adapter.bind(n,"hashchange",t.onHashChange),t.pushState=function(i,r,u,f){if(t.getHashByUrl(u))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.pushState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),o=t.getHashByState(e),s=t.getState(!1),h=t.getHashByState(s),c=t.getHash();return t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),o===h?(t.busy(!1),!1):o!==c&&o!==t.getShortUrl(t.getLocationHref())?(t.setHash(o,!1),!1):(t.saveState(e),t.Adapter.trigger(n,"statechange"),t.busy(!1),!0)},t.replaceState=function(i,r,u,f){if(t.getHashByUrl(u))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&t.busy())return t.pushQueue({scope:t,callback:t.replaceState,args:arguments,queue:f}),!1;t.busy(!0);var e=t.createStateObject(i,r,u),s=t.getHashByState(e),o=t.getState(!1),h=t.getHashByState(o),c=t.getStateByIndex(-2);return t.discardState(o,e,c),s===h?(t.storeState(e),t.expectedStateId=e.id,t.recycleState(e),t.setTitle(e),t.saveState(e),t.Adapter.trigger(n,"statechange"),t.busy(!1)):t.pushState(e.data,e.title,e.url,!1),!0});t.emulated.pushState&&t.getHash()&&!t.emulated.hashChange&&t.Adapter.onDomLoad(function(){t.Adapter.trigger(n,"hashchange")})};typeof t.init!="undefined"&&t.init()}(window),function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=n.sessionStorage||!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f.setItem("TEST","1");f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)};i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.disableSuid=i.options.disableSuid||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.intervalList=[],i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=typeof e!="undefined"&&typeof e.log!="undefined"&&typeof e.log.apply!="undefined",t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated={pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent)),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+="/",n},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var t=i.getState(!1,!1),r=(t||{}).url||i.getLocationHref(),n;return n=r.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"}),n},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var u=n,r=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(u=r==="/"?i.getRootUrl()+n.replace(/^\/+/,""):r==="#"?i.getPageUrl().replace(/#.*/,"")+n:r==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),u.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},i.getLocationHref=function(n){return n=n||r,n.URL===n.location.href?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{};i.store.urlToId=i.store.urlToId||{};i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0);typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t;i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url||i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u),u},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r,f;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},f=u.stringify(r),f},i.getStateId=function(n){var t,r;return t=i.normalizeState(n),r=t.id,r},i.getHashByState=function(n){var t,r;return t=i.normalizeState(n),r=t.hash,r},i.extractId=function(n){var i,t,u,r;return r=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(r),u=t?t[1]||n:n,i=t?String(t[2]||""):"",i||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),!r&&t&&!i.isTraditionalAnchor(n)&&(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id,r},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n],t},i.getHash=function(n){var r=i.getLocationHref(n),t;return t=i.getHashByUrl(r),t},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=decodeURI(t),t},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var f,u,e;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(f=i.escapeHash(n),i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):r.location.hash!==f&&(i.bugs.setHash?(e=i.getPageUrl(),i.pushState(null,null,e+"#"+f,!1)):r.location.hash=f),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURI(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t),t},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else{if(!(n<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=n;--r)i.back(t)}return i},i.emulated.pushState){var y=function(){};i.pushState=i.pushState||y;i.replaceState=i.replaceState||y}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return i.doubleCheckComplete(),o=i.getHash(),o?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u)?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0))},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(p){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();i.Adapter.bind(n,"unload",i.clearAllIntervals);i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0)));f&&(i.onUnload=function(){var n,t;try{n=u.parse(f.getItem("History.store"))||{}}catch(e){n={}}n.idToState=n.idToState||{};n.urlToId=n.urlToId||{};n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n;i.normalizeStore();try{f.setItem("History.store",u.stringify(n))}catch(r){if(/QUOTA_EXCEEDED_ERR/.test(r.message))f.removeItem("History.store"),f.setItem("History.store",u.stringify(n));else throw r;}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload));i.emulated.pushState||(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash()&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})))};i.init()}(window),function(n){n.deparam=function(t,i){var r={},u={"true":!0,"false":!1,"null":null};return n.each(t.replace(/\+/g," ").split("&"),function(t,f){var a=f.split("="),s=decodeURIComponent(a[0]),e,l=r,c=0,o=s.split("]["),h=o.length-1;if(/\[/.test(o[0])&&/\]$/.test(o[h])?(o[h]=o[h].replace(/\]$/,""),o=o.shift().split("[").concat(o),h=o.length-1):h=0,a.length===2)if(e=decodeURIComponent(a[1]),i&&(e=e&&!isNaN(e)?+e:e==="undefined"?undefined:u[e]!==undefined?u[e]:e),h)for(;c<=h;c++)s=o[c]===""?l.length:o[c],l=l[s]=c<h?l[s]||(o[c+1]&&isNaN(o[c+1])?{}:[]):e;else n.isArray(r[s])?r[s].push(e):r[s]=r[s]!==undefined?[r[s],e]:e;else s&&(r[s]=i?undefined:"")}),r};n.deparam.querystring=function(n){return n=n||window.location.href,n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}}(jQuery);jQuery&&function(n){function v(t,i){var r=n('<div class="minicolors" />'),u=n.minicolors.defaults;if(!t.data("minicolors-initialized")){if(i=n.extend(!0,{},u,i),r.addClass("minicolors-theme-"+i.theme).toggleClass("minicolors-with-opacity",i.opacity),i.position!==undefined&&n.each(i.position.split(" "),function(){r.addClass("minicolors-position-"+this)}),t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",i).prop("size",7).wrap(r).after('<div class="minicolors-panel minicolors-slider-'+i.control+'"><div class="minicolors-slider"><div class="minicolors-picker"><\/div><\/div><div class="minicolors-opacity-slider"><div class="minicolors-picker"><\/div><\/div><div class="minicolors-grid"><div class="minicolors-grid-inner"><\/div><div class="minicolors-picker"><div><\/div><\/div><\/div><\/div>'),!i.inline){t.after('<span class="minicolors-swatch"><span class="minicolors-swatch-color"><\/span><\/span>');t.next(".minicolors-swatch").on("click",function(n){n.preventDefault();t.focus()})}t.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end();i.inline&&t.parent().addClass("minicolors-inline");f(t,!1);t.data("minicolors-initialized",!0)}}function h(n){var t=n.parent();n.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input");t.before(n).remove()}function o(n){var t=n.parent(),r=t.find(".minicolors-panel"),i=n.data("minicolors-settings");!n.data("minicolors-initialized")||n.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(u(),t.addClass("minicolors-focus"),r.stop(!0,!0).fadeIn(i.showSpeed,function(){i.show&&i.show.call(n.get(0))}))}function u(){n(".minicolors-input").each(function(){var i=n(this),t=i.data("minicolors-settings"),r=i.parent();t.inline||r.find(".minicolors-panel").fadeOut(t.hideSpeed,function(){r.hasClass("minicolors-focus")&&t.hide&&t.hide.call(i.get(0));r.removeClass("minicolors-focus")})})}function c(n,t,i){var s=n.parents(".minicolors").find(".minicolors-input"),h=s.data("minicolors-settings"),c=n.find("[class$=-picker]"),v=n.offset().left,y=n.offset().top,u=Math.round(t.pageX-v),r=Math.round(t.pageY-y),p=i?h.animationSpeed:0,e,o,a,f;t.originalEvent.changedTouches&&(u=t.originalEvent.changedTouches[0].pageX-v,r=t.originalEvent.changedTouches[0].pageY-y);u<0&&(u=0);r<0&&(r=0);u>n.width()&&(u=n.width());r>n.height()&&(r=n.height());n.parent().is(".minicolors-slider-wheel")&&c.parent().is(".minicolors-grid")&&(e=75-u,o=75-r,a=Math.sqrt(e*e+o*o),f=Math.atan2(o,e),f<0&&(f+=Math.PI*2),a>75&&(a=75,u=75-75*Math.cos(f),r=75-75*Math.sin(f)),u=Math.round(u),r=Math.round(r));n.is(".minicolors-grid")?c.stop(!0).animate({top:r+"px",left:u+"px"},p,h.animationEasing,function(){l(s,n)}):c.stop(!0).animate({top:r+"px"},p,h.animationEasing,function(){l(s,n)})}function l(n,r){function nt(n,t){var i,r;return!n.length||!t?null:(i=n.offset().left,r=n.offset().top,{x:i-t.offset().left+n.outerWidth()/2,y:r-t.offset().top+n.outerHeight()/2})}var u,f,s,p,w,b,v,l=n.val(),k=n.attr("data-opacity"),y=n.parent(),d=n.data("minicolors-settings"),it=y.find(".minicolors-swatch"),o=y.find(".minicolors-grid"),c=y.find(".minicolors-slider"),tt=y.find(".minicolors-opacity-slider"),rt=o.find("[class$=-picker]"),ut=c.find("[class$=-picker]"),ft=tt.find("[class$=-picker]"),h=nt(rt,o),g=nt(ut,c),et=nt(ft,tt);if(r.is(".minicolors-grid, .minicolors-slider")){switch(d.control){case"wheel":p=o.width()/2-h.x;w=o.height()/2-h.y;b=Math.sqrt(p*p+w*w);v=Math.atan2(w,p);v<0&&(v+=Math.PI*2);b>75&&(b=75,h.x=69-75*Math.cos(v),h.y=69-75*Math.sin(v));f=t(b/.75,0,100);u=t(v*180/Math.PI,0,360);s=t(100-Math.floor(g.y*(100/c.height())),0,100);l=i({h:u,s:f,b:s});c.css("backgroundColor",i({h:u,s:f,b:100}));break;case"saturation":u=t(parseInt(h.x*(360/o.width()),10),0,360);f=t(100-Math.floor(g.y*(100/c.height())),0,100);s=t(100-Math.floor(h.y*(100/o.height())),0,100);l=i({h:u,s:f,b:s});c.css("backgroundColor",i({h:u,s:100,b:s}));y.find(".minicolors-grid-inner").css("opacity",f/100);break;case"brightness":u=t(parseInt(h.x*(360/o.width()),10),0,360);f=t(100-Math.floor(h.y*(100/o.height())),0,100);s=t(100-Math.floor(g.y*(100/c.height())),0,100);l=i({h:u,s:f,b:s});c.css("backgroundColor",i({h:u,s:f,b:100}));y.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:u=t(360-parseInt(g.y*(360/c.height()),10),0,360);f=t(Math.floor(h.x*(100/o.width())),0,100);s=t(100-Math.floor(h.y*(100/o.height())),0,100);l=i({h:u,s:f,b:s});o.css("backgroundColor",i({h:u,s:100,b:100}))}n.val(e(l,d.letterCase))}r.is(".minicolors-opacity-slider")&&(k=d.opacity?parseFloat(1-et.y/tt.height()).toFixed(2):1,d.opacity&&n.attr("data-opacity",k));it.find("SPAN").css({backgroundColor:l,opacity:k});a(n,l,k)}function f(n,u){var c,f,v,l,o,g,nt,y=n.parent(),p=n.data("minicolors-settings"),tt=y.find(".minicolors-swatch"),s=y.find(".minicolors-grid"),h=y.find(".minicolors-slider"),w=y.find(".minicolors-opacity-slider"),b=s.find("[class$=-picker]"),d=h.find("[class$=-picker]"),it=w.find("[class$=-picker]");c=e(r(n.val(),!0),p.letterCase);c||(c=e(r(p.defaultValue,!0),p.letterCase));f=k(c);u||n.val(c);p.opacity&&(v=n.attr("data-opacity")===""?1:t(parseFloat(n.attr("data-opacity")).toFixed(2),0,1),isNaN(v)&&(v=1),n.attr("data-opacity",v),tt.find("SPAN").css("opacity",v),o=t(w.height()-w.height()*v,0,w.height()),it.css("top",o+"px"));tt.find("SPAN").css("backgroundColor",c);switch(p.control){case"wheel":g=t(Math.ceil(f.s*.75),0,s.height()/2);nt=f.h*Math.PI/180;l=t(75-Math.cos(nt)*g,0,s.width());o=t(75-Math.sin(nt)*g,0,s.height());b.css({top:o+"px",left:l+"px"});o=150-f.b/(100/s.height());c===""&&(o=0);d.css("top",o+"px");h.css("backgroundColor",i({h:f.h,s:f.s,b:100}));break;case"saturation":l=t(5*f.h/12,0,150);o=t(s.height()-Math.ceil(f.b/(100/s.height())),0,s.height());b.css({top:o+"px",left:l+"px"});o=t(h.height()-f.s*(h.height()/100),0,h.height());d.css("top",o+"px");h.css("backgroundColor",i({h:f.h,s:100,b:f.b}));y.find(".minicolors-grid-inner").css("opacity",f.s/100);break;case"brightness":l=t(5*f.h/12,0,150);o=t(s.height()-Math.ceil(f.s/(100/s.height())),0,s.height());b.css({top:o+"px",left:l+"px"});o=t(h.height()-f.b*(h.height()/100),0,h.height());d.css("top",o+"px");h.css("backgroundColor",i({h:f.h,s:f.s,b:100}));y.find(".minicolors-grid-inner").css("opacity",1-f.b/100);break;default:l=t(Math.ceil(f.s/(100/s.width())),0,s.width());o=t(s.height()-Math.ceil(f.b/(100/s.height())),0,s.height());b.css({top:o+"px",left:l+"px"});o=t(h.height()-f.h/(360/h.height()),0,h.height());d.css("top",o+"px");s.css("backgroundColor",i({h:f.h,s:100,b:100}))}n.data("minicolors-initialized")&&a(n,c,v)}function a(n,t,i){var r=n.data("minicolors-settings"),u=n.data("minicolors-lastChange");u&&u.hex===t&&u.opacity===i||(n.data("minicolors-lastChange",{hex:t,opacity:i}),r.change&&(r.changeDelay?(clearTimeout(n.data("minicolors-changeTimeout")),n.data("minicolors-changeTimeout",setTimeout(function(){r.change.call(n.get(0),t,i)},r.changeDelay))):r.change.call(n.get(0),t,i)),n.trigger("change").trigger("input"))}function y(t){var f=r(n(t).val(),!0),i=s(f),u=n(t).attr("data-opacity");return i?(u!==undefined&&n.extend(i,{a:parseFloat(u)}),i):null}function p(t,i){var e=r(n(t).val(),!0),u=s(e),f=n(t).attr("data-opacity");return u?(f===undefined&&(f=1),i?"rgba("+u.r+", "+u.g+", "+u.b+", "+parseFloat(f)+")":"rgb("+u.r+", "+u.g+", "+u.b+")"):null}function e(n,t){return t==="uppercase"?n.toUpperCase():n.toLowerCase()}function r(n,t){return(n=n.replace(/[^A-F0-9]/ig,""),n.length!==3&&n.length!==6)?"":(n.length===3&&t&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),"#"+n)}function t(n,t,i){return n<t&&(n=t),n>i&&(n=i),n}function w(n){var t={},u=Math.round(n.h),o=Math.round(n.s*255/100),e=Math.round(n.b*255/100);if(o===0)t.r=t.g=t.b=e;else{var i=e,r=(255-o)*e/255,f=(i-r)*(u%60)/60;u===360&&(u=0);u<60?(t.r=i,t.b=r,t.g=r+f):u<120?(t.g=i,t.b=r,t.r=i-f):u<180?(t.g=i,t.r=r,t.b=r+f):u<240?(t.b=i,t.r=r,t.g=i-f):u<300?(t.b=i,t.g=r,t.r=r+f):u<360?(t.r=i,t.g=r,t.b=i-f):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function b(t){var i=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return n.each(i,function(n,t){t.length===1&&(i[n]="0"+t)}),"#"+i.join("")}function i(n){return b(w(n))}function k(n){var t=d(s(n));return t.s===0&&(t.h=360),t}function d(n){var t={h:0,s:0,b:0},u=Math.min(n.r,n.g,n.b),i=Math.max(n.r,n.g,n.b),r=i-u;return t.b=i,t.s=i!==0?255*r/i:0,t.h=t.s!==0?n.r===i?(n.g-n.b)/r:n.g===i?2+(n.b-n.r)/r:4+(n.r-n.g)/r:-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function s(n){return n=parseInt(n.indexOf("#")>-1?n.substring(1):n,16),{r:n>>16,g:(n&65280)>>8,b:n&255}}n.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}};n.extend(n.fn,{minicolors:function(t,i){switch(t){case"destroy":return n(this).each(function(){h(n(this))}),n(this);case"hide":return u(),n(this);case"opacity":return i===undefined?n(this).attr("data-opacity"):(n(this).each(function(){f(n(this).attr("data-opacity",i))}),n(this));case"rgbObject":return y(n(this),t==="rgbaObject");case"rgbString":case"rgbaString":return p(n(this),t==="rgbaString");case"settings":return i===undefined?n(this).data("minicolors-settings"):(n(this).each(function(){var t=n(this).data("minicolors-settings")||{};h(n(this));n(this).minicolors(n.extend(!0,t,i))}),n(this));case"show":return o(n(this).eq(0)),n(this);case"value":return i===undefined?n(this).val():(n(this).each(function(){f(n(this).val(i))}),n(this));default:return t!=="create"&&(i=t),n(this).each(function(){v(n(this),i)}),n(this)}}});n(document).on("mousedown.minicolors touchstart.minicolors",function(t){n(t.target).parents().add(t.target).hasClass("minicolors")||u()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var i=n(this);t.preventDefault();n(document).data("minicolors-target",i);c(i,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var i=n(document).data("minicolors-target");i&&c(i,t)}).on("mouseup.minicolors touchend.minicolors",function(){n(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(t){var i=n(this).parent().find(".minicolors-input");t.preventDefault();o(i)}).on("focus.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&o(t)}).on("blur.minicolors",".minicolors-input",function(){var t=n(this),i=t.data("minicolors-settings");t.data("minicolors-initialized")&&(t.val(r(t.val(),!0)),t.val()===""&&t.val(r(i.defaultValue,!0)),t.val(e(t.val(),i.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var i=n(this);if(i.data("minicolors-initialized"))switch(t.keyCode){case 9:u();break;case 13:case 27:u();i.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&f(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=n(this);t.data("minicolors-initialized")&&setTimeout(function(){f(t,!0)},1)})}(jQuery);!function(n,t){"use strict";function po(n,t){for(var r,u=[],i=0;i<n.length;++i){if(r=ft[n[i]]||wo(n[i]),!r)throw"module definition dependecy not found: "+n[i];u.push(r)}t.apply(null,u)}function i(n,i,r){if("string"!=typeof n)throw"invalid module definition, module id must be defined and be a string";if(i===t)throw"invalid module definition, dependencies must be specified";if(r===t)throw"invalid module definition, definition function must be specified";po(i,function(){ft[n]=r.apply(null,arguments)})}function wo(t){for(var i=n,u=t.split(/[.\/]/),r=0;r<u.length;++r){if(!i[u[r]])return;i=i[u[r]]}return i}function bo(i){for(var f,e,u,s,o,r=0;r<i.length;r++){for(f=n,e=i[r],u=e.split(/[.\/]/),o=0;o<u.length-1;++o)f[u[o]]===t&&(f[u[o]]={}),f=f[u[o]];f[u[u.length-1]]=ft[e]}if(n.AMDLC_TESTS){s=n.privateModules||{};for(e in ft)s[e]=ft[e];for(r=0;r<i.length;r++)delete s[i[r]];n.privateModules=s}}var ft={},pu="tinymce/geom/Rect",nt="tinymce/util/Promise",f="tinymce/util/Delay",u="tinymce/Env",et="tinymce/dom/EventUtils",ni="tinymce/dom/Sizzle",e="tinymce/util/Arr",r="tinymce/util/Tools",c="tinymce/dom/DomQuery",yi="tinymce/html/Styles",p="tinymce/dom/TreeWalker",pi="tinymce/dom/Range",b="tinymce/html/Entities",wu="tinymce/dom/StyleSheetLoader",o="tinymce/dom/DOMUtils",vt="tinymce/dom/ScriptLoader",yt="tinymce/AddOnManager",s="tinymce/dom/NodeType",wi="tinymce/text/Zwsp",w="tinymce/caret/CaretContainer",v="tinymce/dom/RangeUtils",bu="tinymce/NodeChange",ot="tinymce/html/Node",k="tinymce/html/Schema",ti="tinymce/html/SaxParser",ii="tinymce/html/DomParser",bi="tinymce/html/Writer",pt="tinymce/html/Serializer",ki="tinymce/dom/Serializer",ku="tinymce/dom/TridentSelection",d="tinymce/util/VK",di="tinymce/dom/ControlSelection",l="tinymce/util/Fun",st="tinymce/caret/CaretCandidate",tt="tinymce/geom/ClientRect",du="tinymce/text/ExtendingChar",y="tinymce/caret/CaretPosition",gu="tinymce/caret/CaretBookmark",wt="tinymce/dom/BookmarkManager",gi="tinymce/dom/Selection",nr="tinymce/dom/ElementUtils",nf="tinymce/fmt/Preview",tf="tinymce/fmt/Hooks",tr="tinymce/Formatter",rf="tinymce/undo/Diff",uf="tinymce/undo/Fragments",ff="tinymce/undo/Levels",ir="tinymce/UndoManager",ef="tinymce/EnterKey",of="tinymce/ForceBlocks",bt="tinymce/caret/CaretUtils",ht="tinymce/caret/CaretWalker",sf="tinymce/InsertList",hf="tinymce/InsertContent",rr="tinymce/EditorCommands",ri="tinymce/util/URI",it="tinymce/util/Class",ui="tinymce/util/EventDispatcher",cf="tinymce/data/Binding",ct="tinymce/util/Observable",lf="tinymce/data/ObservableObject",fi="tinymce/ui/Selector",ei="tinymce/ui/Collection",a="tinymce/ui/DomUtils",ur="tinymce/ui/BoxUtils",fr="tinymce/ui/ClassList",oi="tinymce/ui/ReflowQueue",g="tinymce/ui/Control",lt="tinymce/ui/Factory",er="tinymce/ui/KeyboardNavigation",rt="tinymce/ui/Container",ut="tinymce/ui/DragHelper",or="tinymce/ui/Scrollable",kt="tinymce/ui/Panel",dt="tinymce/ui/Movable",sr="tinymce/ui/Resizable",at="tinymce/ui/FloatPanel",si="tinymce/ui/Window",hr="tinymce/ui/MessageBox",cr="tinymce/WindowManager",lr="tinymce/ui/Tooltip",h="tinymce/ui/Widget",ar="tinymce/ui/Progress",vr="tinymce/ui/Notification",yr="tinymce/NotificationManager",af="tinymce/dom/NodePath",vf="tinymce/util/Quirks",pr="tinymce/EditorObservable",yf="tinymce/Mode",wr="tinymce/Shortcuts",pf="tinymce/file/Uploader",wf="tinymce/file/Conversions",bf="tinymce/file/ImageScanner",kf="tinymce/file/BlobCache",df="tinymce/file/UploadStatus",gf="tinymce/EditorUpload",ne="tinymce/caret/FakeCaret",br="tinymce/dom/Dimensions",te="tinymce/caret/LineWalker",ie="tinymce/caret/LineUtils",re="tinymce/dom/MousePosition",ue="tinymce/DragDropOverrides",fe="tinymce/SelectionOverrides",kr="tinymce/util/Uuid",ee="tinymce/ui/Sidebar",dr="tinymce/Editor",gr="tinymce/util/I18n",nu="tinymce/FocusManager",hi="tinymce/EditorManager",tu="tinymce/util/XHR",iu="tinymce/util/JSON",oe="tinymce/util/JSONRequest",se="tinymce/util/JSONP",he="tinymce/util/LocalStorage",ce="tinymce/Compat",ci="tinymce/ui/Layout",gt="tinymce/ui/AbsoluteLayout",li="tinymce/ui/Button",le="tinymce/ui/ButtonGroup",ru="tinymce/ui/Checkbox",ai="tinymce/ui/ComboBox",ae="tinymce/ui/ColorBox",uu="tinymce/ui/PanelButton",ve="tinymce/ui/ColorButton",fu="tinymce/util/Color",ye="tinymce/ui/ColorPicker",eu="tinymce/ui/Path",pe="tinymce/ui/ElementPath",ou="tinymce/ui/FormItem",su="tinymce/ui/Form",we="tinymce/ui/FieldSet",be="tinymce/content/LinkTargets",ke="tinymce/ui/FilePicker",de="tinymce/ui/FitLayout",ge="tinymce/ui/FlexLayout",hu="tinymce/ui/FlowLayout",no="tinymce/ui/FormatControls",to="tinymce/ui/GridLayout",io="tinymce/ui/Iframe",ro="tinymce/ui/InfoBox",uo="tinymce/ui/Label",cu="tinymce/ui/Toolbar",lu="tinymce/ui/MenuBar",vi="tinymce/ui/MenuButton",au="tinymce/ui/MenuItem",vu="tinymce/ui/Throbber",yu="tinymce/ui/Menu",fo="tinymce/ui/ListBox",eo="tinymce/ui/Radio",oo="tinymce/ui/ResizeHandle",so="tinymce/ui/SelectBox",ho="tinymce/ui/Slider",co="tinymce/ui/Spacer",lo="tinymce/ui/SplitButton",ao="tinymce/ui/StackLayout",vo="tinymce/ui/TabPanel",yo="tinymce/ui/TextBox";i(pu,[],function(){function r(t,r,u){var f,e,o,s,h,c;return f=r.x,e=r.y,o=t.w,s=t.h,h=r.w,c=r.h,u=(u||"").split(""),"b"===u[0]&&(e+=c),"r"===u[1]&&(f+=h),"c"===u[0]&&(e+=i(c/2)),"c"===u[1]&&(f+=i(h/2)),"b"===u[3]&&(e-=s),"r"===u[4]&&(f-=o),"c"===u[3]&&(e-=i(s/2)),"c"===u[4]&&(f-=i(o/2)),n(f,e,o,s)}function f(n,t,i,u){for(var f,e=0;e<u.length;e++)if(f=r(n,t,u[e]),f.x>=i.x&&f.x+f.w<=i.w+i.x&&f.y>=i.y&&f.y+f.h<=i.h+i.y)return u[e];return null}function e(t,i,r){return n(t.x-i,t.y-r,t.w+2*i,t.h+2*r)}function o(i,r){var f,e,o,s;return f=t(i.x,r.x),e=t(i.y,r.y),o=u(i.x+i.w,r.x+r.w),s=u(i.y+i.h,r.y+r.h),o-f<0||s-e<0?null:n(f,e,o-f,s-e)}function s(i,r,u){var h,c,l,a,f,e,o,s,v,y;return f=i.x,e=i.y,o=i.x+i.w,s=i.y+i.h,v=r.x+r.w,y=r.y+r.h,h=t(0,r.x-f),c=t(0,r.y-e),l=t(0,o-v),a=t(0,s-y),f+=h,e+=c,u&&(o+=h,s+=c,f-=l,e-=a),o-=l,s-=a,n(f,e,o-f,s-e)}function n(n,t,i,r){return{x:n,y:t,w:i,h:r}}function h(t){return n(t.left,t.top,t.width,t.height)}var u=Math.min,t=Math.max,i=Math.round;return{inflate:e,relativePosition:r,findBestRelativePosition:f,intersect:o,clamp:s,create:n,fromClientRect:h}});i(nt,[],function(){function t(n,t){return function(){n.apply(t,arguments)}}function n(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=null;this._value=null;this._deferreds=[];e(n,t(u,this),t(i,this))}function r(n){var t=this;return null===this._state?void this._deferreds.push(n):void s(function(){var i=t._state?n.onFulfilled:n.onRejected,r;if(null===i)return void(t._state?n.resolve:n.reject)(t._value);try{r=i(t._value)}catch(u){return void n.reject(u)}n.resolve(r)})}function u(n){try{if(n===this)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if("function"==typeof r)return void e(t(r,n),t(u,this),t(i,this))}this._state=!0;this._value=n;f.call(this)}catch(o){i.call(this,o)}}function i(n){this._state=!1;this._value=n;f.call(this)}function f(){for(var n=0,t=this._deferreds.length;n<t;n++)r.call(this,this._deferreds[n]);this._deferreds=null}function o(n,t,i,r){this.onFulfilled="function"==typeof n?n:null;this.onRejected="function"==typeof t?t:null;this.resolve=i;this.reject=r}function e(n,t,i){var r=!1;try{n(function(n){r||(r=!0,t(n))},function(n){r||(r=!0,i(n))})}catch(u){if(r)return;r=!0;i(u)}}if(window.Promise)return window.Promise;var s=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(n){setTimeout(n,1)},h=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};return n.prototype["catch"]=function(n){return this.then(null,n)},n.prototype.then=function(t,i){var u=this;return new n(function(n,f){r.call(u,new o(t,i,n,f))})},n.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&h(arguments[0])?arguments[0]:arguments);return new n(function(n,i){function u(r,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if("function"==typeof o)return void o.call(e,function(n){u(r,n)},i)}t[r]=e;0==--f&&n(t)}catch(s){i(s)}}if(0===t.length)return n([]);for(var f=t.length,r=0;r<t.length;r++)u(r,t[r])})},n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,i){i(t)})},n.race=function(t){return new n(function(n,i){for(var r=0,u=t.length;r<u;r++)t[r].then(n,i)})},n});i(f,[nt],function(n){function f(n,t){function f(n){window.setTimeout(n,0)}for(var i=window.requestAnimationFrame,u=["ms","moz","webkit"],r=0;r<u.length&&!i;r++)i=window[u[r]+"RequestAnimationFrame"];i||(i=f);i(n,t)}function t(n,t){return"number"!=typeof t&&(t=0),setTimeout(n,t)}function r(n,t){return"number"!=typeof t&&(t=1),setInterval(n,t)}function e(n){return clearTimeout(n)}function o(n){return clearInterval(n)}function u(n,i){var r,u;return u=function(){var u=arguments;clearTimeout(r);r=t(function(){n.apply(this,u)},i)},u.stop=function(){clearTimeout(r)},u}var i;return{requestAnimationFrame:function(t,r){return i?void i.then(t):void(i=new n(function(n){r||(r=document.body);f(n,r)}).then(t))},setTimeout:t,setInterval:r,setEditorTimeout:function(n,i,r){return t(function(){n.removed||i()},r)},setEditorInterval:function(n,t,i){var u;return u=r(function(){n.removed?clearInterval(u):t()},i)},debounce:u,throttle:u,clearInterval:o,clearTimeout:e}});i(u,[],function(){function c(n){return"matchMedia"in window&&matchMedia(n).matches}var o=navigator,t=o.userAgent,s,i,n,u,f,l,a,r,e,h,v,y,p,w;return s=window.opera&&window.opera.buildNumber,e=/Android/.test(t),i=/WebKit/.test(t),n=!i&&!s&&/MSIE/gi.test(t)&&/Explorer/gi.test(o.appName),n=n&&/MSIE (\w+)\./.exec(t)[1],u=t.indexOf("Trident/")!=-1&&(t.indexOf("rv:")!=-1||o.appName.indexOf("Netscape")!=-1)&&11,f=t.indexOf("Edge/")!=-1&&!n&&!u&&12,n=n||u||f,l=!i&&!u&&/Gecko/.test(t),a=t.indexOf("Mac")!=-1,r=/(iPad|iPhone)/.test(t),h="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,v=c("only screen and (max-device-width: 480px)")&&(e||r),y=c("only screen and (min-width: 800px)")&&(e||r),p=t.indexOf("Windows Phone")!=-1,f&&(i=!1),w=!r||h||t.match(/AppleWebKit\/(\d*)/)[1]>=534,{opera:s,webkit:i,ie:n,gecko:l,mac:a,iOS:r,android:e,contentEditable:w,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!=n,range:window.getSelection&&"Range"in window,documentMode:n&&!f?document.documentMode||7:10,fileApi:h,ceFalse:n===!1||n>8,canHaveCSP:n===!1||n>11,desktop:!v&&!y,windowsPhone:p}});i(et,[f,u],function(n,t){function r(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)}function f(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r||!1):n.detachEvent&&n.detachEvent("on"+t,i)}function e(n,t){var i,r=t;return i=n.path,i&&i.length>0&&(r=i[0]),n.deepPath&&(i=n.deepPath(),i&&i.length>0&&(r=i[0])),r}function i(n,i){function s(){return!1}function l(){return!0}var o,r=i||{},a;for(o in n)c[o]||(r[o]=n[o]);if(r.target||(r.target=r.srcElement||document),t.experimentalShadowDom&&(r.target=e(n,r.target)),n&&h.test(n.type)&&n.pageX===a&&n.clientX!==a){var v=r.target.ownerDocument||document,u=v.documentElement,f=v.body;r.pageX=n.clientX+(u&&u.scrollLeft||f&&f.scrollLeft||0)-(u&&u.clientLeft||f&&f.clientLeft||0);r.pageY=n.clientY+(u&&u.scrollTop||f&&f.scrollTop||0)-(u&&u.clientTop||f&&f.clientTop||0)}return r.preventDefault=function(){r.isDefaultPrevented=l;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},r.stopPropagation=function(){r.isPropagationStopped=l;n&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=l;r.stopPropagation()},r.isDefaultPrevented||(r.isDefaultPrevented=s,r.isPropagationStopped=s,r.isImmediatePropagationStopped=s),"undefined"==typeof r.metaKey&&(r.metaKey=!1),r}function o(t,i,u){function o(){u.domLoaded||(u.domLoaded=!0,i(c))}function s(){("complete"===e.readyState||"interactive"===e.readyState&&e.body)&&(f(e,"readystatechange",s),o())}function h(){try{e.documentElement.doScroll("left")}catch(t){return void n.setTimeout(h)}o()}var e=t.document,c={type:"ready"};return u.domLoaded?void i(c):(e.addEventListener?"complete"===e.readyState?o():r(t,"DOMContentLoaded",o):(r(e,"readystatechange",s),e.documentElement.doScroll&&t.self===t.top&&h()),void r(t,"load",o))}function u(){function e(n,t){var f,i,e,r,o=u[t];if(f=o&&o[n.type])for(i=0,e=f.length;i<e;i++)if(r=f[i],r&&r.func.call(r.scope,n)===!1&&n.preventDefault(),n.isImmediatePropagationStopped())return}var n=this,u={},h,t,c,l,a;t=s+(+new Date).toString(32);l="onmouseenter"in document.documentElement;c="onfocusin"in document.documentElement;a={mouseenter:"mouseover",mouseleave:"mouseout"};h=1;n.domLoaded=!1;n.events=u;n.bind=function(f,s,v,y){function it(n){e(i(n||tt.event),w)}var w,b,nt,p,k,d,g,tt=window;if(f&&3!==f.nodeType&&8!==f.nodeType){for(f[t]?w=f[t]:(w=h++,f[t]=w,u[w]={}),y=y||f,s=s.split(" "),nt=s.length;nt--;)p=s[nt],d=it,k=g=!1,"DOMContentLoaded"===p&&(p="ready"),n.domLoaded&&"ready"===p&&"complete"==f.readyState?v.call(y,i({type:p})):(l||(k=a[p],k&&(d=function(n){var r,t;if(r=n.currentTarget,t=n.relatedTarget,t&&r.contains)t=r.contains(t);else for(;t&&t!==r;)t=t.parentNode;t||(n=i(n||tt.event),n.type="mouseout"===n.type?"mouseleave":"mouseenter",n.target=r,e(n,w))})),c||"focusin"!==p&&"focusout"!==p||(g=!0,k="focusin"===p?"focus":"blur",d=function(n){n=i(n||tt.event);n.type="focus"===n.type?"focusin":"focusout";e(n,w)}),b=u[w][p],b?"ready"===p&&n.domLoaded?v({type:p}):b.push({func:v,scope:y}):(u[w][p]=b=[{func:v,scope:y}],b.fakeName=k,b.capture=g,b.nativeHandler=d,"ready"===p?o(f,d,n):r(f,k||p,d,g)));return f=b=0,v}};n.unbind=function(i,r,e){var l,o,a,c,s,h;if(!i||3===i.nodeType||8===i.nodeType)return n;if(l=i[t]){if(h=u[l],r){for(r=r.split(" "),a=r.length;a--;)if(s=r[a],o=h[s]){if(e)for(c=o.length;c--;)if(o[c].func===e){var v=o.nativeHandler,y=o.fakeName,p=o.capture;o=o.slice(0,c).concat(o.slice(c+1));o.nativeHandler=v;o.fakeName=y;o.capture=p;h[s]=o}e&&0!==o.length||(delete h[s],f(i,o.fakeName||s,o.nativeHandler,o.capture))}}else{for(s in h)o=h[s],f(i,o.fakeName||s,o.nativeHandler,o.capture);h={}}for(s in h)return n;delete u[l];try{delete i[t]}catch(w){i[t]=null}}return n};n.fire=function(r,u,f){var o;if(!r||3===r.nodeType||8===r.nodeType)return n;f=i(null,f);f.type=u;f.target=r;do o=r[t],o&&e(f,o),r=r.parentNode||r.ownerDocument||r.defaultView||r.parentWindow;while(r&&!f.isPropagationStopped());return n};n.clean=function(i){var r,u,f=n.unbind;if(!i||3===i.nodeType||8===i.nodeType)return n;if(i[t]&&f(i),i.getElementsByTagName||(i=i.document),i&&i.getElementsByTagName)for(f(i),u=i.getElementsByTagName("*"),r=u.length;r--;)i=u[r],i[t]&&f(i);return n};n.destroy=function(){u={}};n.cancel=function(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}}var s="mce-data-",h=/^(?:mouse|contextmenu)|click/,c={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1};return u.Event=new u,u.Event.bind(window,"ready",function(){}),u});i(ni,[],function(){function r(n,t,i,r){var p,s,c,v,w,y,k,l,nt,g;if((t?t.ownerDocument||t:h)!==e&&b(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(p=lr.exec(n))if(c=p[1]){if(9===v){if(s=t.getElementById(c),!s||!s.parentNode)return i;if(s.id===c)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&et(t,s)&&s.id===c)return i.push(s),i}else{if(p[2])return d.apply(i,t.getElementsByTagName(n)),i;if((c=p[3])&&u.getElementsByClassName)return d.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=k=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=ft(n),(k=t.getAttribute("id"))?l=k.replace(ar,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",w=y.length;w--;)y[w]=l+ht(y[w]);nt=ei.test(n)&&kt(t.parentNode)||t;g=y.join(",")}if(g)try{return d.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return ci(n.replace(yt,"$1"),t,i,r)}function wt(){function t(r,u){return i.push(r+" ")>n.cacheLength&&delete t[i.shift()],t[r+" "]=u}var i=[];return t}function s(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function bt(t,i){for(var u=t.split("|"),r=t.length;r--;)n.attrHandle[u[r]]=i}function oi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||yi)-(~n.sourceIndex||yi);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function bi(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ki(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function g(n){return s(function(t){return t=+t,s(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 kt(n){return n&&typeof n.getElementsByTagName!==ot&&n}function si(){}function ht(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function dt(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=nr++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function gt(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 di(n,t,i){for(var u=0,f=t.length;u<f;u++)r(n,t[u],i);return i}function ct(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function ni(n,t,i,r,u,e){return r&&!r[f]&&(r=ni(r)),u&&!u[f]&&(u=ni(u,e)),s(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||di(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:ct(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=ct(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?tt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=ct(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):d.apply(e,h)})}function ti(t){for(var s,u,r,o=t.length,h=n.relative[t[0].type],c=h||n.relative[" "],i=h?1:0,l=dt(function(n){return n===s},c,!0),a=dt(function(n){return tt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==at)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];i<o;i++)if(u=n.relative[t[i].type])e=[dt(gt(e),u)];else{if(u=n.filter[t[i].type].apply(null,t[i].matches),u[f]){for(r=++i;r<o&&!n.relative[t[r].type];r++);return ni(i>1&&gt(e),i>1&&ht(t.slice(0,i-1).concat({value:" "===t[i-2].type?"*":""})).replace(yt,"$1"),u,i<r&&ti(t.slice(i,r)),r<o&&ti(t=t.slice(r)),r<o&&ht(t))}e.push(u)}return gt(e)}function gi(t,i){var u=i.length>0,f=t.length>0,o=function(o,s,h,c,l){var y,k,w,b=0,a="0",g=o&&[],p=[],nt=at,tt=o||f&&n.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(at=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(k=0;w=t[k++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&b--,o&&g.push(y))}if(b+=a,u&&a!==b){for(k=0;w=i[k++];)w(g,p,s,h);if(o){if(b>0)for(;a--;)g[a]||p[a]||(p[a]=ir.call(c));p=ct(p)}d.apply(c,p);l&&!o&&p.length>0&&b+i.length>1&&r.uniqueSort(c)}return l&&(v=it,at=nt),g};return u?s(o):o}var rt,u,n,lt,hi,ft,ii,ci,at,w,ut,b,e,l,a,o,nt,vt,et,f="sizzle"+-new Date,h=window.document,v=0,nr=0,li=wt(),ai=wt(),vi=wt(),ri=function(n,t){return n===t&&(ut=!0),0},ot=typeof t,yi=-2147483648,tr={}.hasOwnProperty,k=[],ir=k.pop,rr=k.push,d=k.push,pi=k.slice,tt=k.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},ui="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",wi="\\["+i+"*("+it+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+i+"*\\]",fi=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+wi+")*)|.*)\\)|)",yt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),ur=new RegExp("^"+i+"*,"+i+"*"),fr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),er=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),or=new RegExp(fi),sr=new RegExp("^"+it+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+wi),PSEUDO:new RegExp("^"+fi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+ui+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},hr=/^(?:input|select|textarea|button)$/i,cr=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,lr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ei=/[+~]/,ar=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","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,1023&r|56320)};try{d.apply(k=pi.call(h.childNodes),h.childNodes);k[h.childNodes.length].nodeType}catch(vr){d={apply:k.length?function(n,t){rr.apply(n,pi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};hi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=r.setDocument=function(t){function k(n){try{return n.top}catch(t){}return null}var v,r=t?t.ownerDocument||t:h,s=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!hi(r),s&&s!==k(s)&&(s.addEventListener?s.addEventListener("unload",function(){b()},!1):s.attachEvent&&s.attachEvent("onunload",function(){b()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(n.find.ID=function(n,t){if(typeof t.getElementById!==ot&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!==ot&&n.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ot)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},n.find.CLASS=u.getElementsByClassName&&function(n,t){if(a)return t.getElementsByClassName(n)},nt=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+ui+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(vt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=vt.call(n,"div");vt.call(n,"[s!='']:x");nt.push("!=",fi)}),o=o.length&&new RegExp(o.join("|")),nt=nt.length&&new RegExp(nt.join("|")),v=st.test(l.compareDocumentPosition),et=v||st.test(l.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},ri=v?function(n,t){if(n===t)return ut=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===h&&et(h,n)?-1:t===r||t.ownerDocument===h&&et(h,t)?1:w?tt.call(w,n)-tt.call(w,t):0:4&i?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===r?-1:t===r?1:o?-1:s?1:w?tt.call(w,n)-tt.call(w,t):0;if(o===s)return oi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);for(;f[u]===e[u];)u++;return u?oi(f[u],e[u]):f[u]===h?-1:e[u]===h?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&b(n),t=t.replace(er,"='$1']"),u.matchesSelector&&a&&(!nt||!nt.test(t))&&(!o||!o.test(t)))try{var i=vt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&b(n),et(n,t)};r.attr=function(i,r){(i.ownerDocument||i)!==e&&b(i);var o=n.attrHandle[r.toLowerCase()],f=o&&tr.call(n.attrHandle,r.toLowerCase())?o(i,r,!a):t;return f!==t?f:u.attributes||!a?i.getAttribute(r):(f=i.getAttributeNode(r))&&f.specified?f.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(ut=!u.detectDuplicates,w=!u.sortStable&&n.slice(0),n.sort(ri),ut){for(;r=n[i++];)r===n[i]&&(t=f.push(i));for(;t--;)n.splice(f[t],1)}return w=null,n};lt=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=lt(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=lt(r);return i};n=r.selectors={cacheLength:50,createPseudo:s,match:pt,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(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return pt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.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=li[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&li(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ot&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){for(;b;){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else for(;(c=++y&&c&&c[b]||(l=y=0)||w.pop())&&((e?c.nodeName.toLowerCase()!==g:1!==c.nodeType)||!++l||(d&&((c[f]||(c[f]={}))[n]=[v,l]),c!==t)););return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(t,i){var e,u=n.pseudos[t]||n.setFilters[t.toLowerCase()]||r.error("unsupported pseudo: "+t);return u[f]?u(i):u.length>1?(e=[t,t,"",i],n.setFilters.hasOwnProperty(t.toLowerCase())?s(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=tt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:s(function(n){var i=[],r=[],t=ii(n.replace(yt,"$1"));return t[f]?s(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:s(function(n){return function(t){return r(n,t).length>0}}),contains:s(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||lt(t)).indexOf(n)>-1}}),lang:s(function(n){return sr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(n){var t=window.location&&window.location.hash;return t&&t.slice(1)===n.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!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(t){return!n.pseudos.empty(t)},header:function(n){return cr.test(n.nodeName)},input:function(n){return hr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:g(function(){return[0]}),last:g(function(n,t){return[t-1]}),eq:g(function(n,t,i){return[i<0?i+t:i]}),even:g(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:g(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:g(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:g(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};n.pseudos.nth=n.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[rt]=bi(rt);for(rt in{submit:!0,reset:!0})n.pseudos[rt]=ki(rt);return si.prototype=n.filters=n.pseudos,n.setFilters=new si,ft=r.tokenize=function(t,i){var e,f,s,o,u,h,c,l=ai[t+" "];if(l)return i?0:l.slice(0);for(u=t,h=[],c=n.preFilter;u;){(!e||(f=ur.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=fr.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(yt," ")}),u=u.slice(e.length));for(o in n.filter)(f=pt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(t):ai(t,h).slice(0)},ii=r.compile=function(n,t){var r,u=[],e=[],i=vi[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ti(t[r]),i[f]?u.push(i):e.push(i);i=vi(n,gi(e,u));i.selector=n}return i},ci=r.select=function(t,i,r,f){var s,e,o,l,v,c="function"==typeof t&&t,h=!f&&ft(t=c.selector||t);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&n.relative[e[1].type]){if(i=(n.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);t=t.slice(e.shift().value.length)}for(s=pt.needsContext.test(t)?0:e.length;s--&&(o=e[s],!n.relative[l=o.type]);)if((v=n.find[l])&&(f=v(o.matches[0].replace(y,p),ei.test(e[0].type)&&kt(i.parentNode)||i))){if(e.splice(s,1),t=f.length&&ht(e),!t)return d.apply(r,f),r;break}}return(c||ii(t,h))(f,i,!a,r,ei.test(t)&&kt(i.parentNode)||i),r},u.sortStable=f.split("").sort(ri).join("")===f,u.detectDuplicates=!!ut,b(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||bt("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||bt("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||bt(ui,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r});i(e,[],function(){function u(n){var i=n,t,u;if(!r(n))for(i=[],t=0,u=n.length;t<u;t++)i[t]=n[t];return i}function n(n,i,r){var u,f;if(!n)return 0;if(r=r||n,n.length!==t){for(u=0,f=n.length;u<f;u++)if(i.call(r,n[u],u,n)===!1)return 0}else for(u in n)if(n.hasOwnProperty(u)&&i.call(r,n[u],u,n)===!1)return 0;return 1}function f(t,i){var r=[];return n(t,function(n,u){r.push(i(n,u,t))}),r}function e(t,i){var r=[];return n(t,function(n,u){i&&!i(n,u,t)||r.push(n)}),r}function o(n,t){var i,r;if(n)for(i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}function s(n,t,i,r){var u=0;for(arguments.length<3&&(i=n[0]);u<n.length;u++)i=t.call(r,i,n[u],u);return i}function i(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r,n))return r;return-1}function h(n,r,u){var f=i(n,r,u);return f!==-1?n[f]:t}function c(n){return n[n.length-1]}var r=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};return{isArray:r,toArray:u,each:n,map:f,filter:e,indexOf:o,reduce:s,findIndex:i,find:h,last:c}});i(r,[u,e],function(n,i){function r(n){return null===n||n===t?"":(""+n).replace(y,"")}function u(n,r){return r?!("array"!=r||!i.isArray(n))||typeof n==r:n!==t}function e(n,t,i){var r;for(n=n||[],t=t||",","string"==typeof n&&(n=n.split(t)),i=i||{},r=n.length;r--;)i[n[r]]={};return i}function o(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function s(n,t,i){var e=this,f,u,r,o,s,h=0;if(n=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(n),r=n[3].match(/(^|\.)(\w+)$/i)[2],u=e.createNS(n[3].replace(/\.\w+$/,""),i),!u[r]){if("static"==n[2])return u[r]=t,void(this.onCreate&&this.onCreate(n[2],n[3],u[r]));t[r]||(t[r]=function(){},h=1);u[r]=t[r];e.extend(u[r].prototype,t);n[5]&&(f=e.resolve(n[5]).prototype,o=n[5].match(/\.(\w+)$/i)[1],s=u[r],u[r]=h?function(){return f[o].apply(this,arguments)}:function(){return this.parent=f[o],s.apply(this,arguments)},u[r].prototype[r]=u[r],e.each(f,function(n,t){u[r].prototype[t]=f[t]}),e.each(t,function(n,t){f[t]?u[r].prototype[t]=function(){return this.parent=f[t],n.apply(this,arguments)}:t!=r&&(u[r].prototype[t]=n)}));e.each(t["static"],function(n,t){u[r][t]=n})}}function h(n,i){for(var u,o=arguments,f,r=1,e=o.length;r<e;r++){i=o[r];for(u in i)i.hasOwnProperty(u)&&(f=i[u],f!==t&&(n[u]=f))}return n}function f(n,t,r,u){u=u||this;n&&(r&&(n=n[r]),i.each(n,function(n,i){return t.call(u,n,i,r)!==!1&&void f(n,t,r,u)}))}function c(n,t){var i,r;for(t=t||window,n=n.split("."),i=0;i<n.length;i++)r=n[i],t[r]||(t[r]={}),t=t[r];return t}function l(n,t){var i,r;for(t=t||window,n=n.split("."),i=0,r=n.length;i<r&&(t=t[n[i]],t);i++);return t}function a(n,t){return!n||u(n,"array")?n:i.map(n.split(t||","),r)}function v(t){var i=n.cacheSuffix;return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}var y=/^\s*|\s*$/g;return{trim:r,isArray:i.isArray,is:u,toArray:i.toArray,makeMap:e,each:i.each,map:i.map,grep:i.filter,inArray:i.indexOf,hasOwn:o,extend:h,create:s,walk:f,createNS:c,resolve:l,explode:a,_addCacheSuffix:v}});i(c,[et,ni,r,u],function(n,i,r,u){function h(n){return"undefined"!=typeof n}function v(n){return"string"==typeof n}function et(n){return n&&n==n.window}function k(n,t){var i,u,r;for(t=t||ut,r=t.createElement("div"),i=t.createDocumentFragment(),r.innerHTML=n;u=r.firstChild;)i.appendChild(u);return i}function s(n,t,i,r){var u;if(v(t))t=k(t,y(n[0]));else if(t.length&&!t.nodeType){if(t=f.makeArray(t),r)for(u=t.length-1;u>=0;u--)s(n,t[u],i,r);else for(u=0;u<t.length;u++)s(n,t[u],i,r);return n}if(t.nodeType)for(u=n.length;u--;)i.call(n[u],t);return n}function d(n,t){return n&&t&&(" "+n.className+" ").indexOf(" "+t+" ")!==-1}function g(n,t,i){var u,r;return t=f(t)[0],n.each(function(){var n=this;i&&u==n.parentNode?r.appendChild(n):(u=n.parentNode,r=t.cloneNode(!1),n.parentNode.insertBefore(r,n),r.appendChild(n))}),n}function f(n,t){return new f.fn.init(n,t)}function ot(n,t){var i;if(t.indexOf)return t.indexOf(n);for(i=t.length;i--;)if(t[i]===n)return i;return-1}function nt(n){return null===n||n===o?"":(""+n).replace(yt,"")}function e(n,t){var f,u,r,e,i;if(n)if(f=n.length,f===e){for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],t.call(i,u,i)===!1))break}else for(r=0;r<f&&(i=n[r],t.call(i,r,i)!==!1);r++);return n}function tt(n,t){var i=[];return e(n,function(n,r){t(r,n)&&i.push(r)}),i}function y(n){return n?9==n.nodeType?n:n.ownerDocument:ut}function it(n,i,r){var e=[],u=n[i];for("string"!=typeof r&&r instanceof f&&(r=r[0]);u&&9!==u.nodeType;){if(r!==t){if(u===r)break;if("string"==typeof r&&f(u).is(r))break}1===u.nodeType&&e.push(u);u=u[i]}return e}function p(n,i,r,u){var e=[];for(u instanceof f&&(u=u[0]);n;n=n[i])if(!r||n.nodeType===r){if(u!==t){if(n===u)break;if("string"==typeof u&&f(n).is(u))break}e.push(n)}return e}function rt(n,t,i){for(n=n[t];n;n=n[t])if(n.nodeType==i)return n;return null}function w(n,t,i){e(i,function(i,r){n[i]=n[i]||{};n[i][t]=r})}var ut=document,b=Array.prototype.push,st=Array.prototype.slice,ht=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,c=n.Event,o,ct=r.makeMap("children,contents,next,prev"),lt=r.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),at=r.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),vt={"for":"htmlFor","class":"className",readonly:"readOnly"},ft={float:"cssFloat"},l={},a={},yt=/^\s*|\s*$/g;return f.fn=f.prototype={constructor:f,selector:"",context:null,length:0,init:function(n,t){var i=this,u,r;if(!n)return i;if(n.nodeType)return i.context=i[0]=n,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return f(n).attr(t);i.context=t=document}if(v(n)){if(i.selector=n,u="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:ht.exec(n),!u)return f(t).find(n);if(u[1])for(r=k(n,y(t)).firstChild;r;)b.call(i,r),r=r.nextSibling;else{if(r=y(t).getElementById(u[2]),!r)return i;if(r.id!==u[2])return i.find(n);i.length=1;i[0]=r}}else this.add(n,!1);return i},toArray:function(){return r.toArray(this)},add:function(n,t){var i=this,u,r;if(v(n))return i.add(f(n));if(t!==!1)for(u=f.unique(i.toArray().concat(f.makeArray(n))),i.length=u.length,r=0;r<u.length;r++)i[r]=u[r];else b.apply(i,f.makeArray(n));return i},attr:function(n,t){var i=this,r;if("object"==typeof n)e(n,function(n,t){i.attr(n,t)});else{if(!h(t)){if(i[0]&&1===i[0].nodeType){if(r=l[n],r&&r.get)return r.get(i[0],n);if(at[n])return i.prop(n)?n:o;t=i[0].getAttribute(n,2);null===t&&(t=o)}return t}this.each(function(){var i;if(1===this.nodeType){if(i=l[n],i&&i.set)return void i.set(this,t);null===t?this.removeAttribute(n,2):this.setAttribute(n,t,2)}})}return i},removeAttr:function(n){return this.attr(n,null)},prop:function(n,t){var i=this;if(n=vt[n]||n,"object"==typeof n)e(n,function(n,t){i.prop(n,t)});else{if(!h(t))return i[0]&&i[0].nodeType&&n in i[0]?i[0][n]:t;this.each(function(){1==this.nodeType&&(this[n]=t)})}return i},css:function(n,t){function f(n){return n.replace(/-(\D)/g,function(n,t){return t.toUpperCase()})}function s(n){return n.replace(/[A-Z]/g,function(n){return"-"+n})}var u=this,r,i;if("object"==typeof n)e(n,function(n,t){u.css(n,t)});else if(h(t))n=f(n),"number"!=typeof t||lt[n]||(t+="px"),u.each(function(){var r=this.style;if(i=a[n],i&&i.set)return void i.set(this,t);try{this.style[ft[n]||n]=t}catch(u){}null!==t&&""!==t||(r.removeProperty?r.removeProperty(s(n)):r.removeAttribute(n))});else{if(r=u[0],i=a[n],i&&i.get)return i.get(r);if(r.ownerDocument.defaultView)try{return r.ownerDocument.defaultView.getComputedStyle(r,null).getPropertyValue(s(n))}catch(c){return o}else if(r.currentStyle)return r.currentStyle[f(n)]}return u},remove:function(){for(var i=this,n,t=this.length;t--;)n=i[t],c.clean(n),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){for(var i=this,n,t=this.length;t--;)for(n=i[t];n.firstChild;)n.removeChild(n.firstChild);return this},html:function(n){var t=this,i;if(h(n)){i=t.length;try{for(;i--;)t[i].innerHTML=n}catch(r){f(t[i]).empty().append(n)}return t}return t[0]?t[0].innerHTML:""},text:function(n){var t=this,i;if(h(n)){for(i=t.length;i--;)"innerText"in t[i]?t[i].innerText=n:t[0].textContent=n;return t}return t[0]?t[0].innerText||t[0].textContent:""},append:function(){return s(this,arguments,function(n){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(n)})},prepend:function(){return s(this,arguments,function(n){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(n,this.firstChild)},!0)},before:function(){var n=this;return n[0]&&n[0].parentNode?s(n,arguments,function(n){this.parentNode.insertBefore(n,this)}):n},after:function(){var n=this;return n[0]&&n[0].parentNode?s(n,arguments,function(n){this.parentNode.insertBefore(n,this.nextSibling)},!0):n},appendTo:function(n){return f(n).append(this),this},prependTo:function(n){return f(n).prepend(this),this},replaceWith:function(n){return this.before(n).remove()},wrap:function(n){return g(this,n)},wrapAll:function(n){return g(this,n,!0)},wrapInner:function(n){return this.each(function(){f(this).contents().wrapAll(n)}),this},unwrap:function(){return this.parent().each(function(){f(this).replaceWith(this.childNodes)})},clone:function(){var n=[];return this.each(function(){n.push(this.cloneNode(!0))}),f(n)},addClass:function(n){return this.toggleClass(n,!0)},removeClass:function(n){return this.toggleClass(n,!1)},toggleClass:function(n,t){var i=this;return"string"!=typeof n?i:(n.indexOf(" ")!==-1?e(n.split(" "),function(){i.toggleClass(this,t)}):i.each(function(i,r){var u,f;f=d(r,n);f!==t&&(u=r.className,f?r.className=nt((" "+u+" ").replace(" "+n+" "," ")):r.className+=u?" "+n:n)}),i)},hasClass:function(n){return d(this[0],n)},each:function(n){return e(this,n)},on:function(n,t){return this.each(function(){c.bind(this,n,t)})},off:function(n,t){return this.each(function(){c.unbind(this,n,t)})},trigger:function(n){return this.each(function(){"object"==typeof n?c.fire(this,n.type,n):c.fire(this,n)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new f(st.apply(this,arguments))},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(n){for(var r=[],t=0,i=this.length;t<i;t++)f.find(n,this[t],r);return f(r)},filter:function(n){return f("function"==typeof n?tt(this.toArray(),function(t,i){return n(i,t)}):f.filter(n,this.toArray()))},closest:function(n){var t=[];return n instanceof f&&(n=n[0]),this.each(function(i,r){for(;r;){if("string"==typeof n&&f(r).is(n)){t.push(r);break}if(r==n){t.push(r);break}r=r.parentNode}}),f(t)},offset:function(n){var t,r,i,f=0,e=0,u;return n?this.css(n):(t=this[0],t&&(r=t.ownerDocument,i=r.documentElement,t.getBoundingClientRect&&(u=t.getBoundingClientRect(),f=u.left+(i.scrollLeft||r.body.scrollLeft)-i.clientLeft,e=u.top+(i.scrollTop||r.body.scrollTop)-i.clientTop)),{left:f,top:e})},push:b,sort:[].sort,splice:[].splice},r.extend(f,{extend:r.extend,makeArray:function(n){return et(n)||n.nodeType?[n]:r.toArray(n)},inArray:ot,isArray:r.isArray,each:e,trim:nt,grep:tt,find:i,expr:i.selectors,unique:i.uniqueSort,text:i.getText,contains:i.contains,filter:function(n,t,i){var r=t.length;for(i&&(n=":not("+n+")");r--;)1!=t[r].nodeType&&t.splice(r,1);return 1===t.length?f.find.matchesSelector(t[0],n)?[t[0]]:[]:f.find.matches(n,t)}}),e({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},next:function(n){return rt(n,"nextSibling",1)},prev:function(n){return rt(n,"previousSibling",1)},children:function(n){return p(n.firstChild,"nextSibling",1)},contents:function(n){return r.toArray(("iframe"===n.nodeName?n.contentDocument||n.contentWindow.document:n).childNodes)}},function(n,t){f.fn[n]=function(i){var u=this,r=[];return u.each(function(){var n=t.call(r,this,i,r);n&&(f.isArray(n)?r.push.apply(r,n):r.push(n))}),this.length>1&&(ct[n]||(r=f.unique(r)),0===n.indexOf("parents")&&(r=r.reverse())),r=f(r),i?r.filter(i):r}}),e({parentsUntil:function(n,t){return it(n,"parentNode",t)},nextUntil:function(n,t){return p(n,"nextSibling",1,t).slice(1)},prevUntil:function(n,t){return p(n,"previousSibling",1,t).slice(1)}},function(n,t){f.fn[n]=function(i,r){var e=this,u=[];return e.each(function(){var n=t.call(u,this,i,u);n&&(f.isArray(n)?u.push.apply(u,n):u.push(n))}),this.length>1&&(u=f.unique(u),0!==n.indexOf("parents")&&"prevUntil"!==n||(u=u.reverse())),u=f(u),r?u.filter(r):u}}),f.fn.is=function(n){return!!n&&this.filter(n).length>0},f.fn.init.prototype=f.fn,f.overrideDefaults=function(n){function i(r,u){return t=t||n(),0===arguments.length&&(r=t.element),u||(u=t.context),new i.fn.init(r,u)}var t;return f.extend(i,this),i},u.ie&&u.ie<8&&(w(l,"get",{maxlength:function(n){var t=n.maxLength;return 2147483647===t?o:t},size:function(n){var t=n.size;return 20===t?o:t},"class":function(n){return n.className},style:function(n){var t=n.style.cssText;return 0===t.length?o:t}}),w(l,"set",{"class":function(n,t){n.className=t},style:function(n,t){n.style.cssText=t}})),u.ie&&u.ie<9&&(ft.float="styleFloat",w(a,"set",{opacity:function(n,t){var i=n.style;null===t||""===t?i.removeAttribute("filter"):(i.zoom=1,i.filter="alpha(opacity="+100*t+")")}})),f.attrHooks=l,f.cssHooks=a,f});i(yi,[],function(){return function(n,t){function s(n,t,i,r){function u(n){return n=parseInt(n,10).toString(16),n.length>1?n:"0"+n}return"#"+u(t)+u(i)+u(r)}var h=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,i,r={},u,o,f,e="﻿";for(n=n||{},t&&(o=t.getValidStyles(),f=t.getInvalidStyles()),u=("\\\" \\' \\; \\: ; : "+e).split(" "),i=0;i<u.length;i++)r[u[i]]=e+i,r[e+i]=u[i];return{toHex:function(n){return n.replace(h,s)},parse:function(t){function v(n,t,r){var e,o,s,h,f;if(e=u[n+"-top"+t],e&&(o=u[n+"-right"+t],o&&(s=u[n+"-bottom"+t],s&&(h=u[n+"-left"+t])))){for(f=[e,o,s,h],i=f.length-1;i--&&f[i]===f[i+1];);i>-1&&r||(u[n+t]=i==-1?f[0]:f.join(" "),delete u[n+"-top"+t],delete u[n+"-right"+t],delete u[n+"-bottom"+t],delete u[n+"-left"+t])}}function p(n){var t=u[n],i;if(t){for(t=t.split(" "),i=t.length;i--;)if(t[i]!==t[0])return!1;return u[n]=t[0],!0}}function nt(n,t,i,r){p(t)&&p(i)&&p(r)&&(u[n]=u[t]+" "+u[i]+" "+u[r],delete u[t],delete u[i],delete u[r])}function k(n){return b=!0,r[n]}function w(n,t){return b&&(n=n.replace(/\uFEFF[0-9]/g,function(n){return r[n]})),t||(n=n.replace(/\\([\'\";:])/g,"$1")),n}function tt(n){return String.fromCharCode(parseInt(n.slice(1),16))}function d(n){return n.replace(/\\[0-9a-f]+/gi,tt)}function it(t,i,r,u,f,e){if(f=f||e)return f=w(f),"'"+f.replace(/\'/g,"\\'")+"'";if(i=w(i||r||u),!n.allow_script_urls){var o=i.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(o)||!n.allow_svg_data_urls&&/^data:image\/svg/i.test(o))return""}return g&&(i=g.call(rt,i,"style")),"url('"+i.replace(/\'/g,"\\'")+"')"}var u={},y,o,f,b,g=n.url_converter,rt=n.url_converter_scope||this;if(t){for(t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,k).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(n){return n.replace(/[;:]/g,k)});y=c.exec(t);)if(c.lastIndex=y.index+y[0].length,o=y[1].replace(l,"").toLowerCase(),f=y[2].replace(l,""),o&&f){if(o=d(o),f=d(f),o.indexOf(e)!==-1||o.indexOf('"')!==-1)continue;if(!n.allow_script_urls&&("behavior"==o||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===o&&"700"===f?f="bold":"color"!==o&&"background-color"!==o||(f=f.toLowerCase());f=f.replace(h,s);f=f.replace(a,it);u[o]=b?w(f,!0):f}v("border","",!0);v("border","-width");v("border","-color");v("border","-style");v("padding","");v("margin","");nt("border","border-width","border-style","border-color");"medium none"===u.border&&delete u.border;"none"===u["border-image"]&&delete u["border-image"]}return u},serialize:function(n,t){function e(t){var u,r,e,f;if(u=o[t])for(r=0,e=u.length;r<e;r++)t=u[r],f=n[t],f&&(i+=(i.length>0?" ":"")+t+": "+f+";")}function s(n,t){var i;return i=f["*"],(!i||!i[n])&&(i=f[t],!i||!i[n])}var i="",r,u;if(t&&o)e("*"),e(t);else for(r in n)u=n[r],u&&(!f||s(r,t))&&(i+=(i.length>0?" ":"")+r+": "+u+";");return i}}}});i(p,[],function(){return function(n,t){function r(n,i,r,u){var e,f;if(n){if(!u&&n[i])return n[i];if(n!=t){if(e=n[r])return e;for(f=n.parentNode;f&&f!=t;f=f.parentNode)if(e=f[r])return e}}}function u(n,i,r,u){var e,o,f;if(n){if(e=n[r],t&&e===t)return;if(e){if(!u)for(f=e[i];f;f=f[i])if(!f[i])return f;return e}if(o=n.parentNode,o&&o!==t)return o}}var i=n;this.current=function(){return i};this.next=function(n){return i=r(i,"firstChild","nextSibling",n)};this.prev=function(n){return i=r(i,"lastChild","previousSibling",n)};this.prev2=function(n){return i=u(i,"lastChild","previousSibling",n)}}});i(pi,[r],function(n){function t(i){function b(){return w.createDocumentFragment()}function k(n,t){ut(o,n,t)}function d(n,t){ut(c,n,t)}function tt(n){k(n.parentNode,v(n))}function st(n){k(n.parentNode,v(n)+1)}function ht(n){d(n.parentNode,v(n))}function it(n){d(n.parentNode,v(n)+1)}function ct(n){n?(r[e]=r[u],r[s]=r[f]):(r[u]=r[e],r[f]=r[s]);r.collapsed=o}function lt(n){tt(n);it(n)}function at(n){k(n,0);d(n,1===n.nodeType?n.childNodes.length:n.nodeValue.length)}function vt(n,t){var i=r[u],o=r[f],h=r[e],c=r[s],l=t.startContainer,a=t.startOffset,v=t.endContainer,p=t.endOffset;return 0===n?y(i,o,l,a):1===n?y(h,c,l,a):2===n?y(h,c,v,p):3===n?y(i,o,v,p):void 0}function yt(){nt(h)}function pt(){return nt(ui)}function rt(){return nt(l)}function wt(n){var t=this[u],r=this[f],o,e;3!==t.nodeType&&4!==t.nodeType||!t.nodeValue?(t.childNodes.length>0&&(e=t.childNodes[r]),e?t.insertBefore(n,e):3==t.nodeType?i.insertAfter(n,t):t.appendChild(n)):r?r>=t.nodeValue.length?i.insertAfter(n,t):(o=t.splitText(r),t.parentNode.insertBefore(n,o)):t.parentNode.insertBefore(n,t)}function bt(n){var t=r.extractContents();r.insertNode(n);n.appendChild(t);r.selectNode(n)}function kt(){return ot(new t(i),{startContainer:r[u],startOffset:r[f],endContainer:r[e],endOffset:r[s],collapsed:r.collapsed,commonAncestorContainer:r.commonAncestorContainer})}function g(n,t){var i;if(3==n.nodeType||t<0)return n;for(i=n.firstChild;i&&t>0;)--t,i=i.nextSibling;return i?i:n}function dt(){return r[u]==r[e]&&r[f]==r[s]}function y(n,t,r,u){var f,h,e,c,o,s;if(n==r)return t==u?0:t<u?-1:1;for(f=r;f&&f.parentNode!=n;)f=f.parentNode;if(f){for(h=0,e=n.firstChild;e!=f&&h<t;)h++,e=e.nextSibling;return t<=h?-1:1}for(f=n;f&&f.parentNode!=r;)f=f.parentNode;if(f){for(h=0,e=r.firstChild;e!=f&&h<u;)h++,e=e.nextSibling;return h<u?-1:1}for(c=i.findCommonAncestor(n,r),o=n;o&&o.parentNode!=c;)o=o.parentNode;for(o||(o=c),s=r;s&&s.parentNode!=c;)s=s.parentNode;if(s||(s=c),o==s)return 0;for(e=c.firstChild;e;){if(e==o)return-1;if(e==s)return 1;e=e.nextSibling}}function ut(n,t,o){var h,c;for(n?(r[u]=t,r[f]=o):(r[e]=t,r[s]=o),h=r[e];h.parentNode;)h=h.parentNode;for(c=r[u];c.parentNode;)c=c.parentNode;c==h?y(r[u],r[f],r[e],r[s])>0&&r.collapse(n):r.collapse(n);r.collapsed=dt();r.commonAncestorContainer=i.findCommonAncestor(r[u],r[e])}function nt(n){var i,l=0,a=0,t,s,f,o,h,c;if(r[u]==r[e])return gt(n);for(i=r[e],t=i.parentNode;t;i=t,t=t.parentNode){if(t==r[u])return ni(i,n);++l}for(i=r[u],t=i.parentNode;t;i=t,t=t.parentNode){if(t==r[e])return ti(i,n);++a}for(s=a-l,f=r[u];s>0;)f=f.parentNode,s--;for(o=r[e];s<0;)o=o.parentNode,s++;for(h=f.parentNode,c=o.parentNode;h!=c;h=h.parentNode,c=c.parentNode)f=h,o=c;return ii(f,o,n)}function gt(n){var i,y,e,t,c,k,d,a,v;if(n!=h&&(i=b()),r[f]==r[s])return i;if(3==r[u].nodeType)return(y=r[u].nodeValue,e=y.substring(r[f],r[s]),n!=l&&(t=r[u],a=r[f],v=r[s]-r[f],0===a&&v>=t.nodeValue.length-1?t.parentNode.removeChild(t):t.deleteData(a,v),r.collapse(o)),n==h)?void 0:(e.length>0&&i.appendChild(w.createTextNode(e)),i);for(t=g(r[u],r[f]),c=r[s]-r[f];t&&c>0;)k=t.nextSibling,d=p(t,n),i&&i.appendChild(d),--c,t=k;return n!=l&&r.collapse(o),i}function ni(n,t){var i,u,o,e,s,a;if(t!=h&&(i=b()),u=ft(n,t),i&&i.appendChild(u),o=v(n),e=o-r[f],e<=0)return t!=l&&(r.setEndBefore(n),r.collapse(c)),i;for(u=n.previousSibling;e>0;)s=u.previousSibling,a=p(u,t),i&&i.insertBefore(a,i.firstChild),--e,u=s;return t!=l&&(r.setEndBefore(n),r.collapse(c)),i}function ti(n,t){var u,f,i,e,c,a;for(t!=h&&(u=b()),i=et(n,t),u&&u.appendChild(i),f=v(n),++f,e=r[s]-f,i=n.nextSibling;i&&e>0;)c=i.nextSibling,a=p(i,t),u&&u.appendChild(a),--e,i=c;return t!=l&&(r.setStartAfter(n),r.collapse(o)),u}function ii(n,t,i){var f,u,s,a,c,e,y;for(i!=h&&(u=b()),f=et(n,i),u&&u.appendChild(f),s=v(n),a=v(t),++s,c=a-s,e=n.nextSibling;c>0;)y=e.nextSibling,f=p(e,i),u&&u.appendChild(f),e=y,--c;return f=ft(t,i),u&&u.appendChild(f),i!=l&&(r.setStartAfter(n),r.collapse(o)),u}function ft(n,t){var i=g(r[e],r[s]-1),u,f,y,p,l,v=i!=r[e];if(i==n)return a(i,v,c,t);for(u=i.parentNode,f=a(u,c,c,t);u;){for(;i;)y=i.previousSibling,p=a(i,v,c,t),t!=h&&f.insertBefore(p,f.firstChild),v=o,i=y;if(u==n)return f;i=u.previousSibling;u=u.parentNode;l=a(u,c,c,t);t!=h&&l.appendChild(f);f=l}}function et(n,t){var i=g(r[u],r[f]),l=i!=r[u],e,s,y,p,v;if(i==n)return a(i,l,o,t);for(e=i.parentNode,s=a(e,c,o,t);e;){for(;i;)y=i.nextSibling,p=a(i,l,o,t),t!=h&&s.appendChild(p),l=o,i=y;if(e==n)return s;i=e.nextSibling;e=e.parentNode;v=a(e,c,o,t);t!=h&&v.appendChild(s);s=v}}function a(n,t,u,e){var a,v,y,o,w;return t?p(n,e):3==n.nodeType?(a=n.nodeValue,u?(o=r[f],v=a.substring(o),y=a.substring(0,o)):(o=r[s],v=a.substring(0,o),y=a.substring(o)),e!=l&&(n.nodeValue=y),e==h)?void 0:(w=i.clone(n,c),w.nodeValue=v,w):e!=h?i.clone(n,c):void 0}function p(n,t){return t!=h?t==l?i.clone(n,o):n:void n.parentNode.removeChild(n)}function ri(){return i.create("body",null,rt()).outerText}var r=this,w=i.doc,ui=0,l=1,h=2,o=!0,c=!1,f="startOffset",u="startContainer",e="endContainer",s="endOffset",ot=n.extend,v=i.nodeIndex;return ot(r,{startContainer:w,startOffset:0,endContainer:w,endOffset:0,collapsed:o,commonAncestorContainer:w,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:k,setEnd:d,setStartBefore:tt,setStartAfter:st,setEndBefore:ht,setEndAfter:it,collapse:ct,selectNode:lt,selectNodeContents:at,compareBoundaryPoints:vt,deleteContents:yt,extractContents:pt,cloneContents:rt,insertNode:wt,surroundContents:bt,cloneRange:kt,toStringIE:ri}),r}return t.prototype.toString=function(){return this.toStringIE()},t});i(b,[r],function(n){function s(n){var t;return t=document.createElement("div"),t.innerHTML=n,t.textContent||t.innerText||n}function e(n,i){var r,u,f,e={};if(n){for(n=n.split(","),i=i||10,r=0;r<n.length;r+=2)u=String.fromCharCode(parseInt(n[r],i)),t[u]||(f="&"+n[r+1]+";",e[u]=f,e[f]=u);return e}}var h=n.makeMap,r,t,o,u=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=/[<>&\"\']/g,l=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,a={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},i;return t={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},o={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},r=e("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),i={encodeRaw:function(n,i){return n.replace(i?u:f,function(n){return t[n]||n})},encodeAllRaw:function(n){return(""+n).replace(c,function(n){return t[n]||n})},encodeNumeric:function(n,i){return n.replace(i?u:f,function(n){return n.length>1?"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";":t[n]||"&#"+n.charCodeAt(0)+";"})},encodeNamed:function(n,i,e){return e=e||r,n.replace(i?u:f,function(n){return t[n]||e[n]||n})},getEncodeFunc:function(n,o){function s(n,i){return n.replace(i?u:f,function(n){return t[n]||o[n]||"&#"+n.charCodeAt(0)+";"||n})}function c(n,t){return i.encodeNamed(n,t,o)}return o=e(o)||r,n=h(n.replace(/\+/g,",")),n.named&&n.numeric?s:n.named?o?c:i.encodeNamed:n.numeric?i.encodeNumeric:i.encodeRaw},decode:function(n){return n.replace(l,function(n,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):a[t]||String.fromCharCode(t)):o[n]||r[n]||s(n)})}}});i(wu,[r,f],function(n,t){return function(i,r){function f(n){i.getElementsByTagName("head")[0].appendChild(n)}function o(r,o,h){function v(){for(var n=c.passed,t=n.length;t--;)n[t]();c.status=2;c.passed=[];c.failed=[]}function y(){for(var n=c.failed,t=n.length;t--;)n[t]();c.status=3;c.passed=[];c.failed=[]}function d(){var n=navigator.userAgent.match(/WebKit\/(\d*)/);return!!(n&&n[1]<536)}function w(n,i){n()||((new Date).getTime()-k<e?t.setTimeout(i):y())}function p(){w(function(){for(var r=i.styleSheets,n,u=r.length,t;u--;)if(n=r[u],t=n.ownerNode?n.ownerNode:n.owningElement,t&&t.id===l.id)return v(),!0},p)}function b(){w(function(){try{var n=a.sheet.cssRules;return v(),!!n}catch(t){}},b)}var l,a,k,c;if(r=n._addCacheSuffix(r),u[r]?c=u[r]:(c={passed:[],failed:[]},u[r]=c),o&&c.passed.push(o),h&&c.failed.push(h),1!=c.status){if(2==c.status)return void v();if(3==c.status)return void y();if(c.status=1,l=i.createElement("link"),l.rel="stylesheet",l.type="text/css",l.id="u"+s++,l.async=!1,l.defer=!1,k=(new Date).getTime(),"onload"in l&&!d())l.onload=p,l.onerror=y;else{if(navigator.userAgent.indexOf("Firefox")>0)return a=i.createElement("style"),a.textContent='@import "'+r+'"',b(),void f(a);p()}f(l);l.href=r}}var s=0,u={},e;r=r||{};e=r.maxLoadTime||5e3;this.load=o}});i(o,[ni,c,yi,et,p,pi,b,u,r,wu],function(n,i,r,u,f,e,o,s,h,c){function b(n,t){var i={},r=t.keep_values,u;return u={set:function(i,r,u){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n,r,u,i[0]));i.attr("data-mce-"+u,r).attr(u,r)},get:function(n,t){return n.attr("data-mce-"+t)||n.attr(t)}},i={style:{set:function(n,t){return null!==t&&"object"==typeof t?void n.css(t):(r&&n.attr("data-mce-style",t),void n.attr("style",t))},get:function(t){var i=t.attr("data-mce-style")||t.attr("style");return n.serializeStyle(n.parseStyle(i),t[0].nodeName)}}},r&&(i.href=i.src=u),i}function p(n,t){var i=t.attr("style");i=n.serializeStyle(n.parseStyle(i),t[0].nodeName);i||(i=null);t.attr("data-mce-style",i)}function w(n,t){var u=0,r,i;if(n)for(r=n.nodeType,n=n.previousSibling;n;n=n.previousSibling)i=n.nodeType,(!t||3!=i||i!=r&&n.nodeValue.length)&&(u++,r=i);return u}function l(n,t){var f=this,e;f.doc=n;f.win=window;f.files={};f.counter=0;f.stdMode=!a||n.documentMode>=8;f.boxModel=!a||"CSS1Compat"==n.compatMode||f.stdMode;f.styleSheetLoader=new c(n);f.boundEvents=[];f.settings=t=t||{};f.schema=t.schema;f.styles=new r({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema);f.fixDoc(n);f.events=t.ownEvents?new u(t.proxy):u.Event;f.attrHooks=b(f,t);e=t.schema?t.schema.getBlockElements():{};f.$=i.overrideDefaults(function(){return{context:n,element:f.getRoot()}});f.isBlock=function(n){if(!n)return!1;var t=n.nodeType;return t?!(1!==t||!e[n.nodeName]):!!e[n]}}var v=h.each,y=h.is,k=h.grep,d=h.trim,a=s.ie,g=/^([a-z0-9],?)+$/i,nt=/^[ \t\r\n]*$/;return l.prototype={$$:function(n){return"string"==typeof n&&(n=this.get(n)),this.$(n)},root:null,fixDoc:function(n){var t=this.settings,i;if(a&&t.schema){"abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video".replace(/\w+/g,function(t){n.createElement(t)});for(i in t.schema.getCustomElements())n.createElement(i)}},clone:function(n,t){var i=this,r,u;return!a||1!==n.nodeType||t?n.cloneNode(t):(u=i.doc,t?r.firstChild:(r=u.createElement(n.nodeName),v(i.getAttribs(n),function(t){i.setAttrib(r,t.nodeName,i.getAttrib(n,t.nodeName))}),r))},getRoot:function(){var n=this;return n.settings.root_element||n.doc.body},getViewPort:function(n){var i,t;return n=n?n:this.win,i=n.document,t=this.boxModel?i.documentElement:i.body,{x:n.pageXOffset||t.scrollLeft,y:n.pageYOffset||t.scrollTop,w:n.innerWidth||t.clientWidth,h:n.innerHeight||t.clientHeight}},getRect:function(n){var t=this,i,r;return n=t.get(n),i=t.getPos(n),r=t.getSize(n),{x:i.x,y:i.y,w:r.w,h:r.h}},getSize:function(n){var r=this,t,i;return n=r.get(n),t=r.getStyle(n,"width"),i=r.getStyle(n,"height"),t.indexOf("px")===-1&&(t=0),i.indexOf("px")===-1&&(i=0),{w:parseInt(t,10)||n.offsetWidth||n.clientWidth,h:parseInt(i,10)||n.offsetHeight||n.clientHeight}},getParent:function(n,t,i){return this.getParents(n,t,i,!1)},getParents:function(n,i,r,u){var f=this,e,o=[];for(n=f.get(n),u=u===t,r=r||("BODY"!=f.getRoot().nodeName?f.getRoot().parentNode:null),y(i,"string")&&(e=i,i="*"===i?function(n){return 1==n.nodeType}:function(n){return f.is(n,e)});n&&n!=r&&n.nodeType&&9!==n.nodeType;){if(!i||i(n)){if(!u)return n;o.push(n)}n=n.parentNode}return u?o:null},get:function(n){var t;return n&&this.doc&&"string"==typeof n&&(t=n,n=this.doc.getElementById(n),n&&n.id!==t)?this.doc.getElementsByName(t)[1]:n},getNext:function(n,t){return this._findSib(n,t,"nextSibling")},getPrev:function(n,t){return this._findSib(n,t,"previousSibling")},select:function(t,i){var r=this;return n(t,r.get(i)||r.settings.root_element||r.doc,[])},is:function(i,r){var u,f;if(i.length===t){if("*"===r)return 1==i.nodeType;if(g.test(r)){for(r=r.toLowerCase().split(/,/),i=i.nodeName.toLowerCase(),u=r.length-1;u>=0;u--)if(r[u]==i)return!0;return!1}}return i.nodeType&&1!=i.nodeType?!1:(f=i.nodeType?[i]:i,n(r,f[0].ownerDocument||f[0],null,f).length>0)},add:function(n,t,i,r,u){var f=this;return this.run(n,function(n){var e;return e=y(t,"string")?f.doc.createElement(t):t,f.setAttribs(e,i),r&&(r.nodeType?e.appendChild(r):f.setHTML(e,r)),u?e:n.appendChild(e)})},create:function(n,t,i){return this.add(this.doc.createElement(n),n,t,i,1)},createHTML:function(n,t,i){var u="",r;u+="<"+n;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(u+=" "+r+'="'+this.encode(t[r])+'"');return"undefined"!=typeof i?u+">"+i+"<\/"+n+">":u+" />"},createFragment:function(n){var t,r,u=this.doc,i;for(i=u.createElement("div"),t=u.createDocumentFragment(),n&&(i.innerHTML=n);r=i.firstChild;)t.appendChild(r);return t},remove:function(n,t){return n=this.$$(n),t?n.each(function(){for(var n;n=this.firstChild;)3==n.nodeType&&0===n.data.length?this.removeChild(n):this.parentNode.insertBefore(n,this)}).remove():n.remove(),n.length>1?n.toArray():n[0]},setStyle:function(n,t,i){n=this.$$(n).css(t,i);this.settings.update_styles&&p(this,n)},getStyle:function(n,i,r){return n=this.$$(n),r?n.css(i):(i=i.replace(/-(\D)/g,function(n,t){return t.toUpperCase()}),"float"==i&&(i=s.ie&&s.ie<12?"styleFloat":"cssFloat"),n[0]&&n[0].style?n[0].style[i]:t)},setStyles:function(n,t){n=this.$$(n).css(t);this.settings.update_styles&&p(this,n)},removeAllAttribs:function(n){return this.run(n,function(n){for(var i=n.attributes,t=i.length-1;t>=0;t--)n.removeAttributeNode(i.item(t))})},setAttrib:function(n,t,i){var u=this,f,r,e=u.settings;""===i&&(i=null);n=u.$$(n);f=n.attr(t);n.length&&(r=u.attrHooks[t],r&&r.set?r.set(n,i,t):n.attr(t,i),f!=i&&e.onSetAttrib&&e.onSetAttrib({attrElm:n,attrName:t,attrValue:i}))},setAttribs:function(n,t){var i=this;i.$$(n).each(function(n,r){v(t,function(n,t){i.setAttrib(r,t,n)})})},getAttrib:function(n,t,i){var f=this,r,u;return n=f.$$(n),n.length&&(r=f.attrHooks[t],u=r&&r.get?r.get(n,t):n.attr(t)),"undefined"==typeof u&&(u=i||""),u},getPos:function(n,t){var s=this,f=0,e=0,r,o=s.doc,u=o.body,h;if(n=s.get(n),t=t||u,n){if(t===u&&n.getBoundingClientRect&&"static"===i(u).css("position"))return h=n.getBoundingClientRect(),t=s.boxModel?o.documentElement:u,f=h.left+(o.documentElement.scrollLeft||u.scrollLeft)-t.clientLeft,e=h.top+(o.documentElement.scrollTop||u.scrollTop)-t.clientTop,{x:f,y:e};for(r=n;r&&r!=t&&r.nodeType;)f+=r.offsetLeft||0,e+=r.offsetTop||0,r=r.offsetParent;for(r=n.parentNode;r&&r!=t&&r.nodeType;)f-=r.scrollLeft||0,e-=r.scrollTop||0,r=r.parentNode}return{x:f,y:e}},parseStyle:function(n){return this.styles.parse(n)},serializeStyle:function(n,t){return this.styles.serialize(n,t)},addStyle:function(n){var f=this,r=f.doc,u,t,i;if(f!==l.DOM&&r===document){if(i=l.DOM.addedStyles,i=i||[],i[n])return;i[n]=!0;l.DOM.addedStyles=i}t=r.getElementById("mceDefaultStyles");t||(t=r.createElement("style"),t.id="mceDefaultStyles",t.type="text/css",u=r.getElementsByTagName("head")[0],u.firstChild?u.insertBefore(t,u.firstChild):u.appendChild(t));t.styleSheet?t.styleSheet.cssText+=n:t.appendChild(r.createTextNode(n))},loadCSS:function(n){var i=this,t=i.doc,r;return i!==l.DOM&&t===document?void l.DOM.loadCSS(n):(n||(n=""),r=t.getElementsByTagName("head")[0],void v(n.split(","),function(n){var u;n=h._addCacheSuffix(n);i.files[n]||(i.files[n]=!0,u=i.create("link",{rel:"stylesheet",href:n}),a&&t.documentMode&&t.recalc&&(u.onload=function(){t.recalc&&t.recalc();u.onload=null}),r.appendChild(u))}))},addClass:function(n,t){this.$$(n).addClass(t)},removeClass:function(n,t){this.toggleClass(n,t,!1)},hasClass:function(n,t){return this.$$(n).hasClass(t)},toggleClass:function(n,t,r){this.$$(n).toggleClass(t,r).each(function(){""===this.className&&i(this).attr("class",null)})},show:function(n){this.$$(n).show()},hide:function(n){this.$$(n).hide()},isHidden:function(n){return"none"==this.$$(n).css("display")},uniqueId:function(n){return(n?n:"mce_")+this.counter++},setHTML:function(n,t){n=this.$$(n);a?n.each(function(n,r){if(r.canHaveHTML!==!1){for(;r.firstChild;)r.removeChild(r.firstChild);try{r.innerHTML="<br>"+t;r.removeChild(r.firstChild)}catch(u){i("<div><\/div>").html("<br>"+t).contents().slice(1).appendTo(r)}return t}}):n.html(t)},getOuterHTML:function(n){return n=this.get(n),1==n.nodeType&&"outerHTML"in n?n.outerHTML:i("<div><\/div>").append(i(n).clone()).html()},setOuterHTML:function(n,t){var r=this;r.$$(n).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(n){}r.remove(i(this).html(t),!0)})},decode:o.decode,encode:o.encodeAllRaw,insertAfter:function(n,t){return t=this.get(t),this.run(n,function(n){var i,r;return i=t.parentNode,r=t.nextSibling,r?i.insertBefore(n,r):i.appendChild(n),n})},replace:function(n,t,i){var r=this;return r.run(t,function(t){return y(t,"array")&&(n=n.cloneNode(!0)),i&&v(k(t.childNodes),function(t){n.appendChild(t)}),t.parentNode.replaceChild(n,t)})},rename:function(n,t){var i=this,r;return n.nodeName!=t.toUpperCase()&&(r=i.create(t),v(i.getAttribs(n),function(t){i.setAttrib(r,t.nodeName,i.getAttrib(n,t.nodeName))}),i.replace(r,n,1)),r||n},findCommonAncestor:function(n,t){for(var i=n,r;i;){for(r=t;r&&i!=r;)r=r.parentNode;if(i==r)break;i=i.parentNode}return!i&&n.ownerDocument?n.ownerDocument.documentElement:i},toHex:function(n){return this.styles.toHex(h.trim(n))},run:function(n,t,i){var u=this,r;return"string"==typeof n&&(n=u.get(n)),!!n&&(i=i||this,n.nodeType||!n.length&&0!==n.length?t.call(i,n):(r=[],v(n,function(n,f){n&&("string"==typeof n&&(n=u.get(n)),r.push(t.call(i,n,f)))}),r))},getAttribs:function(n){var t,i;return(n=this.get(n),!n)?[]:a?(t=[],"OBJECT"==n.nodeName)?n.attributes:("OPTION"===n.nodeName&&this.getAttrib(n,"selected")&&t.push({specified:1,nodeName:"selected"}),i=/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,n.cloneNode(!1).outerHTML.replace(i,"").replace(/[\w:\-]+/gi,function(n){t.push({specified:1,nodeName:n})}),t):n.attributes},isEmpty:function(n,t){var e=this,o,s,r,u,i,c=0,h;if(n=n.firstChild){u=new f(n,n.parentNode);t=t||(e.schema?e.schema.getNonEmptyElements():null);do{if(r=n.nodeType,1===r){if(h=n.getAttribute("data-mce-bogus"),h){n=u.next("all"===h);continue}if(i=n.nodeName.toLowerCase(),t&&t[i]){if("br"===i){c++;n=u.next();continue}return!1}for(s=e.getAttribs(n),o=s.length;o--;)if(i=s[o].nodeName,"name"===i||"data-mce-bookmark"===i)return!1}if(8==r||3===r&&!nt.test(n.nodeValue))return!1;n=u.next()}while(n)}return c<=1},createRng:function(){var n=this.doc;return n.createRange?n.createRange():new e(this)},nodeIndex:w,split:function(n,t,i){function e(n){function o(n){var t=n.previousSibling&&"SPAN"==n.previousSibling.nodeName,i=n.nextSibling&&"SPAN"==n.nextSibling.nodeName;return t&&i}var i,t=n.childNodes,u=n.nodeType,f;if(1!=u||"bookmark"!=n.getAttribute("data-mce-type")){for(i=t.length-1;i>=0;i--)e(t[i]);if(9!=u){if(3==u&&n.nodeValue.length>0){if(f=d(n.nodeValue).length,!r.isBlock(n.parentNode)||f>0||0===f&&o(n))return}else if(1==u&&(t=n.childNodes,1==t.length&&t[0]&&1==t[0].nodeType&&"bookmark"==t[0].getAttribute("data-mce-type")&&n.parentNode.insertBefore(t[0],n),t.length||/^(br|hr|input|img)$/i.test(n.nodeName)))return;r.remove(n)}return n}}var r=this,u=r.createRng(),o,s,f;if(n&&t)return u.setStart(n.parentNode,r.nodeIndex(n)),u.setEnd(t.parentNode,r.nodeIndex(t)),o=u.extractContents(),u=r.createRng(),u.setStart(t.parentNode,r.nodeIndex(t)+1),u.setEnd(n.parentNode,r.nodeIndex(n)+1),s=u.extractContents(),f=n.parentNode,f.insertBefore(e(o),n),i?f.insertBefore(i,n):f.insertBefore(t,n),f.insertBefore(e(s),n),r.remove(n),i||t},bind:function(n,t,i,r){var u=this,f;if(h.isArray(n)){for(f=n.length;f--;)n[f]=u.bind(n[f],t,i,r);return n}return!u.settings.collect||n!==u.doc&&n!==u.win||u.boundEvents.push([n,t,i,r]),u.events.bind(n,t,i,r||u)},unbind:function(n,t,i){var f=this,r,u;if(h.isArray(n)){for(r=n.length;r--;)n[r]=f.unbind(n[r],t,i);return n}if(f.boundEvents&&(n===f.doc||n===f.win))for(r=f.boundEvents.length;r--;)u=f.boundEvents[r],n!=u[0]||t&&t!=u[1]||i&&i!=u[2]||this.events.unbind(u[0],u[1],u[2]);return this.events.unbind(n,t,i)},fire:function(n,t,i){return this.events.fire(n,t,i)},getContentEditable:function(n){var t;return n&&1==n.nodeType?(t=n.getAttribute("data-mce-contenteditable"),t&&"inherit"!==t?t:"inherit"!==n.contentEditable?n.contentEditable:null):null},getContentEditableParent:function(n){for(var i=this.getRoot(),t=null;n&&n!==i&&(t=this.getContentEditable(n),null===t);n=n.parentNode);return t},destroy:function(){var t=this,r,i;if(t.boundEvents){for(r=t.boundEvents.length;r--;)i=t.boundEvents[r],this.events.unbind(i[0],i[1],i[2]);t.boundEvents=null}n.setDocument&&n.setDocument();t.win=t.doc=t.root=t.events=t.frag=null},isChildOf:function(n,t){for(;n;){if(t===n)return!0;n=n.parentNode}return!1},dumpRng:function(n){return"startContainer: "+n.startContainer.nodeName+", startOffset: "+n.startOffset+", endContainer: "+n.endContainer.nodeName+", endOffset: "+n.endOffset},_findSib:function(n,t,i){var u=this,r=t;if(n)for("string"==typeof r&&(r=function(n){return u.is(n,t)}),n=n[i];n;n=n[i])if(r(n))return n;return null}},l.DOM=new l(document),l.nodeIndex=w,l});i(vt,[o,r],function(n,t){function i(){function a(n,i){function e(){o.remove(f);r&&(r.onreadystatechange=r.onload=r=null);i()}function s(){"undefined"!=typeof console&&console.log&&console.log("Failed to load: "+n)}var o=u,r,f;f=o.uniqueId();r=document.createElement("script");r.id=f;r.type="text/javascript";r.src=t._addCacheSuffix(n);"onreadystatechange"in r?r.onreadystatechange=function(){/loaded|complete/.test(r.readyState)&&e()}:r.onload=e;r.onerror=s;(document.getElementsByTagName("head")[0]||document.body).appendChild(r)}var v=0,h=1,e=2,n={},c=[],i={},o=[],s=0,l;this.isDone=function(t){return n[t]==e};this.markDone=function(t){n[t]=e};this.add=this.load=function(t,r,u){var f=n[t];f==l&&(c.push(t),n[t]=v);r&&(i[t]||(i[t]=[]),i[t].push({func:r,scope:u||this}))};this.remove=function(t){delete n[t];delete i[t]};this.loadQueue=function(n,t){this.loadScripts(c,n,t)};this.loadScripts=function(t,u,c){function v(n){r(i[n],function(n){n.func.call(n.scope)});i[n]=l}var y;o.push({func:u,scope:c||this});(y=function(){var i=f(t);t.length=0;r(i,function(t){return n[t]==e?void v(t):void(n[t]!=h&&(n[t]=h,s++,a(t,function(){n[t]=e;s--;v(t);y()})))});s||(r(o,function(n){n.func.call(n.scope)}),o.length=0)})()}}var u=n.DOM,r=t.each,f=t.grep;return i.ScriptLoader=new i,i});i(yt,[vt,r],function(n,i){function r(){var n=this;n.items=[];n.urls={};n.lookup={}}var u=i.each;return r.prototype={get:function(n){return this.lookup[n]?this.lookup[n].instance:t},dependencies:function(n){var t;return this.lookup[n]&&(t=this.lookup[n].dependencies),t||[]},requireLangPack:function(t,i){var u=r.language;if(u&&r.languageLoad!==!1){if(i)if(i=","+i+",",i.indexOf(","+u.substr(0,2)+",")!=-1)u=u.substr(0,2);else if(i.indexOf(","+u+",")==-1)return;n.ScriptLoader.add(this.urls[t]+"/langs/"+u+".js")}},add:function(n,t,i){return this.items.push(t),this.lookup[n]={instance:t,dependencies:i},t},remove:function(n){delete this.urls[n];delete this.lookup[n]},createUrl:function(n,t){return"object"==typeof t?t:{prefix:n.prefix,resource:t,suffix:n.suffix}},addComponents:function(t,i){var r=this.urls[t];u(i,function(t){n.ScriptLoader.add(r+"/"+t)})},load:function(i,f,e,o){function c(){var r=h.dependencies(i);u(r,function(n){var i=h.createUrl(f,n);h.load(i.resource,i,t,t)});e&&(o?e.call(o):e.call(n))}var h=this,s=f;h.urls[i]||("object"==typeof f&&(s=f.prefix+f.resource+f.suffix),0!==s.indexOf("/")&&s.indexOf("://")==-1&&(s=r.baseURL+"/"+s),h.urls[i]=s.substring(0,s.lastIndexOf("/")),h.lookup[i]?c():n.ScriptLoader.add(s,c,o))}},r.PluginManager=new r,r.ThemeManager=new r,r});i(s,[],function(){function t(n){return function(t){return!!t&&t.nodeType==n}}function i(n){return n=n.toLowerCase().split(" "),function(t){var i,r;if(t&&t.nodeType)for(r=t.nodeName.toLowerCase(),i=0;i<n.length;i++)if(r===n[i])return!0;return!1}}function u(t,i){return i=i.toLowerCase().split(" "),function(r){var u,f;if(n(r))for(u=0;u<i.length;u++)if(f=getComputedStyle(r,null).getPropertyValue(t),f===i[u])return!0;return!1}}function f(t,i){return function(r){return n(r)&&r[t]===i}}function e(t,i){return function(r){return n(r)&&r.getAttribute(t)===i}}function o(t){return n(t)&&t.hasAttribute("data-mce-bogus")}function r(t){return function(i){return n(i)&&(i.contentEditable===t||i.getAttribute("data-mce-contenteditable")===t)?!0:!1}}var n=t(1);return{isText:t(3),isElement:n,isComment:t(8),isBr:i("br"),isContentEditableTrue:r("true"),isContentEditableFalse:r("false"),matchNodeNames:i,hasPropValue:f,hasAttributeValue:e,matchStyleValues:u,isBogus:o}});i(wi,[],function(){function t(t){return t==n}function i(t){return t.replace(new RegExp(n,"g"),"")}var n="﻿";return{isZwsp:t,ZWSP:n,trim:i}});i(w,[s,wi],function(n,t){function u(n){return i(n)&&(n=n.parentNode),c(n)&&n.hasAttribute("data-mce-caret")}function f(n){return i(n)&&t.isZwsp(n.data)}function r(n){return u(n)||f(n)}function e(n){var t=n.parentNode;t&&t.removeChild(n)}function l(n){try{return n.nodeValue}catch(t){return""}}function a(n,t){0===t.length?e(n):n.nodeValue=t}function v(n,u){var c,f,e,o;if(c=n.ownerDocument,e=c.createTextNode(t.ZWSP),o=n.parentNode,u){if(f=n.previousSibling,i(f)){if(r(f))return f;if(h(f))return f.splitText(f.data.length-1)}o.insertBefore(e,n)}else{if(f=n.nextSibling,i(f)){if(r(f))return f;if(s(f))return f.splitText(1),f}n.nextSibling?o.insertBefore(e,n.nextSibling):o.appendChild(e)}return e}function y(){var n=document.createElement("br");return n.setAttribute("data-mce-bogus","1"),n}function p(n,t,i){var f,r,u;return f=t.ownerDocument,r=f.createElement(n),r.setAttribute("data-mce-caret",i?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(y()),u=t.parentNode,i?u.insertBefore(r,t):t.nextSibling?u.insertBefore(r,t.nextSibling):u.appendChild(r),r}function o(t){return t.firstChild!==t.lastChild||!n.isBr(t.firstChild)}function w(n){if(c(n)&&r(n)&&(o(n)?n.removeAttribute("data-mce-caret"):e(n)),i(n)){var u=t.trim(l(n));a(n,u)}}function s(n){return i(n)&&n.data[0]==t.ZWSP}function h(n){return i(n)&&n.data[n.data.length-1]==t.ZWSP}function b(t){var r=t.getElementsByTagName("br"),i=r[r.length-1];n.isBogus(i)&&i.parentNode.removeChild(i)}function k(n){return n&&n.hasAttribute("data-mce-caret")?(b(n),n.removeAttribute("data-mce-caret"),n.removeAttribute("data-mce-bogus"),n.removeAttribute("style"),n.removeAttribute("_moz_abspos"),n):null}var c=n.isElement,i=n.isText;return{isCaretContainer:r,isCaretContainerBlock:u,isCaretContainerInline:f,showCaretContainerBlock:k,insertInline:v,insertBlock:p,hasContent:o,remove:w,startsWithCaretContainer:s,endsWithCaretContainer:h}});i(v,[r,p,s,pi,w],function(n,t,i,r,u){function h(n){return b(n)||o(n)}function c(n,t){var i=n.childNodes;return t--,t>i.length-1?t=i.length-1:t<0&&(t=0),i[t]||n}function s(n,t,i){for(;n&&n!==t;){if(i(n))return n;n=n.parentNode}return null}function l(n,t,i){return null!==s(n,t,i)}function a(n){return"_mce_caret"===n.id}function v(n,t){return e(n)&&l(n,t,a)===!1}function f(n){this.walk=function(t,i){function a(n){var t;return t=n[0],3===t.nodeType&&t===u&&k>=t.nodeValue.length&&n.splice(0,1),t=n[n.length-1],0===d&&n.length>0&&t===f&&3===t.nodeType&&n.splice(n.length-1,1),n}function p(n,t,i){for(var r=[];n&&n!=i;n=n[t])r.push(n);return r}function b(n,t){do{if(n.parentNode==t)return n;n=n.parentNode}while(n)}function l(n,t,u){var f=u?"nextSibling":"previousSibling";for(r=n,v=r.parentNode;r&&r!=t;r=v)v=r.parentNode,o=p(r==n?r:r[f],f),o.length&&(u||o.reverse(),i(a(o)))}var u=t.startContainer,k=t.startOffset,f=t.endContainer,d=t.endOffset,e,s,h,r,v,o,y;if(y=n.select("td[data-mce-selected],th[data-mce-selected]"),y.length>0)return void w(y,function(n){i([n])});if(1==u.nodeType&&u.hasChildNodes()&&(u=u.childNodes[k]),1==f.nodeType&&f.hasChildNodes()&&(f=c(f,d)),u==f)return i(a([u]));for(e=n.findCommonAncestor(u,f),r=u;r;r=r.parentNode){if(r===f)return l(u,e,!0);if(r===e)break}for(r=f;r;r=r.parentNode){if(r===u)return l(f,e);if(r===e)break}s=b(u,e)||u;h=b(f,e)||f;l(u,s,!0);o=p(s==u?s:s.nextSibling,"nextSibling",h==f?h.nextSibling:h);o.length&&i(a(o));l(f,h)};this.split=function(n){function f(n,t){return n.splitText(t)}var i=n.startContainer,r=n.startOffset,t=n.endContainer,u=n.endOffset;return i==t&&3==i.nodeType?r>0&&r<i.nodeValue.length&&(t=f(i,r),i=t.previousSibling,u>r?(u-=r,i=t=f(t,u).previousSibling,u=t.nodeValue.length,r=0):u=0):(3==i.nodeType&&r>0&&r<i.nodeValue.length&&(i=f(i,r),r=0),3==t.nodeType&&u>0&&u<t.nodeValue.length&&(t=f(t,u).previousSibling,u=t.nodeValue.length)),{startContainer:i,startOffset:r,endContainer:t,endOffset:u}};this.normalize=function(i){function f(f){function d(n){return n&&/^(TD|TH|CAPTION)$/.test(n.nodeName)}function b(i,r){for(var u=new t(i,n.getParent(i.parentNode,n.isBlock)||a);i=u[r?"prev":"next"]();)if("BR"===i.nodeName)return!0}function g(n){for(;n&&n!=a;){if(o(n))return!0;n=n.parentNode}return!1}function nt(n,t){return n.previousSibling&&n.previousSibling.nodeName==t}function p(i,f){var l,e,o;if(f=f||h,o=n.getParent(f.parentNode,n.isBlock)||a,i&&"BR"==f.nodeName&&k&&n.isEmpty(o))return h=f.parentNode,c=n.nodeIndex(f),void(r=!0);for(l=new t(f,o);s=l[i?"prev":"next"]();){if("false"===n.getContentEditableParent(s)||v(s,n.getRoot()))return;if(3===s.nodeType&&s.nodeValue.length>0)return h=s,c=i?s.nodeValue.length:0,void(r=!0);if(n.isBlock(s)||y[s.nodeName.toLowerCase()])return;e=s}u&&e&&(h=e,r=!0,c=0)}var h,c,w,a=n.getRoot(),s,y,l,k;if(h=i[(f?"start":"end")+"Container"],c=i[(f?"start":"end")+"Offset"],k=1==h.nodeType&&c===h.childNodes.length,y=n.schema.getNonEmptyElements(),l=f,!e(h)){if(1==h.nodeType&&c>h.childNodes.length-1&&(l=!1),9===h.nodeType&&(h=n.getRoot(),c=0),h===a){if(l&&(s=h.childNodes[c>0?c-1:0])){if(e(s))return;if(y[s.nodeName]||"TABLE"==s.nodeName)return}if(h.hasChildNodes()){if(c=Math.min(!l&&c>0?c-1:c,h.childNodes.length-1),h=h.childNodes[c],c=0,!u&&h===a.lastChild&&"TABLE"===h.nodeName)return;if(g(h)||e(h))return;if(h.hasChildNodes()&&!/TABLE/.test(h.nodeName)){s=h;w=new t(h,a);do{if(o(s)||e(s)){r=!1;break}if(3===s.nodeType&&s.nodeValue.length>0){c=l?0:s.nodeValue.length;h=s;r=!0;break}if(y[s.nodeName.toLowerCase()]&&!d(s)){c=n.nodeIndex(s);h=s.parentNode;"IMG"!=s.nodeName||l||c++;r=!0;break}}while(s=l?w.next():w.prev())}}}u&&(3===h.nodeType&&0===c&&p(!0),1===h.nodeType&&(s=h.childNodes[c],s||(s=h.childNodes[c-1]),!s||"BR"!==s.nodeName||nt(s,"A")||b(s)||b(s,!0)||p(!0,s)));l&&!u&&3===h.nodeType&&c===h.nodeValue.length&&p(!1);r&&i["set"+(f?"Start":"End")](h,c)}}var r,u;return u=i.collapsed,f(!0),u||f(),r&&u&&i.collapse(!0),r}}function y(t,i,r){var e,u,f;if(e=r.elementFromPoint(t,i),u=r.body.createTextRange(),e&&"HTML"!=e.tagName||(e=r.body),u.moveToElementText(e),f=n.toArray(u.getClientRects()),f=f.sort(function(n,t){return n=Math.abs(Math.max(n.top-i,n.bottom-i)),t=Math.abs(Math.max(t.top-i,t.bottom-i)),n-t}),f.length>0){i=(f[0].bottom+f[0].top)/2;try{return u.moveToPoint(t,i),u.collapse(!0),u}catch(o){}}return null}function p(n,t){var i=n&&n.parentElement?n.parentElement():null;return o(s(i,t,h))?null:n}var w=n.each,b=i.isContentEditableTrue,o=i.isContentEditableFalse,e=u.isCaretContainer;return f.compareRanges=function(n,t){if(n&&t){if(!n.item&&!n.duplicate)return n.startContainer==t.startContainer&&n.startOffset==t.startOffset;if(n.item&&t.item&&n.item(0)===t.item(0)||n.isEqual&&t.isEqual&&t.isEqual(n))return!0}return!1},f.getCaretRangeFromPoint=function(n,t,i){var r,u;if(i.caretPositionFromPoint)u=i.caretPositionFromPoint(n,t),r=i.createRange(),r.setStart(u.offsetNode,u.offset),r.collapse(!0);else if(i.caretRangeFromPoint)r=i.caretRangeFromPoint(n,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(n,t);r.collapse(!0)}catch(f){r=y(n,t,i)}return p(r,i.body)}return r},f.getSelectedNode=function(n){var t=n.startContainer,i=n.startOffset;return t.hasChildNodes()&&n.endOffset==i+1?t.childNodes[i]:null},f.getNode=function(n,t){return 1==n.nodeType&&n.hasChildNodes()&&(t>=n.childNodes.length&&(t=n.childNodes.length-1),n=n.childNodes[t]),n},f});i(bu,[v,u,f],function(n,t,i){return function(r){function e(n){var t,i;if(i=r.$(n).parentsUntil(r.getBody()).add(n),i.length===u.length){for(t=i.length;t>=0&&i[t]===u[t];t--);if(t===-1)return u=i,!0}return u=i,!1}var f,u=[];"onselectionchange"in r.getDoc()||r.on("NodeChange Click MouseUp KeyUp Focus",function(t){var i,u;i=r.selection.getRng();u={startContainer:i.startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset};"nodechange"!=t.type&&n.compareRanges(u,f)||r.fire("SelectionChange");f=u});r.on("contextmenu",function(){r.fire("SelectionChange")});r.on("SelectionChange",function(){var n=r.selection.getStart(!0);!t.range&&r.selection.isCollapsed()||!e(n)&&r.dom.isChildOf(n,r.getBody())&&r.nodeChanged({selectionChange:!0})});r.on("MouseUp",function(n){n.isDefaultPrevented()||("IMG"==r.selection.getNode().nodeName?i.setEditorTimeout(r,function(){r.nodeChanged()}):r.nodeChanged())});this.nodeChanged=function(n){var u=r.selection,t,f,i;r.initialized&&u&&!r.settings.disable_nodechange&&!r.readonly&&(i=r.getBody(),t=u.getStart()||i,t.ownerDocument==r.getDoc()&&r.dom.isChildOf(t,i)||(t=i),"IMG"==t.nodeName&&u.isCollapsed()&&(t=t.parentNode),f=[],r.dom.getParent(t,function(n){return n===i||void f.push(n)}),n=n||{},n.element=t,n.parents=f,r.fire("NodeChange",n))}}});i(ot,[],function(){function t(n,t,i){var u,r,f=i?"lastChild":"firstChild",e=i?"prev":"next";if(n[f])return n[f];if(n!==t){if(u=n[e])return u;for(r=n.parent;r&&r!==t;r=r.parent)if(u=r[e])return u}}function n(n,t){this.name=n;this.type=t;1===t&&(this.attributes=[],this.attributes.map={})}var i=/^[ \t\r\n]*$/,r={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};return n.prototype={replace:function(n){var t=this;return n.parent&&n.remove(),t.insert(n,t),t.remove(),t},attr:function(n,t){var u=this,i,r,f;if("string"!=typeof n){for(r in n)u.attr(r,n[r]);return u}if(i=u.attributes){if(t!==f){if(null===t){if(n in i.map)for(delete i.map[n],r=i.length;r--;)if(i[r].name===n)return i=i.splice(r,1),u;return u}if(n in i.map){for(r=i.length;r--;)if(i[r].name===n){i[r].value=t;break}}else i.push({name:n,value:t});return i.map[n]=t,u}return i.map[n]}},clone:function(){var r=this,u=new n(r.name,r.type),f,o,e,t,i;if(e=r.attributes){for(i=[],i.map={},f=0,o=e.length;f<o;f++)t=e[f],"id"!==t.name&&(i[i.length]={name:t.name,value:t.value},i.map[t.name]=t.value);u.attributes=i}return u.value=r.value,u.shortEnded=r.shortEnded,u},wrap:function(n){var t=this;return t.parent.insert(n,t),n.append(t),t},unwrap:function(){for(var t=this,i,n=t.firstChild;n;)i=n.next,t.insert(n,t,!0),n=i;t.remove()},remove:function(){var n=this,t=n.parent,i=n.next,r=n.prev;return t&&(t.firstChild===n?(t.firstChild=i,i&&(i.prev=null)):r.next=i,t.lastChild===n?(t.lastChild=r,r&&(r.next=null)):i.prev=r,n.parent=n.next=n.prev=null),n},append:function(n){var t=this,i;return n.parent&&n.remove(),i=t.lastChild,i?(i.next=n,n.prev=i,t.lastChild=n):t.lastChild=t.firstChild=n,n.parent=t,n},insert:function(n,t,i){var r;return n.parent&&n.remove(),r=t.parent||this,i?(t===r.firstChild?r.firstChild=n:t.prev.next=n,n.prev=t.prev,n.next=t,t.prev=n):(t===r.lastChild?r.lastChild=n:t.next.prev=n,n.next=t.next,n.prev=t,t.next=n),n.parent=r,n},getAll:function(n){for(var r=this,u=[],i=r.firstChild;i;i=t(i,r))i.name===n&&u.push(i);return u},empty:function(){var i=this,r,u,n;if(i.firstChild){for(r=[],n=i.firstChild;n;n=t(n,i))r.push(n);for(u=r.length;u--;)n=r[u],n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}return i.firstChild=i.lastChild=null,i},isEmpty:function(n){var e=this,r=e.firstChild,u,f;if(r)do{if(1===r.type){if(r.attributes.map["data-mce-bogus"])continue;if(n[r.name])return!1;for(u=r.attributes.length;u--;)if(f=r.attributes[u].name,"name"===f||0===f.indexOf("data-mce-bookmark"))return!1}if(8===r.type||3===r.type&&!i.test(r.value))return!1}while(r=t(r,e));return!0},walk:function(n){return t(this,null,n)}},n.create=function(t,i){var u,f;if(u=new n(t,r[t]||1),i)for(f in i)u.attr(f,i[f]);return u},n});i(k,[r],function(n){function t(t,i){return t=n.trim(t),t?t.split(i||" "):[]}function s(n){function u(n,i,r){function e(n,t){for(var r={},i=0,u=n.length;i<u;i++)r[n[i]]=t||{};return r}var u,f,o;for(r=r||[],i=i||"","string"==typeof r&&(r=t(r)),n=t(n),u=n.length;u--;)f=t([l,i].join(" ")),o={attributes:e(f),attributesOrder:f,children:e(r,h)},s[n[u]]=o}function f(n,i){var u,f,r,e;for(n=t(n),u=n.length,i=t(i);u--;)for(f=s[n[u]],r=0,e=i.length;r<e;r++)f.attributes[i[r]]={},f.attributesOrder.push(i[r])}var s={},l,c,o,e,a,v;return r[n]?r[n]:(l="id accesskey class dir lang style tabindex title",c="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",o="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!=n&&(l+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",c+=" article aside details dialog figure header footer hgroup section nav",o+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!=n&&(l+=" xml:lang",v="acronym applet basefont big font strike tt",o=[o,v].join(" "),i(t(v),function(n){u(n,"",o)}),a="center dir isindex noframes",c=[c,a].join(" "),e=[c,o].join(" "),i(t(a),function(n){u(n,"",e)})),e=e||[c,o].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",e),u("address dt dd div caption","",e),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),u("blockquote","cite",e),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",e),u("dl","","dt dd"),u("a","href target rel media hreflang type",o),u("q","cite",o),u("ins del","cite datetime",e),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",e),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[e,"param"].join(" ")),u("param","name value"),u("map","name",[e,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"==n?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",e),u("th","colspan rowspan headers scope abbr",e),u("form","accept-charset action autocomplete enctype method name novalidate target",e),u("fieldset","disabled form name",[e,"legend"].join(" ")),u("label","form for",o),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"==n?e:o),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[e,"li"].join(" ")),u("noscript","",e),"html4"!=n&&(u("wbr"),u("ruby","",[o,"rt rp"].join(" ")),u("figcaption","",e),u("mark rt rp summary bdi","",o),u("canvas","width height",e),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[e,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[e,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[o,"option"].join(" ")),u("article section nav aside header footer","",e),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[e,"figcaption"].join(" ")),u("time","datetime",o),u("dialog","open",e),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",o),u("progress","value max",o),u("meter","value min max low high optimum",o),u("details","open",[e,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!=n&&(f("script","language xml:space"),f("style","xml:space"),f("object","declare classid code codebase codetype archive standby align border hspace vspace"),f("embed","align name hspace vspace"),f("param","valuetype type"),f("a","charset name rev shape coords"),f("br","clear"),f("applet","codebase archive code object alt name width height align hspace vspace"),f("img","name longdesc align border hspace vspace"),f("iframe","longdesc frameborder marginwidth marginheight scrolling align"),f("font basefont","size color face"),f("input","usemap align"),f("select","onchange"),f("textarea"),f("h1 h2 h3 h4 h5 h6 div p legend caption","align"),f("ul","type compact"),f("li","type"),f("ol dl menu dir","compact"),f("pre","width xml:space"),f("hr","align noshade size width"),f("isindex","prompt"),f("table","summary width frame rules cellspacing cellpadding align bgcolor"),f("col","width align char charoff valign"),f("colgroup","width align char charoff valign"),f("thead","align char charoff valign"),f("tr","align char charoff valign bgcolor"),f("th","axis align char charoff valign nowrap bgcolor width height"),f("form","accept"),f("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),f("tfoot","align char charoff valign"),f("tbody","align char charoff valign"),f("area","nohref"),f("body","background bgcolor text link vlink alink")),"html4"!=n&&(f("input button select textarea","autofocus"),f("input textarea","placeholder"),f("a","download"),f("link script img","crossorigin"),f("iframe","sandbox seamless allowfullscreen")),i(t("a form meter progress dfn"),function(n){s[n]&&delete s[n].children[n]}),delete s.caption.children.table,delete s.script,r[n]=s,s)}function f(n,t){var r;return n&&(r={},"string"==typeof n&&(n={"*":n}),i(n,function(n,i){r[i]=r[i.toUpperCase()]="map"==t?u(n,/[, ]/):o(n,/[, ]/)})),r}var r={},h={},u=n.makeMap,i=n.each,e=n.extend,o=n.explode,c=n.inArray;return function(n){function v(t,i,f){var o=n[t];return o?o=u(o,/[, ]/,u(o.toUpperCase(),/[, ]/)):(o=r[t],o||(o=u(i," ",u(i.toUpperCase()," ")),o=e(o,f),r[t]=o)),o}function it(n){return new RegExp("^"+n.replace(/([?+*])/g,".$1")+"$")}function y(n){var b,rt,k,ut,r,i,e,a,v,f,d,h,o,s,g,y,nt,tt,w,ft=/[*?+]/;if(n)for(n=t(n,","),l["@"]&&(y=l["@"].attributes,nt=l["@"].attributesOrder),b=0,rt=n.length;b<rt;b++)if(r=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/.exec(n[b])){if(s=r[1],v=r[2],g=r[3],a=r[5],h={},o=[],i={attributes:h,attributesOrder:o},"#"===s&&(i.paddEmpty=!0),"-"===s&&(i.removeEmpty=!0),"!"===r[4]&&(i.removeEmptyAttrs=!0),y){for(tt in y)h[tt]=y[tt];o.push.apply(o,nt)}if(a)for(a=t(a,"|"),k=0,ut=a.length;k<ut;k++)if(r=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/.exec(a[k])){if(e={},d=r[1],f=r[2].replace(/::/g,":"),s=r[3],w=r[4],"!"===d&&(i.attributesRequired=i.attributesRequired||[],i.attributesRequired.push(f),e.required=!0),"-"===d){delete h[f];o.splice(c(o,f),1);continue}s&&("="===s&&(i.attributesDefault=i.attributesDefault||[],i.attributesDefault.push({name:f,value:w}),e.defaultValue=w),":"===s&&(i.attributesForced=i.attributesForced||[],i.attributesForced.push({name:f,value:w}),e.forcedValue=w),"<"===s&&(e.validValues=u(w,"?")));ft.test(f)?(i.attributePatterns=i.attributePatterns||[],e.pattern=it(f),i.attributePatterns.push(e)):(h[f]||o.push(f),h[f]=e)}y||"@"!=v||(y=h,nt=o);g&&(i.outputName=v,l[g]=i);ft.test(v)?(i.pattern=it(v),p.push(i)):l[v]=i}}function rt(n){l={};p=[];y(n);i(d,function(n,t){a[t]=n.children})}function ut(n){var u=/^(~)?(.+)$/;n&&(r.text_block_elements=r.block_elements=null,i(t(n,","),function(n){var o=u.exec(n),s="~"===o[1],f=s?"span":"div",t=o[2],r;(a[t]=a[f],vt[t]=f,s||(w[t.toUpperCase()]={},w[t]={}),l[t])||(r=l[f],r=e({},r),delete r.removeEmptyAttrs,delete r.removeEmpty,l[t]=r);i(a,function(n,i){n[f]&&(a[i]=n=e({},a[i]),n[t]=n[f])})}))}function b(u){var f=/^([+\-]?)(\w+)\[([^\]]+)\]$/;r[n.schema]=null;u&&i(t(u,","),function(n){var r=f.exec(n),u,e;r&&(e=r[1],u=e?a[r[2]]:a[r[2]]={"#comment":{}},u=a[r[2]],i(t(r[3],"|"),function(n){"-"===e?delete u[n]:u[n]={}}))})}function k(n){var t=l[n],i;if(t)return t;for(i=p.length;i--;)if(t=p[i],t.pattern.test(n))return t}var h=this,l={},a={},p=[],ft,et,d,ot,st,g,ht,ct,w,nt,lt,tt,at,vt={},yt={};n=n||{};d=s(n.schema);n.verify_html===!1&&(n.valid_elements="*[*]");ft=f(n.valid_styles);et=f(n.invalid_styles,"map");ct=f(n.valid_classes,"map");ot=v("whitespace_elements","pre script noscript style textarea video audio iframe object");st=v("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr");g=v("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track");ht=v("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls");nt=v("non_empty_elements","td th iframe video audio object script",g);lt=v("move_caret_before_on_enter_elements","table",nt);tt=v("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure");w=v("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption",tt);at=v("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");i((n.special||"script noscript style textarea").split(" "),function(n){yt[n]=new RegExp("<\/"+n+"[^>]*>","gi")});n.valid_elements?rt(n.valid_elements):(i(d,function(n,t){l[t]={attributes:n.attributes,attributesOrder:n.attributesOrder};a[t]=n.children}),"html5"!=n.schema&&i(t("strong/b em/i"),function(n){n=t(n,"/");l[n[1]].outputName=n[0]}),i(t("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(n){l[n]&&(l[n].removeEmpty=!0)}),i(t("p h1 h2 h3 h4 h5 h6 th td pre div address caption"),function(n){l[n].paddEmpty=!0}),i(t("span"),function(n){l[n].removeEmptyAttrs=!0}));ut(n.custom_elements);b(n.valid_children);y(n.extended_valid_elements);b("+ol[ul|ol],+ul[ul|ol]");i({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(n,i){l[i]&&(l[i].parentsRequired=t(n))});n.invalid_elements&&i(o(n.invalid_elements),function(n){l[n]&&delete l[n]});k("span")||y("span[!data-mce-type|*]");h.children=a;h.getValidStyles=function(){return ft};h.getInvalidStyles=function(){return et};h.getValidClasses=function(){return ct};h.getBoolAttrs=function(){return ht};h.getBlockElements=function(){return w};h.getTextBlockElements=function(){return tt};h.getTextInlineElements=function(){return at};h.getShortEndedElements=function(){return g};h.getSelfClosingElements=function(){return st};h.getNonEmptyElements=function(){return nt};h.getMoveCaretBeforeOnEnterElements=function(){return lt};h.getWhiteSpaceElements=function(){return ot};h.getSpecialElements=function(){return yt};h.isValidChild=function(n,t){var i=a[n];return!(!i||!i[t])};h.isValid=function(n,t){var i,r,u=k(n);if(u){if(!t||u.attributes[t])return!0;if(i=u.attributePatterns)for(r=i.length;r--;)if(i[r].pattern.test(n))return!0}return!1};h.getElementRule=k;h.getCustomElements=function(){return vt};h.addValidElements=y;h.setValidElements=rt;h.addCustomElements=ut;h.addValidChildren=b;h.elements=l}});i(ti,[k,b,r],function(n,t,i){function r(n,t,i){var f=1,e,r,u,o;for(o=n.getShortEndedElements(),u=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,u.lastIndex=e=i;r=u.exec(t);){if(e=u.lastIndex,"/"===r[1])f--;else if(!r[1]){if(r[2]in o)continue;f++}if(0===f)break}return e}function u(u,e){function s(){}var o=this;u=u||{};o.schema=e=e||new n;u.fix_self_closing!==!1&&(u.fix_self_closing=!0);f("comment cdata text start end pi doctype".split(" "),function(n){n&&(o[n]=u[n]||s)});o.parse=function(n){function ht(n){for(var i,t=a.length;t--&&a[t].name!==n;);if(t>=0){for(i=a.length-1;i>=t;i--)n=a[i],n.valid&&l.end(n.name);a.length=t}}function gt(n,t,i,r,f){var e,s,o;if(t=t.toLowerCase(),i=t in at?t:st(i||r||f||""),d&&!tt&&0!==t.indexOf("data-")){if(e=vt[t],!e&&it){for(s=it.length;s--&&(e=it[s],!e.pattern.test(t)););s===-1&&(e=null)}if(!e)return;if(e.validValues&&!(i in e.validValues))return}if(ni[t]&&!u.allow_script_urls){o=i.replace(/[\s\u0000-\u001F]+/g,"");try{o=decodeURIComponent(o)}catch(c){o=unescape(o)}if(ti.test(o))return;if(!u.allow_html_data_urls&&ii.test(o)&&!/^data:image\//i.test(o))return}h.map[t]=i;h.push({name:t,value:i})}var l=this,o,s=0,f,et,a=[],h,c,nt,w,tt,ct,lt,at,ot,d,b,v,p,k,vt,it,rt,ut,ft,yt,pt,g,wt,bt,y,kt=0,st=t.decode,dt,ni=i.makeMap("src,href,data,background,formaction,poster"),ti=/((java|vb)script|mhtml):/i,ii=/^data:/i;for(g=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-_\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),wt=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,lt=e.getShortEndedElements(),pt=u.self_closing_elements||e.getSelfClosingElements(),at=e.getBoolAttrs(),d=u.validate,ct=u.remove_internals,dt=u.fix_self_closing,bt=e.getSpecialElements();o=g.exec(n);){if(s<o.index&&l.text(st(n.substr(s,o.index-s))),f=o[6])f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),ht(f);else if(f=o[7]){if(f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),ot=f in lt,dt&&pt[f]&&a.length>0&&a[a.length-1].name===f&&ht(f),!d||(b=e.getElementRule(f))){if(v=!0,d&&(vt=b.attributes,it=b.attributePatterns),(k=o[8])?(tt=k.indexOf("data-mce-type")!==-1,tt&&ct&&(v=!1),h=[],h.map={},k.replace(wt,gt)):(h=[],h.map={}),d&&!tt){if(rt=b.attributesRequired,ut=b.attributesDefault,ft=b.attributesForced,yt=b.removeEmptyAttrs,yt&&!h.length&&(v=!1),ft)for(c=ft.length;c--;)p=ft[c],w=p.name,y=p.value,"{$uid}"===y&&(y="mce_"+kt++),h.map[w]=y,h.push({name:w,value:y});if(ut)for(c=ut.length;c--;)p=ut[c],w=p.name,w in h.map||(y=p.value,"{$uid}"===y&&(y="mce_"+kt++),h.map[w]=y,h.push({name:w,value:y}));if(rt){for(c=rt.length;c--&&!(rt[c]in h.map););c===-1&&(v=!1)}if(p=h.map["data-mce-bogus"]){if("all"===p){s=r(e,n,g.lastIndex);g.lastIndex=s;continue}v=!1}}v&&l.start(f,h,ot)}else v=!1;if(et=bt[f]){et.lastIndex=s=o.index+o[0].length;(o=et.exec(n))?(v&&(nt=n.substr(s,o.index-s)),s=o.index+o[0].length):(nt=n.substr(s),s=n.length);v&&(nt.length>0&&l.text(nt,!0),l.end(f));g.lastIndex=s;continue}ot||(k&&k.indexOf("/")==k.length-1?v&&l.end(f):a.push({name:f,valid:v}))}else(f=o[1])?(">"===f.charAt(0)&&(f=" "+f),u.allow_conditional_comments||"[if"!==f.substr(0,3).toLowerCase()||(f=" "+f),l.comment(f)):(f=o[2])?l.cdata(f):(f=o[3])?l.doctype(f):(f=o[4])&&l.pi(f,o[5]);s=o.index+o[0].length}for(s<n.length&&l.text(st(n.substr(s))),c=a.length-1;c>=0;c--)f=a[c],f.valid&&l.end(f.name)}}var f=i.each;return u.findEndTag=r,u});i(ii,[ot,k,ti,r],function(n,t,i,r){var u=r.makeMap,f=r.each,e=r.explode,o=r.extend;return function(s,h){function p(t){var v,i,f,e,y,l,a,s,o,p,b,w,k,r,d;for(b=u("tr,td,th,tbody,thead,tfoot,table"),p=h.getNonEmptyElements(),w=h.getTextBlockElements(),k=h.getSpecialElements(),v=0;v<t.length;v++)if(i=t[v],i.parent&&!i.fixed)if(w[i.name]&&"li"==i.parent.name){for(r=i.next;r&&w[r.name];)r.name="li",r.fixed=!0,i.parent.insert(r,i.parent),r=r.next;i.unwrap(i)}else{for(e=[i],f=i.parent;f&&!h.isValidChild(f.name,i.name)&&!b[f.name];f=f.parent)e.push(f);if(f&&e.length>1){for(e.reverse(),y=l=c.filterNode(e[0].clone()),o=0;o<e.length-1;o++){for(h.isValidChild(l.name,e[o].name)?(a=c.filterNode(e[o].clone()),l.append(a)):a=l,s=e[o].firstChild;s&&s!=e[o+1];)d=s.next,a.append(s),s=d;l=a}y.isEmpty(p)?f.insert(i,e[0],!0):(f.insert(y,e[0],!0),f.insert(i,y));f=e[0];(f.isEmpty(p)||f.firstChild===f.lastChild&&"br"===f.firstChild.name)&&f.empty().remove()}else if(i.parent){if("li"===i.name){if(r=i.prev,r&&("ul"===r.name||"ul"===r.name)){r.append(i);continue}if(r=i.next,r&&("ul"===r.name||"ul"===r.name)){r.insert(i,r.firstChild,!0);continue}i.wrap(c.filterNode(new n("ul",1)));continue}h.isValidChild(i.parent.name,"div")&&h.isValidChild("div",i.name)?i.wrap(c.filterNode(new n("div",1))):k[i.name]?i.empty().remove():i.unwrap()}}}var c=this,y={},l=[],a={},v={};s=s||{};s.validate=!("validate"in s)||s.validate;s.root_name=s.root_name||"body";c.schema=h=h||new t;c.filterNode=function(n){var r,t,i;for((t in y)&&(i=a[t],i?i.push(n):a[t]=[n]),r=l.length;r--;)t=l[r].name,t in n.attributes.map&&(i=v[t],i?i.push(n):v[t]=[n]);return n};c.addNodeFilter=function(n,t){f(e(n),function(n){var i=y[n];i||(y[n]=i=[]);i.push(t)})};c.addAttributeFilter=function(n,t){f(e(n),function(n){for(var i=0;i<l.length;i++)if(l[i].name===n)return void l[i].callbacks.push(t);l.push({name:n,callbacks:[t]})})};c.parse=function(t,r){function wt(){function i(t){t&&(n=t.firstChild,n&&3==n.type&&(n.value=n.value.replace(ut,"")),n=t.lastChild,n&&3==n.type&&(n.value=n.value.replace(ft,"")))}var n=d.firstChild,r,t;if(h.isValidChild(d.name,et.toLowerCase())){for(;n;)r=n.next,3==n.type||1==n.type&&"p"!==n.name&&!g[n.name]&&!n.attr("data-mce-type")?t?t.append(n):(t=k(et,1),t.attr(s.forced_root_block_attrs),d.insert(t,n),t.append(n)):(i(t),t=null),n=r;i(t)}}function k(t,i){var r=new n(t,i),u;return t in y&&(u=a[t],u?u.push(r):a[t]=[r]),r}function ot(n){for(var i,r,u,f=h.getBlockElements(),t=n.prev;t&&3===t.type;){if(r=t.value.replace(ft,""),r.length>0)return void(t.value=r);if(i=t.next){if(3==i.type&&i.value.length){t=t.prev;continue}if(!f[i.name]&&"script"!=i.name&&"style"!=i.name){t=t.prev;continue}}u=t.prev;t.remove();t=u}}function bt(n){var t,i={};for(t in n)"li"!==t&&"p"!=t&&(i[t]=n[t]);return i}var at,d,f,w,b,it,e,vt,c,rt,tt,g,ut,st=[],nt,ft,yt,ht,ct,lt,pt,et;if(r=r||{},a={},v={},g=o(u("script,style,head,html,body,title,meta,param"),h.getBlockElements()),pt=h.getNonEmptyElements(),lt=h.children,tt=s.validate,et="forced_root_block"in r?r.forced_root_block:s.forced_root_block,ct=h.getWhiteSpaceElements(),ut=/^[ \t\r\n]+/,ft=/[ \t\r\n]+$/,yt=/[ \t\r\n]+/g,ht=/^[ \t\r\n]+$/,at=new i({validate:tt,allow_script_urls:s.allow_script_urls,allow_conditional_comments:s.allow_conditional_comments,self_closing_elements:bt(h.getSelfClosingElements()),cdata:function(n){f.append(k("#cdata",4)).value=n},text:function(n,t){var i;nt||(n=n.replace(yt," "),f.lastChild&&g[f.lastChild.name]&&(n=n.replace(ut,"")));0!==n.length&&(i=k("#text",3),i.raw=!!t,f.append(i).value=n)},comment:function(n){f.append(k("#comment",8)).value=n},pi:function(n,t){f.append(k(n,7)).value=t;ot(f)},doctype:function(n){var t;t=f.append(k("#doctype",10));t.value=n;ot(f)},start:function(n,t,i){var r,e,s,u,o;if(s=tt?h.getElementRule(n):{}){for(r=k(s.outputName||n,1),r.attributes=t,r.shortEnded=i,f.append(r),o=lt[f.name],o&&lt[r.name]&&!o[r.name]&&st.push(r),e=l.length;e--;)u=l[e].name,u in t.map&&(c=v[u],c?c.push(r):v[u]=[r]);g[n]&&ot(r);i||(f=r);!nt&&ct[n]&&(nt=!0)}},end:function(t){var i,e,r,u,o;if(e=tt?h.getElementRule(t):{}){if(g[t]&&!nt){if(i=f.firstChild,i&&3===i.type)if(r=i.value.replace(ut,""),r.length>0)i.value=r,i=i.next;else for(u=i.next,i.remove(),i=u;i&&3===i.type;)r=i.value,u=i.next,(0===r.length||ht.test(r))&&(i.remove(),i=u),i=u;if(i=f.lastChild,i&&3===i.type)if(r=i.value.replace(ft,""),r.length>0)i.value=r,i=i.prev;else for(u=i.prev,i.remove(),i=u;i&&3===i.type;)r=i.value,u=i.prev,(0===r.length||ht.test(r))&&(i.remove(),i=u),i=u}if(nt&&ct[t]&&(nt=!1),(e.removeEmpty||e.paddEmpty)&&f.isEmpty(pt))if(e.paddEmpty)f.empty().append(new n("#text","3")).value=" ";else if(!f.attributes.map.name&&!f.attributes.map.id)return o=f.parent,g[f.name]?f.empty().remove():f.unwrap(),void(f=o);f=f.parent}}},h),d=f=new n(r.context||s.root_name,11),at.parse(t),tt&&st.length&&(r.context?r.invalid=!0:p(st)),et&&("body"==d.name||r.isRootContent)&&wt(),!r.invalid){for(rt in a){for(c=y[rt],w=a[rt],e=w.length;e--;)w[e].parent||w.splice(e,1);for(b=0,it=c.length;b<it;b++)c[b](w,rt,r)}for(b=0,it=l.length;b<it;b++)if(c=l[b],c.name in v){for(w=v[c.name],e=w.length;e--;)w[e].parent||w.splice(e,1);for(e=0,vt=c.callbacks.length;e<vt;e++)c.callbacks[e](w,c.name,r)}}return d};s.remove_trailing_brs&&c.addNodeFilter("br",function(t){var e,v=t.length,r,l=o({},h.getBlockElements()),y=h.getNonEmptyElements(),i,f,u,s,c,a;for(l.body=1,e=0;e<v;e++)if(r=t[e],i=r.parent,l[r.parent.name]&&r===i.lastChild){for(u=r.prev;u;){if(s=u.name,"span"!==s||"bookmark"!==u.attr("data-mce-type")){if("br"!==s)break;if("br"===s){r=null;break}}u=u.prev}r&&(r.remove(),i.isEmpty(y)&&(c=h.getElementRule(i.name),c&&(c.removeEmpty?i.remove():c.paddEmpty&&(i.empty().append(new n("#text",3)).value=" "))))}else{for(f=r;i&&i.firstChild===f&&i.lastChild===f&&(f=i,!l[i.name]);)i=i.parent;f===i&&(a=new n("#text",3),a.value=" ",r.replace(a))}});s.allow_unsafe_link_target||c.addAttributeFilter("href",function(n){function o(n){return n=u(n),n?[n,i].join(" "):i}function u(n){var t=new RegExp("("+i.replace(" ","|")+")","g");return n&&(n=r.trim(n.replace(t,""))),n?n:null}function s(n,t){return t?o(n):u(n)}for(var f=n.length,t,e,i="noopener noreferrer";f--;)t=n[f],e=t.attr("rel"),"a"===t.name&&t.attr("rel",s(e,"_blank"==t.attr("target")))});s.allow_html_in_named_anchor||c.addAttributeFilter("id,name",function(n){for(var r=n.length,i,u,f,t;r--;)if(t=n[r],"a"===t.name&&t.firstChild&&!t.attr("href")){f=t.parent;i=t.lastChild;do u=i.prev,f.insert(i,t),i=u;while(i)}});s.validate&&h.getValidClasses()&&c.addAttributeFilter("class",function(n){for(var s=n.length,u,o,f,e,t,c=h.getValidClasses(),i,r;s--;){for(u=n[s],o=u.attr("class").split(" "),t="",f=0;f<o.length;f++)e=o[f],r=!1,i=c["*"],i&&i[e]&&(r=!0),i=c[u.name],!r&&i&&i[e]&&(r=!0),r&&(t&&(t+=" "),t+=e);t.length||(t=null);u.attr("class",t)}})}});i(bi,[b,r],function(n,t){var i=t.makeMap;return function(t){var r=[],u,o,e,f,s;return t=t||{},u=t.indent,o=i(t.indent_before||""),e=i(t.indent_after||""),f=n.getEncodeFunc(t.entity_encoding||"raw",t.entities),s="html"==t.element_format,{start:function(n,t,i){var c,a,l,h;if(u&&o[n]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n")),r.push("<",n),t)for(c=0,a=t.length;c<a;c++)l=t[c],r.push(" ",l.name,'="',f(l.value,!0),'"');r[r.length]=!i||s?">":" />";i&&u&&e[n]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n"))},end:function(n){var t;r.push("<\/",n,">");u&&e[n]&&r.length>0&&(t=r[r.length-1],t.length>0&&"\n"!==t&&r.push("\n"))},text:function(n,t){n.length>0&&(r[r.length]=t?n:f(n))},cdata:function(n){r.push("<![CDATA[",n,"]\]>")},comment:function(n){r.push("<!--",n,"-->")},pi:function(n,t){t?r.push("<?",n," ",f(t),"?>"):r.push("<?",n,"?>");u&&r.push("\n")},doctype:function(n){r.push("<!DOCTYPE",n,">",u?"\n":"")},reset:function(){r.length=0},getContent:function(){return r.join("").replace(/\n$/,"")}}}});i(pt,[bi,k],function(n,t){return function(i,r){var f=this,u=new n(i);i=i||{};i.validate=!("validate"in i)||i.validate;f.schema=r=r||new t;f.writer=u;f.serialize=function(n){function t(n){var y=f[n.type],p,a,i,o,c,s,h,l,v;if(y)y(n);else{if(p=n.name,a=n.shortEnded,i=n.attributes,e&&i&&i.length>1&&(s=[],s.map={},v=r.getElementRule(n.name))){for(h=0,l=v.attributesOrder.length;h<l;h++)o=v.attributesOrder[h],o in i.map&&(c=i.map[o],s.map[o]=c,s.push({name:o,value:c}));for(h=0,l=i.length;h<l;h++)o=i[h].name,o in s.map||(c=i.map[o],s.map[o]=c,s.push({name:o,value:c}));i=s}if(u.start(n.name,i,a),!a){if(n=n.firstChild)do t(n);while(n=n.next);u.end(p)}}}var f,e;return e=i.validate,f={3:function(n){u.text(n.value,n.raw)},8:function(n){u.comment(n.value)},7:function(n){u.pi(n.name,n.value)},10:function(n){u.doctype(n.value)},4:function(n){u.cdata(n.value)},11:function(n){if(n=n.firstChild)do t(n);while(n=n.next)}},u.reset(),1!=n.type||i.inner?f[11](n):t(n),u.getContent()}}});i(ki,[o,ii,ti,b,pt,ot,k,u,r,wi],function(n,t,i,r,u,f,e,o,s,h){function l(n){function r(n){return n&&"br"===n.name}var t,i;t=n.lastChild;r(t)&&(i=t.prev,r(i)&&(t.remove(),i.remove()))}var a=s.each,c=s.trim,v=n.DOM;return function(n,f){function k(n){var t=new RegExp(["<span[^>]+data-mce-bogus[^>]+>[​﻿]+<\\/span>","\\s?("+b.join("|")+')="[^"]+"'].join("|"),"gi");return h.trim(n.replace(t,""))}function d(n){for(var t=n,u=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,s,r,e,o,l=f.schema,t=k(t),h=l.getShortEndedElements();o=u.exec(t);)r=u.lastIndex,e=o[0].length,s=h[o[1]]?r:i.findEndTag(l,t,r),t=t.substring(0,r-e)+t.substring(s),u.lastIndex=r-e;return c(t)}function g(){return d(f.getBody().innerHTML)}function nt(n){s.inArray(b,n)===-1&&(y.addAttributeFilter(n,function(n,t){for(var i=n.length;i--;)n[i].attr(t,null)}),b.push(n))}var p,w,y,b=["data-mce-selected"];return f&&(p=f.dom,w=f.schema),p=p||v,w=w||new e(n),n.entity_encoding=n.entity_encoding||"named",n.remove_trailing_brs=!("remove_trailing_brs"in n)||n.remove_trailing_brs,y=new t(n,w),y.addAttributeFilter("data-mce-tabindex",function(n,t){for(var r=n.length,i;r--;)i=n[r],i.attr("tabindex",i.attributes.map["data-mce-tabindex"]),i.attr(t,null)}),y.addAttributeFilter("src,href,style",function(t,i){for(var f=t.length,u,r,e="data-mce-"+i,o=n.url_converter,s=n.url_converter_scope,h;f--;)u=t[f],r=u.attributes.map[e],r!==h?(u.attr(i,r.length>0?r:null),u.attr(e,null)):(r=u.attributes.map[i],"style"===i?r=p.serializeStyle(p.parseStyle(r),u.name):o&&(r=o.call(s,r,i,u.name)),u.attr(i,r.length>0?r:null))}),y.addAttributeFilter("class",function(n){for(var r=n.length,i,t;r--;)i=n[r],t=i.attr("class"),t&&(t=i.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),i.attr("class",t.length>0?t:null))}),y.addAttributeFilter("data-mce-type",function(n,t,i){for(var u=n.length,r;u--;)r=n[u],"bookmark"!==r.attributes.map["data-mce-type"]||i.cleanup||r.remove()}),y.addNodeFilter("noscript",function(n){for(var i=n.length,t;i--;)t=n[i].firstChild,t&&(t.value=r.decode(t.value))}),y.addNodeFilter("script,style",function(n,t){function f(n){return n.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}for(var e=n.length,i,r,u;e--;)i=n[e],r=i.firstChild?i.firstChild.value:"","script"===t?(u=i.attr("type"),u&&i.attr("type","mce-no/type"==u?null:u.replace(/^mce\-/,"")),r.length>0&&(i.firstChild.value="// <![CDATA[\n"+f(r)+"\n// ]\]>")):r.length>0&&(i.firstChild.value="<!--\n"+f(r)+"\n-->")}),y.addNodeFilter("#comment",function(n){for(var i=n.length,t;i--;)t=n[i],0===t.value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),y.addNodeFilter("xml:namespace,input",function(n,t){for(var r=n.length,i;r--;)i=n[r],7===i.type?i.remove():1===i.type&&("input"!==t||"type"in i.attributes.map||i.attr("type","text"))}),n.fix_list_elements&&y.addNodeFilter("ul,ol",function(n){for(var r=n.length,t,i;r--;)t=n[r],i=t.parent,"ul"!==i.name&&"ol"!==i.name||t.prev&&"li"===t.prev.name&&t.prev.append(t)}),y.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(n,t){for(var i=n.length;i--;)n[i].attr(t,null)}),{schema:w,addNodeFilter:y.addNodeFilter,addAttributeFilter:y.addAttributeFilter,serialize:function(t,i){var v=this,f,r,e,b,k,s;return o.ie&&p.select("script,style,select,map").length>0?(k=t.innerHTML,t=t.cloneNode(!1),p.setHTML(t,k)):t=t.cloneNode(!0),f=document.implementation,f.createHTMLDocument&&(r=f.createHTMLDocument(""),a("BODY"==t.nodeName?t.childNodes:[t],function(n){r.body.appendChild(r.importNode(n,!0))}),t="BODY"!=t.nodeName?r.body.firstChild:r.body,e=p.doc,p.doc=r),i=i||{},i.format=i.format||"html",i.selection&&(i.forced_root_block=""),i.no_events||(i.node=t,v.onPreProcess(i)),s=y.parse(c(i.getInner?t.innerHTML:p.getOuterHTML(t)),i),l(s),b=new u(n,w),i.content=b.serialize(s),i.cleanup||(i.content=h.trim(i.content),i.content=i.content.replace(/\uFEFF/g,"")),i.no_events||v.onPostProcess(i),e&&(p.doc=e),i.node=null,i.content},addRules:function(n){w.addValidElements(n)},setRules:function(n){w.setValidElements(n)},onPreProcess:function(n){f&&f.fire("PreProcess",n)},onPostProcess:function(n){f&&f.fire("PostProcess",n)},addTempAttr:nt,trimHtml:k,getTrimmedContent:g,trimContent:d}}});i(ku,[],function(){function n(n){function i(t,i){var r,c=0,s,a,l,f,e,h,o=-1,u;if(r=t.duplicate(),r.collapse(i),u=r.parentElement(),u.ownerDocument===n.dom.doc){for(;"false"===u.contentEditable;)u=u.parentNode;if(!u.hasChildNodes())return{node:u,inside:1};for(l=u.children,s=l.length-1;c<=s;)if(h=Math.floor((c+s)/2),f=l[h],r.moveToElementText(f),o=r.compareEndPoints(i?"StartToStart":"EndToEnd",t),o>0)s=h-1;else{if(!(o<0))return{node:f};c=h+1}if(o<0)for(f?r.collapse(!1):(r.moveToElementText(u),r.collapse(!0),f=u,a=!0),e=0;0!==r.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==r.move("character",1)&&u==r.parentElement();)e++;else for(r.collapse(!0),e=0;0!==r.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==r.move("character",-1)&&u==r.parentElement();)e++;return{node:f,position:o,offset:e,inside:a}}}function u(){function s(n){var s=i(f,n),r,o,e=0,t,c,h;if(r=s.node,o=s.offset,s.inside&&!r.hasChildNodes())return void u[n?"setStart":"setEnd"](r,0);if(o===c)return void u[n?"setStartBefore":"setEndAfter"](r);if(s.position<0){if(t=s.inside?r.firstChild:r.nextSibling,!t)return void u[n?"setStartAfter":"setEndAfter"](r);if(!o)return void(3==t.nodeType?u[n?"setStart":"setEnd"](t,0):u[n?"setStartBefore":"setEndBefore"](t));for(;t;){if(3==t.nodeType&&(h=t.nodeValue,e+=h.length,e>=o)){r=t;e-=o;e=h.length-e;break}t=t.nextSibling}}else{if(t=r.previousSibling,!t)return u[n?"setStartBefore":"setEndBefore"](r);if(!o)return void(3==r.nodeType?u[n?"setStart":"setEnd"](t,r.nodeValue.length):u[n?"setStartAfter":"setEndAfter"](t));for(;t;){if(3==t.nodeType&&(e+=t.nodeValue.length,e>=o)){r=t;e-=o;break}t=t.previousSibling}}u[n?"setStart":"setEnd"](r,e)}var f=n.getRng(),u=t.createRng(),e,h,o,c,l;if(e=f.item?f.item(0):f.parentElement(),e.ownerDocument!=t.doc)return u;if(h=n.isCollapsed(),f.item)return u.setStart(e.parentNode,t.nodeIndex(e)),u.setEnd(u.startContainer,u.startOffset+1),u;try{s(!0);h||s()}catch(a){if(a.number!=-2147024809)throw a;l=r.getBookmark(2);o=f.duplicate();o.collapse(!0);e=o.parentElement();h||(o=f.duplicate(),o.collapse(!1),c=o.parentElement(),c.innerHTML=c.innerHTML);e.innerHTML=e.innerHTML;r.moveToBookmark(l);f=n.getRng();s(!0);h||s()}return u}var r=this,t=n.dom,f=!1;this.getBookmark=function(r){function e(n){for(var u,r,e=[],i=n.parentNode,f=t.getRoot().parentNode;i!=f&&9!==i.nodeType;){for(u=i.children,r=u.length;r--;)if(n===u[r]){e.push(r);break}n=i;i=i.parentNode}return e}function o(n){var t;if(t=i(f,n))return{position:t.position,offset:t.offset,indexes:e(t.node),inside:t.inside}}var f=n.getRng(),u={};return 2===r&&(f.item?u.start={ctrl:!0,indexes:e(f.item(0))}:(u.start=o(!0),n.isCollapsed()||(u.end=o()))),u};this.moveToBookmark=function(n){function u(n){for(var u,f,i=t.getRoot(),r=n.length-1;r>=0;r--)f=i.children,u=n[r],u<=f.length-1&&(i=f[u]);return i}function f(t){var e=n[t?"start":"end"],s,f,h,o;e&&(s=e.position>0,f=r.createTextRange(),f.moveToElementText(u(e.indexes)),o=e.offset,o!==h?(f.collapse(e.inside||s),f.moveStart("character",s?-o:o)):f.collapse(t),i.setEndPoint(t?"StartToStart":"EndToStart",f),t&&i.collapse(!0))}var i,r=t.doc.body;n.start&&(n.start.ctrl?(i=r.createControlRange(),i.addElement(u(n.start.indexes)),i.select()):(i=r.createTextRange(),f(!0),f(),i.select()))};this.addRange=function(i){function p(n){var i,y,u,h,v;u=t.create("a");i=n?r:c;y=n?o:s;h=e.duplicate();i!=l&&i!=l.documentElement||(i=a,y=0);3==i.nodeType?(i.parentNode.insertBefore(u,i),h.moveToElementText(u),h.moveStart("character",y),t.remove(u),e.setEndPoint(n?"StartToStart":"EndToEnd",h)):(v=i.childNodes,v.length?(y>=v.length?t.insertAfter(u,v[v.length-1]):i.insertBefore(u,v[y]),h.moveToElementText(u)):i.canHaveHTML&&(i.innerHTML="<span>&#xFEFF;<\/span>",u=i.firstChild,h.moveToElementText(u),h.collapse(f)),e.setEndPoint(n?"StartToStart":"EndToEnd",h),t.remove(u))}var e,h,r,o,c,s,u,l=n.dom.doc,a=l.body,v,y;if(r=i.startContainer,o=i.startOffset,c=i.endContainer,s=i.endOffset,e=a.createTextRange(),r==c&&1==r.nodeType){if(o==s&&!r.hasChildNodes()){if(r.canHaveHTML)return u=r.previousSibling,u&&!u.hasChildNodes()&&t.isBlock(u)?u.innerHTML="&#xFEFF;":u=null,r.innerHTML="<span>&#xFEFF;<\/span><span>&#xFEFF;<\/span>",e.moveToElementText(r.lastChild),e.select(),t.doc.selection.clear(),r.innerHTML="",void(u&&(u.innerHTML=""));o=t.nodeIndex(r);r=r.parentNode}if(o==s-1)try{if(y=r.childNodes[o],h=a.createControlRange(),h.addElement(y),h.select(),v=n.getRng(),v.item&&y===v.item(0))return}catch(w){}}p(!0);p();e.select()};this.getRangeAt=u}return n});i(d,[u],function(n){return{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(n){return n.shiftKey||n.ctrlKey||n.altKey||this.metaKeyPressed(n)},metaKeyPressed:function(t){return n.mac?t.metaKey:t.ctrlKey&&!t.altKey}}});i(di,[d,r,f,u,s],function(n,t,i,r,u){function e(n,t){for(;t&&t!=n;){if(o(t)||f(t))return t;t=t.parentNode}return null}var f=u.isContentEditableFalse,o=u.isContentEditableTrue;return function(u,o){function wt(n){var t=o.settings.object_resizing;return t!==!1&&!r.iOS&&("string"!=typeof t&&(t="table,img,div"),"false"!==n.getAttribute("data-mce-resize")&&n!=o.getBody()&&o.dom.is(n,t))}function ot(t){var i,r,e,u,f;i=t.screenX-ui;r=t.screenY-fi;l=i*y[2]+d;a=r*y[3]+g;l=l<5?5:l;a=a<5?5:a;e="IMG"==h.nodeName&&o.settings.resize_img_proportional!==!1?!n.modifierPressed(t):n.modifierPressed(t)||"IMG"==h.nodeName&&y[2]*y[3]!=0;e&&(lt(i)>lt(r)?(a=at(l*et),l=at(a/et)):(l=at(a/et),a=at(l*et)));s.setStyles(c,{width:l,height:a});u=y.startPos.x+i;f=y.startPos.y+r;u=u>0?u:0;f=f>0?f:0;s.setStyles(rt,{left:u,top:f,display:"block"});rt.innerHTML=l+" &times; "+a;y[2]<0&&c.clientWidth<=l&&s.setStyle(c,"left",ut+(d-l));y[3]<0&&c.clientHeight<=a&&s.setStyle(c,"top",ft+(g-a));i=v.scrollWidth-ei;r=v.scrollHeight-oi;i+r!==0&&s.setStyles(rt,{left:u-i,top:f-r});nt||(o.fire("ObjectResizeStart",{target:h,width:d,height:g}),nt=!0)}function st(){function n(n,t){t&&(h.style[n]||!o.schema.isValid(h.nodeName.toLowerCase(),n)?s.setStyle(h,n,t):s.setAttrib(h,n,t))}nt=!1;n("width",l);n("height",a);s.unbind(b,"mousemove",ot);s.unbind(b,"mouseup",st);tt!=b&&(s.unbind(tt,"mousemove",ot),s.unbind(tt,"mouseup",st));s.remove(c);s.remove(rt);it&&"TABLE"!=h.nodeName||ht(h);o.fire("ObjectResized",{target:h,width:l,height:a});s.setAttrib(h,"style",s.getAttrib(h,"style"));o.nodeChanged()}function ht(n,t,i){var f,e,k,nt,u;p();pt();f=s.getPos(n,v);ut=f.x;ft=f.y;u=n.getBoundingClientRect();e=u.width||u.right-u.left;k=u.height||u.bottom-u.top;h!=n&&(yt(),h=n,l=a=0);nt=o.fire("ObjectSelected",{target:n});wt(n)&&!nt.isDefaultPrevented()?ri(w,function(n,u){function o(t){ui=t.screenX;fi=t.screenY;d=h.clientWidth;g=h.clientHeight;et=g/d;y=n;n.startPos={x:e*n[0]+ut,y:k*n[1]+ft};ei=v.scrollWidth;oi=v.scrollHeight;c=h.cloneNode(!0);s.addClass(c,"mce-clonedresizable");s.setAttrib(c,"data-mce-bogus","all");c.contentEditable=!1;c.unSelectabe=!0;s.setStyles(c,{left:ut,top:ft,margin:0});c.removeAttribute("data-mce-selected");v.appendChild(c);s.bind(b,"mousemove",ot);s.bind(b,"mouseup",st);tt!=b&&(s.bind(tt,"mousemove",ot),s.bind(tt,"mouseup",st));rt=s.add(v,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+g)}var f;return t?void(u==t&&o(i)):(f=s.get("mceResizeHandle"+u),f&&s.remove(f),f=s.add(v,"div",{id:"mceResizeHandle"+u,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+u+"-resize; margin:0; padding:0"}),r.ie&&(f.contentEditable=!1),s.bind(f,"mousedown",function(n){n.stopImmediatePropagation();n.preventDefault();o(n)}),n.elm=f,void s.setStyles(f,{left:e*n[0]+ut-f.offsetWidth/2,top:k*n[1]+ft-f.offsetHeight/2}))}):p();h.setAttribute("data-mce-selected","1")}function p(){var t,n;pt();h&&h.removeAttribute("data-mce-selected");for(t in w)n=s.get("mceResizeHandle"+t),n&&(s.unbind(n),s.remove(n))}function bt(n){function r(n,t){if(n)do if(n===t)return!0;while(n=n.parentNode)}var i,t;if(!nt&&!o.removed)return ri(s.select("img[data-mce-selected],hr[data-mce-selected]"),function(n){n.removeAttribute("data-mce-selected")}),t="mousedown"==n.type?n.target:u.getNode(),t=s.$(t).closest(it?"table":"table,img,hr")[0],r(t,v)&&(ti(),i=u.getStart(!0),r(i,t)&&r(u.getEnd(!0),t)&&(!it||t!=i&&"IMG"!==i.nodeName))?void ht(t):void p()}function kt(n,t,i){n&&n.attachEvent&&n.attachEvent("on"+t,i)}function dt(n,t,i){n&&n.detachEvent&&n.detachEvent("on"+t,i)}function gt(n){var t=n.srcElement,r,u,i,f,e,s,c;r=t.getBoundingClientRect();s=ct.clientX-r.left;c=ct.clientY-r.top;for(u in w)if(i=w[u],f=t.offsetWidth*i[0],e=t.offsetHeight*i[1],lt(f-s)<8&&lt(e-c)<8){y=i;break}nt=!0;o.fire("ObjectResizeStart",{target:h,width:h.clientWidth,height:h.clientHeight});o.getDoc().selection.empty();ht(t,u,ct)}function si(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function vt(n){return f(e(o.getBody(),n))}function ni(n){var t=n.srcElement;if(vt(t))return void si(n);if(t!=h){if(o.fire("ObjectSelected",{target:t}),yt(),0===t.id.indexOf("mceResizeHandle"))return void(n.returnValue=!1);"IMG"!=t.nodeName&&"TABLE"!=t.nodeName||(p(),h=t,kt(t,"resizestart",gt))}}function yt(){dt(h,"resizestart",gt)}function pt(){var t,n;for(t in w)n=w[t],n.elm&&(s.unbind(n.elm),delete n.elm)}function ti(){try{o.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(n){}}function ii(n){var t;if(it){t=b.body.createControlRange();try{return t.addElement(n),t.select(),!0}catch(i){}}}function hi(){h=c=null;it&&(yt(),dt(v,"controlselect",ni))}var s=o.dom,ri=t.each,h,c,rt,w,y,ct,ui,fi,ut,ft,d,g,et,nt,l,a,b=o.getDoc(),tt=document,it=r.ie&&r.ie<11,lt=Math.abs,at=Math.round,v=o.getBody(),ei,oi,k;return w={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},k=".mce-content-body",o.contentStyles.push(k+" div.mce-resizehandle {position: absolute;border: 1px solid black;box-sizing: box-sizing;background: #FFF;width: 7px;height: 7px;z-index: 10000}"+k+" .mce-resizehandle:hover {background: #000}"+k+" img[data-mce-selected],"+k+" hr[data-mce-selected] {outline: 1px solid black;resize: none}"+k+" .mce-clonedresizable {position: absolute;"+(r.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+k+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}"),o.on("init",function(){it?(o.on("ObjectResized",function(n){"TABLE"!=n.target.nodeName&&(p(),ii(n.target))}),kt(v,"controlselect",ni),o.on("mousedown",function(n){ct=n})):(ti(),r.ie>=11&&(o.on("mousedown click",function(n){var t=n.target,i=t.nodeName;nt||!/^(TABLE|IMG|HR)$/.test(i)||vt(t)||(o.selection.select(t,"TABLE"==i),"mousedown"==n.type&&o.nodeChanged())}),o.dom.bind(v,"mscontrolselect",function(n){function t(n){i.setEditorTimeout(o,function(){o.selection.select(n)})}return vt(n.target)?(n.preventDefault(),void t(n.target)):void(/^(TABLE|IMG|HR)$/.test(n.target.nodeName)&&(n.preventDefault(),"IMG"==n.target.tagName&&t(n.target)))})));var n=i.throttle(function(n){o.composing||bt(n)});o.on("nodechange ResizeEditor ResizeWindow drop",n);o.on("keyup compositionend",function(t){h&&"TABLE"==h.nodeName&&n(t)});o.on("hide blur",p)}),o.on("remove",pt),{isResizable:wt,showResizeRect:ht,hideResizeRect:p,updateResizeRect:bt,controlSelect:ii,destroy:hi}}});i(l,[],function(){function i(n){return function(){return n}}function r(n){return function(t){return!n(t)}}function u(n,t){return function(i){return n(t(i))}}function f(){var t=n.call(arguments);return function(n){for(var i=0;i<t.length;i++)if(t[i](n))return!0;return!1}}function e(){var t=n.call(arguments);return function(n){for(var i=0;i<t.length;i++)if(!t[i](n))return!1;return!0}}function t(i){var r=n.call(arguments);return r.length-1>=i.length?i.apply(this,r.slice(1)):function(){var n=r.concat([].slice.call(arguments));return t.apply(this,n)}}function o(){}var n=[].slice;return{constant:i,negate:r,and:e,or:f,curry:t,compose:u,noop:o}});i(st,[s,e,w],function(n,t,i){function u(n){return!p(n)&&(a(n)?!v(n.parentNode):o(n)||l(n)||y(n)||r(n))}function f(n,t){for(n=n.parentNode;n&&n!=t;n=n.parentNode){if(r(n))return!1;if(e(n))return!0}return!0}function s(n){return!!r(n)&&t.reduce(n.getElementsByTagName("*"),function(n,t){return n||e(t)},!1)!==!0}function h(n){return o(n)||s(n)}function c(n,t){return u(n)&&f(n,t)}var e=n.isContentEditableTrue,r=n.isContentEditableFalse,l=n.isBr,a=n.isText,v=n.matchNodeNames("script style textarea"),o=n.matchNodeNames("img input textarea hr iframe video audio object"),y=n.matchNodeNames("table"),p=i.isCaretContainer;return{isCaretCandidate:u,isInEditable:f,isAtomic:h,isEditableCaretCandidate:c}});i(tt,[],function(){function t(t){return t?{left:n(t.left),top:n(t.top),bottom:n(t.bottom),right:n(t.right),width:n(t.width),height:n(t.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}}function o(n,i){return n=t(n),i?n.right=n.left:(n.left=n.left+n.width,n.right=n.left),n.width=0,n}function s(n,t){return n.left===t.left&&n.top===t.top&&n.bottom===t.bottom&&n.right===t.right}function i(n,t,i){return n>=0&&n<=Math.min(t.height,i.height)/2}function r(n,t){return n.bottom<t.top||!(n.top>t.bottom)&&i(t.top-n.bottom,n,t)}function u(n,t){return n.top>t.bottom||!(n.bottom<t.top)&&i(t.bottom-n.top,n,t)}function f(n,t){return n.left<t.left}function e(n,t){return n.right>t.right}function h(n,t){return r(n,t)?-1:u(n,t)?1:f(n,t)?-1:e(n,t)?1:0}function c(n,t,i){return t>=n.left&&t<=n.right&&i>=n.top&&i<=n.bottom}var n=Math.round;return{clone:t,collapse:o,isEqual:s,isAbove:r,isBelow:u,isLeft:f,isRight:e,compare:h,containsXY:c}});i(du,[],function(){function n(n){return"string"==typeof n&&n.charCodeAt(0)>=768&&t.test(n)}var t=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]");return{isExtendingChar:n}});i(y,[l,s,o,v,st,tt,du],function(n,t,i,r,u,f,e){function l(n){return"createRange"in n?n.createRange():i.DOM.createRng()}function a(n){return n&&/[\r\n\t ]/.test(n)}function v(n){var i=n.startContainer,r=n.startOffset,t;return!!(a(n.toString())&&nt(i.parentNode)&&(t=i.data,a(t[r-1])||a(t[r+1])))}function k(n){function k(n){var r=n.ownerDocument,i=l(r),t=r.createTextNode(" "),u=n.parentNode,e;return u.insertBefore(t,n),i.setStart(t,0),i.setEnd(t,1),e=f.clone(i.getBoundingClientRect()),u.removeChild(t),e}function r(n){var t,i;return i=n.getClientRects(),t=i.length>0?f.clone(i[0]):f.clone(n.getBoundingClientRect()),y(n)&&0===t.left?k(n):t}function u(n,t){return n=f.collapse(n,t),n.width=1,n.right=n.left+1,n}function o(n){0!==n.height&&(i.length>0&&f.isEqual(n,i[i.length-1])||i.push(n))}function b(n,t){var f=l(n.ownerDocument);if(t<n.data.length){if(e.isExtendingChar(n.data[t]))return i;if(e.isExtendingChar(n.data[t-1])&&(f.setStart(n,t),f.setEnd(n,t+1),!v(f)))return o(u(r(f),!1)),i}t>0&&(f.setStart(n,t-1),f.setEnd(n,t),v(f)||o(u(r(f),!1)));t<n.data.length&&(f.setStart(n,t),f.setEnd(n,t+1),v(f)||o(u(r(f),!0)))}var i=[],a,t;if(h(n.container()))return b(n.container(),n.offset()),i;if(p(n.container()))if(n.isAtEnd())t=c(n.container(),n.offset()),h(t)&&b(t,t.data.length),s(t)&&!y(t)&&o(u(r(t),!1));else{if(t=c(n.container(),n.offset()),h(t)&&b(t,0),s(t)&&n.isAtEnd())return o(u(r(t),!1)),i;a=c(n.container(),n.offset()-1);s(a)&&!y(a)&&(w(a)||w(t)||!s(t))&&o(u(r(a),!1));s(t)&&o(u(r(t),!0))}return i}function o(t,i,r){function f(){return h(t)?0===i:0===i}function e(){return h(t)?i>=t.data.length:i>=t.childNodes.length}function s(){var n;return n=l(t.ownerDocument),n.setStart(t,i),n.setEnd(t,i),n}function u(){return r||(r=k(new o(t,i))),r}function a(){return u().length>0}function v(n){return n&&t===n.container()&&i===n.offset()}function y(n){return c(t,n?i-1:i)}return{container:n.constant(t),offset:n.constant(i),toRange:s,getClientRects:u,isVisible:a,isAtStart:f,isAtEnd:e,isEqual:v,getNode:y}}var p=t.isElement,d=u.isCaretCandidate,w=t.matchStyleValues("display","block table"),g=t.matchStyleValues("float","left right"),s=n.and(p,d,n.negate(g)),nt=n.negate(t.matchStyleValues("white-space","pre pre-line pre-wrap")),h=t.isText,y=t.isBr,b=i.nodeIndex,c=r.getNode;return o.fromRangeStart=function(n){return new o(n.startContainer,n.startOffset)},o.fromRangeEnd=function(n){return new o(n.endContainer,n.endOffset)},o.after=function(n){return new o(n.parentNode,b(n)+1)},o.before=function(n){return new o(n.parentNode,b(n))},o});i(gu,[s,o,l,e,y],function(n,t,i,r,u){function o(n){var t=n.parentNode;return c(t)?o(t):t}function e(n){return n?r.reduce(n.childNodes,function(n,t){return c(t)&&"BR"!=t.nodeName?n=n.concat(e(t)):n.push(t),n},[]):[]}function a(n,t){for(;(n=n.previousSibling)&&f(n);)t+=n.data.length;return t}function s(n){return function(t){return n===t}}function v(t){var i,u,h;return i=e(o(t)),u=r.findIndex(i,s(t),t),i=i.slice(0,u+1),h=r.reduce(i,function(n,t,r){return f(t)&&f(i[r-1])&&n++,n},0),i=r.filter(i,n.matchNodeNames(t.nodeName)),u=r.findIndex(i,s(t),t),u-h}function h(n){var t;return t=f(n)?"text()":n.nodeName.toLowerCase(),t+"["+v(n)+"]"}function y(n,t,i){var r=[];for(t=t.parentNode;t!=n&&(!i||!i(t));t=t.parentNode)r.push(t);return r}function p(t,u){var e,o,s=[],c,l,v;return e=u.container(),o=u.offset(),f(e)?c=a(e,o):(l=e.childNodes,o>=l.length?(c="after",o=l.length-1):c="before",e=l[o]),s.push(h(e)),v=y(t,e),v=r.filter(v,i.negate(n.isBogus)),s=s.concat(r.map(v,function(n){return h(n)})),s.reverse().join("/")+","+c}function w(t,i,u){var o=e(t);return o=r.filter(o,function(n,t){return!f(n)||!f(o[t-1])}),o=r.filter(o,n.matchNodeNames(i)),o[u]}function b(n,t){for(var i=n,r=0,e;f(i);){if(e=i.data.length,t>=r&&t<=r+e){n=i;t-=r;break}if(!f(i.nextSibling)){n=i;t=e;break}r+=e;i=i.nextSibling}return t>n.data.length&&(t=n.data.length),new u(n,t)}function k(n,t){var o,i,e;return t?(o=t.split(","),t=o[0].split("/"),e=o.length>1?o[1]:"before",i=r.reduce(t,function(n,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),w(n,t[1],parseInt(t[2],10))):null},n),i?f(i)?b(i,parseInt(e,10)):(e="after"===e?l(i)+1:l(i),new u(i.parentNode,e)):null):null}var f=n.isText,c=n.isBogus,l=t.nodeIndex;return{create:p,resolve:k}});i(wt,[u,r,w,gu,y,s,v],function(n,t,i,r,u,f,e){function s(s){var h=s.dom;this.getBookmark=function(n,c){function b(n,i){var r=0;return t.each(h.select(n),function(n){if("all"!==n.getAttribute("data-mce-bogus"))return n!=i&&void r++}),r}function g(n){function t(t){var i,r,u,f=t?"start":"end";i=n[f+"Container"];r=n[f+"Offset"];1==i.nodeType&&"TR"==i.nodeName&&(u=i.childNodes,i=u[Math.min(t?r:r-1,u.length-1)],i&&(r=t?0:i.childNodes.length,n["set"+(t?"Start":"End")](i,r)))}return t(!0),t(),n}function nt(n){function i(n,t){var i=n[t?"startContainer":"endContainer"],f=n[t?"startOffset":"endOffset"],o=[],u,e,s=0;if(3==i.nodeType){if(c)for(u=i.previousSibling;u&&3==u.nodeType;u=u.previousSibling)f+=u.nodeValue.length;o.push(f)}else e=i.childNodes,f>=e.length&&e.length&&(s=1,f=Math.max(0,e.length-1)),o.push(h.nodeIndex(e[f],c)+s);for(;i&&i!=r;i=i.parentNode)o.push(h.nodeIndex(i,c));return o}var r=h.getRoot(),t={};return t.start=i(n,!0),s.isCollapsed()||(t.end=i(n)),t}function tt(n){function t(n,t){var r;return f.isElement(n)&&(n=e.getNode(n,t),o(n))?n:i.isCaretContainer(n)&&((f.isText(n)&&i.isCaretContainerBlock(n)&&(n=n.parentNode),r=n.previousSibling,o(r))||(r=n.nextSibling,o(r)))?r:void 0}return t(n.startContainer,n.startOffset)||t(n.endContainer,n.endOffset)}var l,y,p,d,v,a,k="&#xFEFF;",w;if(2==n)return a=s.getNode(),v=a?a.nodeName:null,l=s.getRng(),o(a)||"IMG"==v?{name:v,index:b(v,a)}:s.tridentSel?s.tridentSel.getBookmark(n):(a=tt(l),a?(v=a.tagName,{name:v,index:b(v,a)}):nt(l));if(3==n)return l=s.getRng(),{start:r.create(h.getRoot(),u.fromRangeStart(l)),end:r.create(h.getRoot(),u.fromRangeEnd(l))};if(n)return{rng:s.getRng()};if(l=s.getRng(),p=h.uniqueId(),d=s.isCollapsed(),w="overflow:hidden;line-height:0px",l.duplicate||l.item){if(l.item)return a=l.item(0),v=a.nodeName,{name:v,index:b(v,a)};y=l.duplicate();try{l.collapse();l.pasteHTML('<span data-mce-type="bookmark" id="'+p+'_start" style="'+w+'">'+k+"<\/span>");d||(y.collapse(!1),l.moveToElementText(y.parentElement()),0===l.compareEndPoints("StartToEnd",y)&&y.move("character",-1),y.pasteHTML('<span data-mce-type="bookmark" id="'+p+'_end" style="'+w+'">'+k+"<\/span>"))}catch(it){return null}}else{if(a=s.getNode(),v=a.nodeName,"IMG"==v)return{name:v,index:b(v,a)};y=g(l.cloneRange());d||(y.collapse(!1),y.insertNode(h.create("span",{"data-mce-type":"bookmark",id:p+"_end",style:w},k)));l=g(l);l.collapse(!0);l.insertNode(h.create("span",{"data-mce-type":"bookmark",id:p+"_start",style:w},k))}return s.moveToBookmark({id:p,keep:1}),{id:p}};this.moveToBookmark=function(i){function l(n){var r=i[n?"start":"end"],f,t,e,o;if(r){for(e=r[0],t=y,f=r.length-1;f>=1;f--){if(o=t.childNodes,r[f]>o.length-1)return;t=o[r[f]]}3===t.nodeType&&(e=Math.min(r[0],t.nodeValue.length));1===t.nodeType&&(e=Math.min(r[0],t.childNodes.length));n?u.setStart(t,e):u.setEnd(t,e)}return!0}function a(r){var u=h.get(i.id+"_"+r),a,s,v,l,y=i.keep;if(u&&(a=u.parentNode,"start"==r?(y?(a=u.firstChild,s=1):s=h.nodeIndex(u),o=f=a,c=e=s):(y?(a=u.firstChild,s=1):s=h.nodeIndex(u),f=a,e=s),!y)){for(l=u.previousSibling,v=u.nextSibling,t.each(t.grep(u.childNodes),function(n){3==n.nodeType&&(n.nodeValue=n.nodeValue.replace(/\uFEFF/g,""))});u=h.get(i.id+"_"+r);)h.remove(u,1);l&&v&&l.nodeType==v.nodeType&&3==l.nodeType&&!n.opera&&(s=l.nodeValue.length,l.appendData(v.nodeValue),h.remove(v),"start"==r?(o=f=l,c=e=s):(f=l,e=s))}}function v(t){return!h.isBlock(t)||t.innerHTML||n.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t}function p(){var t,n;return t=h.createRng(),n=r.resolve(h.getRoot(),i.start),t.setStart(n.container(),n.offset()),n=r.resolve(h.getRoot(),i.end),t.setEnd(n.container(),n.offset()),t}var u,y,o,f,c,e;if(i)if(t.isArray(i.start)){if(u=h.createRng(),y=h.getRoot(),s.tridentSel)return s.tridentSel.moveToBookmark(i);l(!0)&&l()&&s.setRng(u)}else"string"==typeof i.start?s.setRng(p(i)):i.id?(a("start"),a("end"),o&&(u=h.createRng(),u.setStart(v(o),c),u.setEnd(v(f),e),s.setRng(u))):i.name?s.select(h.select(i.name)[i.index]):i.rng&&s.setRng(i.rng)}}var o=f.isContentEditableFalse;return s.isBookmarkNode=function(n){return n&&"SPAN"===n.tagName&&"bookmark"===n.getAttribute("data-mce-type")},s});i(gi,[p,ku,di,v,wt,s,u,r,y],function(n,i,r,u,f,e,o,s,h){function l(n,t,u,e){var o=this;o.dom=n;o.win=t;o.serializer=u;o.editor=e;o.bookmarkManager=new f(o);o.controlSelection=new r(o,e);o.win.getSelection||(o.tridentSel=new i(o))}var c=s.each,a=s.trim,v=o.ie;return l.prototype={setCursorLocation:function(n,t){var i=this,r=i.dom.createRng();n?(r.setStart(n,t),r.setEnd(n,t),i.setRng(r),i.collapse(!1)):(i._moveEndPoint(r,i.editor.getBody(),!0),i.setRng(r))},getContent:function(n){var r=this,i=r.getRng(),u=r.dom.create("body"),s=r.getSel(),f,e,o;return n=n||{},f=e="",n.get=!0,n.format=n.format||"html",n.selection=!0,r.editor.fire("BeforeGetContent",n),"text"==n.format?r.isCollapsed()?"":i.text||(s.toString?s.toString():""):(i.cloneContents?(o=i.cloneContents(),o&&u.appendChild(o)):i.item!==t||i.htmlText!==t?(u.innerHTML="<br>"+(i.item?i.item(0).outerHTML:i.htmlText),u.removeChild(u.firstChild)):u.innerHTML=i.toString(),/^\s/.test(u.innerHTML)&&(f=" "),/\s+$/.test(u.innerHTML)&&(e=" "),n.getInner=!0,n.content=r.isCollapsed()?"":f+r.serializer.serialize(u,n)+e,r.editor.fire("GetContent",n),n.content)},setContent:function(n,t){var r=this,i=r.getRng(),f,u=r.win.document,e,o;if(t=t||{format:"html"},t.set=!0,t.selection=!0,t.content=n,t.no_events||r.editor.fire("BeforeSetContent",t),n=t.content,i.insertNode){n+='<span id="__caret">_<\/span>';i.startContainer==u&&i.endContainer==u?u.body.innerHTML=n:(i.deleteContents(),0===u.body.childNodes.length?u.body.innerHTML=n:i.createContextualFragment?i.insertNode(i.createContextualFragment(n)):(e=u.createDocumentFragment(),o=u.createElement("div"),e.appendChild(o),o.outerHTML=n,i.insertNode(e)));f=r.dom.get("__caret");i=u.createRange();i.setStartBefore(f);i.setEndBefore(f);r.setRng(i);r.dom.remove("__caret");try{r.setRng(i)}catch(s){}}else i.item&&(u.execCommand("Delete",!1,null),i=r.getRng()),/^\s+/.test(n)?(i.pasteHTML('<span id="__mce_tmp">_<\/span>'+n),r.dom.remove("__mce_tmp")):i.pasteHTML(n);t.no_events||r.editor.fire("SetContent",t)},getStart:function(n){var u=this,i=u.getRng(),t,e,f,r;if(i.duplicate||i.item){if(i.item)return i.item(0);for(f=i.duplicate(),f.collapse(1),t=f.parentElement(),t.ownerDocument!==u.dom.doc&&(t=u.dom.getRoot()),e=r=i.parentElement();r=r.parentNode;)if(r==t){t=e;break}return t}return t=i.startContainer,1==t.nodeType&&t.hasChildNodes()&&(n&&i.collapsed||(t=t.childNodes[Math.min(t.childNodes.length-1,i.startOffset)])),t&&3==t.nodeType?t.parentNode:t},getEnd:function(n){var u=this,i=u.getRng(),t,r;return i.duplicate||i.item?i.item?i.item(0):(i=i.duplicate(),i.collapse(0),t=i.parentElement(),t.ownerDocument!==u.dom.doc&&(t=u.dom.getRoot()),t&&"BODY"==t.nodeName?t.lastChild||t:t):(t=i.endContainer,r=i.endOffset,1==t.nodeType&&t.hasChildNodes()&&(n&&i.collapsed||(t=t.childNodes[r>0?r-1:r])),t&&3==t.nodeType?t.parentNode:t)},getBookmark:function(n,t){return this.bookmarkManager.getBookmark(n,t)},moveToBookmark:function(n){return this.bookmarkManager.moveToBookmark(n)},select:function(n,t){var i=this,f=i.dom,r=f.createRng(),u;if(i.lastFocusBookmark=null,n){if(!t&&i.controlSelection.controlSelect(n))return;u=f.nodeIndex(n);r.setStart(n.parentNode,u);r.setEnd(n.parentNode,u+1);t&&(i._moveEndPoint(r,n,!0),i._moveEndPoint(r,n));i.setRng(r)}return n},isCollapsed:function(){var t=this,n=t.getRng(),i=t.getSel();return!(!n||n.item)&&(n.compareEndPoints?0===n.compareEndPoints("StartToEnd",n):!i||n.collapsed)},collapse:function(n){var i=this,t=i.getRng(),r;t.item&&(r=t.item(0),t=i.win.document.body.createTextRange(),t.moveToElementText(r));t.collapse(!!n);i.setRng(t)},getSel:function(){var n=this.win;return n.getSelection?n.getSelection():n.document.selection},getRng:function(n){function h(n,t,i){try{return t.compareBoundaryPoints(n,i)}catch(r){return-1}}var i=this,e,t,f,r,o,s,u;if(!i.win||(r=i.win.document,"undefined"==typeof r||null===r))return null;if(!n&&i.lastFocusBookmark)return u=i.lastFocusBookmark,u.startContainer?(t=r.createRange(),t.setStart(u.startContainer,u.startOffset),t.setEnd(u.endContainer,u.endOffset)):t=u,t;if(n&&i.tridentSel)return i.tridentSel.getRangeAt(0);try{(e=i.getSel())&&(t=e.rangeCount>0?e.getRangeAt(0):e.createRange?e.createRange():r.createRange())}catch(c){}if(s=i.editor.fire("GetSelectionRange",{range:t}),s.range!==t)return s.range;if(v&&t&&t.setStart&&r.selection){try{o=r.selection.createRange()}catch(c){}o&&o.item&&(f=o.item(0),t=r.createRange(),t.setStartBefore(f),t.setEndAfter(f))}return t||(t=r.createRange?r.createRange():r.body.createTextRange()),t.setStart&&9===t.startContainer.nodeType&&t.collapsed&&(f=i.dom.getRoot(),t.setStart(f,0),t.setEnd(f,0)),i.selectedRange&&i.explicitRange&&(0===h(t.START_TO_START,t,i.selectedRange)&&0===h(t.END_TO_END,t,i.selectedRange)?t=i.explicitRange:(i.selectedRange=null,i.explicitRange=null)),t},setRng:function(n,t){var r=this,i,u,f;if(n)if(n.select){r.explicitRange=null;try{n.select()}catch(e){}}else if(r.tridentSel){if(n.cloneRange)try{r.tridentSel.addRange(n)}catch(e){}}else{if(i=r.getSel(),f=r.editor.fire("SetSelectionRange",{range:n}),n=f.range,i){r.explicitRange=n;try{i.removeAllRanges();i.addRange(n)}catch(e){}t===!1&&i.extend&&(i.collapse(n.endContainer,n.endOffset),i.extend(n.startContainer,n.startOffset));r.selectedRange=i.rangeCount>0?i.getRangeAt(0):null}n.collapsed||n.startContainer!=n.endContainer||!i.setBaseAndExtent||o.ie||n.endOffset-n.startOffset<2&&n.startContainer.hasChildNodes()&&(u=n.startContainer.childNodes[n.startOffset],u&&"IMG"==u.tagName&&r.getSel().setBaseAndExtent(u,0,u,1));r.editor.fire("AfterSetSelectionRange",{range:n})}},setNode:function(n){var t=this;return t.setContent(t.dom.getOuterHTML(n)),n},getNode:function(){function o(n,t){for(var i=n;n&&3===n.nodeType&&0===n.length;)n=t?n.nextSibling:n.previousSibling;return n||i}var f=this,t=f.getRng(),i,n,r,u,e,s=f.dom.getRoot();return t?(n=t.startContainer,r=t.endContainer,u=t.startOffset,e=t.endOffset,t.setStart?(i=t.commonAncestorContainer,!t.collapsed&&(n==r&&e-u<2&&n.hasChildNodes()&&(i=n.childNodes[u]),3===n.nodeType&&3===r.nodeType&&(n=n.length===u?o(n.nextSibling,!0):n.parentNode,r=0===e?o(r.previousSibling,!1):r.parentNode,n&&n===r))?n:i&&3==i.nodeType?i.parentNode:i):(i=t.item?t.item(0):t.parentElement(),i.ownerDocument!==f.win.document&&(i=s),i)):s},getSelectedBlocks:function(t,i){var o=this,r=o.dom,u,f,e=[],s;if(f=r.getRoot(),t=r.getParent(t||o.getStart(),r.isBlock),i=r.getParent(i||o.getEnd(),r.isBlock),t&&t!=f&&e.push(t),t&&i&&t!=i)for(u=t,s=new n(t,f);(u=s.next())&&u!=i;)r.isBlock(u)&&e.push(u);return i&&t!=i&&i!=f&&e.push(i),e},isForward:function(){var r=this.dom,n=this.getSel(),t,i;return!(n&&n.anchorNode&&n.focusNode)||(t=r.createRng(),t.setStart(n.anchorNode,n.anchorOffset),t.collapse(!0),i=r.createRng(),i.setStart(n.focusNode,n.focusOffset),i.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,i)<=0)},normalize:function(){var n=this,t=n.getRng();return o.range&&new u(n.dom).normalize(t)&&n.setRng(t,n.isForward()),t},selectorChanged:function(n,t){var i=this,r;return i.selectorChangedData||(i.selectorChangedData={},r={},i.editor.on("NodeChange",function(n){var f=n.element,t=i.dom,u=t.getParents(f,null,t.getRoot()),e={};c(i.selectorChangedData,function(n,i){c(u,function(f){if(t.is(f,i))return r[i]||(c(n,function(n){n(!0,{node:f,selector:i,parents:u})}),r[i]=n),e[i]=n,!1})});c(r,function(n,t){e[t]||(delete r[t],c(n,function(n){n(!1,{node:f,selector:t,parents:u})}))})})),i.selectorChangedData[n]||(i.selectorChangedData[n]=[]),i.selectorChangedData[n].push(t),i},getScrollContainer:function(){for(var t,n=this.dom.getRoot();n&&"BODY"!=n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(n,t){function l(n){for(var i=0,r=0,t=n;t&&t.nodeType;)i+=t.offsetLeft||0,r+=t.offsetTop||0,t=t.offsetParent;return{x:i,y:r}}var i,o,s=this,h=s.dom,a=h.getRoot(),r,u,c=0,f;if(e.isElement(n)){if((t===!1&&(c=n.offsetHeight),"BODY"!=a.nodeName)&&(f=s.getScrollContainer(),f))return i=l(n).y-l(f).y+c,u=f.clientHeight,r=f.scrollTop,void((i<r||i+25>r+u)&&(f.scrollTop=i<r?i:i-u+25));o=h.getViewPort(s.editor.getWin());i=h.getPos(n).y+c;r=o.y;u=o.h;(i<o.y||i+25>r+u)&&s.editor.getWin().scrollTo(0,i<r?i:i-u+25)}},placeCaretAt:function(n,t){this.setRng(u.getCaretRangeFromPoint(n,t,this.editor.getDoc()))},_moveEndPoint:function(t,i,r){var u=i,f=new n(i,u),e=this.dom.schema.getNonEmptyElements();do{if(3==i.nodeType&&0!==a(i.nodeValue).length)return void(r?t.setStart(i,0):t.setEnd(i,i.nodeValue.length));if(e[i.nodeName]&&!/^(TD|TH)$/.test(i.nodeName))return void(r?t.setStartBefore(i):"BR"==i.nodeName?t.setEndBefore(i):t.setEndAfter(i));if(o.ie&&o.ie<11&&this.dom.isBlock(i)&&this.dom.isEmpty(i))return void(r?t.setStart(i,0):t.setEnd(i,0))}while(i=r?f.next():f.prev());"BODY"==u.nodeName&&(r?t.setStart(u,0):t.setEnd(u,u.childNodes.length))},getBoundingClientRect:function(){var n=this.getRng();return n.collapsed?h.fromRangeStart(n).getClientRects()[0]:n.getBoundingClientRect()},destroy:function(){this.win=null;this.controlSelection.destroy()}},l});i(nr,[wt,r],function(n,t){function i(t){this.compare=function(i,u){function f(n){var i={};return r(t.getAttribs(n),function(r){var u=r.nodeName.toLowerCase();0!==u.indexOf("_")&&"style"!==u&&0!==u.indexOf("data-")&&(i[u]=t.getAttrib(n,u))}),i}function e(n,t){var r;for(var i in n)if(n.hasOwnProperty(i)){if((r=t[i],"undefined"==typeof r)||n[i]!=r)return!1;delete t[i]}for(i in t)if(t.hasOwnProperty(i))return!1;return!0}return i.nodeName==u.nodeName&&!!e(f(i),f(u))&&!!e(t.parseStyle(t.getAttrib(i,"style")),t.parseStyle(t.getAttrib(u,"style")))&&!n.isBookmarkNode(i)&&!n.isBookmarkNode(u)}}var r=t.each;return i});i(nf,[o,r,k],function(n,t,i){function f(n,u){function c(n,t){t.classes.length&&r.addClass(n,t.classes.join(" "));r.setAttribs(n,t.attrs)}function e(n){var t;return f="string"==typeof n?{name:n,classes:[],attrs:{}}:n,t=r.create(f.name),c(t,f),t}function l(n,i){var u="string"!=typeof n?n.nodeName.toLowerCase():n,f=a.getElementRule(u),r=f.parentsRequired;return!(!r||!r.length)&&(i&&t.inArray(r,i)!==-1?i:r[0])}function s(n,i,u){var f,o,h,c=i.length&&i[0],a=c&&c.name;if(h=l(n,a))a==h?(o=i[0],i=i.slice(1)):o=h;else if(c)o=i[0],i=i.slice(1);else if(!u)return n;return o&&(f=e(o),f.appendChild(n)),u&&(f||(f=r.create("div"),f.appendChild(n)),t.each(u,function(t){var i=e(t);f.insertBefore(i,n)})),s(f,i,o&&o.siblings)}var h,f,o,a=u&&u.schema||new i({});return n&&n.length?(f=n[0],h=e(f),o=r.create("div"),o.appendChild(s(h,n.slice(1),f.siblings)),o):""}function o(n,t){return f(e(n,t))}function s(n){var r,i={classes:[],attrs:{}};return n=i.selector=t.trim(n),"*"!==n&&(r=n.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(n,r,u,f,e){switch(r){case"#":i.attrs.id=u;break;case".":i.classes.push(u);break;case":":t.inArray("checked disabled enabled read-only required".split(" "),u)!==-1&&(i.attrs[u]=u)}if("["==f){var o=e.match(/([\w\-]+)(?:\=\"([^\"]+))?/);o&&(i.attrs[o[1]]=o[2])}return""})),i.name=r||"div",i}function e(n){return n&&"string"==typeof n?(n=n.split(/\s*,\s*/)[0],n=n.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),t.map(n.split(/(?:>|\s+(?![^\[\]]+\]))/),function(n){var i=t.map(n.split(/(?:~\+|~|\+)/),s),r=i.pop();return i.length&&(r.siblings=i),r}).reverse()):[]}function h(n,t){function a(n){return n.replace(/%(\w+)/g,"")}var c,i,s,l,v="",h,o;if(o=n.settings.preview_styles,o===!1)return"";if("string"!=typeof o&&(o="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),"string"==typeof t){if(t=n.formatter.get(t),!t)return;t=t[0]}return"preview"in t&&(o=t.preview,o===!1)?"":(c=t.block||t.inline||"span",l=e(t.selector),l.length?(l[0].name||(l[0].name=c),c=t.selector,i=f(l)):i=f([c]),s=r.select(c,i)[0]||i.firstChild,u(t.styles,function(n,t){n=a(n);n&&r.setStyle(s,t,n)}),u(t.attributes,function(n,t){n=a(n);n&&r.setAttrib(s,t,n)}),u(t.classes,function(n){n=a(n);r.hasClass(s,n)||r.addClass(s,n)}),n.fire("PreviewFormats"),r.setStyles(i,{position:"absolute",left:-65535}),n.getBody().appendChild(i),h=r.getStyle(n.getBody(),"fontSize",!0),h=/px$/.test(h)?parseInt(h,10):0,u(o.split(" "),function(t){var i=r.getStyle(s,t,!0);if(!("background-color"==t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(i)&&(i=r.getStyle(n.getBody(),t,!0),"#ffffff"==r.toHex(i).toLowerCase())||"color"==t&&"#000000"==r.toHex(i).toLowerCase())){if("font-size"==t&&/em|%$/.test(i)){if(0===h)return;i=parseFloat(i,10)/(/%$/.test(i)?100:1);i=i*h+"px"}"border"==t&&i&&(v+="padding:0 2px;");v+=t+":"+i+";"}}),n.fire("AfterPreviewFormats"),r.remove(i),v)}var u=t.each,r=n.DOM;return{getCssText:h,parseSelector:e,selectorToHtml:o}});i(tf,[e,s,c],function(n,t,i){function e(n,t){var i=r[n];i||(r[n]=i=[]);r[n].push(t)}function o(n,t){f(r[n],function(n){n(t)})}var r={},u=n.filter,f=n.each;return e("pre",function(r){function s(t){return e(t.previousSibling)&&n.indexOf(o,t.previousSibling)!=-1}function h(n,t){i(t).remove();i(n).append("<br><br>").append(t.childNodes)}var c=r.selection.getRng(),e,o;e=t.matchNodeNames("pre");c.collapsed||(o=r.selection.getSelectedBlocks(),f(u(u(o,e),s),function(n){h(n.previousSibling,n)}))}),{postProcess:o}});i(tr,[p,v,wt,nr,r,nf,tf],function(n,t,i,r,u,f,e){return function(o){function pt(n){return n.nodeType&&(n=n.nodeName),!!o.schema.getTextBlockElements()[n.toLowerCase()]}function wt(n){return/^(TH|TD)$/.test(n.nodeName)}function vi(n){return n&&/^(IMG)$/.test(n.nodeName)}function rt(n,t){return s.getParents(n,t,s.getRoot())}function bt(n){return 1===n.nodeType&&"_mce_caret"===n.id}function yi(){ut({valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(n,t,i){c(i,function(t,i){s.setAttrib(n,i,t)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]});c("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(n){ut(n,{block:n,remove:"all"})});ut(o.settings.formats)}function pi(){o.addShortcut("meta+b","bold_desc","Bold");o.addShortcut("meta+i","italic_desc","Italic");o.addShortcut("meta+u","underline_desc","Underline");for(var n=1;n<=6;n++)o.addShortcut("access+"+n,"",["FormatBlock",!1,"h"+n]);o.addShortcut("access+7","",["FormatBlock",!1,"p"]);o.addShortcut("access+8","",["FormatBlock",!1,"div"]);o.addShortcut("access+9","",["FormatBlock",!1,"address"])}function w(n){return n?it[n]:it}function ut(n,t){n&&("string"!=typeof n?c(n,function(n,t){ut(t,n)}):(t=t.length?t:[t],c(t,function(n){n.deep===ht&&(n.deep=!n.selector);n.split===ht&&(n.split=!n.selector||n.inline);n.remove===ht&&n.selector&&!n.inline&&(n.remove="none");n.selector&&n.inline&&(n.mixed=!0,n.block_expand=!0);"string"==typeof n.classes&&(n.classes=n.classes.split(/\s+/))}),it[n]=t))}function wi(n){return n&&it[n]&&delete it[n],it}function fi(n,t){var r=w(t),i;if(r)for(i=0;i<r.length;i++)if(r[i].inherit===!1&&s.is(n,r[i].selector))return!0;return!1}function ei(n){var t;return o.dom.getParent(n,function(n){return t=o.dom.getStyle(n,"text-decoration"),t&&"none"!==t}),t}function oi(n){var t;1===n.nodeType&&n.parentNode&&1===n.parentNode.nodeType&&(t=ei(n.parentNode),o.dom.getStyle(n,"color")&&t?o.dom.setStyle(n,"text-decoration",t):o.dom.getStyle(n,"text-decoration")===t&&o.dom.setStyle(n,"text-decoration",null))}function tt(t,i,r){function g(n,t){if(t=t||u,n){if(t.onformat&&t.onformat(n,t,i,r),c(t.styles,function(t,r){s.setStyle(n,r,d(t,i))}),t.styles){var f=s.getAttrib(n,"style");f&&n.setAttribute("data-mce-style",f)}c(t.attributes,function(t,r){s.setAttrib(n,r,d(t,i))});c(t.classes,function(t){t=d(t,i);s.hasClass(n,t)||s.addClass(n,t)})}}function ht(n,t){var i=!1;return!!u.selector&&(c(n,function(n){if(!("collapsed"in n&&n.collapsed!==lt))return s.is(t,n.selector)&&!bt(t)?(g(t,n),i=!0,!1):void 0}),i)}function kt(){function s(t,i){var u=new n(i);for(r=u.prev2();r;r=u.prev2())if(3==r.nodeType&&r.data.length>0||r.childNodes.length>1||r==t||"BR"==r.tagName)return r}var t=o.selection.getRng(),u=t.startContainer,f=t.endContainer,i,e;return u!=f&&0===t.endOffset&&(i=s(u,f),e=3==i.nodeType?i.data.length:i.childNodes.length,t.setEnd(i,e)),t}function ut(n,r,e){var w=[],o,d,h=!0;o=u.inline||u.block;d=s.create(o);g(d);at.walk(n,function(n){function l(n){var v,tt,nt,it,rt;if(it=h,v=n.nodeName.toLowerCase(),tt=n.parentNode.nodeName.toLowerCase(),1===n.nodeType&&k(n)&&(it=h,h="true"===k(n),nt=!0),b(v,"br"))return r=0,void(u.block&&s.remove(n));if(u.wrapper&&p(n,t,i))return void(r=0);if(h&&!nt&&u.block&&!u.wrapper&&pt(v)&&vt(tt,o))return n=s.rename(n,o),g(n),w.push(n),void(r=0);if(u.selector&&(rt=ht(f,n),!u.inline||rt))return void(r=0);!h||nt||!vt(o,v)||!vt(tt,o)||!e&&3===n.nodeType&&1===n.nodeValue.length&&65279===n.nodeValue.charCodeAt(0)||bt(n)||u.inline&&a(n)?(r=0,c(ct(n.childNodes),l),nt&&(h=it),r=0):(r||(r=s.clone(d,y),n.parentNode.insertBefore(r,n),w.push(r)),r.appendChild(n))}var r;c(n,l)});u.links===!0&&c(w,function(n){function t(n){"A"===n.nodeName&&g(n,u);c(ct(n.childNodes),t)}t(n)});c(w,function(n){function e(n){var t=0;return c(n.childNodes,function(n){ft(n)||v(n)||t++}),t}function o(n){var t,i;return c(n.childNodes,function(n){if(1==n.nodeType&&!v(n)&&!bt(n))return t=n,y}),t&&!v(t)&&gt(t,u)&&(i=s.clone(t,y),g(i),s.replace(i,n,l),s.remove(t,1)),i||n}var r;if(r=e(n),(w.length>1||!a(n))&&0===r)return void s.remove(n,1);if(u.inline||u.wrapper){if(u.exact||1!==r||(n=o(n)),c(f,function(t){c(s.select(t.inline,n),function(n){v(n)||ot(t,i,n,t.exact?n:null)})}),p(n.parentNode,t,i))return s.remove(n,1),n=0,l;u.merge_with_parents&&s.getParent(n.parentNode,function(r){if(p(r,t,i))return s.remove(n,1),n=0,l});n&&u.merge_siblings!==!1&&(n=si(ii(n),n),n=si(n,ii(n,l)))}})}var f=w(t),u=f[0],st,it,lt=!r&&h.isCollapsed(),rt,nt,wt;if("false"!==k(h.getNode()))u&&(r?r.nodeType?ht(f,r)||(it=s.createRng(),it.setStartBefore(r),it.setEndAfter(r),ut(et(it,f),null,!0)):ut(r,null,!0):lt&&u.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length?ci("apply",t,i):(rt=o.selection.getNode(),yt||!f[0].defaultBlock||s.getParent(rt,s.isBlock)||tt(f[0].defaultBlock),o.selection.setRng(kt()),st=h.getBookmark(),ut(et(h.getRng(l),f),st),u.styles&&(u.styles.color||u.styles.textDecoration)&&(ai(rt,oi,"childNodes"),oi(rt)),h.moveToBookmark(st),li(h.getRng(l)),o.nodeChanged()),e.postProcess(t,o));else for(r=h.getNode(),nt=0,wt=f.length;nt<wt;nt++)if(f[nt].ceFalseOverride&&s.is(r,f[nt].selector))return void g(r,f[nt])}function kt(n,t,i,r){function it(n){var r,i,e,s,o;if(1===n.nodeType&&k(n)&&(s=g,g="true"===k(n),o=!0),r=ct(n.childNodes),g&&!o)for(i=0,e=u.length;i<e&&!ot(u[i],t,n,n);i++);if(f.deep&&r.length){for(i=0,e=r.length;i<e;i++)it(r[i]);o&&(g=s)}}function ht(i){var u;return c(rt(i.parentNode).reverse(),function(i){var f;u||"_start"==i.id||"_end"==i.id||(f=p(i,n,t,r),f&&f.split!==!1&&(u=i))}),u}function vt(n,i,r,e){var h,o,c,v,l,p;if(n){for(p=n.parentNode,h=i.parentNode;h&&h!=p;h=h.parentNode){for(o=s.clone(h,y),l=0;l<u.length;l++)if(ot(u[l],t,o,o)){o=0;break}o&&(c&&o.appendChild(c),v||(v=o),c=o)}!e||f.mixed&&a(n)||(i=s.split(n,i));c&&(r.parentNode.insertBefore(c,r),v.appendChild(r))}return i}function b(n){return vt(ht(n),n,n,!0)}function nt(n){var i=s.get(n?"_start":"_end"),t=i[n?"firstChild":"lastChild"];return v(t)&&(t=t[n?"firstChild":"lastChild"]),3==t.nodeType&&0===t.data.length&&(t=n?i.previousSibling||i.nextSibling:i.nextSibling||i.previousSibling),s.remove(i,!0),t}function tt(n){var t,i,r=n.commonAncestorContainer;if(n=et(n,u,l),f.split){if(t=hi(n,l),i=hi(n),t!=i){if(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t="TR"==t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),r&&/^T(HEAD|BODY|FOOT|R)$/.test(r.nodeName)&&wt(i)&&i.firstChild&&(i=i.firstChild||i),s.isChildOf(t,i)&&!a(i)&&!wt(t)&&!wt(i))return t=lt(t,"span",{id:"_start","data-mce-type":"bookmark"}),b(t),void(t=nt(l));t=lt(t,"span",{id:"_start","data-mce-type":"bookmark"});i=lt(i,"span",{id:"_end","data-mce-type":"bookmark"});b(t);b(i);t=nt(l);i=nt()}else t=i=b(t);n.startContainer=t.parentNode?t.parentNode:t;n.startOffset=st(t);n.endContainer=i.parentNode?i.parentNode:i;n.endOffset=st(i)+1}at.walk(n,function(n){c(n,function(n){it(n);1===n.nodeType&&"underline"===o.dom.getStyle(n,"text-decoration")&&n.parentNode&&"underline"===ei(n.parentNode)&&ot({deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,n)})})}var u=w(n),f=u[0],ut,d,g=!0,e,ft;if(i)return void(i.nodeType?(d=s.createRng(),d.setStartBefore(i),d.setEndAfter(i),tt(d)):tt(i));if("false"!==k(h.getNode()))h.isCollapsed()&&f.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length?ci("remove",n,t,r):(ut=h.getBookmark(),tt(h.getRng(l)),h.moveToBookmark(ut),f.inline&&dt(n,t,h.getStart())&&li(h.getRng(!0)),o.nodeChanged());else for(i=h.getNode(),e=0,ft=u.length;e<ft&&(!u[e].ceFalseOverride||!ot(u[e],t,i,i));e++);}function bi(n,t,i){var r=w(n);!dt(n,t,i)||"toggle"in r[0]&&!r[0].toggle?tt(n,t,i):kt(n,t,i)}function p(n,t,i,r){function h(n,t,u){var e,h,f=t[u],o;if(t.onmatch)return t.onmatch(n,t,u);if(f)if(f.length===ht){for(e in f)if(f.hasOwnProperty(e)){if(h="attributes"===u?s.getAttrib(n,e):ni(n,e),r&&!h&&!t.exact)return;if((!r||t.exact)&&!b(h,ti(d(f[e],i),e)))return}}else for(o=0;o<f.length;o++)if("attributes"===u?s.getAttrib(n,f[o]):ni(n,f[o]))return t;return t}var e=w(t),f,u,o;if(e&&n)for(u=0;u<e.length;u++)if(f=e[u],gt(n,f)&&h(n,f,"attributes")&&h(n,f,"styles")){if(o=f.classes)for(u=0;u<o.length;u++)if(!s.hasClass(n,o[u]))return;return f}}function dt(n,t,i){function r(i){var r=s.getRoot();return i!==r&&(i=s.getParent(i,function(i){return!!fi(i,n)||i.parentNode===r||!!p(i,n,t,!0)}),p(i,n,t))}var u;return i?r(i):(i=h.getNode(),r(i)?l:(u=h.getStart(),u!=i&&r(u)?l:y))}function ki(n,t){var i,r=[],u={};return i=h.getStart(),s.getParent(i,function(i){for(var f,e=0;e<n.length;e++)f=n[e],!u[f]&&p(i,f,t)&&(u[f]=!0,r.push(f))},s.getRoot()),r}function di(n){var i=w(n),e,u,r,t,f;if(i)for(e=h.getStart(),u=rt(e),t=i.length-1;t>=0;t--){if(f=i[t].selector,!f||i[t].defaultBlock)return l;for(r=u.length-1;r>=0;r--)if(s.is(u[r],f))return l}return y}function gi(n,t,i){var r;return nt||(nt={},r={},o.on("NodeChange",function(n){var t=rt(n.element),i={};t=u.grep(t,function(n){return 1==n.nodeType&&!n.getAttribute("data-mce-bogus")});c(nt,function(n,u){c(t,function(f){return p(f,u,{},n.similar)?(r[u]||(c(n,function(n){n(!0,{node:f,format:u,parents:t})}),r[u]=n),i[u]=n,!1):!fi(f,u)&&void 0})});c(r,function(u,f){i[f]||(delete r[f],c(u,function(i){i(!1,{node:n.element,format:f,parents:t})}))})})),c(n.split(","),function(n){nt[n]||(nt[n]=[],nt[n].similar=i);nt[n].push(t)}),this}function nr(n){return f.getCssText(o,n)}function gt(n,t){return b(n,t.inline)?l:b(n,t.block)?l:t.selector?1==n.nodeType&&s.is(n,t.selector):void 0}function b(n,t){return n=n||"",t=t||"",n=""+(n.nodeName||n),t=""+(t.nodeName||t),n.toLowerCase()==t.toLowerCase()}function ni(n,t){return ti(s.getStyle(n,t),t)}function ti(n,t){return"color"!=t&&"backgroundColor"!=t||(n=s.toHex(n)),"fontWeight"==t&&700==n&&(n="bold"),"fontFamily"==t&&(n=n.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+n}function d(n,t){return"string"!=typeof n?n=n(t):t&&(n=n.replace(/%(\w+)/g,function(n,i){return t[i]||n})),n}function ft(n){return n&&3===n.nodeType&&/^([\t \r\n]+|)$/.test(n.nodeValue)}function lt(n,t,i){var r=s.create(t,i);return n.parentNode.insertBefore(r,n),r.appendChild(n),r}function et(t,i,r){function w(n){function y(n){return"BR"==n.nodeName&&n.getAttribute("data-mce-bogus")&&!n.nextSibling}var r,t,e,o,l;if(r=t=n?f:u,o=n?"previousSibling":"nextSibling",l=s.getRoot(),3==r.nodeType&&!ft(r)&&(n?c>0:h<r.nodeValue.length))return r;for(;;){if(!i[0].block_expand&&a(t))return t;for(e=t[o];e;e=e[o])if(!v(e)&&!ft(e)&&!y(e))return t;if(t==l||t.parentNode==l){r=t;break}t=t.parentNode}return r}function d(n,t){for(t===ht&&(t=3===n.nodeType?n.length:n.childNodes.length);n&&n.hasChildNodes();)n=n.childNodes[t],n&&(t=3===n.nodeType?n.length:n.childNodes.length);return{node:n,offset:t}}function g(n){for(var t=n;t;){if(1===t.nodeType&&k(t))return"false"===k(t)?t:n;t=t.parentNode}return n}function nt(t,i,u){function c(n,t){var i,f,e=n.nodeValue;return"undefined"==typeof t&&(t=u?e.length:0),u?(i=e.lastIndexOf(" ",t),f=e.lastIndexOf(" ",t),i=i>f?i:f,i===-1||r||i++):(i=e.indexOf(" ",t),f=e.indexOf(" ",t),i=i!==-1&&(f===-1||i<f)?i:f),i}var l,f,e,h;if(3===t.nodeType){if(e=c(t,i),e!==-1)return{container:t,offset:e};h=t}for(l=new n(t,s.getParent(t,a)||o.getBody());f=l[u?"prev":"next"]();)if(3===f.nodeType){if(h=f,e=c(f),e!==-1)return{container:f,offset:e}}else if(a(f))break;if(h)return i=u?0:h.length,{container:h,offset:i}}function tt(n,r){var f,u,e,o;for(3==n.nodeType&&0===n.nodeValue.length&&n[r]&&(n=n[r]),f=rt(n),u=0;u<f.length;u++)for(e=0;e<i.length;e++)if(o=i[e],!("collapsed"in o&&o.collapsed!==t.collapsed)&&s.is(f[u],o.selector))return f[u];return n}function it(n,t){var r,u=s.getRoot();if(i[0].wrapper||(r=s.getParent(n,i[0].block,u)),r||(r=s.getParent(3==n.nodeType?n.parentNode:n,function(n){return n!=u&&pt(n)})),r&&i[0].wrapper&&(r=rt(r,"ul,ol").reverse()[0]||r),!r)for(r=n;r[t]&&!a(r[t])&&(r=r[t],!b(r,"br")););return r||n}var p,e,l,f=t.startContainer,c=t.startOffset,u=t.endContainer,h=t.endOffset;if(1==f.nodeType&&f.hasChildNodes()&&(p=f.childNodes.length-1,f=f.childNodes[c>p?p:c],3==f.nodeType&&(c=0)),1==u.nodeType&&u.hasChildNodes()&&(p=u.childNodes.length-1,u=u.childNodes[h>p?p:h-1],3==u.nodeType&&(h=u.nodeValue.length)),f=g(f),u=g(u),(v(f.parentNode)||v(f))&&(f=v(f)?f:f.parentNode,f=f.nextSibling||f,3==f.nodeType&&(c=0)),(v(u.parentNode)||v(u))&&(u=v(u)?u:u.parentNode,u=u.previousSibling||u,3==u.nodeType&&(h=u.length)),i[0].inline&&(t.collapsed&&(l=nt(f,c,!0),l&&(f=l.container,c=l.offset),l=nt(u,h),l&&(u=l.container,h=l.offset)),e=d(u,h),e.node)){for(;e.node&&0===e.offset&&e.node.previousSibling;)e=d(e.node.previousSibling);e.node&&e.offset>0&&3===e.node.nodeType&&" "===e.node.nodeValue.charAt(e.offset-1)&&e.offset>1&&(u=e.node,u.splitText(e.offset-1))}return(i[0].inline||i[0].block_expand)&&(i[0].inline&&3==f.nodeType&&0!==c||(f=w(!0)),i[0].inline&&3==u.nodeType&&h!==u.nodeValue.length||(u=w())),i[0].selector&&i[0].expand!==y&&!i[0].inline&&(f=tt(f,"previousSibling"),u=tt(u,"nextSibling")),(i[0].block||i[0].selector)&&(f=it(f,"previousSibling"),u=it(u,"nextSibling"),i[0].block&&(a(f)||(f=w(!0)),a(u)||(u=w()))),1==f.nodeType&&(c=st(f),f=f.parentNode),1==u.nodeType&&(h=st(u)+1,u=u.parentNode),{startContainer:f,startOffset:c,endContainer:u,endOffset:h}}function tr(n,t){return t.links&&"A"==n.tagName}function ot(n,t,i,r){var u,f,o,e;if(!gt(i,n)&&!tr(i,n))return y;if("all"!=n.remove)for(c(n.styles,function(u,f){u=ti(d(u,t),f);"number"==typeof f&&(f=u,r=0);(n.remove_similar||!r||b(ni(r,f),u))&&s.setStyle(i,f,"");o=1}),o&&""===s.getAttrib(i,"style")&&(i.removeAttribute("style"),i.removeAttribute("data-mce-style")),c(n.attributes,function(n,u){var f;if(n=d(n,t),"number"==typeof u&&(u=n,r=0),!r||b(s.getAttrib(r,u),n)){if("class"==u&&(n=s.getAttrib(i,u),n&&(f="",c(n.split(/\s+/),function(n){/mce\-\w+/.test(n)&&(f+=(f?" ":"")+n)}),f)))return void s.setAttrib(i,u,f);"class"==u&&i.removeAttribute("className");rr.test(u)&&i.removeAttribute("data-mce-"+u);i.removeAttribute(u)}}),c(n.classes,function(n){n=d(n,t);r&&!s.hasClass(r,n)||s.removeClass(i,n)}),f=s.getAttribs(i),u=0;u<f.length;u++)if(e=f[u].nodeName,0!==e.indexOf("_")&&0!==e.indexOf("data-"))return y;if("none"!=n.remove)return(ir(i,n),l)}function ir(n,t){function r(n,t,i){return n=ii(n,t,i),!n||"BR"==n.nodeName||a(n)}var u=n.parentNode,i;t.block&&(yt?u==s.getRoot()&&(t.list_block&&b(n,t.list_block)||c(ct(n.childNodes),function(n){vt(yt,n.nodeName.toLowerCase())?i?i.appendChild(n):(i=lt(n,yt),s.setAttribs(i,o.settings.forced_root_block_attrs)):i=0})):a(n)&&!a(u)&&(r(n,y)||r(n.firstChild,l,1)||n.insertBefore(s.create("br"),n.firstChild),r(n,l)||r(n.lastChild,y,1)||n.appendChild(s.create("br"))));t.selector&&t.inline&&!b(t.inline,n)||s.remove(n,1)}function ii(n,t,i){if(n)for(t=t?"nextSibling":"previousSibling",n=i?n:n[t];n;n=n[t])if(1==n.nodeType||!ft(n))return n}function si(n,t){function u(n,t){for(i=n;i;i=i[t]){if(3==i.nodeType&&0!==i.nodeValue.length)return n;if(1==i.nodeType&&!v(i))return i}return n}var i,f,e=new r(s);if(n&&t&&(n=u(n,"previousSibling"),t=u(t,"nextSibling"),e.compare(n,t))){for(i=n.nextSibling;i&&i!=t;)f=i,i=i.nextSibling,n.appendChild(f);return s.remove(t),c(ct(t.childNodes),function(t){n.appendChild(t)}),n}return t}function hi(t,i){var r,u,f;return r=t[i?"startContainer":"endContainer"],u=t[i?"startOffset":"endOffset"],1==r.nodeType&&(f=r.childNodes.length-1,!i&&u&&u--,r=r.childNodes[u>f?f:u]),3===r.nodeType&&i&&u>=r.nodeValue.length&&(r=new n(r,o.getBody()).next()||r),3!==r.nodeType||i||0!==u||(r=new n(r,o.getBody()).prev()||r),r}function ci(t,i,r,u){function l(n){var t=s.create("span",{id:c,"data-mce-bogus":!0,style:d?"color:red":""});return n&&t.appendChild(o.getDoc().createTextNode(g)),t}function a(n,t){for(;n;){if(3===n.nodeType&&n.nodeValue!==g||n.childNodes.length>1)return!1;t&&1===n.nodeType&&t.push(n);n=n.firstChild}return!0}function f(n){for(;n;){if(n.id===c)return n;n=n.parentNode}}function v(t){var i;if(t)for(i=new n(t,t),t=i.current();t;t=i.next())if(3===t.nodeType)return t}function e(n,t){var r,i;if(n)i=h.getRng(!0),a(n)?(t!==!1&&(i.setStartBefore(n),i.setEndBefore(n)),s.remove(n)):(r=v(n),r.nodeValue.charAt(0)===g&&(r.deleteData(0,1),i.startContainer==r&&i.startOffset>0&&i.setStart(r,i.startOffset-1),i.endContainer==r&&i.endOffset>0&&i.setEnd(r,i.endOffset-1)),s.remove(n,1)),h.setRng(i);else if(n=f(h.getStart()),!n)for(;n=s.get(c);)e(n,!1)}function b(){var n,t,o,u,s,c,e;n=h.getRng(!0);u=n.startOffset;c=n.startContainer;e=c.nodeValue;t=f(h.getStart());t&&(o=v(t));e&&u>0&&u<e.length&&/\w/.test(e.charAt(u))&&/\w/.test(e.charAt(u-1))?(s=h.getBookmark(),n.collapse(!0),n=et(n,w(i)),n=at.split(n),tt(i,r,n),h.moveToBookmark(s)):(t&&o.nodeValue===g?tt(i,r,t):(t=l(!0),o=t.firstChild,n.insertNode(t),u=1,tt(i,r,t)),h.setCursorLocation(o,u))}function k(){var t=h.getRng(!0),e,b,k,a,n,f,v=[],o,c,y;for(e=t.startContainer,b=t.startOffset,n=e,3==e.nodeType&&(b!=e.nodeValue.length&&(a=!0),n=n.parentNode);n;){if(p(n,i,r,u)){f=n;break}n.nextSibling&&(a=!0);v.push(n);n=n.parentNode}if(f)if(a)k=h.getBookmark(),t.collapse(!0),t=et(t,w(i),!0),t=at.split(t),kt(i,r,t),h.moveToBookmark(k);else{for(c=l(),n=c,o=v.length-1;o>=0;o--)n.appendChild(s.clone(v[o],!1)),n=n.firstChild;n.appendChild(s.doc.createTextNode(g));n=n.firstChild;y=s.getParent(f,pt);y&&s.isEmpty(y)?f.parentNode.replaceChild(c,f):s.insertAfter(c,f);h.setCursorLocation(n,1);s.isEmpty(f)&&s.remove(f)}}function y(){var n;n=f(h.getStart());n&&!s.isEmpty(n)&&ai(n,function(n){1!=n.nodeType||n.id===c||s.isEmpty(n)||s.setAttrib(n,"data-mce-bogus",null)},"childNodes")}var c="_mce_caret",d=o.settings.caret_debug;o._hasCaretEvents||(ui=function(){var n=[],t;if(a(f(h.getStart()),n))for(t=n.length;t--;)s.setAttrib(n[t],"data-mce-bogus","1")},ri=function(n){var t=n.keyCode;e();8==t&&h.isCollapsed()&&h.getStart().innerHTML==g&&e(f(h.getStart()));37!=t&&39!=t||e(f(h.getStart()));y()},o.on("SetContent",function(n){n.selection&&y()}),o._hasCaretEvents=!0);"apply"==t?b():k()}function li(t){var i=t.startContainer,u=t.startOffset,c,f,r,e,o;if((t.startContainer!=t.endContainer||!vi(t.startContainer.childNodes[t.startOffset]))&&(3==i.nodeType&&u>=i.nodeValue.length&&(u=st(i),i=i.parentNode,c=!0),1==i.nodeType))for(e=i.childNodes,i=e[Math.min(u,e.length-1)],f=new n(i,s.getParent(i,s.isBlock)),(u>e.length-1||c)&&f.next(),r=f.current();r;r=f.next())if(3==r.nodeType&&!ft(r))return o=s.create("a",{"data-mce-bogus":"all"},g),r.parentNode.insertBefore(o,r),t.setStart(r,0),h.setRng(t),void s.remove(o)}var it={},s=o.dom,h=o.selection,at=new t(s),vt=o.schema.isValidChild,a=s.isBlock,yt=o.settings.forced_root_block,st=s.nodeIndex,g="﻿",rr=/^(src|href|style)$/,y=!1,l=!0,nt,ht,k=s.getContentEditable,ri,ui,v=i.isBookmarkNode,c=u.each,ct=u.grep,ai=u.walk,ur=u.extend;ur(this,{get:w,register:ut,unregister:wi,apply:tt,remove:kt,toggle:bi,match:dt,matchAll:ki,matchNode:p,canApply:di,formatChanged:gi,getCssText:nr});yi();pi();o.on("BeforeGetContent",function(n){ui&&"raw"!=n.format&&ui()});o.on("mouseup keydown",function(n){ri&&ri(n)})}});i(rf,[],function(){var n=0,t=1,i=2,r=function(r,u){var s=r.length+u.length+2,e=new Array(s),f=new Array(s),l=function(n,t,i){return{start:n,end:t,diag:i}},o=function(f,e,s,h,c){var l=a(f,e,s,h),v,y,p;if(null===l||l.start===e&&l.diag===e-h||l.end===f&&l.diag===f-s)for(v=f,y=s;v<e||y<h;)v<e&&y<h&&r[v]===u[y]?(c.push([n,r[v]]),++v,++y):e-f>h-s?(c.push([i,r[v]]),++v):(c.push([t,u[y]]),++y);else{for(o(f,l.start,s,l.start-l.diag,c),p=l.start;p<l.end;++p)c.push([n,r[p]]);o(l.end,e,l.end-l.diag,h,c)}},h=function(n,t,i,f){for(var e=n;e-t<f&&e<i&&r[e]===u[e-t];)++e;return l(n,e,t)},a=function(n,t,i,o){var w=t-n,b=o-i,l,c,s,v,y;if(0===w||0===b)return null;var a=w-b,k=b+w,p=(k%2==0?k:k+1)/2;for(e[1+p]=n,f[1+p]=t+1,l=0;l<=p;++l){for(c=-l;c<=l;c+=2){for(s=c+p,e[s]=c===-l||c!=l&&e[s-1]<e[s+1]?e[s+1]:e[s-1]+1,v=e[s],y=v-n+i-c;v<t&&y<o&&r[v]===u[y];)e[s]=++v,++y;if(a%2!=0&&a-l<=c&&c<=a+l&&f[s-a]<=e[s])return h(f[s-a],c+n-i,t,o)}for(c=a-l;c<=a+l;c+=2){for(s=c+p-a,f[s]=c===a-l||c!=a+l&&f[s+1]<=f[s-1]?f[s+1]-1:f[s-1],v=f[s]-1,y=v-n+i-c;v>=n&&y>=i&&r[v]===u[y];)f[s]=v--,y--;if(a%2==0&&-l<=c&&c<=l&&f[s]<=e[s+a])return h(f[s],c+n-i,t,o)}}},c=[];return o(0,r.length,0,u.length,c),c};return{KEEP:n,DELETE:i,INSERT:t,diff:r}});i(uf,[e,b,rf],function(n,t,i){var r=function(n){return 1===n.nodeType?n.outerHTML:3===n.nodeType?t.encodeRaw(n.data,!1):8===n.nodeType?"<!--"+n.data+"-->":""},u=function(n){var t,r,i;for(i=document.createElement("div"),t=document.createDocumentFragment(),n&&(i.innerHTML=n);r=i.firstChild;)t.appendChild(r);return t},f=function(n,t,i){var f=u(t),r;n.hasChildNodes()&&i<n.childNodes.length?(r=n.childNodes[i],r.parentNode.insertBefore(f,r)):n.appendChild(f)},e=function(n,t){if(n.hasChildNodes()&&t<n.childNodes.length){var i=n.childNodes[t];i.parentNode.removeChild(i)}},o=function(t,r){var u=0;n.each(t,function(n){n[0]===i.KEEP?u++:n[0]===i.INSERT?(f(r,n[1],u),u++):n[0]===i.DELETE&&e(r,u)})},s=function(t){return n.map(t.childNodes,r)},h=function(t,u){var f=n.map(u.childNodes,r);return o(i.diff(f,t),u),u};return{read:s,write:h}});i(ff,[e,uf],function(n,t){var f=function(n){return n.indexOf("<\/iframe>")!==-1},i=function(n){return{type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}},r=function(n){return{type:"complete",fragments:null,content:n,bookmark:null,beforeBookmark:null}},e=function(u){var e,o;return e=t.read(u.getBody()),o=n.map(e,function(n){return u.serializer.trimContent(n)}).join(""),f(o)?i(e):r(o)},o=function(n,i,r){"fragmented"===i.type?t.write(i.fragments,n.getBody()):n.setContent(i.content,{format:"raw"});n.selection.moveToBookmark(r?i.beforeBookmark:i.bookmark)},u=function(n){return"fragmented"===n.type?n.fragments.join(""):n.content},s=function(n,t){return u(n)===u(t)};return{createFragmentedLevel:i,createCompleteLevel:r,createFromEditor:e,applyToEditor:o,isEq:s}});i(ir,[d,r,ff,u],function(n,t,i,r){return function(n){function s(t){n.setDirty(t)}function o(n){f.typing=!1;f.add({},n)}function l(){f.typing&&(f.typing=!1,f.add())}var f=this,e=0,u=[],a,c,h=0;return n.on("init",function(){f.add()}),n.on("BeforeExecCommand",function(n){var t=n.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(l(),f.beforeChange())}),n.on("ExecCommand",function(n){var t=n.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&o(n)}),n.on("ObjectResizeStart Cut",function(){f.beforeChange()}),n.on("SaveContent ObjectResized blur",o),n.on("DragEnd",o),n.on("KeyUp",function(t){var e=t.keyCode;t.isDefaultPrevented()||((e>=33&&e<=36||e>=37&&e<=40||45===e||t.ctrlKey)&&(o(),n.nodeChanged()),(46===e||8===e||r.mac&&(91===e||93===e))&&n.nodeChanged(),c&&f.typing&&(n.isDirty()||(s(u[0]&&!i.isEq(i.createFromEditor(n),u[0])),n.isDirty()&&n.fire("change",{level:u[0],lastLevel:null})),n.fire("TypingUndo"),c=!1,n.nodeChanged()))}),n.on("KeyDown",function(n){var t=n.keyCode,i;if(!n.isDefaultPrevented()){if(t>=33&&t<=36||t>=37&&t<=40||45===t)return void(f.typing&&o(n));i=n.ctrlKey&&!n.altKey||n.metaKey;(t<16||t>20)&&224!==t&&91!==t&&!f.typing&&!i&&(f.beforeChange(),f.typing=!0,f.add({},n),c=!0)}}),n.on("MouseDown",function(n){f.typing&&o(n)}),n.addShortcut("meta+z","","Undo"),n.addShortcut("meta+y,meta+shift+z","","Redo"),n.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||n.nodeChanged()}),f={data:u,typing:!1,beforeChange:function(){h||(a=n.selection.getBookmark(2,!0))},add:function(r,f){var o,v=n.settings,c,y,l;if((y=i.createFromEditor(n),r=r||{},r=t.extend(r,y),h||n.removed)||(c=u[e],n.fire("BeforeAddUndo",{level:r,lastLevel:c,originalEvent:f}).isDefaultPrevented())||c&&i.isEq(c,r))return null;if(u[e]&&(u[e].beforeBookmark=a),v.custom_undo_redo_levels&&u.length>v.custom_undo_redo_levels){for(o=0;o<u.length-1;o++)u[o]=u[o+1];u.length--;e=u.length}return r.bookmark=n.selection.getBookmark(2,!0),e<u.length-1&&(u.length=e+1),u.push(r),e=u.length-1,l={level:r,lastLevel:c,originalEvent:f},n.fire("AddUndo",l),e>0&&(s(!0),n.fire("change",l)),r},undo:function(){var t;return f.typing&&(f.add(),f.typing=!1),e>0&&(t=u[--e],i.applyToEditor(n,t,!0),s(!0),n.fire("undo",{level:t})),t},redo:function(){var t;return e<u.length-1&&(t=u[++e],i.applyToEditor(n,t,!1),s(!0),n.fire("redo",{level:t})),t},clear:function(){u=[];e=0;f.typing=!1;f.data=u;n.fire("ClearUndos")},hasUndo:function(){return e>0||f.typing&&u[0]&&!i.isEq(i.createFromEditor(n),u[0])},hasRedo:function(){return e<u.length-1&&!f.typing},transact:function(n){l();f.beforeChange();try{h++;n()}finally{h--}return f.add()},extra:function(t,r){var o,s;f.transact(t)&&(s=u[e].bookmark,o=u[e-1],i.applyToEditor(n,o,!0),f.transact(r)&&(u[e-1].beforeBookmark=s))}}}});i(ef,[p,v,w,u],function(n,t,i,r){var u=r.ie&&r.ie<11;return function(f){function a(a){function at(n){return n&&e.isBlock(n)&&!/^(TD|TH|CAPTION|FORM)$/.test(n.nodeName)&&!/^(fixed|absolute)/i.test(n.style.position)&&"true"!==e.getContentEditable(n)}function wt(n){return n&&/^(TD|TH|CAPTION)$/.test(n.nodeName)}function vt(n){var t;e.isBlock(n)&&(t=s.getRng(),n.appendChild(e.create("span",null," ")),s.select(n),n.lastChild.outerHTML="",s.setRng(t))}function bt(n){var t=n,i=[],r;if(t){for(;t=t.firstChild;){if(e.isBlock(t))return;1!=t.nodeType||l[t.nodeName.toLowerCase()]||i.push(t)}for(r=i.length;r--;)t=i[r],!t.hasChildNodes()||t.firstChild==t.lastChild&&""===t.firstChild.nodeValue?e.remove(t):"A"==t.nodeName&&" "===(t.innerText||t.textContent)&&e.remove(t)}}function et(t){function l(n){for(;n;){if(1==n.nodeType||3==n.nodeType&&n.data&&/[\r\n\s]/.test(n.data))return n;n=n.nextSibling}}var f,u,i,o=t,h,c;if(t){if((r.ie&&r.ie<9&&y&&y.firstChild&&y.firstChild==y.lastChild&&"BR"==y.firstChild.tagName&&e.remove(y.firstChild),/^(LI|DT|DD)$/.test(t.nodeName))&&(c=l(t.firstChild),c&&/^(UL|OL|DL)$/.test(c.nodeName)&&t.insertBefore(e.doc.createTextNode(" "),t.firstChild)),i=e.createRng(),r.ie||t.normalize(),t.hasChildNodes()){for(f=new n(t,t);u=f.current();){if(3==u.nodeType){i.setStart(u,0);i.setEnd(u,0);break}if(v[u.nodeName.toLowerCase()]){i.setStartBefore(u);i.setEndBefore(u);break}o=u;u=f.next()}u||(i.setStart(o,0),i.setEnd(o,0))}else"BR"==t.nodeName?t.nextSibling&&e.isBlock(t.nextSibling)?((!lt||lt<9)&&(h=e.create("br"),t.parentNode.insertBefore(h,t)),i.setStartBefore(t),i.setEndBefore(t)):(i.setStartAfter(t),i.setEndAfter(t)):(i.setStart(t,0),i.setEnd(t,0));s.setRng(i);e.remove(h);s.scrollIntoView(t)}}function ct(n){var t=o.forced_root_block;t&&t.toLowerCase()===n.tagName.toLowerCase()&&e.setAttribs(n,o.forced_root_block_attrs)}function kt(n){n.innerHTML=u?"":'<br data-mce-bogus="1">'}function ot(n){var i=w,t,r,f,s=c.getTextInlineElements();if(n||"TABLE"==rt?(t=e.create(n||k),ct(t)):t=y.cloneNode(!1),f=t,o.keep_styles!==!1)do if(s[i.nodeName]){if("_mce_caret"==i.id)continue;r=i.cloneNode(!1);e.setAttrib(r,"id","");t.hasChildNodes()?(r.appendChild(t.firstChild),t.appendChild(r)):(f=r,t.appendChild(r))}while((i=i.parentNode)&&i!=ut);return u||(f.innerHTML='<br data-mce-bogus="1">'),t}function yt(t){var i,r,u;if(3==w.nodeType&&(t?g>0:g<w.nodeValue.length))return!1;if(w.parentNode==y&&ft&&!t||t&&1==w.nodeType&&w==y.firstChild)return!0;if("TABLE"===w.nodeName||w.previousSibling&&"TABLE"==w.previousSibling.nodeName)return ft&&!t||!ft&&t;for(i=new n(w,y),3==w.nodeType&&(t&&0===g?i.prev():t||g!=w.nodeValue.length||i.next());r=i.current();){if(1===r.nodeType){if(!r.getAttribute("data-mce-bogus")&&(u=r.nodeName.toLowerCase(),l[u]&&"br"!==u))return!1}else if(3===r.nodeType&&!/^[ \t\r\n]*$/.test(r.nodeValue))return!1;t?i.prev():i.next()}return!0}function dt(n,t){var u,r,o,i,h,l,s=k||"P";if(r=e.getParent(n,e.isBlock),!r||!at(r)){if(r=r||ut,l=r==f.getBody()||wt(r)?r.nodeName.toLowerCase():r.parentNode.nodeName.toLowerCase(),!r.hasChildNodes())return u=e.create(s),ct(u),r.appendChild(u),d.setStart(u,0),d.setEnd(u,0),u;for(i=n;i.parentNode!=r;)i=i.parentNode;for(;i&&!e.isBlock(i);)o=i,i=i.previousSibling;if(o&&c.isValidChild(l,s.toLowerCase())){for(u=e.create(s),ct(u),o.parentNode.insertBefore(u,o),i=o;i&&!e.isBlock(i);)h=i.nextSibling,u.appendChild(i),i=h;d.setStart(n,t);d.setEnd(n,t)}}return n}function gt(){function n(n){for(var t=b[n?"firstChild":"lastChild"];t&&1!=t.nodeType;)t=t[n?"nextSibling":"previousSibling"];return t===y}function t(){var n=b.parentNode;return/^(LI|DT|DD)$/.test(n.nodeName)?n:b}if(b!=f.getBody()){var i=b.parentNode.nodeName;/^(OL|UL|LI)$/.test(i)&&(k="LI");p=k?ot(k):e.create("BR");n(!0)&&n()?"LI"==i?e.insertAfter(p,t()):e.replace(p,b):n(!0)?"LI"==i?(e.insertAfter(p,t()),p.appendChild(e.doc.createTextNode(" ")),p.appendChild(b)):b.parentNode.insertBefore(p,b):n()?(e.insertAfter(p,t()),vt(p)):(b=t(),it=d.cloneRange(),it.setStartAfter(y),it.setEndAfter(b),nt=it.extractContents(),"LI"==k&&"LI"==nt.firstChild.nodeName?(p=nt.firstChild,e.insertAfter(nt,b)):(e.insertAfter(nt,b),e.insertAfter(p,b)));e.remove(y);et(p);h.add()}}function st(){f.execCommand("InsertLineBreak",!1,a)}function ni(n){do 3===n.nodeType&&(n.nodeValue=n.nodeValue.replace(/^[\r\n]+/,"")),n=n.firstChild;while(n)}function ti(n){for(var i=e.getRoot(),r,t=n;t!==i&&"false"!==e.getContentEditable(t);)"true"===e.getContentEditable(t)&&(r=t),t=t.parentNode;return t!==i?r:i}function ii(n){var t;u||(n.normalize(),t=n.lastChild,t&&!/^(left|right)$/gi.test(e.getStyle(t,"float",!0))||e.add(n,"br"))}function pt(){p=/^(H[1-6]|PRE|FIGURE)$/.test(rt)&&"HGROUP"!=ht?ot(k):ot();o.end_container_on_empty_block&&at(b)&&e.isEmpty(y)?p=e.split(b,y):e.insertAfter(p,y);et(p)}var d,it,ut,w,g,y,lt,tt,p,nt,b,rt,ht,k,ft;if(d=s.getRng(!0),!a.isDefaultPrevented()){if(!d.collapsed)return void f.execCommand("Delete");if(new t(e).normalize(d),w=d.startContainer,g=d.startOffset,k=(o.force_p_newlines?"p":"")||o.forced_root_block,k=k?k.toUpperCase():"",lt=e.doc.documentMode,tt=a.shiftKey,1==w.nodeType&&w.hasChildNodes()&&(ft=g>w.childNodes.length-1,w=w.childNodes[Math.min(g,w.childNodes.length-1)]||w,g=ft&&3==w.nodeType?w.nodeValue.length:0),ut=ti(w)){if(h.beforeChange(),!e.isBlock(ut)&&ut!=e.getRoot())return void(k&&!tt||st());if((k&&!tt||!k&&tt)&&(w=dt(w,g)),y=e.getParent(w,e.isBlock),b=y?e.getParent(y.parentNode,e.isBlock):null,rt=y?y.nodeName.toUpperCase():"",ht=b?b.nodeName.toUpperCase():"","LI"!=ht||a.ctrlKey||(y=b,rt=ht),f.undoManager.typing&&(f.undoManager.typing=!1,f.undoManager.add()),/^(LI|DT|DD)$/.test(rt)){if(!k&&tt)return void st();if(e.isEmpty(y))return void gt()}if("PRE"==rt&&o.br_in_pre!==!1){if(!tt)return void st()}else if(!k&&!tt&&"LI"!=rt||k&&tt)return void st();k&&y===f.getBody()||(k=k||"P",i.isCaretContainerBlock(y)?p=i.showCaretContainerBlock(y):yt()?pt():yt(!0)?(p=y.parentNode.insertBefore(ot(),y),vt(p),et(y)):(it=d.cloneRange(),it.setEndAfter(y),nt=it.extractContents(),ni(nt),p=nt.firstChild,e.insertAfter(nt,y),bt(p),ii(y),e.isEmpty(y)&&kt(y),p.normalize(),e.isEmpty(p)?(e.remove(p),pt()):et(p)),e.setAttrib(p,"id",""),f.fire("NewBlock",{newBlock:p}),h.typing=!1,h.add())}}}var e=f.dom,s=f.selection,o=f.settings,h=f.undoManager,c=f.schema,l=c.getNonEmptyElements(),v=c.getMoveCaretBeforeOnEnterElements();f.on("keydown",function(n){13==n.keyCode&&a(n)!==!1&&n.preventDefault()})}});i(of,[],function(){return function(n){function e(){var e=t.getStart(),h=n.getBody(),o,w,c,b,l,a,v,k=-16777215,d,p,s,g,y;if(y=i.forced_root_block,e&&1===e.nodeType&&y){for(;e&&e!=h;){if(f[e.nodeName])return;e=e.parentNode}if(o=t.getRng(),o.setStart){w=o.startContainer;c=o.startOffset;b=o.endContainer;l=o.endOffset;try{p=n.getDoc().activeElement===h}catch(nt){}}else o.item&&(e=o.item(0),o=n.getDoc().body.createTextRange(),o.moveToElementText(e)),p=o.parentElement().ownerDocument===n.getDoc(),s=o.duplicate(),s.collapse(!0),c=s.move("character",k)*-1,s.collapsed||(s=o.duplicate(),s.collapse(!1),l=s.move("character",k)*-1-c);for(e=h.firstChild,g=h.nodeName.toLowerCase();e;)if((3===e.nodeType||1==e.nodeType&&!f[e.nodeName])&&u.isValidChild(g,y.toLowerCase())){if(3===e.nodeType&&0===e.nodeValue.length){v=e;e=e.nextSibling;r.remove(v);continue}a||(a=r.create(y,n.settings.forced_root_block_attrs),e.parentNode.insertBefore(a,e),d=!0);v=e;e=e.nextSibling;a.appendChild(v)}else a=null,e=e.nextSibling;if(d&&p){if(o.setStart)o.setStart(w,c),o.setEnd(b,l),t.setRng(o);else try{o=n.getDoc().body.createTextRange();o.moveToElementText(h);o.collapse(!0);o.moveStart("character",c);l>0&&o.moveEnd("character",l);o.select()}catch(nt){}n.nodeChanged()}}}var i=n.settings,r=n.dom,t=n.selection,u=n.schema,f=u.getBlockElements();i.forced_root_block&&n.on("NodeChange",e)}});i(bt,[l,p,s,y,w,st],function(n,t,i,r,u,f){function y(n){return n>0}function p(n){return n<0}function l(n,t){for(var i;i=n(t);)if(!v(i))return i;return null}function nt(n,i,r,u,f){var o=new t(n,u);if(p(i)){if((e(n)||v(n))&&(n=l(o.prev,!0),r(n)))return n;for(;n=l(o.prev,f);)if(r(n))return n}if(y(i)){if((e(n)||v(n))&&(n=l(o.next,!0),r(n)))return n;for(;n=l(o.next,f);)if(r(n))return n}return null}function a(n,t){for(n=n.parentNode;n&&n!=t;n=n.parentNode)if(et(n))return n;return t}function s(n,t){for(;n&&n!=t;){if(ot(n))return n;n=n.parentNode}return null}function tt(n,t,i){return s(n.container(),i)==s(t.container(),i)}function it(n,t,i){return a(n.container(),i)==a(t.container(),i)}function rt(n,t){var i,r;return t?(i=t.container(),r=t.offset(),g(i)?i.childNodes[r+n]:null):null}function w(n,t){var i=t.ownerDocument.createRange();return n?(i.setStartBefore(t),i.setEndBefore(t)):(i.setStartAfter(t),i.setEndAfter(t)),i}function ut(n,t,i){return s(t,n)==s(i,n)}function b(n,t,i){for(var r,u=n?"previousSibling":"nextSibling";i&&i!=t;){if(r=i[u],d(r)&&(r=r[u]),e(r)){if(ut(t,r,i))return r;break}if(st(r))break;i=i.parentNode}return null}function ft(n,t,r){var f,s,l,y,a=o(b,!0,t),v=o(b,!1,t);if(s=r.startContainer,l=r.startOffset,u.isCaretContainerBlock(s)){if(g(s)||(s=s.parentNode),y=s.getAttribute("data-mce-caret"),"before"==y&&(f=s.nextSibling,e(f)))return h(f);if("after"==y&&(f=s.previousSibling,e(f)))return c(f)}if(!r.collapsed)return r;if(i.isText(s)){if(d(s)){if(1===n){if(f=v(s))return h(f);if(f=a(s))return c(f)}if(n===-1){if(f=a(s))return c(f);if(f=v(s))return h(f)}return r}if(u.endsWithCaretContainer(s)&&l>=s.data.length-1)return 1===n&&(f=v(s))?h(f):r;if(u.startsWithCaretContainer(s)&&l<=1)return n===-1&&(f=a(s))?c(f):r;if(l===s.data.length)return f=v(s),f?h(f):r;if(0===l)return f=a(s),f?c(f):r}return r}function k(n,t){return e(rt(n,t))}var et=i.isContentEditableTrue,e=i.isContentEditableFalse,ot=i.matchStyleValues("display","block table table-cell table-caption"),d=u.isCaretContainer,v=u.isCaretContainerBlock,o=n.curry,g=i.isElement,st=f.isCaretCandidate,h=o(w,!0),c=o(w,!1);return{isForwards:y,isBackwards:p,findNode:nt,getEditingHost:a,getParentBlock:s,isInSameBlock:tt,isInSameEditingHost:it,isBeforeContentEditableFalse:o(k,0),isAfterContentEditableFalse:o(k,-1),normalizeRange:ft}});i(ht,[s,st,y,bt,e,l],function(n,t,i,r,u,f){function p(n,t){for(var i=[];n&&n!=t;)i.push(n),n=n.parentNode;return i}function a(n,t){return n.hasChildNodes()&&t<n.childNodes.length?n.childNodes[t]:null}function v(n,t){if(o(n)){if(c(t.previousSibling)&&!e(t.previousSibling))return i.before(t);if(e(t))return i(t,0)}if(s(n)){if(c(t.nextSibling)&&!e(t.nextSibling))return i.after(t);if(e(t))return i(t,t.data.length)}return s(n)?d(t)?i.before(t):i.after(t):i.before(t)}function w(t,u){var f;return!!n.isBr(t)&&(f=h(1,i.after(t),u),!!f&&!r.isInSameBlock(i.before(t),i.before(f),u))}function h(n,t,d){var nt,tt,rt,g,it,ft,ut;if(!k(d)||!t)return null;if(ut=t,nt=ut.container(),tt=ut.offset(),e(nt)){if(s(n)&&tt>0)return i(nt,--tt);if(o(n)&&tt<nt.length)return i(nt,++tt);rt=nt}else{if(s(n)&&tt>0&&(g=a(nt,tt-1),c(g)))return!y(g)&&(it=r.findNode(g,n,l,g))?e(it)?i(it,it.data.length):i.after(it):e(g)?i(g,g.data.length):i.before(g);if(o(n)&&tt<nt.childNodes.length&&(g=a(nt,tt),c(g)))return w(g,d)?h(n,i.after(g),d):!y(g)&&(it=r.findNode(g,n,l,g))?e(it)?i(it,0):i.before(it):e(g)?i(g,0):i.after(g);rt=ut.getNode()}return(o(n)&&ut.isAtEnd()||s(n)&&ut.isAtStart())&&(rt=r.findNode(rt,n,f.constant(!0),d,!0),l(rt))?v(n,rt):(g=r.findNode(rt,n,l,d),ft=u.last(u.filter(p(nt,d),b)),!ft||g&&ft.contains(g)?g?v(n,g):null:ut=o(n)?i.after(ft):i.before(ft))}var b=n.isContentEditableFalse,e=n.isText,k=n.isElement,d=n.isBr,o=r.isForwards,s=r.isBackwards,c=t.isCaretCandidate,y=t.isAtomic,l=t.isEditableCaretCandidate;return function(n){return{next:function(t){return h(1,t,n)},prev:function(t){return h(-1,t,n)}}}});i(sf,[r,ht,y],function(n,t,i){var o=function(n){var t=n.firstChild,i=n.lastChild;return t&&"meta"===t.name&&(t=t.next),i&&"mce_marker"===i.attr("id")&&(i=i.prev),!(!t||t!==i)&&("ul"===t.name||"ol"===t.name)},s=function(n){var t=n.firstChild,i=n.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),i&&"mce_marker"===i.id&&i.parentNode.removeChild(i),n},h=function(n,t,i){var r=t.serialize(i),u=n.createFragment(r);return s(u)},u=function(t){return n.grep(t.childNodes,function(n){return"LI"===n.nodeName})},c=function(n){return!n.firstChild},f=function(n){return n.length>0&&c(n[n.length-1])?n.slice(0,-1):n},r=function(n,t){var i=n.getParent(t,n.isBlock);return i&&"LI"===i.nodeName?i:null},l=function(n,t){return!!r(n,t)},a=function(n,t){var i=t.cloneRange(),r=t.cloneRange();return i.setStartBefore(n),r.setEndAfter(n),[i.cloneContents(),r.cloneContents()]},v=function(n,r){var f=i.before(n),e=new t(r),u=e.next(f);return u?u.toRange():null},e=function(n,r){var f=i.after(n),e=new t(r),u=e.prev(f);return u?u.toRange():null},y=function(t,i,r,u){var o=a(t,u),f=t.parentNode;return f.insertBefore(o[0],t),n.each(i,function(n){f.insertBefore(n,t)}),f.insertBefore(o[1],t),f.removeChild(t),e(i[i.length-1],r)},p=function(t,i,r){var u=t.parentNode;return n.each(i,function(n){u.insertBefore(n,t)}),v(t,r)},w=function(n,t,i,r){return r.insertAfter(t.reverse(),n),e(t[0],i)},b=function(n,e,o,s){var k=h(e,n,s),c=r(e,o.startContainer),l=f(u(k.firstChild)),v=1,a=e.getRoot(),b=function(n){var u=i.fromRangeStart(o),f=new t(e.getRoot()),s=n===v?f.prev(u):f.next(u);return!s||r(e,s.getNode())!==c};return b(v)?p(c,l,a):b(2)?w(c,l,a,e):y(c,l,a,o)};return{isListFragment:o,insertAtCaret:b,isParentBlockLi:l,trimListItems:f,listItems:u}});i(hf,[u,r,pt,ht,y,nr,s,sf],function(n,t,i,r,u,f,e,o){var s=e.matchNodeNames("td th"),h=function(e,h,c){function ot(n){function u(n){return t[n]&&3==t[n].nodeType}var i,t,r;return i=p.getRng(!0),t=i.startContainer,r=i.startOffset,3==t.nodeType&&(r>0?n=n.replace(/^&nbsp;/," "):u("previousSibling")||(n=n.replace(/^ /,"&nbsp;")),r<t.length?n=n.replace(/&nbsp;(<br>|)$/," "):u("nextSibling")||(n=n.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),n}function st(){var i,n,t;i=p.getRng(!0);n=i.startContainer;t=i.startOffset;3==n.nodeType&&i.collapsed&&(" "===n.data[t]?(n.deleteData(t,1),/[\u00a0| ]$/.test(h)||(h+=" ")):" "===n.data[t-1]&&(n.deleteData(t-1,1),/[\u00a0| ]$/.test(h)||(h=" "+h)))}function ht(){if(ft){var n=e.getBody(),i=new f(a);t.each(a.select("*[data-mce-fragment]"),function(t){for(var r=t.parentNode;r&&r!=n;r=r.parentNode)pt[t.nodeName.toLowerCase()]&&i.compare(r,t)&&a.remove(t,!0)})}}function ct(n){for(var t=n;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}function lt(n){t.each(n.getElementsByTagName("*"),function(n){n.removeAttribute("data-mce-fragment")})}function at(n){return!!n.getAttribute("data-mce-fragment")}function vt(n){return n&&!e.schema.getShortEndedElements()[n.nodeName]}function yt(t){function h(n){for(var t=e.getBody();n&&n!==t;n=n.parentNode)if("false"===e.dom.getContentEditable(n))return n;return null}function c(n){var t=u.fromRangeStart(n),i=new r(e.getBody());if(t=i.next(t))return t.toRange()}var f,i,o;if(t){if(p.scrollIntoView(t),f=h(t))return a.remove(t),void p.select(f);v=a.createRng();l=t.previousSibling;l&&3==l.nodeType?(v.setStart(l,l.nodeValue.length),n.ie||(w=t.nextSibling,w&&3==w.nodeType&&(l.appendData(w.data),w.parentNode.removeChild(w)))):(v.setStartBefore(t),v.setEndBefore(t));i=a.getParent(t,a.isBlock);a.remove(t);i&&a.isEmpty(i)&&(e.$(i).empty(),v.setStart(i,0),v.setEnd(i,0),s(i)||at(i)||!(o=c(v))?a.add(i,a.create("br",{"data-mce-bogus":"1"})):(v=o,a.remove(i)));p.setRng(v)}}var tt,g,y,b,k,nt,ut,v,l,w,it,ft,pt=e.schema.getTextInlineElements(),p=e.selection,a=e.dom,et,d,rt;if(/^ | $/.test(h)&&(h=ot(h)),tt=e.parser,ft=c.merge,g=new i({validate:e.settings.validate},e.schema),it='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;<\/span>',nt={content:h,format:"html",selection:!0},e.fire("BeforeSetContent",nt),h=nt.content,h.indexOf("{$caret}")==-1&&(h+="{$caret}"),h=h.replace(/\{\$caret\}/,it),v=p.getRng(),et=v.startContainer||(v.parentElement?v.parentElement():null),d=e.getBody(),et===d&&p.isCollapsed()&&a.isBlock(d.firstChild)&&vt(d.firstChild)&&a.isEmpty(d.firstChild)&&(v=a.createRng(),v.setStart(d.firstChild,0),v.setEnd(d.firstChild,0),p.setRng(v)),p.isCollapsed()||(e.selection.setRng(e.selection.getRng()),e.getDoc().execCommand("Delete",!1,null),st()),y=p.getNode(),rt={context:y.nodeName.toLowerCase(),data:c.data},k=tt.parse(h,rt),c.paste===!0&&o.isListFragment(k)&&o.isParentBlockLi(a,y))return v=o.insertAtCaret(g,a,e.selection.getRng(!0),k),e.selection.setRng(v),void e.fire("SetContent",nt);if(ct(k),l=k.lastChild,"mce_marker"==l.attr("id"))for(ut=l,l=l.prev;l;l=l.walk(!0))if(3==l.type||!a.isBlock(l.name)){e.schema.isValidChild(l.parent.name,"span")&&l.parent.insert(ut,l,"br"===l.name);break}if(e._selectionOverrides.showBlockCaretContainer(y),rt.invalid){for(p.setContent(it),y=p.getNode(),b=e.getBody(),9==y.nodeType?y=l=b:l=y;l!==b;)y=l,l=l.parentNode;h=y==b?b.innerHTML:a.getOuterHTML(y);h=g.serialize(tt.parse(h.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return g.serialize(k)})));y==b?a.setHTML(b,h):a.setOuterHTML(y,h)}else h=g.serialize(k),l=y.firstChild,w=y.lastChild,!l||l===w&&"BR"===l.nodeName?a.setHTML(y,h):p.setContent(h);ht();yt(a.get("mce_marker"));lt(e.getBody());e.fire("SetContent",nt);e.addVisual()},c=function(n){var i;return"string"!=typeof n?(i=t.extend({paste:n.paste,data:{paste:n.paste}},n),{content:n.content,details:i}):{content:n,details:{}}},l=function(n,t){var i=c(t);h(n,i.content,i.details)};return{insertAtCaret:l}});i(rr,[u,r,v,p,hf],function(n,i,r,u,f){var o=i.each,l=i.extend,a=i.map,v=i.inArray,s=i.explode,h=n.ie&&n.ie<11,e=!0,c=!1;return function(i){function et(n,t,r,u){var s,e,f=0;if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(n)||u&&u.skip_focus||i.focus(),u=i.fire("BeforeExecCommand",{command:n,ui:t,value:r}),u.isDefaultPrevented())return!1;if(e=n.toLowerCase(),s=b.exec[e])return s(e,t,r),i.fire("ExecCommand",{command:n,ui:t,value:r}),!0;if(o(i.plugins,function(u){if(u.execCommand&&u.execCommand(n,t,r))return i.fire("ExecCommand",{command:n,ui:t,value:r}),f=!0,!1}),f)return f;if(i.theme&&i.theme.execCommand&&i.theme.execCommand(n,t,r))return i.fire("ExecCommand",{command:n,ui:t,value:r}),!0;try{f=i.getDoc().execCommand(n,t,r)}catch(h){}return!!f&&(i.fire("ExecCommand",{command:n,ui:t,value:r}),!0)}function g(n){var t;if(!i.quirks.isHidden()){if(n=n.toLowerCase(),t=b.state[n])return t(n);try{return i.getDoc().queryCommandState(n)}catch(r){}return!1}}function ot(n){var t;if(!i.quirks.isHidden()){if(n=n.toLowerCase(),t=b.value[n])return t(n);try{return i.getDoc().queryCommandValue(n)}catch(r){}}}function nt(n,t){t=t||"exec";o(n,function(n,i){o(i.toLowerCase().split(","),function(i){b[t][i]=n})})}function st(n,t,r){n=n.toLowerCase();b.exec[n]=function(n,u,f,e){return t.call(r||i,u,f,e)}}function ht(n){if(n=n.toLowerCase(),b.exec[n])return!0;try{return i.getDoc().queryCommandSupported(n)}catch(t){}return!1}function ct(n,t,r){n=n.toLowerCase();b.state[n]=function(){return t.call(r||i)}}function lt(n,t,r){n=n.toLowerCase();b.value[n]=function(){return t.call(r||i)}}function at(n){return n=n.toLowerCase(),!!b.exec[n]}function tt(n,r,u){return r===t&&(r=c),u===t&&(u=null),i.getDoc().execCommand(n,r,u)}function it(n){return w.match(n)}function k(n,r){w.toggle(n,r?{value:r}:t);i.nodeChanged()}function rt(n){ft=p.getBookmark(n)}function ut(){p.moveToBookmark(ft)}var y,p,w,b={state:{},exec:{},value:{}},d=i.settings,ft;i.on("PreInit",function(){y=i.dom;p=i.selection;d=i.settings;w=i.formatter});l(this,{execCommand:et,queryCommandState:g,queryCommandValue:ot,queryCommandSupported:ht,addCommands:nt,addCommand:st,addQueryStateHandler:ct,addQueryValueHandler:lt,hasCustomCommand:at});nt({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){i.undoManager.add()},"Cut,Copy,Paste":function(t){var f=i.getDoc(),u,r;try{tt(t)}catch(o){u=e}("paste"!==t||f.queryCommandEnabled(t)||(u=!0),u||!f.queryCommandSupported(t))&&(r=i.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),n.mac&&(r=r.replace(/Ctrl\+/g,"⌘+")),i.notificationManager.open({text:r,type:"error"}))},unlink:function(){if(p.isCollapsed()){var n=i.dom.getParent(i.selection.getStart(),"a");return void(n&&i.dom.remove(n,!0))}w.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var t=n.substring(7);"full"==t&&(t="justify");o("left,center,right,justify".split(","),function(n){t!=n&&w.remove("align"+n)});"none"!=t&&k("align"+t)},"InsertUnorderedList,InsertOrderedList":function(n){var t,i;tt(n);t=y.getParent(p.getNode(),"ol,ul");t&&(i=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(i.nodeName)&&(rt(),y.split(i,t),ut()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(n){k(n)},"ForeColor,HiliteColor,FontName":function(n,t,i){k(n,i)},FontSize:function(n,t,i){var r,u;i>=1&&i<=7&&(u=s(d.font_size_style_values),r=s(d.font_size_classes),i=r?r[i-1]||i:u[i-1]||i);k(n,i)},RemoveFormat:function(n){w.remove(n)},mceBlockQuote:function(){k("blockquote")},FormatBlock:function(n,t,i){return k(i||"p")},mceCleanup:function(){var n=p.getBookmark();i.setContent(i.getContent({cleanup:e}),{cleanup:e});p.moveToBookmark(n)},mceRemoveNode:function(n,t,r){var u=r||p.getNode();u!=i.getBody()&&(rt(),i.dom.remove(u,e),ut())},mceSelectNodeDepth:function(n,t,r){var u=0;y.getParent(p.getNode(),function(n){if(1==n.nodeType&&u++==r)return p.select(n),c},i.getBody())},mceSelectNode:function(n,t,i){p.select(i)},mceInsertContent:function(n,t,r){f.insertAtCaret(i,r)},mceInsertRawHTML:function(n,t,r){p.setContent("tiny_mce_marker");i.setContent(i.getContent().replace(/tiny_mce_marker/g,function(){return r}))},mceToggleFormat:function(n,t,i){k(i)},mceSetContent:function(n,t,r){i.setContent(r)},"Indent,Outdent":function(n){var t,u,r;t=d.indentation;u=/[a-z%]+$/i.exec(t);t=parseInt(t,10);g("InsertUnorderedList")||g("InsertOrderedList")?tt(n):(d.forced_root_block||y.getParent(p.getNode(),y.isBlock)||w.apply("div"),o(p.getSelectedBlocks(),function(f){if("false"!==y.getContentEditable(f)&&"LI"!==f.nodeName){var e=i.getParam("indent_use_margin",!1)?"margin":"padding";e="TABLE"===f.nodeName?"margin":e;e+="rtl"==y.getStyle(f,"direction",!0)?"Right":"Left";"outdent"==n?(r=Math.max(0,parseInt(f.style[e]||0,10)-t),y.setStyle(f,e,r?r+u:"")):(r=parseInt(f.style[e]||0,10)+t+u,y.setStyle(f,e,r))}}))},mceRepaint:function(){},InsertHorizontalRule:function(){i.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){i.hasVisual=!i.hasVisual;i.addVisual()},mceReplaceContent:function(n,t,r){i.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,p.getContent({format:"text"})))},mceInsertLink:function(n,t,i){var r;"string"==typeof i&&(i={href:i});r=y.getParent(p.getNode(),"a");i.href=i.href.replace(" ","%20");r&&i.href||w.remove("link");i.href&&w.apply("link",i,r)},selectAll:function(){var t=y.getRoot(),n;p.getRng().setStart?(n=y.createRng(),n.setStart(t,0),n.setEnd(t,t.childNodes.length),p.setRng(n)):(n=p.getRng(),n.item||(n.moveToElementText(t),n.select()))},"delete":function(){tt("Delete");var n=i.getBody();y.isEmpty(n)&&(i.setContent(""),n.firstChild&&y.isBlock(n.firstChild)?i.selection.setCursorLocation(n.firstChild,0):i.selection.setCursorLocation(n,0))},mceNewDocument:function(){i.setContent("")},InsertLineBreak:function(n,t,f){function it(){for(var t=new u(o,l),n,r=i.schema.getNonEmptyElements();n=t.next();)if(r[n.nodeName.toLowerCase()]||n.length>0)return!0}var k=f,s,d,v,c=p.getRng(!0),a,o,g,b;new r(y).normalize(c);a=c.startOffset;o=c.startContainer;1==o.nodeType&&o.hasChildNodes()&&(g=a>o.childNodes.length-1,o=o.childNodes[Math.min(a,o.childNodes.length-1)]||o,a=g&&3==o.nodeType?o.nodeValue.length:0);var l=y.getParent(o,y.isBlock),nt=l?l.nodeName.toUpperCase():"",w=l?y.getParent(l.parentNode,y.isBlock):null,tt=w?w.nodeName.toUpperCase():"",rt=k&&k.ctrlKey;return"LI"!=tt||rt||(l=w,nt=tt),o&&3==o.nodeType&&a>=o.nodeValue.length&&(h||it()||(s=y.create("br"),c.insertNode(s),c.setStartAfter(s),c.setEndAfter(s),d=!0)),s=y.create("br"),c.insertNode(s),b=y.doc.documentMode,h&&"PRE"==nt&&(!b||b<8)&&s.parentNode.insertBefore(y.doc.createTextNode("\r"),s),v=y.create("span",{},"&nbsp;"),s.parentNode.insertBefore(v,s),p.scrollIntoView(v),y.remove(v),d?(c.setStartBefore(s),c.setEndBefore(s)):(c.setStartAfter(s),c.setEndAfter(s)),p.setRng(c),i.undoManager.add(),e}});nt({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(n){var t="align"+n.substring(7),i=p.isCollapsed()?[y.getParent(p.getNode(),y.isBlock)]:p.getSelectedBlocks(),r=a(i,function(n){return!!w.matchNode(n,t)});return v(r,e)!==-1},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(n){return it(n)},mceBlockQuote:function(){return it("blockquote")},Outdent:function(){var n;return d.inline_styles&&((n=y.getParent(p.getStart(),y.isBlock))&&parseInt(n.style.paddingLeft,10)>0||(n=y.getParent(p.getEnd(),y.isBlock))&&parseInt(n.style.paddingLeft,10)>0)?e:g("InsertUnorderedList")||g("InsertOrderedList")||!d.inline_styles&&!!y.getParent(p.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(n){var t=y.getParent(p.getNode(),"ul,ol");return t&&("insertunorderedlist"===n&&"UL"===t.tagName||"insertorderedlist"===n&&"OL"===t.tagName)}},"state");nt({"FontSize,FontName":function(n){var i=0,t;return(t=y.getParent(p.getNode(),"span"))&&(i="fontsize"==n?t.style.fontSize:t.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()),i}},"value");nt({Undo:function(){i.undoManager.undo()},Redo:function(){i.undoManager.redo()}})}});i(ri,[r],function(n){function t(n,f){var e=this,o,s,h;if(n=r(n),f=e.settings=f||{},o=f.base_uri,/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n))return void(e.source=n);h=0===n.indexOf("//");0!==n.indexOf("/")||h||(n=(o?o.protocol||"http":"http")+"://mce_host"+n);/^[\w\-]*:?\/\//.test(n)||(s=f.base_uri?f.base_uri.path:new t(location.href).directory,""===f.base_uri.protocol?n="//mce_host"+e.toAbsPath(s,n):(n=/([^#?]*)([#?]?.*)/.exec(n),n=(o&&o.protocol||"http")+"://mce_host"+e.toAbsPath(s,n[1])+n[2]));n=n.replace(/@@/g,"(mce_at)");n=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);i(u,function(t,i){var r=n[i];r&&(r=r.replace(/\(mce_at\)/g,"@@"));e[t]=r});o&&(e.protocol||(e.protocol=o.protocol),e.userInfo||(e.userInfo=o.userInfo),e.port||"mce_host"!==e.host||(e.port=o.port),e.host&&"mce_host"!==e.host||(e.host=o.host),e.source="");h&&(e.protocol="")}var i=n.each,r=n.trim,u="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),f={ftp:21,http:80,https:443,mailto:25};return t.prototype={setPath:function(n){var t=this;n=/^(.*?)\/?(\w+)?$/.exec(n);t.path=n[0];t.directory=n[1];t.file=n[2];t.source="";t.getURI()},toRelative:function(n){var i=this,u,r,f;return"./"===n?n:(n=new t(n,{base_uri:i}),"mce_host"!=n.host&&i.host!=n.host&&n.host||i.port!=n.port||i.protocol!=n.protocol&&""!==n.protocol)?n.getURI():(r=i.getURI(),f=n.getURI(),r==f||"/"==r.charAt(r.length-1)&&r.substr(0,r.length-1)==f?r:(u=i.toRelPath(i.path,n.path),n.query&&(u+="?"+n.query),n.anchor&&(u+="#"+n.anchor),u))},toAbsolute:function(n,i){return n=new t(n,{base_uri:this}),n.getURI(i&&this.isSameOrigin(n))},isSameOrigin:function(n){if(this.host==n.host&&this.protocol==n.protocol){if(this.port==n.port)return!0;var t=f[this.protocol];if(t&&(this.port||t)==(n.port||t))return!0}return!1},toRelPath:function(n,t){var r,f=0,e="",i,u;if(n=n.substring(0,n.lastIndexOf("/")),n=n.split("/"),r=t.split("/"),n.length>=r.length)for(i=0,u=n.length;i<u;i++)if(i>=r.length||n[i]!=r[i]){f=i+1;break}if(n.length<r.length)for(i=0,u=r.length;i<u;i++)if(i>=n.length||n[i]!=r[i]){f=i+1;break}if(1===f)return t;for(i=0,u=n.length-(f-1);i<u;i++)e+="../";for(i=f-1,u=r.length;i<u;i++)e+=i!=f-1?"/"+r[i]:r[i];return e},toAbsPath:function(n,t){var r,e=0,f=[],o,u;for(o=/\/$/.test(t)?"/":"",n=n.split("/"),t=t.split("/"),i(n,function(n){n&&f.push(n)}),n=f,r=t.length-1,f=[];r>=0;r--)0!==t[r].length&&"."!==t[r]&&(".."!==t[r]?e>0?e--:f.push(t[r]):e++);return r=n.length-e,u=r<=0?f.reverse().join("/"):n.slice(0,r).join("/")+"/"+f.reverse().join("/"),0!==u.indexOf("/")&&(u="/"+u),o&&u.lastIndexOf("/")!==u.length-1&&(u+=o),u},getURI:function(n){var i,t=this;return t.source&&!n||(i="",n||(i+=t.protocol?t.protocol+"://":"//",t.userInfo&&(i+=t.userInfo+"@"),t.host&&(i+=t.host),t.port&&(i+=":"+t.port)),t.path&&(i+=t.path),t.query&&(i+="?"+t.query),t.anchor&&(i+="#"+t.anchor),t.source=i),t.source}},t.parseDataUri=function(n){var i,t;return n=decodeURIComponent(n).split(","),t=/data:([^;]+)/.exec(n[0]),t&&(i=t[1]),{type:i,data:n[1]}},t.getDocumentBaseUrl=function(n){var t;return t=0!==n.protocol.indexOf("http")&&"file:"!==n.protocol?n.href:n.protocol+"//"+n.host+n.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},t});i(it,[r],function(n){function r(){}var t=n.each,f=n.extend,u,i;return r.extend=u=function(n){function r(){var t,r,u,n=this;if(!i&&(n.init&&n.init.apply(n,arguments),r=n.Mixins))for(t=r.length;t--;)u=r[t],u.init&&u.init.apply(n,arguments)}function l(){return this}function a(n,t){return function(){var i=this,u=i._super,r;return i._super=e[n],r=t.apply(i,arguments),i._super=u,r}}var c=this,e=c.prototype,h,o,s;i=!0;h=new c;i=!1;n.Mixins&&(t(n.Mixins,function(t){for(var i in t)"init"!==i&&(n[i]=t[i])}),e.Mixins&&(n.Mixins=e.Mixins.concat(n.Mixins)));n.Methods&&t(n.Methods.split(","),function(t){n[t]=l});n.Properties&&t(n.Properties.split(","),function(t){var i="_"+t;n[t]=function(n){var t=this,r;return n!==r?(t[i]=n,t):t[i]}});n.Statics&&t(n.Statics,function(n,t){r[t]=n});n.Defaults&&e.Defaults&&(n.Defaults=f({},e.Defaults,n.Defaults));for(o in n)s=n[o],h[o]="function"==typeof s&&e[o]?a(o,s):s;return r.prototype=h,r.constructor=r,r.extend=u,r},r});i(ui,[r],function(n){function t(t){function u(){return!1}function e(){return!0}function c(n,r){var c,f,l,s;if(n=n.toLowerCase(),r=r||{},r.type=n,r.target||(r.target=o),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=e},r.stopPropagation=function(){r.isPropagationStopped=e},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=e},r.isDefaultPrevented=u,r.isPropagationStopped=u,r.isImmediatePropagationStopped=u),t.beforeFire&&t.beforeFire(r),c=i[n])for(f=0,l=c.length;f<l;f++){if(s=c[f],s.once&&h(n,s.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(s.func.call(o,r)===!1)return r.preventDefault(),r}return r}function s(t,e,o,s){var h,c,l;if(e===!1&&(e=u),e)for(e={func:e},s&&n.extend(e,s),c=t.toLowerCase().split(" "),l=c.length;l--;)t=c[l],h=i[t],h||(h=i[t]=[],f(t,!0)),o?h.unshift(e):h.push(e);return r}function h(n,t){var o,u,s,h,e;if(n)for(h=n.toLowerCase().split(" "),o=h.length;o--;){if(n=h[o],u=i[n],!n){for(s in i)f(s,!1),delete i[s];return r}if(u){if(t)for(e=u.length;e--;)u[e].func===t&&(u=u.slice(0,e).concat(u.slice(e+1)),i[n]=u);else u.length=0;u.length||(f(n,!1),delete i[n])}}else{for(n in i)f(n,!1);i={}}return r}function l(n,t,i){return s(n,t,i,{once:!0})}function a(n){return n=n.toLowerCase(),!(!i[n]||0===i[n].length)}var r=this,o,i={},f;t=t||{};o=t.scope||r;f=t.toggleEvent||u;r.fire=c;r.on=s;r.off=h;r.once=l;r.has=a}var i=n.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," ");return t.isNative=function(n){return!!i[n.toLowerCase()]},t});i(cf,[],function(){function n(n){this.create=n.create}return n.create=function(t,i){return new n({create:function(n,r){function f(t){n.set(r,t.value)}function e(n){t.set(i,n.value)}var u;return n.on("change:"+r,e),t.on("change:"+i,f),u=n._bindings,u||(u=n._bindings=[],n.on("destroy",function(){for(var n=u.length;n--;)u[n]()})),u.push(function(){t.off("change:"+i,f)}),t.get(i)}})},n});i(ct,[ui],function(n){function t(t){return t._eventDispatcher||(t._eventDispatcher=new n({scope:t,toggleEvent:function(i,r){n.isNative(i)&&t.toggleNativeEvent&&t.toggleNativeEvent(i,r)}})),t._eventDispatcher}return{fire:function(n,i,r){var f=this,u;if(f.removed&&"remove"!==n)return i;if(i=t(f).fire(n,i,r),r!==!1&&f.parent)for(u=f.parent();u&&!i.isPropagationStopped();)u.fire(n,i,!1),u=u.parent();return i},on:function(n,i,r){return t(this).on(n,i,r)},off:function(n,i){return t(this).off(n,i)},once:function(n,i){return t(this).once(n,i)},hasEventListeners:function(n){return t(this).has(n)}}});i(lf,[cf,ct,it,r],function(n,t,i,r){function f(n){return n.nodeType>0}function u(n,t){var i,e;if(n===t)return!0;if(null===n||null===t||"object"!=typeof n||"object"!=typeof t)return n===t;if(r.isArray(t)){if(n.length!==t.length)return!1;for(i=n.length;i--;)if(!u(n[i],t[i]))return!1}if(f(n)||f(t))return n===t;e={};for(i in t){if(!u(n[i],t[i]))return!1;e[i]=!0}for(i in n)if(!e[i]&&!u(n[i],t[i]))return!1;return!0}return i.extend({Mixins:[t],init:function(t){var i,r;t=t||{};for(i in t)r=t[i],r instanceof n&&(t[i]=r.create(this,i));this.data=t},set:function(t,i){var r,f,e=this.data[t];if(i instanceof n&&(i=i.create(this,t)),"object"==typeof t){for(r in t)this.set(r,t[r]);return this}return u(e,i)||(this.data[t]=i,f={target:this,name:t,value:i,oldValue:e},this.fire("change:"+t,f),this.fire("change",f)),this},get:function(n){return this.data[n]},has:function(n){return n in this.data},bind:function(t){return n.create(this,t)},destroy:function(){this.fire("destroy")}})});i(fi,[it],function(n){function u(n){for(var i=[],t=n.length,r;t--;)r=n[t],r.__checked||(i.push(r),r.__checked=1);for(t=i.length;t--;)delete i[t].__checked;return i}var f=/^([\w\\*]+)?(?:#([\w\-\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i,i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=/^\s*|\s*$/g,t,r=n.extend({init:function(n){function r(n){if(n)return n=n.toLowerCase(),function(t){return"*"===n||t.type===n}}function u(n){if(n)return function(t){return t._name===n}}function o(n){if(n)return n=n.split("."),function(t){for(var i=n.length;i--;)if(!t.classes.contains(n[i]))return!1;return!0}}function s(n,t,i){if(n)return function(r){var u=r[n]?r[n]():"";return t?"="===t?u===i:"*="===t?u.indexOf(i)>=0:"~="===t?(" "+u+" ").indexOf(" "+i+" ")>=0:"!="===t?u!=i:"^="===t?0===u.indexOf(i):"$="===t&&u.substr(u.length-i.length)===i:!!i}}function h(n){var i;if(n)return n=/(?:not\((.+)\))|(.+)/i.exec(n),n[1]?(i=t(n[1],[]),function(n){return!l(n,i)}):(n=n[2],function(t,i,r){return"first"===n?0===i:"last"===n?i===r-1:"even"===n?i%2==0:"odd"===n?i%2==1:!!t[n]&&t[n]()})}function c(n,t,i){function l(n){n&&t.push(n)}var c;return c=f.exec(n.replace(e,"")),l(r(c[1])),l(u(c[2])),l(o(c[3])),l(s(c[4],c[5],c[6])),l(h(c[7])),t.pseudo=!!c[7],t.direct=i,t}function t(n,r){var e=[],o,u,f;do if(i.exec(""),u=i.exec(n),u&&(n=u[3],e.push(u[1]),u[2])){o=u[3];break}while(u);for(o&&t(o,r),n=[],f=0;f<e.length;f++)">"!=e[f]&&n.push(c(e[f],[],">"===e[f-1]));return r.push(n),r}var l=this.match;this._selectors=t(n,[])},match:function(n,t){var f,v,u,e,c,r,o,s,h,y,l,a,i;for(t=t||this._selectors,f=0,v=t.length;f<v;f++){for(c=t[f],e=c.length,i=n,a=0,u=e-1;u>=0;u--)for(s=c[u];i;){if(s.pseudo)for(l=i.parent().items(),h=y=l.length;h--&&l[h]!==i;);for(r=0,o=s.length;r<o;r++)if(!s[r](i,h,y)){r=o+1;break}if(r===o){a++;break}if(u===e-1)break;i=i.parent()}if(a===e)return!0}return!1},find:function(n){function e(n,t,r){for(var f,s,u,c=t[r],o=0,h=n.length;o<h;o++){for(u=n[o],f=0,s=c.length;f<s;f++)if(!c[f](u,o,h)){f=s+1;break}if(f===s)r==t.length-1?i.push(u):u.items&&e(u.items(),t,r+1);else if(c.direct)return;u.items&&e(u.items(),t,r)}}var i=[],f,o,s=this._selectors;if(n.items){for(f=0,o=s.length;f<o;f++)e(n.items(),s[f],0);o>1&&(i=u(i))}return t||(t=r.Collection),new t(i)}});return r});i(ei,[r,fi,it],function(n,t,i){var r,u,f=Array.prototype.push,e=Array.prototype.slice;return u={length:0,init:function(n){n&&this.add(n)},add:function(t){var i=this;return n.isArray(t)?f.apply(i,t):t instanceof r?i.add(t.toArray()):f.call(i,t),i},set:function(n){var t=this,r=t.length,i;for(t.length=0,t.add(n),i=t.length;i<r;i++)delete t[i];return t},filter:function(n){var e=this,i,o,s=[],u,f;for("string"==typeof n?(n=new t(n),f=function(t){return n.match(t)}):f=n,i=0,o=e.length;i<o;i++)u=e[i],f(u)&&s.push(u);return new r(s)},slice:function(){return new r(e.apply(this,arguments))},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+1)},each:function(t){return n.each(this,t),this},toArray:function(){return n.toArray(this)},indexOf:function(n){for(var i=this,t=i.length;t--&&i[t]!==n;);return t},reverse:function(){return new r(n.toArray(this).reverse())},hasClass:function(n){return!!this[0]&&this[0].classes.contains(n)},prop:function(n,t){var r=this,u,i;return t!==u?(r.each(function(i){i[n]&&i[n](t)}),r):(i=r[0],i&&i[n]?i[n]():void 0)},exec:function(t){var i=this,r=n.toArray(arguments).slice(1);return i.each(function(n){n[t]&&n[t].apply(n,r)}),i},remove:function(){for(var n=this.length;n--;)this[n].remove();return this},addClass:function(n){return this.each(function(t){t.classes.add(n)})},removeClass:function(n){return this.each(function(t){t.classes.remove(n)})}},n.each("fire on off show hide append prepend before after reflow".split(" "),function(t){u[t]=function(){var i=n.toArray(arguments);return this.each(function(n){t in n&&n[t].apply(n,i)}),this}}),n.each("text name disabled active selected checked visible parent value data".split(" "),function(n){u[n]=function(t){return this.prop(n,t)}}),r=i.extend(u),t.Collection=r,r});i(a,[u,r,o],function(n,t,i){var u=0,r={id:function(){return"mceu_"+u++},create:function(n,r,u){var f=document.createElement(n);return i.DOM.setAttribs(f,r),"string"==typeof u?f.innerHTML=u:t.each(u,function(n){n.nodeType&&f.appendChild(n)}),f},createFragment:function(n){return i.DOM.createFragment(n)},getWindowSize:function(){return i.DOM.getViewPort()},getSize:function(n){var i,r,t;return n.getBoundingClientRect?(t=n.getBoundingClientRect(),i=Math.max(t.width||t.right-t.left,n.offsetWidth),r=Math.max(t.height||t.bottom-t.bottom,n.offsetHeight)):(i=n.offsetWidth,r=n.offsetHeight),{width:i,height:r}},getPos:function(n,t){return i.DOM.getPos(n,t||r.getContainer())},getContainer:function(){return n.container?n.container:document.body},getViewPort:function(n){return i.DOM.getViewPort(n)},get:function(n){return document.getElementById(n)},addClass:function(n,t){return i.DOM.addClass(n,t)},removeClass:function(n,t){return i.DOM.removeClass(n,t)},hasClass:function(n,t){return i.DOM.hasClass(n,t)},toggleClass:function(n,t,r){return i.DOM.toggleClass(n,t,r)},css:function(n,t,r){return i.DOM.setStyle(n,t,r)},getRuntimeStyle:function(n,t){return i.DOM.getStyle(n,t,!0)},on:function(n,t,r,u){return i.DOM.bind(n,t,r,u)},off:function(n,t,r){return i.DOM.unbind(n,t,r)},fire:function(n,t,r){return i.DOM.fire(n,t,r)},innerHtml:function(n,t){i.DOM.setHTML(n,t)}};return r});i(ur,[],function(){return{parseBox:function(n){var t,i=10;if(n)return"number"==typeof n?(n=n||0,{top:n,left:n,bottom:n,right:n}):(n=n.split(" "),t=n.length,1===t?n[1]=n[2]=n[3]=n[0]:2===t?(n[2]=n[0],n[3]=n[1]):3===t&&(n[3]=n[1]),{top:parseInt(n[0],i)||0,right:parseInt(n[1],i)||0,bottom:parseInt(n[2],i)||0,left:parseInt(n[3],i)||0})},measureBox:function(n,t){function r(t){var i=document.defaultView;return i?(t=t.replace(/[A-Z]/g,function(n){return"-"+n}),i.getComputedStyle(n,null).getPropertyValue(t)):n.currentStyle[t]}function i(n){var t=parseFloat(r(n),10);return isNaN(t)?0:t}return{top:i(t+"TopWidth"),right:i(t+"RightWidth"),bottom:i(t+"BottomWidth"),left:i(t+"LeftWidth")}}}});i(fr,[r],function(n){function i(){}function t(n){this.cls=[];this.cls._map={};this.onchange=n||i;this.prefix=""}return n.extend(t.prototype,{add:function(n){return n&&!this.contains(n)&&(this.cls._map[n]=!0,this.cls.push(n),this._change()),this},remove:function(n){if(this.contains(n)){for(var t=0;t<this.cls.length&&this.cls[t]!==n;t++);this.cls.splice(t,1);delete this.cls._map[n];this._change()}return this},toggle:function(n,t){var i=this.contains(n);return i!==t&&(i?this.remove(n):this.add(n),this._change()),this},contains:function(n){return!!this.cls._map[n]},_change:function(){delete this.clsValue;this.onchange.call(this)}}),t.prototype.toString=function(){var t,n;if(this.clsValue)return this.clsValue;for(t="",n=0;n<this.cls.length;n++)n>0&&(t+=" "),t+=this.prefix+this.cls[n];return t},t});i(oi,[f],function(n){var t={},i;return{add:function(r){var u=r.parent();if(u){if(!u._layout||u._layout.isNative())return;t[u._id]||(t[u._id]=u);i||(i=!0,n.requestAnimationFrame(function(){var r,n;i=!1;for(r in t)n=t[r],n.state.get("rendered")&&n.reflow();t={}},document.body))}},remove:function(n){t[n._id]&&delete t[n._id]}}});i(g,[it,r,ui,lf,ei,a,c,ur,fr,oi],function(n,t,i,r,u,f,e,o,s,h){function l(n){return n._eventDispatcher||(n._eventDispatcher=new i({scope:n,toggleEvent:function(t,r){r&&i.isNative(t)&&(n._nativeEvents||(n._nativeEvents={}),n._nativeEvents[t]=!0,n.state.get("rendered")&&a(n))}})),n._eventDispatcher}function a(n){function c(t){var i=n.getParentCtrl(t.target);i&&i.fire(t.type,t)}function l(){var n=t._lastHoverCtrl;n&&(n.fire("mouseleave",{target:n.getEl()}),n.parents().each(function(n){n.fire("mouseleave",{target:n.getEl()})}),t._lastHoverCtrl=null)}function a(i){var u=n.getParentCtrl(i.target),f=t._lastHoverCtrl,e=0,r,s,o;if(u!==f){if(t._lastHoverCtrl=u,s=u.parents().toArray().reverse(),s.push(u),f){for(o=f.parents().toArray().reverse(),o.push(f),e=0;e<o.length&&s[e]===o[e];e++);for(r=o.length-1;r>=e;r--)f=o[r],f.fire("mouseleave",{target:f.getEl()})}for(r=e;r<s.length;r++)u=s[r],u.fire("mouseenter",{target:u.getEl()})}}function h(t){t.preventDefault();"mousewheel"==t.type?(t.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(t.deltaX=-.025*t.wheelDeltaX)):(t.deltaX=0,t.deltaY=t.detail);t=n.fire("wheel",t)}var i,o,u,t,s,r,f;if(s=n._nativeEvents){for(u=n.parents().toArray(),u.unshift(n),i=0,o=u.length;!t&&i<o;i++)t=u[i]._eventsRoot;for(t||(t=u[u.length-1]||n),n._eventsRoot=t,o=i,i=0;i<o;i++)u[i]._eventsRoot=t;f=t._delegates;f||(f=t._delegates={});for(r in s){if(!s)return!1;"wheel"!==r||w?("mouseenter"===r||"mouseleave"===r?t._hasMouseEnter||(e(t.getEl()).on("mouseleave",l).on("mouseover",a),t._hasMouseEnter=1):f[r]||(e(t.getEl()).on(r,c),f[r]=!0),s[r]=!1):p?e(n.getEl()).on("mousewheel",h):e(n.getEl()).on("DOMMouseScroll",h)}}}var p="onmousewheel"in document,w=!1,v="mce-",c,b=0,y={Statics:{classPrefix:v},isRtl:function(){return c.rtl},classPrefix:v,init:function(n){function h(n){var t;for(n=n.split(" "),t=0;t<n.length;t++)i.classes.add(n[t])}var i=this,u,f;i.settings=n=t.extend({},i.Defaults,n);i._id=n.id||"mceu_"+b++;i._aria={role:n.role};i._elmCache={};i.$=e;i.state=new r({visible:!0,active:!1,disabled:!1,value:""});i.data=new r(n.data);i.classes=new s(function(){i.state.get("rendered")&&(i.getEl().className=this.toString())});i.classes.prefix=i.classPrefix;u=n.classes;u&&(i.Defaults&&(f=i.Defaults.classes,f&&u!=f&&h(f)),h(u));t.each("title text name visible disabled active value".split(" "),function(t){t in n&&i[t](n[t])});i.on("click",function(){if(i.disabled())return!1});i.settings=n;i.borderBox=o.parseBox(n.border);i.paddingBox=o.parseBox(n.padding);i.marginBox=o.parseBox(n.margin);n.hidden&&i.hide()},Properties:"parent,name",getContainerElm:function(){return f.getContainer()},getParentCtrl:function(n){for(var t,i=this.getRoot().controlIdLookup;n&&i&&!(t=i[n.id]);)n=n.parentNode;return t},initLayoutRect:function(){var n=this,t=n.settings,u,w,s=n.getEl(),i,r,h,c,e,l,a,v;u=n.borderBox=n.borderBox||o.measureBox(s,"border");n.paddingBox=n.paddingBox||o.measureBox(s,"padding");n.marginBox=n.marginBox||o.measureBox(s,"margin");v=f.getSize(s);l=t.minWidth;a=t.minHeight;h=l||v.width;c=a||v.height;i=t.width;r=t.height;e=t.autoResize;e="undefined"!=typeof e?e:!i&&!r;i=i||h;r=r||c;var y=u.left+u.right,p=u.top+u.bottom,b=t.maxWidth||65535,k=t.maxHeight||65535;return n._layoutRect=w={x:t.x||0,y:t.y||0,w:i,h:r,deltaW:y,deltaH:p,contentW:i-y,contentH:r-p,innerW:i-y,innerH:r-p,startMinWidth:l||0,startMinHeight:a||0,minW:Math.min(h,b),minH:Math.min(c,k),maxW:b,maxH:k,autoResize:e,scrollW:0},n._lastLayoutRect={},w},layoutRect:function(n){var f=this,t=f._layoutRect,u,i,e,o,r,s;return t||(t=f.initLayoutRect()),n?(e=t.deltaW,o=t.deltaH,n.x!==r&&(t.x=n.x),n.y!==r&&(t.y=n.y),n.minW!==r&&(t.minW=n.minW),n.minH!==r&&(t.minH=n.minH),i=n.w,i!==r&&(i=i<t.minW?t.minW:i,i=i>t.maxW?t.maxW:i,t.w=i,t.innerW=i-e),i=n.h,i!==r&&(i=i<t.minH?t.minH:i,i=i>t.maxH?t.maxH:i,t.h=i,t.innerH=i-o),i=n.innerW,i!==r&&(i=i<t.minW-e?t.minW-e:i,i=i>t.maxW-e?t.maxW-e:i,t.innerW=i,t.w=i+e),i=n.innerH,i!==r&&(i=i<t.minH-o?t.minH-o:i,i=i>t.maxH-o?t.maxH-o:i,t.innerH=i,t.h=i+o),n.contentW!==r&&(t.contentW=n.contentW),n.contentH!==r&&(t.contentH=n.contentH),u=f._lastLayoutRect,u.x===t.x&&u.y===t.y&&u.w===t.w&&u.h===t.h||(s=c.repaintControls,s&&s.map&&!s.map[f._id]&&(s.push(f),s.map[f._id]=!0),u.x=t.x,u.y=t.y,u.w=t.w,u.h=t.h),f):t},repaint:function(){var r=this,e,o,u,n,s,h,c,t,f,i;f=document.createRange?function(n){return n}:Math.round;e=r.getEl().style;n=r._layoutRect;t=r._lastRepaintRect||{};s=r.borderBox;h=s.left+s.right;c=s.top+s.bottom;n.x!==t.x&&(e.left=f(n.x)+"px",t.x=n.x);n.y!==t.y&&(e.top=f(n.y)+"px",t.y=n.y);n.w!==t.w&&(i=f(n.w-h),e.width=(i>=0?i:0)+"px",t.w=n.w);n.h!==t.h&&(i=f(n.h-c),e.height=(i>=0?i:0)+"px",t.h=n.h);r._hasBody&&n.innerW!==t.innerW&&(i=f(n.innerW),u=r.getEl("body"),u&&(o=u.style,o.width=(i>=0?i:0)+"px"),t.innerW=n.innerW);r._hasBody&&n.innerH!==t.innerH&&(i=f(n.innerH),u=u||r.getEl("body"),u&&(o=o||u.style,o.height=(i>=0?i:0)+"px"),t.innerH=n.innerH);r._lastRepaintRect=t;r.fire("repaint",{},!1)},updateLayoutRect:function(){var n=this;n.parent()._lastRect=null;f.css(n.getEl(),{width:"",height:""});n._layoutRect=n._lastRepaintRect=n._lastLayoutRect=null;n.initLayoutRect()},on:function(n,t){function r(n){var t,r;return"string"!=typeof n?n:function(u){return t||i.parentsAndSelf().each(function(i){var u=i.settings.callbacks;if(u&&(t=u[n]))return r=i,!1}),t?t.call(r,u):(u.action=n,void this.fire("execute",u))}}var i=this;return l(i).on(n,r(t)),i},off:function(n,t){return l(this).off(n,t),this},fire:function(n,t,i){var u=this,r;if(t=t||{},t.control||(t.control=u),t=l(u).fire(n,t),i!==!1&&u.parent)for(r=u.parent();r&&!t.isPropagationStopped();)r.fire(n,t,!1),r=r.parent();return t},hasEventListeners:function(n){return l(this).has(n)},parents:function(n){for(var r=this,i=new u,t=r.parent();t;t=t.parent())i.add(t);return n&&(i=i.filter(n)),i},parentsAndSelf:function(n){return new u(this).add(this.parents(n))},next:function(){var n=this.parent().items();return n[n.indexOf(this)+1]},prev:function(){var n=this.parent().items();return n[n.indexOf(this)-1]},innerHtml:function(n){return this.$el.html(n),this},getEl:function(n){var t=n?this._id+"-"+n:this._id;return this._elmCache[t]||(this._elmCache[t]=e("#"+t)[0]),this._elmCache[t]},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(n){}return this},blur:function(){return this.getEl().blur(),this},aria:function(n,t){var i=this,r=i.getEl(i.ariaTarget);return"undefined"==typeof t?i._aria[n]:(i._aria[n]=t,i.state.get("rendered")&&r.setAttribute("role"==n?n:"aria-"+n,t),i)},encode:function(n,t){return t!==!1&&(n=this.translate(n)),(n||"").replace(/[&<>"]/g,function(n){return"&#"+n.charCodeAt(0)+";"})},translate:function(n){return c.translate?c.translate(n):n},before:function(n){var t=this,i=t.parent();return i&&i.insert(n,i.items().indexOf(t),!0),t},after:function(n){var t=this,i=t.parent();return i&&i.insert(n,i.items().indexOf(t)),t},remove:function(){var n=this,t=n.getEl(),i=n.parent(),r,u,f,o;if(n.items)for(f=n.items().toArray(),u=f.length;u--;)f[u].remove();return i&&i.items&&(r=[],i.items().each(function(t){t!==n&&r.push(t)}),i.items().set(r),i._lastRect=null),n._eventsRoot&&n._eventsRoot==n&&e(t).off(),o=n.getRoot().controlIdLookup,o&&delete o[n._id],t&&t.parentNode&&t.parentNode.removeChild(t),n.state.set("rendered",!1),n.state.destroy(),n.fire("remove"),n},renderBefore:function(n){return e(n).before(this.renderHtml()),this.postRender(),this},renderTo:function(n){return e(n||this.getContainerElm()).append(this.renderHtml()),this.postRender(),this},preRender:function(){},render:function(){},renderHtml:function(){return'<div id="'+this._id+'" class="'+this.classes+'"><\/div>'},postRender:function(){var n=this,i=n.settings,f,r,u,t,o,s,c;n.$el=e(n.getEl());n.state.set("rendered",!0);for(t in i)0===t.indexOf("on")&&n.on(t.substr(2),i[t]);if(n._eventsRoot){for(u=n.parent();!o&&u;u=u.parent())o=u._eventsRoot;if(o)for(t in o._nativeEvents)n._nativeEvents[t]=!0}a(n);i.style&&(f=n.getEl(),f&&(f.setAttribute("style",i.style),f.style.cssText=i.style));n.settings.border&&(r=n.borderBox,n.$el.css({"border-top-width":r.top,"border-right-width":r.right,"border-bottom-width":r.bottom,"border-left-width":r.left}));s=n.getRoot();s.controlIdLookup||(s.controlIdLookup={});s.controlIdLookup[n._id]=n;for(c in n._aria)n.aria(c,n._aria[c]);n.state.get("visible")===!1&&(n.getEl().style.display="none");n.bindStates();n.state.on("change:visible",function(t){var r=t.value,i;n.state.get("rendered")&&(n.getEl().style.display=r===!1?"none":"",n.getEl().getBoundingClientRect());i=n.parent();i&&(i._lastRect=null);n.fire(r?"show":"hide");h.add(n)});n.fire("postrender",{},!1)},bindStates:function(){},scrollIntoView:function(n){function c(n,t){for(var u,i=n,r=u=0;i&&i!=t&&i.nodeType;)r+=i.offsetLeft||0,u+=i.offsetTop||0,i=i.offsetParent;return{x:r,y:u}}var i=this.getEl(),t=i.parentNode,r,u,f,e,o,s,h=c(i,t);return r=h.x,u=h.y,f=i.offsetWidth,e=i.offsetHeight,o=t.clientWidth,s=t.clientHeight,"end"==n?(r-=o-f,u-=s-e):"center"==n&&(r-=o/2-f/2,u-=s/2-e/2),t.scrollLeft=r,t.scrollTop=u,this},getRoot:function(){for(var t,r,n=this,i=[];n;){if(n.rootControl){t=n.rootControl;break}i.push(n);t=n;n=n.parent()}for(t||(t=this),r=i.length;r--;)i[r].rootControl=t;return t},reflow:function(){h.remove(this);var n=this.parent();return n._layout&&!n._layout.isNative()&&n.reflow(),this}};return t.each("text title visible disabled active value".split(" "),function(n){y[n]=function(t){return 0===arguments.length?this.state.get(n):("undefined"!=typeof t&&this.state.set(n,t),this)}}),c=n.extend(y)});i(lt,[],function(){var n={},t;return{add:function(t,i){n[t.toLowerCase()]=i},has:function(t){return!!n[t.toLowerCase()]},create:function(i,r){var u,f,e;if(!t){e=tinymce.ui;for(f in e)n[f.toLowerCase()]=e[f];t=!0}if("string"==typeof i?(r=r||{},r.type=i):(r=i,i=r.type),i=i.toLowerCase(),u=n[i],!u)throw new Error("Could not find control by type: "+i);return u=new u(r),u.type=i,u}}});i(er,[],function(){return function(n){function c(n){return n&&1===n.nodeType}function u(n){return n=n||t,c(n)?n.getAttribute("role"):null}function e(n){for(var r,i=n||t;i=i.parentNode;)if(r=u(i))return r}function l(n){var i=t;if(c(i))return i.getAttribute("aria-"+n)}function a(n){var t=n.tagName.toUpperCase();return"INPUT"==t||"TEXTAREA"==t||"SELECT"==t}function p(n){return!(!a(n)||n.hidden)||!!/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell|slider)$/.test(u(n))}function f(n){function t(n){if(1==n.nodeType&&"none"!=n.style.display&&!n.disabled){p(n)&&i.push(n);for(var r=0;r<n.childNodes.length;r++)t(n.childNodes[r])}}var i=[];return t(n||s.getEl()),i}function v(n){var u,t,i;for(n=n||r,t=n.parents().toArray(),t.unshift(n),i=0;i<t.length&&(u=t[i],!u.settings.ariaRoot);i++);return u}function w(n){var t=v(n),i=f(t.getEl());t.settings.ariaRemember&&"lastAriaIndex"in t?h(t.lastAriaIndex,i):h(0,i)}function h(n,t){return n<0?n=t.length-1:n>=t.length&&(n=0),t[n]&&t[n].focus(),n}function i(n,i){var u=-1,e=v(),r;for(i=i||f(e.getEl()),r=0;r<i.length;r++)i[r]===t&&(u=r);u+=n;e.lastAriaIndex=h(u,i)}function b(){var n=e();"tablist"==n?i(-1,f(t.parentNode)):r.parent().submenu?y():i(-1)}function k(){var r=u(),n=e();"tablist"==n?i(1,f(t.parentNode)):"menuitem"==r&&"menu"==n&&l("haspopup")?o():i(1)}function d(){i(-1)}function g(){var n=u(),t=e();"menuitem"==n&&"menubar"==t?o():"button"==n&&l("haspopup")?o({key:"down"}):i(1)}function nt(n){var u=e(),t;"tablist"==u?(t=f(r.getEl("body"))[0],t&&t.focus()):i(n.shiftKey?-1:1)}function y(){r.fire("cancel")}function o(n){n=n||{};r.fire("click",{target:t,aria:n})}var s=n.root,t,r;try{t=document.activeElement}catch(tt){t=document.body}return r=s.getParentCtrl(t),s.on("keydown",function(n){function i(n,i){a(t)||"slider"!==u(t)&&i(n)!==!1&&n.preventDefault()}if(!n.isDefaultPrevented())switch(n.keyCode){case 37:i(n,b);break;case 39:i(n,k);break;case 38:i(n,d);break;case 40:i(n,g);break;case 27:y();break;case 14:case 13:case 32:i(n,o);break;case 9:nt(n)!==!1&&n.preventDefault()}}),s.on("focusin",function(n){t=n.target;r=n.control}),{focusFirst:w}}});i(rt,[g,ei,fi,lt,er,r,c,fr,oi],function(n,t,i,r,u,f,e,o,s){var h={};return n.extend({init:function(n){var i=this;i._super(n);n=i.settings;n.fixed&&i.state.set("fixed",!0);i._items=new t;i.isRtl()&&i.classes.add("rtl");i.bodyClasses=new o(function(){i.state.get("rendered")&&(i.getEl("body").className=this.toString())});i.bodyClasses.prefix=i.classPrefix;i.classes.add("container");i.bodyClasses.add("container-body");n.containerCls&&i.classes.add(n.containerCls);i._layout=r.create((n.layout||"")+"layout");i.settings.items?i.add(i.settings.items):i.add(i.render());i._hasBody=!0},items:function(){return this._items},find:function(n){return n=h[n]=h[n]||new i(n),n.find(this)},add:function(n){var t=this;return t.items().add(t.create(n)).parent(t),t},focus:function(n){var t=this,i,u,r;return n&&(u=t.keyboardNav||t.parents().eq(-1)[0].keyboardNav)?void u.focusFirst(t):(r=t.find("*"),t.statusbar&&r.add(t.statusbar.items()),r.each(function(n){return n.settings.autofocus?(i=null,!1):void(n.canFocus&&(i=i||n))}),i&&i.focus(),t)},replace:function(n,t){for(var i,u=this.items(),r=u.length;r--;)if(u[r]===n){u[r]=t;break}r>=0&&(i=t.getEl(),i&&i.parentNode.removeChild(i),i=n.getEl(),i&&i.parentNode.removeChild(i));t.parent(this)},create:function(t){var u=this,i,e=[];return f.isArray(t)||(t=[t]),f.each(t,function(t){t&&(t instanceof n||("string"==typeof t&&(t={type:t}),i=f.extend({},u.settings.defaults,t),t.type=i.type=i.type||t.type||u.settings.defaultType||(i.defaults?i.defaults.type:null),t=r.create(i)),e.push(t))}),e},renderNew:function(){var n=this;return n.items().each(function(t,i){var r;t.parent(n);t.state.get("rendered")||(r=n.getEl("body"),r.hasChildNodes()&&i<=r.childNodes.length-1?e(r.childNodes[i]).before(t.renderHtml()):e(r).append(t.renderHtml()),t.postRender(),s.add(t))}),n._layout.applyClasses(n.items().filter(":visible")),n._lastRect=null,n},append:function(n){return this.add(n).renderNew()},prepend:function(n){var t=this;return t.items().set(t.create(n).concat(t.items().toArray())),t.renderNew()},insert:function(n,t,i){var u=this,r,f,e;return n=u.create(n),r=u.items(),!i&&t<r.length-1&&(t+=1),t>=0&&t<r.length&&(f=r.slice(0,t).toArray(),e=r.slice(t).toArray(),r.set(f.concat(n,e))),u.renderNew()},fromJSON:function(n){var t=this;for(var i in n)t.find("#"+i).value(n[i]);return t},toJSON:function(){var t=this,n={};return t.find("*").each(function(t){var i=t.name(),r=t.value();i&&"undefined"!=typeof r&&(n[i]=r)}),n},renderHtml:function(){var n=this,t=n._layout,i=this.settings.role;return n.preRender(),t.preRender(n),'<div id="'+n._id+'" class="'+n.classes+'"'+(i?' role="'+this.settings.role+'"':"")+'><div id="'+n._id+'-body" class="'+n.bodyClasses+'">'+(n.settings.html||"")+t.renderHtml(n)+"<\/div><\/div>"},postRender:function(){var n=this,t;return n.items().exec("postRender"),n._super(),n._layout.postRender(n),n.state.set("rendered",!0),n.settings.style&&n.$el.css(n.settings.style),n.settings.border&&(t=n.borderBox,n.$el.css({"border-top-width":t.top,"border-right-width":t.right,"border-bottom-width":t.bottom,"border-left-width":t.left})),n.parent()||(n.keyboardNav=new u({root:n})),n},initLayoutRect:function(){var n=this,t=n._super();return n._layout.recalc(n),t},recalc:function(){var t=this,n=t._layoutRect,i=t._lastRect;if(!i||i.w!=n.w||i.h!=n.h)return t._layout.recalc(t),n=t.layoutRect(),t._lastRect={x:n.x,y:n.y,w:n.w,h:n.h},!0},reflow:function(){var t;if(s.remove(this),this.visible()){for(n.repaintControls=[],n.repaintControls.map={},this.recalc(),t=n.repaintControls.length;t--;)n.repaintControls[t].repaint();"flow"!==this.settings.layout&&"stack"!==this.settings.layout&&this.repaint();n.repaintControls=[]}return this}})});i(ut,[c],function(n){function i(n){var t,i,u,e,o,f,s,h,r=Math.max;return t=n.documentElement,i=n.body,u=r(t.scrollWidth,i.scrollWidth),e=r(t.clientWidth,i.clientWidth),o=r(t.offsetWidth,i.offsetWidth),f=r(t.scrollHeight,i.scrollHeight),s=r(t.clientHeight,i.clientHeight),h=r(t.offsetHeight,i.offsetHeight),{width:u<o?e:u,height:f<h?s:f}}function t(n){var i,t;if(n.changedTouches)for(i="screenX screenY pageX pageY clientX clientY".split(" "),t=0;t<i.length;t++)n[i[t]]=n.changedTouches[0][i[t]]}return function(r,u){function o(){return f.getElementById(u.handle||r)}var h,f=u.document||document,c,l,e,s,a,v;u=u||{};l=function(r){var y=i(f),l,p;t(r);r.preventDefault();c=r.button;l=o();a=r.screenX;v=r.screenY;p=window.getComputedStyle?window.getComputedStyle(l,null).getPropertyValue("cursor"):l.runtimeStyle.cursor;h=n("<div><\/div>").css({position:"absolute",top:0,left:0,width:y.width,height:y.height,zIndex:2147483647,opacity:.0001,cursor:p}).appendTo(f.body);n(f).on("mousemove touchmove",s).on("mouseup touchend",e);u.start(r)};s=function(n){return t(n),n.button!==c?e(n):(n.deltaX=n.screenX-a,n.deltaY=n.screenY-v,n.preventDefault(),void u.drag(n))};e=function(i){t(i);n(f).off("mousemove touchmove",s).off("mouseup touchend",e);h.remove();u.stop&&u.stop(i)};this.destroy=function(){n(o()).off()};n(o()).on("mousedown touchstart",l)}});i(or,[c,ut],function(n,t){return{init:function(){var n=this;n.on("repaint",n.renderScroll)},renderScroll:function(){function r(){function e(t,e,o,s,h,c){var a,v,k,y,d,w,l,p,b;if(v=i.getEl("scroll"+t)){if(p=e.toLowerCase(),b=o.toLowerCase(),n(i.getEl("absend")).css(p,i.layoutRect()[s]-1),!h)return void n(v).css("display","none");n(v).css("display","block");a=i.getEl("body");k=i.getEl("scroll"+t+"t");y=a["client"+o]-2*u;y-=r&&f?v["client"+c]:0;d=a["scroll"+o];w=y/d;l={};l[p]=a["offset"+e]+u;l[b]=y;n(v).css(l);l={};l[p]=a["scroll"+e]*w;l[b]=y*w;n(k).css(l)}}var r,f,t;t=i.getEl("body");r=t.scrollWidth>t.clientWidth;f=t.scrollHeight>t.clientHeight;e("h","Left","Width","contentW",r,"Height");e("v","Top","Height","contentH",f,"Width")}function f(){function r(r,f,e,o,s){var l,h=i._id+"-scroll"+r,c=i.classPrefix;n(i.getEl()).append('<div id="'+h+'" class="'+c+"scrollbar "+c+"scrollbar-"+r+'"><div id="'+h+'t" class="'+c+'scrollbar-thumb"><\/div><\/div>');i.draghelper=new t(h+"t",{start:function(){l=i.getEl("body")["scroll"+f];n("#"+h).addClass(c+"active")},drag:function(n){var c,a,v,h,t=i.layoutRect();a=t.contentW>t.innerW;v=t.contentH>t.innerH;h=i.getEl("body")["client"+e]-2*u;h-=a&&v?i.getEl("scroll"+r)["client"+s]:0;c=h/i.getEl("body")["scroll"+e];i.getEl("body")["scroll"+f]=l+n["delta"+o]/c},stop:function(){n("#"+h).removeClass(c+"active")}})}i.classes.add("scroll");r("v","Top","Height","Y","Width");r("h","Left","Width","X","Height")}var i=this,u=2;i.settings.autoScroll&&(i._hasScroll||(i._hasScroll=!0,f(),i.on("wheel",function(n){var t=i.getEl("body");t.scrollLeft+=10*(n.deltaX||0);t.scrollTop+=10*n.deltaY;r()}),n(i.getEl("body")).on("scroll",r)),r())}}});i(kt,[rt,or],function(n,t){return n.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[t],renderHtml:function(){var n=this,i=n._layout,t=n.settings.html;return n.preRender(),i.preRender(n),"undefined"==typeof t?t='<div id="'+n._id+'-body" class="'+n.bodyClasses+'">'+i.renderHtml(n)+"<\/div>":("function"==typeof t&&(t=t.call(n)),n._hasBody=!1),'<div id="'+n._id+'" class="'+n.classes+'" hidefocus="1" tabindex="-1" role="group">'+(n._preBodyHtml||"")+t+"<\/div>"}})});i(dt,[a],function(n){function t(t,i,r){var v,h,u,f,o,s,c,l,a,e;return a=n.getViewPort(),h=n.getPos(i),u=h.x,f=h.y,t.state.get("fixed")&&"static"==n.getRuntimeStyle(document.body,"position")&&(u-=a.x,f-=a.y),v=t.getEl(),e=n.getSize(v),o=e.width,s=e.height,e=n.getSize(i),c=e.width,l=e.height,r=(r||"").split(""),"b"===r[0]&&(f+=l),"r"===r[1]&&(u+=c),"c"===r[0]&&(f+=Math.round(l/2)),"c"===r[1]&&(u+=Math.round(c/2)),"b"===r[3]&&(f-=s),"r"===r[4]&&(u-=o),"c"===r[3]&&(f-=Math.round(s/2)),"c"===r[4]&&(u-=Math.round(o/2)),{x:u,y:f,w:o,h:s}}return{testMoveRel:function(i,r){for(var u,f=n.getViewPort(),e=0;e<r.length;e++)if(u=t(this,i,r[e]),this.state.get("fixed")){if(u.x>0&&u.x+u.w<f.w&&u.y>0&&u.y+u.h<f.h)return r[e]}else if(u.x>f.x&&u.x+u.w<f.w+f.x&&u.y>f.y&&u.y+u.h<f.h+f.y)return r[e];return r[0]},moveRel:function(n,i){"string"!=typeof i&&(i=this.testMoveRel(n,i));var r=t(this,n,i);return this.moveTo(r.x,r.y)},moveBy:function(n,t){var i=this,r=i.layoutRect();return i.moveTo(r.x+n,r.y+t),i},moveTo:function(t,i){function e(n,t,i){return n<0?0:n+i>t?(n=t-i,n<0?0:n):n}var r=this,u,f;return r.settings.constrainToViewport&&(u=n.getViewPort(window),f=r.layoutRect(),t=e(t,u.w+u.x,f.w),i=e(i,u.h+u.y,f.h)),r.state.get("rendered")?r.layoutRect({x:t,y:i}).repaint():(r.settings.x=t,r.settings.y=i),r.fire("move",{x:t,y:i}),r}}});i(sr,[a],function(n){return{resizeToContent:function(){this._layoutRect.autoResize=!0;this._lastRect=null;this.reflow()},resizeTo:function(t,i){if(t<=1||i<=1){var r=n.getWindowSize();t=t<=1?t*r.w:t;i=i<=1?i*r.h:i}return this._layoutRect.autoResize=!1,this.layoutRect({minW:t,minH:i,w:t,h:i}).reflow()},resizeBy:function(n,t){var i=this,r=i.layoutRect();return i.resizeTo(r.w+n,r.h+t)}}});i(at,[kt,dt,sr,a,c,f],function(n,t,i,r,u,f){function w(n,t){for(;n;){if(n==t)return!0;n=n.parent()}}function b(n){for(var t,i,r=e.length;r--;)if(t=e[r],i=t.getParentCtrl(n.target),t.settings.autohide){if(i&&(w(i,t)||t.parent()===i))continue;n=t.fire("autohide",{target:n.target});n.isDefaultPrevented()||t.hide()}}function k(){c||(c=function(n){2!=n.button&&b(n)},u(document).on("click touchstart",c))}function d(){l||(l=function(){for(var n=e.length;n--;)y(e[n])},u(window).on("scroll",l))}function g(){if(!a){var n=document.documentElement,t=n.clientWidth,i=n.clientHeight;a=function(){document.all&&t==n.clientWidth&&i==n.clientHeight||(t=n.clientWidth,i=n.clientHeight,s.hideAll())};u(window).on("resize",a)}}function y(n){function i(t,i){for(var r,u=0;u<e.length;u++)if(e[u]!=n)for(r=e[u].parent();r&&(r=r.parent());)r==n&&e[u].fixed(t).moveBy(0,i).repaint()}var t=r.getViewPort().y;n.settings.autofix&&(n.state.get("fixed")?n._autoFixY>t&&(n.fixed(!1).layoutRect({y:n._autoFixY}).repaint(),i(!1,n._autoFixY-t)):(n._autoFixY=n.layoutRect().y,n._autoFixY<t&&(n.fixed(!0).layoutRect({y:0}).repaint(),i(!0,t-n._autoFixY))))}function h(n,t){var i,r=s.zIndex||65535,e,f;if(n)o.push(t);else for(i=o.length;i--;)o[i]===t&&o.splice(i,1);if(o.length)for(i=0;i<o.length;i++)o[i].modal&&(r++,e=o[i]),o[i].getEl().style.zIndex=r,o[i].zIndex=r,r++;f=u("#"+t.classPrefix+"modal-block",t.getContainerElm())[0];e?u(f).css("z-index",e.zIndex-1):f&&(f.parentNode.removeChild(f),v=!1);s.currentZIndex=r}function p(n){for(var t=e.length;t--;)e[t]===n&&e.splice(t,1);for(t=o.length;t--;)o[t]===n&&o.splice(t,1)}var c,l,a,e=[],o=[],v,s=n.extend({Mixins:[t,i],init:function(n){var t=this;t._super(n);t._eventsRoot=t;t.classes.add("floatpanel");n.autohide&&(k(),g(),e.push(t));n.autofix&&(d(),t.on("move",function(){y(this)}));t.on("postrender show",function(n){if(n.control==t){var r,i=t.classPrefix;t.modal&&!v&&(r=u("#"+i+"modal-block",t.getContainerElm()),r[0]||(r=u('<div id="'+i+'modal-block" class="'+i+"reset "+i+'fade"><\/div>').appendTo(t.getContainerElm())),f.setTimeout(function(){r.addClass(i+"in");u(t.getEl()).addClass(i+"in")}),v=!0);h(!0,t)}});t.on("show",function(){t.parents().each(function(n){if(n.state.get("fixed"))return t.fixed(!0),!1})});n.popover&&(t._preBodyHtml='<div class="'+t.classPrefix+'arrow"><\/div>',t.classes.add("popover").add("bottom").add(t.isRtl()?"end":"start"));t.aria("label",n.ariaLabel);t.aria("labelledby",t._id);t.aria("describedby",t.describedBy||t._id+"-none")},fixed:function(n){var t=this,i;return t.state.get("fixed")!=n&&(t.state.get("rendered")&&(i=r.getViewPort(),n?t.layoutRect().y-=i.y:t.layoutRect().y+=i.y),t.classes.toggle("fixed",n),t.state.set("fixed",n)),t},show:function(){for(var t=this,i=t._super(),n=e.length;n--&&e[n]!==t;);return n===-1&&e.push(t),i},hide:function(){return p(this),h(!1,this),this._super()},hideAll:function(){s.hideAll()},close:function(){var n=this;return n.fire("close").isDefaultPrevented()||(n.remove(),h(!1,n)),n},remove:function(){p(this);this._super()},postRender:function(){var n=this;return n.settings.bodyRole&&this.getEl("body").setAttribute("role",n.settings.bodyRole),n._super()}});return s.hideAll=function(){for(var t,n=e.length;n--;)t=e[n],t&&t.settings.autohide&&(t.hide(),e.splice(n,1))},s});i(si,[at,kt,a,c,ut,ur,u,f],function(n,t,i,r,u,f,e,o){function c(n){var t=r("meta[name=viewport]")[0],i;e.overrideViewPort!==!1&&(t||(t=document.createElement("meta"),t.setAttribute("name","viewport"),document.getElementsByTagName("head")[0].appendChild(t)),i=t.getAttribute("content"),i&&"undefined"!=typeof h&&(h=i),t.setAttribute("content",n?"width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0":h))}function l(n,t){a()&&t===!1&&r([document.documentElement,document.body]).removeClass(n+"fullscreen")}function a(){for(var n=0;n<s.length;n++)if(s[n]._fullscreen)return!0;return!1}function v(){function t(){for(var r=i.getWindowSize(),t,n=0;n<s.length;n++)t=s[n].layoutRect(),s[n].moveTo(s[n].settings.x||Math.max(0,r.w/2-t.w/2),s[n].settings.y||Math.max(0,r.h/2-t.h/2))}if(!e.desktop){var n={w:window.innerWidth,h:window.innerHeight};o.setInterval(function(){var t=window.innerWidth,i=window.innerHeight;n.w==t&&n.h==i||(n={w:t,h:i},r(window).trigger("resize"))},100)}r(window).on("resize",t)}var s=[],h="",y=n.extend({modal:!0,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(n){var r=this;r._super(n);r.isRtl()&&r.classes.add("rtl");r.classes.add("window");r.bodyClasses.add("window-body");r.state.set("fixed",!0);n.buttons&&(r.statusbar=new t({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:r.isRtl()?"start":"end",defaults:{type:"button"},items:n.buttons}),r.statusbar.classes.add("foot"),r.statusbar.parent(r));r.on("click",function(n){var t=r.classPrefix+"close";(i.hasClass(n.target,t)||i.hasClass(n.target.parentNode,t))&&r.close()});r.on("cancel",function(){r.close()});r.aria("describedby",r.describedBy||r._id+"-none");r.aria("label",n.title);r._fullscreen=!1},recalc:function(){var n=this,f=n.statusbar,t,r,u,e;n._fullscreen&&(n.layoutRect(i.getWindowSize()),n.layoutRect().contentH=n.layoutRect().innerH);n._super();t=n.layoutRect();n.settings.title&&!n._fullscreen&&(r=t.headerW,r>t.w&&(u=t.x-Math.max(0,r/2),n.layoutRect({w:r,x:u}),e=!0));f&&(f.layoutRect({w:n.layoutRect().innerW}).recalc(),r=f.layoutRect().minW+t.deltaW,r>t.w&&(u=t.x-Math.max(0,r-t.w),n.layoutRect({w:r,x:u}),e=!0));e&&n.recalc()},initLayoutRect:function(){var t=this,n=t._super(),r=0,e,u,f;return t.settings.title&&!t._fullscreen&&(e=t.getEl("head"),u=i.getSize(e),n.headerW=u.width,n.headerH=u.height,r+=n.headerH),t.statusbar&&(r+=t.statusbar.layoutRect().h),n.deltaH+=r,n.minH+=r,n.h+=r,f=i.getWindowSize(),n.x=t.settings.x||Math.max(0,f.w/2-n.w/2),n.y=t.settings.y||Math.max(0,f.h/2-n.h/2),n},renderHtml:function(){var n=this,f=n._layout,t=n._id,r=n.classPrefix,i=n.settings,e="",o="",u=i.html;return n.preRender(),f.preRender(n),i.title&&(e='<div id="'+t+'-head" class="'+r+'window-head"><div id="'+t+'-title" class="'+r+'title">'+n.encode(i.title)+'<\/div><div id="'+t+'-dragh" class="'+r+'dragh"><\/div><button type="button" class="'+r+'close" aria-hidden="true"><i class="mce-ico mce-i-remove"><\/i><\/button><\/div>'),i.url&&(u='<iframe src="'+i.url+'" tabindex="-1"><\/iframe>'),"undefined"==typeof u&&(u=f.renderHtml(n)),n.statusbar&&(o=n.statusbar.renderHtml()),'<div id="'+t+'" class="'+n.classes+'" hidefocus="1"><div class="'+n.classPrefix+'reset" role="application">'+e+'<div id="'+t+'-body" class="'+n.bodyClasses+'">'+u+"<\/div>"+o+"<\/div><\/div>"},fullscreen:function(n){var t=this,s=document.documentElement,h,c=t.classPrefix,u,e;return n!=t._fullscreen&&((r(window).on("resize",function(){var r,n;t._fullscreen&&(h?t._timer||(t._timer=o.setTimeout(function(){var n=i.getWindowSize();t.moveTo(0,0).resizeTo(n.w,n.h);t._timer=0},50)):(r=(new Date).getTime(),n=i.getWindowSize(),t.moveTo(0,0).resizeTo(n.w,n.h),(new Date).getTime()-r>50&&(h=!0)))}),u=t.layoutRect(),t._fullscreen=n,n)?(t._initial={x:u.x,y:u.y,w:u.w,h:u.h},t.borderBox=f.parseBox("0"),t.getEl("head").style.display="none",u.deltaH-=u.headerH+2,r([s,document.body]).addClass(c+"fullscreen"),t.classes.add("fullscreen"),e=i.getWindowSize(),t.moveTo(0,0).resizeTo(e.w,e.h)):(t.borderBox=f.parseBox(t.settings.border),t.getEl("head").style.display="",u.deltaH+=u.headerH,r([s,document.body]).removeClass(c+"fullscreen"),t.classes.remove("fullscreen"),t.moveTo(t._initial.x,t._initial.y).resizeTo(t._initial.w,t._initial.h))),t.reflow()},postRender:function(){var n=this,t;setTimeout(function(){n.classes.add("in");n.fire("open")},0);n._super();n.statusbar&&n.statusbar.postRender();n.focus();this.dragHelper=new u(n._id+"-dragh",{start:function(){t={x:n.layoutRect().x,y:n.layoutRect().y}},drag:function(i){n.moveTo(t.x+i.deltaX,t.y+i.deltaY)}});n.on("submit",function(t){t.isDefaultPrevented()||n.close()});s.push(n);c(!0)},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var n=this,t;for(n.dragHelper.destroy(),n._super(),n.statusbar&&this.statusbar.remove(),l(n.classPrefix,!1),t=s.length;t--;)s[t]===n&&s.splice(t,1);c(s.length>0)},getContentWindow:function(){var n=this.getEl().getElementsByTagName("iframe")[0];return n?n.contentWindow:null}});return v(),y});i(hr,[si],function(n){var t=n.extend({init:function(n){n={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:!0,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200}};this._super(n)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(i){function r(n,t,i){return{type:"button",text:n,subtype:i?"primary":"",onClick:function(n){n.control.parents()[1].close();f(t)}}}var u,f=i.callback||function(){};switch(i.buttons){case t.OK_CANCEL:u=[r("Ok",!0,!0),r("Cancel",!1)];break;case t.YES_NO:case t.YES_NO_CANCEL:u=[r("Yes",1,!0),r("No",0)];i.buttons==t.YES_NO_CANCEL&&u.push(r("Cancel",-1));break;default:u=[r("Ok",!0,!0)]}return new n({padding:20,x:i.x,y:i.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:u,title:i.title,role:"alertdialog",items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200,text:i.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:i.onClose,onCancel:function(){f(!1)}}).renderTo(document.body).reflow()},alert:function(n,i){return"string"==typeof n&&(n={text:n}),n.callback=i,t.msgBox(n)},confirm:function(n,i){return"string"==typeof n&&(n={text:n}),n.callback=i,n.buttons=t.OK_CANCEL,t.msgBox(n)}}});return t});i(cr,[si,hr],function(n,t){return function(i){function f(){if(r.length)return r[r.length-1]}function e(n){i.fire("OpenWindow",{win:n})}function o(n){i.fire("CloseWindow",{win:n})}var u=this,r=[];u.windows=r;i.on("remove",function(){for(var n=r.length;n--;)r[n].close()});u.open=function(t,u){var f;return i.editorManager.setActive(i),t.title=t.title||" ",t.url=t.url||t.file,t.url&&(t.width=parseInt(t.width||320,10),t.height=parseInt(t.height||240,10)),t.body&&(t.items={defaults:t.defaults,type:t.bodyType||"form",items:t.body,data:t.data,callbacks:t.commands}),t.url||t.buttons||(t.buttons=[{text:"Ok",subtype:"primary",onclick:function(){f.find("form")[0].submit()}},{text:"Cancel",onclick:function(){f.close()}}]),f=new n(t),r.push(f),f.on("close",function(){for(var n=r.length;n--;)r[n]===f&&r.splice(n,1);r.length||i.focus();o(f)}),t.data&&f.on("postRender",function(){this.find("*").each(function(n){var i=n.name();i in t.data&&n.value(t.data[i])})}),f.features=t||{},f.params=u||{},1===r.length&&i.nodeChanged(),f=f.renderTo().reflow(),e(f),f};u.alert=function(n,r,u){var f;f=t.alert(n,function(){r?r.call(u||this):i.focus()});f.on("close",function(){o(f)});e(f)};u.confirm=function(n,i,r){var u;u=t.confirm(n,function(n){i.call(r||this,n)});u.on("close",function(){o(u)});e(u)};u.close=function(){f()&&f().close()};u.getParams=function(){return f()?f().params:null};u.setParams=function(n){f()&&(f().params=n)};u.getWindows=function(){return r}}});i(lr,[g,dt],function(n,t){return n.extend({Mixins:[t],Defaults:{classes:"widget tooltip tooltip-n"},renderHtml:function(){var n=this,t=n.classPrefix;return'<div id="'+n._id+'" class="'+n.classes+'" role="presentation"><div class="'+t+'tooltip-arrow"><\/div><div class="'+t+'tooltip-inner">'+n.encode(n.state.get("text"))+"<\/div><\/div>"},bindStates:function(){var n=this;return n.state.on("change:text",function(t){n.getEl().lastChild.innerHTML=n.encode(t.value)}),n._super()},repaint:function(){var i=this,n,t;n=i.getEl().style;t=i._layoutRect;n.left=t.x+"px";n.top=t.y+"px";n.zIndex=131070}})});i(h,[g,lr],function(n,t){var i,r=n.extend({init:function(n){var t=this;t._super(n);n=t.settings;t.canFocus=!0;n.tooltip&&r.tooltips!==!1&&(t.on("mouseenter",function(i){var r=t.tooltip().moveTo(-65535),u;i.control==t?(u=r.text(n.tooltip).show().testMoveRel(t.getEl(),["bc-tc","bc-tl","bc-tr"]),r.classes.toggle("tooltip-n","bc-tc"==u),r.classes.toggle("tooltip-nw","bc-tl"==u),r.classes.toggle("tooltip-ne","bc-tr"==u),r.moveRel(t.getEl(),u)):r.hide()}),t.on("mouseleave mousedown click",function(){t.tooltip().hide()}));t.aria("label",n.ariaLabel||n.tooltip)},tooltip:function(){return i||(i=new t({type:"tooltip"}),i.renderTo()),i},postRender:function(){var n=this,t=n.settings;n._super();n.parent()||!t.width&&!t.height||(n.initLayoutRect(),n.repaint());t.autofocus&&n.focus()},bindStates:function(){function t(t){n.aria("disabled",t);n.classes.toggle("disabled",t)}function i(t){n.aria("pressed",t);n.classes.toggle("active",t)}var n=this;return n.state.on("change:disabled",function(n){t(n.value)}),n.state.on("change:active",function(n){i(n.value)}),n.state.get("disabled")&&t(!0),n.state.get("active")&&i(!0),n._super()},remove:function(){this._super();i&&(i.remove(),i=null)}});return r});i(ar,[h],function(n){return n.extend({Defaults:{value:0},init:function(n){var t=this;t._super(n);t.classes.add("progress");t.settings.filter||(t.settings.filter=function(n){return Math.round(n)})},renderHtml:function(){var t=this,i=t._id,n=this.classPrefix;return'<div id="'+i+'" class="'+t.classes+'"><div class="'+n+'bar-container"><div class="'+n+'bar"><\/div><\/div><div class="'+n+'text">0%<\/div><\/div>'},postRender:function(){var n=this;return n._super(),n.value(n.settings.value),n},bindStates:function(){function t(t){t=n.settings.filter(t);n.getEl().lastChild.innerHTML=t+"%";n.getEl().firstChild.firstChild.style.width=t+"%"}var n=this;return n.state.on("change:value",function(n){t(n.value)}),t(n.state.get("value")),n._super()}})});i(vr,[g,dt,ar,f],function(n,t,i,r){return n.extend({Mixins:[t],Defaults:{classes:"widget notification"},init:function(n){var t=this;t._super(n);n.text&&t.text(n.text);n.icon&&(t.icon=n.icon);n.color&&(t.color=n.color);n.type&&t.classes.add("notification-"+n.type);n.timeout&&(n.timeout<0||n.timeout>0)&&!n.closeButton?t.closeButton=!1:(t.classes.add("has-close"),t.closeButton=!0);n.progressBar&&(t.progressBar=new i);t.on("click",function(n){n.target.className.indexOf(t.classPrefix+"close")!=-1&&t.close()})},renderHtml:function(){var n=this,t=n.classPrefix,i="",r="",u="",f="";return n.icon&&(i='<i class="'+t+"ico "+t+"i-"+n.icon+'"><\/i>'),n.color&&(f=' style="background-color: '+n.color+'"'),n.closeButton&&(r='<button type="button" class="'+t+'close" aria-hidden="true">×<\/button>'),n.progressBar&&(u=n.progressBar.renderHtml()),'<div id="'+n._id+'" class="'+n.classes+'"'+f+' role="presentation">'+i+'<div class="'+t+'notification-inner">'+n.state.get("text")+"<\/div>"+u+r+"<\/div>"},postRender:function(){var n=this;return r.setTimeout(function(){n.$el.addClass(n.classPrefix+"in")}),n._super()},bindStates:function(){var n=this;return n.state.on("change:text",function(t){n.getEl().childNodes[1].innerHTML=t.value}),n.progressBar&&n.progressBar.bindStates(),n._super()},close:function(){var n=this;return n.fire("close").isDefaultPrevented()||n.remove(),n},repaint:function(){var i=this,n,t;n=i.getEl().style;t=i._layoutRect;n.left=t.x+"px";n.top=t.y+"px";n.zIndex=65534}})});i(yr,[vr,f,r],function(n,t,i){return function(r){function o(){if(u.length)return u[u.length-1]}function s(){t.requestAnimationFrame(function(){h();f()})}function h(){for(var n=0;n<u.length;n++)u[n].moveTo(0,0)}function f(){var t,i,n;if(u.length>0&&(t=u.slice(0,1)[0],i=r.inline?r.getElement():r.getContentAreaContainer(),t.moveRel(i,"tc-tc"),u.length>1))for(n=1;n<u.length;n++)u[n].moveRel(u[n-1].getEl(),"bc-tc")}function c(n,t){if(!a(t))return null;var r=i.grep(n,function(n){return l(t,n)});return 0===r.length?null:r[0]}function l(n,t){return n.type===t.settings.type&&n.text===t.settings.text}function a(n){return!n.progressBar&&!n.timeout}var e=this,u=[];e.notifications=u;r.on("remove",function(){for(var n=u.length;n--;)u[n].close()});r.on("ResizeEditor",f);r.on("ResizeWindow",s);e.open=function(t){var i,e;if(!r.removed)return r.editorManager.setActive(r),e=c(u,t),null===e?(i=new n(t),u.push(i),t.timeout>0&&(i.timer=setTimeout(function(){i.close()},t.timeout)),i.on("close",function(){var n=u.length;for(i.timer&&r.getWin().clearTimeout(i.timer);n--;)u[n]===i&&u.splice(n,1);f()}),i.renderTo(),f()):i=e,i};e.close=function(){o()&&o().close()};e.getNotifications=function(){return u};r.on("SkinLoaded",function(){var n=r.settings.service_message;n&&r.notificationManager.open({text:n,type:"warning",timeout:0,icon:""})})}});i(af,[o],function(n){function t(t,i,r){for(var u=[];i&&i!=t;i=i.parentNode)u.push(n.nodeIndex(i,r));return u}function i(n,t){for(var u,r=n,i=t.length-1;i>=0;i--){if(u=r.childNodes,t[i]>u.length-1)return null;r=u[t[i]]}return r}return{create:t,resolve:i}});i(vf,[d,v,p,af,ot,b,u,r,f,w,y,ht],function(n,t,i,r,u,f,e,o,s,h,c,l){return function(a){function b(n,t){try{a.getDoc().execCommand(n,!1,t)}catch(i){}}function g(){var n=a.getDoc().documentMode;return n?n:6}function p(n){return n.isDefaultPrevented()}function ft(n){var t,i;n.dataTransfer&&(a.selection.isCollapsed()&&"IMG"==n.target.tagName&&y.select(n.target),t=a.selection.getContent(),t.length>0&&(i=ut+escape(a.id)+","+escape(t),n.dataTransfer.setData(wt,i)))}function et(n){var t;return n.dataTransfer&&(t=n.dataTransfer.getData(wt),t&&t.indexOf(ut)>=0)?(t=t.substr(ut.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null}function ot(n){a.queryCommandSupported("mceInsertClipboardContent")?a.execCommand("mceInsertClipboardContent",!1,{content:n}):a.execCommand("mceInsertContent",!1,n)}function bt(){function d(n){var t=u.schema.getBlockElements(),i=a.getBody();if("BR"!=n.nodeName)return!1;for(;n!=i&&!t[n.nodeName];n=n.parentNode)if(n.nextSibling)return!1;return!0}function v(n,t){for(var i=n.nextSibling;i&&i!=t;i=i.nextSibling)if((3!=i.nodeType||0!==w.trim(i.data).length)&&i!==t)return!1;return i===t}function c(n,t,r){var e,f,o;if(u.isChildOf(n,a.getBody()))for(o=u.schema.getNonEmptyElements(),e=new i(r||n,n);f=e[t?"next":"prev"]();)if(o[f.nodeName]&&!d(f)||3==f.nodeType&&f.data.length>0)return f}function g(n){var o,r,i,e,s;if(!n.collapsed&&(o=u.getParent(t.getNode(n.startContainer,n.startOffset),u.isBlock),r=u.getParent(t.getNode(n.endContainer,n.endOffset),u.isBlock),s=a.schema.getTextBlockElements(),o!=r&&s[o.nodeName]&&s[r.nodeName]&&"false"!==u.getContentEditable(o)&&"false"!==u.getContentEditable(r)))return n.deleteContents(),i=c(o,!1),e=c(r,!0),u.isEmpty(r)||w(o).append(r.childNodes),w(r).remove(),i?1==i.nodeType?"BR"==i.nodeName?(n.setStartBefore(i),n.setEndBefore(i)):(n.setStartAfter(i),n.setEndAfter(i)):(n.setStart(i,i.data.length),n.setEnd(i,i.data.length)):e&&(1==e.nodeType?(n.setStartBefore(e),n.setEndBefore(e)):(n.setStart(e,0),n.setEnd(e,0))),f.setRng(n),!0}function nt(n,i){var r,f,h,o,e,s,l;if(!n.collapsed)return n;if(e=n.startContainer,s=n.startOffset,3==e.nodeType)if(i){if(s<e.data.length)return n}else if(s>0)return n;if(r=t.getNode(e,s),h=u.getParent(r,u.isBlock),f=c(a.getBody(),i,r),o=u.getParent(f,u.isBlock),l=1===e.nodeType&&s>e.childNodes.length-1,!r||!f)return n;if(o&&h!=o)if(i){if(!v(h,o))return n;1==r.nodeType?"BR"==r.nodeName?n.setStartBefore(r):n.setStartAfter(r):n.setStart(r,r.data.length);1==f.nodeType?n.setEnd(f,0):n.setEndBefore(f)}else{if(!v(o,h))return n;1==f.nodeType?"BR"==f.nodeName?n.setStartBefore(f):n.setStartAfter(f):n.setStart(f,f.data.length);1==r.nodeType&&l?n.setEndAfter(r):n.setEndBefore(r)}return n}function tt(n){var t=f.getRng();if(t=nt(t,n),g(t))return!0}function rt(n,t){function y(n,i){return c=w(i).parents().filter(function(n,t){return!!a.schema.getTextInlineElements()[t.nodeName]}),e=n.cloneNode(!1),c=o.map(c,function(n){return n=n.cloneNode(!1),e.hasChildNodes()?(n.appendChild(e.firstChild),e.appendChild(n)):e.appendChild(n),e.appendChild(n),n}),c.length?(h=u.create("br"),c[0].appendChild(h),u.replace(e,n),t.setStartBefore(h),t.setEndBefore(h),a.selection.setRng(t),h):null}function p(n){return n&&a.schema.getTextBlockElements()[n.tagName]}var b,f,e,v,l,i,s,h,c;if(t.collapsed&&(i=t.startContainer,s=t.startOffset,f=u.getParent(i,u.isBlock),p(f)))if(1==i.nodeType){if(i=i.childNodes[s],i&&"BR"!=i.tagName)return;if(l=n?f.nextSibling:f.previousSibling,u.isEmpty(f)&&p(l)&&u.isEmpty(l)&&y(f,i))return u.remove(l),!0}else if(3==i.nodeType){if(b=r.create(f,i),v=f.cloneNode(!0),i=r.resolve(v,b),n){if(s>=i.data.length)return;i.deleteData(s,1)}else{if(s<=0)return;i.deleteData(s-1,1)}if(u.isEmpty(v))return y(f,i)}}function e(n){var i,t,r;tt(n)||(o.each(a.getBody().getElementsByTagName("*"),function(n){"SPAN"==n.tagName&&n.setAttribute("mce-data-marked",1);!n.hasAttribute("data-mce-style")&&n.hasAttribute("style")&&a.dom.setAttrib(n,"style",a.dom.getAttrib(n,"style"))}),i=new l(function(){}),i.observe(a.getDoc(),{childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"]}),a.getDoc().execCommand(n?"ForwardDelete":"Delete",!1,null),t=a.selection.getRng(),r=t.startContainer.parentNode,o.each(i.takeRecords(),function(n){if(u.isChildOf(n.target,a.getBody())){if("style"==n.attributeName){var i=n.target.getAttribute("data-mce-style");i?n.target.setAttribute("style",i):n.target.removeAttribute("style")}o.each(n.addedNodes,function(n){if("SPAN"==n.nodeName&&!n.getAttribute("mce-data-marked")){var f,i;n==r&&(f=t.startOffset,i=n.firstChild);u.remove(n,!0);i&&(t.setStart(i,f),t.setEnd(i,f),a.selection.setRng(t))}})}}),i.disconnect(),o.each(a.dom.select("span[mce-data-marked]"),function(n){n.removeAttribute("mce-data-marked")}))}function y(n){a.undoManager.transact(function(){e(n)})}var ut=a.getDoc(),u=a.dom,f=a.selection,l=window.MutationObserver,b,h;l||(b=!0,l=function(){function t(n){var t=n.relatedNode||n.target;i.push({target:t,addedNodes:[t]})}function r(n){var t=n.relatedNode||n.target;i.push({target:t,attributeName:n.attrName})}var i=[],n;this.observe=function(i){n=i;n.addEventListener("DOMSubtreeModified",t,!1);n.addEventListener("DOMNodeInsertedIntoDocument",t,!1);n.addEventListener("DOMNodeInserted",t,!1);n.addEventListener("DOMAttrModified",r,!1)};this.disconnect=function(){n.removeEventListener("DOMSubtreeModified",t,!1);n.removeEventListener("DOMNodeInsertedIntoDocument",t,!1);n.removeEventListener("DOMNodeInserted",t,!1);n.removeEventListener("DOMAttrModified",r,!1)};this.takeRecords=function(){return i}});a.on("keydown",function(n){var t=n.keyCode==it,r=n.ctrlKey||n.metaKey;if(!p(n)&&(t||n.keyCode==k)){var i=a.selection.getRng(),u=i.startContainer,f=i.startOffset;if(t&&n.shiftKey)return;if(rt(t,i))return void n.preventDefault();if(!r&&i.collapsed&&3==u.nodeType&&(t?f<u.data.length:f>0))return;n.preventDefault();r&&a.selection.getSel().modify("extend",t?"forward":"backward",n.metaKey?"lineboundary":"word");e(t)}});a.on("keypress",function(t){if(!p(t)&&!f.isCollapsed()&&t.charCode>31&&!n.metaKeyPressed(t)){var r,o,i,h,s,c;r=a.selection.getRng();c=String.fromCharCode(t.charCode);t.preventDefault();o=w(r.startContainer).parents().filter(function(n,t){return!!a.schema.getTextInlineElements()[t.nodeName]});e(!0);o=o.filter(function(n,t){return!w.contains(a.getBody(),t)});o.length?(i=u.createFragment(),o.each(function(n,t){t=t.cloneNode(!1);i.hasChildNodes()?(t.appendChild(i.firstChild),i.appendChild(t)):(s=t,i.appendChild(t));i.appendChild(t)}),s.appendChild(a.getDoc().createTextNode(c)),h=u.getParent(r.startContainer,u.isBlock),u.isEmpty(h)?w(h).empty().append(i):r.insertNode(i),r.setStart(s.firstChild,1),r.setEnd(s.firstChild,1),a.selection.setRng(r)):a.selection.setContent(c)}});a.addCommand("Delete",function(){e()});a.addCommand("ForwardDelete",function(){e(!0)});b||(a.on("dragstart",function(n){h=f.getRng();ft(n)}),a.on("drop",function(n){if(!p(n)){var i=et(n);i&&(n.preventDefault(),s.setEditorTimeout(a,function(){var r=t.getCaretRangeFromPoint(n.x,n.y,ut);h&&(f.setRng(h),h=null,y());f.setRng(r);ot(i.html)}))}}),a.on("cut",function(n){p(n)||!n.clipboardData||a.selection.isCollapsed()||(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData("text/html",a.selection.getContent()),n.clipboardData.setData("text/plain",a.selection.getContent({format:"text"})),s.setEditorTimeout(a,function(){y(!0)}))}))}function kt(){function n(n){var t=v.create("body"),i=n.cloneContents();return t.appendChild(i),y.serializer.serialize(t,{format:"html"})}function i(i){var r,f,u,e;return i.setStart?(f=n(i),u=v.createRng(),u.selectNode(a.getBody()),e=n(u),f===e):i.item?!1:(r=i.duplicate(),r.moveToElementText(a.getBody()),t.compareRanges(i,r))}a.on("keydown",function(n){var u=n.keyCode,r,t;if(!p(n)&&(u==it||u==k)){if(r=a.selection.isCollapsed(),t=a.getBody(),r&&!v.isEmpty(t))return;if(!r&&!i(a.selection.getRng()))return;n.preventDefault();a.setContent("");t.firstChild&&v.isBlock(t.firstChild)?a.selection.setCursorLocation(t.firstChild,0):a.selection.setCursorLocation(t,0);a.nodeChanged()}})}function st(){a.shortcuts.add("meta+a",null,"SelectAll")}function dt(){a.settings.content_editable||v.bind(a.getDoc(),"mousedown mouseup",function(n){var t;if(n.target==a.getDoc().documentElement)if(t=y.getRng(),a.getBody().focus(),"mousedown"==n.type){if(h.isCaretContainer(t.startContainer))return;y.placeCaretAt(n.clientX,n.clientY)}else y.setRng(t)})}function ht(){a.on("keydown",function(n){if(!p(n)&&n.keyCode===k){if(!a.getBody().getElementsByTagName("hr").length)return;if(y.isCollapsed()&&0===y.getRng(!0).startOffset){var i=y.getNode(),t=i.previousSibling;if("HR"==i.nodeName)return v.remove(i),void n.preventDefault();t&&t.nodeName&&"hr"===t.nodeName.toLowerCase()&&(v.remove(t),n.preventDefault())}}})}function gt(){window.Range.prototype.getClientRects||a.on("mousedown",function(n){if(!p(n)&&"HTML"===n.target.nodeName){var t=a.getBody();t.blur();s.setEditorTimeout(a,function(){t.focus()})}})}function ni(){a.on("click",function(n){var t=n.target;/^(IMG|HR)$/.test(t.nodeName)&&"false"!==v.getContentEditableParent(t)&&(n.preventDefault(),y.getSel().setBaseAndExtent(t,0,t,1),a.nodeChanged());"A"==t.nodeName&&v.hasClass(t,"mce-item-anchor")&&(n.preventDefault(),y.select(t))})}function ti(){function n(){var n=v.getAttribs(y.getStart().cloneNode(!1));return function(){var t=y.getStart();t!==a.getBody()&&(v.setAttrib(t,"style",null),tt(n,function(n){t.setAttributeNode(n.cloneNode(!0))}))}}function t(){return!y.isCollapsed()&&v.getParent(y.getStart(),v.isBlock)!=v.getParent(y.getEnd(),v.isBlock)}a.on("keypress",function(i){var r;if(!p(i)&&(8==i.keyCode||46==i.keyCode)&&t())return r=n(),a.getDoc().execCommand("delete",!1,null),r(),i.preventDefault(),!1});v.bind(a.getDoc(),"cut",function(i){var r;!p(i)&&t()&&(r=n(),s.setEditorTimeout(a,function(){r()}))})}function ii(){document.body.setAttribute("role","application")}function nt(){a.on("keydown",function(n){if(!p(n)&&n.keyCode===k&&y.isCollapsed()&&0===y.getRng(!0).startOffset){var t=y.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return n.preventDefault(),!1}})}function ri(){g()>7||(b("RespectVisibilityInDesign",!0),a.contentStyles.push(".mceHideBrInPre pre br {display: none}"),v.addClass(a.getBody(),"mceHideBrInPre"),rt.addNodeFilter("pre",function(n){for(var e=n.length,r,f,i,t;e--;)for(r=n[e].getAll("br"),f=r.length;f--;)i=r[f],t=i.prev,t&&3===t.type&&"\n"!=t.value.charAt(t.value-1)?t.value+="\n":i.parent.insert(new u("#text",3),i,!0).value="\n"}),vt.addNodeFilter("pre",function(n){for(var u=n.length,i,r,f,t;u--;)for(i=n[u].getAll("br"),r=i.length;r--;)f=i[r],t=f.prev,t&&3==t.type&&(t.value=t.value.replace(/\r?\n$/,""))}))}function ui(){v.bind(a.getBody(),"mouseup",function(){var t,n=y.getNode();"IMG"==n.nodeName&&((t=v.getStyle(n,"width"))&&(v.setAttrib(n,"width",t.replace(/[^0-9%]+/g,"")),v.setStyle(n,"width","")),(t=v.getStyle(n,"height"))&&(v.setAttrib(n,"height",t.replace(/[^0-9%]+/g,"")),v.setStyle(n,"height","")))})}function fi(){a.on("keydown",function(t){var r,u,f,e,i;if(!p(t)&&t.keyCode==n.BACKSPACE&&(r=y.getRng(),u=r.startContainer,f=r.startOffset,e=v.getRoot(),i=u,r.collapsed&&0===f)){for(;i&&i.parentNode&&i.parentNode.firstChild==i&&i.parentNode!=e;)i=i.parentNode;"BLOCKQUOTE"===i.tagName&&(a.formatter.toggle("blockquote",null,i),r=v.createRng(),r.setStart(u,0),r.setEnd(u,0),y.setRng(r))}})}function ei(){function n(){lt();b("StyleWithCSS",!1);b("enableInlineTableEditing",!1);d.object_resizing||b("enableObjectResizing",!1)}d.readonly||a.on("BeforeExecCommand MouseDown",n)}function oi(){function n(){tt(v.select("a"),function(n){var t=n.parentNode,i=v.getRoot();if(t.lastChild===n){for(;t&&!v.isBlock(t);){if(t.parentNode.lastChild!==t||t===i)return;t=t.parentNode}v.add(t,"br",{"data-mce-bogus":1})}})}a.on("SetContent ExecCommand",function(t){"setcontent"!=t.type&&"mceInsertLink"!==t.command||n()})}function si(){d.forced_root_block&&a.on("init",function(){b("DefaultParagraphSeparator",d.forced_root_block)})}function hi(){a.on("keydown",function(n){var t;p(n)||n.keyCode!=k||(t=a.getDoc().selection.createRange(),t&&t.item&&(n.preventDefault(),a.undoManager.beforeChange(),v.remove(t.item(0)),a.undoManager.add()))})}function ci(){var n;g()>=10&&(n="",tt("p div h1 h2 h3 h4 h5 h6".split(" "),function(t,i){n+=(i>0?",":"")+t+":empty"}),a.contentStyles.push(n+"{padding-right: 1px !important}"))}function li(){g()<9&&(rt.addNodeFilter("noscript",function(n){for(var r=n.length,t,i;r--;)t=n[r],i=t.firstChild,i&&t.attr("data-mce-innertext",i.value)}),vt.addNodeFilter("noscript",function(n){for(var r=n.length,i,t,e;r--;)i=n[r],t=n[r].firstChild,t?t.value=f.decode(t.value):(e=i.attributes.map["data-mce-innertext"],e&&(i.attr("data-mce-innertext",null),t=new u("#text",3),t.value=e,t.raw=!0,i.append(t)))}))}function ai(){function f(n,t){var i=o.createTextRange();try{i.moveToPoint(n,t)}catch(r){i=null}return i}function e(n){var r;n.button?(r=f(n.x,n.y),r&&(r.compareEndPoints("StartToStart",t)>0?r.setEndPoint("StartToStart",t):r.setEndPoint("EndToEnd",t),r.select())):i()}function i(){var u=n.selection.createRange();t&&!u.item&&0===u.compareEndPoints("StartToEnd",u)&&t.select();v.unbind(n,"mouseup",i);v.unbind(n,"mousemove",e);t=r=0}var n=v.doc,o=n.body,r,t,u;n.documentElement.unselectable=!0;v.bind(n,"mousedown contextmenu",function(o){if("HTML"===o.target.nodeName){if(r&&i(),u=n.documentElement,u.scrollHeight>u.clientHeight)return;r=1;t=f(o.x,o.y);t&&(v.bind(n,"mouseup",i),v.bind(n,"mousemove",e),v.getRoot().focus(),t.select())}})}function vi(){a.on("keyup focusin mouseup",function(t){65==t.keyCode&&n.metaKeyPressed(t)||y.normalize()},!0)}function yi(){a.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function pi(){a.inline||a.on("keydown",function(){document.activeElement==document.body&&a.getWin().focus()})}function ct(){a.inline||(a.contentStyles.push("body {min-height: 150px}"),a.on("click",function(n){var t;if("HTML"==n.target.nodeName){if(e.ie>11)return void a.getBody().focus();t=a.selection.getRng();a.getBody().focus();a.selection.setRng(t);a.selection.normalize();a.nodeChanged()}}))}function wi(){e.mac&&a.on("keydown",function(t){!n.metaKeyPressed(t)||t.shiftKey||37!=t.keyCode&&39!=t.keyCode||(t.preventDefault(),a.selection.getSel().modify("move",37==t.keyCode?"backward":"forward","lineboundary"))})}function bi(){b("AutoUrlDetect",!1)}function ki(){a.on("click",function(n){var t=n.target;do if("A"===t.tagName)return void n.preventDefault();while(t=t.parentNode)});a.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function di(){a.on("init",function(){a.dom.bind(a.getBody(),"submit",function(n){n.preventDefault()})})}function gi(){rt.addNodeFilter("br",function(n){for(var t=n.length;t--;)"Apple-interchange-newline"==n[t].attr("class")&&n[t].remove()})}function nr(){a.on("dragstart",function(n){ft(n)});a.on("drop",function(n){var i,r;p(n)||(i=et(n),i&&i.id!=a.id&&(n.preventDefault(),r=t.getCaretRangeFromPoint(n.x,n.y,a.getDoc()),y.setRng(r),ot(i.html)))})}function lt(){}function tr(){var n;return yt?(n=a.selection.getSel(),!n||!n.rangeCount||0===n.rangeCount):0}function at(){function t(n){var t=new l(n.getBody()),i=n.selection.getRng(),r=c.fromRangeStart(i),u=c.fromRangeEnd(i);return!n.selection.isCollapsed()&&!t.prev(r)&&!t.next(u)}a.on("keypress",function(i){!p(i)&&!y.isCollapsed()&&i.charCode>31&&!n.metaKeyPressed(i)&&t(a)&&(i.preventDefault(),a.setContent(String.fromCharCode(i.charCode)),a.selection.select(a.getBody(),!0),a.selection.collapse(!1),a.nodeChanged())});a.on("keydown",function(n){var i=n.keyCode;p(n)||i!=it&&i!=k||t(a)&&(n.preventDefault(),a.setContent(""),a.nodeChanged())})}var tt=o.each,w=a.$,k=n.BACKSPACE,it=n.DELETE,v=a.dom,y=a.selection,d=a.settings,rt=a.parser,vt=a.serializer,yt=e.gecko,pt=e.ie,ir=e.webkit,ut="data:text/mce-internal,",wt=pt?"Text":"URL";return fi(),kt(),e.windowsPhone||vi(),ir&&(at(),bt(),dt(),ni(),si(),di(),nt(),gi(),e.iOS?(pi(),ct(),ki()):st()),pt&&e.ie<11&&(ht(),ii(),ri(),ui(),hi(),ci(),li(),ai()),e.ie>=11&&(ct(),nt()),e.ie&&(st(),bi(),nr()),yt&&(at(),ht(),gt(),ti(),ei(),oi(),yi(),wi(),nt()),{refreshContentEditable:lt,isHidden:tr}}});i(pr,[ct,o,r],function(n,t,i){function u(n,t){return"selectionchange"==t?n.getDoc():!n.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?n.getDoc().documentElement:n.settings.event_root?(n.eventRoot||(n.eventRoot=f.select(n.settings.event_root)[0]),n.eventRoot):n.getBody()}function e(n,t){function e(n){return!n.hidden&&!n.readonly}var o=u(n,t),i;if(n.delegates||(n.delegates={}),!n.delegates[t])if(n.settings.event_root){if(r||(r={},n.editorManager.on("removeEditor",function(){var t;if(!n.editorManager.activeEditor&&r){for(t in r)n.dom.unbind(u(n,t));r=null}})),r[t])return;i=function(i){for(var o,s=i.target,r=n.editorManager.editors,u=r.length;u--;)o=r[u].getBody(),(o===s||f.isChildOf(s,o))&&e(r[u])&&r[u].fire(t,i)};r[t]=i;f.bind(o,t,i)}else i=function(i){e(n)&&n.fire(t,i)},f.bind(o,t,i),n.delegates[t]=i}var f=t.DOM,r,o={bindPendingEventDelegates:function(){var n=this;i.each(n._pendingNativeEvents,function(t){e(n,t)})},toggleNativeEvent:function(n,t){var i=this;"focus"!=n&&"blur"!=n&&(t?i.initialized?e(i,n):i._pendingNativeEvents?i._pendingNativeEvents.push(n):i._pendingNativeEvents=[n]:i.initialized&&(i.dom.unbind(u(i,n),n,i.delegates[n]),delete i.delegates[n]))},unbindAllNativeEvents:function(){var n=this,t;if(n.delegates){for(t in n.delegates)n.dom.unbind(u(n,t),t,n.delegates[t]);delete n.delegates}n.inline||(n.getBody().onload=null,n.dom.unbind(n.getWin()),n.dom.unbind(n.getDoc()));n.dom.unbind(n.getBody());n.dom.unbind(n.getContainer())}};return i.extend({},n,o)});i(yf,[],function(){function n(n,t,i){try{n.getDoc().execCommand(t,!1,i)}catch(r){}}function i(n){var t,i;return t=n.getBody(),i=function(t){n.dom.getParents(t.target,"a").length>0&&t.preventDefault()},n.dom.bind(t,"click",i),{unbind:function(){n.dom.unbind(t,"click",i)}}}function t(t,r){t._clickBlocker&&(t._clickBlocker.unbind(),t._clickBlocker=null);r?(t._clickBlocker=i(t),t.selection.controlSelection.hideResizeRect(),t.readonly=!0,t.getBody().contentEditable=!1):(t.readonly=!1,t.getBody().contentEditable=!0,n(t,"StyleWithCSS",!1),n(t,"enableInlineTableEditing",!1),n(t,"enableObjectResizing",!1),t.focus(),t.nodeChanged())}function r(n,i){var r=n.readonly?"readonly":"design";i!=r&&(n.initialized?t(n,"readonly"==i):n.on("init",function(){t(n,"readonly"==i)}),n.fire("SwitchMode",{mode:i}))}return{setMode:r}});i(wr,[r,u],function(n,t){var i=n.each,r=n.explode,f={f9:120,f10:121,f11:122},u=n.makeMap("alt,ctrl,shift,meta,access");return function(e){function v(n){var s,o,e={};i(r(n,"+"),function(n){n in u?e[n]=!0:/^[0-9]{2,}$/.test(n)?e.keyCode=parseInt(n,10):(e.charCode=n.charCodeAt(0),e.keyCode=f[n]||n.toUpperCase().charCodeAt(0))});s=[e.keyCode];for(o in u)e[o]?s.push(o):e[o]=!1;return e.id=s.join(","),e.access&&(e.alt=!0,t.mac?e.ctrl=!0:e.shift=!0),e.meta&&(t.mac?e.meta=!0:(e.ctrl=!0,e.meta=!1)),e}function h(t,i,u,f){var o;return o=n.map(r(t,">"),v),o[o.length-1]=n.extend(o[o.length-1],{func:u,scope:f||e}),n.extend(o[0],{desc:e.translate(i),subpatterns:o.slice(1)})}function y(n){return n.altKey||n.ctrlKey||n.metaKey}function p(n){return"keydown"===n.type&&n.keyCode>=112&&n.keyCode<=123}function c(n,t){return!!t&&t.ctrl==n.ctrlKey&&t.meta==n.metaKey&&t.alt==n.altKey&&t.shift==n.shiftKey&&!!(n.keyCode==t.keyCode||n.charCode&&n.charCode==t.charCode)&&(n.preventDefault(),!0)}function l(n){return n.func?n.func.call(n.scope):null}var a=this,s={},o=[];e.on("keyup keypress keydown",function(n){(y(n)||p(n))&&!n.isDefaultPrevented()&&(i(s,function(t){if(c(n,t))return o=t.subpatterns.slice(0),"keydown"==n.type&&l(t),!0}),c(n,o[0])&&(1===o.length&&"keydown"==n.type&&l(o[0]),o.shift()))});a.add=function(t,u,f,o){var c;return c=f,"string"==typeof f?f=function(){e.execCommand(c,!1,null)}:n.isArray(c)&&(f=function(){e.execCommand(c[0],c[1],c[2])}),i(r(n.trim(t.toLowerCase())),function(n){var t=h(n,u,f,o);s[t.id]=t}),!0};a.remove=function(n){var t=h(n);return!!s[t.id]&&(delete s[t.id],!0)}}});i(pf,[nt,r,l],function(n,t,i){return function(r,u){function c(n){var t,i;return i={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"},t=i[n.blob().type.toLowerCase()]||"dat",n.filename()+"."+t}function l(n,t){return n?n.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t}function a(n){return{id:n.id,blob:n.blob,base64:n.base64,filename:i.constant(c(n))}}function o(n,t,i,r){var f,e;f=new XMLHttpRequest;f.open("POST",u.url);f.withCredentials=u.credentials;f.upload.onprogress=function(n){r(n.loaded/n.total*100)};f.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+f.status)};f.onload=function(){var n;return 200!=f.status?void i("HTTP Error: "+f.status):(n=JSON.parse(f.responseText),n&&"string"==typeof n.location?void t(l(u.basePath,n.location)):void i("Invalid JSON: "+f.responseText))};e=new FormData;e.append("file",n.blob(),n.filename());f.send(e)}function v(){return new n(function(n){n([])})}function s(n,t){return{url:t,blobInfo:n,status:!0}}function e(n,t){return{url:"",blobInfo:n,status:!1,error:t}}function h(n,i){t.each(f[n],function(n){n(i)});delete f[n]}function y(t,i,u){return r.markPending(t.blobUri()),new n(function(n){var f,o,v=function(){};try{var l=function(){f&&(f.close(),o=v)},y=function(i){l();r.markUploaded(t.blobUri(),i);h(t.blobUri(),s(t,i));n(s(t,i))},c=function(){l();r.removeFailed(t.blobUri());h(t.blobUri(),e(t,c));n(e(t,c))};o=function(n){n<0||n>100||(f||(f=u()),f.progressBar.value(n))};i(a(t),y,c,o)}catch(p){n(e(t,p.message))}})}function p(n){return n===o}function w(t){var i=t.blobUri();return new n(function(n){f[i]=f[i]||[];f[i].push(n)})}function b(i,f){return i=t.grep(i,function(n){return!r.isUploaded(n.blobUri())}),n.all(t.map(i,function(n){return r.isPending(n.blobUri())?w(n):y(n,u.handler,f)}))}function k(n,t){return!u.url&&p(u.handler)?v():b(n,t)}var f={};return u=t.extend({credentials:!1,handler:o},u),{upload:k}}});i(wf,[nt],function(n){function i(t){return new n(function(n){var i=new XMLHttpRequest;i.open("GET",t,!0);i.responseType="blob";i.onload=function(){200==this.status&&n(this.response)};i.send()})}function t(n){var i,t;return n=decodeURIComponent(n).split(","),t=/data:([^;]+)/.exec(n[0]),t&&(i=t[1]),{type:i,data:n[1]}}function r(i){return new n(function(n){var f,u,r;i=t(i);try{f=atob(i.data)}catch(e){return void n(new Blob([]))}for(u=new Uint8Array(f.length),r=0;r<u.length;r++)u[r]=f.charCodeAt(r);n(new Blob([u],{type:i.type}))})}function u(n){return 0===n.indexOf("blob:")?i(n):0===n.indexOf("data:")?r(n):null}function f(t){return new n(function(n){var i=new FileReader;i.onloadend=function(){n(i.result)};i.readAsDataURL(t)})}return{uriToBlob:u,blobToDataUri:f,parseDataUri:t}});i(bf,[nt,e,l,wf,u],function(n,t,i,r,u){var f=0;return function(e,o){function h(h,c){function v(n,t){var u,i;return 0===n.src.indexOf("blob:")?(i=o.getByUri(n.src),void(i&&t({image:n,blobInfo:i}))):(u=r.parseDataUri(n.src).data,i=o.findFirst(function(n){return n.base64()===u}),void(i?t({image:n,blobInfo:i}):r.uriToBlob(n.src).then(function(i){var e="blobid"+f++,r=o.create(e,i,u);o.add(r);t({image:n,blobInfo:r})})))}var l,a;return c||(c=i.constant(!0)),l=t.filter(h.getElementsByTagName("img"),function(n){var t=n.src;return!!u.fileApi&&!n.hasAttribute("data-mce-bogus")&&!n.hasAttribute("data-mce-placeholder")&&!(!t||t==u.transparentSrc)&&(0===t.indexOf("blob:")?!e.isUploaded(t):0===t.indexOf("data:")&&c(n))}),a=t.map(l,function(t){var i;return s[t.src]?new n(function(n){s[t.src].then(function(i){n({image:t,blobInfo:i.blobInfo})})}):(i=new n(function(n){v(t,n)}).then(function(n){return delete s[n.image.src],n})["catch"](function(n){return delete s[t.src],n}),s[t.src]=i,i)}),n.all(a)}var s={};return{findAll:h}}});i(kf,[e,l],function(n,t){return function(){function e(n,t,i,u){return{id:r(n),filename:r(u||n),blob:r(t),base64:r(i),blobUri:r(URL.createObjectURL(t))}}function o(n){f(n.id())||i.push(n)}function f(n){return u(function(t){return t.id()===n})}function u(t){return n.filter(i,t)[0]}function s(n){return u(function(t){return t.blobUri()==n})}function h(t){i=n.filter(i,function(n){return n.blobUri()!==t||(URL.revokeObjectURL(n.blobUri()),!1)})}function c(){n.each(i,function(n){URL.revokeObjectURL(n.blobUri())});i=[]}var i=[],r=t.constant;return{create:e,add:o,get:f,getByUri:s,findFirst:u,removeByUri:h,destroy:c}}});i(df,[],function(){return function(){function i(n,t){return{status:n,resultUri:t}}function t(t){return t in n}function f(t){var i=n[t];return i?i.resultUri:null}function e(i){return!!t(i)&&n[i].status===r}function o(i){return!!t(i)&&n[i].status===u}function s(t){n[t]=i(r,null)}function h(t,r){n[t]=i(u,r)}function c(t){delete n[t]}function l(){n={}}var r=1,u=2,n={};return{hasBlobUri:t,getResultUri:f,isPending:e,isUploaded:o,markPending:s,markUploaded:h,removeFailed:c,destroy:l}}});i(gf,[e,pf,bf,kf,df],function(n,t,i,r,u){return function(f){function l(n){return function(t){return f.selection?n(t):[]}}function d(){return"?"+(new Date).getTime()}function v(n,t,i){var r=0;do r=n.indexOf(t,r),r!==-1&&(n=n.substring(0,r)+i+n.substr(r+t.length),r+=i.length-t.length+1);while(r!==-1);return n}function y(n,t,i){return n=v(n,'src="'+t+'"','src="'+i+'"'),n=v(n,'data-mce-src="'+t+'"','data-mce-src="'+i+'"')}function p(t,i){n.each(f.undoManager.data,function(r){"fragmented"===r.type?r.fragments=n.map(r.fragments,function(n){return y(n,t,i)}):r.content=y(r.content,t,i)})}function g(){return f.notificationManager.open({text:f.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}function nt(n,t){o.removeByUri(n.src);p(n.src,t);f.$(n).attr({src:e.images_reuse_filename?t+d():t,"data-mce-src":f.convertURL(t,"src")})}function w(i){return h||(h=new t(s,{url:e.images_upload_url,basePath:e.images_upload_base_path,credentials:e.images_upload_credentials,handler:e.images_upload_handler})),a().then(l(function(t){var r;return r=n.map(t,function(n){return n.blobInfo}),h.upload(r,g).then(l(function(r){return r=n.map(r,function(n,i){var r=t[i].image;return n.status&&f.settings.images_replace_blob_uris!==!1&&nt(r,n.url),{element:r,status:n.status}}),i&&i(r),r}))}))}function b(n){if(e.automatic_uploads!==!1)return w(n)}function tt(n){return!e.images_dataimg_filter||e.images_dataimg_filter(n)}function a(){return c||(c=new i(s,o)),c.findAll(f.getBody(),tt).then(l(function(t){return n.each(t,function(n){p(n.image.src,n.blobInfo.blobUri());n.image.src=n.blobInfo.blobUri();n.image.removeAttribute("data-mce-src")}),t}))}function it(){o.destroy();s.destroy();c=h=null}function k(t){return t.replace(/src="(blob:[^"]+)"/g,function(t,i){var u=s.getResultUri(i),r;return u?'src="'+u+'"':(r=o.getByUri(i),r||(r=n.reduce(f.editorManager.editors,function(n,t){return n||t.editorUpload.blobCache.getByUri(i)},null)),r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':t)})}var o=new r,h,c,e=f.settings,s=new u;return f.on("setContent",function(){f.settings.automatic_uploads!==!1?b():a()}),f.on("RawSaveContent",function(n){n.content=k(n.content)}),f.on("getContent",function(n){n.source_view||"raw"==n.format||(n.content=k(n.content))}),f.on("PostRender",function(){f.parser.addNodeFilter("img",function(t){n.each(t,function(n){var i=n.attr("src"),t;o.getByUri(i)||(t=s.getResultUri(i),t&&n.attr("src",t))})})}),{blobCache:o,uploadImages:w,uploadImagesAuto:b,scanForImages:a,destroy:it}}});i(ne,[w,y,s,v,c,tt,f],function(n,t,i,r,u,f,e){var o=i.isContentEditableFalse;return function(t,i){function l(n,i){var r=f.collapse(n.getBoundingClientRect(),i),s,e,o,u,h;return"BODY"==t.tagName?(s=t.ownerDocument.documentElement,e=t.scrollLeft||s.scrollLeft,o=t.scrollTop||s.scrollTop):(h=t.getBoundingClientRect(),e=t.scrollLeft-h.left,o=t.scrollTop-h.top),r.left+=e,r.right+=e,r.top+=o,r.bottom+=o,r.width=1,u=n.offsetWidth-n.clientWidth,u>0&&(i&&(u*=-1),r.left+=u,r.right+=u),r}function a(){for(var o,i,r,e=u("*[contentEditable=false]",t),f=0;f<e.length;f++)o=e[f],i=o.previousSibling,n.endsWithCaretContainer(i)&&(r=i.data,1==r.length?i.parentNode.removeChild(i):i.deleteData(r.length-1,1)),i=o.nextSibling,n.startsWithCaretContainer(i)&&(r=i.data,1==r.length?i.parentNode.removeChild(i):i.deleteData(0,1));return null}function v(f,e){var a,h;return c(),i(e)?(r=n.insertBlock("p",e,f),a=l(e,f),u(r).css("top",a.top),s=u('<div class="mce-visual-caret" data-mce-bogus="all"><\/div>').css(a).appendTo(t),f&&s.addClass("mce-visual-caret-before"),y(),h=e.ownerDocument.createRange(),h.setStart(r,0),h.setEnd(r,0),h):(r=n.insertInline(e,f),h=e.ownerDocument.createRange(),o(r.nextSibling)?(h.setStart(r,0),h.setEnd(r,0)):(h.setStart(r,1),h.setEnd(r,1)),h)}function c(){a();r&&(n.remove(r),r=null);s&&(s.remove(),s=null);clearInterval(h)}function y(){h=e.setInterval(function(){u("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden")},500)}function p(){e.clearInterval(h)}function w(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"}var h,s,r;return{show:v,hide:c,getCss:w,destroy:p}}});i(br,[e,s,tt],function(n,t,i){function r(u){function e(t){return n.map(t,function(n){return n=i.clone(n),n.node=u,n})}if(n.isArray(u))return n.reduce(u,function(n,t){return n.concat(r(t))},[]);if(t.isElement(u))return e(u.getClientRects());if(t.isText(u)){var f=u.ownerDocument.createRange();return f.setStart(u,0),f.setEnd(u,u.data.length),e(f.getClientRects())}}return{getClientRects:r}});i(te,[l,e,br,st,bt,ht,y,tt],function(n,t,i,r,u,f,e,o){function c(n,t,i,f){for(;f=u.findNode(f,n,r.isEditableCaretCandidate,t);)if(i(f))return}function h(n,r,u,f,e,o){function l(f){var c,o,h;for(h=i.getClientRects(f),n==-1&&(h=h.reverse()),c=0;c<h.length;c++)if(o=h[c],!u(o,v)){if(s.length>0&&r(o,t.last(s))&&a++,o.line=a,e(o))return!0;s.push(o)}}var a=0,h,s=[],v;return(v=t.last(o.getClientRects()))?(h=o.getNode(),l(h),c(n,f,l,h),s):s}function l(n,t){return t.line>n}function a(n,t){return t.line===n}function v(n,i,r,u){function y(i){return 1==n?t.last(i.getClientRects()):t.last(i.getClientRects())}var p=new f(i),l,a,v,h,c=[],w=0,s,b;1==n?(l=p.next,a=o.isBelow,v=o.isAbove,h=e.after(u)):(l=p.prev,a=o.isAbove,v=o.isBelow,h=e.before(u));b=y(h);do if(h.isVisible()&&(s=y(h),!v(s,b))){if(c.length>0&&a(s,t.last(c))&&w++,s=o.clone(s),s.position=h,s.line=w,r(s))return c;c.push(s)}while(h=l(h));return c}var s=n.curry,y=s(h,-1,o.isAbove,o.isBelow),p=s(h,1,o.isBelow,o.isAbove);return{upUntil:y,downUntil:p,positionsUntil:v,isAboveLine:s(l),isLine:s(a)}});i(ie,[l,e,s,br,tt,bt,st],function(n,t,i,r,u,f,e){function o(n,t){return Math.abs(n.left-t)}function s(n,t){return Math.abs(n.right-t)}function h(n,i){function r(n,t){return n>=t.left&&n<=t.right}return t.reduce(n,function(n,t){var u,f;return u=Math.min(o(n,i),s(n,i)),f=Math.min(o(t,i),s(t,i)),r(i,t)?t:r(i,n)?n:f==u&&c(t.node)?t:f<u?t:n})}function l(n,t,i,r){for(;r=b(r,n,e.isEditableCaretCandidate,t);)if(i(r))return}function a(n,i){function e(n,u){var e;return e=t.filter(r.getClientRects(u),function(t){return!n(t,i)}),f=f.concat(e),0===e.length}var f=[];return f.push(i),l(-1,n,v(e,u.isAbove),i.node),l(1,n,v(e,u.isBelow),i.node),f}function y(n){return t.filter(t.toArray(n.getElementsByTagName("*")),c)}function p(n,t){return{node:n.node,before:o(n,t)<s(n,t)}}function w(n,i,u){var e,f;return e=r.getClientRects(y(n)),e=t.filter(e,function(n){return u>=n.top&&u<=n.bottom}),f=h(e,i),f&&(f=h(a(n,f),i),f&&c(f.node))?p(f,i):null}var c=i.isContentEditableFalse,b=f.findNode,v=n.curry;return{findClosestClientRect:h,findLineNodeRects:a,closestCaret:w}});i(re,[],function(){var n=function(n){var t,i,r,u;return u=n.getBoundingClientRect(),t=n.ownerDocument,i=t.documentElement,r=t.defaultView,{top:u.top+r.pageYOffset-i.clientTop,left:u.left+r.pageXOffset-i.clientLeft}},t=function(t){return t.inline?n(t.getBody()):{left:0,top:0}},i=function(n){var t=n.getBody();return n.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},r=function(n){var t=n.getBody(),i=n.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},u={left:t.scrollLeft||i.scrollLeft,top:t.scrollTop||i.scrollTop};return n.inline?r:u},u=function(t,i){if(i.target.ownerDocument!==t.getDoc()){var u=n(t.getContentAreaContainer()),f=r(t);return{left:i.pageX-u.left+f.left,top:i.pageY-u.top+f.top}}return{left:i.pageX,top:i.pageY}},f=function(n,t,i){return{pageX:i.left-n.left+t.left,pageY:i.top-n.top+t.top}},e=function(n,r){return f(t(n),i(n),u(n,r))};return{calc:e}});i(ue,[s,e,l,f,o,re],function(n,t,i,r,u,f){var e=n.isContentEditableFalse,h=n.isContentEditableTrue,c=function(n){return e(n)},l=function(n,t,i){return t!==i&&!n.dom.isChildOf(t,i)&&!e(t)},a=function(n){var t=n.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},v=function(n,t,i,r){var u=t.cloneNode(!0),f;return n.dom.setStyles(u,{width:i,height:r}),n.dom.setAttrib(u,"data-mce-selected",null),f=n.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"}),n.dom.setStyles(f,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:i,height:r}),n.dom.setStyles(u,{margin:0,boxSizing:"border-box"}),f.appendChild(u),f},y=function(n,t){n.parentNode!==t&&t.appendChild(n)},p=function(n,t,i,r,u,f){var e=0,o=0;n.style.left=t.pageX+"px";n.style.top=t.pageY+"px";t.pageX+i>u&&(e=t.pageX+i-u);t.pageY+r>f&&(o=t.pageY+r-f);n.style.width=i-e+"px";n.style.height=r-o+"px"},o=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)},w=function(n){return 0===n.button},b=function(n){return n.element},k=function(n,t){return{pageX:t.pageX-n.relX,pageY:t.pageY+5}},d=function(n,r){return function(u){var f;if(w(u)&&(f=t.find(r.dom.getParents(u.target),i.or(e,h)),c(f))){var o=r.dom.getPos(f),s=r.getBody(),l=r.getDoc().documentElement;n.element=f;n.screenX=u.screenX;n.screenY=u.screenY;n.maxX=(r.inline?s.scrollWidth:l.offsetWidth)-2;n.maxY=(r.inline?s.scrollHeight:l.offsetHeight)-2;n.relX=u.pageX-o.x;n.relY=u.pageY-o.y;n.width=f.offsetWidth;n.height=f.offsetHeight;n.ghost=v(r,f,n.width,n.height)}}},g=function(n,t){var i=r.throttle(function(n,i){t._selectionOverrides.hideFakeCaret();t.selection.placeCaretAt(n,i)},0);return function(r){var o=Math.max(Math.abs(r.screenX-n.screenX),Math.abs(r.screenY-n.screenY)),u,e;if(b(n)&&!n.dragging&&o>10){if(u=t.fire("dragstart",{target:n.element}),u.isDefaultPrevented())return;n.dragging=!0;t.focus()}n.dragging&&(e=k(n,f.calc(t,r)),y(n.ghost,t.getBody()),p(n.ghost,e,n.width,n.height,n.maxX,n.maxY),i(r.clientX,r.clientY))}},nt=function(n){var i=n.getSel().getRangeAt(0),t=i.startContainer;return 3===t.nodeType?t.parentNode:t},tt=function(n,t){return function(i){if(n.dragging&&l(t,nt(t.selection),n.element)){var r=a(n.element),u=t.fire("drop",{targetClone:r,clientX:i.clientX,clientY:i.clientY});u.isDefaultPrevented()||(r=u.targetClone,t.undoManager.transact(function(){o(n.element);t.insertContent(t.dom.getOuterHTML(r));t._selectionOverrides.hideFakeCaret()}))}s(n)}},it=function(n,t){return function(){s(n);n.dragging&&t.fire("dragend")}},s=function(n){n.dragging=!1;n.element=null;o(n.ghost)},rt=function(n){var r={},t,o,f,s,e,i;t=u.DOM;i=document;o=d(r,n);f=g(r,n);s=tt(r,n);e=it(r,n);n.on("mousedown",o);n.on("mousemove",f);n.on("mouseup",s);t.bind(i,"mousemove",f);t.bind(i,"mouseup",e);n.on("remove",function(){t.unbind(i,"mousemove",f);t.unbind(i,"mouseup",e)})},ut=function(n){n.on("drop",function(t){var i="undefined"!=typeof t.clientX?n.getDoc().elementFromPoint(t.clientX,t.clientY):null;(e(i)||e(n.dom.getContentEditableParent(i)))&&t.preventDefault()})},ft=function(n){rt(n);ut(n)};return{init:ft}});i(fe,[u,ht,y,w,bt,ne,te,ie,s,v,tt,d,l,e,f,ue],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){function tt(n,t){for(;t=n(t);)if(t.isVisible())return t;return t}function it(h){function li(n){return h.dom.hasClass(n,"mce-offscreen-selection")}function ai(){var n=h.dom.get(wt);return n?n.getElementsByTagName("*")[0]:n}function ct(n){return h.dom.isBlock(n)}function st(n){n&&h.selection.setRng(n)}function bt(){return h.selection.getRng()}function ii(n,t){h.selection.scrollIntoView(n,t)}function it(n,t,i){var r;return r=h.fire("ShowCaret",{target:t,direction:n,before:i}),r.isDefaultPrevented()?null:(ii(t,n===-1),pt.show(i,t))}function kt(n){var t;return t=h.fire("BeforeObjectSelected",{target:n}),t.isDefaultPrevented()?null:vi(n)}function vi(n){var t=n.ownerDocument.createRange();return t.selectNode(n),t}function yi(n,t){var i=u.isInSameBlock(n,t);return!(i||!s.isBr(n.getNode()))||i}function lt(n,t){return t=u.normalizeRange(n,et,t),n==-1?i.fromRangeStart(t):i.fromRangeEnd(t)}function pi(n){return r.isCaretContainerBlock(n.startContainer)}function wi(n,t,i,r){var e,u,f,o;return!r.collapsed&&(e=nt(r),w(e))?it(n,e,n==-1):(o=pi(r),u=lt(n,r),i(u)?kt(u.getNode(n==-1)):(u=t(u))?i(u)?it(n,u.getNode(n==-1),1==n):(f=t(u),i(f)&&yi(u,f)?it(n,f.getNode(n==-1),1==n):o?ft(u.toRange()):null):o?r:null)}function bi(n,t,i){var u,l,a,r,h,f,y,p,s,c;return(s=nt(i),u=lt(n,i),l=t(et,e.isAboveLine(1),u),a=v.filter(l,e.isLine(1)),h=v.last(u.getClientRects()),d(u)&&(s=u.getNode()),k(u)&&(s=u.getNode(!0)),!h)?null:(f=h.left,r=o.findClosestClientRect(a,f),r&&w(r.node))?(y=Math.abs(f-r.left),p=Math.abs(f-r.right),it(n,r.node,y<p)):s&&((c=e.positionsUntil(n,et,e.isAboveLine(1),s),r=o.findClosestClientRect(v.filter(c,e.isLine(1)),f))||(r=v.last(v.filter(c,e.isLine(0)))))?ft(r.position.toRange()):void 0}function ri(t,r){function o(){var t=h.dom.create(h.settings.forced_root_block);return(!n.ie||n.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t}var u,e,f;if(r.collapsed&&h.settings.forced_root_block){if(u=h.dom.getParent(r.startContainer,"PRE"),!u)return;e=1==t?ni(i.fromRangeStart(r)):ti(i.fromRangeStart(r));e||(f=o(),1==t?h.$(u).after(f):h.$(u).before(f),h.selection.select(f,!0),h.selection.collapse())}}function ui(n,t,i,r){var u;return(u=wi(n,t,i,r))?u:(u=ri(n,r),u?u:null)}function fi(n,t,i){var r;return(r=bi(n,t,i))?r:(r=ri(n,i),r?r:null)}function ki(){return tr("*[data-mce-caret]")[0]}function dt(n){n.hasAttribute("data-mce-caret")&&(r.showCaretContainerBlock(n),st(bt()),ii(n[0]))}function ei(n){var t,r;return n=u.normalizeRange(1,et,n),t=i.fromRangeStart(n),w(t.getNode())?it(1,t.getNode(),!t.isAtEnd()):w(t.getNode(!0))?it(1,t.getNode(!0),!1):(r=h.dom.getParent(t.getNode(),a.or(w,g)),w(r)?it(1,r,!1):null)}function ft(n){var t;return n&&n.collapsed?(t=ei(n),t?t:n):n}function ht(n){var t,u,f,e;return w(n)?(w(n.previousSibling)&&(f=n.previousSibling),u=ti(i.before(n)),u||(t=ni(i.after(n))),t&&rt(t.getNode())&&(e=t.getNode()),r.remove(n.previousSibling),r.remove(n.nextSibling),h.dom.remove(n),h.dom.isEmpty(h.getBody())?(h.setContent(""),void h.focus()):f?i.after(f).toRange():e?i.before(e).toRange():u?u.toRange():t?t.toRange():null):null}function at(n){var t=h.schema.getTextBlockElements();return n.nodeName in t}function oi(n){return h.dom.isEmpty(n)}function si(n,t,r){var e=h.dom,u,f,s,o;if(u=e.getParent(t.getNode(),e.isBlock),f=e.getParent(r.getNode(),e.isBlock),n===-1){if(o=r.getNode(!0),k(r)&&ct(o))return at(u)?(oi(u)&&e.remove(u),i.after(o).toRange()):ht(r.getNode(!0))}else if(o=t.getNode(),d(t)&&ct(o))return at(f)?(oi(f)&&e.remove(f),i.before(o).toRange()):ht(t.getNode());if(u===f||!at(u)||!at(f))return null;for(;s=u.firstChild;)f.appendChild(s);return h.dom.remove(u),r.toRange()}function hi(n,t,i,u){var o,f,e,s;return!u.collapsed&&(o=nt(u),w(o))?ft(ht(o)):(f=lt(n,u),i(f)&&r.isCaretContainerBlock(u.startContainer)?(s=n==-1?ot.prev(f):ot.next(f),s?ft(s.toRange()):u):t(f)?ft(ht(f.getNode(n==-1))):(e=n==-1?ot.prev(f):ot.next(f),t(e)?n===-1?si(n,f,e):si(n,e,f):void 0))}function di(){function u(n,t){var i=t(bt());i&&!n.isDefaultPrevented()&&(n.preventDefault(),st(i))}function f(n){for(var t=h.getBody();n&&n!=t;){if(g(n)||w(n))return n;n=n.parentNode}return null}function a(n,t,i){return!i.collapsed&&v.reduce(i.getClientRects(),function(i,r){return i||c.containsXY(r,n,t)},!1)}function nt(n){var t=!1;n.on("touchstart",function(){t=!1});n.on("touchmove",function(){t=!0});n.on("touchend",function(n){var i=f(n.target);w(i)&&(t||(n.preventDefault(),gt(kt(i))))})}function s(){var t,n=f(h.selection.getNode());g(n)&&ct(n)&&h.dom.isEmpty(n)&&(t=h.dom.create("br",{"data-mce-bogus":"1"}),h.$(n).empty().append(t),h.selection.setRng(i.before(t).toRange()))}function tt(n){var t=ki();if(t)return"compositionstart"==n.type?(n.preventDefault(),n.stopPropagation(),void dt(t)):void(r.hasContent(t)&&dt(t))}function rt(n){var t;switch(n.keyCode){case l.DELETE:t=s();break;case l.BACKSPACE:t=s()}t&&n.preventDefault()}var ot=b(ui,1,ni,d),lt=b(ui,-1,ti,k),at=b(hi,1,d,k),pt=b(hi,-1,k,d),wt=b(fi,-1,e.upUntil),ii=b(fi,1,e.downUntil);h.on("mouseup",function(){var n=bt();n.collapsed&&st(ei(n))});h.on("click",function(n){var t;t=f(n.target);t&&(w(t)&&(n.preventDefault(),h.focus()),g(t)&&h.dom.isChildOf(t,h.selection.getNode())&&vt())});h.on("blur NewBlock",function(){vt();yt()});var ri=function(n){var f=new t(n),u,r;return n.firstChild?(u=i.before(n.firstChild),r=f.next(u),r&&!d(r)&&!k(r)):!1},oi=function(n,t){var i=h.dom.getParent(n,h.dom.isBlock),r=h.dom.getParent(t,h.dom.isBlock);return i===r},si=function(n){return!(n.keyCode>=112&&n.keyCode<=123)},vi=function(n,t){var i=h.dom.getParent(n,h.dom.isBlock),r=h.dom.getParent(t,h.dom.isBlock);return i&&!oi(i,r)&&ri(i)};nt(h);h.on("mousedown",function(n){var i,t;(i=f(n.target))?w(i)?(n.preventDefault(),gt(kt(i))):a(n.clientX,n.clientY,h.selection.getRng())||h.selection.placeCaretAt(n.clientX,n.clientY):(vt(),yt(),t=o.closestCaret(et,n.clientX,n.clientY),t&&(vi(n.target,t.node)||(n.preventDefault(),h.getBody().focus(),st(it(1,t.node,t.before)))))});h.on("keydown",function(n){if(!l.modifierPressed(n))switch(n.keyCode){case l.RIGHT:u(n,ot);break;case l.DOWN:u(n,ii);break;case l.LEFT:u(n,lt);break;case l.UP:u(n,wt);break;case l.DELETE:u(n,at);break;case l.BACKSPACE:u(n,pt);break;default:w(h.selection.getNode())&&si(n)&&n.preventDefault()}});h.on("keyup compositionstart",function(n){tt(n);rt(n)},!0);h.on("cut",function(){var n=h.selection.getNode();w(n)&&y.setEditorTimeout(h,function(){st(ft(ht(n)))})});h.on("getSelectionRange",function(n){var t=n.range;if(ut){if(!ut.parentNode)return void(ut=null);t=t.cloneRange();t.selectNode(ut);n.range=t}});h.on("setSelectionRange",function(n){var t;t=gt(n.range);t&&(n.range=t)});h.on("AfterSetSelectionRange",function(n){var t=n.range;ci(t)||yt();li(t.startContainer.parentNode)||vt()});h.on("focus",function(){y.setEditorTimeout(h,function(){h.selection.setRng(ft(h.selection.getRng()))},0)});h.on("copy",function(t){var r=t.clipboardData,i;t.isDefaultPrevented()||!t.clipboardData||n.ie||(i=ai(),i&&(t.preventDefault(),r.clearData(),r.setData("text/html",i.outerHTML),r.setData("text/plain",i.outerText)))});p.init(h)}function gi(){var t=h.contentStyles,n=".mce-content-body";t.push(pt.getCss());t.push(n+" .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}"+n+" *[contentEditable=false] {cursor: default;}"+n+" *[contentEditable=true] {cursor: text;}")}function ci(n){return r.isCaretContainer(n.startContainer)||r.isCaretContainer(n.endContainer)}function gt(t){var u,l=h.$,a=h.dom,i,s,r,o,v,c,e,f,y;if(!t)return null;if(t.collapsed){if(!ci(t)){if(e=lt(1,t),w(e.getNode()))return it(1,e.getNode(),!e.isAtEnd());if(w(e.getNode(!0)))return it(1,e.getNode(!0),!1)}return null}return r=t.startContainer,o=t.startOffset,v=t.endOffset,3==r.nodeType&&0==o&&w(r.parentNode)&&(r=r.parentNode,o=a.nodeIndex(r),r=r.parentNode),1!=r.nodeType?null:(v==o+1&&(u=r.childNodes[o]),w(u)?(f=y=u.cloneNode(!0),c=h.fire("ObjectSelected",{target:u,targetClone:f}),c.isDefaultPrevented()?null:(f=c.targetClone,i=l("#"+wt),0===i.length&&(i=l('<div data-mce-bogus="all" class="mce-offscreen-selection"><\/div>').attr("id",wt),i.appendTo(h.getBody())),t=h.dom.createRng(),f===y&&n.ie?(i.empty().append('<p style="font-size: 0" data-mce-bogus="all"> <\/p>').append(f),t.setStartAfter(i[0].firstChild.firstChild),t.setEndAfter(f)):(i.empty().append(" ").append(f).append(" "),t.setStart(i[0].firstChild,1),t.setEnd(i[0].lastChild,0)),i.css({top:a.getPos(u,h.getBody()).y}),i[0].focus(),s=h.selection.getSel(),s.removeAllRanges(),s.addRange(t),h.$("*[data-mce-selected]").removeAttr("data-mce-selected"),u.setAttribute("data-mce-selected",1),ut=u,t)):null)}function vt(){ut&&(ut.removeAttribute("data-mce-selected"),h.$("#"+wt).remove(),ut=null)}function nr(){pt.destroy();ut=null}function yt(){pt.hide()}var et=h.getBody(),ot=new t(et),ni=b(tt,ot.next),ti=b(tt,ot.prev),pt=new f(h.getBody(),ct),wt="sel-"+h.dom.uniqueId(),ut,tr=h.$;return n.ceFalse&&(di(),gi()),{showBlockCaretContainer:dt,hideFakeCaret:yt,destroy:nr}}var b=a.curry,g=s.isContentEditableTrue,w=s.isContentEditableFalse,rt=s.isElement,k=u.isAfterContentEditableFalse,d=u.isBeforeContentEditableFalse,nt=h.getSelectedNode;return it});i(kr,[],function(){var n=0,t=function(){var n=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+n()+n()+n()},i=function(i){return i+n+++t()};return{uuid:i}});i(ee,[],function(){var n=function(n,t,i){var r=n.sidebars?n.sidebars:[];r.push({name:t,settings:i});n.sidebars=r};return{add:n}});i(dr,[o,c,yt,bu,ot,ki,pt,gi,tr,ir,ef,of,rr,ri,vt,et,cr,yr,k,ii,vf,u,r,f,pr,yf,wr,gf,fe,kr,ee],function(n,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct){function kt(n,t,u){var f=this,o,s,e;o=f.documentBaseUrl=u.documentBaseURL;s=u.baseURI;e=u.defaultSettings;t=bt({id:n,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:o,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,padd_empty_editor:!0,render_ui:!0,indentation:"30px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",validate:!0,entity_encoding:"named",url_converter:f.convertURL,url_converter_scope:f,ie7_compat:!0},e,t);e&&e.external_plugins&&t.external_plugins&&(t.external_plugins=bt({},e.external_plugins,t.external_plugins));f.settings=t;r.language=t.language||"en";r.languageLoad=t.language_load;r.baseURL=u.baseURL;f.id=t.id=n;f.setDirty(!1);f.plugins={};f.documentBaseURI=new y(t.document_base_url||o,{base_uri:s});f.baseURI=s;f.contentCSS=[];f.contentStyles=[];f.shortcuts=new et(f);f.loadedCSS={};f.editorCommands=new v(f);f.suffix=u.suffix;f.editorManager=u;f.inline=t.inline;f.settings.content_editable=f.inline;t.cache_suffix&&(tt.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,""));t.override_viewport===!1&&(tt.overrideViewPort=!1);u.fire("SetupEditor",f);f.execCallback("setup",f);f.$=i.overrideDefaults(function(){return{context:f.inline?f.getBody():f.getDoc(),element:f.getBody()}})}var lt=n.DOM,wt=r.ThemeManager,vt=r.PluginManager,bt=it.extend,at=it.each,gt=it.explode,ni=it.inArray,yt=it.trim,dt=it.resolve,ti=w.Event,ii=tt.gecko,pt=tt.ie;return kt.prototype={render:function(){function f(){lt.unbind(window,"ready",f);n.render()}function e(){var r=p.ScriptLoader,i;(t.language&&"en"!=t.language&&!t.language_url&&(t.language_url=n.editorManager.baseURL+"/langs/"+t.language+".js"),t.language_url&&r.add(t.language_url),t.theme&&"function"!=typeof t.theme&&"-"!=t.theme.charAt(0)&&!wt.urls[t.theme])&&(i=t.theme_url,i=i?n.documentBaseURI.toAbsolute(i):"themes/"+t.theme+"/theme"+u+".js",wt.load(t.theme,i));it.isArray(t.plugins)&&(t.plugins=t.plugins.join(" "));at(t.external_plugins,function(n,i){vt.load(i,n);t.plugins+=" "+i});at(t.plugins.split(/[ ,]/),function(n){if(n=yt(n),n&&!vt.urls[n])if("-"==n.charAt(0)){n=n.substr(1,n.length);var t=vt.dependencies(n);at(t,function(n){var t={prefix:"plugins/",resource:n,suffix:"/plugin"+u+".js"};n=vt.createUrl(t,n);vt.load(n.resource,n)})}else vt.load(n,{prefix:"plugins/",resource:n,suffix:"/plugin"+u+".js"})});r.loadQueue(function(){n.removed||n.init()})}var n=this,t=n.settings,r=n.id,u=n.suffix,i;if(!ti.domLoaded)return void lt.bind(window,"ready",f);n.getElement()&&tt.contentEditable&&(t.inline?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility="hidden"),i=n.getElement().form||lt.getParent(r,"form"),i&&(n.formElement=i,t.hidden_input&&!/TEXTAREA|INPUT/i.test(n.getElement().nodeName)&&(lt.insertAfter(lt.create("input",{type:"hidden",name:r}),r),n.hasHiddenInput=!0),n.formEventDelegate=function(t){n.fire(t.type,t)},lt.bind(i,"submit reset",n.formEventDelegate),n.on("reset",function(){n.setContent(n.startContent,{format:"raw"})}),!t.submit_patch||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return n.editorManager.triggerSave(),n.setDirty(!1),i._mceOldSubmit(i)})),n.windowManager=new b(n),n.notificationManager=new k(n),"xml"==t.encoding&&n.on("GetContent",function(n){n.save&&(n.content=lt.encode(n.content))}),t.add_form_submit_trigger&&n.on("submit",function(){n.initialized&&n.save()}),t.add_unload_trigger&&(n._beforeUnload=function(){!n.initialized||n.destroyed||n.isHidden()||n.save({format:"raw",no_events:!0,set_dirty:!1})},n.editorManager.on("BeforeUnload",n._beforeUnload)),n.editorManager.add(n),e())},init:function(){function w(t){var u=vt.get(t),r,i;if(r=vt.urls[t]||n.documentBaseUrl.replace(/\/$/,""),t=yt(t),u&&ni(k,t)===-1){if(at(vt.dependencies(t),function(n){w(n)}),n.plugins[t])return;i=new u(n,r,n.$);n.plugins[t]=i;i.init&&(i.init(n,r),k.push(t))}}var n=this,t=n.settings,u=n.getElement(),s,r,h,c,i,b,l,f,e,v,a,k=[],y,p,o;if(n.rtl=t.rtl_ui||n.editorManager.i18n.rtl,n.editorManager.i18n.setCode(t.language),t.aria_label=t.aria_label||lt.getAttrib(u,"aria-label",n.getLang("aria.rich_text_area")),n.fire("ScriptsLoaded"),t.theme&&("function"!=typeof t.theme?(t.theme=t.theme.replace(/-/,""),b=wt.get(t.theme),n.theme=new b(n,wt.urls[t.theme]),n.theme.init&&n.theme.init(n,wt.urls[t.theme]||n.documentBaseUrl.replace(/\/$/,""),n.$)):n.theme=t.theme),at(t.plugins.replace(/\-/g,"").split(/[ ,]/),w),t.render_ui&&n.theme&&(n.orgDisplay=u.style.display,"function"!=typeof t.theme?(s=t.width||u.style.width||u.offsetWidth,r=t.height||u.style.height||u.offsetHeight,h=t.min_height||100,v=/^[0-9\.]+(|px)$/i,v.test(""+s)&&(s=Math.max(parseInt(s,10),100)),v.test(""+r)&&(r=Math.max(parseInt(r,10),h)),i=n.theme.renderUI({targetNode:u,width:s,height:r,deltaWidth:t.delta_width,deltaHeight:t.delta_height}),t.content_editable||(r=(i.iframeHeight||r)+("number"==typeof r?i.deltaHeight||0:""),r<h&&(r=h))):(i=t.theme(n,u),i.editorContainer.nodeType&&(i.editorContainer.id=i.editorContainer.id||n.id+"_parent"),i.iframeContainer.nodeType&&(i.iframeContainer.id=i.iframeContainer.id||n.id+"_iframecontainer"),r=i.iframeHeight||u.offsetHeight),n.editorContainer=i.editorContainer),t.content_css&&at(gt(t.content_css),function(t){n.contentCSS.push(n.documentBaseURI.toAbsolute(t))}),t.content_style&&n.contentStyles.push(t.content_style),t.content_editable)return u=c=i=null,n.initContentBody();if(n.iframeHTML=t.doctype+"<html><head>",t.document_base_url!=n.documentBaseUrl&&(n.iframeHTML+='<base href="'+n.documentBaseURI.getURI()+'" />'),!tt.caretAfter&&t.ie7_compat&&(n.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'),n.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',!/#$/.test(document.location.href))for(a=0;a<n.contentCSS.length;a++)y=n.contentCSS[a],n.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+it._addCacheSuffix(y)+'" />',n.loadedCSS[y]=!0;if(f=t.body_id||"tinymce",f.indexOf("=")!=-1&&(f=n.getParam("body_id","","hash"),f=f[n.id]||f),e=t.body_class||"",e.indexOf("=")!=-1&&(e=n.getParam("body_class","","hash"),e=e[n.id]||""),t.content_security_policy&&(n.iframeHTML+='<meta http-equiv="Content-Security-Policy" content="'+t.content_security_policy+'" />'),n.iframeHTML+='<\/head><body id="'+f+'" class="mce-content-body '+e+'" data-id="'+n.id+'"><br><\/body><\/html>',p='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+n.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()',document.domain!=location.hostname&&tt.ie&&tt.ie<12&&(l=p),o=lt.create("iframe",{id:n.id+"_ifr",frameBorder:"0",allowTransparency:"true",title:n.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),style:{width:"100%",height:r,display:"block"}}),o.onload=function(){o.onload=null;n.fire("load")},lt.setAttrib(o,"src",l||'javascript:""'),n.contentAreaContainer=i.iframeContainer,n.iframeElement=o,c=lt.add(i.iframeContainer,o),pt)try{n.getDoc()}catch(d){c.src=l=p}i.editorContainer&&(lt.get(i.editorContainer).style.display=n.orgDisplay,n.hidden=lt.isHidden(i.editorContainer));n.getElement().style.display="none";lt.setAttrib(n.id,"aria-hidden",!0);l||n.initContentBody();u=c=i=null},initContentBody:function(t){var i=this,r=i.settings,y=i.getElement(),v=i.getDoc(),o,p;r.inline||(i.getElement().style.visibility=i.orgVisibility);t||r.content_editable||(v.open(),v.write(i.iframeHTML),v.close());r.content_editable&&(i.on("remove",function(){var n=this.getBody();lt.removeClass(n,"mce-content-body");lt.removeClass(n,"mce-edit-focus");lt.setAttrib(n,"contentEditable",null)}),lt.addClass(y,"mce-content-body"),i.contentDocument=v=r.content_document||document,i.contentWindow=r.content_window||window,i.bodyElement=y,r.content_document=r.content_window=null,r.root_name=y.nodeName.toLowerCase());o=i.getBody();o.disabled=!0;i.readonly=r.readonly;i.readonly||(i.inline&&"static"==lt.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=i.getParam("content_editable_state",!0));o.disabled=!1;i.editorUpload=new ot(i);i.schema=new d(r);i.dom=new n(v,{keep_values:!0,url_converter:i.convertURL,url_converter_scope:i,hex_colors:r.force_hex_style_colors,class_filter:r.class_filter,update_styles:!0,root_element:i.inline?i.getBody():null,collect:r.content_editable,schema:i.schema,onSetAttrib:function(n){i.fire("SetAttrib",n)}});i.parser=new g(r,i.schema);i.parser.addAttributeFilter("src,href,style,tabindex",function(n,t){for(var e=n.length,u,o=i.dom,r,f;e--;)if(u=n[e],r=u.attr(t),f="data-mce-"+t,!u.attributes.map[f]){if(0===r.indexOf("data:")||0===r.indexOf("blob:"))continue;"style"===t?(r=o.serializeStyle(o.parseStyle(r),u.name),r.length||(r=null),u.attr(f,r),u.attr(t,r)):"tabindex"===t?(u.attr(f,r),u.attr(t,null)):u.attr(f,i.convertURL(r,t,u.name))}});i.parser.addNodeFilter("script",function(n){for(var r=n.length,t,i;r--;)t=n[r],i=t.attr("type")||"no/type",0!==i.indexOf("mce-")&&t.attr("type","mce-"+i)});i.parser.addNodeFilter("#cdata",function(n){for(var i=n.length,t;i--;)t=n[i],t.type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"});i.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(n){for(var r=n.length,t,u=i.schema.getNonEmptyElements();r--;)t=n[r],t.isEmpty(u)&&(t.append(new f("br",1)).shortEnded=!0)});i.serializer=new e(r,i);i.selection=new s(i.dom,i.getWin(),i.serializer,i);i.formatter=new h(i);i.undoManager=new c(i);i.forceBlocks=new a(i);i.enterKey=new l(i);i._nodeChangeDispatcher=new u(i);i._selectionOverrides=new st(i);i.fire("PreInit");r.browser_spellcheck||r.gecko_spellcheck||(v.body.spellcheck=!1,lt.setAttrib(o,"spellcheck","false"));i.quirks=new nt(i);i.fire("PostRender");r.directionality&&(o.dir=r.directionality);r.nowrap&&(o.style.whiteSpace="nowrap");r.protect&&i.on("BeforeSetContent",function(n){at(r.protect,function(t){n.content=n.content.replace(t,function(n){return"<!--mce:protected "+escape(n)+"-->"})})});i.on("SetContent",function(){i.addVisual(i.getBody())});r.padd_empty_editor&&i.on("PostProcess",function(n){n.content=n.content.replace(/^(<p[^>]*>(&nbsp;|&#160;|\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")});i.load({initial:!0,format:"html"});i.startContent=i.getContent({format:"raw"});i.initialized=!0;i.bindPendingEventDelegates();i.fire("init");i.focus(!0);i.nodeChanged({initial:!0});i.execCallback("init_instance_callback",i);i.on("compositionstart compositionend",function(n){i.composing="compositionstart"===n.type});i.contentStyles.length>0&&(p="",at(i.contentStyles,function(n){p+=n+"\r\n"}),i.dom.addStyle(p));at(i.contentCSS,function(n){i.loadedCSS[n]||(i.dom.loadCSS(n),i.loadedCSS[n]=!0)});r.auto_focus&&rt.setEditorTimeout(i,function(){var n;n=r.auto_focus===!0?i:i.editorManager.get(r.auto_focus);n.destroyed||n.focus()},100);y=v=o=null},focus:function(n){function h(n){return t.dom.getParent(n,function(n){return"true"===t.dom.getContentEditable(n)})}var t=this,u=t.selection,e=t.settings.content_editable,i,f,s=t.getDoc(),r=t.getBody(),o;if(!n){if(i=u.getRng(),i.item&&(f=i.item(0)),t.quirks.refreshContentEditable(),o=h(u.getNode()),t.$.contains(r,o))return o.focus(),u.normalize(),void t.editorManager.setActive(t);if(e||(tt.opera||t.getBody().focus(),t.getWin().focus()),ii||e){if(r.setActive)try{r.setActive()}catch(c){r.focus()}else r.focus();e&&u.normalize()}f&&f.ownerDocument==s&&(i=s.body.createControlRange(),i.addElement(f),i.select())}t.editorManager.setActive(t)},execCallback:function(n){var r=this,i=r.settings[n],t;if(i)return r.callbackLookup&&(t=r.callbackLookup[n])&&(i=t.func,t=t.scope),"string"==typeof i&&(t=i.replace(/\.\w+$/,""),t=t?dt(t):0,i=dt(i),r.callbackLookup=r.callbackLookup||{},r.callbackLookup[n]={func:i,scope:t}),i.apply(t||r,Array.prototype.slice.call(arguments,1))},translate:function(n){var t=this.settings.language||"en",i=this.editorManager.i18n;return n?(n=i.data[t+"."+n]||n.replace(/\{\#([^\}]+)\}/g,function(n,r){return i.data[t+"."+r]||"{#"+r+"}"}),this.editorManager.translate(n)):""},getLang:function(n,i){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+n]||(i!==t?i:"{#"+n+"}")},getParam:function(n,t,i){var r=n in this.settings?this.settings[n]:t,u;return"hash"===i?(u={},"string"==typeof r?at(r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(","),function(n){n=n.split("=");u[yt(n[0])]=n.length>1?yt(n[1]):yt(n)}):u=r,u):r},nodeChanged:function(n){this._nodeChangeDispatcher.nodeChanged(n)},addButton:function(n,t){var i=this;t.cmd&&(t.onclick=function(){i.execCommand(t.cmd)});t.text||t.icon||(t.icon=n);i.buttons=i.buttons||{};t.tooltip=t.tooltip||t.title;i.buttons[n]=t},addSidebar:function(n,t){return ct.add(this,n,t)},addMenuItem:function(n,t){var i=this;t.cmd&&(t.onclick=function(){i.execCommand(t.cmd)});i.menuItems=i.menuItems||{};i.menuItems[n]=t},addContextToolbar:function(n,t){var i=this,r;i.contextToolbars=i.contextToolbars||[];"string"==typeof n&&(r=n,n=function(n){return i.dom.is(n,r)});i.contextToolbars.push({id:ht.uuid("mcet"),predicate:n,items:t})},addCommand:function(n,t,i){this.editorCommands.addCommand(n,t,i)},addQueryStateHandler:function(n,t,i){this.editorCommands.addQueryStateHandler(n,t,i)},addQueryValueHandler:function(n,t,i){this.editorCommands.addQueryValueHandler(n,t,i)},addShortcut:function(n,t,i,r){this.shortcuts.add(n,t,i,r)},execCommand:function(n,t,i,r){return this.editorCommands.execCommand(n,t,i,r)},queryCommandState:function(n){return this.editorCommands.queryCommandState(n)},queryCommandValue:function(n){return this.editorCommands.queryCommandValue(n)},queryCommandSupported:function(n){return this.editorCommands.queryCommandSupported(n)},show:function(){var n=this;n.hidden&&(n.hidden=!1,n.inline?n.getBody().contentEditable=!0:(lt.show(n.getContainer()),lt.hide(n.id)),n.load(),n.fire("show"))},hide:function(){var n=this,t=n.getDoc();n.hidden||(pt&&t&&!n.inline&&t.execCommand("SelectAll"),n.save(),n.inline?(n.getBody().contentEditable=!1,n==n.editorManager.focusedEditor&&(n.editorManager.focusedEditor=null)):(lt.hide(n.getContainer()),lt.setStyle(n.id,"display",n.orgDisplay)),n.hidden=!0,n.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(n,t){this.fire("ProgressState",{state:n,time:t})},load:function(n){var r=this,i=r.getElement(),u;if(i)return n=n||{},n.load=!0,u=r.setContent(i.value!==t?i.value:i.innerHTML,n),n.element=i,n.no_events||r.fire("LoadContent",n),n.element=i=null,u},save:function(n){var t=this,i=t.getElement(),r,u;if(i&&t.initialized)return n=n||{},n.save=!0,n.element=i,r=n.content=t.getContent(n),n.no_events||t.fire("SaveContent",n),"raw"==n.format&&t.fire("RawSaveContent",n),r=n.content,/TEXTAREA|INPUT/i.test(i.nodeName)?i.value=r:(t.inline||(i.innerHTML=r),(u=lt.getParent(t.id,"form"))&&at(u.elements,function(n){if(n.name==t.id)return n.value=r,!1})),n.element=i=null,n.set_dirty!==!1&&t.setDirty(!1),r},setContent:function(n,t){var i=this,r=i.getBody(),u,f;return t=t||{},t.format=t.format||"html",t.set=!0,t.content=n,t.no_events||i.fire("BeforeSetContent",t),n=t.content,0===n.length||/^\s+$/.test(n)?(f=pt&&pt<11?"":'<br data-mce-bogus="1">',"TABLE"==r.nodeName?n="<tr><td>"+f+"<\/td><\/tr>":/^(UL|OL)$/.test(r.nodeName)&&(n="<li>"+f+"<\/li>"),u=i.settings.forced_root_block,u&&i.schema.isValidChild(r.nodeName.toLowerCase(),u.toLowerCase())?(n=f,n=i.dom.createHTML(u,i.settings.forced_root_block_attrs,n)):pt||n||(n='<br data-mce-bogus="1">'),i.dom.setHTML(r,n),i.fire("SetContent",t)):("raw"!==t.format&&(n=new o({validate:i.validate},i.schema).serialize(i.parser.parse(n,{isRootContent:!0}))),t.content=yt(n),i.dom.setHTML(r,t.content),t.no_events||i.fire("SetContent",t)),t.content},getContent:function(n){var t=this,i,r=t.getBody();return n=n||{},n.format=n.format||"html",n.get=!0,n.getInner=!0,n.no_events||t.fire("BeforeGetContent",n),i="raw"==n.format?t.serializer.getTrimmedContent():"text"==n.format?r.innerText||r.textContent:t.serializer.serialize(r,n),n.content="text"!=n.format?yt(i):i,n.no_events||t.fire("GetContent",n),n.content},insertContent:function(n,t){t&&(n=bt({content:n},t));this.execCommand("mceInsertContent",!1,n)},isDirty:function(){return!this.isNotDirty},setDirty:function(n){var t=!this.isNotDirty;this.isNotDirty=!n;n&&n!=t&&this.fire("dirty")},setMode:function(n){ft.setMode(this,n)},getContainer:function(){var n=this;return n.container||(n.container=lt.get(n.editorContainer||n.id+"_parent")),n.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=lt.get(this.id)),this.targetElm},getWin:function(){var n=this,t;return n.contentWindow||(t=n.iframeElement,t&&(n.contentWindow=t.contentWindow)),n.contentWindow},getDoc:function(){var n=this,t;return n.contentDocument||(t=n.getWin(),t&&(n.contentDocument=t.document)),n.contentDocument},getBody:function(){var n=this.getDoc();return this.bodyElement||(n?n.body:null)},convertURL:function(n,t,i){var r=this,u=r.settings;return u.urlconverter_callback?r.execCallback("urlconverter_callback",n,i,!0,t):!u.convert_urls||i&&"LINK"==i.nodeName||0===n.indexOf("file:")||0===n.length?n:u.relative_urls?r.documentBaseURI.toRelative(n):n=r.documentBaseURI.toAbsolute(n,u.remove_script_host)},addVisual:function(n){var i=this,f=i.settings,r=i.dom,u;n=n||i.getBody();i.hasVisual===t&&(i.hasVisual=f.visual);at(r.select("table,a",n),function(n){var t;switch(n.nodeName){case"TABLE":return u=f.visual_table_class||"mce-item-table",t=r.getAttrib(n,"border"),void(t&&"0"!=t||!i.hasVisual?r.removeClass(n,u):r.addClass(n,u));case"A":return void(r.getAttrib(n,"href",!1)||(t=r.getAttrib(n,"name")||n.id,u=f.visual_anchor_class||"mce-item-anchor",t&&i.hasVisual?r.addClass(n,u):r.removeClass(n,u)))}});i.fire("VisualAid",{element:n,hasVisual:i.hasVisual})},remove:function(){var n=this;n.removed||(n.save(),n.removed=1,n.unbindAllNativeEvents(),n.hasHiddenInput&&lt.remove(n.getElement().nextSibling),n.inline||(pt&&pt<10&&n.getDoc().execCommand("SelectAll",!1,null),lt.setStyle(n.id,"display",n.orgDisplay),n.getBody().onload=null),n.fire("remove"),n.editorManager.remove(n),lt.remove(n.getContainer()),n._selectionOverrides.destroy(),n.editorUpload.destroy(),n.destroy())},destroy:function(n){var t=this,i;if(!t.destroyed){if(!n&&!t.removed)return void t.remove();n||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),t.selection.destroy(),t.dom.destroy());i=t.formElement;i&&(i._mceOldSubmit&&(i.submit=i._mceOldSubmit,i._mceOldSubmit=null),lt.unbind(i,"submit reset",t.formEventDelegate));t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null;t.bodyElement=t.contentDocument=t.contentWindow=null;t.iframeElement=t.targetElm=null;t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null);t.destroyed=1}},uploadImages:function(n){return this.editorUpload.uploadImages(n)},_scanForImages:function(){return this.editorUpload.scanForImages()}},bt(kt.prototype,ut),kt});i(gr,[r],function(n){var t={},i="en";return{setCode:function(n){n&&(i=n,this.rtl=!!this.data[n]&&"rtl"===this.data[n]._dir)},getCode:function(){return i},rtl:!1,add:function(n,i){var r=t[n],u;r||(t[n]=r={});for(u in i)r[u]=i[u];this.setCode(n)},translate:function(r){function u(t){return n.is(t,"function")?Object.prototype.toString.call(t):e(t)?"":""+t}function e(t){return""===t||null===t||n.is(t,"undefined")}function o(t){return t=u(t),n.hasOwn(s,t)?u(s[t]):t}var s=t[i]||{},f;return e(r)?"":n.is(r,"object")&&n.hasOwn(r,"raw")?u(r.raw):(n.is(r,"array")&&(f=r.slice(1),r=o(r[0]).replace(/\{([0-9]+)\}/g,function(t,i){return n.hasOwn(f,i)?u(f[i]):t})),o(r).replace(/{context:\w+}$/,""))},data:t}});i(nu,[o,f,u],function(n,t,i){function o(n){function s(){try{return document.activeElement}catch(n){return document.body}}function c(n,t){return t&&t.startContainer?!n.isChildOf(t.startContainer,n.getRoot())||!n.isChildOf(t.endContainer,n.getRoot())?void 0:{startContainer:t.startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset}:t}function l(n,t){var i;return t.startContainer?(i=n.getDoc().createRange(),i.setStart(t.startContainer,t.startOffset),i.setEnd(t.endContainer,t.endOffset)):i=t,i}function h(n){return!!r.getParent(n,o.isEditorUIElement)}function a(o){var a=o.editor;a.on("init",function(){(a.inline||i.ie)&&("onbeforedeactivate"in document&&i.ie<9?a.dom.bind(a.getBody(),"beforedeactivate",function(n){if(n.target==a.getBody())try{a.lastRng=a.selection.getRng()}catch(t){}}):a.on("nodechange mouseup keyup",function(n){var t=s();"nodechange"==n.type&&n.selectionChange||(t&&t.id==a.id+"_ifr"&&(t=a.getBody()),a.dom.isChildOf(t,a.getBody())&&(a.lastRng=a.selection.getRng()))}),i.webkit&&!u&&(u=function(){var i=n.activeEditor,t;i&&i.selection&&(t=i.selection.getRng(),t&&!t.collapsed&&(a.lastRng=t))},r.bind(document,"selectionchange",u)))});a.on("setcontent",function(){a.lastRng=null});a.on("mousedown",function(){a.selection.lastFocusBookmark=null});a.on("focusin",function(){var t=n.focusedEditor,i;a.selection.lastFocusBookmark&&(i=l(a,a.selection.lastFocusBookmark),a.selection.lastFocusBookmark=null,a.selection.setRng(i));t!=a&&(t&&t.fire("blur",{focusedEditor:a}),n.setActive(a),n.focusedEditor=a,a.fire("focus",{blurredEditor:t}),a.focus(!0));a.lastRng=null});a.on("focusout",function(){t.setEditorTimeout(a,function(){var t=n.focusedEditor;h(s())||t!=a||(a.fire("blur",{focusedEditor:null}),n.focusedEditor=null,a.selection&&(a.selection.lastFocusBookmark=null))})});f||(f=function(t){var i=n.activeEditor,r;r=t.target;i&&r.ownerDocument==document&&(i.selection&&r!=i.getBody()&&(i.selection.lastFocusBookmark=c(i.dom,i.lastRng)),r==document.body||h(r)||n.focusedEditor!=i||(i.fire("blur",{focusedEditor:null}),n.focusedEditor=null))},r.bind(document,"focusin",f));a.inline&&!e&&(e=function(t){var i=n.activeEditor,u=i.dom,r;i.inline&&u&&!u.isChildOf(t.target,i.getBody())&&(r=i.selection.getRng(),r.collapsed||(i.lastRng=r))},r.bind(document,"mouseup",e))}function v(t){n.focusedEditor==t.editor&&(n.focusedEditor=null);n.activeEditor||(r.unbind(document,"selectionchange",u),r.unbind(document,"focusin",f),r.unbind(document,"mouseup",e),u=f=e=null)}n.on("AddEditor",a);n.on("RemoveEditor",v)}var u,f,e,r=n.DOM;return o.isEditorUIElement=function(n){return n.className.toString().indexOf("mce-")!==-1},o});i(hi,[dr,c,o,ri,u,r,nt,ct,gr,nu,yt],function(n,t,i,r,u,f,e,o,s,h,c){function p(n){v(a.editors,function(t){"scroll"===n.type?t.fire("ScrollWindow",n):t.fire("ResizeWindow",n)})}function w(n,i){i!==d&&(i?t(window).on("resize scroll",p):t(window).off("resize scroll",p),d=i)}function b(n){var t=a.editors,r,i;for(delete t[n.id],i=0;i<t.length;i++)if(t[i]==n){t.splice(i,1);r=!0;break}return a.activeEditor==n&&(a.activeEditor=t[0]),a.focusedEditor==n&&(a.focusedEditor=null),r}function g(n){return n&&n.initialized&&!(n.getContainer()||n.getBody()).parentNode&&(b(n),n.unbindAllNativeEvents(),n.destroy(!0),n.removed=!0,n=null),n}var l=i.DOM,nt=f.explode,v=f.each,k=f.extend,tt=0,y,a,d=!1;return a={$:t,majorVersion:"4",minorVersion:"5.1",releaseDate:"2016-12-07",editors:[],i18n:s,activeEditor:null,setup:function(){var i=this,u,t,f="",e,n,s,o,c;if(t=r.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),e=window.tinymce||window.tinyMCEPreInit)u=e.base||e.baseURL,f=e.suffix;else{for(s=document.getElementsByTagName("script"),o=0;o<s.length;o++)if(n=s[o].src,c=n.substring(n.lastIndexOf("/")),/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(n)){c.indexOf(".min")!=-1&&(f=".min");u=n.substring(0,n.lastIndexOf("/"));break}!u&&document.currentScript&&(n=document.currentScript.src,n.indexOf(".min")!=-1&&(f=".min"),u=n.substring(0,n.lastIndexOf("/")))}i.baseURL=new r(t).toAbsolute(u);i.documentBaseURL=t;i.baseURI=new r(i.baseURL);i.suffix=f;i.focusManager=new h(i)},overrideDefaults:function(n){var t,f,i,u;t=n.base_url;t&&(this.baseURL=new r(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new r(this.baseURL));f=n.suffix;n.suffix&&(this.suffix=f);this.defaultSettings=n;i=n.plugin_base_urls;for(u in i)c.PluginManager.urls[u]=i[u]},init:function(i){function y(n,t){return n.inline&&t.tagName.toLowerCase()in a}function p(n,t){window.console&&!window.test&&window.console.log(n,t)}function s(n){var t=n.id;return t||(t=n.name,t=t&&!l.get(t)?n.name:l.uniqueId(),n.setAttribute("id",t)),t}function w(n){var t=i[n];if(t)return t.apply(r,Array.prototype.slice.call(arguments,2))}function h(n,t){return t.constructor===RegExp?t.test(n.className):l.hasClass(n,t)}function b(n){var i,t=[];if(n.types)return v(n.types,function(n){t=t.concat(l.select(n.selector))}),t;if(n.selector)return l.select(n.selector);if(n.target)return[n.target];switch(n.mode){case"exact":i=n.elements||"";i.length>0&&v(nt(i),function(n){var i;(i=l.get(n))?t.push(i):v(document.forms,function(i){v(i.elements,function(i){i.name===n&&(n="mce_editor_"+tt++,l.setAttrib(i,"id",n),t.push(i))})})});break;case"textareas":case"specific_textareas":v(l.select("textarea"),function(i){n.editor_deselector&&h(i,n.editor_deselector)||n.editor_selector&&!h(i,n.editor_selector)||t.push(i)})}return t}function c(){function e(t,i,f){var e=new n(t,i,r);h.push(e);e.on("init",function(){++a===u.length&&o(h)});e.targetElm=e.targetElm||f;e.render()}var a=0,h=[],u;return l.unbind(window,"ready",c),w("onpageload"),u=t.unique(b(i)),i.types?void v(i.types,function(n){f.each(u,function(t){return!l.is(t,n.selector)||(e(s(t),k({},i,n),t),!1)})}):(f.each(u,function(n){g(r.get(n.id))}),u=f.grep(u,function(n){return!r.get(n.id)}),void v(u,function(n){y(i,n)?p("Could not initialize inline editor on invalid inline target element",n):e(s(n),i,n)}))}var r=this,u,a,o;return a=f.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option tbody tfoot thead tr script noscript style textarea video audio iframe object menu"," "),o=function(n){u=n},r.settings=i,l.bind(window,"ready",c),new e(function(n){u?n(u):o=function(t){n(t)}})},get:function(n){return arguments.length?n in this.editors?this.editors[n]:null:this.editors},add:function(n){var t=this,i=t.editors;return i[n.id]=n,i.push(n),w(i,!0),t.activeEditor=n,t.fire("AddEditor",{editor:n}),y||(y=function(){t.fire("BeforeUnload")},l.bind(window,"beforeunload",y)),n},createEditor:function(t,i){return this.add(new n(t,i,this))},remove:function(n){var r=this,u,i=r.editors,t;if(n)return"string"==typeof n?(n=n.selector||n,void v(l.select(n),function(n){t=i[n.id];t&&r.remove(t)})):(t=n,i[t.id]?(b(t)&&r.fire("RemoveEditor",{editor:t}),i.length||l.unbind(window,"beforeunload",y),t.remove(),w(i,i.length>0),t):null);for(u=i.length-1;u>=0;u--)r.remove(i[u])},execCommand:function(t,i,r){var u=this,f=u.get(r);switch(t){case"mceAddEditor":return u.get(r)||new n(r,u.settings,u).render(),!0;case"mceRemoveEditor":return f&&f.remove(),!0;case"mceToggleEditor":return f?(f.isHidden()?f.show():f.hide(),!0):(u.execCommand("mceAddEditor",0,r),!0)}return!!u.activeEditor&&u.activeEditor.execCommand(t,i,r)},triggerSave:function(){v(this.editors,function(n){n.save()})},addI18n:function(n,t){s.add(n,t)},translate:function(n){return s.translate(n)},setActive:function(n){var t=this.activeEditor;this.activeEditor!=n&&(t&&t.fire("deactivate",{relatedTarget:n}),n.fire("activate",{relatedTarget:t}));this.activeEditor=n}},k(a,o),a.setup(),window.tinymce=window.tinyMCE=a,a});i("tinymce/LegacyInput",[hi,r],function(n,t){var i=t.each,r=t.explode;n.on("AddEditor",function(n){var t=n.editor;t.on("preInit",function(){function u(t,r){i(r,function(i,r){i&&n.setStyle(t,r,i)});n.rename(t,"span")}function s(r){n=t.dom;f.convert_fonts_to_spans&&i(n.select("font,u,strike",r.node),function(t){e[t.nodeName.toLowerCase()](n,t)})}var e,o,n,f=t.settings;f.inline_styles&&(o=r(f.font_size_legacy_values),e={font:function(n,t){u(t,{backgroundColor:t.style.backgroundColor,color:t.color,fontFamily:t.face,fontSize:o[parseInt(t.size,10)-1]})},u:function(n,i){"html4"===t.settings.schema&&u(i,{textDecoration:"underline"})},strike:function(n,t){u(t,{textDecoration:"line-through"})}},t.on("PreProcess SetContent",s))})})});i(tu,[ct,r],function(n,t){var i={send:function(n){function u(){!n.async||4==r.readyState||f++>1e4?(n.success&&f<1e4&&200==r.status?n.success.call(n.success_scope,""+r.responseText,r,n):n.error&&n.error.call(n.error_scope,f>1e4?"TIMED_OUT":"GENERAL",r,n),r=null):setTimeout(u,10)}var r,f=0;if(n.scope=n.scope||this,n.success_scope=n.success_scope||n.scope,n.error_scope=n.error_scope||n.scope,n.async=n.async!==!1,n.data=n.data||"",i.fire("beforeInitialize",{settings:n}),r=new XMLHttpRequest){if(r.overrideMimeType&&r.overrideMimeType(n.content_type),r.open(n.type||(n.data?"POST":"GET"),n.url,n.async),n.crossDomain&&(r.withCredentials=!0),n.content_type&&r.setRequestHeader("Content-Type",n.content_type),n.requestheaders&&t.each(n.requestheaders,function(n){r.setRequestHeader(n.key,n.value)}),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r=i.fire("beforeSend",{xhr:r,settings:n}).xhr,r.send(n.data),!n.async)return u();setTimeout(u,10)}}};return t.extend(i,n),i});i(iu,[],function(){function n(t,i){var u,r,e,f;if(i=i||'"',null===t)return"null";if(e=typeof t,"string"==e)return r="\bb\tt\nn\ff\rr\"\"''\\\\",i+t.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(n,t){return'"'===i&&"'"===n?n:(u=r.indexOf(t),u+1?"\\"+r.charAt(u+1):(n=t.charCodeAt().toString(16),"\\u"+"0000".substring(n.length)+n))})+i;if("object"==e){if(t.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(t)){for(u=0,r="[";u<t.length;u++)r+=(u>0?",":"")+n(t[u],i);return r+"]"}r="{";for(f in t)t.hasOwnProperty(f)&&(r+="function"!=typeof t[f]?(r.length>1?","+i:i)+f+i+":"+n(t[f],i):"");return r+"}"}return""+t}return{serialize:n,parse:function(n){try{return window[String.fromCharCode(101)+"val"]("("+n+")")}catch(t){}}}});i(oe,[iu,tu,r],function(n,t,i){function r(n){this.settings=u({},n);this.count=0}var u=i.extend;return r.sendRPC=function(n){return(new r).send(n)},r.prototype={send:function(i){var r=i.error,f=i.success;i=u(this.settings,i);i.success=function(t,u){t=n.parse(t);"undefined"==typeof t&&(t={error:"JSON Parse error."});t.error?r.call(i.error_scope||i.scope,t.error,u):f.call(i.success_scope||i.scope,t.result)};i.error=function(n,t){r&&r.call(i.error_scope||i.scope,n,t)};i.data=n.serialize({id:i.id||"c"+this.count++,method:i.method,params:i.params});i.content_type="application/json";t.send(i)}},r});i(se,[o],function(n){return{callbacks:{},count:0,send:function(i){var r=this,u=n.DOM,f=i.count!==t?i.count:r.count,e="tinymce_jsonp_"+f;r.callbacks[f]=function(n){u.remove(e);delete r.callbacks[f];i.callback(n)};u.add(u.doc.body,"script",{id:e,src:i.url,type:"text/javascript"});r.count++}}});i(he,[],function(){function s(){u=[];for(var t in n)u.push(t);o.length=u.length}function h(){function o(n){var r,i;return i=n!==t?c+n:h.indexOf(",",c),i===-1||i>h.length?null:(r=h.substring(c,i),c=i+1,r)}var e,h,l,c=0,u;if(n={},f){i.load(r);h=i.getAttribute(r)||"";do{if(u=o(),null===u)break;if(e=o(parseInt(u,32)||0),null!==e){if(u=o(),null===u)break;l=o(parseInt(u,32)||0);e&&(n[e]=l)}}while(null!==e);s()}}function e(){var u,e="",t;if(f){for(t in n)u=n[t],e+=(e?",":"")+t.length.toString(32)+","+t+","+u.length.toString(32)+","+u;i.setAttribute(r,e);try{i.save(r)}catch(o){}s()}}var o,i,n,u,r,f;try{if(window.localStorage)return localStorage}catch(c){}return r="tinymce",i=document.documentElement,f=!!i.addBehavior,f&&i.addBehavior("#default#userData"),o={key:function(n){return u[n]},getItem:function(t){return t in n?n[t]:null},setItem:function(t,i){n[t]=""+i;e()},removeItem:function(t){delete n[t];e()},clear:function(){n={};e()}},h(),o});i(ce,[o,et,vt,yt,r,u],function(n,t,i,r,u,f){var e=window.tinymce;return e.DOM=n.DOM,e.ScriptLoader=i.ScriptLoader,e.PluginManager=r.PluginManager,e.ThemeManager=r.ThemeManager,e.dom=e.dom||{},e.dom.Event=t.Event,u.each("trim isArray is toArray makeMap each map grep inArray extend create walk createNS resolve explode _addCacheSuffix".split(" "),function(n){e[n]=u[n]}),u.each("isOpera isWebKit isIE isGecko isMac".split(" "),function(n){e[n]=f[n.substr(2).toLowerCase()]}),{}});i(ci,[it,r],function(n,t){return n.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(n){this.settings=t.extend({},this.Defaults,n)},preRender:function(n){n.bodyClasses.add(this.settings.containerClass)},applyClasses:function(n){var e=this,i=e.settings,r,u,t,f;r=i.firstControlClass;u=i.lastControlClass;n.each(function(n){n.classes.remove(r).remove(u).add(i.controlClass);n.visible()&&(t||(t=n),f=n)});t&&t.classes.add(r);f&&f.classes.add(u)},renderHtml:function(n){var i=this,t="";return i.applyClasses(n.items()),n.items().each(function(n){t+=n.renderHtml()}),t},recalc:function(){},postRender:function(){},isNative:function(){return!1}})});i(gt,[ci],function(n){return n.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(n){n.items().filter(":visible").each(function(n){var t=n.settings;n.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h});n.recalc&&n.recalc()})},renderHtml:function(n){return'<div id="'+n._id+'-absend" class="'+n.classPrefix+'abs-end"><\/div>'+this._super(n)}})});i(li,[h],function(n){return n.extend({Defaults:{classes:"widget btn",role:"button"},init:function(n){var t=this,i;t._super(n);n=t.settings;i=t.settings.size;t.on("click mousedown",function(n){n.preventDefault()});t.on("touchstart",function(n){t.fire("click",n);n.preventDefault()});n.subtype&&t.classes.add(n.subtype);i&&t.classes.add("btn-"+i);n.icon&&t.icon(n.icon)},icon:function(n){return arguments.length?(this.state.set("icon",n),this):this.state.get("icon")},repaint:function(){var t=this.getEl().firstChild,n;t&&(n=t.style,n.width=n.height="100%");this._super()},renderHtml:function(){var t=this,u=t._id,r=t.classPrefix,i=t.state.get("icon"),n,f=t.state.get("text"),e="";return n=t.settings.image,n?(i="none","string"!=typeof n&&(n=window.getSelection?n[0]:n[1]),n=" style=\"background-image: url('"+n+"')\""):n="",f&&(t.classes.add("btn-has-text"),e='<span class="'+r+'txt">'+t.encode(f)+"<\/span>"),i=i?r+"ico "+r+"i-"+i:"",'<div id="'+u+'" class="'+t.classes+'" tabindex="-1" aria-labelledby="'+u+'"><button role="presentation" type="button" tabindex="-1">'+(i?'<i class="'+i+'"'+n+"><\/i>":"")+e+"<\/button><\/div>"},bindStates:function(){function r(r){var u=t("span."+i,n.getEl());r?(u[0]||(t("button:first",n.getEl()).append('<span class="'+i+'"><\/span>'),u=t("span."+i,n.getEl())),u.html(n.encode(r))):u.remove();n.classes.toggle("btn-has-text",!!r)}var n=this,t=n.$,i=n.classPrefix+"txt";return n.state.on("change:text",function(n){r(n.value)}),n.state.on("change:icon",function(t){var f=t.value,e=n.classPrefix,u,i;n.settings.icon=f;f=f?e+"ico "+e+"i-"+n.settings.icon:"";u=n.getEl().firstChild;i=u.getElementsByTagName("i")[0];f?(i&&i==u.firstChild||(i=document.createElement("i"),u.insertBefore(i,u.firstChild)),i.className=f):i&&u.removeChild(i);r(n.state.get("text"))}),n._super()}})});i(le,[rt],function(n){return n.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var n=this,t=n._layout;return n.classes.add("btn-group"),n.preRender(),t.preRender(n),'<div id="'+n._id+'" class="'+n.classes+'"><div id="'+n._id+'-body">'+(n.settings.html||"")+t.renderHtml(n)+"<\/div><\/div>"}})});i(ru,[h],function(n){return n.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(n){var t=this;t._super(n);t.on("click mousedown",function(n){n.preventDefault()});t.on("click",function(n){n.preventDefault();t.disabled()||t.checked(!t.checked())});t.checked(t.settings.checked)},checked:function(n){return arguments.length?(this.state.set("checked",n),this):this.state.get("checked")},value:function(n){return arguments.length?this.checked(n):this.checked()},renderHtml:function(){var n=this,t=n._id,i=n.classPrefix;return'<div id="'+t+'" class="'+n.classes+'" unselectable="on" aria-labelledby="'+t+'-al" tabindex="-1"><i class="'+i+"ico "+i+'i-checkbox"><\/i><span id="'+t+'-al" class="'+i+'label">'+n.encode(n.state.get("text"))+"<\/span><\/div>"},bindStates:function(){function t(t){n.classes.toggle("checked",t);n.aria("checked",t)}var n=this;return n.state.on("change:text",function(t){n.getEl("al").firstChild.data=n.translate(t.value)}),n.state.on("change:checked change:value",function(i){n.fire("change");t(i.value)}),n.state.on("change:icon",function(t){var r=t.value,f=n.classPrefix,u,i;if("undefined"==typeof r)return n.settings.icon;n.settings.icon=r;r=r?f+"ico "+f+"i-"+n.settings.icon:"";u=n.getEl().firstChild;i=u.getElementsByTagName("i")[0];r?(i&&i==u.firstChild||(i=document.createElement("i"),u.insertBefore(i,u.firstChild)),i.className=r):i&&u.removeChild(i)}),n.state.get("checked")&&t(!0),n._super()}})});i(ai,[h,lt,a,c,d,r],function(n,t,i,r,u,f){return n.extend({init:function(n){var t=this;t._super(n);n=t.settings;t.classes.add("combobox");t.subinput=!0;t.ariaTarget="inp";n.menu=n.menu||n.values;n.menu&&(n.icon="caret");t.on("click",function(i){var u=i.target,f=t.getEl();if(r.contains(f,u)||u==f)for(;u&&u!=f;)u.id&&u.id.indexOf("-open")!=-1&&(t.fire("action"),n.menu&&(t.showMenu(),i.aria&&t.menu.items()[0].focus())),u=u.parentNode});t.on("keydown",function(n){var i;13==n.keyCode&&"INPUT"===n.target.nodeName&&(n.preventDefault(),t.parents().reverse().each(function(n){if(n.toJSON)return i=n,!1}),t.fire("submit",{data:i.toJSON()}))});t.on("keyup",function(n){if("INPUT"==n.target.nodeName){var r=t.state.get("value"),i=n.target.value;i!==r&&(t.state.set("value",i),t.fire("autocomplete",n))}});t.on("mouseover",function(n){var i=t.tooltip().moveTo(-65535),u,r;t.statusLevel()&&n.target.className.indexOf(t.classPrefix+"status")!==-1&&(u=t.statusMessage()||"Ok",r=i.text(u).show().testMoveRel(n.target,["bc-tc","bc-tl","bc-tr"]),i.classes.toggle("tooltip-n","bc-tc"==r),i.classes.toggle("tooltip-nw","bc-tl"==r),i.classes.toggle("tooltip-ne","bc-tr"==r),i.moveRel(n.target,r))})},statusLevel:function(n){return arguments.length>0&&this.state.set("statusLevel",n),this.state.get("statusLevel")},statusMessage:function(n){return arguments.length>0&&this.state.set("statusMessage",n),this.state.get("statusMessage")},showMenu:function(){var n=this,r=n.settings,i;n.menu||(i=r.menu||[],i.length?i={type:"menu",items:i}:i.type=i.type||"menu",n.menu=t.create(i).parent(n).renderTo(n.getContainerElm()),n.fire("createmenu"),n.menu.reflow(),n.menu.on("cancel",function(t){t.control===n.menu&&n.focus()}),n.menu.on("show hide",function(t){t.control.items().each(function(t){t.active(t.value()==n.value())})}).fire("show"),n.menu.on("select",function(t){n.value(t.control.value())}),n.on("focusin",function(t){"INPUT"==t.target.tagName.toUpperCase()&&n.menu.hide()}),n.aria("expanded",!0));n.menu.show();n.menu.layoutRect({w:n.layoutRect().w});n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},focus:function(){this.getEl("inp").focus()},repaint:function(){var n=this,c=n.getEl(),f=n.getEl("open"),e=n.layoutRect(),o,s,h=0,u=c.firstChild,t;return n.statusLevel()&&"none"!==n.statusLevel()&&(h=parseInt(i.getRuntimeStyle(u,"padding-right"),10)-parseInt(i.getRuntimeStyle(u,"padding-left"),10)),o=f?e.w-i.getSize(f).width-10:e.w-10,t=document,t.all&&(!t.documentMode||t.documentMode<=8)&&(s=n.layoutRect().h-2+"px"),r(u).css({width:o-h,lineHeight:s}),n._super(),n},postRender:function(){var n=this;return r(this.getEl("inp")).on("change",function(t){n.state.set("value",t.target.value);n.fire("change",t)}),n._super()},renderHtml:function(){var t=this,f=t._id,n=t.settings,r=t.classPrefix,h=t.state.get("value")||"",i,e,o="",u="",s="";return"spellcheck"in n&&(u+=' spellcheck="'+n.spellcheck+'"'),n.maxLength&&(u+=' maxlength="'+n.maxLength+'"'),n.size&&(u+=' size="'+n.size+'"'),n.subtype&&(u+=' type="'+n.subtype+'"'),s='<i id="'+f+'-status" class="mce-status mce-ico" style="display: none"><\/i>',t.disabled()&&(u+=' disabled="disabled"'),i=n.icon,i&&"caret"!=i&&(i=r+"ico "+r+"i-"+n.icon),e=t.state.get("text"),(i||e)&&(o='<div id="'+f+'-open" class="'+r+"btn "+r+'open" tabIndex="-1" role="button"><button id="'+f+'-action" type="button" hidefocus="1" tabindex="-1">'+("caret"!=i?'<i class="'+i+'"><\/i>':'<i class="'+r+'caret"><\/i>')+(e?(i?" ":"")+e:"")+"<\/button><\/div>",t.classes.add("has-open")),'<div id="'+f+'" class="'+t.classes+'"><input id="'+f+'-inp" class="'+r+'textbox" value="'+t.encode(h,!1)+'" hidefocus="1"'+u+' placeholder="'+t.encode(n.placeholder)+'" />'+s+o+"<\/div>"},value:function(n){return arguments.length?(this.state.set("value",n),this):(this.state.get("rendered")&&this.state.set("value",this.getEl("inp").value),this.state.get("value"))},showAutoComplete:function(n,i){var r=this,e,u;if(0===n.length)return void r.hideMenu();e=function(n,t){return function(){r.fire("selectitem",{title:t,value:n})}};r.menu?r.menu.items().remove():r.menu=t.create({type:"menu",classes:"combobox-menu",layout:"flow"}).parent(r).renderTo();f.each(n,function(n){r.menu.add({text:n.title,url:n.previewUrl,match:i,classes:"menu-item-ellipsis",onclick:e(n.value,n.title)})});r.menu.renderNew();r.hideMenu();r.menu.on("cancel",function(n){n.control.parent()===r.menu&&(n.stopPropagation(),r.focus(),r.hideMenu())});r.menu.on("select",function(){r.focus()});u=r.layoutRect().w;r.menu.layoutRect({w:u,minW:0,maxW:u});r.menu.reflow();r.menu.show();r.menu.moveRel(r.getEl(),r.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},hideMenu:function(){this.menu&&this.menu.hide()},bindStates:function(){var n=this,t;return n.state.on("change:value",function(t){n.getEl("inp").value!=t.value&&(n.getEl("inp").value=t.value)}),n.state.on("change:disabled",function(t){n.getEl("inp").disabled=t.value}),n.state.on("change:statusLevel",function(t){var u=n.getEl("status"),f=n.classPrefix,r=t.value;i.css(u,"display","none"===r?"none":"");i.toggleClass(u,f+"i-checkmark","ok"===r);i.toggleClass(u,f+"i-warning","warn"===r);i.toggleClass(u,f+"i-error","error"===r);n.classes.toggle("has-status","none"!==r);n.repaint()}),i.on(n.getEl("status"),"mouseleave",function(){n.tooltip().hide()}),n.on("cancel",function(t){n.menu&&n.menu.visible()&&(t.stopPropagation(),n.hideMenu())}),t=function(n,t){t&&t.items().length>0&&t.items().eq(n)[0].focus()},n.on("keydown",function(i){var r=i.keyCode;"INPUT"===i.target.nodeName&&(r===u.DOWN?(i.preventDefault(),n.fire("autocomplete"),t(0,n.menu)):r===u.UP&&(i.preventDefault(),t(-1,n.menu)))}),n._super()},remove:function(){r(this.getEl("inp")).off();this.menu&&this.menu.remove();this._super()}})});i(ae,[ai],function(n){return n.extend({init:function(n){var t=this;n.spellcheck=!1;n.onaction&&(n.icon="none");t._super(n);t.classes.add("colorbox");t.on("change keyup postrender",function(){t.repaintColor(t.value())})},repaintColor:function(n){var t=this.getEl("open"),i=t?t.getElementsByTagName("i")[0]:null;if(i)try{i.style.background=n}catch(r){}},bindStates:function(){var n=this;return n.state.on("change:value",function(t){n.state.get("rendered")&&n.repaintColor(t.value)}),n._super()}})});i(uu,[li,at],function(n,t){return n.extend({showPanel:function(){var n=this,r=n.settings,i;(n.active(!0),n.panel)?n.panel.show():(i=r.panel,i.type&&(i={layout:"grid",items:i}),i.role=i.role||"dialog",i.popover=!0,i.autohide=!0,i.ariaRoot=!0,n.panel=new t(i).on("hide",function(){n.active(!1)}).on("cancel",function(t){t.stopPropagation();n.focus();n.hidePanel()}).parent(n).renderTo(n.getContainerElm()),n.panel.fire("show"),n.panel.reflow());n.panel.moveRel(n.getEl(),r.popoverAlign||(n.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var n=this;n.panel&&n.panel.hide()},postRender:function(){var n=this;return n.aria("haspopup",!0),n.on("click",function(t){t.control===n&&(n.panel&&n.panel.visible()?n.hidePanel():(n.showPanel(),n.panel.focus(!!t.aria)))}),n._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}})});i(ve,[uu,o],function(n,t){var i=t.DOM;return n.extend({init:function(n){this._super(n);this.classes.add("colorbutton")},color:function(n){return n?(this._color=n,this.getEl("preview").style.backgroundColor=n,this):this._color},resetColor:function(){return this._color=null,this.getEl("preview").style.backgroundColor=null,this},renderHtml:function(){var n=this,i=n._id,t=n.classPrefix,r=n.state.get("text"),u=n.settings.icon?t+"ico "+t+"i-"+n.settings.icon:"",e=n.settings.image?" style=\"background-image: url('"+n.settings.image+"')\"":"",f="";return r&&(n.classes.add("btn-has-text"),f='<span class="'+t+'txt">'+n.encode(r)+"<\/span>"),'<div id="'+i+'" class="'+n.classes+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(u?'<i class="'+u+'"'+e+"><\/i>":"")+'<span id="'+i+'-preview" class="'+t+'preview"><\/span>'+f+'<\/button><button type="button" class="'+t+'open" hidefocus="1" tabindex="-1"> <i class="'+t+'caret"><\/i><\/button><\/div>'},postRender:function(){var n=this,t=n.settings.onclick;return n.on("click",function(r){r.aria&&"down"==r.aria.key||r.control!=n||i.getParent(r.target,"."+n.classPrefix+"open")||(r.stopImmediatePropagation(),t.call(n,r))}),delete n.settings.onclick,n._super()}})});i(fu,[],function(){function r(r){function h(r,u,f){var s,c,h,l,e,o;return s=0,c=0,h=0,r/=255,u/=255,f/=255,e=t(r,t(u,f)),o=i(r,i(u,f)),e==o?(h=e,{h:0,s:0,v:100*h}):(l=r==e?u-f:f==e?r-u:f-r,s=r==e?3:f==e?1:5,s=60*(s-l/(o-e)),c=(o-e)/o,h=o,{h:n(s),s:n(100*c),v:n(100*h)})}function c(r,o,s){var a,h,c,l;if(r=(parseInt(r,10)||0)%360,o=parseInt(o,10)/100,s=parseInt(s,10)/100,o=i(0,t(o,1)),s=i(0,t(s,1)),0===o)return void(u=f=e=n(255*s));switch(a=r/60,h=s*o,c=h*(1-Math.abs(a%2-1)),l=s-h,Math.floor(a)){case 0:u=h;f=c;e=0;break;case 1:u=c;f=h;e=0;break;case 2:u=0;f=h;e=c;break;case 3:u=0;f=c;e=h;break;case 4:u=c;f=0;e=h;break;case 5:u=h;f=0;e=c;break;default:u=f=e=0}u=n(255*(u+l));f=n(255*(f+l));e=n(255*(e+l))}function l(){function n(n){return n=parseInt(n,10).toString(16),n.length>1?n:"0"+n}return"#"+n(u)+n(f)+n(e)}function a(){return{r:u,g:f,b:e}}function v(){return h(u,f,e)}function s(n){var t;return"object"==typeof n?"r"in n?(u=n.r,f=n.g,e=n.b):"v"in n&&c(n.h,n.s,n.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(n))?(u=parseInt(t[1],10),f=parseInt(t[2],10),e=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(n))?(u=parseInt(t[1],16),f=parseInt(t[2],16),e=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(n))&&(u=parseInt(t[1]+t[1],16),f=parseInt(t[2]+t[2],16),e=parseInt(t[3]+t[3],16)),u=u<0?0:u>255?255:u,f=f<0?0:f>255?255:f,e=e<0?0:e>255?255:e,o}var o=this,u=0,f=0,e=0;r&&s(r);o.toRgb=a;o.toHsv=v;o.toHex=l;o.parse=s}var t=Math.min,i=Math.max,n=Math.round;return r});i(ye,[h,ut,a,fu],function(n,t,i,r){return n.extend({Defaults:{classes:"widget colorpicker"},init:function(n){this._super(n)},postRender:function(){function o(n,t){var f=i.getPos(n),r,u;return r=t.pageX-f.x,u=t.pageY-f.y,r=Math.max(0,Math.min(r/n.clientWidth,1)),u=Math.max(0,Math.min(u/n.clientHeight,1)),{x:r,y:u}}function f(t,u){var f=(360-t.h)/360;i.css(a,{top:100*f+"%"});u||i.css(v,{left:t.s+"%",top:100-t.v+"%"});e.style.background=new r({s:100,v:100,h:t.h}).toHex();n.color().parse({s:t.s,v:t.v,h:t.h})}function s(t){var i;i=o(e,t);u.s=100*i.x;u.v=100*(1-i.y);f(u);n.fire("change")}function h(t){var i;i=o(l,t);u=c.toHsv();u.h=360*(1-i.y);f(u,!0);n.fire("change")}var n=this,c=n.color(),u,l,a,e,v;l=n.getEl("h");a=n.getEl("hp");e=n.getEl("sv");v=n.getEl("svp");n._repaint=function(){u=c.toHsv();f(u)};n._super();n._svdraghelper=new t(n._id+"-sv",{start:s,drag:s});n._hdraghelper=new t(n._id+"-h",{start:h,drag:h});n._repaint()},rgb:function(){return this.color().toRgb()},value:function(n){var t=this;return arguments.length?(t.color().parse(n),void(t._rendered&&t._repaint())):t.color().toHex()},color:function(){return this._color||(this._color=new r),this._color},renderHtml:function(){function f(){var t,u,e="",f,i;for(f="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=",i=r.split(","),t=0,u=i.length-1;t<u;t++)e+='<div class="'+n+'colorpicker-h-chunk" style="height:'+100/u+"%;"+f+i[t]+",endColorstr="+i[t+1]+");-ms-"+f+i[t]+",endColorstr="+i[t+1]+')"><\/div>';return e}var i=this,t=i._id,n=i.classPrefix,u,r="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000",e="background: -ms-linear-gradient(top,"+r+");background: linear-gradient(to bottom,"+r+");";return u='<div id="'+t+'-h" class="'+n+'colorpicker-h" style="'+e+'">'+f()+'<div id="'+t+'-hp" class="'+n+'colorpicker-h-marker"><\/div><\/div>','<div id="'+t+'" class="'+i.classes+'"><div id="'+t+'-sv" class="'+n+'colorpicker-sv"><div class="'+n+'colorpicker-overlay1"><div class="'+n+'colorpicker-overlay2"><div id="'+t+'-svp" class="'+n+'colorpicker-selector1"><div class="'+n+'colorpicker-selector2"><\/div><\/div><\/div><\/div><\/div>'+u+"<\/div>"}})});i(eu,[h],function(n){return n.extend({init:function(n){var t=this;n.delimiter||(n.delimiter="»");t._super(n);t.classes.add("path");t.canFocus=!0;t.on("click",function(n){var i,r=n.target;(i=r.getAttribute("data-index"))&&t.fire("select",{value:t.row()[i],index:i})});t.row(t.settings.row)},focus:function(){var n=this;return n.getEl().firstChild.focus(),n},row:function(n){return arguments.length?(this.state.set("row",n),this):this.state.get("row")},renderHtml:function(){var n=this;return'<div id="'+n._id+'" class="'+n.classes+'">'+n._getDataPathHtml(n.state.get("row"))+"<\/div>"},bindStates:function(){var n=this;return n.state.on("change:row",function(t){n.innerHtml(n._getDataPathHtml(t.value))}),n._super()},_getDataPathHtml:function(n){for(var u=this,e=n||[],i="",r=u.classPrefix,t=0,f=e.length;t<f;t++)i+=(t>0?'<div class="'+r+'divider" aria-hidden="true"> '+u.settings.delimiter+" <\/div>":"")+'<div role="button" class="'+r+"path-item"+(t==f-1?" "+r+"last":"")+'" data-index="'+t+'" tabindex="-1" id="'+u._id+"-"+t+'" aria-level="'+(t+1)+'">'+e[t].name+"<\/div>";return i||(i='<div class="'+r+'path-item"> <\/div>'),i}})});i(pe,[eu],function(n){return n.extend({postRender:function(){function i(n){return 1===n.nodeType&&("BR"==n.nodeName||n.getAttribute("data-mce-bogus")||"bookmark"===n.getAttribute("data-mce-type"))?!0:!1}var t=this,n=t.settings.editor;return n.settings.elementpath!==!1&&(t.on("select",function(t){n.focus();n.selection.select(this.row()[t.index].element);n.nodeChanged()}),n.on("nodeChange",function(r){for(var e,o=[],u=r.parents,f=u.length;f--;)if(1==u[f].nodeType&&!i(u[f])&&(e=n.fire("ResolveName",{name:u[f].nodeName.toLowerCase(),target:u[f]}),e.isDefaultPrevented()||o.push({name:e.name,element:u[f]}),e.isPropagationStopped()))break;t.row(o)})),t._super()}})});i(ou,[rt],function(n){return n.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var n=this,t=n._layout,i=n.classPrefix;return n.classes.add("formitem"),t.preRender(n),'<div id="'+n._id+'" class="'+n.classes+'" hidefocus="1" tabindex="-1">'+(n.settings.title?'<div id="'+n._id+'-title" class="'+i+'title">'+n.settings.title+"<\/div>":"")+'<div id="'+n._id+'-body" class="'+n.bodyClasses+'">'+(n.settings.html||"")+t.renderHtml(n)+"<\/div><\/div>"}})});i(su,[rt,ou,r],function(n,t,i){return n.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var n=this,r=n.items();n.settings.formItemDefaults||(n.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}});r.each(function(r){var u,f=r.settings.label;f&&(u=new t(i.extend({items:{type:"label",id:r._id+"-l",text:f,flex:0,forId:r._id,disabled:r.disabled()}},n.settings.formItemDefaults)),u.type="formitem",r.aria("labelledby",r._id+"-l"),"undefined"==typeof r.settings.flex&&(r.settings.flex=1),n.replace(r,u),u.add(r))})},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var n=this;n._super();n.fromJSON(n.settings.data)},bindStates:function(){function t(){var t=0,i=[],r,u,f;if(n.settings.labelGapCalc!==!1)for(f="children"==n.settings.labelGapCalc?n.find("formitem"):n.items(),f.filter("formitem").each(function(n){var r=n.items()[0],u=r.getEl().clientWidth;t=u>t?u:t;i.push(r)}),u=n.settings.labelGap||0,r=i.length;r--;)i[r].settings.minWidth=t+u}var n=this;n._super();n.on("show",t);t()}})});i(we,[su],function(n){return n.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var n=this,t=n._layout,i=n.classPrefix;return n.preRender(),t.preRender(n),'<fieldset id="'+n._id+'" class="'+n.classes+'" hidefocus="1" tabindex="-1">'+(n.settings.title?'<legend id="'+n._id+'-title" class="'+i+'fieldset-title">'+n.settings.title+"<\/legend>":"")+'<div id="'+n._id+'-body" class="'+n.bodyClasses+'">'+(n.settings.html||"")+t.renderHtml(n)+"<\/div><\/fieldset>"}})});i(be,[o,l,e,kr,r,s],function(n,t,i,r,u,f){var c=u.trim,e=function(n,t,i,r,u){return{type:n,title:t,url:i,level:r,attach:u}},l=function(n){for(;n=n.parentNode;){var t=n.contentEditable;if(t&&"inherit"!==t)return f.isContentEditableTrue(n)}return!1},a=function(t,i){return n.DOM.select(t,i)},o=function(n){return n.innerText||n.textContent},v=function(n){return n.id?n.id:r.uuid("h")},y=function(n){return n&&"A"===n.nodeName&&(n.id||n.name)},p=function(n){return y(n)&&h(n)},s=function(n){return n&&/^(H[1-6])$/.test(n.nodeName)},h=function(n){return l(n)&&!f.isContentEditableFalse(n)},w=function(n){return s(n)&&h(n)},b=function(n){return s(n)?parseInt(n.nodeName.substr(1),10):0},k=function(n){var t=v(n),i=function(){n.id=t};return e("header",o(n),"#"+t,b(n),i)},d=function(n){var i=n.id||n.name,r=o(n);return e("anchor",r?r:"#"+i,"#"+i,0,t.noop)},g=function(n){return i.map(i.filter(n,w),k)},nt=function(n){return i.map(i.filter(n,p),d)},tt=function(n){return a("h1,h2,h3,h4,h5,h6,a:not([href])",n)},it=function(n){return c(n.title).length>0},rt=function(n){var t=tt(n);return i.filter(g(t).concat(nt(t)),it)};return{find:rt}});i(ke,[ai,r,e,l,d,be],function(n,t,i,r,u,f){var e={},c=5,l=function(n){return{title:n.title,value:{title:{raw:n.title},url:n.url,attach:n.attach}}},a=function(n){return t.map(n,l)},s=function(n,t){return{title:n,value:{title:n,url:t,attach:r.noop}}},v=function(n,t){var r=i.find(t,function(t){return t.url===n});return!r},h=function(n,t,i){var r=t in n?n[t]:i;return r===!1?null:r},y=function(n,u,f,c){var p={title:"-"},l=function(n){var e=i.filter(n[f],function(n){return v(n,u)});return t.map(e,function(n){return{title:n,value:{title:n,url:n,attach:r.noop}}})},y=function(n){var t=i.filter(u,function(t){return t.type==n});return a(t)},w=function(){var n=y("anchor"),t=h(c,"anchor_top","#top"),i=h(c,"anchor_bottom","#bottom");return null!==t&&n.unshift(s("<top>",t)),null!==i&&n.push(s("<bottom>",i)),n},b=function(n){return i.reduce(n,function(n,t){var i=0===n.length||0===t.length;return i?n.concat(t):n.concat(p,t)},[])};return c.typeahead_urls===!1?[]:"file"===f?b([o(n,l(e)),o(n,y("header")),o(n,w())]):o(n,l(e))},p=function(n,t){var r=e[t];/^https?/.test(n)&&(r?i.indexOf(r,n)===-1&&(e[t]=r.slice(0,c).concat(n)):e[t]=[n])},o=function(n,i){var u=n.toLowerCase(),r=t.grep(i,function(n){return n.title.toLowerCase().indexOf(u)!==-1});return 1===r.length&&r[0].title===n?[]:r},w=function(n){var t=n.title;return t.raw?t.raw:t},b=function(n,t,i,r){var u=function(u){var e=f.find(i),o=y(u,e,r,t);n.showAutoComplete(o,u)};n.on("autocomplete",function(){u(n.value())});n.on("selectitem",function(t){var i=t.value,u;n.value(i.url);u=w(i);"image"===r?n.fire("change",{meta:{alt:u,attach:i.attach}}):n.fire("change",{meta:{text:u,attach:i.attach}});n.focus()});n.on("click",function(t){0===n.value().length&&"INPUT"===t.target.nodeName&&u("")});n.on("PostRender",function(){n.getRoot().on("submit",function(t){t.isDefaultPrevented()||p(n.value(),r)})})},k=function(n){var t=n.status,i=n.message;return"valid"===t?{status:"ok",message:i}:"unknown"===t?{status:"warn",message:i}:"invalid"===t?{status:"warn",message:i}:{status:"none",message:""}},d=function(n,t,i){var r=t.filepicker_validator_handler,u;if(r){u=function(t){return 0===t.length?void n.statusLevel("none"):void r({url:t,type:i},function(t){var i=k(t);n.statusMessage(i.message);n.statusLevel(i.status)})};n.state.on("change:value",function(n){u(n.value)})}};return n.extend({init:function(n){var r=this,s=tinymce.activeEditor,f=s.settings,o,e,i,u=n.filetype;n.spellcheck=!1;i=f.file_picker_types||f.file_browser_callback_types;i&&(i=t.makeMap(i,/[, ]/));i&&!i[u]||(e=f.file_picker_callback,!e||i&&!i[u]?(e=f.file_browser_callback,!e||i&&!i[u]||(o=function(){e(r.getEl("inp").id,r.value(),u,window)})):o=function(){var n=r.fire("beforecall").meta;n=t.extend({filetype:u},n);e.call(s,function(n,t){r.value(n).fire("change",{meta:t})},r.value(),n)});o&&(n.icon="browse",n.onaction=o);r._super(n);b(r,f,s.getBody(),u);d(r,f,u)}})});i(de,[gt],function(n){return n.extend({recalc:function(n){var i=n.layoutRect(),t=n.paddingBox;n.items().filter(":visible").each(function(n){n.layoutRect({x:t.left,y:t.top,w:i.innerW-t.right-t.left,h:i.innerH-t.top-t.bottom});n.recalc&&n.recalc()})}})});i(ge,[gt],function(n){return n.extend({recalc:function(n){var f,v,s,r,u,y,ut,ft,et,w,e,b,o,i,gt,ot,at=[],h,vt,st,t,l,g,yt,a,pt,nt,c,p,ht,wt,k,tt,it,rt,d,ct,bt,kt,dt=Math.max,ni=Math.min,lt;for(s=n.items().filter(":visible"),r=n.layoutRect(),u=n.paddingBox,y=n.settings,b=n.isRtl()?y.direction||"row-reversed":y.direction,ut=y.align,ft=n.isRtl()?y.pack||"end":y.pack,et=y.spacing||0,"row-reversed"!=b&&"column-reverse"!=b||(s=s.set(s.toArray().reverse()),b=b.split("-")[0]),"column"==b?(pt="y",yt="h",a="minH",nt="maxH",p="innerH",c="top",ht="deltaH",wt="contentH",d="left",it="w",k="x",tt="innerW",rt="minW",ct="right",bt="deltaW",kt="contentW"):(pt="x",yt="w",a="minW",nt="maxW",p="innerW",c="left",ht="deltaW",wt="contentW",d="top",it="h",k="y",tt="innerH",rt="minH",ct="bottom",bt="deltaH",kt="contentH"),e=r[p]-u[c]-u[c],g=w=0,f=0,v=s.length;f<v;f++)o=s[f],i=o.layoutRect(),gt=o.settings,ot=gt.flex,e-=f<v-1?et:0,ot>0&&(w+=ot,i[nt]&&at.push(o),i.flex=ot),e-=i[a],h=u[d]+i[rt]+u[ct],h>g&&(g=h);if(t={},t[a]=e<0?r[a]-e+r[ht]:r[p]-e+r[ht],t[rt]=g+r[bt],t[wt]=r[p]-e,t[kt]=g,t.minW=ni(t.minW,r.maxW),t.minH=ni(t.minH,r.maxH),t.minW=dt(t.minW,r.startMinWidth),t.minH=dt(t.minH,r.startMinHeight),r.autoResize&&(t.minW!=r.minW||t.minH!=r.minH))(t.w=t.minW,t.h=t.minH,n.layoutRect(t),this.recalc(n),null===n._lastRect)&&(lt=n.parent(),lt&&(lt._lastRect=null,lt.recalc()));else{for(st=e/w,f=0,v=at.length;f<v;f++)o=at[f],i=o.layoutRect(),vt=i[nt],h=i[a]+i.flex*st,h>vt?(e-=i[nt]-i[a],w-=i.flex,i.flex=0,i.maxFlexSize=vt):i.maxFlexSize=0;for(st=e/w,l=u[c],t={},0===w&&("end"==ft?l=e+u[c]:"center"==ft?(l=Math.round(r[p]/2-(r[p]-e)/2)+u[c],l<0&&(l=u[c])):"justify"==ft&&(l=u[c],et=Math.floor(e/(s.length-1)))),t[k]=u[d],f=0,v=s.length;f<v;f++)o=s[f],i=o.layoutRect(),h=i.maxFlexSize||i[a],"center"===ut?t[k]=Math.round(r[tt]/2-i[it]/2):"stretch"===ut?(t[it]=dt(i[rt]||0,r[tt]-u[d]-u[ct]),t[k]=u[d]):"end"===ut&&(t[k]=r[tt]-i[it]-u.top),i.flex>0&&(h+=i.flex*st),t[yt]=h,t[pt]=l,o.layoutRect(t),o.recalc&&o.recalc(),l+=h+et}}})});i(hu,[ci],function(n){return n.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(n){n.items().filter(":visible").each(function(n){n.recalc&&n.recalc()})},isNative:function(){return!0}})});i(no,[g,h,at,r,e,o,hi,u],function(n,t,i,r,u,f,e,o){function h(n){n.settings.ui_container&&(o.container=f.DOM.select(n.settings.ui_container)[0])}function c(t){t.on("ScriptsLoaded",function(){t.rtl&&(n.rtl=!0)})}function l(n){function u(t,i){return function(){var r=this;n.on("nodeChange",function(u){var e=n.formatter,f=null;s(u.parents,function(n){if(s(t,function(t){if(i?e.matchNode(n,i,{value:t.value})&&(f=t.value):e.matchNode(n,t.value)&&(f=t.value),f)return!1}),f)return!1});r.value(f)})}}function o(n){n=n.replace(/;$/,"").split(";");for(var t=n.length;t--;)n[t]=n[t].split("=");return n}function y(){function i(n){var t=[];if(n)return s(n,function(n){var u={text:n.title,icon:n.icon},f;n.items?u.menu=i(n.items):(f=n.format||"custom"+e++,n.format||(n.name=f,r.push(n)),u.format=f,u.cmd=n.cmd);t.push(u)}),t}function u(){return i(n.settings.style_formats_merge?n.settings.style_formats?t.concat(n.settings.style_formats):t:n.settings.style_formats||t)}var e=0,r=[],t=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}];return n.on("init",function(){s(r,function(t){n.formatter.register(t.name,t)})}),{type:"menu",items:u(),onPostRender:function(t){n.fire("renderFormatsMenu",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){if(this.settings.format)return n.formatter.getCssText(this.settings.format)},onPostRender:function(){var t=this;t.parent().on("show",function(){var i,r;i=t.settings.format;i&&(t.disabled(!n.formatter.canApply(i)),t.active(n.formatter.match(i)));r=t.settings.cmd;r&&t.active(n.queryCommandState(r))})},onclick:function(){this.settings.format&&f(this.settings.format);this.settings.cmd&&n.execCommand(this.settings.cmd)}}}}function h(t){return function(){var i=this;n.formatter?n.formatter.formatChanged(t,function(n){i.active(n)}):n.on("init",function(){n.formatter.formatChanged(t,function(n){i.active(n)})})}}function t(t){return function(){function i(){return!!n.undoManager&&n.undoManager[t]()}var r=this;t="redo"==t?"hasRedo":"hasUndo";r.disabled(!i());n.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",function(){r.disabled(n.readonly||!i())})}}function p(){var t=this;n.on("VisualAid",function(n){t.active(n.hasVisual)});t.active(n.hasVisual)}function f(t){t.control&&(t=t.control.value());t&&n.execCommand("mceToggleFormat",!1,t)}function c(t){var i=t.length;return r.each(t,function(t){t.menu&&(t.hidden=0===c(t.menu));var r=t.format;r&&(t.hidden=!n.formatter.canApply(r));t.hidden&&i--}),i}function l(t){var i=t.items().length;return t.items().each(function(t){t.menu&&t.visible(l(t.menu)>0);!t.menu&&t.settings.menu&&t.visible(c(t.settings.menu)>0);var r=t.settings.format;r&&t.visible(n.formatter.canApply(r));t.visible()||i--}),i}var e;e=y();s({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(t,i){n.addButton(i,{tooltip:t,onPostRender:h(i),onclick:function(){f(i)}})});s({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],removeformat:["Clear formatting","RemoveFormat"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"]},function(t,i){n.addButton(i,{tooltip:t[0],cmd:t[1]})});s({blockquote:["Blockquote","mceBlockQuote"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"],alignnone:["No alignment","JustifyNone"]},function(t,i){n.addButton(i,{tooltip:t[0],cmd:t[1],onPostRender:h(i)})});var w=function(n){var t=n;return t.length>0&&"-"===t[0].text&&(t=t.slice(1)),t.length>0&&"-"===t[t.length-1].text&&(t=t.slice(0,t.length-1)),t},v=function(t){var i,u;if("string"==typeof t)u=t.split(" ");else if(r.isArray(t))return a(r.map(t,v));return i=r.grep(u,function(t){return"|"===t||t in n.menuItems}),r.map(i,function(t){return"|"===t?{text:"-"}:n.menuItems[t]})},b=function(t){var i=[{text:"-"}],u=r.grep(n.menuItems,function(n){return n.context===t});return r.each(u,function(n){"before"==n.separator&&i.push({text:"|"});n.prependToContext?i.unshift(n):i.push(n);"after"==n.separator&&i.push({text:"|"})}),i},k=function(n){return w(n.insert_button_items?v(n.insert_button_items):b("insert"))};n.addButton("undo",{tooltip:"Undo",onPostRender:t("undo"),cmd:"undo"});n.addButton("redo",{tooltip:"Redo",onPostRender:t("redo"),cmd:"redo"});n.addMenuItem("newdocument",{text:"New document",icon:"newdocument",cmd:"mceNewDocument"});n.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:t("undo"),cmd:"undo"});n.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:t("redo"),cmd:"redo"});n.addMenuItem("visualaid",{text:"Visual aids",selectable:!0,onPostRender:p,cmd:"mceToggleVisualAid"});n.addButton("remove",{tooltip:"Remove",icon:"remove",cmd:"Delete"});n.addButton("insert",{type:"menubutton",icon:"insert",menu:[],oncreatemenu:function(){this.menu.add(k(n.settings));this.menu.renderNew()}});s({cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"],bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"]},function(t,i){n.addMenuItem(i,{text:t[0],icon:i,shortcut:t[2],cmd:t[1]})});n.on("mousedown",function(){i.hideAll()});n.addButton("styleselect",{type:"menubutton",text:"Formats",menu:e,onShowMenu:function(){n.settings.style_formats_autohide&&l(this.menu)}});n.addButton("formatselect",function(){var t=[],i=o(n.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");return s(i,function(i){t.push({text:i[0],value:i[1],textStyle:function(){return n.formatter.getCssText(i[1])}})}),{type:"listbox",text:i[0][0],values:t,fixedWidth:!0,onselect:f,onPostRender:u(t)}});n.addButton("fontselect",function(){var t=[],i=o(n.settings.font_formats||"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats");return s(i,function(n){t.push({text:{raw:n[0]},value:n[1],textStyle:n[1].indexOf("dings")==-1?"font-family:"+n[1]:""})}),{type:"listbox",text:"Font Family",tooltip:"Font Family",values:t,fixedWidth:!0,onPostRender:u(t,"fontname"),onselect:function(t){t.control.settings.value&&n.execCommand("FontName",!1,t.control.settings.value)}}});n.addButton("fontsizeselect",function(){var t=[],i=n.settings.fontsize_formats||"8pt 10pt 12pt 14pt 18pt 24pt 36pt";return s(i.split(" "),function(n){var r=n,u=n,i=n.split("=");i.length>1&&(r=i[0],u=i[1]);t.push({text:r,value:u})}),{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:t,fixedWidth:!0,onPostRender:u(t,"fontsize"),onclick:function(t){t.control.settings.value&&n.execCommand("FontSize",!1,t.control.settings.value)}}});n.addMenuItem("formats",{text:"Formats",menu:e})}var s=r.each,a=function(n){return u.reduce(n,function(n,t){return n.concat(t)},[])};e.on("AddEditor",function(n){var t=n.editor;c(t);l(t);h(t)});n.translate=function(n){return e.translate(n)};t.tooltips=!o.iOS});i(to,[gt],function(n){return n.extend({recalc:function(n){var e,p,o,b,u,k,d,i,f,h,t,r,g,nt,st,s,c,tt,it,l,a,rt,ut,v=[],y=[],ht,ct,lt,ft,vt,yt,pt,et,w,at,ot;for(e=n.settings,b=n.items().filter(":visible"),u=n.layoutRect(),o=e.columns||Math.ceil(Math.sqrt(b.length)),p=Math.ceil(b.length/o),tt=e.spacingH||e.spacing||0,it=e.spacingV||e.spacing||0,l=e.alignH||e.align,a=e.alignV||e.align,s=n.paddingBox,vt=("reverseRows"in e)?e.reverseRows:n.isRtl(),l&&"string"==typeof l&&(l=[l]),a&&"string"==typeof a&&(a=[a]),t=0;t<o;t++)v.push(0);for(r=0;r<p;r++)y.push(0);for(r=0;r<p;r++)for(t=0;t<o&&(h=b[r*o+t],h);t++)f=h.layoutRect(),ht=f.minW,ct=f.minH,v[t]=ht>v[t]?ht:v[t],y[r]=ct>y[r]?ct:y[r];for(lt=u.innerW-s.left-s.right,rt=0,t=0;t<o;t++)rt+=v[t]+(t>0?tt:0),lt-=(t>0?tt:0)+v[t];for(ft=u.innerH-s.top-s.bottom,ut=0,r=0;r<p;r++)ut+=y[r]+(r>0?it:0),ft-=(r>0?it:0)+y[r];if(rt+=s.left+s.right,ut+=s.top+s.bottom,i={},i.minW=rt+(u.w-u.innerW),i.minH=ut+(u.h-u.innerH),i.contentW=i.minW-u.deltaW,i.contentH=i.minH-u.deltaH,i.minW=Math.min(i.minW,u.maxW),i.minH=Math.min(i.minH,u.maxH),i.minW=Math.max(i.minW,u.startMinWidth),i.minH=Math.max(i.minH,u.startMinHeight),u.autoResize&&(i.minW!=u.minW||i.minH!=u.minH))(i.w=i.minW,i.h=i.minH,n.layoutRect(i),this.recalc(n),null===n._lastRect)&&(ot=n.parent(),ot&&(ot._lastRect=null,ot.recalc()));else{if(u.autoResize&&(i=n.layoutRect(i),i.contentW=i.minW-u.deltaW,i.contentH=i.minH-u.deltaH),pt="start"==e.packV?0:ft>0?Math.floor(ft/p):0,et=0,w=e.flexWidths,w)for(t=0;t<w.length;t++)et+=w[t];else et=o;for(at=lt/et,t=0;t<o;t++)v[t]+=w?w[t]*at:at;for(nt=s.top,r=0;r<p;r++){for(g=s.left,d=y[r]+pt,t=0;t<o&&(yt=vt?r*o+o-1-t:r*o+t,h=b[yt],h);t++)st=h.settings,f=h.layoutRect(),k=Math.max(v[t],f.startMinWidth),f.x=g,f.y=nt,c=st.alignH||(l?l[t]||l[0]:null),"center"==c?f.x=g+k/2-f.w/2:"right"==c?f.x=g+k-f.w:"stretch"==c&&(f.w=k),c=st.alignV||(a?a[t]||a[0]:null),"center"==c?f.y=nt+d/2-f.h/2:"bottom"==c?f.y=nt+d-f.h:"stretch"==c&&(f.h=d),h.layoutRect(f),g+=k+tt,h.recalc&&h.recalc();nt+=d+it}}}})});i(io,[h,f],function(n,t){return n.extend({renderHtml:function(){var n=this;return n.classes.add("iframe"),n.canFocus=!1,'<iframe id="'+n._id+'" class="'+n.classes+'" tabindex="-1" src="'+(n.settings.url||"javascript:''")+'" frameborder="0"><\/iframe>'},src:function(n){this.getEl().src=n},html:function(n,i){var u=this,r=this.getEl().contentWindow.document.body;return r?(r.innerHTML=n,i&&i()):t.setTimeout(function(){u.html(n)}),this}})});i(ro,[h],function(n){return n.extend({init:function(n){var t=this;t._super(n);t.classes.add("widget").add("infobox");t.canFocus=!1},severity:function(n){this.classes.remove("error");this.classes.remove("warning");this.classes.remove("success");this.classes.add(n)},help:function(n){this.state.set("help",n)},renderHtml:function(){var n=this,t=n.classPrefix;return'<div id="'+n._id+'" class="'+n.classes+'"><div id="'+n._id+'-body">'+n.encode(n.state.get("text"))+'<button role="button" tabindex="-1"><i class="'+t+"ico "+t+'i-help"><\/i><\/button><\/div><\/div>'},bindStates:function(){var n=this;return n.state.on("change:text",function(t){n.getEl("body").firstChild.data=n.encode(t.value);n.state.get("rendered")&&n.updateLayoutRect()}),n.state.on("change:help",function(t){n.classes.toggle("has-help",t.value);n.state.get("rendered")&&n.updateLayoutRect()}),n._super()}})});i(uo,[h,a],function(n,t){return n.extend({init:function(n){var t=this;t._super(n);t.classes.add("widget").add("label");t.canFocus=!1;n.multiline&&t.classes.add("autoscroll");n.strong&&t.classes.add("strong")},initLayoutRect:function(){var i=this,n=i._super(),r;return i.settings.multiline&&(r=t.getSize(i.getEl()),r.width>n.maxW&&(n.minW=n.maxW,i.classes.add("multiline")),i.getEl().style.width=n.minW+"px",n.startMinH=n.h=n.minH=Math.min(n.maxH,t.getSize(i.getEl()).height)),n},repaint:function(){var n=this;return n.settings.multiline||(n.getEl().style.lineHeight=n.layoutRect().h+"px"),n._super()},severity:function(n){this.classes.remove("error");this.classes.remove("warning");this.classes.remove("success");this.classes.add(n)},renderHtml:function(){var n=this,i,r,t=n.settings.forId;return!t&&(r=n.settings.forName)&&(i=n.getRoot().find("#"+r)[0],i&&(t=i._id)),t?'<label id="'+n._id+'" class="'+n.classes+'"'+(t?' for="'+t+'"':"")+">"+n.encode(n.state.get("text"))+"<\/label>":'<span id="'+n._id+'" class="'+n.classes+'">'+n.encode(n.state.get("text"))+"<\/span>"},bindStates:function(){var n=this;return n.state.on("change:text",function(t){n.innerHtml(n.encode(t.value));n.state.get("rendered")&&n.updateLayoutRect()}),n._super()}})});i(cu,[rt],function(n){return n.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(n){var t=this;t._super(n);t.classes.add("toolbar")},postRender:function(){var n=this;return n.items().each(function(n){n.classes.add("toolbar-item")}),n._super()}})});i(lu,[cu],function(n){return n.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}})});i(vi,[li,lt,lu],function(n,t,i){function u(n,t){for(;n;){if(t===n)return!0;n=n.parentNode}return!1}var r=n.extend({init:function(n){var t=this;t._renderOpen=!0;t._super(n);n=t.settings;t.classes.add("menubtn");n.fixedWidth&&t.classes.add("fixed-width");t.aria("haspopup",!0);t.state.set("menu",n.menu||t.render())},showMenu:function(){var n=this,i;return n.menu&&n.menu.visible()?n.hideMenu():(n.menu||(i=n.state.get("menu")||[],i.length?i={type:"menu",items:i}:i.type=i.type||"menu",n.menu=i.renderTo?i.parent(n).show().renderTo():t.create(i).parent(n).renderTo(),n.fire("createmenu"),n.menu.reflow(),n.menu.on("cancel",function(t){t.control.parent()===n.menu&&(t.stopPropagation(),n.focus(),n.hideMenu())}),n.menu.on("select",function(){n.focus()}),n.menu.on("show hide",function(t){t.control==n.menu&&n.activeMenu("show"==t.type);n.aria("expanded","show"==t.type)}).fire("show")),n.menu.show(),n.menu.layoutRect({w:n.layoutRect().w}),n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"]),void n.fire("showmenu"))},hideMenu:function(){var n=this;n.menu&&(n.menu.items().each(function(n){n.hideMenu&&n.hideMenu()}),n.menu.hide())},activeMenu:function(n){this.classes.toggle("active",n)},renderHtml:function(){var n=this,f=n._id,u=n.classPrefix,r=n.settings.icon,t,e=n.state.get("text"),o="";return t=n.settings.image,t?(r="none","string"!=typeof t&&(t=window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",e&&(n.classes.add("btn-has-text"),o='<span class="'+u+'txt">'+n.encode(e)+"<\/span>"),r=n.settings.icon?u+"ico "+u+"i-"+r:"",n.aria("role",n.parent()instanceof i?"menuitem":"button"),'<div id="'+f+'" class="'+n.classes+'" tabindex="-1" aria-labelledby="'+f+'"><button id="'+f+'-open" role="presentation" type="button" tabindex="-1">'+(r?'<i class="'+r+'"'+t+"><\/i>":"")+o+' <i class="'+u+'caret"><\/i><\/button><\/div>'},postRender:function(){var n=this;return n.on("click",function(t){t.control===n&&u(t.target,n.getEl())&&(n.showMenu(),t.aria&&n.menu.items().filter(":visible")[0].focus())}),n.on("mouseenter",function(t){var i=t.control,u=n.parent(),f;i&&u&&i instanceof r&&i.parent()==u&&(u.items().filter("MenuButton").each(function(n){n.hideMenu&&n!=i&&(n.menu&&n.menu.visible()&&(f=!0),n.hideMenu())}),f&&(i.focus(),i.showMenu()))}),n._super()},bindStates:function(){var n=this;return n.state.on("change:menu",function(){n.menu&&n.menu.remove();n.menu=null}),n._super()},remove:function(){this._super();this.menu&&this.menu.remove()}});return r});i(au,[h,lt,u,f],function(n,t,i,r){return n.extend({Defaults:{border:0,role:"menuitem"},init:function(n){var t=this,i;t._super(n);n=t.settings;t.classes.add("menu-item");n.menu&&t.classes.add("menu-item-expand");n.preview&&t.classes.add("menu-item-preview");i=t.state.get("text");"-"!==i&&"|"!==i||(t.classes.add("menu-item-sep"),t.aria("role","separator"),t.state.set("text","-"));n.selectable&&(t.aria("role","menuitemcheckbox"),t.classes.add("menu-item-checkbox"),n.icon="selected");n.preview||n.selectable||t.classes.add("menu-item-normal");t.on("mousedown",function(n){n.preventDefault()});n.menu&&!n.ariaHideMenu&&t.aria("haspopup",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var i=this,f=i.settings,n,u=i.parent(),r;(u.items().each(function(n){n!==i&&n.hideMenu()}),f.menu)&&(n=i.menu,n?n.show():(n=f.menu,n.length?n={type:"menu",items:n}:n.type=n.type||"menu",u.settings.itemDefaults&&(n.itemDefaults=u.settings.itemDefaults),n=i.menu=t.create(n).parent(i).renderTo(),n.reflow(),n.on("cancel",function(t){t.stopPropagation();i.focus();n.hide()}),n.on("show hide",function(n){n.control.items&&n.control.items().each(function(n){n.active(n.settings.selected)})}).fire("show"),n.on("hide",function(t){t.control===n&&i.classes.remove("selected")}),n.submenu=!0),n._parentMenu=u,n.classes.add("menu-sub"),r=n.testMoveRel(i.getEl(),i.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]),n.moveRel(i.getEl(),r),n.rel=r,r="menu-sub-"+r,n.classes.remove(n._lastRel).add(r),n._lastRel=r,i.classes.add("selected"),i.aria("expanded",!0))},hideMenu:function(){var n=this;return n.menu&&(n.menu.items().each(function(n){n.hideMenu&&n.hideMenu()}),n.menu.hide(),n.aria("expanded",!1)),n},renderHtml:function(){function y(n){var t,r,u={};for(u=i.mac?{alt:"&#x2325;",ctrl:"&#x2318;",shift:"&#x21E7;",meta:"&#x2318;"}:{meta:"Ctrl"},n=n.split("+"),t=0;t<n.length;t++)r=u[n[t].toLowerCase()],r&&(n[t]=r);return n.join("+")}function o(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(n){var i=t.match||"";return i?n.replace(new RegExp(o(i),"gi"),function(n){return"!mce~match["+n+"]mce~match!"}):n}function l(n){return n.replace(new RegExp(o("!mce~match["),"g"),"<b>").replace(new RegExp(o("]mce~match!"),"g"),"<\/b>")}var n=this,s=n._id,t=n.settings,r=n.classPrefix,u=n.state.get("text"),h=n.settings.icon,a="",f=t.shortcut,e=n.encode(t.url),v="";return h&&n.parent().classes.add("menu-has-icons"),t.image&&(a=" style=\"background-image: url('"+t.image+"')\""),f&&(f=y(f)),h=r+"ico "+r+"i-"+(n.settings.icon||"none"),v="-"!==u?'<i class="'+h+'"'+a+"><\/i> ":"",u=l(n.encode(c(u))),e=l(n.encode(c(e))),'<div id="'+s+'" class="'+n.classes+'" tabindex="-1">'+v+("-"!==u?'<span id="'+s+'-text" class="'+r+'text">'+u+"<\/span>":"")+(f?'<div id="'+s+'-shortcut" class="'+r+'menu-shortcut">'+f+"<\/div>":"")+(t.menu?'<div class="'+r+'caret"><\/div>':"")+(e?'<div class="'+r+'menu-item-link">'+e+"<\/div>":"")+"<\/div>"},postRender:function(){var n=this,u=n.settings,t=u.textStyle,i;return("function"==typeof t&&(t=t.call(this)),t)&&(i=n.getEl("text"),i&&i.setAttribute("style",t)),n.on("mouseenter click",function(t){t.control===n&&(u.menu||"click"!==t.type?(n.showMenu(),t.aria&&n.menu.focus(!0)):(n.fire("select"),r.requestAnimationFrame(function(){n.parent().hideAll()})))}),n._super(),n},hover:function(){var n=this;return n.parent().items().each(function(n){n.classes.remove("selected")}),n.classes.toggle("selected",!0),n},active:function(n){return"undefined"!=typeof n&&this.aria("checked",n),this._super(n)},remove:function(){this._super();this.menu&&this.menu.remove()}})});i(vu,[c,g,f],function(n,t,i){return function(r,u){var f=this,e,o=t.classPrefix,s;f.show=function(t,h){function c(){e&&(n(r).append('<div class="'+o+"throbber"+(u?" "+o+"throbber-inline":"")+'"><\/div>'),h&&h())}return f.hide(),e=!0,t?s=i.setTimeout(c,t):c(),f};f.hide=function(){var n=r.lastChild;return i.clearTimeout(s),n&&n.className.indexOf("throbber")!=-1&&n.parentNode.removeChild(n),e=!1,f}}});i(yu,[at,au,vu,r],function(n,t,i,r){return n.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(n){var u=this,t,i;if(n.autohide=!0,n.constrainToViewport=!0,"function"==typeof n.items&&(n.itemsFactory=n.items,n.items=[]),n.itemDefaults)for(t=n.items,i=t.length;i--;)t[i]=r.extend({},n.itemDefaults,t[i]);u._super(n);u.classes.add("menu")},repaint:function(){return this.classes.toggle("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){var n=this;n.hideAll();n.fire("select")},load:function(){function t(){n.throbber&&(n.throbber.hide(),n.throbber=null)}var n=this,r,u;u=n.settings.itemsFactory;u&&(n.throbber||(n.throbber=new i(n.getEl("body"),!0),0===n.items().length?(n.throbber.show(),n.fire("loading")):n.throbber.show(100,function(){n.items().remove();n.fire("loading")}),n.on("hide close",t)),n.requestTime=r=(new Date).getTime(),n.settings.itemsFactory(function(i){return 0===i.length?void n.hide():void(n.requestTime===r&&(n.getEl().style.width="",n.getEl("body").style.width="",t(),n.items().remove(),n.getEl("body").innerHTML="",n.add(i),n.renderNew(),n.fire("loaded")))}))},hideAll:function(){var n=this;return this.find("menuitem").exec("hideMenu"),n._super()},preRender:function(){var n=this;return n.items().each(function(t){var i=t.settings;if(i.icon||i.image||i.selectable)return n._hasIcons=!0,!1}),n.settings.itemsFactory&&n.on("postrender",function(){n.settings.itemsFactory&&n.load()}),n._super()}})});i(fo,[vi,yu],function(n,t){return n.extend({init:function(n){function f(i){for(var u=0;u<i.length;u++){if(e=i[u].selected||n.value===i[u].value)return r=r||i[u].text,t.state.set("value",i[u].value),!0;if(i[u].menu&&f(i[u].menu))return!0}}var t=this,i,e,r,u;t._super(n);n=t.settings;t._values=i=n.values;i&&("undefined"!=typeof n.value&&f(i),!e&&i.length>0&&(r=i[0].text,t.state.set("value",i[0].value)),t.state.set("menu",i));t.state.set("text",n.text||r);t.classes.add("listbox");t.on("select",function(i){var r=i.control;u&&(i.lastControl=u);n.multiple?r.active(!r.active()):t.value(i.control.value());u=r})},bindStates:function(){function r(n,i){n instanceof t&&n.items().each(function(n){n.hasMenus()||n.active(n.value()===i)})}function i(n,t){var u,r;if(n)for(r=0;r<n.length;r++){if(n[r].value===t)return n[r];if(n[r].menu&&(u=i(n[r].menu,t)))return u}}var n=this;return n.on("show",function(t){r(t.control,n.value())}),n.state.on("change:value",function(t){var r=i(n.state.get("menu"),t.value);r?n.text(r.text):n.text(n.settings.text)}),n._super()}})});i(eo,[ru],function(n){return n.extend({Defaults:{classes:"radio",role:"radio"}})});i(oo,[h,ut],function(n,t){return n.extend({renderHtml:function(){var n=this,t=n.classPrefix;return n.classes.add("resizehandle"),"both"==n.settings.direction&&n.classes.add("resizehandle-both"),n.canFocus=!1,'<div id="'+n._id+'" class="'+n.classes+'"><i class="'+t+"ico "+t+'i-resize"><\/i><\/div>'},postRender:function(){var n=this;n._super();n.resizeDragHelper=new t(this._id,{start:function(){n.fire("ResizeStart")},drag:function(t){"both"!=n.settings.direction&&(t.deltaX=0);n.fire("Resize",t)},stop:function(){n.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}})});i(so,[h],function(n){function t(n){var i="",t;if(n)for(t=0;t<n.length;t++)i+='<option value="'+n[t]+'">'+n[t]+"<\/option>";return i}return n.extend({Defaults:{classes:"selectbox",role:"selectbox",options:[]},init:function(n){var t=this;t._super(n);t.settings.size&&(t.size=t.settings.size);t.settings.options&&(t._options=t.settings.options);t.on("keydown",function(n){var i;13==n.keyCode&&(n.preventDefault(),t.parents().reverse().each(function(n){if(n.toJSON)return i=n,!1}),t.fire("submit",{data:i.toJSON()}))})},options:function(n){return arguments.length?(this.state.set("options",n),this):this.state.get("options")},renderHtml:function(){var n=this,i,r="";return i=t(n._options),n.size&&(r=' size = "'+n.size+'"'),'<select id="'+n._id+'" class="'+n.classes+'"'+r+">"+i+"<\/select>"},bindStates:function(){var n=this;return n.state.on("change:options",function(i){n.getEl().innerHTML=t(i.value)}),n._super()}})});i(ho,[h,ut,a],function(n,t,i){function u(n,t,i){return n<t&&(n=t),n>i&&(n=i),n}function r(n,t,i){n.setAttribute("aria-"+t,i)}function f(n,t){var s,f,e,o,h,u;"v"==n.settings.orientation?(o="top",e="height",f="h"):(o="left",e="width",f="w");u=n.getEl("handle");s=(n.layoutRect()[f]||100)-i.getSize(u)[e];h=s*((t-n._minValue)/(n._maxValue-n._minValue))+"px";u.style[o]=h;u.style.height=n.layoutRect().h+"px";r(u,"valuenow",t);r(u,"valuetext",""+n.settings.previewFilter(t));r(u,"valuemin",n._minValue);r(u,"valuemax",n._maxValue)}return n.extend({init:function(n){var t=this;n.previewFilter||(n.previewFilter=function(n){return Math.round(100*n)/100});t._super(n);t.classes.add("slider");"v"==n.orientation&&t.classes.add("vertical");t._minValue=n.minValue||0;t._maxValue=n.maxValue||100;t._initValue=t.state.get("value")},renderHtml:function(){var n=this,t=n._id,i=n.classPrefix;return'<div id="'+t+'" class="'+n.classes+'"><div id="'+t+'-handle" class="'+i+'slider-handle" role="slider" tabindex="-1"><\/div><\/div>'},reset:function(){this.value(this._initValue).repaint()},postRender:function(){function c(n,t,i){return(i+n)/(t-n)}function l(n,t,i){return i*(t-n)-n}function a(t,i){function r(r){var f;f=n.value();f=l(t,i,c(t,i,f)+.05*r);f=u(f,t,i);n.value(f);n.fire("dragstart",{value:f});n.fire("drag",{value:f});n.fire("dragend",{value:f})}n.on("keydown",function(n){switch(n.keyCode){case 37:case 38:r(-1);break;case 39:case 40:r(1)}})}function v(e,o,c){var y,p,a,v,l;n._dragHelper=new t(n._id,{handle:n._id+"-handle",start:function(t){y=t[r];p=parseInt(n.getEl("handle").style[f],10);a=(n.layoutRect()[h]||100)-i.getSize(c)[s];n.fire("dragstart",{value:l})},drag:function(t){var i=t[r]-y;v=u(p+i,0,a);c.style[f]=v+"px";l=e+v/a*(o-e);n.value(l);n.tooltip().text(""+n.settings.previewFilter(l)).show().moveRel(c,"bc tc");n.fire("drag",{value:l})},stop:function(){n.tooltip().hide();n.fire("dragend",{value:l})}})}var n=this,e,o,r,f,s,h;e=n._minValue;o=n._maxValue;"v"==n.settings.orientation?(r="screenY",f="top",s="height",h="h"):(r="screenX",f="left",s="width",h="w");n._super();a(e,o,n.getEl("handle"));v(e,o,n.getEl("handle"))},repaint:function(){this._super();f(this,this.value())},bindStates:function(){var n=this;return n.state.on("change:value",function(t){f(n,t.value)}),n._super()}})});i(co,[h],function(n){return n.extend({renderHtml:function(){var n=this;return n.classes.add("spacer"),n.canFocus=!1,'<div id="'+n._id+'" class="'+n.classes+'"><\/div>'}})});i(lo,[vi,a,c],function(n,t,i){return n.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var n=this,f=n.getEl(),r=n.layoutRect(),e,u;return n._super(),e=f.firstChild,u=f.lastChild,i(e).css({width:r.w-t.getSize(u).width,height:r.h-2}),i(u).css({height:r.h-2}),n},activeMenu:function(n){var t=this;i(t.getEl().lastChild).toggleClass(t.classPrefix+"active",n)},renderHtml:function(){var n=this,e=n._id,r=n.classPrefix,t,i=n.state.get("icon"),u=n.state.get("text"),f="";return t=n.settings.image,t?(i="none","string"!=typeof t&&(t=window.getSelection?t[0]:t[1]),t=" style=\"background-image: url('"+t+"')\""):t="",i=n.settings.icon?r+"ico "+r+"i-"+i:"",u&&(n.classes.add("btn-has-text"),f='<span class="'+r+'txt">'+n.encode(u)+"<\/span>"),'<div id="'+e+'" class="'+n.classes+'" role="button" tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(i?'<i class="'+i+'"'+t+"><\/i>":"")+f+'<\/button><button type="button" class="'+r+'open" hidefocus="1" tabindex="-1">'+(n._menuBtnText?(i?" ":"")+n._menuBtnText:"")+' <i class="'+r+'caret"><\/i><\/button><\/div>'},postRender:function(){var n=this,t=n.settings.onclick;return n.on("click",function(n){var i=n.target;if(n.control==this)for(;i;){if(n.aria&&"down"!=n.aria.key||"BUTTON"==i.nodeName&&i.className.indexOf("open")==-1)return n.stopImmediatePropagation(),void(t&&t.call(this,n));i=i.parentNode}}),delete n.settings.onclick,n._super()}})});i(ao,[hu],function(n){return n.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"},isNative:function(){return!0}})});i(vo,[kt,c,a],function(n,t,i){return n.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(n){var i;this.activeTabId&&(i=this.getEl(this.activeTabId),t(i).removeClass(this.classPrefix+"active"),i.setAttribute("aria-selected","false"));this.activeTabId="t"+n;i=this.getEl("t"+n);i.setAttribute("aria-selected","true");t(i).addClass(this.classPrefix+"active");this.items()[n].show().fire("showtab");this.reflow();this.items().each(function(t,i){n!=i&&t.hide()})},renderHtml:function(){var n=this,t=n._layout,i="",r=n.classPrefix;return n.preRender(),t.preRender(n),n.items().each(function(t,u){var f=n._id+"-t"+u;t.aria("role","tabpanel");t.aria("labelledby",f);i+='<div id="'+f+'" class="'+r+'tab" unselectable="on" role="tab" aria-controls="'+t._id+'" aria-selected="false" tabIndex="-1">'+n.encode(t.settings.title)+"<\/div>"}),'<div id="'+n._id+'" class="'+n.classes+'" hidefocus="1" tabindex="-1"><div id="'+n._id+'-head" class="'+r+'tabs" role="tablist">'+i+'<\/div><div id="'+n._id+'-body" class="'+n.bodyClasses+'">'+t.renderHtml(n)+"<\/div><\/div>"},postRender:function(){var n=this;n._super();n.settings.activeTab=n.settings.activeTab||0;n.activateTab(n.settings.activeTab);this.on("click",function(t){var i=t.target.parentNode,r;if(i&&i.id==n._id+"-head")for(r=i.childNodes.length;r--;)i.childNodes[r]==t.target&&n.activateTab(r)})},initLayoutRect:function(){var t=this,r,n,u,f;return n=i.getSize(t.getEl("head")).width,n=n<0?0:n,u=0,t.items().each(function(t){n=Math.max(n,t.layoutRect().minW);u=Math.max(u,t.layoutRect().minH)}),t.items().each(function(t){t.settings.x=0;t.settings.y=0;t.settings.w=n;t.settings.h=u;t.layoutRect({x:0,y:0,w:n,h:u})}),f=i.getSize(t.getEl("head")).height,t.settings.minWidth=n,t.settings.minHeight=u+f,r=t._super(),r.deltaH+=f,r.innerH=r.h-r.deltaH,r}})});i(yo,[h,r,a],function(n,t,i){return n.extend({init:function(n){var t=this;t._super(n);t.classes.add("textbox");n.multiline?t.classes.add("multiline"):(t.on("keydown",function(n){var i;13==n.keyCode&&(n.preventDefault(),t.parents().reverse().each(function(n){if(n.toJSON)return i=n,!1}),t.fire("submit",{data:i.toJSON()}))}),t.on("keyup",function(n){t.state.set("value",n.target.value)}))},repaint:function(){var i=this,r,n,u,o,e=0,t,f;return r=i.getEl().style,n=i._layoutRect,t=i._lastRepaintRect||{},f=document,!i.settings.multiline&&f.all&&(!f.documentMode||f.documentMode<=8)&&(r.lineHeight=n.h-e+"px"),u=i.borderBox,o=u.left+u.right+8,e=u.top+u.bottom+(i.settings.multiline?8:0),n.x!==t.x&&(r.left=n.x+"px",t.x=n.x),n.y!==t.y&&(r.top=n.y+"px",t.y=n.y),n.w!==t.w&&(r.width=n.w-o+"px",t.w=n.w),n.h!==t.h&&(r.height=n.h-e+"px",t.h=n.h),i._lastRepaintRect=t,i.fire("repaint",{},!1),i},renderHtml:function(){var n=this,u=n.settings,r,f;return r={id:n._id,hidefocus:"1"},t.each(["rows","spellcheck","maxLength","size","readonly","min","max","step","list","pattern","placeholder","required","multiple"],function(n){r[n]=u[n]}),n.disabled()&&(r.disabled="disabled"),u.subtype&&(r.type=u.subtype),f=i.create(u.multiline?"textarea":"input",r),f.value=n.state.get("value"),f.className=n.classes,f.outerHTML},value:function(n){return arguments.length?(this.state.set("value",n),this):(this.state.get("rendered")&&this.state.set("value",this.getEl().value),this.state.get("value"))},postRender:function(){var n=this;n.getEl().value=n.state.get("value");n._super();n.$el.on("change",function(t){n.state.set("value",t.target.value);n.fire("change",t)})},bindStates:function(){var n=this;return n.state.on("change:value",function(t){n.getEl().value!=t.value&&(n.getEl().value=t.value)}),n.state.on("change:disabled",function(t){n.getEl().disabled=t.value}),n._super()},remove:function(){this.$el.off();this._super()}})});i("tinymce/Register",[],function(){var n=this||window,t=function(){return n.tinymce};return"function"==typeof n.define&&(n.define.amd||n.define("ephox/tinymce",[],t)),"object"==typeof module&&(module.exports=window.tinymce),{}});bo([pu,nt,f,u,et,ni,r,c,yi,p,b,o,vt,yt,v,ot,k,ti,ii,bi,pt,ki,d,di,wt,gi,tr,ir,rr,ri,it,ui,ct,fi,ei,oi,g,lt,er,rt,ut,or,kt,dt,sr,at,si,hr,cr,lr,h,ar,vr,yr,pr,wr,dr,gr,nu,hi,tu,iu,oe,se,he,ce,ci,gt,li,le,ru,ai,ae,uu,ve,fu,ye,eu,pe,ou,su,we,ke,de,ge,hu,no,to,io,ro,uo,cu,lu,vi,au,vu,yu,fo,eo,oo,so,ho,co,lo,ao,vo,yo])}(window);!function(n){function e(){function e(n){"remove"===n&&this.each(function(n,t){var i=u(t);i&&i.remove()});this.find("span.mceEditor,div.mceEditor").each(function(n,t){var i=tinymce.get(t.id.replace(/_parent$/,""));i&&i.remove()})}function o(n){var i,t=this;if(null!=n)e.call(t),t.each(function(t,i){var r;(r=tinymce.get(i.id))&&r.setContent(n)});else if(t.length>0&&(i=tinymce.get(t[0].id)))return i.getContent()}function u(n){var i=null;return n&&n.id&&t.tinymce&&(i=tinymce.get(n.id)),i}function f(n){return!!(n&&n.length&&t.tinymce&&n.is(":tinymce"))}var i={};n.each(["text","html","val"],function(t,e){var s=i[e]=n.fn[e],h="text"===e;n.fn[e]=function(t){var i=this,e,c;return f(i)?t!==r?(o.call(i.filter(":tinymce"),t),s.apply(i.not(":tinymce"),arguments),i):(e="",c=arguments,(h?i:i.eq(0)).each(function(t,i){var r=u(i);e+=r?h?r.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):r.getContent({save:!0}):s.apply(n(i),c)}),e):s.apply(i,arguments)}});n.each(["append","prepend"],function(t,e){var o=i[e]=n.fn[e],s="prepend"===e;n.fn[e]=function(n){var t=this;return f(t)?n!==r?("string"==typeof n&&t.filter(":tinymce").each(function(t,i){var r=u(i);r&&r.setContent(s?n+r.getContent():r.getContent()+n)}),o.apply(t.not(":tinymce"),arguments),t):void 0:o.apply(t,arguments)}});n.each(["remove","replaceWith","replaceAll","empty"],function(t,r){var u=i[r]=n.fn[r];n.fn[r]=function(){return e.call(this,r),u.apply(this,arguments)}});i.attr=n.fn.attr;n.fn.attr=function(t,e){var s=this,h=arguments,c,l;return!t||"value"!==t||!f(s)?e!==r?i.attr.apply(s,h):i.attr.apply(s,h):e!==r?(o.call(s.filter(":tinymce"),e),i.attr.apply(s.not(":tinymce"),h),s):(c=s[0],l=u(c),l?l.getContent({save:!0}):i.attr.apply(n(c),h))}}var r,i,u,f=[],t=window;n.fn.tinymce=function(r){function a(){var t=[],i=0;u||(e(),u=!0);s.each(function(n,u){var e,f=u.id,o=r.oninit;f||(u.id=f=tinymce.DOM.uniqueId());tinymce.get(f)||(e=new tinymce.Editor(f,r,tinymce.EditorManager),t.push(e),e.on("init",function(){var r,n=o;s.css("visibility","");o&&++i==t.length&&("string"==typeof n&&(r=n.indexOf(".")===-1?null:tinymce.resolve(n.replace(/\.\w+$/,"")),n=tinymce.resolve(n)),n.apply(r||tinymce,t))}))});n.each(t,function(n,t){t.render()})}var o,v,c,s=this,l="",h;return s.length?r?((s.css("visibility","hidden"),!t.tinymce&&!i&&(o=r.script_url))?(i=1,v=o.substring(0,o.lastIndexOf("/")),o.indexOf(".min")!=-1&&(l=".min"),t.tinymce=t.tinyMCEPreInit||{base:v,suffix:l},o.indexOf("gzip")!=-1&&(c=r.language||"en",o=o+(/\?/.test(o)?"&":"?")+"js=true&core=true&suffix="+escape(l)+"&themes="+escape(r.theme||"modern")+"&plugins="+escape(r.plugins||"")+"&languages="+(c||""),t.tinyMCE_GZ||(t.tinyMCE_GZ={start:function(){function t(n){tinymce.ScriptLoader.markDone(tinymce.baseURI.toAbsolute(n))}t("langs/"+c+".js");t("themes/"+r.theme+"/theme"+l+".js");t("themes/"+r.theme+"/langs/"+c+".js");n.each(r.plugins.split(","),function(n,i){i&&(t("plugins/"+i+"/plugin"+l+".js"),t("plugins/"+i+"/langs/"+c+".js"))})},end:function(){}})),h=document.createElement("script"),h.type="text/javascript",h.onload=h.onreadystatechange=function(t){t=t||window.event;2!==i&&("load"==t.type||/complete|loaded/.test(h.readyState))&&(tinymce.dom.Event.domLoaded=1,i=2,r.script_loaded&&r.script_loaded(),a(),n.each(f,function(n,t){t()}))},h.src=o,document.body.appendChild(h)):1===i?f.push(a):a(),s):window.tinymce?tinymce.get(s[0].id):null:s};n.extend(n.expr[":"],{tinymce:function(n){var t;return!!(n.id&&"tinymce"in window&&(t=tinymce.get(n.id),t&&t.editorManager===tinymce))}})}(jQuery);!function(){var r={},f=function(n){for(var f,u=r[n],e=u.deps,h=u.defn,o=e.length,s=new Array(o),t=0;t<o;++t)s[t]=i(e[t]);if(f=h.apply(null,s),void 0===f)throw"module ["+n+"] returned undefined";u.instance=f},u=function(n,t,i){if("string"!=typeof n)throw"module id must be a string";if(void 0===t)throw"no dependencies for "+n;if(void 0===i)throw"no definition function for "+n;r[n]={deps:t,defn:i,instance:void 0}},i=function(n){var t=r[n];if(void 0===t)throw"module ["+n+"] was undefined";return void 0===t.instance&&f(n),t.instance},e=function(n,t){for(var u=n.length,f=new Array(u),r=0;r<u;++r)f.push(i(n[r]));t.apply(null,t)},n,t;({}).bolt={module:{api:{define:u,require:e,demand:i}}};n=u;t=function(t,i){n(t,[],function(){return i})};t("1",tinymce.Env);t("2",tinymce.EditorManager);t("3",tinymce.ThemeManager);t("8",tinymce.util.Tools);t("9",tinymce.ui.Factory);t("a",tinymce.DOM);n("b",["8","9"],function(n,t){var r="undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",i=function(i,r,u){var f,e=[];if(r)return n.each(r.split(/[ ,]/),function(n){var r,o=function(){var t=i.selection;n.settings.stateSelector&&t.selectorChanged(n.settings.stateSelector,function(t){n.active(t)},!0);n.settings.disabledStateSelector&&t.selectorChanged(n.settings.disabledStateSelector,function(t){n.disabled(t)})};"|"==n?f=null:t.has(n)?(n={type:n,size:u},e.push(n),f=null):(f||(f={type:"buttongroup",items:[]},e.push(f)),i.buttons[n]&&(r=n,n=i.buttons[r],"function"==typeof n&&(n=n()),n.type=n.type||"button",n.size=u,n=t.create(n),f.items.push(n),i.initialized?o():i.on("init",o)))}),{type:"toolbar",layout:"flow",items:e}},u=function(t,u){var e=[],f=t.settings,s=function(n){if(n)return e.push(i(t,n,u)),!0},o;if(n.isArray(f.toolbar)){if(0===f.toolbar.length)return;n.each(f.toolbar,function(n,t){f["toolbar"+(t+1)]=n});delete f.toolbar}for(o=1;o<10&&s(f["toolbar"+o]);o++);if(e.length||f.toolbar===!1||s(f.toolbar||r),e.length)return{type:"panel",layout:"stack",classes:"toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:e}};return{createToolbar:i,createToolbars:u}});n("c",["8"],function(n){var t={file:{title:"File",items:"newdocument"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall"},insert:{title:"Insert",items:"|"},view:{title:"View",items:"visualaid |"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript | formats | removeformat"},table:{title:"Table"},tools:{title:"Tools"}},i=function(n,t){var i;return"|"==t?{text:"|"}:i=n[t]},r=function(r,u,f){var h,s,e,c,l,o;if(l=n.makeMap((u.removed_menuitems||"").split(/[ ,]/)),u.menu?(s=u.menu[f],c=!0):s=t[f],s){for(h={text:s.title},e=[],n.each((s.items||"").split(/[ ,]/),function(n){var t=i(r,n);t&&!l[n]&&e.push(i(r,n))}),c||n.each(r,function(n){n.context==f&&("before"==n.separator&&e.push({text:"|"}),n.prependToContext?e.unshift(n):e.push(n),"after"==n.separator&&e.push({text:"|"}))}),o=0;o<e.length;o++)"|"==e[o].text&&(0!==o&&o!=e.length-1||e.splice(o,1));if(h.menu=e,!h.menu.length)return null}return h},u=function(n){var u,h=[],f=n.settings,o=[],s,e,i;if(f.menu)for(u in f.menu)o.push(u);else for(u in t)o.push(u);for(s="string"==typeof f.menubar?f.menubar.split(/[ ,]/):o,e=0;e<s.length;e++)i=s[e],i=r(n.menuItems,n.settings,i),i&&h.push(i);return h};return{createMenuButtons:u}});t("j",tinymce.util.Delay);t("k",tinymce.geom.Rect);n("d",["a","8","j","b","9","k"],function(n,t,i,r,u,f){var e=function(n){return{left:n.x,top:n.y,width:n.w,height:n.h,right:n.x+n.w,bottom:n.y+n.h}},h=function(n){t.each(n.contextToolbars,function(n){n.panel&&n.panel.hide()})},o=function(n,t){n.moveTo(t.left,t.top)},c=function(n,i,r){i=i?i.substr(0,2):"";t.each({t:"down",b:"up"},function(t,u){n.classes.toggle("arrow-"+t,r(u,i.substr(0,1)))});t.each({l:"left",r:"right"},function(t,u){n.classes.toggle("arrow-"+t,r(u,i.substr(1,1)))})},s=function(n,t,i,r,u,f){return f=e({x:t,y:i,w:f.w,h:f.h}),n&&(f=n({elementRect:e(r),contentAreaRect:e(u),panelRect:f})),f},l=function(e){var l,b=e.settings,v=function(){return e.contextToolbars||[]},k=function(t){var u,i,r;return u=n.getPos(e.getContentAreaContainer()),i=e.dom.getRect(t),r=e.dom.getRoot(),"BODY"===r.nodeName&&(i.x-=r.ownerDocument.documentElement.scrollLeft||r.scrollLeft,i.y-=r.ownerDocument.documentElement.scrollTop||r.scrollTop),i.x+=u.x,i.y+=u.y,i},y=function(t,i){var v,l,r,u,a,y,w,d,p=b.inline_toolbar_position_handler;if(!e.removed){if(!t||!t.toolbar.panel)return void h(e);w=["bc-tc","tc-bc","tl-bl","bl-tl","tr-br","br-tr"];a=t.toolbar.panel;i&&a.show();r=k(t.element);l=n.getRect(a.getEl());u=n.getRect(e.getContentAreaContainer()||e.getBody());d=25;"inline"!==n.getStyle(t.element,"display",!0)&&(r.w=t.element.clientWidth,r.h=t.element.clientHeight);e.inline||(u.w=e.getDoc().documentElement.offsetWidth);e.selection.controlSelection.isResizable(t.element)&&r.w<d&&(r=f.inflate(r,0,8));v=f.findBestRelativePosition(l,r,u,w);r=f.clamp(r,u);v?(y=f.relativePosition(l,r,v),o(a,s(p,y.x,y.y,r,u,l))):(u.h+=l.h,r=f.intersect(u,r),r?(v=f.findBestRelativePosition(l,r,u,["bc-tc","bl-tl","br-tr"]),v?(y=f.relativePosition(l,r,v),o(a,s(p,y.x,y.y,r,u,l))):o(a,s(p,r.x,r.y,r,u,l))):a.hide());c(a,v,function(n,t){return n===t})}},p=function(n){return function(){var t=function(){e.selection&&y(a(e.selection.getNode()),n)};i.requestAnimationFrame(t)}},d=function(){l||(l=e.selection.getScrollContainer()||e.getWin(),n.bind(l,"scroll",p(!0)),e.on("remove",function(){n.unbind(l,"scroll")}))},g=function(n){var t;return n.toolbar.panel?(n.toolbar.panel.show(),void y(n)):(d(),t=u.create({type:"floatpanel",role:"dialog",classes:"tinymce tinymce-inline arrow",ariaLabel:"Inline toolbar",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!0,border:1,items:r.createToolbar(e,n.toolbar.items),oncancel:function(){e.focus()}}),n.toolbar.panel=t,t.renderTo(document.body).reflow(),void y(n))},w=function(){t.each(v(),function(n){n.panel&&n.panel.hide()})},a=function(n){for(var i,u=v(),r=e.$(n).parents().add(n),t=r.length-1;t>=0;t--)for(i=u.length-1;i>=0;i--)if(u[i].predicate(r[t]))return{toolbar:u[i],element:r[t]};return null};e.on("click keyup setContent ObjectResized",function(n){("setcontent"!==n.type||n.selection)&&i.setEditorTimeout(e,function(){var n;n=a(e.selection.getNode());n?(w(),g(n)):w()})});e.on("blur hide contextmenu",w);e.on("ObjectResizeStart",function(){var n=a(e.selection.getNode());n&&n.toolbar.panel&&n.toolbar.panel.hide()});e.on("ResizeEditor ResizeWindow",p(!0));e.on("nodeChange",p(!1));e.on("remove",function(){t.each(v(),function(n){n.panel&&n.panel.remove()});e.contextToolbars={}});e.shortcuts.add("ctrl+shift+e > ctrl+shift+p","",function(){var n=a(e.selection.getNode());n&&n.toolbar.panel&&n.toolbar.panel.items()[0].focus()})};return{addContextualToolbars:l}});n("e",[],function(){var n=function(n,t){return function(){var i=n.find(t)[0];i&&i.focus(!0)}},t=function(t,i){t.shortcuts.add("Alt+F9","",n(i,"menubar"));t.shortcuts.add("Alt+F10,F10","",n(i,"toolbar"));t.shortcuts.add("Alt+F11","",n(i,"elementpath"));i.on("cancel",function(){t.focus()})};return{addKeys:t}});n("f",["8","9","1"],function(n,t,i){var u=function(n){return{element:function(){return n}}},r=function(n,t,i){var r=n.settings[i];r&&r(u(t.getEl("body")))},f=function(t,i,u){n.each(u,function(n){var u=i.items().filter("#"+n.name)[0];u&&u.visible()&&n.name!==t&&(r(n,u,"onhide"),u.visible(!1))})},e=function(n){n.items().each(function(n){n.active(!1)})},o=function(t,i){return n.grep(t,function(n){return n.name===i})[0]},s=function(n,i,u){return function(s){var c=s.control,a=c.parents().filter("panel")[0],h=a.find("#"+i)[0],l=o(u,i);f(i,a,u);e(c.parent());h&&h.visible()?(r(l,h,"onhide"),h.hide(),c.active(!1)):(h?(h.show(),r(l,h,"onshow")):(h=t.create({type:"container",name:i,layout:"stack",classes:"sidebar-panel",html:""}),a.prepend(h),r(l,h,"onrender"),r(l,h,"onshow")),c.active(!0));n.fire("ResizeEditor")}},h=function(){return!i.ie||i.ie>=11},c=function(n){return!(!h()||!n.sidebars)&&n.sidebars.length>0},l=function(t){var i=n.map(t.sidebars,function(n){var i=n.settings;return{type:"button",icon:i.icon,image:i.image,tooltip:i.tooltip,onclick:s(t,n.name,t.sidebars)}});return{type:"panel",name:"sidebar",layout:"stack",classes:"sidebar",items:[{type:"toolbar",layout:"stack",classes:"sidebar-toolbar",items:i}]}};return{hasSidebar:c,createSidebar:l}});n("g",[],function(){var n=function(n){return function(){n.initialized?n.fire("SkinLoaded"):n.on("init",function(){n.fire("SkinLoaded")})}};return{fireSkinLoaded:n}});n("6",["a"],function(n){var t=function(n){return{width:n.clientWidth,height:n.clientHeight}},i=function(i,r,u){var o,f,s,h,e=i.settings;o=i.getContainer();f=i.getContentAreaContainer().firstChild;s=t(o);h=t(f);null!==r&&(r=Math.max(e.min_width||100,r),r=Math.min(e.max_width||65535,r),n.setStyle(o,"width",r+(s.width-h.width)),n.setStyle(f,"width",r));u=Math.max(e.min_height||100,u);u=Math.min(e.max_height||65535,u);n.setStyle(f,"height",u);i.fire("ResizeEditor")},r=function(n,t,r){var u=n.getContentAreaContainer();i(n,u.clientWidth+t,u.clientHeight+r)};return{resizeTo:i,resizeBy:r}});n("4",["8","9","a","b","c","d","e","f","g","6"],function(n,t,i,r,u,f,e,o,s,h){var l=function(n){return function(t){n.find("*").disabled("readonly"===t.mode)}},c=function(n){return{type:"panel",name:"iframe",layout:"stack",classes:"edit-area",border:n,html:""}},a=function(n){return{type:"panel",layout:"stack",classes:"edit-aria-container",border:"1 0 0 0",items:[c("0"),o.createSidebar(n)]}},v=function(n,v,y){var p,k,b,w=n.settings;return y.skinUiCss&&i.styleSheetLoader.load(y.skinUiCss,s.fireSkinLoaded(n)),p=v.panel=t.create({type:"panel",role:"application",classes:"tinymce",style:"visibility: hidden",layout:"stack",border:1,items:[w.menubar===!1?null:{type:"menubar",border:"0 0 1 0",items:u.createMenuButtons(n)},r.createToolbars(n,w.toolbar_items_size),o.hasSidebar(n)?a(n):c("1 0 0 0")]}),w.resize!==!1&&(k={type:"resizehandle",direction:w.resize,onResizeStart:function(){var t=n.getContentAreaContainer().firstChild;b={width:t.clientWidth,height:t.clientHeight}},onResize:function(t){"both"===w.resize?h.resizeTo(n,b.width+t.deltaX,b.height+t.deltaY):h.resizeTo(n,null,b.height+t.deltaY)}}),w.statusbar!==!1&&p.add({type:"panel",name:"statusbar",classes:"statusbar",layout:"flow",border:"1 0 0 0",ariaRoot:!0,items:[{type:"elementpath",editor:n},k]}),n.fire("BeforeRenderUI"),n.on("SwitchMode",l(p)),p.renderBefore(y.targetNode).reflow(),w.readonly&&n.setMode("readonly"),w.width&&i.setStyle(p.getEl(),"width",w.width),n.on("remove",function(){p.remove();p=null}),e.addKeys(n,p),f.addContextualToolbars(n),{iframeContainer:p.find("#iframe")[0].getEl(),editorContainer:p.getEl()}};return{render:v}});t("h",tinymce.ui.FloatPanel);n("5",["8","9","a","h","b","c","d","e","g"],function(n,t,i,r,u,f,e,o,s){var h=function(n,h,c){var l,v,a=n.settings;a.fixed_toolbar_container&&(v=i.select(a.fixed_toolbar_container)[0]);var w=function(){var t,r;if(l&&l.moveRel&&l.visible()&&!l._fixed){var u=n.selection.getScrollContainer(),f=n.getBody(),e=0,o=0;u&&(t=i.getPos(f),r=i.getPos(u),e=Math.max(0,r.x-t.x),o=Math.max(0,r.y-t.y));l.fixed(!1).moveRel(f,n.rtl?["tr-br","br-tr"]:["tl-bl","bl-tl","tr-br"]).moveBy(e,o)}},y=function(){l&&(l.show(),w(),i.addClass(n.getBody(),"mce-edit-focus"))},b=function(){l&&(l.hide(),r.hideAll(),i.removeClass(n.getBody(),"mce-edit-focus"))},p=function(){return l?void(l.visible()||y()):(l=h.panel=t.create({type:v?"panel":"floatpanel",role:"application",classes:"tinymce tinymce-inline",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!!v,border:1,items:[a.menubar===!1?null:{type:"menubar",border:"0 0 1 0",items:f.createMenuButtons(n)},u.createToolbars(n,a.toolbar_items_size)]}),n.fire("BeforeRenderUI"),l.renderTo(v||document.body).reflow(),o.addKeys(n,l),y(),e.addContextualToolbars(n),n.on("nodeChange",w),n.on("activate",y),n.on("deactivate",b),void n.nodeChanged())};return a.content_editable=!0,n.on("focus",function(){c.skinUiCss?i.styleSheetLoader.load(c.skinUiCss,p,p):p()}),n.on("blur hide",b),n.on("remove",function(){l&&(l.remove(),l=null)}),c.skinUiCss&&i.styleSheetLoader.load(c.skinUiCss,s.fireSkinLoaded(n)),{}};return{render:h}});t("i",tinymce.ui.Throbber);n("7",["i"],function(n){var t=function(t,i){var r;t.on("ProgressState",function(t){r=r||new n(i.panel.getEl("body"));t.state?r.show(t.time):r.hide()})};return{setup:t}});n("0",["1","2","3","4","5","6","7"],function(n,t,i,r,u,f,e){var o=function(i,f,o){var h=i.settings,c=h.skin!==!1&&(h.skin||"lightgray"),s;return c&&(s=h.skin_url,s=s?i.documentBaseURI.toAbsolute(s):t.baseURL+"/skins/"+c,o.skinUiCss=n.documentMode<=7?s+"/skin.ie7.min.css":s+"/skin.min.css",i.contentCSS.push(s+"/content"+(i.inline?".inline":"")+".min.css")),e.setup(i,f),h.inline?u.render(i,f,o):r.render(i,f,o)};return i.add("modern",function(n){return{renderUI:function(t){return o(n,this,t)},resizeTo:function(t,i){return f.resizeTo(n,t,i)},resizeBy:function(t,i){return f.resizeBy(n,t,i)}}}),function(){}});i("0")()}();tinymce.PluginManager.add("advlist",function(n){function o(t){return n.$.contains(n.getBody(),t)}function s(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&o(n)}function r(n,t){var i=[];return tinymce.each(t.split(/[ ,]/),function(n){i.push({text:n.replace(/\-/g," ").replace(/\b\w/g,function(n){return n.toUpperCase()}),data:"default"==n?"":n})}),i}function t(t,i){n.undoManager.transact(function(){var r,u=n.dom,f=n.selection,e;(r=u.getParent(f.getNode(),"ol,ul"),r&&r.nodeName==t&&i!==!1)||(e={"list-style-type":i?i:""},n.execCommand("UL"==t?"InsertUnorderedList":"InsertOrderedList",!1,e));r=u.getParent(f.getNode(),"ol,ul");r&&tinymce.util.Tools.each(u.select("ol,ul",r).concat([r]),function(n){n.nodeName!==t&&i!==!1&&(n=u.rename(n,t));u.setStyle(n,"listStyleType",i?i:null);n.removeAttribute("data-mce-style")});n.focus()})}function u(t){var i=n.dom.getStyle(n.dom.getParent(n.selection.getNode(),"ol,ul"),"listStyleType")||"";t.control.items().each(function(n){n.active(n.settings.data===i)})}var f,e,h=function(n,t){var i=n.settings.plugins?n.settings.plugins:"";return tinymce.util.Tools.inArray(i.split(/[ ,]/),t)!==-1},i;f=r("OL",n.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"));e=r("UL",n.getParam("advlist_bullet_styles","default,circle,disc,square"));i=function(t){return function(){var i=this;n.on("NodeChange",function(n){var r=tinymce.util.Tools.grep(n.parents,s);i.active(r.length>0&&r[0].nodeName===t)})}};h(n,"lists")&&(n.addCommand("ApplyUnorderedListStyle",function(n,i){t("UL",i["list-style-type"])}),n.addCommand("ApplyOrderedListStyle",function(n,i){t("OL",i["list-style-type"])}),n.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:f,onPostRender:i("OL"),onshow:u,onselect:function(n){t("OL",n.control.settings.data)},onclick:function(){t("OL",!1)}}),n.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",onPostRender:i("UL"),menu:e,onshow:u,onselect:function(n){t("UL",n.control.settings.data)},onclick:function(){t("UL",!1)}}))});tinymce.PluginManager.add("charmap",function(n){function f(){return[["160","no-break space"],["173","soft hyphen"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["256","A - macron"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["274","E - macron"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["298","I - macron"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["332","O - macron"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["362","U - macron"],["221","Y - acute"],["376","Y - diaeresis"],["562","Y - macron"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["257","a - macron"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["275","e - macron"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["299","i - macron"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["333","o macron"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["363","u - macron"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["563","y - macron"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","Weierstrass p"],["8465","imaginary part"],["8592","leftwards arrow"],["8593","upwards arrow"],["8594","rightwards arrow"],["8595","downwards arrow"],["8596","left right arrow"],["8629","carriage return"],["8656","leftwards double arrow"],["8657","upwards double arrow"],["8658","rightwards double arrow"],["8659","downwards double arrow"],["8660","left right double arrow"],["8756","therefore"],["8834","subset of"],["8835","superset of"],["8836","not a subset of"],["8838","subset of or equal to"],["8839","superset of or equal to"],["8853","circled plus"],["8855","circled times"],["8869","perpendicular"],["8901","dot operator"],["8968","left ceiling"],["8969","right ceiling"],["8970","left floor"],["8971","right floor"],["9001","left-pointing angle bracket"],["9002","right-pointing angle bracket"],["9674","lozenge"],["9824","black spade suit"],["9827","black club suit"],["9829","black heart suit"],["9830","black diamond suit"],["8194","en space"],["8195","em space"],["8201","thin space"],["8204","zero width non-joiner"],["8205","zero width joiner"],["8206","left-to-right mark"],["8207","right-to-left mark"]]}function e(n){return tinymce.util.Tools.grep(n,function(n){return u(n)&&2==n.length})}function t(n){return u(n)?[].concat(e(n)):"function"==typeof n?n():[]}function o(i){var r=n.settings;return r.charmap&&(i=t(r.charmap)),r.charmap_append?[].concat(i).concat(t(r.charmap_append)):i}function i(){return o(f())}function r(t){n.fire("insertCustomChar",{chr:t}).chr;n.execCommand("mceInsertContent",!1,t)}function s(){function a(n){for(;n;){if("TD"==n.nodeName)return n;n=n.parentNode}}var t,e,o,u,c,f,l,v;t='<table role="presentation" cellspacing="0" class="mce-charmap"><tbody>';var s=i(),h=Math.min(s.length,25),y=Math.ceil(s.length/h);for(o=0;o<y;o++){for(t+="<tr>",e=0;e<h;e++)c=o*h+e,c<s.length?(f=s[c],l=f?String.fromCharCode(parseInt(f[0],10)):"&nbsp;",t+='<td title="'+f[1]+'"><div tabindex="-1" title="'+f[1]+'" role="button" data-chr="'+l+'">'+l+"<\/div><\/td>"):t+="<td />";t+="<\/tr>"}t+="<\/tbody><\/table>";v={type:"container",html:t,onclick:function(n){var t=n.target;/^(TD|DIV)$/.test(t.nodeName)&&a(t).firstChild&&(r(t.getAttribute("data-chr")),n.ctrlKey||u.close())},onmouseover:function(n){var t=a(n.target);t&&t.firstChild?(u.find("#preview").text(t.firstChild.firstChild.data),u.find("#previewTitle").text(t.title)):(u.find("#preview").text(" "),u.find("#previewTitle").text(" "))}};u=n.windowManager.open({title:"Special character",spacing:10,padding:10,items:[v,{type:"container",layout:"flex",direction:"column",align:"center",spacing:5,minWidth:160,minHeight:160,items:[{type:"label",name:"preview",text:" ",style:"font-size: 40px; text-align: center",border:1,minWidth:140,minHeight:80},{type:"label",name:"previewTitle",text:" ",style:"text-align: center",border:1,minWidth:140,minHeight:80}]}],buttons:[{text:"Close",onclick:function(){u.close()}}]})}var u=tinymce.util.Tools.isArray;return n.addCommand("mceShowCharmap",s),n.addButton("charmap",{icon:"charmap",tooltip:"Special character",cmd:"mceShowCharmap"}),n.addMenuItem("charmap",{icon:"charmap",text:"Special character",cmd:"mceShowCharmap",context:"insert"}),{getCharMap:i,insertChar:r}});tinymce.PluginManager.add("contextmenu",function(n){var t,i,u=n.settings.contextmenu_never_use_native,r=function(n){return n.ctrlKey&&!u},f=function(){return tinymce.Env.mac&&tinymce.Env.webkit},e=function(){return i===!0};return n.on("mousedown",function(t){f()&&2===t.button&&!r(t)&&n.selection.isCollapsed()&&n.once("contextmenu",function(t){n.selection.placeCaretAt(t.clientX,t.clientY)})}),n.on("contextmenu",function(u){var s,f,e,o;if(!r(u)){if(u.preventDefault(),s=n.settings.contextmenu||"link openlink image inserttable | cell row column deletetable",t)t.show();else{for(f=[],tinymce.each(s.split(/[ ,]/),function(t){var i=n.menuItems[t];"|"==t&&(i={text:t});i&&(i.shortcut="",f.push(i))}),e=0;e<f.length;e++)"|"==f[e].text&&(0!==e&&e!=f.length-1||f.splice(e,1));t=new tinymce.ui.Menu({items:f,context:"contextmenu",classes:"contextmenu"}).renderTo();t.on("hide",function(n){n.control===this&&(i=!1)});n.on("remove",function(){t.remove();t=null})}o={x:u.pageX,y:u.pageY};n.inline||(o=tinymce.DOM.getPos(n.getContentAreaContainer()),o.x+=u.clientX,o.y+=u.clientY);t.moveTo(o.x,o.y);i=!0}}),{isContextMenuVisible:e}});tinymce.PluginManager.add("image",function(n){function u(n,t){function u(n,r){i.parentNode&&i.parentNode.removeChild(i);t({width:n,height:r})}var i=document.createElement("img"),r;i.onload=function(){u(Math.max(i.width,i.clientWidth),Math.max(i.height,i.clientHeight))};i.onerror=function(){u()};r=i.style;r.visibility="hidden";r.position="fixed";r.bottom=r.left=0;r.width=r.height="auto";document.body.appendChild(i);i.src=n}function r(n,t,i){function r(n,i){return i=i||[],tinymce.each(n,function(n){var u={text:n.text||n.title};n.menu?u.menu=r(n.menu):(u.value=n.value,t(u));i.push(u)}),i}return r(n,i||[])}function t(t){return function(){var i=n.settings.image_list;"string"==typeof i?tinymce.util.XHR.send({url:i,success:function(n){t(tinymce.util.JSON.parse(n))}}):"function"==typeof i?i(t):t(i)}}function i(t){function y(){var i,r,n,t;i=o.find("#width")[0];r=o.find("#height")[0];i&&r&&(n=i.value(),t=r.value(),o.find("#constrain")[0].checked()&&s&&c&&n&&t&&(s!=n?(t=Math.round(n/s*t),isNaN(t)||r.value(t)):(n=Math.round(t/c*n),isNaN(n)||i.value(n))),s=n,c=t)}function w(){function u(t){function i(){t.onload=t.onerror=null;n.selection&&(n.selection.select(t),n.nodeChanged())}t.onload=function(){f.width||f.height||!p||e.setAttribs(t,{width:t.clientWidth,height:t.clientHeight});i()};t.onerror=i}var t,r;k();y();f=tinymce.extend(f,o.toJSON());f.alt||(f.alt="");f.title||(f.title="");""===f.width&&(f.width=null);""===f.height&&(f.height=null);f.style||(f.style=null);f={src:f.src,alt:f.alt,title:f.title,width:f.width,height:f.height,style:f.style,caption:f.caption,"class":f.class};n.undoManager.transact(function(){function s(t){return n.schema.getTextBlockElements()[t.nodeName]}if(!f.src)return void(i&&(e.remove(i),n.focus(),n.nodeChanged()));if(""===f.title&&(f.title=null),i?e.setAttribs(i,f):(f.id="__mcenew",n.focus(),n.selection.setContent(e.createHTML("img",f)),i=e.get("__mcenew"),e.setAttrib(i,"id",null)),n.editorUpload.uploadImagesAuto(),f.caption===!1&&e.is(i.parentNode,"figure.image")&&(t=i.parentNode,e.insertAfter(i,t),e.remove(t)),f.caption!==!0)u(i);else if(!e.is(i.parentNode,"figure.image")){r=i;i=i.cloneNode(!0);t=e.create("figure",{"class":"image"});t.appendChild(i);t.appendChild(e.create("figcaption",{contentEditable:!0},"Caption"));t.contentEditable=!1;var o=e.getParent(r,s);o?e.split(o,r,t):e.replace(t,r);n.selection.select(t)}})}function l(n){return n&&(n=n.replace(/px$/,"")),n}function g(t){var i,r,e,f=t.meta||{};a&&a.value(n.convertURL(this.value(),"src"));tinymce.each(f,function(n,t){o.find("#"+t).value(n)});f.width||f.height||(i=n.convertURL(this.value(),"src"),r=n.settings.image_prepend_url,e=new RegExp("^(?:[a-z]+:)?//","i"),r&&!e.test(i)&&i.substring(0,r.length)!==r&&(i=r+i),this.value(i),u(n.documentBaseURI.toAbsolute(this.value()),function(n){n.width&&n.height&&p&&(s=n.width,c=n.height,o.find("#width").value(s),o.find("#height").value(c))}))}function nt(n){n.meta=o.toJSON()}function b(n){if(n.margin){var t=n.margin.split(" ");switch(t.length){case 1:n["margin-top"]=n["margin-top"]||t[0];n["margin-right"]=n["margin-right"]||t[0];n["margin-bottom"]=n["margin-bottom"]||t[0];n["margin-left"]=n["margin-left"]||t[0];break;case 2:n["margin-top"]=n["margin-top"]||t[0];n["margin-right"]=n["margin-right"]||t[1];n["margin-bottom"]=n["margin-bottom"]||t[0];n["margin-left"]=n["margin-left"]||t[1];break;case 3:n["margin-top"]=n["margin-top"]||t[0];n["margin-right"]=n["margin-right"]||t[1];n["margin-bottom"]=n["margin-bottom"]||t[2];n["margin-left"]=n["margin-left"]||t[1];break;case 4:n["margin-top"]=n["margin-top"]||t[0];n["margin-right"]=n["margin-right"]||t[1];n["margin-bottom"]=n["margin-bottom"]||t[2];n["margin-left"]=n["margin-left"]||t[3]}delete n.margin}return n}function k(){function r(n){return n.length>0&&/^[0-9]+$/.test(n)&&(n+="px"),n}if(n.settings.image_advtab){var i=o.toJSON(),t=e.parseStyle(i.style);t=b(t);i.vspace&&(t["margin-top"]=t["margin-bottom"]=r(i.vspace));i.hspace&&(t["margin-left"]=t["margin-right"]=r(i.hspace));i.border&&(t["border-width"]=r(i.border));o.find("#style").value(e.serializeStyle(e.parseStyle(e.serializeStyle(t))))}}function tt(){if(n.settings.image_advtab){var i=o.toJSON(),t=e.parseStyle(i.style);o.find("#vspace").value("");o.find("#hspace").value("");t=b(t);(t["margin-top"]&&t["margin-bottom"]||t["margin-right"]&&t["margin-left"])&&(t["margin-top"]===t["margin-bottom"]?o.find("#vspace").value(l(t["margin-top"])):o.find("#vspace").value(""),t["margin-right"]===t["margin-left"]?o.find("#hspace").value(l(t["margin-right"])):o.find("#hspace").value(""));t["border-width"]&&o.find("#border").value(l(t["border-width"]));o.find("#style").value(e.serializeStyle(e.parseStyle(e.serializeStyle(t))))}}var o,i,v,s,c,a,d,f={},e=n.dom,p=n.settings.image_dimensions!==!1,h;i=n.selection.getNode();v=e.getParent(i,"figure.image");v&&(i=e.select("img",v)[0]);i&&("IMG"!=i.nodeName||i.getAttribute("data-mce-object")||i.getAttribute("data-mce-placeholder"))&&(i=null);i&&(s=e.getAttrib(i,"width"),c=e.getAttrib(i,"height"),f={src:e.getAttrib(i,"src"),alt:e.getAttrib(i,"alt"),title:e.getAttrib(i,"title"),"class":e.getAttrib(i,"class"),width:s,height:c,caption:!!v});t&&(a={type:"listbox",label:"Image list",values:r(t,function(t){t.value=n.convertURL(t.value||t.url,"src")},[{text:"None",value:""}]),value:f.src&&n.convertURL(f.src,"src"),onselect:function(n){var t=o.find("#alt");(!t.value()||n.lastControl&&t.value()==n.lastControl.text())&&t.value(n.control.text());o.find("#src").value(n.control.value()).fire("change")},onPostRender:function(){a=this}});n.settings.image_class_list&&(d={name:"class",type:"listbox",label:"Class",values:r(n.settings.image_class_list,function(t){t.value&&(t.textStyle=function(){return n.formatter.getCssText({inline:"img",classes:[t.value]})})})});h=[{name:"src",type:"filepicker",filetype:"image",label:"Source",autofocus:!0,onchange:g,onbeforecall:nt},a];n.settings.image_description!==!1&&h.push({name:"alt",type:"textbox",label:"Image description"});n.settings.image_title&&h.push({name:"title",type:"textbox",label:"Image Title"});p&&h.push({type:"container",label:"Dimensions",layout:"flex",direction:"row",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:5,size:3,onchange:y,ariaLabel:"Width"},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:5,size:3,onchange:y,ariaLabel:"Height"},{name:"constrain",type:"checkbox",checked:!0,text:"Constrain proportions"}]});h.push(d);n.settings.image_caption&&tinymce.Env.ceFalse&&h.push({name:"caption",type:"checkbox",label:"Caption"});n.settings.image_advtab?(i&&(i.style.marginLeft&&i.style.marginRight&&i.style.marginLeft===i.style.marginRight&&(f.hspace=l(i.style.marginLeft)),i.style.marginTop&&i.style.marginBottom&&i.style.marginTop===i.style.marginBottom&&(f.vspace=l(i.style.marginTop)),i.style.borderWidth&&(f.border=l(i.style.borderWidth)),f.style=n.dom.serializeStyle(n.dom.parseStyle(n.dom.getAttrib(i,"style")))),o=n.windowManager.open({title:"Insert/edit image",data:f,bodyType:"tabpanel",body:[{title:"General",type:"form",items:h},{title:"Advanced",type:"form",pack:"start",items:[{label:"Style",name:"style",type:"textbox",onchange:tt},{type:"form",layout:"grid",packV:"start",columns:2,padding:0,alignH:["left","right"],defaults:{type:"textbox",maxWidth:50,onchange:k},items:[{label:"Vertical space",name:"vspace"},{label:"Horizontal space",name:"hspace"},{label:"Border",name:"border"}]}]}],onSubmit:w})):o=n.windowManager.open({title:"Insert/edit image",data:f,body:h,onSubmit:w})}n.on("preInit",function(){function i(n){var t=n.attr("class");return t&&/\bimage\b/.test(t)}function t(n){return function(t){function f(t){t.attr("contenteditable",n?"true":null)}for(var r,u=t.length;u--;)r=t[u],i(r)&&(r.attr("contenteditable",n?"false":null),tinymce.each(r.getAll("figcaption"),f))}}n.parser.addNodeFilter("figure",t(!0));n.serializer.addNodeFilter("figure",t(!1))});n.addButton("image",{icon:"image",tooltip:"Insert/edit image",onclick:t(i),stateSelector:"img:not([data-mce-object],[data-mce-placeholder]),figure.image"});n.addMenuItem("image",{icon:"image",text:"Image",onclick:t(i),context:"insert",prependToContext:!0});n.addCommand("mceImage",t(i))});tinymce.PluginManager.add("link",function(n){function e(n){return n&&"A"===n.nodeName&&n.href}function o(n){return tinymce.util.Tools.grep(n,e).length>0}function s(t){return n.dom.getParent(t,"a[href]")}function h(){return s(n.selection.getStart())}function l(n){var t=n.getAttribute("data-mce-href");return t?t:n.getAttribute("href")}function a(){var t=n.plugins.contextmenu;return!!t&&t.isContextMenuVisible()}function v(t){var r,i,u;return!!(n.settings.link_context_toolbar&&!a()&&e(t)&&(r=n.selection,i=r.getRng(),u=i.startContainer,3==u.nodeType&&r.isCollapsed()&&i.startOffset>0&&i.startOffset<u.data.length))}function y(n){var t,u,i,r;!tinymce.Env.ie||tinymce.Env.ie>10?(t=document.createElement("a"),t.target="_blank",t.href=n,t.rel="noreferrer noopener",u=document.createEvent("MouseEvents"),u.initMouseEvent("click",!0,!0,window,!0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(u)):(i=window.open("","_blank"),i&&(i.opener=null,r=i.document,r.open(),r.write('<meta http-equiv="refresh" content="0; url='+tinymce.DOM.encode(n)+'">'),r.close()))}function f(t){var i,r;t&&(i=l(t),/^#/.test(i)?(r=n.$(i),r.length&&n.selection.scrollIntoView(r[0],!0)):y(t.href))}function c(){f(h())}function p(){var t=this,i=function(n){o(n.parents)?t.show():t.hide()};o(n.dom.getParents(n.selection.getStart()))||t.hide();n.on("nodechange",i);t.on("remove",function(){n.off("nodechange",i)})}function i(t){return function(){var i=n.settings.link_list;"string"==typeof i?tinymce.util.XHR.send({url:i,success:function(n){t(tinymce.util.JSON.parse(n))}}):"function"==typeof i?i(t):t(i)}}function r(n,t,i){function r(n,i){return i=i||[],tinymce.each(n,function(n){var u={text:n.text||n.title};n.menu?u.menu=r(n.menu):(u.value=n.value,t&&t(u));i.push(u)}),i}return r(n,i||[])}function t(t){function v(n){var t=s.find("#text");(!t.value()||n.lastControl&&t.value()==n.lastControl.text())&&t.value(n.control.text());s.find("#href").value(n.control.value())}function nt(t){var i=[];if(tinymce.each(n.dom.select("a:not([href])"),function(n){var r=n.name||n.id;r&&i.push({text:r,value:"#"+r,selected:t.indexOf("#"+r)!=-1})}),i.length)return i.unshift({text:"None",value:""}),{name:"anchor",type:"listbox",label:"Anchors",values:i,onselect:v}}function y(){!l&&0===i.text.length&&h&&this.parent().parent().find("#text")[0].value(this.value())}function tt(t){var r=t.meta||{};c&&c.value(n.convertURL(this.value(),"href"));tinymce.each(t.meta,function(n,t){var r=s.find("#"+t);"text"===t?0===l.length&&(r.value(n),i.text=n):r.value(n)});r.attach&&(u={href:this.value(),attach:r.attach});r.text||y.call(this)}function it(n){var r=a.getContent(),t,i;if(/</.test(r)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(r)||r.indexOf("href=")==-1))return!1;if(n){if(i=n.childNodes,0===i.length)return!1;for(t=i.length-1;t>=0;t--)if(3!=i[t].nodeType)return!1}return!0}function rt(n){n.meta=s.toJSON()}var p,f,l,s,h,w,c,b,k,d,g,o,i={},a=n.selection,e=n.dom;p=a.getNode();f=e.getParent(p,"a[href]");h=it();i.text=l=f?f.innerText||f.textContent:a.getContent({format:"text"});i.href=f?e.getAttrib(f,"href"):"";f?i.target=e.getAttrib(f,"target"):n.settings.default_link_target&&(i.target=n.settings.default_link_target);(o=e.getAttrib(f,"rel"))&&(i.rel=o);(o=e.getAttrib(f,"class"))&&(i.class=o);(o=e.getAttrib(f,"title"))&&(i.title=o);h&&(w={name:"text",type:"textbox",size:40,label:"Text to display",onchange:function(){i.text=this.value()}});t&&(c={type:"listbox",label:"Link list",values:r(t,function(t){t.value=n.convertURL(t.value||t.url,"href")},[{text:"None",value:""}]),onselect:v,value:n.convertURL(i.href,"href"),onPostRender:function(){c=this}});n.settings.target_list!==!1&&(n.settings.target_list||(n.settings.target_list=[{text:"None",value:""},{text:"New window",value:"_blank"}]),k={name:"target",type:"listbox",label:"Target",values:r(n.settings.target_list)});n.settings.rel_list&&(b={name:"rel",type:"listbox",label:"Rel",values:r(n.settings.rel_list)});n.settings.link_class_list&&(d={name:"class",type:"listbox",label:"Class",values:r(n.settings.link_class_list,function(t){t.value&&(t.textStyle=function(){return n.formatter.getCssText({inline:"a",classes:[t.value]})})})});n.settings.link_title!==!1&&(g={name:"title",type:"textbox",label:"Title",value:i.title});s=n.windowManager.open({title:"Insert link",data:i,body:[{name:"href",type:"filepicker",filetype:"file",size:40,autofocus:!0,label:"Url",onchange:tt,onkeyup:y,onbeforecall:rt},w,g,nt(i.href),c,b,k,d],onSubmit:function(t){function s(t,i){var r=n.selection.getRng();tinymce.util.Delay.setEditorTimeout(n,function(){n.windowManager.confirm(t,function(t){n.selection.setRng(r);i(t)})})}function c(n,t){function u(n){return n=r(n),n?[n,i].join(" "):i}function r(n){var t=new RegExp("("+i.replace(" ","|")+")","g");return n&&(n=tinymce.trim(n.replace(t,""))),n?n:null}var i="noopener noreferrer";return t?u(n):r(n)}function v(){var t={href:r,target:i.target?i.target:null,rel:i.rel?i.rel:null,"class":i.class?i.class:null,title:i.title?i.title:null};n.settings.allow_unsafe_link_target||(t.rel=c(t.rel,"_blank"==t.target));r===u.href&&(u.attach(),u={});f?(n.focus(),h&&i.text!=l&&("innerText"in f?f.innerText=i.text:f.textContent=i.text),e.setAttribs(f,t),a.select(f),n.undoManager.add()):h?n.insertContent(e.createHTML("a",t,e.encode(i.text))):n.execCommand("mceInsertLink",!1,t)}function o(){n.undoManager.transact(v)}var r;return i=tinymce.extend(i,t.data),(r=i.href)?r.indexOf("@")>0&&r.indexOf("//")==-1&&r.indexOf("mailto:")==-1?void s("The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",function(n){n&&(r="mailto:"+r);o()}):n.settings.link_assume_external_targets&&!/^\w+:/i.test(r)||!n.settings.link_assume_external_targets&&/^\s*www[\.|\d\.]/i.test(r)?void s("The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",function(n){n&&(r="http://"+r);o()}):void o():void n.execCommand("unlink")}})}var u={},w=function(n){return n.altKey===!0&&n.shiftKey===!1&&n.ctrlKey===!1&&n.metaKey===!1};n.addButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Meta+K",onclick:i(t),stateSelector:"a[href]"});n.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink",stateSelector:"a[href]"});n.addContextToolbar&&(n.addButton("openlink",{icon:"newtab",tooltip:"Open link",onclick:c}),n.addContextToolbar(v,"openlink | link unlink"));n.addShortcut("Meta+K","",i(t));n.addCommand("mceLink",i(t));n.on("click",function(n){var t=s(n.target);t&&tinymce.util.VK.metaKeyPressed(n)&&(n.preventDefault(),f(t))});n.on("keydown",function(n){var t=h();t&&13===n.keyCode&&w(n)&&(n.preventDefault(),f(t))});this.showDialog=t;n.addMenuItem("openlink",{text:"Open link",icon:"newtab",onclick:c,onPostRender:p,prependToContext:!0});n.addMenuItem("link",{icon:"link",text:"Link",shortcut:"Meta+K",onclick:i(t),stateSelector:"a[href]",context:"insert",prependToContext:!0})});tinymce.PluginManager.add("lists",function(n){function u(t){return n.$.contains(n.getBody(),t)}function i(n){return n&&"BR"==n.nodeName}function t(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&u(n)}function h(n){return n&&/^(LI|DT|DD)$/.test(n.nodeName)}function f(n){return n.parentNode.firstChild==n}function c(n){return n.parentNode.lastChild==n}function e(t){return t&&!!n.schema.getTextBlockElements()[t.nodeName]}function r(t){return t===n.getBody()}function y(n){return n&&3===n.nodeType}function l(n,t){var i=tinymce.dom.RangeUtils.getNode(n,t),r;return h(n)&&y(i)?(r=t>=n.childNodes.length?i.data.length:0,{container:i,offset:r}):{container:n,offset:t}}function a(n){var t=n.cloneRange(),r=l(n.startContainer,n.startOffset),i;return t.setStart(r.container,r.offset),i=l(n.endContainer,n.endOffset),t.setEnd(i.container,i.offset),t}var o=this,s,v;n.on("init",function(){function v(n,t){var i=s.isEmpty(n);return!(t&&s.select("span[data-mce-type=bookmark]").length>0)&&i}function p(n){function i(i){var f,r,u;r=n[i?"startContainer":"endContainer"];u=n[i?"startOffset":"endOffset"];1==r.nodeType&&(f=s.create("span",{"data-mce-type":"bookmark"}),r.hasChildNodes()?(u=Math.min(u,r.childNodes.length-1),i?r.insertBefore(f,r.childNodes[u]):s.insertAfter(f,r.childNodes[u])):r.appendChild(f),r=f,u=0);t[i?"startContainer":"endContainer"]=r;t[i?"startOffset":"endOffset"]=u}var t={};return i(!0),n.collapsed||i(),t}function w(n){function i(t){function f(n){for(var t=n.parentNode.firstChild,i=0;t;){if(t==n)return i;1==t.nodeType&&"bookmark"==t.getAttribute("data-mce-type")||i++;t=t.nextSibling}return-1}var i,r,u;i=u=n[t?"startContainer":"endContainer"];r=n[t?"startOffset":"endOffset"];i&&(1==i.nodeType&&(r=f(i),i=i.parentNode,s.remove(u)),n[t?"startContainer":"endContainer"]=i,n[t?"startOffset":"endOffset"]=r)}i(!0);i();var t=s.createRng();t.setStart(n.startContainer,n.startOffset);n.endContainer&&t.setEnd(n.endContainer,n.endOffset);l.setRng(a(t))}function y(t,i){var u,r,e,f=s.createFragment(),h=n.schema.getBlockElements(),o;if(n.settings.forced_root_block&&(i=i||n.settings.forced_root_block),i&&(r=s.create(i),r.tagName===n.settings.forced_root_block&&s.setAttribs(r,n.settings.forced_root_block_attrs),f.appendChild(r)),t)for(;u=t.firstChild;)o=u.nodeName,e||"SPAN"==o&&"bookmark"==u.getAttribute("data-mce-type")||(e=!0),h[o]?(f.appendChild(u),r=null):i?(r||(r=s.create(i),f.appendChild(r)),r.appendChild(u)):f.appendChild(u);return n.settings.forced_root_block?e||tinymce.Env.ie&&!(tinymce.Env.ie>10)||r.appendChild(s.create("br",{"data-mce-bogus":"1"})):f.appendChild(s.create("br")),f}function b(){return tinymce.grep(l.getSelectedBlocks(),function(n){return h(n)})}function nt(n,t,i){function o(n){tinymce.each(e,function(i){n.parentNode.insertBefore(i,t.parentNode)});s.remove(n)}var u,f,e,r;for(e=s.select('span[data-mce-type="bookmark"]',n),i=i||y(t),u=s.createRng(),u.setStartAfter(t),u.setEndAfter(n),f=u.extractContents(),r=f.firstChild;r;r=r.firstChild)if("LI"==r.nodeName&&s.isEmpty(r)){s.remove(r);break}s.isEmpty(f)||s.insertAfter(f,n);s.insertAfter(i,n);v(t.parentNode)&&o(t.parentNode);s.remove(t);v(n)&&s.remove(n)}function tt(n){var i,r;if(i=n.nextSibling,i&&t(i)&&i.nodeName==n.nodeName&&ot(n,i)){for(;r=i.firstChild;)n.appendChild(r);s.remove(i)}if(i=n.previousSibling,i&&t(i)&&i.nodeName==n.nodeName&&ot(n,i)){for(;r=i.lastChild;)n.insertBefore(r,n.firstChild);s.remove(i)}}function k(n){tinymce.each(tinymce.grep(s.select("ol,ul",n)),ht)}function ht(n){var i,r=n.parentNode;"LI"==r.nodeName&&r.firstChild==n&&(i=r.previousSibling,i&&"LI"==i.nodeName?(i.appendChild(n),v(r)&&s.remove(r)):s.setStyle(r,"listStyleType","none"));t(r)&&(i=r.previousSibling,i&&"LI"==i.nodeName&&i.appendChild(n))}function it(n){function o(n){v(n)&&s.remove(n)}var e,u=n.parentNode,i=u.parentNode;return!!r(u)||("DD"==n.nodeName?(s.rename(n,"DT"),!0):f(n)&&c(n)?("LI"==i.nodeName?(s.insertAfter(n,i),o(i),s.remove(u)):t(i)?s.remove(u,!0):(i.insertBefore(y(n),u),s.remove(u)),!0):f(n)?("LI"==i.nodeName?(s.insertAfter(n,i),n.appendChild(u),o(i)):t(i)?i.insertBefore(n,u):(i.insertBefore(y(n),u),s.remove(n)),!0):c(n)?("LI"==i.nodeName?s.insertAfter(n,i):t(i)?s.insertAfter(n,u):(s.insertAfter(y(n),u),s.remove(n)),!0):("LI"==i.nodeName?(u=i,e=y(n,"LI")):e=t(i)?y(n,"LI"):y(n),nt(u,n,e),k(u.parentNode),!0))}function ct(n){function f(i,r){var u;if(t(i)){for(;u=n.lastChild.firstChild;)r.appendChild(u);s.remove(i)}}var i,r,u;return"DT"==n.nodeName?(s.rename(n,"DD"),!0):(i=n.previousSibling,i&&t(i)?(i.appendChild(n),!0):i&&"LI"==i.nodeName&&t(i.lastChild)?(i.lastChild.appendChild(n),f(n.lastChild,i.lastChild),!0):(i=n.nextSibling,i&&t(i)?(i.insertBefore(n,i.firstChild),!0):(i=n.previousSibling,!(!i||"LI"!=i.nodeName)&&(r=s.create(n.parentNode.nodeName),u=s.getStyle(n.parentNode,"listStyleType"),u&&s.setStyle(r,"listStyleType",u),i.appendChild(r),r.appendChild(n),f(n.lastChild,r),!0))))}function rt(){var i=b(),r,t;if(i.length){for(r=p(l.getRng(!0)),t=0;t<i.length&&(ct(i[t])||0!==t);t++);return w(r),n.nodeChanged(),!0}}function ut(){var i=b(),t,u,f,e,r;if(i.length){for(f=p(l.getRng(!0)),e=n.getBody(),t=i.length;t--;)for(r=i[t].parentNode;r&&r!=e;){for(u=i.length;u--;)if(i[u]===r){i.splice(t,1);break}r=r.parentNode}for(t=0;t<i.length&&(it(i[t])||0!==t);t++);return w(f),n.nodeChanged(),!0}}function lt(r,u){function c(){function o(n){var t,i;for(t=f[n?"startContainer":"endContainer"],i=f[n?"startOffset":"endOffset"],1==t.nodeType&&(t=t.childNodes[Math.min(i,t.childNodes.length-1)]||t);t.parentNode!=h;){if(e(t)||/^(TD|TH)$/.test(t.parentNode.nodeName))return t;t=t.parentNode}return t}for(var t,u=[],h=n.getBody(),l=o(!0),a=o(),c=[],r=l;r&&(c.push(r),r!=a);r=r.nextSibling);return tinymce.each(c,function(n){if(e(n))return u.push(n),void(t=null);if(s.isBlock(n)||i(n))return i(n)&&s.remove(n),void(t=null);var r=n.nextSibling;return tinymce.dom.BookmarkManager.isBookmarkNode(n)&&(e(r)||!r&&n.parentNode==h)?void(t=null):(t||(t=s.create("p"),n.parentNode.insertBefore(t,n),u.push(t)),void t.appendChild(n))}),u}var h,f=l.getRng(!0),o="LI";"false"!==s.getContentEditable(l.getNode())&&(r=r.toUpperCase(),"DL"==r&&(o="DT"),h=p(f),tinymce.each(c(),function(n){var f,i,e=function(n){var i=s.getStyle(n,"list-style-type"),t=u?u["list-style-type"]:"";return t=null===t?"":t,i===t};i=n.previousSibling;i&&t(i)&&i.nodeName==r&&e(i)?(f=i,n=s.rename(n,o),i.appendChild(n)):(f=s.create(r),n.parentNode.insertBefore(f,n),f.appendChild(n),n=s.rename(n,o));st(f,u);tt(f)}),w(h))}function ft(){var u=p(l.getRng(!0)),f=n.getBody(),i=b(),e=tinymce.util.Tools.grep(i,function(n){return v(n)});i=tinymce.util.Tools.grep(i,function(n){return!v(n)});tinymce.each(e,function(n){v(n)});tinymce.each(i,function(n){var i,u;if(!r(n.parentNode)){for(i=n;i&&i!=f;i=i.parentNode)t(i)&&(u=i);nt(u,n);k(u.parentNode)}});w(u)}function d(n,t){var i=s.getParent(l.getStart(),"OL,UL,DL"),u;r(i)||(i?i.nodeName==n?ft(n):(u=p(l.getRng(!0)),st(i,t),tt(s.rename(i,n)),w(u)):lt(n,t))}function g(t){return function(){var i=s.getParent(n.selection.getStart(),"UL,OL,DL");return i&&i.nodeName==t}}function at(n){return!!i(n)&&!(!s.isBlock(n.nextSibling)||i(n.previousSibling))}function vt(t,i){var e,u,r=t.startContainer,f=t.startOffset;if(3==r.nodeType&&(i?f<r.data.length:f>0))return r;for(e=n.schema.getNonEmptyElements(),1==r.nodeType&&(r=tinymce.dom.RangeUtils.getNode(r,f)),u=new tinymce.dom.TreeWalker(r,n.getBody()),i&&at(r)&&u.next();r=u[i?"next":"prev2"]();)if("LI"==r.nodeName&&!r.hasChildNodes()||e[r.nodeName]||3==r.nodeType&&r.data.length>0)return r}function et(n,f){var e,h,o=n.parentNode;if(u(n)&&u(f)){if(t(f.lastChild)&&(h=f.lastChild),o==f.lastChild&&i(o.previousSibling)&&s.remove(o.previousSibling),e=f.lastChild,e&&i(e)&&n.hasChildNodes()&&s.remove(e),v(f,!0)&&s.$(f).empty(),!v(n,!0))for(;e=n.firstChild;)f.appendChild(e);h&&f.appendChild(h);s.remove(n);v(o)&&!r(o)&&s.remove(o)}}function yt(n){var u,f,t,i=s.getParent(l.getStart(),"LI"),e;if(i){if(u=i.parentNode,r(u)&&s.isEmpty(u))return!0;if(f=a(l.getRng(!0)),t=s.getParent(vt(f,n),"LI"),t&&t!=i)return e=p(f),n?et(t,i):et(i,t),w(e),!0;if(!t&&!n&&ft(u.nodeName))return!0}}function pt(){var t=n.dom.getParent(n.selection.getStart(),"LI,DT,DD");return!!(t||b().length>0)&&(n.undoManager.transact(function(){n.execCommand("Delete");k(n.getBody())}),!0)}var s=n.dom,l=n.selection,ot=function(t,i){var r=n.dom.getStyle(t,"list-style-type",!0),u=n.dom.getStyle(i,"list-style-type",!0);return r===u},st=function(n,t){s.setStyle(n,"list-style-type",t?t["list-style-type"]:null)};o.backspaceDelete=function(n){return l.isCollapsed()?yt(n):pt()};n.on("BeforeExecCommand",function(t){var i,r=t.command.toLowerCase();if("indent"==r?rt()&&(i=!0):"outdent"==r&&ut()&&(i=!0),i)return n.fire("ExecCommand",{command:t.command}),t.preventDefault(),!0});n.addCommand("InsertUnorderedList",function(n,t){d("UL",t)});n.addCommand("InsertOrderedList",function(n,t){d("OL",t)});n.addCommand("InsertDefinitionList",function(n,t){d("DL",t)});n.addQueryStateHandler("InsertUnorderedList",g("UL"));n.addQueryStateHandler("InsertOrderedList",g("OL"));n.addQueryStateHandler("InsertDefinitionList",g("DL"));n.on("keydown",function(t){9!=t.keyCode||tinymce.util.VK.metaKeyPressed(t)||n.dom.getParent(n.selection.getStart(),"LI,DT,DD")&&(t.preventDefault(),t.shiftKey?ut():rt())})});s=function(i){return function(){var r=this;n.on("NodeChange",function(n){var u=tinymce.util.Tools.grep(n.parents,t);r.active(u.length>0&&u[0].nodeName===i)})}};v=function(n,t){var i=n.settings.plugins?n.settings.plugins:"";return tinymce.util.Tools.inArray(i.split(/[ ,]/),t)!==-1};v(n,"advlist")||(n.addButton("numlist",{title:"Numbered list",cmd:"InsertOrderedList",onPostRender:s("OL")}),n.addButton("bullist",{title:"Bullet list",cmd:"InsertUnorderedList",onPostRender:s("UL")}));n.addButton("indent",{icon:"indent",title:"Increase indent",cmd:"Indent",onPostRender:function(){var t=this;n.on("nodechange",function(){for(var i,u=n.selection.getSelectedBlocks(),e=!1,r=0,o=u.length;!e&&r<o;r++)i=u[r].nodeName,e="LI"==i&&f(u[r])||"UL"==i||"OL"==i||"DD"==i;t.disabled(e)})}});n.on("keydown",function(n){n.keyCode==tinymce.util.VK.BACKSPACE?o.backspaceDelete()&&n.preventDefault():n.keyCode==tinymce.util.VK.DELETE&&o.backspaceDelete(!0)&&n.preventDefault()})});!function(n,t){"use strict";function u(n,t){for(var u,e=[],i=0;i<n.length;++i){if(u=r[n[i]]||f(n[i]),!u)throw"module definition dependecy not found: "+n[i];e.push(u)}t.apply(null,e)}function i(n,i,f){if("string"!=typeof n)throw"invalid module definition, module id must be defined and be a string";if(i===t)throw"invalid module definition, dependencies must be specified";if(f===t)throw"invalid module definition, definition function must be specified";u(i,function(){r[n]=f.apply(null,arguments)})}function f(t){for(var i=n,u=t.split(/[.\/]/),r=0;r<u.length;++r){if(!i[u[r]])return;i=i[u[r]]}return i}function e(i){for(var e,o,f,h,s,u=0;u<i.length;u++){for(e=n,o=i[u],f=o.split(/[.\/]/),s=0;s<f.length-1;++s)e[f[s]]===t&&(e[f[s]]={}),e=e[f[s]];e[f[f.length-1]]=r[o]}if(n.AMDLC_TESTS){h=n.privateModules||{};for(o in r)h[o]=r[o];for(u=0;u<i.length;u++)delete h[i[u]];n.privateModules=h}}var r={};i("tinymce/pasteplugin/Utils",["tinymce/util/Tools","tinymce/html/DomParser","tinymce/html/Schema"],function(n,t,i){function r(t,i){return n.each(i,function(n){t=n.constructor==RegExp?t.replace(n,""):t.replace(n[0],n[1])}),t}function u(u){function o(n){var t=n.name,i=n;if("br"===t)return void(f+="\n");if(h[t]&&(f+=" "),c[t])return void(f+=" ");if(3==n.type&&(f+=n.value),!n.shortEnded&&(n=n.firstChild))do o(n);while(n=n.next);l[t]&&i.next&&(f+="\n","p"==t&&(f+="\n"))}var e=new i,s=new t({},e),f="",h=e.getShortEndedElements(),c=n.makeMap("script noscript style textarea video audio iframe object"," "),l=e.getBlockElements();return u=r(u,[/<!\[[^\]]+\]>/g]),o(s.parse(u)),f}function f(n){function t(n,t,i){return t||i?" ":" "}return r(n,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i])}function e(n){var t=0;return function(){return n+t++}}return{filter:r,innerText:u,trimHtml:f,createIdGenerator:e}});i("tinymce/pasteplugin/SmartPaste",["tinymce/util/Tools"],function(n){var t=function(n){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(n)},r=function(n){return t(n)&&/.(gif|jpe?g|png)$/.test(n)},u=function(n,t,i){return n.undoManager.extra(function(){i(n,t)},function(){n.insertContent('<img src="'+t+'">')}),!0},f=function(n,t,i){return n.undoManager.extra(function(){i(n,t)},function(){n.execCommand("mceInsertLink",!1,t)}),!0},e=function(n,i,r){return!(n.selection.isCollapsed()!==!1||!t(i))&&f(n,i,r)},o=function(n,t,i){return!!r(t)&&u(n,t,i)},i=function(n,t){return n.insertContent(t,{merge:n.settings.paste_merge_formats!==!1,paste:!0}),!0},s=function(t,r){n.each([e,o,i],function(n){return n(t,r,i)!==!0})},h=function(n,t){n.settings.smart_paste===!1?i(n,t):s(n,t)};return{isImageUrl:r,isAbsoluteUrl:t,insertContent:h}});i("tinymce/pasteplugin/Clipboard",["tinymce/Env","tinymce/dom/RangeUtils","tinymce/util/VK","tinymce/pasteplugin/Utils","tinymce/pasteplugin/SmartPaste","tinymce/util/Delay"],function(n,t,i,r,u,f){return function(e){function h(n){var t,r=e.dom,i;(t=e.fire("BeforePastePreProcess",{content:n}),t=e.fire("PastePreProcess",t),n=t.content,t.isDefaultPrevented())||(e.hasEventListeners("PastePostProcess")&&!t.isDefaultPrevented()&&(i=r.add(e.getBody(),"div",{style:"display:none"},n),t=e.fire("PastePostProcess",{node:i}),r.remove(i),n=t.node.innerHTML),t.isDefaultPrevented()||u.insertContent(e,n))}function p(n){n=e.dom.encode(n).replace(/\r\n/g,"\n");var t,u=e.dom.getParent(e.selection.getStart(),e.dom.isBlock),i=e.settings.forced_root_block;i&&(t=e.dom.createHTML(i,e.settings.forced_root_block_attrs),t=t.substr(0,t.length-3)+">");u&&/^(PRE|DIV)$/.test(u.nodeName)||!i?n=r.filter(n,[[/\n/g,"<br>"]]):(n=r.filter(n,[[/\n\n/g,"<\/p>"+t],[/^(.*<\/p>)(<p>)$/,t+"$1"],[/\n/g,"<br />"]]),n.indexOf("<p>")!=-1&&(n=t+n));h(n)}function b(){function l(n){var r,u,i,f=n.startContainer;if(r=n.getClientRects(),r.length)return r[0];if(n.collapsed&&1==f.nodeType){for(i=f.childNodes[s.startOffset];i&&3==i.nodeType&&!i.data.length;)i=i.nextSibling;if(i)return"BR"==i.tagName&&(u=t.doc.createTextNode("﻿"),i.parentNode.insertBefore(u,i),n=t.createRng(),n.setStartBefore(u),n.setEndAfter(u),r=n.getClientRects(),t.remove(u)),r.length?r[0]:void 0}}var r,t=e.dom,u=e.getBody(),a=e.dom.getViewPort(e.getWin()),h=a.y,f=20,c,i;(s=e.selection.getRng(),e.inline&&(r=e.selection.getScrollContainer(),r&&r.scrollTop>0&&(h=r.scrollTop)),s.getClientRects)&&(c=l(s),c?f=h+(c.top-t.getPos(u).y):(f=h,i=s.startContainer,i&&(3==i.nodeType&&i.parentNode!=u&&(i=i.parentNode),1==i.nodeType&&(f=t.getPos(i,r||u).y))));o=t.add(e.getBody(),"div",{id:"mcepastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: absolute; top: "+f+"px;width: 10px; height: 10px; overflow: hidden; opacity: 0"},y);(n.ie||n.gecko)&&t.setStyle(o,"left","rtl"==t.getStyle(u,"direction",!0)?65535:-65535);t.bind(o,"beforedeactivate focusin focusout",function(n){n.stopPropagation()});o.focus();e.selection.select(o,!0)}function c(){if(o){for(var n;n=e.dom.get("mcepastebin");)e.dom.remove(n),e.dom.unbind(n);s&&e.selection.setRng(s)}o=s=null}function k(){for(var n,u,r="",i=e.dom.select("div[id=mcepastebin]"),t=0;t<i.length;t++)n=i[t],n.firstChild&&"mcepastebin"==n.firstChild.id&&(n=n.firstChild),u=n.innerHTML,r!=y&&(r+=u);return r}function d(n){var r={},t,i,u;if(n&&(n.getData&&(t=n.getData("Text"),t&&t.length>0&&t.indexOf(ct)==-1&&(r["text/plain"]=t)),n.types))for(i=0;i<n.types.length;i++)u=n.types[i],r[u]=n.getData(u);return r}function rt(n){return d(n.clipboardData||e.getDoc().dataTransfer)}function g(n){return l(n,"text/html")||l(n,"text/plain")}function ut(n){var t;return t=n.indexOf(","),t!==-1?n.substr(t+1):null}function ft(n,t){return!n.images_dataimg_filter||n.images_dataimg_filter(t)}function et(n,t,i){var r,o,u;n&&(e.selection.setRng(n),n=null);var f=t.result,s=ut(f),c=new Image;(c.src=f,ft(e.settings,c))?(u=e.editorUpload.blobCache,o=u.findFirst(function(n){return n.base64()===s}),o?r=o:(r=u.create(lt(),i,s),u.add(r)),h('<img src="'+r.blobUri()+'">')):h('<img src="'+f+'">')}function w(n,t){function r(i){var u,r,f,o=!1,e;if(i)for(u=0;u<i.length;u++)(r=i[u],/^image\/(jpeg|png|gif|bmp)$/.test(r.type))&&(e=r.getAsFile?r.getAsFile():r,f=new FileReader,f.onload=et.bind(null,t,f,e),f.readAsDataURL(e),n.preventDefault(),o=!0);return o}var i=n.clipboardData||n.dataTransfer;if(e.settings.paste_data_images&&i)return r(i.items)||r(i.files)}function ot(n){var t=n.clipboardData;return navigator.userAgent.indexOf("Android")!=-1&&t&&t.items&&0===t.items.length}function st(n){return t.getCaretRangeFromPoint(n.clientX,n.clientY,e.getDoc())}function l(n,t){return t in n&&n[t].length>0}function nt(n){return i.metaKeyPressed(n)&&86==n.keyCode||n.shiftKey&&45==n.keyCode}function ht(){function t(n,t,i){var u;return l(n,"text/html")?u=n["text/html"]:(u=k(),u==y&&(i=!0)),u=r.trimHtml(u),o&&o.firstChild&&"mcepastebin"===o.firstChild.id&&(i=!0),c(),u.length||(i=!0),i&&(u=l(n,"text/plain")&&u.indexOf("<\/p>")==-1?n["text/plain"]:r.innerText(u)),u==y?void(t||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.")):void(i?p(u):h(u))}function i(n){var t=n["text/plain"];return!!t&&0===t.indexOf("file://")}e.on("keydown",function(t){function i(n){nt(n)&&!n.isDefaultPrevented()&&c()}if(nt(t)&&!t.isDefaultPrevented()){if(a=t.shiftKey&&86==t.keyCode,a&&n.webkit&&navigator.userAgent.indexOf("Version/")!=-1)return;if(t.stopImmediatePropagation(),tt=(new Date).getTime(),n.ie&&a)return t.preventDefault(),void e.fire("paste",{ieFake:!0});c();b();e.once("keyup",i);e.once("paste",function(){e.off("keyup",i)})}});var u=function(){return s||e.selection.getRng()};e.on("paste",function(i){var y=(new Date).getTime(),r=rt(i),p=(new Date).getTime()-y,s=(new Date).getTime()-tt-p<1e3,h="text"==v.pasteFormat||a;return a=!1,i.isDefaultPrevented()||ot(i)?void c():!g(r)&&w(i,u())?void c():(s||i.preventDefault(),!n.ie||s&&!i.ieFake||(b(),e.dom.bind(o,"paste",function(n){n.stopPropagation()}),e.getDoc().execCommand("Paste",!1,null),r["text/html"]=k()),void(l(r,"text/html")?(i.preventDefault(),t(r,s,h)):f.setEditorTimeout(e,function(){t(r,s,h)},0)))});e.on("dragstart dragend",function(n){it="dragstart"==n.type});e.on("drop",function(n){var t,o,u;(o=st(n),n.isDefaultPrevented()||it||(t=d(n.dataTransfer),(!g(t)||i(t))&&w(n,o)||!o||e.settings.paste_filter_drop===!1))||(u=t["mce-internal"]||t["text/html"]||t["text/plain"],u&&(n.preventDefault(),f.setEditorTimeout(e,function(){e.undoManager.transact(function(){t["mce-internal"]&&e.execCommand("Delete");e.selection.setRng(o);u=r.trimHtml(u);t["text/html"]?h(u):p(u)})})))});e.on("dragover dragend",function(n){e.settings.paste_data_images&&n.preventDefault()})}var o,s,a,v=this,tt=0,it=!1,y="%MCEPASTEBIN%",ct="data:text/mce-internal,",lt=r.createIdGenerator("mceclip");v.pasteHtml=h;v.pasteText=p;v.pasteImageData=w;e.on("preInit",function(){ht();e.parser.addNodeFilter("img",function(t,i,r){function s(n){return n.data&&n.data.paste===!0}function o(t){t.attr("data-mce-object")||f===n.transparentSrc||t.remove()}function h(n){return 0===n.indexOf("webkit-fake-url")}function c(n){return 0===n.indexOf("data:")}var u,f;if(!e.settings.paste_data_images&&s(r))for(u=t.length;u--;)f=t[u].attributes.map.src,f&&(h(f)?o(t[u]):!e.settings.allow_html_data_urls&&c(f)&&o(t[u]))})})}});i("tinymce/pasteplugin/WordFilter",["tinymce/util/Tools","tinymce/html/DomParser","tinymce/html/Schema","tinymce/html/Serializer","tinymce/html/Node","tinymce/pasteplugin/Utils"],function(n,t,i,r,u,f){function e(n){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^'']*\bmso-|w:WordDocument/i.test(n)||/class="OutlineElement/.test(n)||/id="?docs\-internal\-guid\-/.test(n)}function s(t){var i,r;return r=[/^[IVXLMCD]{1,2}\.[ \u00a0]/,/^[ivxlmcd]{1,2}\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/],t=t.replace(/^[\u00a0 ]+/,""),n.each(r,function(n){if(n.test(t))return i=!0,!1}),i}function h(n){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(n)}function o(o){var c=o.settings;o.on("BeforePastePreProcess",function(l){function d(n){function p(n){var t="";if(3===n.type)return n.value;if(n=n.firstChild)do t+=p(n);while(n=n.next);return t}function e(n,t){if(3===n.type&&t.test(n.value))return n.value=n.value.replace(t,""),!1;if(n=n.firstChild)do if(!e(n,t))return!1;while(n=n.next);return!0}function w(n){if(n._listIgnore)return void n.remove();if(n=n.firstChild)do w(n);while(n=n.next)}function l(n,i,o){var s=n._listLevel||f;s!=f&&(s<f?t&&(t=t.parent.parent):(r=t,t=null));t&&t.name==i?t.append(n):(r=r||t,t=new u(i,1),o>1&&t.attr("start",""+o),n.wrap(t));n.name="li";s>f&&r&&r.lastChild.append(t);f=s;w(n);e(n,/^\u00a0+/);e(n,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/);e(n,/^\u00a0+/)}for(var o,c,v,y,t,r,f=1,a=[],i=n.firstChild;"undefined"!=typeof i&&null!==i;)if(a.push(i),i=i.walk(),null!==i)for(;"undefined"!=typeof i&&i.parent!==n;)i=i.walk();for(o=0;o<a.length;o++)if(n=a[o],"p"==n.name&&n.firstChild){if(c=p(n),h(c)){l(n,"ul");continue}if(s(c)){v=/([0-9]+)\./.exec(c);y=1;v&&(y=parseInt(v[1],10));l(n,"ol",y);continue}if(n._listLevel){l(n,"ul",1);continue}t=null}else r=t,t=null}function g(t,i){var f,r={},e=o.dom.parseStyle(i);return n.each(e,function(n,u){switch(u){case"mso-list":f=/\w+ \w+([0-9]+)/i.exec(i);f&&(t._listLevel=parseInt(f[1],10));/Ignore/i.test(n)&&t.firstChild&&(t._listIgnore=!0,t.firstChild._listIgnore=!0);break;case"horiz-align":u="text-align";break;case"vert-align":u="vertical-align";break;case"font-color":case"mso-foreground":u="color";break;case"mso-background":case"mso-highlight":u="background";break;case"font-weight":case"font-style":return void("normal"!=n&&(r[u]=n));case"mso-element":if(/^(comment|comment-list)$/i.test(n))return void t.remove()}return 0===u.indexOf("mso-comment")?void t.remove():void(0!==u.indexOf("mso-")&&("all"==y||b&&b[u])&&(r[u]=n))}),/(bold)/i.test(r["font-weight"])&&(delete r["font-weight"],t.wrap(new u("b",1))),/(italic)/i.test(r["font-style"])&&(delete r["font-style"],t.wrap(new u("i",1))),r=o.dom.serializeStyle(r,t.name),r?r:null}var y,b,a=l.content,p,w,v,k;(a=a.replace(/<b[^>]+id="?docs-internal-[^>]*>/gi,""),a=a.replace(/<br class="?Apple-interchange-newline"?>/gi,""),y=c.paste_retain_style_properties,y&&(b=n.makeMap(y.split(/[, ]/))),c.paste_enable_default_filters!==!1&&e(l.content))&&(l.wordContent=!0,a=f.filter(a,[/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi," "],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(n,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(" "):""}]]),p=c.paste_word_valid_elements,p||(p="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody"),w=new i({valid_elements:p,valid_children:"-li[p]"}),n.each(w.elements,function(n){n.attributes.class||(n.attributes.class={},n.attributesOrder.push("class"));n.attributes.style||(n.attributes.style={},n.attributesOrder.push("style"))}),v=new t({},w),v.addAttributeFilter("style",function(n){for(var t,i=n.length;i--;)t=n[i],t.attr("style",g(t,t.attr("style"))),"span"==t.name&&t.parent&&!t.attributes.length&&t.unwrap()}),v.addAttributeFilter("class",function(n){for(var t,i,r=n.length;r--;)t=n[r],i=t.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(i)&&t.remove(),t.attr("class",null)}),v.addNodeFilter("del",function(n){for(var t=n.length;t--;)n[t].remove()}),v.addNodeFilter("a",function(n){for(var i,t,r,u=n.length;u--;)if(i=n[u],t=i.attr("href"),r=i.attr("name"),t&&t.indexOf("#_msocom_")!=-1)i.remove();else if(t&&0===t.indexOf("file://")&&(t=t.split("#")[1],t&&(t="#"+t)),t||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){i.unwrap();continue}i.attr({href:t,name:r})}else i.unwrap()}),k=v.parse(a),c.paste_convert_word_fake_lists!==!1&&d(k),l.content=new r({validate:c.validate},w).serialize(k))})}return o.isWordContent=e,o});i("tinymce/pasteplugin/Quirks",["tinymce/Env","tinymce/util/Tools","tinymce/pasteplugin/WordFilter","tinymce/pasteplugin/Utils"],function(n,t,i,r){return function(u){function f(n){u.on("BeforePastePreProcess",function(t){t.content=n(t.content)})}function e(n){var f,e;return i.isWordContent(n)?(f=[],t.each(u.schema.getBlockElements(),function(n,t){f.push(t)}),e=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+f.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g"),n=r.filter(n,[[e,"$1"]]),n=r.filter(n,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])):n}function o(n){var t,r,f;return i.isWordContent(n)?n:(t=u.settings.paste_webkit_styles,u.settings.paste_remove_styles_if_webkit===!1||"all"==t)?n:((t&&(t=t.split(/[, ]/)),t)?(r=u.dom,f=u.selection.getNode(),n=n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(n,i,u,e){var l=r.parseStyle(u,"span"),s={},o,h,c;if("none"===t)return i+e;for(o=0;o<t.length;o++)h=l[t[o]],c=r.getStyle(f,t[o],!0),/color/.test(t[o])&&(h=r.toHex(h),c=r.toHex(c)),c!=h&&(s[t[o]]=h);return s=r.serializeStyle(s,"span"),s?i+' style="'+s+'"'+e:i+e})):n=n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3"),n.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(n,t,i,r){return t+' style="'+i+'"'+r}))}n.webkit&&f(o);n.ie&&f(e)}});i("tinymce/pasteplugin/Plugin",["tinymce/PluginManager","tinymce/pasteplugin/Clipboard","tinymce/pasteplugin/WordFilter","tinymce/pasteplugin/Quirks"],function(n,t,i,r){var u;n.add("paste",function(f){function l(){return u||f.settings.paste_plaintext_inform===!1}function h(){if("text"==o.pasteFormat)o.pasteFormat="html",f.fire("PastePlainTextToggle",{state:!1});else if(o.pasteFormat="text",f.fire("PastePlainTextToggle",{state:!0}),!l()){var n=f.translate("Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.");f.notificationManager.open({text:n,type:"info"});u=!0}f.focus()}function c(){var n=this;n.active("text"===o.pasteFormat);f.on("PastePlainTextToggle",function(t){n.active(t.state)})}var o,e=this,s=f.settings;return/(^|[ ,])powerpaste([, ]|$)/.test(s.plugins)&&n.get("powerpaste")?void("undefined"!=typeof console&&console.log&&console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option.")):(e.clipboard=o=new t(f),e.quirks=new r(f),e.wordFilter=new i(f),f.settings.paste_as_text&&(e.clipboard.pasteFormat="text"),s.paste_preprocess&&f.on("PastePreProcess",function(n){s.paste_preprocess.call(e,e,n)}),s.paste_postprocess&&f.on("PastePostProcess",function(n){s.paste_postprocess.call(e,e,n)}),f.addCommand("mceInsertClipboardContent",function(n,t){t.content&&e.clipboard.pasteHtml(t.content);t.text&&e.clipboard.pasteText(t.text)}),f.settings.paste_block_drop&&f.on("dragend dragover draggesture dragdrop drop drag",function(n){n.preventDefault();n.stopPropagation()}),f.settings.paste_data_images||f.on("drop",function(n){var t=n.dataTransfer;t&&t.files&&t.files.length>0&&n.preventDefault()}),f.addCommand("mceTogglePlainTextPaste",h),f.addButton("pastetext",{icon:"pastetext",tooltip:"Paste as text",onclick:h,onPostRender:c}),void f.addMenuItem("pastetext",{text:"Paste as text",selectable:!0,active:o.pasteFormat,onclick:h,onPostRender:c}))})});e(["tinymce/pasteplugin/Utils"])}(this);!function(){function n(n){return n&&1==n.nodeType&&"false"===n.contentEditable}function t(t,i,r,u,f){function v(n,t){var i,r;if(t=t||0,!n[0])throw"findAndReplaceDOMText cannot handle zero-length matches";if(i=n.index,t>0){if(r=n[t],!r)throw"Invalid capture group";i+=n[0].indexOf(r);n[0]=r}return[i,i+n[0].length,[n[0]]]}function y(t){var i;if(3===t.nodeType)return t.data;if(l[t.nodeName]&&!o[t.nodeName])return"";if(i="",n(t))return"\n";if((o[t.nodeName]||a[t.nodeName])&&(i+="\n"),t=t.firstChild)do i+=y(t);while(t=t.nextSibling);return i}function w(t,i,r){var s,h,y,c,v=[],f=0,u=t,e=i.shift(),p=0;n:for(;;){if((o[u.nodeName]||a[u.nodeName]||n(u))&&f++,3===u.nodeType&&(!h&&u.length+f>=e[1]?(h=u,c=e[1]-f):s&&v.push(u),!s&&u.length+f>e[0]&&(s=u,y=e[0]-f),f+=u.length),s&&h){if(u=r({startNode:s,startNodeIndex:y,endNode:h,endNodeIndex:c,innerNodes:v,match:e[2],matchIndex:p}),f-=h.length-c,s=null,h=null,v=[],e=i.shift(),p++,!e)break}else if((!l[u.nodeName]||o[u.nodeName])&&u.firstChild){if(!n(u)){u=u.firstChild;continue}}else if(u.nextSibling){u=u.nextSibling;continue}for(;;){if(u.nextSibling){u=u.nextSibling;break}if(u.parentNode===t)break n;u=u.parentNode}}}function b(n){var t,i;return"function"!=typeof n?(i=n.nodeType?n:e.createElement(n),t=function(n,t){var r=i.cloneNode(!1);return r.setAttribute("data-mce-index",t),n&&r.appendChild(e.createTextNode(n)),r}):t=n,function(n){var o,s,i,u=n.startNode,f=n.endNode,h=n.matchIndex,r,l,c,v,y;if(u===f)return r=u,i=r.parentNode,n.startNodeIndex>0&&(o=e.createTextNode(r.data.substring(0,n.startNodeIndex)),i.insertBefore(o,r)),l=t(n.match[0],h),i.insertBefore(l,r),n.endNodeIndex<r.length&&(s=e.createTextNode(r.data.substring(n.endNodeIndex)),i.insertBefore(s,r)),r.parentNode.removeChild(r),l;o=e.createTextNode(u.data.substring(0,n.startNodeIndex));s=e.createTextNode(f.data.substring(n.endNodeIndex));for(var p=t(u.data.substring(n.startNodeIndex),h),w=[],a=0,b=n.innerNodes.length;a<b;++a)c=n.innerNodes[a],v=t(c.data,h),c.parentNode.replaceChild(v,c),w.push(v);return y=t(f.data.substring(0,n.endNodeIndex),h),i=u.parentNode,i.insertBefore(o,u),i.insertBefore(p,u),i.removeChild(u),i=f.parentNode,i.insertBefore(y,f),i.insertBefore(s,f),i.removeChild(f),y}}var h,c,e,o,l,a,s=[],p=0;if(e=i.ownerDocument,o=f.getBlockElements(),l=f.getWhiteSpaceElements(),a=f.getShortEndedElements(),c=y(i)){if(t.global)for(;h=t.exec(c);)s.push(v(h,u));else h=c.match(t),s.push(v(h,u));return s.length&&(p=s.length,w(i,s,b(r))),p}}function i(n){function e(){function e(){t.statusbar.find("#next").disabled(!u(r+1).length);t.statusbar.find("#prev").disabled(!u(r-1).length)}function o(){n.windowManager.alert("Could not find the specified string.",function(){t.find("#find")[0].focus()})}var s,f={},t;s=tinymce.trim(n.selection.getContent({format:"text"}));t=n.windowManager.open({layout:"flex",pack:"center",align:"center",onClose:function(){n.focus();i.done()},onSubmit:function(n){var l,h,s,c;return n.preventDefault(),h=t.find("#case").checked(),c=t.find("#words").checked(),s=t.find("#find").value(),s.length?f.text==s&&f.caseState==h&&f.wholeWord==c?0===u(r+1).length?void o():(i.next(),void e()):(l=i.find(s,h,c),l||o(),t.statusbar.items().slice(1).disabled(0===l),e(),void(f={text:s,caseState:h,wholeWord:c})):(i.done(!1),void t.statusbar.items().slice(1).disabled(!0))},buttons:[{text:"Find",subtype:"primary",onclick:function(){t.submit()}},{text:"Replace",disabled:!0,onclick:function(){i.replace(t.find("#replace").value())||(t.statusbar.items().slice(1).disabled(!0),r=-1,f={})}},{text:"Replace all",disabled:!0,onclick:function(){i.replace(t.find("#replace").value(),!0,!0);t.statusbar.items().slice(1).disabled(!0);f={}}},{type:"spacer",flex:1},{text:"Prev",name:"prev",disabled:!0,onclick:function(){i.prev();e()}},{text:"Next",name:"next",disabled:!0,onclick:function(){i.next();e()}}],title:"Find and replace",items:{type:"form",padding:20,labelGap:30,spacing:10,items:[{type:"textbox",name:"find",size:40,label:"Find",value:s},{type:"textbox",name:"replace",size:40,label:"Replace with"},{type:"checkbox",name:"case",text:"Match case",label:" "},{type:"checkbox",name:"words",text:"Whole words",label:" "}]}})}function f(n){var t=n.getAttribute("data-mce-index");return"number"==typeof t?""+t:t}function c(r){var f,u;return u=n.dom.create("span",{"data-mce-bogus":1}),u.className="mce-match-marker",f=n.getBody(),i.done(!1),t(r,f,u,!1,n.schema)}function s(n){var t=n.parentNode;n.firstChild&&t.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}function u(t){var i,e=[],r,u;if(i=tinymce.toArray(n.getBody().getElementsByTagName("span")),i.length)for(r=0;r<i.length;r++)u=f(i[r]),null!==u&&u.length&&u===t.toString()&&e.push(i[r]);return e}function o(t){var i=r,e=n.dom,f;return t=t!==!1,t?i++:i--,e.removeClass(u(r),"mce-match-marker-selected"),f=u(i),f.length?(e.addClass(u(i),"mce-match-marker-selected"),n.selection.scrollIntoView(f[0]),i):-1}function h(t){var i=n.dom,r=t.parentNode;i.remove(t);i.isEmpty(r)&&i.remove(r)}function l(n){var t=f(n);return null!==t&&t.length>0}var i=this,r=-1;i.init=function(n){n.addMenuItem("searchreplace",{text:"Find and replace",shortcut:"Meta+F",onclick:e,separator:"before",context:"edit"});n.addButton("searchreplace",{tooltip:"Find and replace",shortcut:"Meta+F",onclick:e});n.addCommand("SearchReplace",e);n.shortcuts.add("Meta+F","",e)};i.find=function(n,t,i){n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");n=i?"\\b"+n+"\\b":n;var u=c(new RegExp(n,t?"g":"gi"));return u&&(r=-1,r=o(!0)),u};i.next=function(){var n=o(!0);n!==-1&&(r=n)};i.prev=function(){var n=o(!1);n!==-1&&(r=n)};i.replace=function(t,e,o){var c,a,b,v,y,w,p=r,k;for(e=e!==!1,b=n.getBody(),a=tinymce.grep(tinymce.toArray(b.getElementsByTagName("span")),l),c=0;c<a.length;c++)if(k=f(a[c]),v=y=parseInt(k,10),o||v===r){for(t.length?(a[c].firstChild.nodeValue=t,s(a[c])):h(a[c]);a[++c];){if(v=parseInt(f(a[c]),10),v!==y){c--;break}h(a[c])}e&&p--}else y>r&&a[c].setAttribute("data-mce-index",y-1);return n.undoManager.add(),r=p,e?(w=u(p+1).length>0,i.next()):(w=u(p-1).length>0,i.prev()),!o&&w};i.done=function(t){for(var o,h,c,e,u=tinymce.toArray(n.getBody().getElementsByTagName("span")),i=0;i<u.length;i++)c=f(u[i]),null!==c&&c.length&&(c===r.toString()&&(o||(o=u[i].firstChild),h=u[i].firstChild),s(u[i]));if(o&&h)return e=n.dom.createRng(),e.setStart(o,0),e.setEnd(h,h.data.length),t!==!1&&n.selection.setRng(e),e}}tinymce.PluginManager.add("searchreplace",i)}();!function(n,t){"use strict";function u(n,t){for(var u,e=[],i=0;i<n.length;++i){if(u=r[n[i]]||f(n[i]),!u)throw"module definition dependecy not found: "+n[i];e.push(u)}t.apply(null,e)}function i(n,i,f){if("string"!=typeof n)throw"invalid module definition, module id must be defined and be a string";if(i===t)throw"invalid module definition, dependencies must be specified";if(f===t)throw"invalid module definition, definition function must be specified";u(i,function(){r[n]=f.apply(null,arguments)})}function f(t){for(var i=n,u=t.split(/[.\/]/),r=0;r<u.length;++r){if(!i[u[r]])return;i=i[u[r]]}return i}var r={};i("tinymce/tableplugin/Utils",["tinymce/Env"],function(n){function r(t){(!n.ie||n.ie>9)&&(t.hasChildNodes()||(t.innerHTML='<br data-mce-bogus="1" />'))}var t=function(n){return function(t,i){t&&(i=parseInt(i,10),1===i||0===i?t.removeAttribute(n,1):t.setAttribute(n,i,1))}},i=function(n){return function(t){return parseInt(t.getAttribute(n)||1,10)}};return{setColSpan:t("colSpan"),setRowSpan:t("rowspan"),getColSpan:i("colSpan"),getRowSpan:i("rowSpan"),setSpanVal:function(n,i,r){t(i)(n,r)},getSpanVal:function(n,t){return i(t)(n)},paddCell:r}});i("tinymce/tableplugin/SplitCols",["tinymce/util/Tools","tinymce/tableplugin/Utils"],function(n,t){var i=function(n,t,i){return n[i]?n[i][t]:null},r=function(n,t,r){var u=i(n,t,r);return u?u.elm:null},u=function(n,t,u,f){for(var o,s=0,h=r(n,t,u),e=u;(f>0?e<n.length:e>=0)&&(o=i(n,t,e),h===o.elm);e+=f)s++;return s},f=function(n,t,i){for(var r,f=n[i],u=t;u<f.length;u++)if(r=f[u],r.real)return r.elm;return null},s=function(n,i){for(var f,e=[],o=n[i],r=0;r<o.length;r++)f=o[r],e.push({elm:f.elm,above:u(n,r,i,-1)-1,below:u(n,r,i,1)-1}),r+=t.getColSpan(f.elm)-1;return e},e=function(n,i){var u=n.elm.ownerDocument,r=u.createElement("td");return t.setColSpan(r,t.getColSpan(n.elm)),t.setRowSpan(r,i),t.paddCell(r),r},o=function(n,t,i,r){var u=f(n,i+1,r);u?u.parentNode.insertBefore(t,u):(u=f(n,0,r),u.parentNode.appendChild(t))},h=function(n,i,r,u){if(0!==i.above){t.setRowSpan(i.elm,i.above);var f=e(i,i.below+1);return o(n,f,r,u),f}return null},c=function(n,i,r,u){if(0!==i.below){t.setRowSpan(i.elm,i.above+1);var f=e(i,i.below);return o(n,f,r,u+1),f}return null},l=function(t,i,u,f){var o=s(t,u),l=r(t,i,u).parentNode,e=[];return n.each(o,function(n,i){var r=f?h(t,n,i,u):c(t,n,i,u);null!==r&&e.push(e)}),{cells:e,row:l}};return{splitAt:l}});i("tinymce/tableplugin/TableGrid",["tinymce/util/Tools","tinymce/Env","tinymce/tableplugin/Utils","tinymce/tableplugin/SplitCols"],function(n,i,r,u){var f=n.each,o=r.getSpanVal,e=r.setSpanVal;return function(s,h,c){function st(){s.$("td[data-mce-selected],th[data-mce-selected]").removeAttr("data-mce-selected")}function tt(n){return n===s.getBody()}function et(t,i){return t?(i=n.map(i.split(","),function(n){return n.toLowerCase()}),n.grep(t.childNodes,function(t){return n.inArray(i,t.nodeName.toLowerCase())!==-1})):[]}function it(){var n=0;l=[];p=0;f(["thead","tbody","tfoot"],function(t){var r=et(h,t)[0],i=et(r,"tr");f(i,function(i,r){r+=n;f(et(i,"td,th"),function(n,i){var f,u,e,s;if(l[r])for(;l[r][i];)i++;for(e=o(n,"rowspan"),s=o(n,"colspan"),u=r;u<r+e;u++)for(l[u]||(l[u]=[]),f=i;f<i+s;f++)l[u][f]={part:t,real:u==r&&f==i,elm:n,rowspan:e,colspan:s};p=Math.max(p,i+1)})});n+=i.length})}function ht(n){return s.fire("newrow",{node:n}),n}function nt(n){return s.fire("newcell",{node:n}),n}function rt(n,t){return n=n.cloneNode(t),n.removeAttribute("id"),n}function g(n,t){var i;if(i=l[t])return i[n]}function pt(n,t){return n[t]?n[t]:null}function wt(n,t){for(var r=[],i=0;i<n.length;i++)r.push(g(t,i));return r}function k(n){return n&&(!!a.getAttrib(n.elm,"data-mce-selected")||n==c)}function ot(){var n=[];return f(h.rows,function(t){f(t.cells,function(i){if(a.getAttrib(i,"data-mce-selected")||c&&i==c.elm)return n.push(t),!1})}),n}function bt(){var n=a.createRng();tt(h)||(n.setStartAfter(h),n.setEndAfter(h),w.setRng(n),a.remove(h))}function d(t){var u,o={};return s.settings.table_clone_elements!==!1&&(o=n.makeMap((s.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),n.walk(t,function(n){var r;if(3==n.nodeType)return f(a.getParents(n.parentNode,null,t).reverse(),function(n){o[n.nodeName]&&(n=rt(n,!1),u?r&&r.appendChild(n):u=r=n,r=n)}),r&&(r.innerHTML=i.ie&&i.ie<10?"&nbsp;":'<br data-mce-bogus="1" />'),!1},"childNodes"),t=rt(t,!1),nt(t),e(t,"rowSpan",1),e(t,"colSpan",1),u?t.appendChild(u):r.paddCell(t),t}function ut(){var n,t=a.createRng();return f(a.select("tr",h),function(n){0===n.cells.length&&a.remove(n)}),0===a.select("tr",h).length?(t.setStartBefore(h),t.setEndBefore(h),w.setRng(t),void a.remove(h)):(f(a.select("thead,tbody,tfoot",h),function(n){0===n.rows.length&&a.remove(n)}),it(),void(v&&(n=l[Math.min(l.length-1,v.y)],n&&(w.select(n[Math.min(n.length-1,v.x)].elm,!0),w.collapse(!0)))))}function ft(n,t,i,r){for(var e,f,s,u=l[t][n].elm.parentNode,o=1;o<=i;o++)if(u=a.getNext(u,"tr")){for(e=n;e>=0;e--)if(s=l[t+o][e].elm,s.parentNode==u){for(f=1;f<=r;f++)a.insertAfter(d(s),s);break}if(e==-1)for(f=1;f<=r;f++)u.insertBefore(d(u.cells[0]),u.cells[0])}}function ct(){f(l,function(n,t){f(n,function(n,i){var r,u,f;if(k(n)&&(n=n.elm,r=o(n,"colspan"),u=o(n,"rowspan"),r>1||u>1)){for(e(n,"rowSpan",1),e(n,"colSpan",1),f=0;f<r-1;f++)a.insertAfter(d(n),n);ft(i,t,u-1,r)}})})}function lt(n,t,i){for(var u=[],r=0;r<n.length;r++)(r<t||r>i)&&u.push(n[r]);return u}function at(t){return n.grep(t,function(n){return n.real===!1})}function vt(n){for(var r,t=[],i=0;i<n.length;i++)r=n[i].elm,t[t.length-1]!==r&&t.push(r);return t}function kt(t,i,u,f,e){var c=0,o,s,h;if(e-u<1)return 0;for(o=u+1;o<=e;o++)s=lt(pt(t,o),i,f),h=at(s),s.length===h.length&&(n.each(vt(h),function(n){r.setRowSpan(n,r.getRowSpan(n)-1)}),c++);return c}function dt(t,i,u,f,e){var c=0,o,s,h;if(f-i<1)return 0;for(o=i+1;o<=f;o++)s=lt(wt(t,o),u,e),h=at(s),s.length===h.length&&(n.each(vt(h),function(n){r.setColSpan(n,r.getColSpan(n)-1)}),c++);return c}function gt(t,i,r){var ft,o,s,h,c,tt,w,u,et,d,ot,st,ht,rt,nt;if(t?(ft=b(t),o=ft.x,s=ft.y,h=o+(i-1),c=s+(r-1)):(v=y=null,f(l,function(n,t){f(n,function(n,i){k(n)&&(v||(v={x:i,y:t}),y={x:i,y:t})})}),v&&(o=v.x,s=v.y,h=y.x,c=y.y)),u=g(o,s),et=g(h,c),u&&et&&u.part==et.part){for(ct(),it(),st=kt(l,o,s,h,c),ht=dt(l,o,s,h,c),u=g(o,s).elm,rt=h-o-ht+1,nt=c-s-st+1,rt===p&&nt===l.length&&(rt=1,nt=1),rt===p&&nt>1&&(nt=1),e(u,"colSpan",rt),e(u,"rowSpan",nt),w=s;w<=c;w++)for(tt=o;tt<=h;tt++)l[w]&&l[w][tt]&&(t=l[w][tt].elm,t!=u&&(d=n.grep(t.childNodes),f(d,function(n){u.appendChild(n)}),d.length&&(d=n.grep(u.childNodes),ot=0,f(d,function(n){"BR"==n.nodeName&&ot++<d.length-1&&u.removeChild(n)})),a.remove(t)));ut()}}function ni(n){var i,r,w,u,h,c,v,y,s,p;if(f(l,function(t,r){if(f(t,function(t){if(k(t)&&(t=t.elm,h=t.parentNode,c=ht(rt(h,!1)),i=r,n))return!1}),n)return!i}),i!==t){for(u=0,p=0;u<l[0].length;u+=p)if(l[i][u]&&(r=l[i][u].elm,p=o(r,"colspan"),r!=w)){if(n){if(i>0&&l[i-1][u]&&(y=l[i-1][u].elm,s=o(y,"rowSpan"),s>1)){e(y,"rowSpan",s+1);continue}}else if(s=o(r,"rowspan"),s>1){e(r,"rowSpan",s+1);continue}v=d(r);e(v,"colSpan",r.colSpan);c.appendChild(v);w=r}c.hasChildNodes()&&(n?h.parentNode.insertBefore(c,h):a.insertAfter(c,h))}}function ti(n){var t,i;f(l,function(i){if(f(i,function(i,r){if(k(i)&&(t=r,n))return!1}),n)return!t});f(l,function(r,u){var f,h,s;r[t]&&(f=r[t].elm,f!=i&&(s=o(f,"colspan"),h=o(f,"rowspan"),1==s?n?(f.parentNode.insertBefore(d(f),f),ft(t,u,h-1,s)):(a.insertAfter(d(f),f),ft(t,u,h-1,s)):e(f,"colSpan",f.colSpan+1),i=f))})}function ii(t){return n.grep(yt(t),k)}function yt(n){var t=[];return f(n,function(n){f(n,function(n){t.push(n)})}),t}function ri(){var t=[];if(tt(h)){if(1==l[0].length)return;if(ii(l).length==yt(l).length)return}f(l,function(i){f(i,function(i,r){k(i)&&n.inArray(t,r)===-1&&(f(l,function(n){var t,i=n[r].elm;t=o(i,"colSpan");t>1?e(i,"colSpan",t-1):a.remove(i)}),t.push(r))})});ut()}function ui(){function t(n){var t,i;f(n.cells,function(n){var i=o(n,"rowSpan");i>1&&(e(n,"rowSpan",i-1),t=b(n),ft(t.x,t.y,1,1))});t=b(n.cells[0]);f(l[t.y],function(n){var t;n=n.elm;n!=i&&(t=o(n,"rowSpan"),t<=1?a.remove(n):e(n,"rowSpan",t-1),i=n)})}var n;n=ot();tt(h)&&n.length==h.rows.length||(f(n.reverse(),function(n){t(n)}),ut())}function fi(){var n=ot();if(!tt(h)||n.length!=h.rows.length)return a.remove(n),ut(),n}function ei(){var n=ot();return f(n,function(t,i){n[i]=rt(t,!0)}),n}function oi(t,i){var o,r,s;t&&(o=u.splitAt(l,v.x,v.y,i),r=o.row,n.each(o.cells,nt),s=n.map(t,function(n){return n.cloneNode(!0)}),i||s.reverse(),f(s,function(n){var t,u,f=n.cells.length;for(ht(n),t=0;t<f;t++)u=n.cells[t],nt(u),e(u,"colSpan",1),e(u,"rowSpan",1);for(t=f;t<p;t++)n.appendChild(nt(d(n.cells[f-1])));for(t=p;t<f;t++)a.remove(n.cells[t]);i?r.parentNode.insertBefore(n,r):a.insertAfter(n,r)}),st())}function b(n){var t;return f(l,function(i,r){return f(i,function(i,u){if(i.elm==n)return t={x:u,y:r},!1}),!t}),t}function si(n){v=b(n)}function hi(){var n,t;return n=t=0,f(l,function(i,r){f(i,function(i,u){var f,e;k(i)&&(i=l[r][u],u>n&&(n=u),r>t&&(t=r),i.real&&(f=i.colspan-1,e=i.rowspan-1,f&&u+f>n&&(n=u+f),e&&r+e>t&&(t=r+e)))})}),{x:n,y:t}}function ci(n){var o,s,h,c,r,u,f,e,t,i;if(y=b(n),v&&y){for(o=Math.min(v.x,y.x),s=Math.min(v.y,y.y),h=Math.max(v.x,y.x),c=Math.max(v.y,y.y),r=h,u=c,i=s;i<=c;i++)for(t=o;t<=h;t++)n=l[i][t],n.real&&(f=n.colspan-1,e=n.rowspan-1,f&&t+f>r&&(r=t+f),e&&i+e>u&&(u=i+e));for(st(),i=s;i<=u;i++)for(t=o;t<=r;t++)l[i][t]&&a.setAttrib(l[i][t].elm,"data-mce-selected","1")}}function li(n,t){var u,r,i;u=b(n);r=u.y*p+u.x;do{if(r+=t,i=g(r%p,Math.floor(r/p)),!i)break;if(i.elm!=n)return w.select(i.elm,!0),a.isEmpty(i.elm)&&w.collapse(!0),!0}while(i.elm==n);return!1}function ai(t){if(v){var i=u.splitAt(l,v.x,v.y,t);n.each(i.cells,nt)}}var l,p,v,y,w=s.selection,a=w.dom;h=h||a.getParent(w.getStart(!0),"table");it();c=c||a.getParent(w.getStart(!0),"th,td");c&&(v=b(c),y=hi(),c=g(v.x,v.y));n.extend(this,{deleteTable:bt,split:ct,merge:gt,insertRow:ni,insertCol:ti,splitCols:ai,deleteCols:ri,deleteRows:ui,cutRows:fi,copyRows:ei,pasteRows:oi,getPos:b,setStartCell:si,setEndCell:ci,moveRelIdx:li,refresh:it})}});i("tinymce/tableplugin/Quirks",["tinymce/util/VK","tinymce/util/Delay","tinymce/Env","tinymce/util/Tools","tinymce/tableplugin/Utils"],function(n,t,i,r,u){var e=r.each,f=u.getSpanVal;return function(o){function c(){function i(i){function c(n,t){var f=n?"previousSibling":"nextSibling",r=o.dom.getParent(t,"tr"),e=r[f],u;if(e)return l(o,t,e,n),i.preventDefault(),!0;var s=o.dom.getParent(r,"table"),h=r.parentNode,c=h.nodeName.toLowerCase();return("tbody"===c||c===(n?"tfoot":"thead"))&&(u=a(n,s,h,"tbody"),null!==u)?y(n,u,t):p(n,r,f,s)}function a(n,t,i,r){var u=o.dom.select(">"+r,t),f=u.indexOf(i),e;return n&&0===f||!n&&f===u.length-1?v(n,t):f===-1?(e="thead"===i.tagName.toLowerCase()?0:u.length-1,u[e]):u[f+(n?-1:1)]}function v(n,t){var r=n?"thead":"tfoot",i=o.dom.select(">"+r,t);return 0!==i.length?i[0]:null}function y(n,t,u){var f=r(t,n);return f&&l(o,u,f,n),i.preventDefault(),!0}function p(n,t,f,e){var h=e[f],s,l;return h?(u(h),!0):(s=o.dom.getParent(e,"td,th"),s)?c(n,s,i):(l=r(t,!n),u(l),i.preventDefault(),!1)}function r(n,t){var i=n&&n[t?"lastChild":"firstChild"];return i&&"BR"===i.nodeName?o.dom.getParent(i,"td,th"):i}function u(n){o.selection.setCursorLocation(n,0)}function w(){return s==n.UP||s==n.DOWN}function b(n){var t=n.selection.getNode(),i=n.dom.getParent(t,"tr");return null!==i}function k(n){for(var i=0,t=n;t.previousSibling;)t=t.previousSibling,i+=f(t,"colspan");return i}function d(n,t){var i=0,r=0;return e(n.children,function(n,u){if(i+=f(n,"colspan"),r=u,i>t)return!1}),r}function l(n,t,i,f){var s=k(o.dom.getParent(t,"td,th")),h=d(i,s),e=i.childNodes[h],c=r(e,f);u(c||e)}function g(n){var r=o.selection.getNode(),t=o.dom.getParent(r,"td,th"),i=o.dom.getParent(n,"td,th");return t&&t!==i&&nt(t,i)}function nt(n,t){return o.dom.getParent(n,"TABLE")===o.dom.getParent(t,"TABLE")}var s=i.keyCode,h;w()&&b(o)&&(h=o.selection.getNode(),t.setEditorTimeout(o,function(){g(h)&&c(!i.shiftKey&&s===n.UP,h,i)},0))}o.on("KeyDown",function(n){i(n)})}function s(){function n(n,t){var i,u=t.ownerDocument,r=u.createRange();return r.setStartBefore(t),r.setEnd(n.endContainer,n.endOffset),i=u.createElement("body"),i.appendChild(r.cloneContents()),0===i.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length}o.on("KeyDown",function(t){var i,r,u=o.dom;37!=t.keyCode&&38!=t.keyCode||(i=o.selection.getRng(),r=u.getParent(i.startContainer,"table"),r&&o.getBody().firstChild==r&&n(i,r)&&(i=u.createRng(),i.setStartBefore(r),i.setEndBefore(r),o.selection.setRng(i),t.preventDefault()))})}function h(){o.on("KeyDown SetContent VisualAid",function(){for(var n=o.getBody().lastChild;n;n=n.previousSibling)if(3==n.nodeType){if(n.nodeValue.length>0)break}else if(1==n.nodeType&&("BR"==n.tagName||!n.getAttribute("data-mce-bogus")))break;n&&"TABLE"==n.nodeName&&(o.settings.forced_root_block?o.dom.add(o.getBody(),o.settings.forced_root_block,o.settings.forced_root_block_attrs,i.ie&&i.ie<10?"&nbsp;":'<br data-mce-bogus="1" />'):o.dom.add(o.getBody(),"br",{"data-mce-bogus":"1"}))});o.on("PreProcess",function(n){var t=n.node.lastChild;t&&("BR"==t.nodeName||1==t.childNodes.length&&("BR"==t.firstChild.nodeName||" "==t.firstChild.nodeValue))&&t.previousSibling&&"TABLE"==t.previousSibling.nodeName&&o.dom.remove(t)})}function l(){function t(n,t,i,r){var u,f,e,o=n.dom.getParent(t.startContainer,"TABLE");return o&&(u=o.parentNode),f=t.startContainer.nodeType==3&&0===t.startOffset&&0===t.endOffset&&r&&("TR"==i.nodeName||i==u),e=("TD"==i.nodeName||"TH"==i.nodeName)&&!r,f||e}function n(){var i=o.selection.getRng(),u=o.selection.getNode(),r=o.dom.getParent(i.startContainer,"TD,TH"),n;if(t(o,i,u,r)){for(r||(r=u),n=r.lastChild;n.lastChild;)n=n.lastChild;3==n.nodeType&&(i.setEnd(n,n.data.length),o.selection.setRng(i))}}o.on("KeyDown",function(){n()});o.on("MouseDown",function(t){2!=t.button&&n()})}function a(){function t(n){o.selection.select(n,!0);o.selection.collapse(!0)}function i(n){o.$(n).empty();u.paddCell(n)}o.on("keydown",function(u){if((u.keyCode==n.DELETE||u.keyCode==n.BACKSPACE)&&!u.isDefaultPrevented()){var h,s,f,e;if(h=o.dom.getParent(o.selection.getStart(),"table")){if(s=o.dom.select("td,th",h),f=r.grep(s,function(n){return!!o.dom.getAttrib(n,"data-mce-selected")}),0===f.length)return e=o.dom.getParent(o.selection.getStart(),"td,th"),void(o.selection.isCollapsed()&&e&&o.dom.isEmpty(e)&&(u.preventDefault(),i(e),t(e)));u.preventDefault();o.undoManager.transact(function(){s.length==f.length?o.execCommand("mceTableDelete"):(r.each(f,i),t(f[0]))})}}})}a();i.webkit&&(c(),l());i.gecko&&(s(),h());i.ie>9&&(s(),h())}});i("tinymce/tableplugin/CellSelection",["tinymce/tableplugin/TableGrid","tinymce/dom/TreeWalker","tinymce/util/Tools"],function(n,t,i){return function(r,u){function c(n){r.getBody().style.webkitUserSelect="";(n||h)&&(r.$("td[data-mce-selected],th[data-mce-selected]").removeAttr("data-mce-selected"),h=!1)}function y(n,t){return!(!n||!t)&&n===f.getParent(t,"table")}function p(t){var c,i,p=t.target;if(!l&&!a&&p!==v&&(v=p,o&&e)){if(i=f.getParent(p,"td,th"),y(o,i)||(i=f.getParent(o,"td,th")),e===i&&!h)return;if(u(!0),y(o,i)){t.preventDefault();s||(s=new n(r,o,e),r.getBody().style.webkitUserSelect="none");s.setEndCell(i);h=!0;c=r.selection.getSel();try{c.removeAllRanges?c.removeAllRanges():c.empty()}catch(n){}}}}var s,e,o,v,l,a,f=r.dom,h=!0,w=function(){e=s=o=v=null;u(!1)};return r.on("SelectionChange",function(n){h&&n.stopImmediatePropagation()},!0),r.on("MouseDown",function(n){2==n.button||l||a||(c(),e=f.getParent(n.target,"td,th"),o=f.getParent(e,"table"))}),r.on("mouseover",p),r.on("remove",function(){f.unbind(r.getDoc(),"mouseover",p);c()}),r.on("MouseUp",function(){function h(n,r){var f=new t(n,n);do{if(3==n.nodeType&&0!==i.trim(n.nodeValue).length)return void(r?u.setStart(n,0):u.setEnd(n,n.nodeValue.length));if("BR"==n.nodeName)return void(r?u.setStartBefore(n):u.setEndBefore(n))}while(n=r?f.next():f.prev())}var u,o,c,n,l,a=r.selection;if(e){if(s&&(r.getBody().style.webkitUserSelect=""),o=f.select("td[data-mce-selected],th[data-mce-selected]"),o.length>0){u=f.createRng();n=o[0];u.setStartBefore(n);u.setEndAfter(n);h(n,1);c=new t(n,f.getParent(o[0],"table"));do if("TD"==n.nodeName||"TH"==n.nodeName){if(!f.getAttrib(n,"data-mce-selected"))break;l=n}while(n=c.next());h(l);a.setRng(u)}r.nodeChanged();w()}}),r.on("KeyUp Drop SetContent",function(n){c("setcontent"==n.type);w();l=!1}),r.on("ObjectResizeStart ObjectResized",function(n){l="objectresized"!=n.type}),r.on("dragstart",function(){a=!0}),r.on("drop dragend",function(){a=!1}),{clear:c}}});i("tinymce/tableplugin/Dialogs",["tinymce/util/Tools","tinymce/Env"],function(n,t){var i=n.each;return function(r){function a(){var n=r.settings.color_picker_callback;if(n)return function(){var t=this;n.call(r,function(n){t.value(n).fire("change")},t.value())}}function s(n){return{title:"Advanced",type:"form",defaults:{onchange:function(){o(n,this.parents().reverse()[0],"style"==this.name())}},items:[{label:"Style",name:"style",type:"textbox"},{type:"form",padding:0,formItemDefaults:{layout:"grid",alignH:["start","right"]},defaults:{size:7},items:[{label:"Border color",type:"colorbox",name:"borderColor",onaction:a()},{label:"Background color",type:"colorbox",name:"backgroundColor",onaction:a()}]}]}}function u(n){return n?n.replace(/px$/,""):""}function f(n){return/^[0-9]+$/.test(n)&&(n+="px"),n}function h(n){i("left center right".split(" "),function(t){r.formatter.remove("align"+t,{},n)})}function v(n){i("top middle bottom".split(" "),function(t){r.formatter.remove("valign"+t,{},n)})}function c(t,i,r){function u(t,r){return r=r||[],n.each(t,function(n){var t={text:n.text||n.title};n.menu?t.menu=u(n.menu):(t.value=n.value,i&&i(t));r.push(t)}),r}return u(t,r||[])}function o(n,t,i){var u=t.toJSON(),r=n.parseStyle(u.style);i?(t.find("#borderColor").value(r["border-color"]||"")[0].fire("change"),t.find("#backgroundColor").value(r["background-color"]||"")[0].fire("change")):(r["border-color"]=u.borderColor,r["background-color"]=u.backgroundColor);t.find("#style").value(n.serializeStyle(n.parseStyle(n.serializeStyle(r))))}function l(n,t,i){var r=n.parseStyle(n.getAttrib(i,"style"));r["border-color"]&&(t.borderColor=r["border-color"]);r["background-color"]&&(t.backgroundColor=r["background-color"]);t.style=n.serializeStyle(r)}function y(n,t,r){var u=n.parseStyle(n.getAttrib(t,"style"));i(r,function(n){u[n.name]=n.value});n.setAttrib(t,"style",n.serializeStyle(n.parseStyle(n.serializeStyle(u))))}var e=this;e.tableProps=function(){e.table(!0)};e.table=function(e){function g(){function e(n,t,i){if("TD"===n.tagName||"TH"===n.tagName)p.setStyle(n,t,i);else if(n.children)for(var r=0;r<n.children.length;r++)e(n.children[r],t,i)}var i;o(p,this);v=n.extend(v,this.toJSON());v.class===!1&&delete v.class;r.undoManager.transact(function(){if(a||(a=r.plugins.table.insertTable(v.cols||1,v.rows||1)),r.dom.setAttribs(a,{style:v.style,"class":v.class}),r.settings.table_style_by_css){if(w=[],w.push({name:"border",value:v.border}),w.push({name:"border-spacing",value:f(v.cellspacing)}),y(p,a,w),p.setAttribs(a,{"data-mce-border-color":v.borderColor,"data-mce-cell-padding":v.cellpadding,"data-mce-border":v.border}),a.children)for(var n=0;n<a.children.length;n++)e(a.children[n],"border",v.border),e(a.children[n],"padding",f(v.cellpadding))}else r.dom.setAttribs(a,{border:v.border,cellpadding:v.cellpadding,cellspacing:v.cellspacing});p.getAttrib(a,"width")&&!r.settings.table_style_by_css?p.setAttrib(a,"width",u(v.width)):p.setStyle(a,"width",f(v.width));p.setStyle(a,"height",f(v.height));i=p.select("caption",a)[0];i&&!v.caption&&p.remove(i);!i&&v.caption&&(i=p.create("caption"),i.innerHTML=t.ie?" ":'<br data-mce-bogus="1"/>',a.insertBefore(i,a.firstChild));h(a);v.align&&r.formatter.apply("align"+v.align,{},a);r.focus();r.addVisual()})}function nt(n,t){function i(n,i){for(var u,r=0;r<i.length;r++)if(u=p.getStyle(i[r],t),"undefined"==typeof n&&(n=u),n!=u)return"";return n}var u,f=r.dom.select("td,th",n);return i(u,f)}var a,b,k,tt,d,w,p=r.dom,v={};e===!0?(a=p.getParent(r.selection.getStart(),"table"),a&&(v={width:u(p.getStyle(a,"width")||p.getAttrib(a,"width")),height:u(p.getStyle(a,"height")||p.getAttrib(a,"height")),cellspacing:u(p.getStyle(a,"border-spacing")||p.getAttrib(a,"cellspacing")),cellpadding:p.getAttrib(a,"data-mce-cell-padding")||p.getAttrib(a,"cellpadding")||nt(a,"padding"),border:p.getAttrib(a,"data-mce-border")||p.getAttrib(a,"border")||nt(a,"border"),borderColor:p.getAttrib(a,"data-mce-border-color"),caption:!!p.select("caption",a)[0],"class":p.getAttrib(a,"class")},i("left center right".split(" "),function(n){r.formatter.matchNode(a,"align"+n)&&(v.align=n)}))):(b={label:"Cols",name:"cols"},k={label:"Rows",name:"rows"});r.settings.table_class_list&&(v.class&&(v.class=v.class.replace(/\s*mce\-item\-table\s*/g,"")),tt={name:"class",type:"listbox",label:"Class",values:c(r.settings.table_class_list,function(n){n.value&&(n.textStyle=function(){return r.formatter.getCssText({block:"table",classes:[n.value]})})})});d={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",labelGapCalc:!1,padding:0,layout:"grid",columns:2,defaults:{type:"textbox",maxWidth:50},items:r.settings.table_appearance_options!==!1?[b,k,{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell spacing",name:"cellspacing"},{label:"Cell padding",name:"cellpadding"},{label:"Border",name:"border"},{label:"Caption",name:"caption",type:"checkbox"}]:[b,k,{label:"Width",name:"width"},{label:"Height",name:"height"}]},{label:"Alignment",name:"align",type:"listbox",text:"None",values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},tt]};r.settings.table_advtab!==!1?(l(p,v,a),r.windowManager.open({title:"Table properties",data:v,bodyType:"tabpanel",body:[{title:"General",type:"form",items:d},s(p)],onsubmit:g})):r.windowManager.open({title:"Table properties",data:v,body:d,onsubmit:g})};e.merge=function(n,t){r.windowManager.open({title:"Merge cells",body:[{label:"Cols",name:"cols",type:"textbox",value:"1",size:10},{label:"Rows",name:"rows",type:"textbox",value:"1",size:10}],onsubmit:function(){var i=this.toJSON();r.undoManager.transact(function(){n.merge(t,i.cols,i.rows)})}})};e.cell=function(){function p(n,t,i){(1===y.length||i)&&a.setAttrib(n,t,i)}function b(n,t,i){(1===y.length||i)&&a.setStyle(n,t,i)}function k(){o(a,this);t=n.extend(t,this.toJSON());r.undoManager.transact(function(){i(y,function(n){p(n,"scope",t.scope);p(n,"style",t.style);p(n,"class",t.class);b(n,"width",f(t.width));b(n,"height",f(t.height));t.type&&n.nodeName.toLowerCase()!==t.type&&(n=a.rename(n,t.type));1===y.length&&(h(n),v(n));t.align&&r.formatter.apply("align"+t.align,{},n);t.valign&&r.formatter.apply("valign"+t.valign,{},n)});r.focus()})}var e,t,d,a=r.dom,y=[],w;(y=r.dom.select("td[data-mce-selected],th[data-mce-selected]"),e=r.dom.getParent(r.selection.getStart(),"td,th"),!y.length&&e&&y.push(e),e=e||y[0])&&(y.length>1?t={width:"",height:"",scope:"","class":"",align:"",style:"",type:e.nodeName.toLowerCase()}:(t={width:u(a.getStyle(e,"width")||a.getAttrib(e,"width")),height:u(a.getStyle(e,"height")||a.getAttrib(e,"height")),scope:a.getAttrib(e,"scope"),"class":a.getAttrib(e,"class")},t.type=e.nodeName.toLowerCase(),i("left center right".split(" "),function(n){r.formatter.matchNode(e,"align"+n)&&(t.align=n)}),i("top middle bottom".split(" "),function(n){r.formatter.matchNode(e,"valign"+n)&&(t.valign=n)}),l(a,t,e)),r.settings.table_cell_class_list&&(d={name:"class",type:"listbox",label:"Class",values:c(r.settings.table_cell_class_list,function(n){n.value&&(n.textStyle=function(){return r.formatter.getCssText({block:"td",classes:[n.value]})})})}),w={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",layout:"grid",columns:2,labelGapCalc:!1,padding:0,defaults:{type:"textbox",maxWidth:50},items:[{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell type",name:"type",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{label:"Scope",name:"scope",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{label:"H Align",name:"align",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"V Align",name:"valign",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}]},d]},r.settings.table_cell_advtab!==!1?r.windowManager.open({title:"Cell properties",bodyType:"tabpanel",data:t,body:[{title:"General",type:"form",items:w},s(a)],onsubmit:k}):r.windowManager.open({title:"Cell properties",data:t,body:w,onsubmit:k}))};e.row=function(){function y(n,t,i){(1===v.length||i)&&e.setAttrib(n,t,i)}function g(n,t,i){(1===v.length||i)&&e.setStyle(n,t,i)}function w(){var u,c,s;o(e,this);t=n.extend(t,this.toJSON());r.undoManager.transact(function(){var n=t.type;i(v,function(i){y(i,"scope",t.scope);y(i,"style",t.style);y(i,"class",t.class);g(i,"height",f(t.height));n!==i.parentNode.nodeName.toLowerCase()&&(u=e.getParent(i,"table"),c=i.parentNode,s=e.select(n,u)[0],s||(s=e.create(n),u.firstChild?u.insertBefore(s,u.firstChild):u.appendChild(s)),s.appendChild(i),c.hasChildNodes()||e.remove(c));1===v.length&&h(i);t.align&&r.formatter.apply("align"+t.align,{},i)});r.focus()})}var b,k,a,d,t,p,e=r.dom,v=[];b=r.dom.getParent(r.selection.getStart(),"table");k=r.dom.getParent(r.selection.getStart(),"td,th");i(b.rows,function(n){i(n.cells,function(t){if(e.getAttrib(t,"data-mce-selected")||t==k)return v.push(n),!1})});a=v[0];a&&(v.length>1?t={height:"",scope:"","class":"",align:"",type:a.parentNode.nodeName.toLowerCase()}:(t={height:u(e.getStyle(a,"height")||e.getAttrib(a,"height")),scope:e.getAttrib(a,"scope"),"class":e.getAttrib(a,"class")},t.type=a.parentNode.nodeName.toLowerCase(),i("left center right".split(" "),function(n){r.formatter.matchNode(a,"align"+n)&&(t.align=n)}),l(e,t,a)),r.settings.table_row_class_list&&(d={name:"class",type:"listbox",label:"Class",values:c(r.settings.table_row_class_list,function(n){n.value&&(n.textStyle=function(){return r.formatter.getCssText({block:"tr",classes:[n.value]})})})}),p={type:"form",columns:2,padding:0,defaults:{type:"textbox"},items:[{type:"listbox",name:"type",label:"Row type",text:"Header",maxWidth:null,values:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"listbox",name:"align",label:"Alignment",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height"},d]},r.settings.table_row_advtab!==!1?r.windowManager.open({title:"Row properties",data:t,bodyType:"tabpanel",body:[{title:"General",type:"form",items:p},s(e)],onsubmit:w}):r.windowManager.open({title:"Row properties",data:t,body:p,onsubmit:w}))}}});i("tinymce/tableplugin/ResizeBars",["tinymce/util/Tools","tinymce/util/VK"],function(n,i){var r;return function(u){function d(n,t){return{index:n,y:u.dom.getPos(t).y}}function wi(n,t){return{index:n,y:u.dom.getPos(t).y+t.offsetHeight}}function g(n,t){return{index:n,x:u.dom.getPos(t).x}}function nt(n,t){return{index:n,x:u.dom.getPos(t).x+t.offsetWidth}}function k(){var n=u.getBody().dir;return"rtl"===n}function bi(){return u.inline}function o(){return bi?u.getBody().ownerDocument.body:u.getBody()}function tt(n,t){return k()?nt(n,t):g(n,t)}function ki(n,t){return k()?g(n,t):nt(n,t)}function di(n,t){return e(n,"width")/e(t,"width")*100}function e(n,t){var i=u.dom.getStyle(n,t,!0);return parseInt(i,10)}function it(n){var t=e(n,"width"),i=e(n.parentElement,"width");return t/i*100}function gi(n,t){var i=e(n,"width");return t/i*100}function nr(n,t){var i=e(n.parentElement,"width");return t/i*100}function rt(n,t,i){for(var f,e,u=[],r=1;r<i.length;r++)f=i[r].element,u.push(n(r-1,f));return e=i[i.length-1],u.push(t(i.length-1,e.element)),u}function l(){var t=u.dom.select("."+oi,o());n.each(t,function(n){u.dom.remove(n)})}function ut(n){l();ht(n)}function ft(n,t,i,r,u,f,e,o){var s={"data-mce-bogus":"all","class":oi+" "+n,unselectable:"on","data-mce-resize":!1,style:"cursor: "+t+"; margin: 0; padding: 0; position: absolute; left: "+i+"px; top: "+r+"px; height: "+u+"px; width: "+f+"px; "};return s[e]=o,s}function tr(t,i,r){n.each(t,function(n){var t=r.x,f=n.y-b/2,e=b,s=i;u.dom.add(o(),"div",ft(si,vr,t,f,e,s,hi,n.index))})}function ir(t,i,r){n.each(t,function(n){var t=n.x-b/2,f=r.y,e=i,s=b;u.dom.add(o(),"div",ft(li,yr,t,f,e,s,ai,n.index))})}function y(t){return n.map(t.rows,function(t){var i=n.map(t.cells,function(n){var t=n.hasAttribute("rowspan")?parseInt(n.getAttribute("rowspan"),10):1,i=n.hasAttribute("colspan")?parseInt(n.getAttribute("colspan"),10):1;return{element:n,rowspan:t,colspan:i}});return{element:t,cells:i}})}function p(i){function r(n,t){return n+","+t}function s(n,t){return u[r(n,t)]}function h(){var t=[];return n.each(f,function(n){t=t.concat(n.cells)}),t}function c(){return f}var u={},f=[],e=0,o=0;return n.each(i,function(i,s){var h=[];n.each(i.cells,function(n){for(var l,f,c,a,v,i=0;u[r(s,i)]!==t;)i++;for(l={element:n.element,colspan:n.colspan,rowspan:n.rowspan,rowIndex:s,colIndex:i},f=0;f<n.colspan;f++)for(c=0;c<n.rowspan;c++)a=s+c,v=i+f,u[r(a,v)]=l,e=Math.max(e,a+1),o=Math.max(o,v+1);h.push(l)});f.push({element:i.element,cells:h})}),{grid:{maxRows:e,maxCols:o},getAt:s,getAllCells:h,getAllRows:c}}function w(n,t){for(var r=[],i=n;i<t;i++)r.push(i);return r}function et(n,t,i){for(var u,f=n(),r=0;r<f.length;r++)t(f[r])&&(u=f[r]);return u?u:i()}function ot(t){var r=w(0,t.grid.maxCols),i=w(0,t.grid.maxRows);return n.map(r,function(n){function r(){for(var u,f=[],r=0;r<i.length;r++)u=t.getAt(r,n),u&&u.colIndex===n&&f.push(u);return f}function u(n){return 1===n.colspan}function f(){for(var u,r=0;r<i.length;r++)if(u=t.getAt(r,n))return u;return null}return et(r,u,f)})}function st(t){var i=w(0,t.grid.maxCols),r=w(0,t.grid.maxRows);return n.map(r,function(n){function r(){for(var u,f=[],r=0;r<i.length;r++)u=t.getAt(n,r),u&&u.rowIndex===n&&f.push(u);return f}function u(n){return 1===n.rowspan}function f(){return t.getAt(n,0)}return et(r,u,f)})}function ht(n){var e=y(n),t=p(e),i=st(t),r=ot(t),f=u.dom.getPos(n),o=i.length>0?rt(d,wi,i):[],s=r.length>0?rt(tt,ki,r):[];tr(o,n.offsetWidth,f);ir(s,n.offsetHeight,f)}function ct(n,t,i,r){var u,h,o,f,c,s,a,l;if(t<0||t>=n.length-1)return"";if(u=n[t],u)u={value:u,delta:0};else for(h=n.slice(0,t).reverse(),o=0;o<h.length;o++)h[o]&&(u={value:h[o],delta:o+1});if(f=n[t+1],f)f={value:f,delta:1};else for(c=n.slice(t+1),s=0;s<c.length;s++)c[s]&&(f={value:c[s],delta:s+1});return a=f.delta-u.delta,l=Math.abs(f.value-u.value)/a,i?l/e(r,"width")*100:l}function lt(n,t){var i=u.dom.getStyle(n,t);return i||(i=u.dom.getAttrib(n,t)),i||(i=u.dom.getStyle(n,t,!0)),i}function rr(n,t,i){var u=lt(n,"width"),r=parseInt(u,10),f=t?di(n,i):e(n,"width");return(t&&!a(u)||!t&&!dt(u))&&(r=0),!isNaN(r)&&r>0?r:f}function at(t,i,r){for(var s,e,f=ot(t),h=n.map(f,function(n){return tt(n.colIndex,n.element).x}),o=[],u=0;u<f.length;u++)s=f[u].element.hasAttribute("colspan")?parseInt(f[u].element.getAttribute("colspan"),10):1,e=s>1?ct(h,u):rr(f[u].element,i,r),e=e?e:yi,o.push(e);return o}function ur(n){var i=lt(n,"height"),t=parseInt(i,10);return a(i)&&(t=0),!isNaN(t)&&t>0?t:e(n,"height")}function vt(t){for(var e,u,r=st(t),o=n.map(r,function(n){return d(n.rowIndex,n.element).y}),f=[],i=0;i<r.length;i++)e=r[i].element.hasAttribute("rowspan")?parseInt(r[i].element.getAttribute("rowspan"),10):1,u=e>1?ct(o,i):ur(r[i].element),u=u?u:pr,f.push(u);return f}function yt(t,i,r,u,f){function o(t){return n.map(t,function(){return 0})}function h(){var n,t;return f?n=[100-e[0]]:(t=Math.max(u,e[0]+r),n=[t-e[0]]),n}function s(n,t){var i,s=o(e.slice(0,n)),h=o(e.slice(t+1)),c,f,l;return r>=0?(c=Math.max(u,e[t]-r),i=s.concat([r,c-e[t]]).concat(h)):(f=Math.max(u,e[n]+r),l=e[n]-f,i=s.concat([f-e[n],l]).concat(h)),i}function c(n,t){var i,f=o(e.slice(0,t)),s;return r>=0?i=f.concat([r]):(s=Math.max(u,e[t]+r),i=f.concat([s-e[t]])),i}var e=t.slice(0);return 0===t.length?[]:1===t.length?h():0===i?s(0,1):i>0&&i<t.length-1?s(i,i+1):i===t.length-1?c(i-1,i):[]}function pt(n,t,i){for(var u=0,r=n;r<t;r++)u+=i[r];return u}function wt(t,i){var r=t.getAllCells();return n.map(r,function(n){var t=pt(n.colIndex,n.colIndex+n.colspan,i);return{element:n.element,width:t,colspan:n.colspan}})}function bt(t,i){var r=t.getAllCells();return n.map(r,function(n){var t=pt(n.rowIndex,n.rowIndex+n.rowspan,i);return{element:n.element,height:t,rowspan:n.rowspan}})}function kt(t,i){var r=t.getAllRows();return n.map(r,function(n,t){return{element:n.element,height:i[t]}})}function a(n){return wr.test(n)}function dt(n){return br.test(n)}function gt(t,i,r){function w(t,i){n.each(t,function(n){u.dom.setStyle(n.element,"width",n.width+i);u.dom.setAttrib(n.element,"width",null)})}function b(){return r<o.grid.maxCols-1?it(t):it(t)+nr(t,i)}function k(){return r<o.grid.maxCols-1?e(t,"width"):e(t,"width")+i}function d(n,i,f){r!=o.grid.maxCols-1&&f||(u.dom.setStyle(t,"width",n+i),u.dom.setAttrib(t,"width",null))}for(var g=y(t),o=p(g),f=a(t.width)||a(t.style.width),h=at(o,f,t),nt=f?gi(t,i):i,c=yt(h,r,nt,yi,f,t),l=[],s=0;s<c.length;s++)l.push(c[s]+h[s]);var tt=wt(o,l),v=f?"%":"px",rt=f?b():k();u.undoManager.transact(function(){w(tt,v);d(rt,v,f)})}function ni(t,i,r){for(var c,l,a=y(t),e=p(a),o=vt(e),s=[],h=0,f=0;f<o.length;f++)s.push(f===r?i+o[f]:o[f]),h+=h[f];c=bt(e,s);l=kt(e,s);u.undoManager.transact(function(){n.each(l,function(n){u.dom.setStyle(n.element,"height",n.height+"px");u.dom.setAttrib(n.element,"height",null)});n.each(c,function(n){u.dom.setStyle(n.element,"height",n.height+"px");u.dom.setAttrib(n.element,"height",null)});u.dom.setStyle(t,"height",h+"px");u.dom.setAttrib(t,"height",null)})}function fr(){ei=setTimeout(function(){ti()},200)}function er(){clearTimeout(ei)}function or(){var n=document.createElement("div");return n.setAttribute("style","margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; height: 100%; width: 100%;"),n.setAttribute("data-mce-bogus","all"),n}function sr(n,t){u.dom.bind(n,"mouseup",function(){ti()});u.dom.bind(n,"mousemove",function(n){er();v&&t(n)});u.dom.bind(n,"mouseout",function(){fr()})}function ti(){var t,n,i,e,o,h;(u.dom.remove(s),v)&&(u.dom.removeClass(f,pi),v=!1,ri(f)?(i=parseInt(u.dom.getAttrib(f,vi),10),e=u.dom.getPos(f).x,t=parseInt(u.dom.getAttrib(f,ai),10),n=k()?i-e:e-i,Math.abs(n)>=1&&gt(r,n,t)):ui(f)&&(o=parseInt(u.dom.getAttrib(f,ci),10),h=u.dom.getPos(f).y,t=parseInt(u.dom.getAttrib(f,hi),10),n=h-o,Math.abs(n)>=1&&ni(r,n,t)),ut(r),u.nodeChanged())}function ii(n,t){s=s?s:or();v=!0;u.dom.addClass(n,pi);f=n;sr(s,t);u.dom.add(o(),s)}function ri(n){return u.dom.hasClass(n,li)}function ui(n){return u.dom.hasClass(n,si)}function hr(n){var i,r;h=h!==t?h:n.clientX;i=n.clientX-h;h=n.clientX;r=u.dom.getPos(f).x;u.dom.setStyle(f,"left",r+i+"px")}function cr(n){var i,r;c=c!==t?c:n.clientY;i=n.clientY-c;c=n.clientY;r=u.dom.getPos(f).y;u.dom.setStyle(f,"top",r+i+"px")}function lr(n){h=t;ii(n,hr)}function ar(n){c=t;ii(n,cr)}function fi(n){var t=n.target,i=u.getBody(),f,e;(u.$.contains(i,r)||r===i)&&(ri(t)?(n.preventDefault(),f=u.dom.getPos(t).x,u.dom.setAttrib(t,vi,f),lr(t)):ui(t)?(n.preventDefault(),e=u.dom.getPos(t).y,u.dom.setAttrib(t,ci,e),ar(t)):l())}var ei,v,s,f,h,c,oi="mce-resize-bar",si="mce-resize-bar-row",vr="row-resize",hi="data-row",ci="data-initial-top",li="mce-resize-bar-col",yr="col-resize",ai="data-col",vi="data-initial-left",b=4,yi=10,pr=10,pi="mce-resize-bar-dragging",wr=new RegExp(/(\d+(\.\d+)?%)/),br=new RegExp(/px|em/);return u.on("init",function(){u.dom.bind(o(),"mousedown",fi)}),u.on("ObjectResized",function(t){var r=t.target,i;"TABLE"===r.nodeName&&(i=[],n.each(r.rows,function(t){n.each(t.cells,function(n){var t=u.dom.getStyle(n,"width",!0);i.push({cell:n,width:t})})}),n.each(i,function(n){u.dom.setStyle(n.cell,"width",n.width);u.dom.setAttrib(n.cell,"width",null)}))}),u.on("mouseover",function(n){if(!v){var t=u.dom.getParent(n.target,"table");("TABLE"===n.target.nodeName||t)&&(r=t,ut(t))}}),u.on("keydown",function(n){switch(n.keyCode){case i.LEFT:case i.RIGHT:case i.UP:case i.DOWN:l()}}),u.on("remove",function(){l();u.dom.unbind(o(),"mousedown",fi)}),{adjustWidth:gt,adjustHeight:ni,clearBars:l,drawBars:ht,determineDeltas:yt,getTableGrid:p,getTableDetails:y,getWidths:at,getPixelHeights:vt,isPercentageBasedSize:a,isPixelBasedSize:dt,recalculateWidths:wt,recalculateCellHeights:bt,recalculateRowHeights:kt}}});i("tinymce/tableplugin/Plugin",["tinymce/tableplugin/TableGrid","tinymce/tableplugin/Quirks","tinymce/tableplugin/CellSelection","tinymce/tableplugin/Dialogs","tinymce/tableplugin/ResizeBars","tinymce/util/Tools","tinymce/dom/TreeWalker","tinymce/Env","tinymce/PluginManager"],function(n,t,i,r,u,f,e,o,s){function c(f){function e(n){return function(){f.execCommand(n)}}function w(n,t){for(var e,r,i='<table id="__mce"><tbody>',u=0;u<t;u++){for(i+="<tr>",e=0;e<n;e++)i+="<td>"+(o.ie&&o.ie<10?"&nbsp;":"<br>")+"<\/td>";i+="<\/tr>"}return i+="<\/tbody><\/table>",f.undoManager.transact(function(){f.insertContent(i);r=f.dom.get("__mce");f.dom.setAttrib(r,"id",null);f.$("tr",r).each(function(n,t){f.fire("newrow",{node:t});f.$("th,td",t).each(function(n,t){f.fire("newcell",{node:t})})});f.dom.setAttribs(r,f.settings.table_default_attributes||{});f.dom.setStyles(r,f.settings.table_default_styles||{})}),r}function p(n,t,i){function r(){var r,u,e,o={},s=0;u=f.dom.select("td[data-mce-selected],th[data-mce-selected]");r=u[0];r||(r=f.selection.getStart());i&&u.length>0?(h(u,function(n){return o[n.parentNode.parentNode.nodeName]=1}),h(o,function(n){s+=n}),e=1!==s):e=!f.dom.getParent(r,t);n.disabled(e);f.selection.selectorChanged(t,function(t){n.disabled(!t)})}f.initialized?r():f.on("init",r)}function b(){p(this,"table")}function s(){p(this,"td,th")}function d(){p(this,"td,th",!0)}function g(){for(var n="",i,n='<table role="grid" class="mce-grid mce-grid-border" aria-readonly="true">',t=0;t<10;t++){for(n+="<tr>",i=0;i<10;i++)n+='<td role="gridcell" tabindex="-1"><a id="mcegrid'+(10*t+i)+'" href="#" data-mce-x="'+i+'" data-mce-y="'+t+'"><\/a><\/td>';n+="<\/tr>"}return n+="<\/table>",n+'<div class="mce-text-center" role="presentation">1 x 1<\/div>'}function k(n,t,i){var r,u,s,e,o,h=i.getEl().getElementsByTagName("table")[0],c=i.isRtl()||"tl-tr"==i.parent().rel;for(h.nextSibling.innerHTML=n+1+" x "+(t+1),c&&(n=9-n),u=0;u<10;u++)for(r=0;r<10;r++)e=h.rows[u].childNodes[r].firstChild,o=(c?r>=n:r<=n)&&u<=t,f.dom.toggleClass(e,"mce-active",o),o&&(s=e);return s.parentNode}function nt(){f.addButton("tableprops",{title:"Table properties",onclick:c.tableProps,icon:"table"});f.addButton("tabledelete",{title:"Delete table",onclick:e("mceTableDelete")});f.addButton("tablecellprops",{title:"Cell properties",onclick:e("mceTableCellProps")});f.addButton("tablemergecells",{title:"Merge cells",onclick:e("mceTableMergeCells")});f.addButton("tablesplitcells",{title:"Split cell",onclick:e("mceTableSplitCells")});f.addButton("tableinsertrowbefore",{title:"Insert row before",onclick:e("mceTableInsertRowBefore")});f.addButton("tableinsertrowafter",{title:"Insert row after",onclick:e("mceTableInsertRowAfter")});f.addButton("tabledeleterow",{title:"Delete row",onclick:e("mceTableDeleteRow")});f.addButton("tablerowprops",{title:"Row properties",onclick:e("mceTableRowProps")});f.addButton("tablecutrow",{title:"Cut row",onclick:e("mceTableCutRow")});f.addButton("tablecopyrow",{title:"Copy row",onclick:e("mceTableCopyRow")});f.addButton("tablepasterowbefore",{title:"Paste row before",onclick:e("mceTablePasteRowBefore")});f.addButton("tablepasterowafter",{title:"Paste row after",onclick:e("mceTablePasteRowAfter")});f.addButton("tableinsertcolbefore",{title:"Insert column before",onclick:e("mceTableInsertColBefore")});f.addButton("tableinsertcolafter",{title:"Insert column after",onclick:e("mceTableInsertColAfter")});f.addButton("tabledeletecol",{title:"Delete column",onclick:e("mceTableDeleteCol")})}function tt(n){return f.dom.is(n,"table")&&f.getBody().contains(n)}function it(){var n=f.settings.table_toolbar;""!==n&&n!==!1&&(n||(n="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol"),f.addContextToolbar(tt,n))}function rt(){return a}function ut(n){a=n}var a,v,l=this,c=new r(f),y;f.settings.object_resizing&&f.settings.table_resize_bars!==!1&&(f.settings.object_resizing===!0||"table"===f.settings.object_resizing)&&(v=u(f));f.settings.table_grid===!1?f.addMenuItem("inserttable",{text:"Table",icon:"table",context:"table",onclick:c.table}):f.addMenuItem("inserttable",{text:"Table",icon:"table",context:"table",ariaHideMenu:!0,onclick:function(n){n.aria&&(this.parent().hideAll(),n.stopImmediatePropagation(),c.table())},onshow:function(){k(0,0,this.menu.items()[0])},onhide:function(){var n=this.menu.items()[0].getEl().getElementsByTagName("a");f.dom.removeClass(n,"mce-active");f.dom.addClass(n[0],"mce-active")},menu:[{type:"container",html:g(),onPostRender:function(){this.lastX=this.lastY=0},onmousemove:function(n){var t,i,r=n.target;"A"==r.tagName.toUpperCase()&&(t=parseInt(r.getAttribute("data-mce-x"),10),i=parseInt(r.getAttribute("data-mce-y"),10),(this.isRtl()||"tl-tr"==this.parent().rel)&&(t=9-t),t===this.lastX&&i===this.lastY||(k(t,i,n.control),this.lastX=t,this.lastY=i))},onclick:function(n){var t=this;"A"==n.target.tagName.toUpperCase()&&(n.preventDefault(),n.stopPropagation(),t.parent().cancel(),f.undoManager.transact(function(){w(t.lastX+1,t.lastY+1)}),f.addVisual())}}]});f.addMenuItem("tableprops",{text:"Table properties",context:"table",onPostRender:b,onclick:c.tableProps});f.addMenuItem("deletetable",{text:"Delete table",context:"table",onPostRender:b,cmd:"mceTableDelete"});f.addMenuItem("cell",{separator:"before",text:"Cell",context:"table",menu:[{text:"Cell properties",onclick:e("mceTableCellProps"),onPostRender:s},{text:"Merge cells",onclick:e("mceTableMergeCells"),onPostRender:d},{text:"Split cell",onclick:e("mceTableSplitCells"),onPostRender:s}]});f.addMenuItem("row",{text:"Row",context:"table",menu:[{text:"Insert row before",onclick:e("mceTableInsertRowBefore"),onPostRender:s},{text:"Insert row after",onclick:e("mceTableInsertRowAfter"),onPostRender:s},{text:"Delete row",onclick:e("mceTableDeleteRow"),onPostRender:s},{text:"Row properties",onclick:e("mceTableRowProps"),onPostRender:s},{text:"-"},{text:"Cut row",onclick:e("mceTableCutRow"),onPostRender:s},{text:"Copy row",onclick:e("mceTableCopyRow"),onPostRender:s},{text:"Paste row before",onclick:e("mceTablePasteRowBefore"),onPostRender:s},{text:"Paste row after",onclick:e("mceTablePasteRowAfter"),onPostRender:s}]});f.addMenuItem("column",{text:"Column",context:"table",menu:[{text:"Insert column before",onclick:e("mceTableInsertColBefore"),onPostRender:s},{text:"Insert column after",onclick:e("mceTableInsertColAfter"),onPostRender:s},{text:"Delete column",onclick:e("mceTableDeleteCol"),onPostRender:s}]});y=[];h("inserttable tableprops deletetable | cell row column".split(" "),function(n){"|"==n?y.push({text:"-"}):y.push(f.menuItems[n])});f.addButton("table",{type:"menubutton",title:"Table",menu:y});o.isIE||f.on("click",function(n){n=n.target;"TABLE"===n.nodeName&&(f.selection.select(n),f.nodeChanged())});l.quirks=new t(f);f.on("Init",function(){l.cellSelection=new i(f,function(n){n&&v&&v.clearBars()});l.resizeBars=v});f.on("PreInit",function(){f.serializer.addAttributeFilter("data-mce-cell-padding,data-mce-border,data-mce-border-color",function(n,t){for(var i=n.length;i--;)n[i].attr(t,null)})});h({mceTableSplitCells:function(n){n.split()},mceTableMergeCells:function(n){var t;t=f.dom.getParent(f.selection.getStart(),"th,td");f.dom.select("td[data-mce-selected],th[data-mce-selected]").length?n.merge():c.merge(n,t)},mceTableInsertRowBefore:function(n){n.insertRow(!0)},mceTableInsertRowAfter:function(n){n.insertRow()},mceTableInsertColBefore:function(n){n.insertCol(!0)},mceTableInsertColAfter:function(n){n.insertCol()},mceTableDeleteCol:function(n){n.deleteCols()},mceTableDeleteRow:function(n){n.deleteRows()},mceTableCutRow:function(n){a=n.cutRows()},mceTableCopyRow:function(n){a=n.copyRows()},mceTablePasteRowBefore:function(n){n.pasteRows(a,!0)},mceTablePasteRowAfter:function(n){n.pasteRows(a)},mceSplitColsBefore:function(n){n.splitCols(!0)},mceSplitColsAfter:function(n){n.splitCols(!1)},mceTableDelete:function(n){v&&v.clearBars();n.deleteTable()}},function(t,i){f.addCommand(i,function(){var i=new n(f);i&&(t(i),f.execCommand("mceRepaint"),l.cellSelection.clear())})});h({mceInsertTable:c.table,mceTableProps:function(){c.table(!0)},mceTableRowProps:c.row,mceTableCellProps:c.cell},function(n,t){f.addCommand(t,function(t,i){n(i)})});nt();it();f.settings.table_tab_navigation!==!1&&f.on("keydown",function(t){var r,i,u;9==t.keyCode&&(r=f.dom.getParent(f.selection.getStart(),"th,td"),r&&(t.preventDefault(),i=new n(f),u=t.shiftKey?-1:1,f.undoManager.transact(function(){!i.moveRelIdx(r,u)&&u>0&&(i.insertRow(),i.refresh(),i.moveRelIdx(r,u))})))});l.insertTable=w;l.setClipboardRows=ut;l.getClipboardRows=rt}var h=f.each;s.add("table",c)})}(this);Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined}});Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(n,t){function e(n,t){return n===t||typeof n=="number"&&typeof t=="number"&&isNaN(n)&&isNaN(t)}var f,i,r,u;if(this==null)throw new TypeError('"this" is null or not defined');if(f=Object(this),i=f.length>>>0,i===0)return!1;for(r=t|0,u=Math.max(r>=0?r:i-Math.abs(r),0);u<i;){if(e(f[u],n))return!0;u++}return!1}});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.ES6Promise=t()}(this,function(){"use strict";function vt(n){var t=typeof n;return null!==n&&("object"===t||"function"===t)}function it(n){return"function"==typeof n}function yt(n){nt=n}function pt(n){r=n}function wt(){return function(){return process.nextTick(u)}}function bt(){return"undefined"!=typeof g?function(){g(u)}:p()}function kt(){var n=0,i=new lt(u),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function dt(){var n=new MessageChannel;return n.port1.onmessage=u,function(){return n.port2.postMessage(0)}}function p(){var n=setTimeout;return function(){return n(u,1)}}function u(){for(var t,i,n=0;n<e;n+=2)t=o[n],i=o[n+1],t(i),o[n]=void 0,o[n+1]=void 0;e=0}function gt(){try{var t=require,n=t("vertx");return g=n.runOnLoop||n.runOnContext,bt()}catch(i){return p()}}function w(n,t){var o=arguments,e=this,i=new this.constructor(f),u;return void 0===i[y]&&ot(i),u=e._state,u?!function(){var n=o[u-1];r(function(){return et(u,i,n,e._result)})}():k(e,i,n,t),i}function b(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(f),c(t,n),t)}function f(){}function ni(){return new TypeError("You cannot resolve a promise with itself")}function ti(){return new TypeError("A promises callback cannot return that same promise.")}function rt(n){try{return n.then}catch(t){return v.error=t,v}}function ii(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function ri(n,u,f){r(function(n){var r=!1,e=ii(f,u,function(t){r||(r=!0,u!==t?c(n,t):i(n,t))},function(i){r||(r=!0,t(n,i))},"Settle: "+(n._label||" unknown promise"));!r&&e&&(r=!0,t(n,e))},n)}function ui(n,r){r._state===a?i(n,r._result):r._state===h?t(n,r._result):k(r,void 0,function(t){return c(n,t)},function(i){return t(n,i)})}function ut(n,r,u){r.constructor===n.constructor&&u===w&&r.constructor.resolve===b?ui(n,r):u===v?(t(n,v.error),v.error=null):void 0===u?i(n,r):it(u)?ri(n,r,u):i(n,r)}function c(n,r){n===r?t(n,ni()):vt(r)?ut(n,r,rt(r)):i(n,r)}function fi(n){n._onerror&&n._onerror(n._result);d(n)}function i(n,t){n._state===s&&(n._result=t,n._state=a,0!==n._subscribers.length&&r(d,n))}function t(n,t){n._state===s&&(n._state=h,n._result=t,r(fi,n))}function k(n,t,i,u){var f=n._subscribers,e=f.length;n._onerror=null;f[e]=t;f[e+a]=i;f[e+h]=u;0===e&&n._state&&r(d,n)}function d(n){var t=n._subscribers,f=n._state;if(0!==t.length){for(var r=void 0,u=void 0,e=n._result,i=0;i<t.length;i+=3)r=t[i],u=t[i+f],r?et(f,r,u,e):u(e);n._subscribers.length=0}}function ft(){this.error=null}function ei(n,t){try{return n(t)}catch(i){return tt.error=i,tt}}function et(n,r,u,f){var l=it(u),e=void 0,v=void 0,o=void 0,y=void 0;if(l){if(e=ei(u,f),e===tt?(y=!0,v=e.error,e.error=null):o=!0,r===e)return void t(r,ti())}else e=f,o=!0;r._state!==s||(l&&o?c(r,e):y?t(r,v):n===a?i(r,e):n===h&&t(r,e))}function oi(n,i){try{i(function(t){c(n,t)},function(i){t(n,i)})}catch(r){t(n,r)}}function si(){return at++}function ot(n){n[y]=at++;n._state=void 0;n._result=void 0;n._subscribers=[]}function l(n,r){this._instanceConstructor=n;this.promise=new n(f);this.promise[y]||ot(this.promise);st(r)?(this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),0===this.length?i(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&i(this.promise,this._result))):t(this.promise,hi())}function hi(){return new Error("Array Methods must be provided an Array")}function ci(n){return new l(this,n).promise}function li(n){var t=this;return new t(st(n)?function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}:function(n,t){return t(new TypeError("You must pass an array to race."))})}function ai(n){var r=this,i=new r(f);return t(i,n),i}function vi(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function yi(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function n(t){this[y]=si();this._result=this._state=void 0;this._subscribers=[];f!==t&&("function"!=typeof t&&vi(),this instanceof n?oi(this,t):yi())}function pi(){var t=void 0,i,r;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(u){throw new Error("polyfill failed because global object is unavailable in this environment");}if(i=t.Promise,i){r=null;try{r=Object.prototype.toString.call(i.resolve())}catch(u){}if("[object Promise]"===r&&!i.cast)return}t.Promise=n}var wi=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var st=wi,e=0,g=void 0,nt=void 0,r=function(n,t){o[e]=n;o[e+1]=t;e+=2;2===e&&(nt?nt(u):di())},ht="undefined"!=typeof window?window:void 0,ct=ht||{},lt=ct.MutationObserver||ct.WebKitMutationObserver,bi="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),ki="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,o=new Array(1e3),di=bi?wt():lt?kt():ki?dt():void 0===ht&&"function"==typeof require?gt():p();var y=Math.random().toString(36).substring(16),s=void 0,a=1,h=2,v=new ft,tt=new ft,at=0;return l.prototype._enumerate=function(n){for(var t=0;this._state===s&&t<n.length;t++)this._eachEntry(n[t],t)},l.prototype._eachEntry=function(t,i){var r=this._instanceConstructor,o=r.resolve,u,e;o===b?(u=rt(t),u===w&&t._state!==s?this._settledAt(t._state,i,t._result):"function"!=typeof u?(this._remaining--,this._result[i]=t):r===n?(e=new r(f),ut(e,t,u),this._willSettleAt(e,i)):this._willSettleAt(new r(function(n){return n(t)}),i)):this._willSettleAt(o(t),i)},l.prototype._settledAt=function(n,r,u){var f=this.promise;f._state===s&&(this._remaining--,n===h?t(f,u):this._result[r]=u);0===this._remaining&&i(f,this._result)},l.prototype._willSettleAt=function(n,t){var i=this;k(n,void 0,function(n){return i._settledAt(a,t,n)},function(n){return i._settledAt(h,t,n)})},n.all=ci,n.race=li,n.resolve=b,n.reject=ai,n._setScheduler=yt,n._setAsap=pt,n._asap=r,n.prototype={constructor:n,then:w,"catch":function(n){return this.then(null,n)}},n.polyfill=pi,n.Promise=n,n.polyfill(),n}),function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.ResizeSensor=t()}(typeof window!="undefined"?window:this,function(){function i(n,t){var i=Object.prototype.toString.call(n),u="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements,r=0,f=n.length;if(u)for(;r<f;r++)t(n[r]);else t(n)}function r(n){if(!n.getBoundingClientRect)return{width:n.offsetWidth,height:n.offsetHeight};var t=n.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}var t,n;return typeof window=="undefined"?null:(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(n){return window.setTimeout(n,20)},n=function(u,f){function e(){var t=[],n,i;this.add=function(n){t.push(n)};this.call=function(){for(n=0,i=t.length;n<i;n++)t[n].call()};this.remove=function(r){var u=[];for(n=0,i=t.length;n<i;n++)t[n]!==r&&u.push(t[n]);t=u};this.length=function(){return t.length}}function o(n,i){var u,s,f;if(n){if(n.resizedAttached){n.resizedAttached.add(i);return}n.resizedAttached=new e;n.resizedAttached.add(i);n.resizeSensor=document.createElement("div");n.resizeSensor.dir="ltr";n.resizeSensor.className="resize-sensor";u="position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";s="position: absolute; left: 0; top: 0; transition: 0s;";n.resizeSensor.style.cssText=u;n.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+u+'"><div style="'+s+'"><\/div><\/div><div class="resize-sensor-shrink" style="'+u+'"><div style="'+s+' width: 200%; height: 200%"><\/div><\/div>';n.appendChild(n.resizeSensor);f=window.getComputedStyle(n).getPropertyPriority("position");"absolute"!==f&&"relative"!==f&&"fixed"!==f;var o=n.resizeSensor.childNodes[0],v=o.childNodes[0],h=n.resizeSensor.childNodes[1],c,l,d,g,y=r(n),p=y.width,w=y.height,a=function(){var t=n.offsetWidth===0&&n.offsetHeight===0,i;t&&(i=n.style.display,n.style.display="block");v.style.width="100000px";v.style.height="100000px";o.scrollLeft=1e5;o.scrollTop=1e5;h.scrollLeft=1e5;h.scrollTop=1e5;t&&(n.style.display=i)};n.resizeSensor.resetSensor=a;var nt=function(){(l=0,c)&&(p=d,w=g,n.resizedAttached&&n.resizedAttached.call())},b=function(){var i=r(n),u=i.width,f=i.height;c=u!=p||f!=w;c&&!l&&(l=t(nt));a()},k=function(n,t,i){n.attachEvent?n.attachEvent("on"+t,i):n.addEventListener(t,i)};k(o,"scroll",b);k(h,"scroll",b);t(a)}}i(u,function(n){o(n,f)});this.detach=function(t){n.detach(u,t)};this.reset=function(){u.resizeSensor.resetSensor()}},n.reset=function(n){i(n,function(n){n.resizeSensor.resetSensor()})},n.detach=function(n,t){i(n,function(n){n&&(n.resizedAttached&&typeof t=="function"&&(n.resizedAttached.remove(t),n.resizedAttached.length())||n.resizeSensor&&(n.contains(n.resizeSensor)&&n.removeChild(n.resizeSensor),delete n.resizeSensor,delete n.resizedAttached))})},n)});var initPendo=function(n){!function(t,i,r){function f(n){var i,r,t;if(n&&n.stagingServers&&n.stagingAgentUrl)for(i=0,r=n.stagingServers.length;r>i;++i)if(t=n.stagingServers[i],"function"!=typeof t.test&&(t=new RegExp("^"+t+"$")),t.test(location.hostname))return!0;return!1}function e(n){return f(n)?(o(n.stagingAgentUrl),!0):!1}function o(n){var u="script",t=i.createElement(u),r;t.async=!0;t.src=n;r=i.getElementsByTagName(u)[0];r.parentNode.insertBefore(t,r)}function u(t){if("undefined"!=typeof n)return n[t]}"undefined"!=typeof n&&e(n)||(!function(){"use strict";function ly(){var t=this._handlers={};return this.on=function(n,i){if(f.isString(n)||f.isFunction(i)){var r=t[n];r||(r=t[n]=[]);f.indexOf(r,i)<0&&r.push(i)}return this},this.one=function(n,t){var r=this,i=function(){r.off(n,i);t.apply(this,arguments)};return this.on(n,i)},this.off=function(n,i){var u=t[n],e;return f.isFunction(i)?(e=f.indexOf(u,i),u&&e>=0&&u.splice(e,1)):u&&i===r&&(u.length=0),this},this.trigger=function(i){var r=t[i],u=f.toArray(arguments).slice(1),e=f.map(r,function(t){var i=t.apply(n,u);return i===!1?c.reject():i});return c.all(e)},this}function li(){var n=i.documentElement;return(t.pageYOffset||n.scrollTop||w().scrollTop)-(n.clientTop||0)}function ai(){var n=i.documentElement;return(t.pageXOffset||n.scrollLeft||w().scrollLeft)-(n.clientLeft||0)}function te(){var t=w(),n,i;return t&&(n=bt(t),n&&("relative"===n.position||"absolute"===n.position||ie(n)))?(i=t.getBoundingClientRect(),{top:i.top+li(),left:i.left+ai()}):{top:0,left:0}}function ay(){return ie(bt(w()))&&isNaN(p)}function ie(n){if(n&&f.isFunction(n.getPropertyValue)){var t=[n.getPropertyValue("transform")];return"undefined"!=typeof ut&&f.isString(ut)&&t.push(n.getPropertyValue("-"+ut.toLowerCase()+"-transform")),f.any(t,function(n){return n&&"none"!==n})}return!1}function vy(n){var t=te();return n.left-=t.left,n.top-=t.top,f.isNumber(n.right)&&(n.right-=t.left),f.isNumber(n.bottom)&&(n.bottom-=t.top),n}function th(n){return f.each(["left","top","width","height"],function(t){n[t]=Math.round(n[t])}),n}function ot(n){var t,r,u,i;if(!n)return{width:0,height:0};if(t={width:f.isNumber(n.offsetWidth)?n.offsetWidth:0,height:f.isNumber(n.offsetHeight)?n.offsetHeight:0},r=0,u=0,n.getBoundingClientRect){try{i=n.getBoundingClientRect()}catch(e){return{width:0,height:0}}return t.top=i.top,t.left=i.left,t.width=Math.max(t.width,f.isNumber(i.width)?i.width:0),t.height=Math.max(t.height,f.isNumber(i.height)?i.height:0),yy(n)?t.fixed=!0:(t.top+=li(),t.left+=ai(),t=vy(t)),th(t)}for(;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)r+=n.offsetLeft,u+=n.offsetTop,n=n.offsetParent;return t.top=u,t.left=r,th(t)}function re(n){return s.contains(i,n)}function ih(n){for(var i,t=n&&n.parentNode;t;){if(i=bt(t),ie(i))return!0;t=t.parentNode}return!1}function yy(n){for(var i,t=n;t;){if(i=bt(t),!i)return!1;if("fixed"===i.position)return isNaN(p)?!ih(t):!0;t=t.parentNode}return!1}function rh(n,t){var i=bt(n);return t=t||/(auto|scroll|hidden)/,i?t.test(i.overflowY)&&t.test(i.overflowX)?d.BOTH:t.test(i.overflowY)?d.Y:t.test(i.overflowX)?d.X:t.test(i.overflow)?d.BOTH:d.NONE:d.NONE}function ue(n,t,i){var r=it(t),u=rh(t,i);return u===d.BOTH&&!fc(n,r)?!1:u===d.Y&&(n.top>=r.bottom||n.bottom<=r.top)?!1:u===d.X&&(n.left>=r.right||n.right<=r.left)?!1:!0}function uh(n){return n&&n.nodeName&&"body"===n.nodeName.toLowerCase()}function fh(n){var r,i,t;if(!n)return!1;if(uh(n))return!0;if(r=it(n),0===r.width||0===r.height)return!1;for(t=n;t&&(i=bt(t));){if("none"===i.display||Number(i.opacity)<=0||"hidden"===i.visibility)return!1;t=t.parentNode}return!0}function yt(n,t){var u;if(!fh(n))return!1;if(uh(n))return!0;u=it(n);t=t||/hidden/;for(var r=at(n,t),f=null,h=w();r&&r!==h&&r!==i&&r!==f;){if(!ue(u,r,t))return!1;f=r;r=at(r,t)}if(n.getBoundingClientRect){var e=n.getBoundingClientRect(),o=e.right,s=e.bottom;if(u.fixed||(o+=ai(),s+=li()),0>=o||0>=s)return!1}return!0}function eh(n){var t=i.createElement("script"),r=i.head||i.getElementsByTagName("head")[0]||i.body;t.type="text/javascript";n.src?t.src=n.src:t.text=n.text||n.textContent||n.innerHTML||"";r.appendChild(t);r.removeChild(t)}function e(n,t){var r,h,u=this,o;return n&&n instanceof e?n:(u instanceof e)?(n?n.nodeType?r=[n]:(h=/^<(\w+)\/?>$/.exec(n))?r=[i.createElement(h[1])]:/^<[\w\W]+>$/.test(n)?(o=i.createElement("div"),o.innerHTML=n,r=f.toArray(o.childNodes)):f.isString(n)?(t instanceof e&&(t=t.length>0?t[0]:null),r=s(n,t)):r=[n]:r=[],f.each(r,function(n,t){u[t]=n}),u.context=t,u.length=r.length,u):new e(n,t)}function py(){var n=u("dataHost");return n?"https://"+n:"https://app.pendo.io"}function fe(n){return n>=55296&&56319>=n}function oh(n){return n>=56320&&57343>=n}function wy(n){var t,i;return n.length<1?n:(t=n.slice(-1).charCodeAt(0),!fe(t)&&!oh(t))?n:1===n.length?n.slice(0,-1):fe(t)?n.slice(0,-1):oh(t)&&(i=n.slice(-2).charCodeAt(0),!fe(i))?n.slice(0,-1):n}function ee(n,t){var u,i="",r=n.nodeType;if(r===kt.TEXT_ELEMENT||r===kt.CDATA_SECTION_NODE)return n.nodeValue;if(!fb(n)&&(r===kt.ELEMENT_NODE||r===kt.DOCUMENT_NODE||r===kt.DOCUMENT_FRAGMENT_NODE))for(n=n.firstChild;n;n=n.nextSibling){if(u=ee(n,t-i.length),(i+u).length>=t)return i+wy(u.substring(0,t-i.length));i+=u}return i}function lu(n){return parseInt(n,10)}function oe(n){return"string"==typeof n}function sh(n){return"undefined"==typeof n}function sh(n){return"undefined"==typeof n}function by(t,i){!function r(){n._.map(vl,function(n){n()});yl=i(r,t)}()}function hh(){pl!=br()&&(pl=br(),n._.map(co,function(n){n(br())}))}function ky(n){return new RegExp("^("+f.chain(n).unique().map(function(n){return n.replace(/\./g,"\\.").replace(/^https?:/,"https?:")}).value().join("|")+")$")}function au(){var n={},t=function(n,t,i){return function(){for(var o,u=f.toArray(arguments),r=0,e=t.length;e>r;++r)if(t[r].apply(this,u)===!1)return;for(o=n.apply(this,u),r=0,e=i.length;e>r&&i[r].apply(this,u)!==!1;++r);return o}};return f.each(["after","before"],function(i){this[i]=function(r,u){if(this[r]){var f=n[r];f||(f=n[r]={before:[],after:[]},this[r]=t(this[r],f.before,f.after));f[i].push(u)}}},this),this}function dy(){if("tooltip"===this.type){var t=this;t.attributes.height=t.attributes.height||n.TOOLTIP_DEFAULT_HEIGHT;t.attributes.width=t.attributes.width||n.TOOLTIP_DEFAULT_WIDTH;t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT";this.getTriggers=function(n){var t=this,i=t.getGuide(),r=t.element||vt(t),u,e,o,s;return!r&&n?[]:(u=t.advanceMethod||"",e=u.split(","),(this.triggers=f.map(e,function(n){return new ur(r,n,t)}),!n&&i&&i.isMultiStep&&fu==rs)&&(o=i.findSectionForStep(t),s=i.getSubSection(o,t),this.triggers=this.triggers.concat(f.flatten(f.map(s,function(n){return n.getTriggers?n.getTriggers(!0):[]})))),this.triggers)};this.removeTrigger=function(n){this.triggers=f.without(this.triggers,n);0===this.triggers.length&&(this.triggers=null)};this.canShow=function(){return vh(t)?!1:!t.isShown()&&he(t)};this.after("render",function(){var n=this,r;if(vv(n,n.elements)){r=n.element;f.each(n.getTriggers(),function(n){n.add()});for(var i=/(auto|scroll)/,t=at(r,i),u=w();t&&t!==u;)n.attachEvent(t,"scroll",f.throttle(f.bind(n.onscroll,n,t,i),10)),t=at(t,i)}});this.reposition=function(){var t=this,u=t.attributes.width,f=t.attributes.height,o=t.attributes.layoutDir,i=t.guideElement,s=e("._pendo-guide-container_",i),r=ot(t.element),n=nr(r,f,u,o);s.removeClass("top right bottom left").addClass(n.arrowPosition);e("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove();ou(i,n);i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:r.fixed?"fixed":""});t.dim=n};this.onscroll=function(n,t){var i=this,u=it(i.element),r=i.dim;ue(u,n,t)?(r=nr(u,i.attributes.height,i.attributes.width,r.arrowPosition),lt(i.elements[0],"display:block;top:"+r.top+"px;left:"+r.left+"px"),i.dim=r):lt(i.elements[0],"display:none")};this.teardownElementEvent=function(){f.each(this.triggers,function(n){n.remove()})};this.after("hide",function(){e("._pendo-guide-tt-region-block_").remove();ls=null;as=null;vs=null})}return this}function gy(){var t=this;return"tooltip"!==t.type&&"banner"!==t.type&&(t.attributes.height=t.attributes.height||n.LB_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||n.LB_DEFAULT_WIDTH,t.after("render",function(){hi()?ott(t,t.elements):dv(t,t.elements)}),t.reposition=function(){hi()||t.guideElement.css({"margin-left":-Math.floor(t.attributes.width/2),"margin-top":-Math.floor(t.attributes.height/2)})}),t}function np(){var t=this;return"banner"===t.type&&(t.attributes.height=t.attributes.height||bk,t.attributes.position=t.attributes.position||"top",t.after("render",function(){var i=t.guideElement,r=n.TOOLTIP_ARROW_SIZE;i.css({width:""}).addClass(kk).addClass("_pendo-guide-banner-"+t.attributes.position+"_");iu()||i.addClass("_pendo-in_");e("._pendo-guide-container_",i).css({bottom:r,right:r});t.element=vt(t);t.elements.push(i[0]);i.appendTo(w())})),t}function tp(t){var i=this;if(i.pollIds&&i.pollIds.length){var u,o="_pendo-poll-selected_",a=f.indexBy(t.polls,"id"),h=f.map(i.pollIds,function(n){return a[n]}),c=function(n,t){if(n&&t!==r)return n.numericResponses?parseInt(t,10):t},v=function(){var r=t.id,u=i.id;yf(r,u,n.get_visitor_id());si(r,u,"advanced");nt={guideId:r,guideStepId:u,time:(new Date).getTime(),state:"advanced"};pf(nt)},l=function(){var t=e("._pendo-poll_"),n=e("._pendo-poll-message_");n.length?(t.addClass("_pendo-poll-submitted_"),n.css("margin-top:-"+n.height()/2+"px"),v()):i.advance()};i.after("render",function(){var n=s("._pendo-poll_")[0],t=s("._pendo-poll-submit_",n)[0];t?i.attachEvent(t,"click",function(){var t=s("._pendo-poll-question_",n);f.each(t,function(n,t){var r=s("textarea,input:text,select,input:radio:checked",n),u;r&&r.length&&r[0].value&&(u=h[t],i.response(u,c(u,r[0].value)))});l()}):i.attachEvent(n,"click",function(n){var t=e(ii(n)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio"),r,u;t.length&&(r=h[0],u=c(r,t.attr("data-pendo-poll-value")||t.attr("value")),i.response(r,u),l())})});i.after("render",function(){var n=s("._pendo-poll_ ._pendo-poll-npsrating_")[0],t=e("._pendo-poll_ ._pendo-poll-submit_"),r="_pendo-poll-npsrating-selected_";n&&(t.css({display:"none"}),i.attachEvent(n,"click",function(){var u=s(":radio:checked",n)[0],h=e("._pendo-poll_");e("label",n).removeClass(o);h.removeClass(r);u&&(e('label[for="'+u.id+'"]').addClass(o),h.addClass(r),t.css({display:""}));f.isFunction(i.resize)&&i.resize()}))});i.after("show",function(){u=(new Date).getTime()});i.response=function(t,r){var e=tu("pollResponse",i.guideId,i.id,n.get_visitor_id());f.extend(e.props,{poll_id:t.id,poll_response:r,duration:(new Date).getTime()-u});nf("poll",{ct:(new Date).getTime(),v:st,jzb:n.squeezeAndCompress([e])})}}return i}function pt(t){return this.guide=t,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},this.getGuide=function(){return this.guide},this.getContent=function(){var n=this,r=this.getGuide(),t=r&&r.steps||[],i=f.indexOf(t,n),u=af(),e,o;f.isObject(u)||(u=na());try{return e=n.attributes.variables||{},o={step:{id:n.id,isFirst:0===i,isLast:i===t.length-1,index:i,number:i+1},guide:{id:r.id,percentComplete:t.length?Math.round((i+1)/t.length*100):0,stepCount:t.length},metadata:nh(u),template:e},n.template||(n.template=f.template(n.content||"")),n.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+n.id).replace(/pendo-src="([^"]+)"/g,function(n,t){return/<%=[^>]+>/.test(t)?n:'src="'+t+'"'})}catch(s){return n.content}},this.isShown=function(){return this.elements.length>0},this.canShow=function(){var n=this;return!n.isShown()&&nu(n)},this.canShowOnPage=function(t){return n.testUrlForStep(this.regexUrlRule,t)},this.shouldAutoDisplay=function(n){var t=this;return t.canShowOnPage(n)&&"dismissed"!==t.seenState&&"advanced"!==t.seenState},this.autoDisplay=function(n){var t=this;t.shouldAutoDisplay(n)&&t.show("auto")},this.render=function(){var i=this,h=i.attributes.width,c=i.attributes.height,o=n.TOOLTIP_ARROW_SIZE,l="_pendo-group-id-"+t.id+"_",r=e("<div>").attr("id",ns(i)).addClass(sa+" "+l),s=e("<div/>").addClass("_pendo-guide-content_").html(i.getContent()),u=e("<div/>").addClass("_pendo-guide-container_");r.width(h).height(c);u.css({left:o,top:o});i.isEditable&&s.attr("contenteditable","true");s.appendTo(u);u.appendTo(r);t&&f.isFunction(t.isOnboarding)&&t.isOnboarding()&&r.addClass("_pendo-onboarding_");i.guideElement=r},this.teardown=function(){o("guide step teardown","guide","render");f.each(this.handlers,function(n){g(n.element,n.type,n.fn,!0)});this.handlers.length=0},this.show=function(t){var i=this;i.canShow()&&(i.render(),i.overrideElement&&e.addClass(i.overrideElement,"triggered"),bo=(new Date).getTime(),ya(i.guideId,i.id,n.get_visitor_id(),t),i.isShown()&&!iu()&&this.onShown())},this.onShown=function(){var n=this;n.seenState="active";f.isFunction(n.script)&&n.script(n,t)},this.hide=function(n){var t=this;t.teardown();f.each(t.elements,function(n){n.parentNode.removeChild(n)});t.attributes&&n&&(t.attributes.stayHidden=n);t.elements.length=0;t.element=null;t.overrideElement&&e.removeClass(t.overrideElement,"triggered");kv()},this.advance=function(){n.onGuideAdvanced(this)},this.dismiss=function(){n.onGuideDismissed(this)},this.isPoweredByEnabled=function(){return this.hideCredits!==!0},this.attachEvent=function(n,t,i){var r={element:n,type:t,fn:i};l(n,t,i,!0);this.handlers.push(r)},this.searchFor=function(n){return n.length<3?!1:tr(this.content,n,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this}function ip(){var t=this,i;return t.attributes&&t.attributes.autoHeight&&(i=function(){return"tooltip"==t.type||ct()&&"lightbox"==t.type},t.after("render",function(){t.resize();t.attachEvent(t.guideElement[0],"load",function(){t.resize()})}),t.resize=function(){var r=n.TOOLTIP_ARROW_SIZE,f=t.guideElement,u=e("._pendo-guide-container_",f);i()?u.css({width:t.attributes.width-2*r,height:""}):u.css({right:r,bottom:""});t.attributes.height=u.height()+2*r;f.height(t.attributes.height);t.reposition()}),t}function rp(t){var i=this;return i.after("render",function(){ko(i.guideElement[0],function(){(!t.isOnboarding()||confirm("Are you sure you want to stop this tutorial?"))&&n.onGuideDismissed(i)})}),i}function up(){var t=this;return t.hideCredits||t.after("render",function(){n._addCredits(t.guideElement[0])}),t}function fp(){var i,t,r;return this.isMultiStep&&(f.each(this.steps,function(n){n.after("render",function(){f.each(n.elements,function(n){e(n).addClass("_pendo-guide-walkthrough_")})})}),i=function(n,t){if(!n)return!0;var i=f.last(n);return i.attributes.isRequired!=t.attributes.isRequired&&i.attributes.isRequired?!0:!1},t=null,this.sections=f.reduce(this.steps,function(n,r){return i(t,r)?(n.push(t),t=[r]):t.push(r),n},[]),this.sections=f.compact(this.sections.concat([t])),this.findSectionForStep=function(n){return f.find(this.sections,function(t){return f.contains(t,n)})},this.getSubSection=function(n,t){var i=f.indexOf(n,t);return n.slice(i+1)},this.isContinuation=function(n,t){return!!this.nextStep(n,t)},r=432e5,this.nextStep=function(n,t){for(var s,e,f=null,i=this,u=0;u<i.steps.length;u++)if(i.steps[u].id===n.guideStepId){if("dismissed"===n.state)break;if("active"===n.state){f=i.steps[u];break}if(u+1<i.steps.length){f=i.steps[u+1];break}}return f&&f.canShowOnPage(t)?(s=(new Date).getTime(),e=n.time,e&&s-e>r&&!gi(i)?(o("Multi-step continuation has expired","guides","info"),null):f):null},this.shouldAutoDisplay=function(n){var t=this,i=t.nextStep(nt,n)||f.first(t.steps);return t.canShow()&&t.hasLaunchMethod("auto")&&i&&i.shouldAutoDisplay(n)},this.autoDisplay=function(n){var t=this,i;t.shouldAutoDisplay(n)&&(i=t.nextStep(nt,n)||f.first(t.steps),i.autoDisplay(n))},this.launch=function(n){var t=f.first(this.steps);this.canShow()&&t&&t.show(n)},this.show=function(t){var i=this,u=n.getCurrentUrl(),r=i.nextStep(nt,u)||f.first(i.steps);i.canShow()&&r&&r.canShowOnPage(u)&&r.show(t)},this.isComplete=function(){var n=f.last(this.steps);return n?f.contains(["advanced","dismissed"],n.seenState):!1},this.activeStep=function(){var n=[].concat(this.steps).reverse();return f.findWhere(n,{seenState:"active"})}),this}function ep(){var t=this;return t.attributes&&"group"==t.attributes.type&&(t.watchForHiddenElements=function(){t.isShown()&&t.steps.length>1&&(t.timer=setTimeout(function(){var i=n.getCurrentUrl();t.autoDisplay(i)},uu))}),t}function se(){function t(t){var i=[];return function(r){var h,u,e,c,o;try{return r.apply(n,f.toArray(arguments).slice(1))}catch(s){h=5;u="ERROR in guide "+t+' (ID="'+n.id+'")';(i.push(f.now()),i.length>=h)&&(e=f.last(i)-f.first(i),c=e>0?(i.length-1)/(e/6e4):1/0,c>=se.MAX_ERRORS_PER_MINUTE&&(u="Exceeded error rate limit, dropping guide.\n"+u,o=f.indexOf(v,n),o>=0&&v.splice(o,1)),i.shift());throw vi(s,u),s;}}}var n=this;return f.each(["canShow","placeBadge","show"],function(i){n[i]=f.wrap(n[i],t(i))}),n}function rr(){var i,t;return(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type)?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(i=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[i]=!0):this.attributes.device=this.attributes.device||{},f.each(this.steps,function(n){"mobile-lightbox"===n.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0);pt.create(n,this)},this),this.isContinuation=function(){return!1},this.isOnboarding=function(){return gi(this)},this.nextStep=function(){return null},this.hasLaunchMethod=function(n){return this.launchMethod&&this.launchMethod.indexOf(n)>=0},this.shouldAutoDisplay=function(n){var t=this;return t.hasLaunchMethod("auto")&&t.canShow()&&f.any(t.steps,function(t){return t.shouldAutoDisplay(n)})},this.autoDisplay=function(n){var t=this;t.shouldAutoDisplay(n)&&(f.each(t.steps,function(t){t.autoDisplay(n)}),t.watchForHiddenElements())},this.isShown=function(){return f.any(this.steps,function(n){return n.isShown()})},this.canShowOnDevice=function(){var n=this;if(!iu()){var t=hi(),r=!t,i=n.attributes&&n.attributes.device||{};if(r&&i.desktop===!1||t&&i.mobile!==!0)return!1}return!0},this.canShow=function(){var n=this;return n.canShowOnDevice()&&f.any(n.steps,function(n){return n.canShow()})},this.launch=function(n){var t=this;t.show(n);t.isShown()&&f.each(t.steps,function(n){n.seenState="active"})},this.show=function(n){var t=this;t.canShow()&&(f.each(t.steps,function(t){t.show(n)}),t.watchForHiddenElements())},this.watchForHiddenElements=function(){},this.hide=function(n){var t=this;f.each(t.steps,function(t){t.hide(n)});t.timer&&(clearTimeout(t.timer),delete t.timer)},this.hasBeenSeen=function(){var n=this;return f.all(n.steps,function(n){return n.hasBeenSeen()})},this.canBadgeBeShown=function(){var n=this.attributes.badge;return n.isOnlyShowOnce&&this.hasBeenSeen()?!1:!0},this.placeBadge=function(){if(this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()){var n=f.first(this.steps);n&&f.isFunction(n.fetchContent)&&n.fetchContent();os(this)}else hn(this)},this.findStepById=function(n){return f.find(this.steps,function(t){return t.id===n})},this.isPoweredByEnabled=function(){return!!f.find(this.steps,function(n){return n.isPoweredByEnabled()})},this.searchFor=function(n){var o=this,t=null,i,r,u,e;return tr(this.name,n,!0)?t="name":(i=[],r=!1,(this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords&&(i=this.attributes.launcher.keywords),i.length>0&&(r=f.find(i,function(t){return tr(t.text,n,!0)})),r)?t="tag":(u=f.map(this.steps,function(t){return t.searchFor(n)}),e=f.compact(u).length>0,e&&(t="content"))),t?{guide:o,field:t}:!1},this.shouldBeAddedToLauncher=function(){var t=this,i=t.steps[0];return t.hasLaunchMethod("launcher")&&n.testUrlForStep(i.regexUrlRule,n.getCurrentUrl())&&t.canShowOnDevice()&&nu(i)?!0:!1},t="PENDO_HELPER_STEP",this.getPositionOfStep=function(n){var i=this,r=f.reject(i.steps,function(n){return tr(n.content,t)});return f.indexOf(r,n)+1},this.getTotalSteps=function(){var n=this,i=f.reject(n.steps,function(n){return tr(n.content,t)});return i.length},this.isComplete=function(){var n=["advanced","dismissed"];return f.all(this.steps,function(t){return f.contains(n,t.seenState)})},this.isInProgress=function(){var n=["active","advanced","dismissed"];return!this.isComplete()&&f.any(this.steps,function(t){return f.contains(n,t.seenState)})},this.isOnboarding=function(){return gi(this)},this.fetchContent=function(){return c.all(f.map(this.steps,function(n){if(f.isFunction(n.fetchContent))return n.fetchContent()}))},this}function ch(n){return rr.create(n)}function ur(n,t,i){this.element=n;this.method="element"==t?"click":"hover"==t?"mouseover":t;this.step=i;this.guide=i.getGuide()}function op(t){var i=c.defer();return n.loadResource(t,function(){i.resolve()}),i.promise}function sp(t,i){return f.size(n.events._handlers.validateGlobalScript)>0?n.ajax.get(i).then(function(t){return n.events.validateGlobalScript(t.data)}).then(function(){return t(i)}):t(i)}function hp(n,t){return t?n(t):c.resolve()}function lh(){var n=u("contentHost"),t=fk()+"//";return n?t+n:t+"cdn.pendo.io"}function ah(){var n=lh();return/local\.pendo\.io/.test(n)?n+"/dist/guide.css":n+"/agent/releases/2.3.1/guide.css"}function vh(n){return n&&n.attributes&&n.attributes.stayHidden}function yh(t,r){var u=i.getElementById(t),o,s;return u&&u.href&&u.href.indexOf(r)>=0?c.resolve():(o=c.defer(),e(u).remove(),s=n.loadResource(r+"?ct="+f.now(),function(){o.resolve()}),s.id=t,o.promise)}function ph(){var t=[];t.push(yh("_pendo-default-css_",ah()));var u=n.guideWidget||{},f=u.data||{},i=f.guideCssUrl,r="_pendo-css_";return i?t.push(yh(r,i)):e("#"+r).remove(),c.all(t)}function wt(n,t){var r;this.step=t;this.target=es(t);r=this.element=i.createElement("img");r.id="_pendo-badge_"+t.id;r.src=this.imageUrl;r.className="_pendo-badge "+lv;var u=this.width||13,f=this.height||13,e="width:"+u+"px;height:"+f+"px;";return lt(r,e),this.activate=function(){t.isShown()?t.advance():di(t,"badge")},this.show=function(){},this.hide=function(){var n=this.element;n&&n.parentNode&&n.parentNode.removeChild(n)},this}function cp(){return"inline"===this.position&&this.before("show",function(){var n=this.target,t=this.element,i;(this.css&&lt(t,this.css),n&&n.tagName)&&(i=n.tagName.toLowerCase(),/br|input|img|select|textarea/.test(i)?n.parentNode.insertBefore(t,n.nextSibling):n.appendChild(t))}),this}function lp(){return this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var i=this.element,n=ot(this.target),r=0,u=0,f=0,t;this.offsets&&(r=this.offsets.top||0,u=this.offsets.right||0,f=this.offsets.left||0);t="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+r)+"px;";switch(this.position){case"top-right":t+="left:"+(n.left+n.width-u)+"px";break;case"top-left":t+="left:"+(n.left+f)+"px"}lt(i,t);i.parentNode||e.getBody().appendChild(i)}),this}function ap(){var n=this,t=!1,i=function(t){n.activate();uo(t)};return n.after("show",function(){t||(l(n.element,"click",i),t=!0)}),n.after("hide",function(){g(n.element,"click",i);t=!1}),n}function vp(){var n=this,t=!1;if("yes"===n.useHover){var e=function(n){for(;n;){if(/_pendo-guide_|_pendo-backdrop_/.test(n.className))return!0;n=n.parentNode}return!1},r=f.throttle(function(t){ii(t)===n.element||e(ii(t))||o()},50,{trailing:!1}),u=function(t){n.step.isShown()||di(n.step,"badge");l(i,"mousemove",r);uo(t)},o=function(){g(i,"mousemove",r);n.step.hide()};n.after("show",function(){t||(l(n.element,"mouseover",u),t=!0)});n.after("hide",function(){g(n.element,"mouseover",u);g(i,"mousemove",r);t=!1})}return n}function yp(){var n=this,t=!1;if(/hover/.test(n.showOnEvent)&&!iu()){var o="inline"===n.position?"visibility:visible;":"display:inline;",s="inline"===n.position?"visibility:hidden;":"display:none;",h=function(t,i){var r=it(n.target),u=it(n.element),f={left:Math.min(r.left,u.left),top:Math.min(r.top,u.top),right:Math.max(r.right,u.right),bottom:Math.max(r.bottom,u.bottom)};return t>=f.left&&t<=f.right&&i>=f.top&&i<=f.bottom},u=f.throttle(function(t){ii(t)===n.target||ii(t)===n.element||or(n.element,"triggered")||h(t.clientX,t.clientY)||r()},50,{trailing:!1}),e=function(){lt(n.element,o);l(i,"mousemove",u)},r=function(){g(i,"mousemove",u);lt(n.element,s)};n.after("show",function(){t||(l(n.target,"mouseover",e),t=!0,r())});n.after("hide",function(){t&&(g(n.target,"mouseover",e),t=!1);r()})}return n}function he(n){var t=vt(n);return nu(n)||wh(t)}function pp(n,t,i){var r={},f=t.top-n.top,e=t.left-n.left,u;return r.top=f-i,r.left=e-i,r.height=t.height+2*i,r.width=t.width+2*i,u={left:0,top:0},ay()&&(u=te(),r.left+=ai(),r.top+=li()),r.bottom=r.top+r.height,r.right=r.left+r.width,{north:{height:Math.max(r.top,0),left:-u.left,top:-u.top,right:0},east:{top:r.top-u.top,bottom:0,right:0,left:r.right-u.left},south:{top:r.bottom-u.top,width:Math.max(r.right,0),bottom:0,left:-u.left},west:{top:r.top-u.top,height:Math.max(r.height,0),left:-u.left,width:Math.max(r.left,0)}}}function wp(n){var t=f.reduce(n,function(n,t){if(!yt(t))return n;var i=it(t);return n.fixed=n.fixed&&i.fixed,f.each([["top",cs],["right",yv],["bottom",yv],["left",cs]],function(t){var r=t[0],u=t[1];(!n[r]||u(i[r],n[r]))&&(n[r]=i[r])}),n},{fixed:!0}),i;return t.height=t.bottom-t.top,t.width=t.right-t.left,i=te(),t.fixed||(t.left+=i.left,t.right+=i.left,t.top+=i.top,t.bottom+=i.top),t.fixed=!!t.fixed,t}function wh(n){var i,e,o,r,f,s=/(auto|scroll|hidden)/,h=w(),t=it(n),u=at(n,s);if(!fh(n))return!1;for(;u&&u!==h;){if(i=it(u),f=rh(u,/(auto|scroll)/),f!==d.NONE&&(e=0,o=0,(f===d.Y||f===d.BOTH)&&(t.bottom>i.bottom&&(e+=t.bottom-i.bottom,t.top-=e,t.bottom-=e),t.top<i.top&&(r=i.top-t.top,e-=r,t.top+=r,t.bottom+=r)),(f===d.X||f===d.BOTH)&&(t.right>i.right&&(o+=t.right-i.right,t.left-=o,t.right-=o),t.left<i.left&&(r=i.left-t.left,o-=r,t.left+=r,t.right+=r))),!ue(t,u,s))return!1;u=at(u,s)}return!0}function fr(){var t;return this.update=function(n){var i=f.filter(n,hu),r,u;return i=tw(i),r=ti(f.map(i,function(n){return{id:n.id,seenState:f.pluck(n.steps,"seenState")}})),u=i.length>0,r!==t&&(t=r,ry(i)),ny(),u},this.guideStatus=function(n){return n.isComplete()?"complete":n.isInProgress()?"in-progress":"not-started"},this.render=function(){var u=this.data||{},s=u.position,a="bottom-right",v="bottom-left",b="top-left",o,h,r,c,t,w;f.indexOf([a,v,b,"top-right"],s)<0&&(s=a);y=i.createElement("img");e(y).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+s+"_");y.src=u.launcherBadgeUrl;l(y,"click",function(){ey()&&cr("launcher-closed","yes",864e6);cu()});ct()&&(l(y,"mouseover",function(){e(y).addClass("_pendo-launcher-badge-active_")}),l(y,"mouseout",function(){e(y).removeClass("_pendo-launcher-badge-active_")}),e(y).css({position:"absolute"}));e.getBody().appendChild(y);o=u.height||ctt;u.enableSearch&&(o+=ct()?50:39);this&&!this.hidePoweredBy&&(o+=40);u.addHeight&&(o+=u.addHeight);h=u.width||htt;u.addWidth&&(h+=u.addWidth);r=e("<div>").addClass("_pendo-launcher_ _pendo-launcher-"+s+"_");rt=r[0];c=ot(y);t=nr(c,o,h);r.css({width:t.width,height:t.height});var p=e("<div/>").addClass("_pendo-guide-container_ "+t.arrowPosition).css({top:t.content.top,left:t.content.left,width:t.content.width,height:t.content.height}).appendTo(r),k=iy(),d=bh(this.template(k)),g=e("<div/>").addClass("_pendo-guide-content_").html(d).appendTo(p);(t.arrow=t.arrow||{},t.arrowPosition=f.contains([a,v],s)?"bottom":"top",t.arrow.hbias=f.contains([v,b],s)?"left":"right",t.arrow.floating=!1,ys(t,c,{width:1/0,height:1/0}),ou(r[0],t),u.addUISection&&u.addUISection(r[0]),n._addCloseButton(r[0],function(){cu();cr("launcher-closed","yes",288e5)}),g.on("click",function(n){var t=e(ii(n)).closest("._pendo-launcher-item_");if(t&&t.length){var i=/^launcher-(.+)$/.exec(wi.call(t.attr("id"))),u=i&&i[1],r=et(u);r&&(di(r.steps[0],"launcher"),cu(),uo(n))}}),ct()&&(e("._pendo-launcher-header_",r).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),e("._pendo-launcher-footer_",r).css({"border-top":"1px solid #bbb"}),r.css({position:"absolute"})),r.find("[pendo-style]").each(function(){var n=this.getAttribute("pendo-style");e(this).css(n)}),r.appendTo(e.getBody()),f.isFunction(this.script)&&this.script(this),u.autoHeight)&&(r.css({display:"block",visibility:"hidden"}),w=n.TOOLTIP_ARROW_SIZE,p.css({width:h-2*w,height:""}),o=t.height=p.height()+2*w,r.css({height:o,display:"",visibility:""}),e("._pendo-guide-arrow_,._pendo-guide-arrow-border_",r).remove(),ys(t,c,{width:1/0,height:1/0}),ou(r[0],t))},this.toggle=function(){cu()},this}function bp(){var n=this,t;return n.data&&n.data.onboarding&&(t=n.onboarding=n.onboarding||{},n.before("update",function(i){var o=f.filter(i,gi),s=f.filter(o,function(t){return"complete"==n.guideStatus(t)}),r=t.total=o.length,u;t.percentComplete=r>0?Math.round(s.length/r*100):0;u=e("._pendo-launcher_,._pendo-launcher-badge_");r?u.addClass("onboarding"):u.removeClass("onboarding")}),n.getOnboardingState=hv),n}function bh(n){return f.isString(n)&&(n=n.replace(/\s+(style)=/gi," pendo-style=")),n}function kp(n,t){var r=n&&n.data,u=f.find(t,function(n){var t=f.first(n.steps);return t&&"launcher"===t.type}),i;return u&&r&&(i=f.first(u.steps),r.id=i.guideId+i.id,f.extend(r,f.pick(i,"contentUrl","contentUrlCss","contentUrlJs"),i.attributes)),n}function dp(n){var t=n&&n.data||{};return t.contentUrlJs||t.contentUrl?yo.load(t).then(function(i){return t.template=i.content,f.extend(n,i)}):c.resolve()}function vu(t,i){if(!gv){var r=fr.create(n.guideWidget);return f.isFunction(r.template)||(r.template=t.template?f.template(t.template):ws),r.render(),i&&r.toggle(),r}}function kh(){if(!n.guideWidget)return!1;var t=n.guideWidget.data;return!!t&&!!t.enableSearch}function gp(){return dh().length>0}function dh(){var t,n;return kh()?(t=e(stt)[0],!t)?[]:(n=t.value,n.length>0?(n=wi.call(n),[n].concat(f.compact(n.split(" ")))):[]):[]}function nw(n){kh()&&c.all(f.map(n,function(n){return n.fetchContent()}))}function tw(n){var t,i;return(nw(n),t=dh(),0===t.length)?n:(i=f.map(t,f.partial(iw,n)),f.union.apply(f,i))}function iw(n,t){function i(n){return n.searchFor(t)}function r(n){return f.indexOf(["tag","name","content"],n.field)}return o("doing search on "+t,"launcher","search","guides"),n=n||v,t&&0!==t.length?f.chain(n).filter(hu).map(i).compact().sortBy(r).pluck("guide").value():n}function rw(){return eo()?void n.log("already running"):(t.pendo_options&&hl(t.pendo_options),db(),void io(pc))}var ce,le,ae,er,cl,al,ia,ra,ua,fa,ao,lv,es,ti,tr,h,sy,a,cy;if(!t.pendo||!t.pendo.VERSION){ce={},function(){var c=ce,tt=c._,r=Array.prototype,p=Object.prototype,it=Function.prototype,w=r.push,t=r.slice,l=r.concat,u=p.toString,b=p.hasOwnProperty,rt=Array.isArray,k=Object.keys,a=it.bind,n=function(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)},i,v,e,f,o,s,nt,h;c._=n;n.VERSION="1.7.0-pendo";i=function(n,t,i){if(void 0===t)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};n.iteratee=function(t,r,u){return null==t?n.identity:n.isFunction(t)?i(t,r,u):n.isObject(t)?n.matches(t):n.property(t)};n.each=n.forEach=function(t,r,u){var f,e,o;if(null==t)return t;if(r=i(r,u),e=t.length,e===+e)for(f=0;e>f;f++)r(t[f],f,t);else for(o=n.keys(t),f=0,e=o.length;e>f;f++)r(t[o[f]],o[f],t);return t};n.map=n.collect=function(t,i,r){if(null==t)return[];i=n.iteratee(i,r);for(var f,e=t.length!==+t.length&&n.keys(t),o=(e||t).length,s=Array(o),u=0;o>u;u++)f=e?e[u]:u,s[u]=i(t[f],f,t);return s};v="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(t,r,u,f){null==t&&(t=[]);r=i(r,f,4);var s,o=t.length!==+t.length&&n.keys(t),h=(o||t).length,e=0;if(arguments.length<3){if(!h)throw new TypeError(v);u=t[o?o[e++]:e++]}for(;h>e;e++)s=o?o[e]:e,u=r(u,t[s],s,t);return u};n.reduceRight=n.foldr=function(t,r,u,f){null==t&&(t=[]);r=i(r,f,4);var s,o=t.length!==+t.length&&n.keys(t),e=(o||t).length;if(arguments.length<3){if(!e)throw new TypeError(v);u=t[o?o[--e]:--e]}for(;e--;)s=o?o[e]:e,u=r(u,t[s],s,t);return u};n.find=n.detect=function(t,i,r){var u;return i=n.iteratee(i,r),n.some(t,function(n,t,r){if(i(n,t,r))return(u=n,!0)}),u};n.filter=n.select=function(t,i,r){var u=[];return null==t?u:(i=n.iteratee(i,r),n.each(t,function(n,t,r){i(n,t,r)&&u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,n.negate(n.iteratee(i)),r)};n.every=n.all=function(t,i,r){if(null==t)return!0;i=n.iteratee(i,r);for(var f,e=t.length!==+t.length&&n.keys(t),o=(e||t).length,u=0;o>u;u++)if(f=e?e[u]:u,!i(t[f],f,t))return!1;return!0};n.some=n.any=function(t,i,r){if(null==t)return!1;i=n.iteratee(i,r);for(var f,e=t.length!==+t.length&&n.keys(t),o=(e||t).length,u=0;o>u;u++)if(f=e?e[u]:u,i(t[f],f,t))return!0;return!1};n.contains=n.include=function(t,i){return null==t?!1:(t.length!==+t.length&&(t=n.values(t)),n.indexOf(t,i)>=0)};n.invoke=function(i,r){var u=t.call(arguments,2),f=n.isFunction(r);return n.map(i,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(t,i,r){var o,f,u=-(1/0),s=-(1/0),e,h;if(null==i&&null!=t)for(t=t.length===+t.length?t:n.values(t),e=0,h=t.length;h>e;e++)o=t[e],o>u&&(u=o);else i=n.iteratee(i,r),n.each(t,function(n,t,r){f=i(n,t,r);(f>s||f===-(1/0)&&u===-(1/0))&&(u=n,s=f)});return u};n.min=function(t,i,r){var o,f,u=1/0,s=1/0,e,h;if(null==i&&null!=t)for(t=t.length===+t.length?t:n.values(t),e=0,h=t.length;h>e;e++)o=t[e],u>o&&(u=o);else i=n.iteratee(i,r),n.each(t,function(n,t,r){f=i(n,t,r);(s>f||f===1/0&&u===1/0)&&(u=n,s=f)});return u};n.shuffle=function(t){for(var r,f=t&&t.length===+t.length?t:n.values(t),e=f.length,u=Array(e),i=0;e>i;i++)r=n.random(0,i),r!==i&&(u[i]=u[r]),u[r]=f[i];return u};n.sample=function(t,i,r){return null==i||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};n.sortBy=function(t,i,r){return i=n.iteratee(i,r),n.pluck(n.map(t,function(n,t,r){return{value:n,index:t,criteria:i(n,t,r)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||void 0===i)return 1;if(r>i||void 0===r)return-1}return n.index-t.index}),"value")};e=function(t){return function(i,r,u){var f={};return r=n.iteratee(r,u),n.each(i,function(n,u){var e=r(n,u,i);t(f,n,e)}),f}};n.groupBy=e(function(t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]});n.indexBy=e(function(n,t,i){n[i]=t});n.countBy=e(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1});n.sortedIndex=function(t,i,r,u){var e;r=n.iteratee(r,u,1);for(var s=r(i),f=0,o=t.length;o>f;)e=f+o>>>1,r(t[e])<s?f=e+1:o=e;return f};n.toArray=function(i){return i?n.isArray(i)?t.call(i):i.length===+i.length?n.map(i,n.identity):n.values(i):[]};n.size=function(t){return null==t?0:t.length===+t.length?t.length:n.keys(t).length};n.partition=function(t,i,r){i=n.iteratee(i,r);var u=[],f=[];return n.each(t,function(n,t,r){(i(n,t,r)?u:f).push(n)}),[u,f]};n.first=n.head=n.take=function(n,i,r){if(null!=n)return null==i||r?n[0]:0>i?[]:t.call(n,0,i)};n.initial=function(n,i,r){return t.call(n,0,Math.max(0,n.length-(null==i||r?1:i)))};n.last=function(n,i,r){if(null!=n)return null==i||r?n[n.length-1]:t.call(n,Math.max(n.length-i,0))};n.rest=n.tail=n.drop=function(n,i,r){return t.call(n,null==i||r?1:i)};n.compact=function(t){return n.filter(t,n.identity)};f=function(t,i,r,u){var o,s,e;if(i&&n.every(t,n.isArray))return l.apply(u,t);for(o=0,s=t.length;s>o;o++)e=t[o],n.isArray(e)||n.isArguments(e)?i?w.apply(u,e):f(e,i,r,u):r||u.push(e);return u};n.flatten=function(n,t){return f(n,t,!1,[])};n.without=function(i){return n.difference(i,t.call(arguments,1))};n.uniq=n.unique=function(t,i,r,u){var f,h;if(null==t)return[];n.isBoolean(i)||(u=r,r=i,i=!1);null!=r&&(r=n.iteratee(r,u));for(var e=[],s=[],o=0,c=t.length;c>o;o++)f=t[o],i?(o&&s===f||e.push(f),s=f):r?(h=r(f,o,t),n.indexOf(s,h)<0&&(s.push(h),e.push(f))):n.indexOf(e,f)<0&&e.push(f);return e};n.union=function(){return n.uniq(f(arguments,!0,!0,[]))};n.intersection=function(t){var r,i;if(null==t)return[];for(var u=[],e=arguments.length,f=0,o=t.length;o>f;f++)if(r=t[f],!n.contains(u,r)){for(i=1;e>i&&n.contains(arguments[i],r);i++);i===e&&u.push(r)}return u};n.difference=function(i){var r=f(t.call(arguments,1),!0,!0,[]);return n.filter(i,function(t){return!n.contains(r,t)})};n.zip=function(t){if(null==t)return[];for(var r=n.max(arguments,"length").length,u=Array(r),i=0;r>i;i++)u[i]=n.pluck(arguments,i);return u};n.object=function(n,t){if(null==n)return{};for(var r={},i=0,u=n.length;u>i;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(null==t)return-1;var u=0,f=t.length;if(r){if("number"!=typeof r)return u=n.sortedIndex(t,i),t[u]===i?u:-1;u=0>r?Math.max(0,f+r):r}for(;f>u;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){if(null==n)return-1;var r=n.length;for("number"==typeof i&&(r=0>i?r+i+1:Math.min(r,i+1));--r>=0;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=i||1;for(var u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;u>r;r++,n+=i)f[r]=n;return f};o=function(){};n.bind=function(i,r){var u,f;if(a&&i.bind===a)return a.apply(i,t.call(arguments,1));if(!n.isFunction(i))throw new TypeError("Bind must be called on a function");return u=t.call(arguments,2),f=function(){var e,s;return(this instanceof f)?(o.prototype=i.prototype,e=new o,o.prototype=null,s=i.apply(e,u.concat(t.call(arguments))),n.isObject(s)?s:e):i.apply(r,u.concat(t.call(arguments)))}};n.partial=function(i){var r=t.call(arguments,1);return function(){for(var f=0,t=r.slice(),u=0,e=t.length;e>u;u++)t[u]===n&&(t[u]=arguments[f++]);for(;f<arguments.length;)t.push(arguments[f++]);return i.apply(this,t)}};n.bindAll=function(t){var i,r,u=arguments.length;if(1>=u)throw new Error("bindAll must be passed function names");for(i=1;u>i;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t};n.memoize=function(t,i){var r=function(u){var f=r.cache,e=i?i.apply(this,arguments):u;return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r};n.delay=function(n,i){var r=t.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},i)};n.defer=function(i){return n.delay.apply(n,[i,1].concat(t.call(arguments,1)))};n.throttle=function(t,i,r){var f,e,s,u=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();u=null;s=t.apply(f,e);u||(f=e=null)},function(){var l=n.now(),c;return o||r.leading!==!1||(o=l),c=i-(l-o),f=this,e=arguments,0>=c||c>i?(clearTimeout(u),u=null,o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,c)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;i>c&&c>0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(e=f=null)))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.before=function(n,t){var i;return function(){return--n>0?i=t.apply(this,arguments):t=null,i}};n.once=n.partial(n.before,2);n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(k)return k(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;f>i;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(t){if(!n.isObject(t))return t;for(var i,r,u=1,f=arguments.length;f>u;u++){i=arguments[u];for(r in i)b.call(i,r)&&(t[r]=i[r])}return t};n.pick=function(r,u,f){var e,o={},h,c,s,a;if(null==r)return o;if(n.isFunction(u)){u=i(u,f);for(e in r)h=r[e],u(h,e,r)&&(o[e]=h)}else for(c=l.apply([],t.call(arguments,1)),r=new Object(r),s=0,a=c.length;a>s;s++)e=c[s],e in r&&(o[e]=r[e]);return o};n.omit=function(i,r,u){if(n.isFunction(r))r=n.negate(r);else{var f=n.map(l.apply([],t.call(arguments,1)),String);r=function(t,i){return!n.contains(f,i)}}return n.pick(i,r,u)};n.defaults=function(t){var i,f,u,r;if(!n.isObject(t))return t;for(i=1,f=arguments.length;f>i;i++){u=arguments[i];for(r in u)void 0===t[r]&&(t[r]=u[r])}return t};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};s=function(t,i,r,f){var l,a,o,h,e,c,v,y;if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=u.call(t),l!==u.call(i))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}if("object"!=typeof t||"object"!=typeof i)return!1;for(a=r.length;a--;)if(r[a]===t)return f[a]===i;if(o=t.constructor,h=i.constructor,o!==h&&"constructor"in t&&"constructor"in i&&!(n.isFunction(o)&&o instanceof o&&n.isFunction(h)&&h instanceof h))return!1;if(r.push(t),f.push(i),"[object Array]"===l){if(e=t.length,c=e===i.length)for(;e--&&(c=s(t[e],i[e],r,f)););}else if(y=n.keys(t),e=y.length,c=n.keys(i).length===e)for(;e--&&(v=y[e],c=n.has(i,v)&&s(t[v],i[v],r,f)););return r.pop(),f.pop(),c};n.isEqual=function(n,t){return s(n,t,[],[])};n.isEmpty=function(t){if(null==t)return!0;if(n.isArray(t)||n.isString(t)||n.isArguments(t))return 0===t.length;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!(!n||1!==n.nodeType)};n.isArray=rt||function(n){return"[object Array]"===u.call(n)};n.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n};n.each(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return u.call(n)==="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return n.has(t,"callee")});"function"!=typeof/./&&(n.isFunction=function(n){return"function"==typeof n||!1});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!==+t};n.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===u.call(n)};n.isNull=function(n){return null===n};n.isUndefined=function(n){return void 0===n};n.has=function(n,t){return null!=n&&b.call(n,t)};n.noConflict=function(){return c._=tt,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.noop=function(){};n.property=function(n){return function(t){return t[n]}};n.matches=function(t){var i=n.pairs(t),r=i.length;return function(n){var t,u,f;if(null==n)return!r;for(n=new Object(n),t=0;r>t;t++)if(u=i[t],f=u[0],u[1]!==n[f]||!(f in n))return!1;return!0}};n.times=function(n,t,r){var f=Array(Math.max(0,n)),u;for(t=i(t,r,1),u=0;n>u;u++)f[u]=t(u);return f};n.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ut=n.invert(d),g=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=null==n?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=g(d);n.unescape=g(ut);n.result=function(t,i){if(null==t)return void 0;var r=t[i];return n.isFunction(r)?t[i]():r};nt=0;n.uniqueId=function(n){var t=++nt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var y=/(.)^/,ft={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},et=/\\|'|\r|\n|\u2028|\u2029/g,ot=function(n){return"\\"+ft[n]};n.template=function(t,i,r){var o,f,h;!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var c=RegExp([(i.escape||y).source,(i.interpolate||y).source,(i.evaluate||y).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(c,function(n,i,r,f,o){return u+=t.slice(e,o).replace(et,ot),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(s){throw s.source=u,s;}return f=function(t){return o.call(this,t,n)},h=i.variable||"obj",f.source="function("+h+"){\n"+u+"}",f};n.chain=function(t){var i=n(t);return i._chain=!0,i};h=function(t){return this._chain?n(t).chain():t};n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return w.apply(t,arguments),h.call(this,r.apply(n,t))}})};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],h.call(this,n)}});n.each(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return h.call(this,i.apply(this._wrapped,arguments))}});n.prototype.value=function(){return this._wrapped}}.call({});le={};!function(){function u(n,t,i,r){var p,u,h,a,b,y,d,c,nt,g;if((t?t.ownerDocument||t:l)!==o&&w(t),t=t||o,i=i||[],!n||"string"!=typeof n)return i;if(1!==(a=t.nodeType)&&9!==a)return[];if(v&&!r){if(p=vr.exec(n))if(h=p[1]){if(9===a){if(u=t.getElementById(h),!u||!u.parentNode)return i;if(u.id===h)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(h))&&st(t,u)&&u.id===h)return i.push(u),i}else{if(p[2])return k.apply(i,t.getElementsByTagName(n)),i;if((h=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(i,t.getElementsByClassName(h)),i}if(f.qsa&&(!s||!s.test(n))){if(c=d=e,nt=t,g=9===a&&n,1===a&&"object"!==t.nodeName.toLowerCase()){for(y=ot(n),(d=t.getAttribute("id"))?c=d.replace(yr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",b=y.length;b--;)y[b]=c+ct(y[b]);nt=oi.test(n)&&dt(t.parentNode)||t;g=y.join(",")}if(g)try{return k.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return li(n.replace(pt,"$1"),t,i,r)}function bt(){function t(r,u){return i.push(r+" ")>n.cacheLength&&delete t[i.shift()],t[r+" "]=u}var i=[];return t}function h(n){return n[e]=!0,n}function c(n){var t=o.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function kt(t,i){for(var u=t.split("|"),r=t.length;r--;)n.attrHandle[u[r]]=i}function si(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||pi)-(~n.sourceIndex||pi);if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function di(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function gi(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function nt(n){return h(function(t){return t=+t,h(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 dt(n){return n&&typeof n.getElementsByTagName!==ft&&n}function hi(){}function ct(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function gt(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=ir++;return t.first?function(t,i,f){for(;t=t[r];)if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[y,f];if(o){for(;t=t[r];)if((1===t.nodeType||u)&&n(t,i,o))return!0}else for(;t=t[r];)if(1===t.nodeType||u){if(h=t[e]||(t[e]={}),(s=h[r])&&s[0]===y&&s[1]===f)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ni(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 nr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function lt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function ti(n,t,i,r,u,f){return r&&!r[e]&&(r=ti(r)),u&&!u[e]&&(u=ti(u,f)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||nr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:lt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=lt(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?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=lt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ii(t){for(var s,u,r,o=t.length,h=n.relative[t[0].type],c=h||n.relative[" "],i=h?1:0,l=gt(function(n){return n===s},c,!0),a=gt(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==vt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=n.relative[t[i].type])f=[gt(ni(f),u)];else{if(u=n.filter[t[i].type].apply(null,t[i].matches),u[e]){for(r=++i;o>r&&!n.relative[t[r].type];r++);return ti(i>1&&ni(f),i>1&&ct(t.slice(0,i-1).concat({value:" "===t[i-2].type?"*":""})).replace(pt,"$1"),u,r>i&&ii(t.slice(i,r)),o>r&&ii(t=t.slice(r)),o>r&&ct(t))}f.push(u)}return ni(f)}function tr(t,i){var r=i.length>0,f=t.length>0,e=function(e,s,h,c,l){var v,d,w,b=0,a="0",g=e&&[],p=[],nt=vt,tt=e||f&&n.find.TAG("*",l),it=y+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(vt=s!==o&&s);a!==rt&&null!=(v=tt[a]);a++){if(f&&v){for(d=0;w=t[d++];)if(w(v,s,h)){c.push(v);break}l&&(y=it)}r&&((v=!w&&v)&&b--,e&&g.push(v))}if(b+=a,r&&a!==b){for(d=0;w=i[d++];)w(g,p,s,h);if(e){if(b>0)for(;a--;)g[a]||p[a]||(p[a]=ur.call(c));p=lt(p)}k.apply(c,p);l&&!e&&p.length>0&&b+i.length>1&&u.uniqueSort(c)}return l&&(y=it,vt=nt),g};return r?h(e):e}var rt,f,n,at,ci,ot,ri,li,vt,p,ut,w,o,a,v,s,tt,yt,st,e="sizzle"+-new Date,l=t.document,y=0,ir=0,ai=bt(),vi=bt(),yi=bt(),ui=function(n,t){return n===t&&(ut=!0),0},ft=typeof r,pi=-2147483648,rr={}.hasOwnProperty,b=[],ur=b.pop,fr=b.push,k=b.push,wi=b.slice,it=b.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},fi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",bi=et.replace("w","w#"),ki="\\["+i+"*("+et+")"+i+"*(?:([*^$|!~]?=)"+i+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bi+")|)|)"+i+"*\\]",ei=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ki.replace(3,8)+")*)|.*)\\)|)",pt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),er=new RegExp("^"+i+"*,"+i+"*"),or=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),sr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),hr=new RegExp(ei),cr=new RegExp("^"+bi+"$"),wt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et.replace("w","w*")+")"),ATTR:new RegExp("^"+ki),PSEUDO:new RegExp("^"+ei),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+fi+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},lr=/^(?:input|select|textarea|button)$/i,ar=/^h\d$/i,ht=/^[^{]+\{\s*\[native \w/,vr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,oi=/[+~]/,yr=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),g=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{k.apply(b=wi.call(l.childNodes),l.childNodes);b[l.childNodes.length].nodeType}catch(pr){k={apply:b.length?function(n,t){fr.apply(n,wi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};ci=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};w=u.setDocument=function(t){var h,r=t?t.ownerDocument||t:l,u=r.defaultView;return r!==o&&9===r.nodeType&&r.documentElement?(o=r,a=r.documentElement,v=!ci(r),u&&u!==u.top&&(u.addEventListener?u.addEventListener("unload",function(){w()},!1):u.browser.attachEvent&&u.attachEvent("onunload",function(){w()})),f.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ht.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),f.getById=c(function(n){return a.appendChild(n).id=e,!r.getElementsByName||!r.getElementsByName(e).length}),f.getById?(n.find.ID=function(n,t){if(typeof t.getElementById!==ft&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(n){var t=n.replace(d,g);return function(n){return n.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(n){var t=n.replace(d,g);return function(n){var i=typeof n.getAttributeNode!==ft&&n.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=f.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ft)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},n.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ft&&v)return t.getElementsByClassName(n)},tt=[],s=[],(f.qsa=ht.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select t=''><option selected=''><\/option><\/select>";n.querySelectorAll("[t^='']").length&&s.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||s.push("\\["+i+"*(?:value|"+fi+")");n.querySelectorAll(":checked").length||s.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&s.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||s.push(":enabled",":disabled");n.querySelectorAll("*,:x");s.push(",.*:")})),(f.matchesSelector=ht.test(yt=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&c(function(n){f.disconnectedMatch=yt.call(n,"div");yt.call(n,"[s!='']:x");tt.push("!=",ei)}),s=s.length&&new RegExp(s.join("|")),tt=tt.length&&new RegExp(tt.join("|")),h=ht.test(a.compareDocumentPosition),st=h||ht.test(a.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},ui=h?function(n,t){if(n===t)return ut=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!f.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===l&&st(l,n)?-1:t===r||t.ownerDocument===l&&st(l,t)?1:p?it.call(p,n)-it.call(p,t):0:4&i?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var i,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===r?-1:t===r?1:o?-1:s?1:p?it.call(p,n)-it.call(p,t):0;if(o===s)return si(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);for(;f[u]===e[u];)u++;return u?si(f[u],e[u]):f[u]===l?-1:e[u]===l?1:0},r):o};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==o&&w(n),t=t.replace(sr,"='$1']"),f.matchesSelector&&v&&(!tt||!tt.test(t))&&(!s||!s.test(t)))try{var i=yt.call(n,t);if(i||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,o,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==o&&w(n),st(n,t)};u.attr=function(t,i){(t.ownerDocument||t)!==o&&w(t);var e=n.attrHandle[i.toLowerCase()],u=e&&rr.call(n.attrHandle,i.toLowerCase())?e(t,i,!v):r;return u!==r?u:f.attributes||!v?t.getAttribute(i):(u=t.getAttributeNode(i))&&u.specified?u.value:null};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=!f.detectDuplicates,p=!f.sortStable&&n.slice(0),n.sort(ui),ut){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;t--;)n.splice(u[t],1)}return p=null,n};at=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=at(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=at(r);return i};n=u.selectors={cacheLength:50,createPseudo:h,match:wt,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(d,g),n[3]=(n[4]||n[5]||"").replace(d,g),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return wt.CHILD.test(n[0])?null:(n[3]&&n[4]!==r?n[2]=n[4]:t&&hr.test(t)&&(i=ot(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(d,g).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ai[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&ai(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ft&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(p){if(s){for(;b;){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[e]||(p[e]={}),a=k[n]||[],v=a[0]===y&&a[1],l=a[0]===y&&a[2],c=v&&p.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[y,v,l];break}}else if(d&&(a=(t[e]||(t[e]={}))[n])&&a[0]===y)l=a[1];else for(;(c=++v&&c&&c[b]||(l=v=0)||w.pop())&&((f?c.nodeName.toLowerCase()!==g:1!==c.nodeType)||!++l||(d&&((c[e]||(c[e]={}))[n]=[y,l]),c!==t)););return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(t,i){var f,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||u.error("unsupported pseudo: "+t);return r[e]?r(i):r.length>1?(f=[t,t,"",i],n.setFilters.hasOwnProperty(t.toLowerCase())?h(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:h(function(n){var i=[],r=[],t=ri(n.replace(pt,"$1"));return t[e]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return u(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||at(t)).indexOf(n)>-1}}),lang:h(function(n){return cr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(d,g).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(n){var i=t.location&&t.location.hash;return i&&i.slice(1)===n.id},root:function(n){return n===a},focus:function(n){return n===o.activeElement&&(!o.hasFocus||o.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!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(t){return!n.pseudos.empty(t)},header:function(n){return ar.test(n.nodeName)},input:function(n){return lr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:nt(function(){return[0]}),last:nt(function(n,t){return[t-1]}),eq:nt(function(n,t,i){return[0>i?i+t:i]}),even:nt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:nt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:nt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:nt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};n.pseudos.nth=n.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[rt]=di(rt);for(rt in{submit:!0,reset:!0})n.pseudos[rt]=gi(rt);hi.prototype=n.filters=n.pseudos;n.setFilters=new hi;ot=u.tokenize=function(t,i){var e,f,s,o,r,h,c,l=vi[t+" "];if(l)return i?0:l.slice(0);for(r=t,h=[],c=n.preFilter;r;){(!e||(f=er.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=or.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(pt," ")}),r=r.slice(e.length));for(o in n.filter)(f=wt[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 i?r.length:r?u.error(t):vi(t,h).slice(0)};ri=u.compile=function(n,t){var r,u=[],f=[],i=yi[n+" "];if(!i){for(t||(t=ot(n)),r=t.length;r--;)i=ii(t[r]),i[e]?u.push(i):f.push(i);i=yi(n,tr(f,u));i.selector=n}return i};li=u.select=function(t,i,r,u){var s,e,o,l,a,c="function"==typeof t&&t,h=!u&&ot(t=c.selector||t);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&v&&n.relative[e[1].type]){if(i=(n.find.ID(o.matches[0].replace(d,g),i)||[])[0],!i)return r;c&&(i=i.parentNode);t=t.slice(e.shift().value.length)}for(s=wt.needsContext.test(t)?0:e.length;s--&&(o=e[s],!n.relative[l=o.type]);)if((a=n.find[l])&&(u=a(o.matches[0].replace(d,g),oi.test(e[0].type)&&dt(i.parentNode)||i))){if(e.splice(s,1),t=u.length&&ct(e),!t)return k.apply(r,u),r;break}}return(c||ri(t,h))(u,i,!v,r,oi.test(t)&&dt(i.parentNode)||i),r};f.sortStable=e.split("").sort(ui).join("")===e;f.detectDuplicates=!!ut;w();f.sortDetached=c(function(n){return 1&n.compareDocumentPosition(o.createElement("div"))});c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||kt("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)});f.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||kt("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue});c(function(n){return null==n.getAttribute("disabled")})||kt(fi,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null});le.Sizzle=u}();ae=Array.prototype.slice;try{ae.call(i.documentElement)}catch(nit){Array.prototype.slice=function(n,t){var o;if(t="undefined"!=typeof t?t:this.length,"[object Array]"===Object.prototype.toString.call(this))return ae.call(this,n,t);var i,u,f=[],e=this.length,r=n||0;if(r=r>=0?r:e+r,o=t?t:e,0>t&&(o=e+t),u=o-r,u>0)if(f=new Array(u),this.charAt)for(i=0;u>i;i++)f[i]=this.charAt(r+i);else for(i=0;u>i;i++)f[i]=this[r+i];return f}}String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});var n=t.pendo=t.pendo||{},f=n._=ce._,s=n.Sizzle=le.Sizzle,gh=n.Zlib={},nc="prod",st=n.VERSION="2.3.1_prod",tc=function(){return navigator.userAgent},uw=function(){return ct()?st+"+quirksmode":st},c=function(){var n={},t=function(){var n=!1;return function(t){return function(){n||(n=!0,t.apply(null,arguments))}}},u=function(n){var t=n&&n.then;if("object"==typeof n&&"function"==typeof t)return function(){return t.apply(n,arguments)}},e=function(t,i){var u=n.defer(),f=function(n,t){setTimeout(function(){var i;try{i=n(t)}catch(r){return void u.reject(r)}i===u.promise?u.reject(new TypeError("Cannot resolve promise with itself")):u.resolve(i)},1)},e=function(n){t&&t.call?f(t,n):u.resolve(n)},o=function(n){i&&i.call?f(i,n):u.reject(n)};return{promise:u.promise,handle:function(n,t){n===r?e(t):o(t)}}},i=0,r=1,o=2;return n.defer=function(){var h,n=i,c=[],l=function(t,i){n=t;h=i;f.each(c,function(t){t.handle(n,h)});c=null},p=function(n){l(r,n)},s=function(n){l(o,n)},a=function(t,r){var u=e(t,r);return n===i?c.push(u):u.handle(n,h),u.promise},w=function(n){var i=t();try{n(i(v),i(s))}catch(r){i(s)(r)}},v=function(n){var t;try{t=u(n)}catch(i){return void s(i)}t?w(t):p(n)},y=t();return{resolve:y(v),reject:y(s),promise:{then:a,fail:function(n){return a(null,n)}}}},n}();c.all=function(n){var t=c.defer(),r=f.isArray(n)?[]:{},u=f.size(n),i=!1;return f.each(n,function(n,f){c.resolve(n).then(function(n){r[f]=n;0!=--u||i||t.resolve(r)},function(n){i||(i=!0,t.reject(n))})}),t.promise};c.reject=function(n){var t=c.defer();return t.reject(n),t.promise};c.resolve=function(n){var t=c.defer();return t.resolve(n),t.promise};er=function(n){return function(){try{n.apply(this,arguments)}catch(t){vi(t)}}};n.events=function(){var n=ly.call({});return f.each(["ready","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){n[t]=function(i){return f.isFunction(i)?n.on(t,i):n.trigger.apply(n,[t].concat(f.toArray(arguments)))}}),n}();var or=function(n,t){try{var i=new RegExp("(\\s|^)"+t+"(\\s|$)");return i.test(yu(n))}catch(r){return!1}},ve=function(n,t){try{if(!or(n,t)){var i=yu(n).trim()+" "+t;ic(n,i)}}catch(r){}},ye=function(n,t){try{if(or(n,t)){var i=new RegExp("(\\s|^)"+t+"(\\s|$)"),r=yu(n).replace(i," ");ic(n,r)}}catch(u){}},ic=function(n,t){f.isString(n.className)?n.className=t:n.setAttribute("class",t)},yu=function(t){try{var i=t.className;return i=f.isString(i)||!n.doesExist(i)?i:t.getAttribute("class"),i||""}catch(r){return""}},rc=function(n){function i(n){return n.replace(/\-([a-z])/gi,function(n,t){return t.toUpperCase()})}var t=i(n),r=t.substr(0,1);return r.toLowerCase()+t.substr(1)},fw={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},lt=function(n,t){if(f.isString(t)){var i,e,r,u,o=t.split(";");for(t={},r=0;r<o.length;r++)i=o[r],u=i.indexOf(":"),e=i.substring(0,u),t[e]=i.substring(u+1)}f.each(t,function(t,i){i=rc(wi.call(i));""!==i&&(!f.isNumber(t)||isNaN(t)||fw[i]||(t=""+t+"px"),n.style[i]=wi.call(t))})},sr=function(){if(ct())return{width:i.documentElement.offsetWidth||0,height:i.documentElement.offsetHeight||0};var n=t.innerWidth||i.documentElement.clientWidth,r=t.innerHeight||i.documentElement.clientHeight;return{width:n,height:r}},uc=function(n){var t=sr(),i=li(),r=ai();return n.top>=i&&n.left>=r&&n.top+n.height<=i+t.height&&n.left+n.width<=r+t.width},ew=function(n,t){if("string"==typeof n){var i=s(n);f.map(i,function(n){ye(n,t)})}else ye(n,t)},ow=function(n,t){if("string"==typeof n){var i=s(n);f.map(i,function(n){ve(n,t)})}else ve(n,t)},sw=function(n){n&&n.parentNode&&n.parentNode.removeChild(n)},hw=f.compose(function(n){return Array.prototype.slice.call(n)},function(n){try{return s(n)}catch(t){return b("error using sizzle: "+t),i.getElementsByTagName(n)}}),cw=function(n,t){try{var r=t.children.length+t.offsetHeight+t.offsetWidth,u=n.children.length+n.offsetHeight+n.offsetWidth;return r-u}catch(i){return o("error interrogating body elements: "+i),b("error picking best body:"+i),0}},w=function(){try{var n=hw("body");return n&&n.length>1?(n.sort(cw),n[0]||i.body):i.body}catch(t){return b("Error getting body element: "+t),i.body}},bt=function(n){try{if(t.getComputedStyle)return getComputedStyle(n);if(n.currentStyle)return n.currentStyle}catch(i){}},it=function(n){var f=w(),r,u;if(null!==n)return n===f||n===i||n===t?(r={left:t.pageXOffset||f.scrollLeft,top:t.pageYOffset||f.scrollTop,width:t.innerWidth,height:t.innerHeight},r.right=r.left+r.width,r.bottom=r.top+r.height,r):(u=ot(n),u.right=u.left+u.width,u.bottom=u.top+u.height,u)},fc=function(n,t){return n.top>=t.bottom?!1:n.bottom<=t.top?!1:n.left>=t.right?!1:n.right<=t.left?!1:!0},at=function(n,t){t=t||/(auto|scroll|hidden)/;var r,i,u,f=w();if(n===f||!re(n))return null;for(i=n;i&&i!=f;){if(r=bt(i),!r)return null;if(u=r.position,i!==n&&t.test(r.overflow+r.overflowY+r.overflowX))return i;if("absolute"===u||"fixed"===u&&ih(i))i=i.offsetParent;else{if("fixed"===u)return null;i=i.parentNode}}return f},d={X:"x",Y:"y",BOTH:"both",NONE:"none"};f.extend(e.prototype,{findOrCreate:function(n){return this.length>0?this:e(n)},find:function(n){var t=e();return t.context=this.context,this.each(function(){e(n,this).each(function(){t[t.length++]=this})}),t},each:function(n){for(var i=this,t=0,r=i.length;r>t;++t)n.call(i[t],i[t],t);return i},html:function(n){return n===r?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=n})},addClass:function(n){return n=n.split(/\s+/),this.each(function(t){f.each(n,function(n){ve(t,n)})})},removeClass:function(n){return n=n.split(/\s+/),this.each(function(t){f.each(n,function(n){ye(t,n)})})},hasClass:function(n){n=n.split(/\s+/);var t=!0;return this.each(function(i){f.each(n,function(n){t=t&&or(i,n)})}),t},css:function(n){return this.each(function(){lt(this,n)}),this},appendTo:function(n){return e(n).append(this),this},append:function(n){var t=this;return e(n).each(function(){t[0].appendChild(this);re(this)&&f.each(s("script",this),eh)}),t},prependTo:function(n){return e(n).prepend(this),this},prepend:function(n){var t=this,i,r;return t.length&&(i=t[0],r=i.childNodes[0],e(n).each(function(){r?e(this).insertBefore(r):e(this).appendTo(i)})),t},insertBefore:function(n){var t=e(n)[0];t&&t.parentNode&&(t.parentNode.insertBefore(this[0],t),re(i,this)&&f.each(s("script",this),eh))},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(n,t){return t!==r?(this.each(function(){this.setAttribute(n,t)}),this):this.length>0?this[0].getAttribute(n):void 0},on:function(n,t,i){return n=n.split(" "),this.each(function(r){f.each(n,function(n){l(r,n,t,i)})}),this},closest:function(n){for(var t=this[0];t&&!s.matchesSelector(t,n);)t=t.parentNode;return e(t)},height:function(n){if(this.length)return n===r?this[0].offsetHeight:(this[0].style.height=n+"px",this)},width:function(n){if(this.length)return n===r?this[0].offsetWidth:(this[0].style.width=n+"px",this)},focus:function(){return this.each(function(){f.isFunction(this.focus)&&this.focus()})}});f.extend(e,{removeNode:sw,getClass:yu,hasClass:or,addClass:ow,removeClass:ew,getBody:w,getComputedStyle:bt,getClientRect:it,intersectRect:fc,getScrollParent:at,isElementVisible:yt});var pu=function(t){return n.doesExist(t)&&""!==t&&"boolean"!=typeof t&&"object"!=typeof t},wu=function(t){return t&&"number"!=typeof t?t.substring(0,n.TEMP_PREFIX.length)===n.TEMP_PREFIX:!1},bu=function(){var n=ui||t.pendo_options||{};return!n.disablePersistence},hr="VISITOR-UNIQUE-ID",ec=function(n){return hr===n},ku="::",oc=function(n){return new RegExp(ku).test(n)},sc=function(t,i){return wu(t)?pu(i)?wu(i)?(n.log("visitor is anonymous: "+i),!1):ec(i)?(n.log("visitor id is the default: "+i),!1):(n.log("Re-mapping identity from "+t+" to "+i),!0):(n.log("Not valid visitor id: "+i),!1):(n.log("Not change an old, non-anonymous visitor id: "+t),!1)};n.identify=er(function(t,i){var f="object"==typeof t,r=null,u={};return u.old_visitor_id=n.get_visitor_id(),f&&(r=t,r.visitor=r.visitor||{},r.account=r.account||{},r.parentAccount=r.parentAccount||{},t=r.visitor.id,i=r.account.id,i&&!oc(i)&&r.parentAccount.id&&(i=""+r.parentAccount.id+ku+i),ta(r)),pu(t)?(n.set_visitor_id(t),n.doesExist(i)?n.set_account_id(i):i=n.get_account_id(),sc(u.old_visitor_id,t)&&(u.visitor_id=t,u.account_id=i,ar("identify",u)),void(u.old_visitor_id!==t&&gt())):void n.log("Invalid visitor id "+t)});n.get_visitor_id=function(){var t,i=n.visitorId;return n.doesExist(i)&&pu(i)||(bu()?(t=gu("visitorId"),pu(t)||(t=n.generate_unique_id(n.TEMP_PREFIX),cr("visitorId",t))):t=n.generate_unique_id(n.TEMP_PREFIX),n.visitorId=t),n.visitorId};n.set_visitor_id=function(t){n.visitorId=""+t;bu()&&n.set_pendo_cookie("visitorId",n.visitorId,n.DEFAULT_EXPIRE_LEN)};n.get_account_id=function(){if(!n.doesExist(n.accountId)&&bu()){var t=n.read("accountId");n.accountId=t}return n.accountId};n.set_account_id=function(t){n.accountId=""+t;bu()&&n.write("accountId",n.accountId)};var pe=function(n){var r;return(r=new RegExp("(^|; )"+n+"=([^;]*)").exec(i.cookie))?t.decodeURIComponent(r[2]):null},we=function(n,r,u){var f=new Date;f.setTime(f.getTime()+u);i.cookie=n+"="+t.encodeURIComponent(r)+(u?";expires="+f.toUTCString():"")+"; path=/"+("https"===i.location.protocol?";secure":"")},du=function(t){return"_pendo_"+t+"."+n.apiKey};n.get_pendo_cookie=function(n){return pe(du(n))};n.DEFAULT_EXPIRE_LEN=864e7;n.set_pendo_cookie=function(t,i,r){r=r||n.DEFAULT_EXPIRE_LEN;we(du(t),i,r)};var hc=function(n){return gu(n,!0)},gu=function(t,i){return i?pe(t):n.get_pendo_cookie(t)},be=function(n,t,i){return cr(n,t,i,!0)},cr=function(t,i,r,u){return u?void we(t,i,r):n.set_pendo_cookie(t,i,r)},tit=function(n){i.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},lw=function(n){var t=du(n);i.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};!function(n,t){n.ajax=t()}(n,function(){function i(n){var t={status:n.status};try{t.data=h.parse(n.responseText)}catch(i){t.data=n.responseText}return t}function n(n){var u=c.defer(),e=t.XMLHttpRequest||ActiveXObject,r=new e("MSXML2.XMLHTTP.3.0");return r.open(n.method||"GET",n.url,!0),f.each(n.headers,function(n,t){r.setRequestHeader(t.toLowerCase(),n)}),r.onreadystatechange=function(){4===r.readyState&&(r.status>=200&&r.status<300?u.resolve(i(r)):u.reject(i(r)))},n.data?r.send(n.data):r.send(),u.promise}function u(t){return n({method:"GET",url:t})}function r(t,i,r){return n({method:"POST",url:t,data:i,headers:r})}function e(n,t,i){return i||(i={}),i["content-type"]="application/json",t=h.stringify(t),r(n,t,i)}return f.extend(n,{get:u,post:r,postJSON:e})});var lr=py(),cc=function(n,t,i){var r=lr+"/data/"+n+"/"+t,u=f.map(i,function(n,t){return t+"="+n});return u.length>0&&(r+="?"+u.join("&")),r},lc=function(n){var t=(new Date).getTime();nf("ptm",{v:st,ct:t,jzb:n})},ac=function(t){var i=(new Date).getTime(),r=n.squeezeAndCompress([t]);nf("guide",{ct:i,jzb:r,v:st})},b=function(n){n+="v"+st;nf("log",{msg:n,version:st})},nf=function(t,i){var r=cc(t+".gif",n.apiKey,i);vc(r)},vi=function(i,r){var u,f;i&&i.logged||(r||(r="pendo.io unhandled exception"),i.logged=!0,u="["+r+": "+i.message+"]",o(u),f=t.pendo_options||{},i.stack&&n.logStackTraces!==!1&&f.logStackTraces!==!1?ke(u+"\n"+i.stack):b(u))},ke=function(t){try{n.ajax.postJSON(lr+"/data/errorlog?apiKey="+n.apiKey,{error:t,version:"v"+st,visitorId:n.get_visitor_id()}).then(function(){n.log("successfully wrote error")},function(t){n.log("error writing error:"+t)})}catch(i){o("Failed to write error to server using POST endpoint: "+i);b("Failed to write error to server using POST endpoint: "+i)}},vc=function(n){if(rf()){var t=new Image;t.src=n}},tf=!1,yc=function(){return tf=!0,"Pendo Agent locked.  No more events will be written."},aw=function(){return tf=!1,"Pendo Agent unlocked.  Events will be written."},rf=function(){return!tf},yi=[],uf=[],pc=12e4,wc=16,bc=1900,de=2e3,kc=function(n,t){return t=t||no(),t.substring(0,n)},vw=function(n,t){var i=n.url;k("Max length exceeded for an event");i&&i.length>de?(k("shortening the URL and retrying"),n.url=kc(de,i),to(n)):(k("Couldn't write event"),b("Single item is: "+t.length+". Dropping."),ke(t))},dc=function(t){var e=[].concat(t),r,i,u,f;for(t.length=0,r=[e];r.length>0;)i=r.shift(),u=n.squeezeAndCompress(i),u.length>bc?1==i.length?vw(i[0],u):(f=i.length/2,r.unshift(i.slice(0,f)),r.unshift(i.slice(f))):(lc(u),yw(i))},yw=function(n){uf.push([].concat(n));uf.length>100&&(k("Pruning earliest 50 items from history"),uf.splice(0,50))},ge=function(n){return!(!n||""===n)},no=function(){return t.location.href},ar=function(t,i,r){var u={},f,e;(r=n.url.externalizeURL(r),ge(r))&&(u.type=t,u.browser_time=(new Date).getTime(),f=n.get_visitor_id(),u.visitor_id=f,e=n.get_account_id(),u.account_id=e,u.url=r,u.props=i,to(u))},to=function(n){yi.push(n);yi.length>wc&&pi()},pi=function(){if(yi.length>0)try{dc(yi)}catch(t){var n="[pendo.io error while flushing cache: "+t.message+"]";o(n);b(n)}},io=function(n){pi();t.setTimeout(function(){io(n)},n)},pw=/^\s+|\s+$/g,wi=String.prototype.trim;wi||(wi=function(){return this.replace(pw,"")});var gc={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}},ww=function(n){return n&&0===n.indexOf("data:")?(k("Embedded data provided in URI."),n.substring(0,n.indexOf(","))):n+""},ro=function(n,t,i){var u=n.nodeName.toLowerCase(),f,r;return"img"==u&&"src"==t||"a"==u&&"href"==t?(f=n.getAttribute(t),ww(f)):(r=n.getAttribute?n.getAttribute(t):n[t],i&&typeof r!=i?null:r?r:null)},nl=function(t){return n.doesExist(t)?""+t:""},kt={TEXT_ELEMENT:3,ELEMENT_NODE:1,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11,CDATA_SECTION_NODE:4},bw={test:function(){return!1}},kw=function(t){var i={},r,o,s;return i.tag=t.nodeName,i.id=nl(t.id),i.cls=nl(e.getClass(t)),i.title=ro(t,"title","string"),r=i.tag.toLowerCase(),"input"===r&&(r+='[type="'+t.type+'"]'),i.attrs={},gc[r]&&f.each(gc[r].attr,function(r){var u=ro(t,r);n.doesExist(u)&&(i.attrs[r]=u)}),o=u("htmlAttributes")||bw,(f.isFunction(o.test)&&f.each(t.attributes,function(n){var r=n.nodeName;o.test(r)&&(i.attrs[r.toLowerCase()]=ro(t,r))}),t.parentNode&&t.parentNode.childNodes)&&(s=f.chain(t.parentNode.childNodes),i.myIndex=s.indexOf(t).value(),i.childIndex=s.filter(function(n){return n.nodeType==kt.ELEMENT_NODE}).indexOf(t).value()),i},dw=function(n){return"BODY"===n.nodeName||null===n.parentNode},tl=function(t){var r,i={},f=i,e=t,u;do r=e,u=kw(r),f.parentElem=u,f=u,e=r.parentNode;while(!dw(r));return n.excludeAllText!==!0?i.parentElem.txt=ee(t,128):i.parentElem.value&&(i.parentElem.value=null),i.parentElem},gw=["","left","right","middle"],nb=function(n,t){return gw[t]},tb=function(){return!0},ib=function(n){return n.which||n.button},dt=function(n){return n},ff=function(n,t){return n[t]},il=[["button",ib,tb,nb],["altKey",ff,dt,dt],["ctrlKey",ff,dt,dt],["metaKey",ff,dt,dt],["shiftKey",ff,dt,dt]],rb=function(n,t){for(var u=[],i=0;i<il.length;i++){var r=il[i],f=r[0],o=r[1],s=r[2],h=r[3],e=o(n,f);s(e)&&u.push(h(f,e))}return t.flags=u,t},ub={click:rb},ii=function(n){return n.target||n.srcElement},fb=function(n){return!n.tagName||"textarea"==n.tagName.toLowerCase()},eb=function(n){return n.nodeType===kt.TEXT_ELEMENT?n.parentNode:n.nodeType===kt.CDATA_SECTION_NODE?null:n.correspondingUseElement?n.correspondingUseElement:n},ob=function(n){var r;try{var t=ii(n),u=n.type,i={},e=ub[u];if(e&&(i=e(n,i)),t=eb(t),!t)return void o("Invalid HTML target","event","dom","processing");r=tl(t);f.extend(r,i);pr();ar(u,{target:r})}catch(s){vi(s,"pendo.io while handling event")}},iit=function(n,t,i,r,u){return{msg:n,url:t,lineNum:i,colNum:r,error:u}},sb=function(n){for(var t=0;t<n.length;t++)l(i,n[t],ob,!0)},rl=function(n){n=n||["click","focus","submit","change"];sb(n);l(t,"unload",function(){pi()});hb()},hb=function(){if("undefined"!=typeof Turbolinks){var t=Turbolinks&&Turbolinks.EVENTS&&Turbolinks.EVENTS.LOAD;t&&l(i,t,function(){n.url.get()===ri.lastUrl&&(delete ri.lastUrl,gt())})}},l=function(n,i,r,u){var f,e;return(n&&i&&r)?n==t&&"error"==i?void attachErrorEvent(r):(u||(u=!1),void(n.addEventListener?n.addEventListener(i,r,u):n.attachEvent("on"+i,r))):(f=[],n||f.push("element"),i||f.push("evt"),r||f.push("fn"),e="bad attachEvent call. missing: "+f.join(", "),o(e),void b(e))},g=function(n,t,i,r){var u,f;if(!(n&&t&&i))return u=[],n||u.push("element"),t||u.push("evt"),i||u.push("fn"),f="bad detachEvent call. missing: "+u.join(", "),o(f),void b(f);r||(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent("on"+t,i)},uo=function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0;n.preventDefault?n.preventDefault():n.returnValue=!1},cb=function(n){var t=hc("log-enabled");return null!==t?"true"==t:!f.contains(["prod","rc"],n)},lb=function(){var n=hc("active-contexts");return n?n.split(","):[]},ul=function(){return fo()?bi?"logging already enabled":(be("log-enabled","true"),bi=!0,"logging enabled"):"logging unavailable"},fl=function(){return bi?(be("log-enabled","false"),bi=!1,"logging disabled"):"logging already disabled"},vr=lb(),bi=cb(nc),ef=function(n,t){return f.compact([].concat(n,t))},fo=function(){return"undefined"!=typeof console&&console.log!==r},ab=function(t){return t=ef(t),vr.length>0?f.intersection(vr,t).length>0:!!bi||!!n.isDebuggingEnabled(!0)},o=function(n,t){t=ef(t,f.tail(arguments,2));fo()&&(ab(t)&&of(n),yb(n,t))},vb=100,yr=[],yb=function(n,t){f.contains(t,"debug")||(yr.length==vb&&yr.shift(),yr.push([n,t]))},el=function(n){n=ef(n);f.each(f.map(f.filter(yr,function(t){return 0===n.length||f.intersection(n,t[1]).length>0}),function(n){return n[0]}),function(n){of(n,"[Pendo-History] ")})},ol=function(){return f.union.apply(f,f.map(yr,function(n){return n[1]}))},pb=function(){return vr},sl=function(n){vr=ef(n);be("active-contexts",vr.join(","))},rit=function(t,i){(bi||n.isDebuggingEnabled(!0))&&(i=i||"console",kb(t,i))},of=function(n,t){fo()&&(t=t||"[Agent] ",console.log(t+n))},wb=function(n){var i=location.href;i.indexOf("pendo_alert")>-1?t.alert(n):of(n)},bb={alert:wb,console:of},kb=function(n,t){bb[t](n)};o.enableLogging=ul;o.disableLogging=fl;o.getActiveContexts=pb;o.setActiveContexts=sl;o.showLogHistory=el;o.getLoggedContexts=ol;n.SIZE_UNIQUE_ID=11;n.generate_unique_id=function(t){return t+n.randomString(n.SIZE_UNIQUE_ID)};n.TEMP_PREFIX="_PENDO_T_";n.doesExist=function(n){return!("undefined"==typeof n||null===n)};var pr=er(function(t){if(t=t||n.url.get(),t&&t!==pr.lastUrl){pr.lastUrl=t;var r=-1;pk();k("sending load event for url "+t);"undefined"!=typeof performance&&"undefined"!=typeof performance.timing&&(r=performance.timing.loadEventStart-performance.timing.fetchStart);ar("load",{load_time:r,title:i.title},t);gt(t)}}),ri=function(t){var i=n.get_visitor_id();t=t||n.url.get();t&&n.apiKey&&!kf()&&(t!==ri.lastUrl||i!==ri.lastVisitorId)&&(ri.lastUrl=t,ri.lastVisitorId=i,n.loadGuides(n.apiKey,i,t).then(function(){n.events.guidesLoaded()},function(){n.events.guidesFailed()}))},gt=function(n){gt.pending&&clearTimeout(gt.pending);gt.pending=setTimeout(function(){delete gt.pending;ri(n)},0)},ui=null,hl=er(function(t){var i,r;if(t||(t={}),ui=t,i=u("apiKey"),i?n.apiKey=i:t.apiKey&&(n.apiKey=t.apiKey),!n.apiKey)return void k("API key is not set, Pendo will not initialize.");(n.apiKey=""+n.apiKey,t.excludeAllText&&(n.excludeAllText=t.excludeAllText),t.logStackTraces&&(n.logStackTraces=t.logStackTraces),f.each(t.events,function(t,i){n.events[i]&&n.events[i](t)}),oa(),ga(),rl(),t.usePendoAgentAPI!==!0&&n.updateOptions(t),t.visitorId&&t.visitorId!=hr)?n.identify(t.visitorId):t.visitor&&t.visitor.id&&t.visitor.id!=hr&&(r=null,t.account&&t.account.id&&(r=t.account.id),n.identify(t.visitor.id,r));n.url.watch(n.pageLoad);pr(n.url.get());n.events.ready()}),db=function(){var t,i,r=n._q,u,e;if(f.isArray(r))for(u=0,e=r.length;e>u;++u)t=r.shift(),f.isArray(t)&&(i=n[t.shift()],f.isFunction(i)&&i.apply(n,t))},eo=function(){return n.doesExist(n.apiKey)},ht=function(t,i){if(f.isString(t)){for(var e=t.split("."),r=ui,u=0,o=e.length;o>u;++u){if(!n.doesExist(r))return i;r=r[e[u]]}return n.doesExist(r)?r:i}return i};n.validateInstall=function(){var t,i,r;if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";console.group("Pendo Install Validation");n.apiKey||console.error("No Pendo API key configured.");t=n.get_visitor_id();wu(t)&&console.warn('The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)');ec(t)&&console.error("The current visitor ID matches the example visitor ID from the Pendo installation instructions.");i=n.get_account_id();i||console.warn("The current visitor is not associated with an account. Is this expected?");"ACCOUNT-UNIQUE-ID"===i&&console.error("The current account ID matches the example account ID from the Pendo installation instructions.");r=af();f.each(["visitor","account","parentAccount"],function(n){var t=r&&r[n],i=f.chain(t).keys().without("id","language").value();i.length>0?(console.group(n+" metadata (does this look right?):"),f.each(t,function(n,t){f.isObject(n)&&!f.isArray(n)?console.warn(t+" is an object and will be ignored.",n):f.isArray(n)&&f.any(n,f.isObject)?console.warn(t+" contains object values. The objects will be ignored.",n):console.log(t+":",n)}),console.groupEnd()):"parentAccount"!==n&&console.warn("No "+n+" metadata found. Learn more about metadata here: https://pendo.desk.com/customer/en/portal/articles/2284334-visitor-account-metadata-in-pendo")});console.groupEnd()};var wr=function(n,t){return n=n||10,t=isNaN(sf)?!1:t?t>sf:!0,t&&n>p},p,sf,uit=[].slice,fit=[].push,eit=Object.prototype.toString,hf=function(n){return oe(n)?n.toLowerCase():n},gb=function(n){var t=lu((/msie (\d+)/.exec(hf(n))||[])[1]);return isNaN(t)&&(t=lu((/trident\/.*; rv:(\d+)/.exec(hf(n))||[])[1])),t};p=gb(navigator.userAgent);cl=function(n,t){var i=lu((/trident\/(\d+)/.exec(hf(n))||[])[1]);return isNaN(i)&&7==t&&(i=3),i};sf=cl(navigator.userAgent,p);var oo={},so=lu((/android (\d+)/.exec(hf((t.navigator||{}).userAgent))||[])[1]),nk=/Boxee/i.test((t.navigator||{}).userAgent),ki=t.document||{},ho=ki.documentMode,ut,fi=ki.body&&ki.body.style,cf=!1,lf=!1,ll;if(fi){for(al in fi)if(ll=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(al)){ut=ll[0];ut=ut.substr(0,1).toUpperCase()+ut.substr(1);break}ut||(ut="WebkitOpacity"in fi&&"webkit");cf=!!("transition"in fi||ut+"Transition"in fi);lf=!!("animation"in fi||ut+"Animation"in fi);!so||cf&&lf||(cf=oe(ki.body.style.webkitTransition),lf=oe(ki.body.style.webkitAnimation))}n._.extend(n,{sniffer:{history:!(!t.history||!t.history.pushState||4>so||nk),hashchange:"onhashchange"in t&&(!ho||ho>7),hasEvent:function(n){if("input"==n&&9==p)return!1;if(sh(oo[n])){var t=ki.createElement("div");oo[n]="on"+n in t}return oo[n]},vendorPrefix:ut,transitions:cf,animations:lf,android:so,msie:p,msieDocumentMode:ho}});var oit=t.document,tk=t.setTimeout,sit=t.clearTimeout,vl=[],yl,ik=function(n){return sh(yl)&&by(100,tk),vl.push(n),n},pl=t.location.href,hit=n.Sizzle("base",i),br=function(){var n;try{n=t.location.href}catch(i){}return n&&n.replace?n.replace(/%27/g,"'"):n},co=[],wl=!1,rk=function(i){return o("Initializing Pendo URL Watcher"),wl||(n.sniffer.hashchange&&l(t,"hashchange",hh),ik(hh),wl=!0),co.push(i),i},uk=function(){co=[]},fk=function(){return i&&i.location&&"http:"===i.location.protocol?"http:":"https:"},ek="queryStringWhitelist",ok=function(n,i){var u,e;i=i||t.location.search.substring(1);n=n||br();u=n.indexOf(i);e=u+i.length;var o=n.substring(0,u),s=n.substring(e),r=ht(ek);return f.isFunction(r)&&(r=r()),f.isArray(r)&&(i=sk(i,r)),o+i+s},sk=function(n,t){var i=bl(n);return i=f.pick(i,t),kl(i)},cit=function(n,t){var i=bl(n);return i=f.omit(i,t),kl(i)},bl=function(n){var t=n.split("&");return f.reduce(t,function(n,t){return t=t.split("="),t.length>1&&(n[t[0]]=t[1]),n},{})},kl=function(n){return f.reduce(n,function(n,t,i){return n?n+"&"+i+"="+t:n+i+"="+t},"")};n._.extend(n,{url:{watch:rk,get:br,externalizeURL:ok,clear:uk}});var hk=null,lo,ck=function(){var i=t.navigator;return((n._.isArray(i.languages)?i.languages[0]:i.language||i.browserLanguage||i.systemLanguage||i.userLanguage)||"").split("-").join("_")},dl="meta",lk=function(t){"object"==typeof t&&(t=ti(t));"undefined"!=typeof t&&t.toString&&(t=t.toString());var i=f.isNumber(lo)?lo:n.read(dl);return""+i!==t?!0:!1},gl=function(n){return f.any(["Number","Boolean","Date","String","Null","NaN","Undefined"],function(t){return f["is"+t](n)})},ak=function(n){var t={};return f.each(n,function(n,i){gl(n)?t[i]=n:f.isArray(n)&&(t[i]=f.filter(n,gl))}),t},na=function(t){return f.isObject(t)||(t={}),f.isObject(t.visitor)||(t.visitor={}),f.isObject(t.account)||(t.account={}),f.isObject(t.parentAccount)||(t.parentAccount={}),t.visitor.id===hr&&(n.log("Missing visitor id."),delete t.visitor.id),n.doesExist(t.account.id)&&n.doesExist(t.parentAccount.id)&&(oc(t.account.id)?t.parentAccount.id=t.account.id.split(ku)[0]:t.account.id=""+t.parentAccount.id+ku+t.account.id),n.doesExist(t.account.id)&&(n.set_account_id(t.account.id),t.account.id=n.get_account_id()),n.doesExist(t.visitor.id)&&(n.identify(t.visitor.id,t.account.id),t.visitor.id=n.get_visitor_id()),t.visitor.language=ck(),{visitor:t.visitor,account:ak(t.account),parentAccount:t.parentAccount,date:vk(),version:n.VERSION}},vk=function(){var n=new Date,t=n.getDate(),i=n.getMonth()+1,r=n.getFullYear();return 10>t&&(t="0"+t),10>i&&(i="0"+i),n=t+"/"+i+"/"+r},yk=function(t){return t&&n._.keys(t).length>0},ta=er(function(t){if(yk(t)){t=na(t);af=function(){return t};var i=ti(t);lk(i)&&(n.write(dl,i),hk=t,lo=i,ar("meta",t),gt())}}),af=function(){};n.loadResource=function(t,r){var s,h,u,c,e,o;try{return s="text/css",h="text/javascript",f.isString(t)&&(t={url:t}),t.type=t.type||/\.css/.test(t.url)?s:h,u=null,c=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0],t.type===s?(e=i.createElement("link"),e.type=s,e.rel="stylesheet",e.href=t.url,u=e):(o=i.createElement("script"),o.type=h,o.async=!0,o.src=t.url,u=o),c.appendChild(u),n.loadWatcher(u,t.url,r),u}catch(l){return{}}};n.loadWatcher=function(t,i,r){var u=!1,f;n.doesExist(r)&&(t.onload=function(){u!==!0&&(u=!0,r(null,i))},t.onerror=function(){n.tellMaster({status:"error",msg:"Failed to load script",scriptURL:i})},t.onreadystatechange=function(){u||t.readyState&&"loaded"!=t.readyState&&"complete"!=t.readyState||(u=!0,r(null,i))},"link"===t.tagName.toLowerCase())&&(f=500,setTimeout(function(){if(!u){var n=new Image;n.onload=n.onerror=function(){u!==!0&&(u=!0,r(null,i))};n.src=i}},f),setTimeout(function(){u||b("Failed to load "+i+" within 10 seconds")},1e4))};n.messageLogger=function(t){var r=h.parse(t.data),i=t.origin;k(n.app_name+": Message: "+h.stringify(r)+" from "+i);n.tellMaster(t.source,{status:"success",msg:"ack",originator:"messageLogger"},i)};n.messageReceiver=function(t){try{n.messageDispatcher(n.messageOriginTester(n.messageValidator(t)))}catch(i){var r="Error receiving msg: "+h.stringify(t.data)+", Exception: "+i;n.log(r)}};n.messageValidator=function(n){var t=n.data,i=n.origin,r=n.source;return t=h.parse(t),{data:t,origin:i,source:r}};ia=ky([lr,"https://app.pendo.io"]);n.messageOriginTester=function(n){if(ia.test(n.origin)||/^https?:\/\/(\w+-dot-)?pendo-(dev|test|io)\.appspot\.com$/.test(n.origin))return n;throw new Error("Received message from untrusted origin "+n.origin);};n.onConnectMessage=function(i,r){rf()&&(tt(),yc(),ra=r.source,t.onbeforeunload=function(){aw();ktt();n.tellMaster(r.source,{type:"unload"},"*")},btt(),n.tellMaster(r.source,{status:"success",type:"connect"},"*"),n.findModuleByName("selection.js")&&(n.log("Designer Modules already loaded."),n.tellMaster({type:"ready"})))};ua=function(t){n.moduleLoader(t.moduleURL)};fa=function(){addEventListener("message",n.messageLogger,!1)};n.MESSAGE_TYPES={connect:n.onConnectMessage,disconnect:function(){},module:ua,debug:fa};ao=function(t,i){n.tellMaster({type:"msg-type-available","msg-type":t});n.MESSAGE_TYPES[t]=i};n.messageDispatcher=function(t){var i=t.data;n.doesExist(n.MESSAGE_TYPES[i.type])&&n.MESSAGE_TYPES[i.type](i,t)};n.moduleRegistry={};n.addModule=function(t){if(n.moduleRegistry[t]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(i){}};n.hasModule=function(t){return n.doesExist(n.moduleRegistry[t])};n.findModuleByName=function(t){var r,i;if(!n.moduleRegistry)return null;r=function(n,t){return n.indexOf(t)>=0};for(i in n.moduleRegistry)if(r(i,t))return i;return null};n.modulesWaiting=[];n.loadModules=function(){if(!(n.modulesWaiting.length<1)){var t=n.modulesWaiting.shift();n.hasModule(t)||n.loadResource(t,function(){n.addModule(t);n.loadModules()})}};n.moduleLoader=function(t){n.modulesWaiting.push(t);n.modulesWaiting.length>1||n.loadModules()};var vo=function(n,t,i){"undefined"==typeof t&&"undefined"==typeof i&&(t=n,n=ra||ea(),i="*");t.guid=f.uniqueId("pendo-");n.postMessage(h.stringify(t),i)},kr=function(){return t!=t.top},ea=function(){var n=new RegExp("^"+lr.replace(/^https?:/,"https?:"));return n.test(location.href)?t.parent:t.top},pk=function(){if(kr()){var t=ea();n.tellMaster(t,{type:"load",url:location.toString()},"*")}},oa=function(){n.app_name=i.title;kr()&&(n.log(n.app_name+": listening to messages"),n.doesExist(t.addEventListener)&&addEventListener("message",n.messageReceiver,!1))},ct=function(){return isNaN(p)?!1:11==p?!1:"CSS1Compat"!==i.compatMode},wk=function(t,i){var f=t.height,r=t.width,u,e;return"top"==t.arrowPosition||"bottom"==t.arrowPosition?(u=10,e=0,"top"==t.arrowPosition?(t.top=i.top+i.height,e=-1,t.arrow.top=3,10==p||9>=p&&(t.arrow.top=6)):"bottom"==t.arrowPosition&&(t.top=i.top-(f+n.TOOLTIP_ARROW_SIZE),t.arrow.top=f-n.TOOLTIP_ARROW_SIZE,10==p?t.arrow.top--:9>=p&&(t.arrow.top+=4),e=1),"left"==t.arrow.hbias?(t.left=i.left+i.width/2-(u+2*n.TOOLTIP_ARROW_SIZE),t.arrow.left=u+n.TOOLTIP_ARROW_SIZE):"right"==t.arrow.hbias?(t.left=i.left-r+i.width/2+(u+2*n.TOOLTIP_ARROW_SIZE),t.arrow.left=r-3*n.TOOLTIP_ARROW_SIZE-u):(t.left=i.left+i.width/2-r/2,t.arrow.left=r/2-n.TOOLTIP_ARROW_SIZE),t.arrow.border.top=t.arrow.top+e,t.arrow.border.left=t.arrow.left,t):("left"==t.arrow.hbias?(t.left=i.left+i.width,t.arrow.left=1,t.arrow.left+=5,t.arrow.border.left=t.arrow.left-1):"right"==t.arrow.hbias&&(t.left=Math.max(0,i.left-r-n.TOOLTIP_ARROW_SIZE),t.arrow.left=r-n.TOOLTIP_ARROW_SIZE-1,t.arrow.left+=5,t.arrow.border.left=t.arrow.left+1),t.top=i.top+i.height/2-f/2,t.arrow.top=f/2-n.TOOLTIP_ARROW_SIZE,t.arrow.border.top=t.arrow.top,t)},yo=function(n){function i(i){var u,r,o,s;if(!t[i.id]){if(u=[],r={deferred:{}},i.contentUrlJs)r.deferred.content=c.defer(),o=n.loadResource(i.contentUrlJs,function(){e.removeNode(o)}),u.push(r.deferred.content.promise),i.contentUrlCss&&(r.deferred.css=c.defer(),n.loadResource({url:i.contentUrlCss,type:"text/css"},function(){r.deferred.css.resolve()}),u.push(r.deferred.css.promise));else{if(!i.contentUrl)return c.reject();r.deferred.content=c.defer();s=n.loadResource(i.contentUrl+".js",function(){e.removeNode(s)});u.push(r.deferred.content.promise)}r.deferred.promise=c.all(u).then(function(){return f.omit(r,"deferred")});t[i.id]=r}return t[i.id].deferred.promise}function r(){t={}}function u(n,i,r,u,e){if(f.isString(r)){f.isFunction(u)||(u=f.template(r));var o=t[n+i];o&&o.deferred.content&&(o.content=r,o.template=u,o.script=e,o.deferred.content.resolve())}}n.guideContent=u;var t={};return{load:i,reset:r}}(n),bk=500,kk="_pendo-guide-banner_",po=function(){function s(n){var t=this;return t.before("show",function(){var o,s;if(a()){if(i)return t.guideId!==i||f.contains(r,t)||r.push(t),!1;if(o=p(n),o===e)return!1;if(o!==u)return r.push(t),s=function(){r.length=0;ru(!1);ft()},y(n).then(function(){f.each(r,function(n){n.show()});s()},s),ru(!0),!1}}),this.signature=function(){var t=[["content",this.content]],i=this.attributes&&this.attributes.variables,n;return i&&(n=o(i),n.length&&(n=f.sortBy(n,function(n){return n[0]}),t.push(["variables",n]))),t},t}function c(){return this.signature=function(){return f.map(this.steps,function(n){return n.signature()})},this}function l(){var i=this,r=!1,s=function(){return f.size(n.events._handlers.validateLauncher)>0&&i.data.template},c=function(){var r=h.stringify(i.signature()),f="launcher-"+ti(r);return n.events.validateLauncher(r).then(function(){t[f]=u},function(){t[f]=e})},l=function(){var n="launcher-"+ti(i.signature());return t[n]};return i.before("update",function(){if(s()&&r)return!1}),i.before("render",function(){if(s()){if(r)return!1;var n=l();if(n===e)return!1;if(n!==u)return r=!0,c().then(function(){r=!1;i.render();i.update(v)},function(){r=!1}),!1}}),i.signature=function(){var t=[],n=o(this.data);return n.length&&(n=f.sortBy(n,function(n){return n[0]}),t.push(["variables",n])),t},i}var i,u="allow",e="deny",t={},r=[],a=function(){return f.size(n.events._handlers.validateGuide)>0},y=function(r){return i=r.id,r.fetchContent().then(function(){var f=h.stringify(r.signature()),o=r.id+"-"+ti(f);return n.events.validateGuide(f).then(function(){i=null;t[o]=u},function(){i=null;t[o]=e})})},p=function(n){var i=n.id+"-"+ti(n.signature());return t[i]},o=function(n,t){var i=[];return f.each(n,function(n,r){var u=r;t&&(u=t+"."+u);f.isObject(n)?f.each(o(n,u),function(n){i.push(n)}):i.push([u,n])}),i};return{Step:s,Guide:c,Launcher:l,reset:function(){t={};i=null;r.length=0}}}(),dk=function(){function i(i){function o(){return h(c),t||n.doesExist(r.content)?t?!1:void 0:(t=!0,ru(!0),f.has(i.attributes,"type")&&"group"===i.attributes.type?i.fetchContent().then(function(){t=!1;i.show()}).then(u,u):r.fetchContent().then(function(){t=!1;r.show()}).then(u,u),!1)}function s(){if(!e){var n=f.extend({id:r.guideId+r.id},f.pick(r,"contentUrl","contentUrlCss","contentUrlJs"));e=yo.load(n).then(function(n){f.extend(r,n)})}return e}function u(){t=!1;ru(!1);ft()}function h(n){var t=f.indexOf(i.steps,r);f.chain(i.steps).rest(t+1).first(n).each(function(n){n.fetchContent()}).value()}var e,r=this,c=3;return r.contentUrl&&(f.extend(r,{fetchContent:s}),r.before("show",o)),r}var t;return i.reset=function(){yo.reset();t=!1},i.reset(),i}();pt.create=function(n,t){return f.reduce(pt.behaviors,function(n,i){return i.call(n,t)},n)};pt.isGuideStep=function(n){return!!n&&f.isFunction(n.render)};pt.behaviors=[au,pt,dk,po.Step,rp,up,dy,gy,np,ip,tp];se.MAX_ERRORS_PER_MINUTE=30;rr.create=function(n){return f.reduce(rr.behaviors,function(n,t){return t.call(n)},n)};rr.behaviors=[au,rr,po.Guide,ep,fp,se];ur.prototype.add=function(){(!bf(this.guide)||da(this.guide))&&this.setupElementEvent(this.element,this.method)};ur.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)};ur.prototype.setupElementEvent=function(n,t){this.advanceFn||(this.advanceFn=f.compose(f.bind(this.teardownElementEvent,this,n,t),f.bind(this.step.advance,this.step)));g(n,t,this.advanceFn,!0);l(n,t,this.advanceFn,!0)};ur.prototype.teardownElementEvent=function(n,t){o("detach onGuideAdvanced","guide");g(n,t,this.advanceFn,!0);this.step.removeTrigger(this)};var gk=f.wrap(f.once(f.wrap(op,sp)),hp),nd={load:function(t,i){n.loadResource(t,i)},buildUrl:function(n,t){return cc("guide.js",n,t)}},wo=nd,dr=[],ei=[],v=[],sa="_pendo-guide_",ha="_pendo_g_",nt=null,bo=0,oi=function(){return f.any(v,function(n){return n.isShown()})},ko=function(n,t){var i=e("._pendo-close-guide_",n),r;return i.length?i[0]:(i=e("<button>").attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").html("&times;"),ct()?p>9&&i.css({top:3}):8===p?i.css({top:9,right:2}):9===p?i.css({right:2,top:3}):p>9&&i.css({top:3}),r=e("._pendo-guide-container_",n)[0]||n,i.appendTo(r),i[0].onclick=function(){t()},i[0])},td=function(n,t){for(var i=0;i<v.length;i++)if(v[i][n]===t)return v[i];return null},et=function(t){return n.findGuideBy("id",t)},id=function(t){return n.findGuideBy("name",t)},rd=function(n,t){return n&&n.id?(n=et(n.id),n.findStepById(t)):null},si=function(t,i,r){var u=n.findStepInGuide(et(t),i);u&&(u.seenState=r)},ud=function(n){for(var t=new RegExp("^"+ha);n;){if(f.isString(n.id)&&t.test(n.id))return n.id.replace(t,"");n=n.parentNode}return null},go=function(){f.map(f.filter(v,function(n){return n.isShown()}),function(n){n.hide()})},vf=function(n,t){var u,i,r;return(n&&n.guideId&&(t=n,n=null),pt.isGuideStep(t))?t:t?(u=et(t.guideId),u&&u.findStepById(t.id)):(i=f.find(v,function(n){return n.isShown()}),i?(n&&(r=ud(n.target||n.srcElement||n)),r?(t=i.findStepById(r),t||b("findStepForGuideEvent: step with id "+r)):(t=f.find(i.steps,function(n){return n.isShown()}),t||b("findStepForGuideEvent: no step shown")),t):void 0)},ca=function(t){var i="element"===t.advanceMethod?"click":"mouseover",r=n.getElementForGuideStep(t);"tooltip"===t.type&&f.isFunction(t.teardownElementEvent)?t.teardownElementEvent(r,i):g(r,i,gr,!0)},fd=function(t,i){var f=null,r,u;if(t&&t instanceof Object&&t.until&&(f=t.until),i=vf(t,i),!i||!i.id)return void tt();if(f)return void i.hide(!0);ca(i);r=i.id;u=i.guideId;i.hide();pa(u,r,n.get_visitor_id());si(u,r,"dismissed");nt={guideId:u,guideStepId:r,time:(new Date).getTime(),state:"dismissed"};pf(nt);oi()||(tt(),ft())},ed=function(){var t=ci();t&&f.each(t.steps,function(t){var i="element"==t.advanceMethod?"click":"mouseover",r=n.getElementForGuideStep(t);"tooltip"===t.type&&f.isFunction(t.teardownElementEvent)?t.teardownElementEvent(r,i):g(r,i,gr,!0)})},gr=function(t,i){var l,e,s,h;if(ed(),o("onGuideAdvanced called","guides"),i=vf(t,i),!i)return o("missing step.  can't advance",["guides","error"]),tt(),void b("onGuideAdvanced: missing step");if(t&&f.isNumber(t.steps)&&t.steps>1){var a=t.steps-1,r=et(i.guideId),c=f.indexOf(r.steps,i),u=c+a;for(u>=r.steps.length&&(u=r.steps.length-1),l=u,t.skip===!0&&(l=c+1),e=c;l>e;++e)i=r.steps[e],yf(r.id,i.id,n.get_visitor_id()),si(r.id,i.id,"advanced");return gr(r.steps[u])}s=i.id;h=i.guideId;o("advancing guide");yf(h,s,n.get_visitor_id());o("stop guide");tt();o("update guide status");si(h,s,"advanced");nt={guideId:h,guideStepId:s,time:(new Date).getTime(),state:"advanced"};pf(nt);o("start guides");ft()},od=function(t,i){var u,e,r;if(i=vf(t,i),!i)return tt(),void b("onGuidePrevious: missing step");var h=(i.id,i.guideId),o=et(h),s=f.indexOf(o.steps,i);0!==s&&(u="element"==i.advanceMethod?"click":"mouseover",e=n.getElementForGuideStep(i),"tooltip"===i.type&&f.isFunction(i.teardownElementEvent)?i.teardownElementEvent(e,u):g(e,u,gr,!0),r=o.steps[s-1],tt(),si(i.guideId,i.id,"active"),si(r.guideId,r.id,"active"),nt={guideId:r.guideId,guideStepId:r.id,time:(new Date).getTime(),state:"active"},pf(nt),ft())};n._addCredits=function(t){if(!e("._pendo-credits_",t).length){var i=e("<div>").addClass("_pendo-credits_").html('<img src="'+lh()+'/img/tiny-logo.png" />').css({bottom:0,right:n.TOOLTIP_ARROW_SIZE});ei.push(i[0]);i.appendTo(t)}};var vt=function(n){return n?(n.overrideElement||da(n.getGuide())||(n.overrideElement=sd(n)),n.overrideElement?(k("step has an override-element specified: "+n.overrideElement),n.overrideElement):la(n)):(o("Can't get element for null step"),null)},la=function(n){var t=n.elementPathRule||null,i;return k("looking for element using selector: "+t),i=t?s(t):[w()],0===i.length?(k("Couldn't find element: "+t),null):f.first(i)},nu=function(n){if(vh(n))return!1;if(!n.elementPathRule&&"lightbox"==n.type)return!0;var t=vt(n);return yt(t)},ns=function(n){return ha+n.id},aa=function(n){var t=n.element,i=f.first(s("#"+ns(n))),r;if(t&&i){if(r=yt(t),r||e.hasClass(i,"mouseover"))return void setTimeout(function(){aa(n)},uu);n.hide?(n.hide(),oi()||(tt(),ft())):(tt(),ft())}else!t&&i&&(n.hide?(n.hide(),oi()||(tt(),ft())):(tt(),ft()))},va=function(){return!1},sd=function(n){return f.first(s("#_pendo-badge_"+n.id))},lit=function(n){return oi()?!1:nu(n)?"lightbox"==n.type?ps(n):"tooltip"==n.type?he(n):!1:!1},di=function(n,t){var i,r;return!n||!n.guideId?!1:(i=et(n.guideId),!i)?!1:(oi()&&(r=vf(),ca(r),go()),i.launch(t),i.isShown())},ya=function(n,t,i,r){var u=tu({type:"guideSeen",guideId:n,stepId:t,visitorId:i,reason:r});wf(u)},pa=function(n,t,i){var r=tu("guideDismissed",n,t,i);wf(r)},yf=function(n,t,i){var r=tu("guideAdvanced",n,t,i);wf(r)},pf=function(t){var i=h.stringify(t),r=1e4;o("writing "+i+" to a cookie named lastStepAdvanced for "+r);n._set_cookie("lastStepAdvanced",i,r)},tu=function(t,i,r,u,f){var e,o;return"object"==typeof t&&(e=t,t=e.type,i=e.guideId,r=e.stepId,u=e.visitorId,f=e.reason),o={},o.guide_id=i,o.guide_step_id=r,f&&(o.reason=f),{type:t,visitor_id:u,account_id:n.get_account_id(),browser_time:(new Date).getTime(),url:n.url.externalizeURL(),props:o}},wa=null,ba=function(n){t.clearTimeout(wa);wa=t.setTimeout(is,n)},wf=function(n,t){t=t||500;n.props.duration=(new Date).getTime()-bo;dr.push(n);ba(t)},hd=function(t,i){if("dismissed"===t.state)return null;var r=et(t.guideId);return r.nextStep(t,i||n.getCurrentUrl())},cd=function(n,t){var i=et(n&&n.id);return i?i.shouldAutoDisplay(t):!1};n.getCurrentUrl=function(){return n.normalizedUrl||t.location.href};var bf=function(n){return n&&n.launchMethod&&n.launchMethod.indexOf("badge")>=0},ka=function(n){return n&&n.launchMethod&&n.launchMethod.indexOf("auto")>=0},da=function(n){return n&&n.isMultiStep&&!(n.attributes&&"group"==n.attributes.type)};n.testUrlForStep=function(t,i){if(!n.doesExist(t))return!0;var f=new RegExp(t),r=null,u=i.indexOf("?");if(-1==u)r=i;else{var e=i.substr(0,u),o=i.substr(u+1),s=o.split("&");r=e+"?"+s.sort().join("&")}return f.test(r)};n.showGuideByName=function(t){var i=n.findGuideByName(t);return i?di(f.first(i.steps)):!1};n.showGuideById=function(t){var i=n.findGuideById(t);return i?di(f.first(i.steps)):!1};var ld=function(){var r=n._get_cookie("lastStepAdvanced"),t,i;if(r){t=h.parse(r);o("applying cookie to guide list "+r);t[0]&&(t={guideId:t[0],guideStepId:t[1],state:"advanced",time:(new Date).getTime()});var s=t.guideId,u=t.guideStepId,e=et(s);e&&(i=n.findStepInGuide(e,u),i&&i.seenState!=t.state&&(o("making sure that seenState = 'advanced' for lastStepAdvanced: "+u),i.seenState=t.state));o("updating lastGuideStepSeen so that the state matches our local value for "+u);f.extend(nt,t)}},hi=function(){return iu()&&sr().width<=320?!0:/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(tc())},iu=function(){return"undefined"!=typeof selmo&&!!selmo.isPreviewing},ts=function(){tt();tv();ss();bs();pi()},ad=function(){n.guides&&(n.guides.length=0,v.length=0,gf.length=0);kd()},vd=function(){var t;return function(i,r,u){var l=f.uniqueId(),s;t=l;s=af();s?(o("sending metadata: "+h.stringify(s),["guides","metadata"]),r.metadata=s):o("no metadata to send",["guides","metadata"]);var c=n.compress(r),e=wo.buildUrl(i,{jzb:c,v:st,ct:(new Date).getTime()}),a=1e3;e.length>a&&(k("Max length exceeded for a guide.js request"),r.url=kc(a,r.url),c=n.compress(r),e=wo.buildUrl(i,{jzb:c,v:st,ct:(new Date).getTime()}));e.length>de?(k("Couldn't request guide.js"),b("Guide.js url is "+e.length+" characters long. Dropping."),ke(e),u("error: guide.js url too long")):wo.load(e,function(){l===t&&u.apply(this,arguments)})}}(),yd=function(t,i,r,u){var h,e=c.defer(),l=!1,a,s;return(o("loading guides for "+r+"...","guides"),t=t||n.apiKey,i=i||n.get_visitor_id(),r=n.url.externalizeURL(r),ts(),ad(),!ge(no()))?(o("bad url:  probably local file system","guides","error"),f.isFunction(u)&&u("error: invalid url"),e.reject(),e.promise):(a={visitorId:i,accountId:n.get_account_id(),url:r},vd(t,a,function(){!l&&rf()&&(o("successfully loaded guides for "+r,"guides"),ts(),nt=n.lastGuideStepSeen,v=f.chain(n.guides).sortBy(function(n,t){return n.attributes&&!isNaN(n.attributes.priority)&&f.isNumber(n.attributes.priority)?-n.attributes.priority:t}).map(ch).value(),ld(),v.length?c.all([ph(),gk(n.globalJsUrl),dp(kp(n.guideWidget,n.guides))]).then(function(){oy();ft();clearTimeout(h);f.isFunction(u)&&u();e.resolve()},function(){e.reject()}):e.resolve())}),s=ht("guideTimeout")||ht("guides.timeout"),f.isNumber(s)&&(h=setTimeout(function(){l=!0;e.reject()},s)),e.promise)},is=function(){var n=[].concat(dr);dr=[];n.length>0&&f.map(n,ac)},pd=function(){return dr},ga=function(){dr=[];l(t,"unload",is);var i=ht("guides.tooltip.arrowSize");f.isNumber(i)&&(n.TOOLTIP_ARROW_SIZE=i)},kf=function(){return ht("guides.disabled",!1)||ht("disableGuides",!1)},wd=function(){return ht("guides.delay",!1)||ht("delayGuides",!1)},ru=function(n){ui.disableGuides=n};n.guidesProcessingThreadHandle=null;var uu=500,nv=function(t){t=t||uu;n.guidesProcessingThreadHandle=f.delay(function(){n.guidesProcessingThreadHandle=null;ft()},t)},tv=function(){n.guidesProcessingThreadHandle&&(clearTimeout(n.guidesProcessingThreadHandle),n.guidesProcessingThreadHandle=null)},tt=function(){var n,t;for(kv(),go(),n=0;n<ei.length;n++)t=ei[n],t.parentNode.removeChild(t);ei.length=0},fu="default",df={},bd=function(n,t){df[n]=t},iv=function(n){return n&&"default"!=n?df[n]?void(fu=n):void alert("Bad Mode: "+n):void(fu="default")},kd=f.partial(iv,"default"),ft=function(){if(tv(),kf())return void o("guides are disabled.","guides","disabled");if(wd())return void o("guides are delayed.","guides","delayed");try{if(!v||0===v.length)return;gd()(v)}catch(n){vi(n,"ERROR in guide-loop")}finally{nv()}},dd=function(){ht("delayGuides")&&delete ui.delayGuides;ht("guides.delay")&&delete ui.guides.delay;ft()},gd=function(){return df[fu]?df[fu]:rv},rv=function(n){if(tg(n),ig(n),oi()){var t=ci();f.each(t.steps,function(n){ng(t.guide,n)})}else rg(n)},ng=function(n,t){var i=t.element,r=e("."+sa);return i&&(yt(i)||r.hasClass("mouseover"))?void("tooltip"==t.type&&gn(t)):void("tooltip"===t.type&&wh(i)||t.hide())},tg=function(n){var t=f.filter(n,bf);t.length>0;f.each(t,function(n){n.placeBadge()})},ig=function(n){ty(n)},rg=function(t){var u=n.getCurrentUrl(),i=f.find(t,function(n){return n.isContinuation(nt,u)}),e,r;if(i)return i.show("auto"),void!i.isShown();r=f.filter(t,ka);r.length>0;e=f.find(r,function(n){return n.autoDisplay(u),n.isShown()})},rs="onboarding",gf=[],us=[],ug=function(n){n=[].concat(n);us=f.union(us,n)},fg=function(n){return f.contains(us,n)},eg=["PENDO_API_KEY","b4eb7727-86c5-4ebd-6f2f-d5b6e55f70fd","8eead585-6d70-4a13-7912-eac8cd2c1113","38ed73be-7827-42db-5df6-3451c47f688d"],og=function(){return f.contains(eg,n.apiKey)},sg=function(t){return t=t||v,hi()||kr()?!1:og()?n.guideWidget&&n.guideWidget.data&&n.guideWidget.data.onboarding?!1:(gf=f.filter(t,gi),0===gf.length?!1:!0):!1},hg=function(){var t,i;ts();su();t=n.guideWidget;t&&(t.hidePoweredBy=!0,t.data&&(t.data.enableSearch=!1));i=f.extend({addHeight:70,addWidth:-10,addUISection:lg},n.guideWidget.data);vu(i,!1);e(y).addClass("onboarding");e(rt).addClass("onboarding setup");cg(fs());iv(rs)},cg=function(n){n.percentComplete>0||"yes"==gu("launcher-closed")},lg=function(n){var t="<div class='_pendo-launcher-onboarding-progress_'><div class='_pendo-progress-area-inner_'><label class='percentComplete'><\/label><label>% Complete<\/label><div class='_pendo-progress-bar-outer_'><div class='_pendo-progress-bar-inner_'><\/div><\/div><\/div><\/div>";e("._pendo-launcher-footer_",n).append(e(t))},ag=function(n){e("._pendo-progress-area-inner_ label.percentComplete").html(n.percentComplete);e("._pendo-progress-bar-inner_").css("width: "+n.percentComplete+"%")},ait=function(){},gi=function(n){return n&&n.attributes&&!!n.attributes.isOnboarding},vg=function(n){return gi(n)&&hu(n)},uv=function(n){if(fg(n))return!0;var t=f.last(n.steps);return n.steps.length>1&&"lightbox"==t.type&&(t=f.last(n.steps,2)[0]),"advanced"==t.seenState||"dismissed"==t.seenState},fv=function(){return!1},ev=function(n){var t=f.pluck(n.steps,"seenState"),i=f.any(t,function(n){return"active"==n});return i?!0:2==f.size(f.uniq(t))},ov=function(n){return f.any(f.initial(f.pluck(n.steps,"seenState")),function(n){return"dismissed"==n})?!0:f.all(f.pluck(n.steps,"seenState"),function(n){return"undefined"==typeof n})},fs=function(n){n=n||gf;var t=f.filter(n,uv),i=f.filter(f.without.apply(f,[n].concat(t)),fv),r=f.filter(f.without.apply(f,[n].concat(t,i)),ev),u=f.filter(f.without.apply(f,[n].concat(t,i,r)),ov);return{total:n.length,isCompleted:n.length==t.length+i.length,percentComplete:Math.round((t.length+i.length)/n.length*100),completed:t,skipped:i,inProgress:r,notStarted:u}},yg=function(){var t=fs(),n=e(rt);n.removeClass("setup");t.isCompleted?n.addClass("complete"):n.removeClass("complete")},pg=function(){var n=e(rt);return n.hasClass("complete")},wg=function(n){var i=f.filter(n,vg),t=fs();ug(t.completed);ag(t);bg(i);ty=function(){return!0};rv(n);e(rt).hasClass("setup")||pg()||!t.isCompleted||(yg(),gg())};bd(rs,wg);var bg=function(n){var t=s("._pendo-launcher_ ._pendo-launcher-guide-listing_");return t.length?(t=t[0],f.map(n,function(n){rn(t,n)}),n.length):(o("missing luancher body","launcher","guides"),!1)},kg=function(n,t){return"complete"==n?"complete":t},dg=function(n,t,i){i!=t&&"complete"==i&&tn(n);i!=t&&"skipped"==i&&nn(n)},gg=function(){},nn=function(n){sv(n)},tn=function(n){sv(n)},sv=function(){ds()},rn=function(n,t){var i,u=hv(t),h=s("#launcher-"+t.id),r,o,f;return h.length?(i=h[0],r=fn(i),o=kg(r,u),r!=o&&(f=e(i),f.removeClass(eu("bad")),f.removeClass(eu(r)),f.addClass(eu(o))),dg(t,r,u)):(i=uy(t),e(i).addClass(eu(u)),n.appendChild(i)),un(t,u,i),i},un=function(n,t,i){var r,u=s("._pendo-launcher-item-status_",i),f;u.length?r=u[0]:(r=e("<div class='_pendo-launcher-item-status_'><\/div>")[0],i.appendChild(r));f="skipped"==t?"Task Skipped":"in-progress"==t?"Task in Progress ("+cv(null,n)+")":"";e(r).html(f)},eu=function(n){return"_pendo-onboarding-status-"+n+"_"},hv=function(n){return uv(n)?"complete":fv(n)?"skipped":ev(n)?"in-progress":ov(n)?"not-started":"bad"},fn=function(n){return n?f.find(["complete","skipped","in-progress","not-started"],function(t){return e(n).hasClass(eu(t))}):null},ci=function(){var t,i,r,n=f.find(v,function(n){return n.isShown()});return n?(t=f.find(n.steps,function(n,t){return r=t,n.isShown()}),i=f.filter(n.steps,function(n){return n.isShown()}),{guide:n,steps:i,step:t,stepIndex:r}):null},en=function(t){var i=ci(),r,u;i&&(r=i.guide.steps[i.stepIndex+1],u=function(){var t=s(r.elementPathRule);0!==t.length&&n._.some(t,yt)?n.onGuideAdvanced(i.step):n.onGuideAdvanced(r)},t=t||0,setTimeout(u,t))},on=function(t,i){var f=ci(),r,u;i=i||f.step.elementPathRule;r=s(i)[0];u=function(){n.onGuideAdvanced();g(r,t,u,!0)};l(r,t,u,!0)},sn=function(){var r;e("._pendo-guide_").css("display:none;");var u=n.getCurrentUrl(),s=ci(),t=s.guide.steps,h=f.filter(f.rest(t),function(n){return!!n.pageId}),i=f.indexOf(t,f.find(h,function(t){return n.testUrlForStep(t.regexUrlRule,u)}));if(o("startingPoint is "+i),-1==i)return void e("._pendo-guide_").css("display:block;");r=t[Math.max(0,i-1)];n.log("found starting step to be "+r.id);n.onGuideAdvanced(r)},cv=function(n,t,i){var u,r,e;if(t)i||(u=[].concat(t.steps).reverse(),i=f.findWhere(u,{seenState:"active"}));else{if(r=ci(),!r)return;t=r.guide;i=r.step}return n=n||"Step <%= currPos %> of <%= total %>",n=f.template(n),e={currPos:t.getPositionOfStep(i),total:t.getTotalSteps()},n(e)};n.guideDev={getActiveGuide:ci,smartNextStep:en,smartFirstStep:sn,advanceOn:on,renderStepPosition:cv};n.badgesShown={};lv="_pendo-badge_";es=la;wt.create=function(n){var t=wt.findStep(n);if(t)return f.reduce(wt.behaviors,function(i,r){return r.call(i,n,t)},n.attributes.badge)};wt.findStep=function(n){var t=f.find(n.steps,function(n){return!!n.elementPathRule});if(t&&n.attributes&&n.attributes.badge)return t};wt.behaviors=[au,wt,cp,lp,ap,vp,yp];var os=function(t,i){i=i||n.badgesShown;var u=i[t.id],f=u?u.step:wt.findStep(t),e=u?u.target:es(f);f.elementPathRule&&n.isElementVisible(e)&&n.Sizzle.matchesSelector(e,f.elementPathRule)?(u||(u=wt.create(t)),u.show(),i[t.id]=u):u&&(u.step.isShown()||(u.step.overrideElement=r,i[t.id]=r,u.hide()))},vit=function(t){var i=n.badgesShown[t.id];return i&&i.element||null},ss=function(){f.map(n.badgesShown,hs);n.badgesShown={}},hs=function(n){n&&f.isFunction(n.hide)&&n.hide()},hn=function(t){var i=n.badgesShown[t.id];i&&hs(i)},cn=function(){k("adjustBadgesForResize firing");f.map(n.badgesShown,function(n){n&&n.show()})};l(t,"resize",f.debounce(cn,50));n.TOOLTIP_DEFAULT_WIDTH=430;n.TOOLTIP_DEFAULT_HEIGHT=200;n.TOOLTIP_ARROW_SIZE=15;var ln="_pendo-guide-tt_",an="_pendo-guide-mobile-tt_",vn=function(){return hi()?an:ln},yn=function(n){return"#_pendo_g_"+n.id},av=function(n,t){var u=ot(n),i;if(0===u.height&&0===u.width)return null;var r=t.guideElement,f=t.attributes.height,o=t.attributes.width,s=t.attributes.layoutDir;return r.addClass(vn()),i=nr(u,f,o,s),t&&(t.dim=i),r.css({width:i.width,height:i.height,left:i.left,top:i.top}),u.fixed&&r.css({position:"fixed"}),e("._pendo-guide-container_",r).addClass(i.arrowPosition).css({top:i.content.top,left:i.content.left,width:i.content.width,height:i.content.height}),ou(r[0],i),r[0]},ou=function(t,i){var h=["top","right","bottom","left"],u="_pendo-guide-arrow-",c=u+"border-",r=i.arrowPosition,l=f.chain(h).filter(function(n){return n!==r}).map(function(t){return"border-"+t+"-width:"+n.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),o=e("div._pendo-guide-arrow_",t).remove().findOrCreate("<div class='_pendo-guide-arrow_'><\/div>"),s=e("div._pendo-guide-arrow-border_ ",t).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'><\/div>");f.each(h,function(n){o.removeClass(u+n+"_").removeClass(n);s.removeClass(c+n+"_").removeClass(n)});o.addClass(u+r+"_").addClass(r).css(l+"top:"+i.arrow.top+"px;left:"+i.arrow.left+"px;");s.addClass(c+r+"_").addClass(r).css(l+"top:"+i.arrow.border.top+"px;left:"+i.arrow.border.left+"px;");e(t).append(o).append(s)},vv=function(i,u){var s,f;if(!he(i))return null;if(u===r&&(u=ei),i.element=vt(i),s=i.element,!s)return o("No element found for step: "+i.id),null;if(ntt(s),f=av(s,i),null===f)return null;f.id=n.getTooltipDivId(i);ko(f,function(){var t=i.getGuide();(!t.isOnboarding()||confirm("Are you sure you want to stop this tutorial?"))&&n.onGuideDismissed(i)});i.hideCredits||n._addCredits(f);e(f).appendTo(w());u.push(f);l(f,"mouseover",n._.partial(e.addClass,f,"mouseover"));l(f,"mouseout",n._.partial(e.removeClass,f,"mouseover"));var p=ot(s),v=ot(f),h=function(n,t){var i=Math.min(n.top,t.top),r=Math.min(n.left,t.left),u=Math.max(n.top+n.height,t.top+t.height),f=Math.max(n.left+n.width,t.left+t.width);return{height:Math.abs(u-i),width:Math.abs(f-r),top:i,left:r}}(p,v);if(uc(h)===!1&&!v.fixed){var y=sr(),c=h.top+h.height-y.height,a=h.left+h.width-y.width;c=0>c?0:c;a=0>a?0:a;t.scrollTo(a,c)}return pv(i),s},cs=function(n,t){return t>n},yv=f.negate(cs),ls=null,pn=function(n){var t=!f.isEqual(n,ls);return ls=n,t},as=null,wn=function(n){var t=!f.isEqual(n,as);return as=n,t},vs=null,bn=function(n){var t=!f.isEqual(n,vs);return vs=n,t},pv=function(n){var t,r,c,u,l;try{if(!n.attributes||!n.attributes.blockOutUI||!n.attributes.blockOutUI.enabled)return;t=n.attributes.blockOutUI;r=[];r.push(n.element);r=r.concat(f.compact(f.flatten(f.map([].concat(t.additionalElements),function(n){return s(n)}))));var h=wp(r),a=t.padding||0,i=it(w());if(h.fixed&&(i.top=0,i.bottom=i.height,i.left=0,i.right=i.width),c=pp(i,h,a),!pn(h)&&!wn(i)&&!bn(c))return;u={"z-index":t.zindex||1e4,position:"fixed"};t.bgColor&&(u["background-color"]=t.bgColor);t.opacity&&(u.opacity=t.opacity);l=e("body");f.each(c,function(n,t){l.append(kn(t,f.extend({},n,u)))})}catch(v){o("Failed to add BlockOut ui","error")}},kn=function(n,t){var i=e("div._pendo-guide-tt-region-block_._pendo-region-"+n+"_");return i=i.length>0?i[0]:e('<div class="_pendo-guide-tt-region-block_ _pendo-region-'+n+'_"><\/div>'),e(i).css(t),i},wv=null,dn=function(n){var t=f.isEqual(n,wv);return wv=n,!t},gn=function(n){var u=vt(n),t=ot(u);if(pv(n),dn(t)){var f=n.attributes.height,o=n.attributes.width,s=n.attributes.layoutDir,i=nr(t,f,o,s),r=e(yn(n));r.css({top:i.top,left:i.left,position:t.fixed?"fixed":""});ou(r,i)}},ntt=function(n){var t,r,i,f,e,u,o=/(auto|scroll)/,s=w();if(!yt(n,o))for(r=at(n,o);r&&r!==s;)t=it(n),i=it(r),f=0,e=0,t.bottom>i.bottom&&(f+=t.bottom-i.bottom,t.top-=f,t.bottom-=f),t.top<i.top&&(u=i.top-t.top,f-=u,t.top+=u,t.bottom+=u),t.right>i.right&&(e+=t.right-i.right,t.left-=e,t.right-=e),t.left<i.left&&(u=i.left-t.left,e-=u,t.left+=u,t.right+=u),r.scrollTop+=f,r.scrollLeft+=e,r=at(r,o)},nr=function(t,i,r,u){var e=n.TOOLTIP_ARROW_SIZE,f={arrow:{border:{}},content:{top:e,left:e}},o=n._get_screen_dim();return f.width=Math.min(r,o.width),f.height=i,f.content.width=f.width-2*e,f.content.height=f.height-2*e,u||(u="auto"),f=ttt(f,t,o,u),f=itt(f,t,o,u),f=ys(f,t,o)},ttt=function(t,i,r,u){if("right"==u||"left"==u)return n.log("Setting layout position to "+u),t.arrow.hbias=u,t;var f=r.width/3,e=[f,2*f];return t.arrow.hbias=e[0]<i.left&&i.left<e[1]?"center":i.left<r.width/2?"left":"right",t},itt=function(n,t,i,r){if(r&&"DEFAULT"!=r&&"auto"!=r&&(n.arrowPosition=r),!n.arrowPosition){var u=t.top-li(),f=(u+t.height,t.left-ai()),e=f+t.width;n.arrowPosition=u<i.height/3?"top":u>2*i.height/3||"center"==n.arrow.hbias?"bottom":f<n.width&&i.width-e<n.width?"top":n.arrow.hbias}return n},ys=function(t,i,r){var s=t.height,u=t.width,o,h,c,l,f,e;return ct()?wk(t,i,r):"top"==t.arrowPosition||"bottom"==t.arrowPosition?(o=10,h=0,"top"==t.arrowPosition?(t.top=i.top+i.height,t.arrow.top=wr(9,6)?6:2,h=-1):"bottom"==t.arrowPosition&&(t.top=i.top-s,t.arrow.top=s-n.TOOLTIP_ARROW_SIZE-1,t.arrow.top+=wr(9,6)?6:0,t.arrow.top+=8==p?-1:0,h=1),c=o+n.TOOLTIP_ARROW_SIZE,l=u-3*n.TOOLTIP_ARROW_SIZE-o,("left"==t.arrow.hbias?(t.left=i.left+i.width/2-(o+2*n.TOOLTIP_ARROW_SIZE),t.arrow.left=c):"right"==t.arrow.hbias?(t.left=i.left-u+i.width/2+(o+2*n.TOOLTIP_ARROW_SIZE),t.arrow.left=l):(t.left=i.left+i.width/2-u/2,t.arrow.left=u/2-n.TOOLTIP_ARROW_SIZE),t.arrow.floating!==!1)&&(f=t.left+u-r.width,f-=Math.max(0,t.arrow.left+f-l),f>0&&(t.left-=f,t.arrow.left+=f),e=-t.left,e-=Math.max(0,c-(t.arrow.left-e)),e>0&&(t.left+=e,t.arrow.left-=e)),t.arrow.border.top=t.arrow.top+h,t.arrow.border.left=t.arrow.left,t):("left"==t.arrow.hbias?(t.left=i.left+i.width,t.arrow.left=1,t.arrow.left+=wr(10,6)?5:0,t.arrow.border.left=t.arrow.left-1):"right"==t.arrow.hbias&&(t.left=Math.max(0,i.left-u),t.arrow.left=u-n.TOOLTIP_ARROW_SIZE-1,t.arrow.left+=wr(10,6)?5:0,t.arrow.left+=7==p&&sf>=6?1:0,t.arrow.border.left=t.arrow.left+1),t.top=i.top-s/2+i.height/2,t.arrow.top=s/2-n.TOOLTIP_ARROW_SIZE,t.arrow.border.top=t.arrow.top,t)};n.LB_DEFAULT_WIDTH=500;n.LB_DEFAULT_HEIGHT=500;var rtt="_pendo-guide-lb_",ps=function(n){return nu(n)},ni=null,bv=function(n){return null===ni&&(ni=e("<div/>").addClass("_pendo-backdrop_").appendTo(w())),ct()&&ni.css({height:"100%",width:"100%",position:"absolute"}),n&&e(ni).addClass("_pendo-onboarding_"),ni},kv=function(){ni&&(ni.remove(),ni=null)},utt=function(t){var i=t.guideElement,r=n.TOOLTIP_ARROW_SIZE,u=t.attributes.height,f=t.attributes.width,o=Math.floor(f/2),s=Math.floor(u/2);i.addClass(rtt).css({top:"50%",left:"50%","margin-top":-s,"margin-left":-o});e("._pendo-guide-container_",i).css({bottom:r,right:r});ct()&&i.css({position:"absolute"})},dv=function(n,t){var u,i;if(!ps(n))return null;t===r&&(t=ei);n.element=vt(n);utt(n);u=n.getGuide()?n.getGuide().isOnboarding():!1;bv(u);i=n.guideElement;t.push(i[0]);i.appendTo(w())},ftt="_pendo-guide-mobile-lb_",ett=function(n){var t=n.guideElement;t.addClass(ftt)},ott=function(t,i){function f(n){n.preventDefault()}var s;if(!ps(t))return null;i===r&&(i=ei);t.element=vt(t);ett(t);var h=bv(),u=t.guideElement,o=n.TOOLTIP_ARROW_SIZE;u.css({width:"",height:""});s=e("._pendo-guide-container_",u).css({bottom:o,right:o});e("._pendo-close-guide_",u).remove().prependTo(s);u.appendTo(w());i.push(u[0]);l(h[0],"touchmove",f);l(u[0],"touchmove",f)},stt="._pendo-launcher-search-box_ input",htt=330,ctt=310,y=null,rt=null,gv=!1,ws=function(){return""};n.defaultLauncher=function(n,t){ws=t};fr.create=function(n){return f.reduce(fr.behaviors,function(n,t){return t.call(n)},n)};fr.behaviors=[au,fr,po.Launcher,bp];var su=function(){rt&&(e.removeNode(rt),rt=null);y&&(e.removeNode(y),y=null)},ny=function(){vtt()||gp()?ltt():bs()},ltt=function(){e(y).css("display: ;")},bs=function(){ks();e(y).css("display: none;")},hu=function(n){return n&&f.isFunction(n.shouldBeAddedToLauncher)?n.shouldBeAddedToLauncher():n&&n.launchMethod&&n.launchMethod.indexOf("launcher")>=0},ty=function(t){if(n.guideWidget&&f.isFunction(n.guideWidget.update))return n.guideWidget.update(t)},iy=function(t){var i=f.extend({hidePoweredBy:!1,guides:[]},n.guideWidget);return i.data=f.extend({},i.data),t&&(i.guides=t),i},ry=function(t){var r=n.guideWidget,u=r.template||ws,f=iy(t),i=e("<div>").html(bh(u(f))),o=i.find("._pendo-launcher-guide-listing_").html(),s=i.find("._pendo-launcher-footer_").html();e("._pendo-launcher_ ._pendo-launcher-guide-listing_").html(o);e("._pendo-launcher_ ._pendo-launcher-footer_").html(s)},uy=function(n){var t=i.createElement("div"),r;return e(t).addClass("_pendo-launcher-item_"),e(t).attr("id","launcher-"+n.id),r=i.createElement("a"),r.href="#",r.innerHTML=n.name,t.appendChild(r),t},fy=f.compose(ny,function(n,t){var i,r,u,e;hu(n)&&(i=s("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0],i&&(u=s("#launcher-"+n.id),(r=u.length?u[0]:uy(n),u=u.length>0,f.isNumber(t))?(e=s("._pendo-launcher-item_"),e[t]?r.id!=e[t].id&&i.insertBefore(r,e[t]):i.appendChild(r)):i.appendChild(r)))}),yit=function(){su()},att=function(){return!!rt&&!gv},ey=function(){var n=e(rt);return n.hasClass("_pendo-launcher-active_")},vtt=function(){return s("._pendo-launcher-item_").length>0},ks=function(){var t=e(rt),n="_pendo-launcher-active_";t.hasClass(n)&&(t.removeClass(n),e(y).removeClass(n))},ds=function(){var t=e(rt),n="_pendo-launcher-active_";t.hasClass(n)||(t.addClass(n),e(y).addClass(n))},cu=function(){att()&&(ey()?ks():ds())},oy=function(){try{var i=n.guideWidget||{},r=i.data||{},t=r.device||{desktop:!0,mobile:!1,iframe:!1};if(su(),!hi()&&!t.desktop)return;if(hi()&&!t.mobile)return;if(kr()&&!t.iframe)return;i.enabled&&(vu(r),bs(),sg()&&hg())}catch(u){vi(u,"ERROR while initializing launcher")}},gs=function(n){"complete"===i.readyState?n():l(t,"load",n)},nh=function(n,t){if(t||(t=0),t>=200)return n;if(f.isArray(n))return f.map(n,function(n){return nh(n,t+1)});if(!f.isObject(n)||f.isDate(n)||f.isRegExp(n)||f.isElement(n))return f.isString(n)?f.escape(n):n;var i={};return f.each(n,function(n,r){i[r]=nh(n,t+1)}),i};n.compress=function(t){var i=n.toUTF8Array(h.stringify(t)),r=new gh.Deflate(i),u=r.compress();return n.fromByteArray(u)};ti=function(t){if("undefined"!=typeof t){f.isString(t)||(t=h.stringify(t));var i=n.toUTF8Array(t);return gh.CRC32.calc(i,0,i.length)}};n.squeezeAndCompress=function(t){return n.compress(t)};n.letters="abcdefghijklmnopqrstuvwxyz";n.charset=n.letters+n.letters.toUpperCase()+"1234567890";n.randomElement=function(n){return n[Math.floor(Math.random()*n.length)]};n.randomString=function(t){for(var i="",r=0;t>r;r++)i+=n.randomElement(n.charset.split(""));return i};n.toUTF8Array=function(n){for(var t,i=[],r=0;r<n.length;r++)t=n.charCodeAt(r),128>t?i.push(t):2048>t?i.push(192|t>>6,128|63&t):55296>t||t>=57344?i.push(224|t>>12,128|t>>6&63,128|63&t):(r++,t=65536+((1023&t)<<10|1023&n.charCodeAt(r)),i.push(240|t>>18,128|t>>12&63,128|t>>6&63,128|63&t));return i};tr=function(t,i,r){return n.doesExist(t)&&n.doesExist(i)?(r&&(t=t.toLowerCase(),i=i.toLowerCase()),t.indexOf(i)>-1):!1};!function(){function i(n){function o(n){return t[n>>18&63]+t[n>>12&63]+t[n>>6&63]+t[63&n]}for(var i,e=n.length%3,r="",u=0,f=n.length-e;f>u;u+=3)i=(n[u]<<16)+(n[u+1]<<8)+n[u+2],r+=o(i);switch(e){case 1:i=n[n.length-1];r+=t[i>>2];r+=t[i<<4&63];break;case 2:i=(n[n.length-2]<<8)+n[n.length-1];r+=t[i>>10];r+=t[i>>4&63];r+=t[i<<2&63]}return r}var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");n._.extend(n,{fromByteArray:i})}(),function(){function v(n,t){var r=n.split("."),i=ct,f;for((r[0]in i)||!i.execScript||i.execScript("var "+r[0]);r.length&&(f=r.shift());)r.length||t===u?i=i[f]?i[f]:i[f]={}:i[f]=t}function o(t,i){if(this.index="number"==typeof i?i:0,this.e=0,this.buffer=t instanceof(n?Uint8Array:Array)?t:new(n?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&tt(this)}function tt(t){var i,r=t.buffer,f=r.length,u=new(n?Uint8Array:Array)(f<<1);if(n)u.set(r);else for(i=0;f>i;++i)u[i]=r[i];return t.buffer=u}function y(t){this.buffer=new(n?Uint16Array:Array)(2*t);this.length=0}function it(t,i){this.d=w;this.i=0;this.input=n&&t instanceof Array?new Uint8Array(t):t;this.c=0;i&&(i.lazy&&(this.i=i.lazy),"number"==typeof i.compressionType&&(this.d=i.compressionType),i.outputBuffer&&(this.a=n&&i.outputBuffer instanceof Array?new Uint8Array(i.outputBuffer):i.outputBuffer),"number"==typeof i.outputIndex&&(this.c=i.outputIndex));this.a||(this.a=new(n?Uint8Array:Array)(32768))}function ot(n,t){this.length=n;this.k=t}function rt(i,r){function p(n,i){var e,r=n.k,f=[],s=0,u,c,a;e=at[n.length];f[s++]=65535&e;f[s++]=e>>16&255;f[s++]=e>>24;switch(t){case 1===r:u=[0,r-1,0];break;case 2===r:u=[1,r-2,0];break;case 3===r:u=[2,r-3,0];break;case 4===r:u=[3,r-4,0];break;case 6>=r:u=[4,r-5,1];break;case 8>=r:u=[5,r-7,1];break;case 12>=r:u=[6,r-9,2];break;case 16>=r:u=[7,r-13,2];break;case 24>=r:u=[8,r-17,3];break;case 32>=r:u=[9,r-25,3];break;case 48>=r:u=[10,r-33,4];break;case 64>=r:u=[11,r-49,4];break;case 96>=r:u=[12,r-65,5];break;case 128>=r:u=[13,r-97,5];break;case 192>=r:u=[14,r-129,6];break;case 256>=r:u=[15,r-193,6];break;case 384>=r:u=[16,r-257,7];break;case 512>=r:u=[17,r-385,7];break;case 768>=r:u=[18,r-513,8];break;case 1024>=r:u=[19,r-769,8];break;case 1536>=r:u=[20,r-1025,9];break;case 2048>=r:u=[21,r-1537,9];break;case 3072>=r:u=[22,r-2049,10];break;case 4096>=r:u=[23,r-3073,10];break;case 6144>=r:u=[24,r-4097,11];break;case 8192>=r:u=[25,r-6145,11];break;case 12288>=r:u=[26,r-8193,12];break;case 16384>=r:u=[27,r-12289,12];break;case 24576>=r:u=[28,r-16385,13];break;case 32768>=r:u=[29,r-24577,13];break;default:throw"invalid distance";}for(e=u,f[s++]=e[0],f[s++]=e[1],f[s++]=e[2],c=0,a=f.length;a>c;++c)l[y++]=f[c];h[f[0]]++;d[f[3]]++;g=n.length+i-1;o=null}var e,w,f,b,a,c,v,o,s,k={},l=n?new Uint16Array(2*r.length):[],y=0,g=0,h=new(n?Uint32Array:Array)(286),d=new(n?Uint32Array:Array)(30),nt=i.i;if(!n){for(f=0;285>=f;)h[f++]=0;for(f=0;29>=f;)d[f++]=0}for(h[256]=1,e=0,w=r.length;w>e;++e){for(f=a=0,b=3;b>f&&e+f!==w;++f)a=a<<8|r[e+f];if(k[a]===u&&(k[a]=[]),c=k[a],!(0<g--)){for(;0<c.length&&32768<e-c[0];)c.shift();if(e+3>=w){for(o&&p(o,-1),f=0,b=w-e;b>f;++f)s=r[e+f],l[y++]=s,++h[s];break}0<c.length?(v=st(r,e,c),o?o.length<v.length?(s=r[e-1],l[y++]=s,++h[s],p(v,0)):p(o,-1):v.length<nt?o=v:p(v,0)):o?p(o,-1):(s=r[e],l[y++]=s,++h[s])}c.push(e)}return l[y++]=256,h[256]++,i.m=h,i.l=d,n?l.subarray(0,y):l}function st(n,t,i){var e,h,r,o,f,s,u=0,c=n.length;o=0;s=i.length;n:for(;s>o;o++){if(e=i[s-o-1],r=3,u>3){for(f=u;f>3;f--)if(n[e+f-1]!==n[t+f-1])continue n;r=u}for(;258>r&&c>t+r&&n[e+r]===n[t+r];)++r;if(r>u&&(h=e,u=r),258===r)break}return new ot(u,t-h)}function k(t,i){var u,o,c,r,s,h=t.length,f=new y(572),e=new(n?Uint8Array:Array)(h);if(!n)for(r=0;h>r;r++)e[r]=0;for(r=0;h>r;++r)0<t[r]&&f.push(r,t[r]);if(u=Array(f.length/2),o=new(n?Uint32Array:Array)(f.length/2),1===u.length)return e[f.pop().index]=1,e;for(r=0,s=f.length/2;s>r;++r)u[r]=f.pop(),o[r]=u[r].value;for(c=ht(o,o.length,i),r=0,s=u.length;s>r;++r)e[u[r].index]=c[r];return e}function ht(t,i,r){function p(n){var t=c[n][l[n]];t===i?(p(n+1),p(n+1)):--y[t];++l[n]}var o,u,f,a,v,e=new(n?Uint16Array:Array)(r),s=new(n?Uint8Array:Array)(r),y=new(n?Uint8Array:Array)(i),h=Array(r),c=Array(r),l=Array(r),w=(1<<r)-i,b=1<<r-1;for(e[r-1]=i,u=0;r>u;++u)b>w?s[u]=0:(s[u]=1,w-=b),w<<=1,e[r-2-u]=(e[r-1-u]/2|0)+i;for(e[0]=s[0],h[0]=Array(e[0]),c[0]=Array(e[0]),u=1;r>u;++u)e[u]>2*e[u-1]+s[u]&&(e[u]=2*e[u-1]+s[u]),h[u]=Array(e[u]),c[u]=Array(e[u]);for(o=0;i>o;++o)y[o]=r;for(f=0;f<e[r-1];++f)h[r-1][f]=t[f],c[r-1][f]=f;for(o=0;r>o;++o)l[o]=0;for(1===s[r-1]&&(--y[0],++l[r-1]),u=r-2;u>=0;--u){for(a=o=0,v=l[u+1],f=0;f<e[u];f++)a=h[u+1][v]+h[u+1][v+1],a>t[o]?(h[u][f]=a,c[u][f]=i,v+=2):(h[u][f]=t[o],c[u][f]=o,++o);l[u]=0;1===s[u]&&p(u)}return y}function d(t){for(var e,h,f=new(n?Uint16Array:Array)(t.length),o=[],s=[],u=0,i=0,r=t.length;r>i;i++)o[t[i]]=(0|o[t[i]])+1;for(i=1,r=16;r>=i;i++)s[i]=u,u+=0|o[i],u<<=1;for(i=0,r=t.length;r>i;i++)for(u=s[t[i]],s[t[i]]+=1,e=f[i]=0,h=t[i];h>e;e++)f[i]=f[i]<<1|1&u,u>>>=1;return f}function p(t,i){this.input=t;this.a=new(n?Uint8Array:Array)(32768);this.d=f.g;var r,u={};!i&&(i={})||"number"!=typeof i.compressionType||(this.d=i.compressionType);for(r in i)u[r]=i[r];u.outputBuffer=this.a;this.j=new it(this.input,u)}var u=void 0,t=!0,ct=this,n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s,g,r,l,a,e,et,b;for(o.prototype.b=function(n,t,i){var s,f=this.buffer,e=this.index,o=this.e,u=f[e];if(i&&t>1&&(n=t>8?(r[255&n]<<24|r[n>>>8&255]<<16|r[n>>>16&255]<<8|r[n>>>24&255])>>32-t:r[n]>>8-t),8>t+o)u=u<<t|n,o+=t;else for(s=0;t>s;++s)u=u<<1|n>>t-s-1&1,8==++o&&(o=0,f[e++]=r[u],u=0,e===f.length&&(f=tt(this)));f[e]=u;this.buffer=f;this.e=o;this.index=e},o.prototype.finish=function(){var u,t=this.buffer,i=this.index;return 0<this.e&&(t[i]<<=8-this.e,t[i]=r[t[i]],i++),n?u=t.subarray(0,i):(t.length=i,u=t),u},g=new(n?Uint8Array:Array)(256),s=0;256>s;++s){for(var h=s,nt=h,ut=7,h=h>>>1;h;h>>>=1)nt<<=1,nt|=1&h,--ut;g[s]=(nt<<ut&255)>>>0}r=g;y.prototype.getParent=function(n){return 2*((n-2)/4|0)};y.prototype.push=function(n,t){var r,u,f,i=this.buffer;for(r=this.length,i[this.length++]=t,i[this.length++]=n;r>0&&(u=this.getParent(r),i[r]>i[u]);)f=i[r],i[r]=i[u],i[u]=f,f=i[r+1],i[r+1]=i[u+1],i[u+1]=f,r=u;return this.length};y.prototype.pop=function(){var u,f,r,t,i,n=this.buffer;for(f=n[0],u=n[1],this.length-=2,n[0]=n[this.length],n[1]=n[this.length+1],i=0;(t=2*i+2,!(t>=this.length))&&(t+2<this.length&&n[t+2]>n[t]&&(t+=2),n[t]>n[i]);)r=n[i],n[i]=n[t],n[t]=r,r=n[i+1],n[i+1]=n[t+1],n[t+1]=r,i=t;return{index:u,value:f,length:this.length}};for(var w=2,lt={NONE:0,h:1,g:w,n:3},c=[],i=0;288>i;i++)switch(t){case 143>=i:c.push([i+48,8]);break;case 255>=i:c.push([i- -256,9]);break;case 279>=i:c.push([i-256,7]);break;case 287>=i:c.push([i-88,8]);break;default:throw"invalid literal: "+i;}it.prototype.f=function(){var wt,ti,tt,ii,lt=this.input,it,p,ci,dt,ut,nt,ki,pt,fi,di,gi,nr,tr,ei,oi;switch(this.d){case 0:for(tt=0,ii=lt.length;ii>tt;){ti=n?lt.subarray(tt,tt+65535):lt.slice(tt,tt+65535);tt+=ti.length;var et=ti,ir=tt===ii,si=u,bt=u,ri=u,kt=u,hi=u,f=this.a,l=this.c;if(n){for(f=new Uint8Array(this.a.buffer);f.length<=l+et.length+5;)f=new Uint8Array(f.length<<1);f.set(this.a)}if(si=ir?1:0,f[l++]=0|si,bt=et.length,ri=~bt+65536&65535,f[l++]=255&bt,f[l++]=bt>>>8&255,f[l++]=255&ri,f[l++]=ri>>>8&255,n)f.set(et,l),l+=et.length,f=f.subarray(0,l);else{for(kt=0,hi=et.length;hi>kt;++kt)f[l++]=et[kt];f.length=l}this.c=l;this.a=f}break;case 1:for(it=new o(n?new Uint8Array(this.a.buffer):this.a,this.c),it.b(1,1,t),it.b(1,2,t),ut=rt(this,lt),p=0,ci=ut.length;ci>p;p++)if(dt=ut[p],o.prototype.b.apply(it,c[dt]),dt>256)it.b(ut[++p],ut[++p],t),it.b(ut[++p],5),it.b(ut[++p],ut[++p],t);else if(256===dt)break;this.a=it.finish();this.c=this.a.length;break;case w:var li,ft,ot,st,ht,at,ai,vt,vi,gt,yi,ct,ni,e,pi,h=new o(n?new Uint8Array(this.a.buffer):this.a,this.c),rr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ui=Array(19);for(li=w,h.b(1,1,t),h.b(li,2,t),ft=rt(this,lt),at=k(this.m,15),ai=d(at),vt=k(this.l,7),vi=d(vt),ot=286;ot>257&&0===at[ot-1];ot--);for(st=30;st>1&&0===vt[st-1];st--);for(var b,r,yt,a,s,wi=ot,bi=st,y=new(n?Uint32Array:Array)(wi+bi),v=new(n?Uint32Array:Array)(316),g=new(n?Uint8Array:Array)(19),i=b=0;wi>i;i++)y[b++]=at[i];for(i=0;bi>i;i++)y[b++]=vt[i];if(!n)for(i=0,yt=g.length;yt>i;++i)g[i]=0;for(i=a=0,yt=y.length;yt>i;i+=b){for(b=1;yt>i+b&&y[i+b]===y[i];++b);if(r=b,0===y[i])if(3>r)for(;0<r--;)v[a++]=0,g[0]++;else for(;r>0;)s=138>r?r:138,s>r-3&&r>s&&(s=r-3),10>=s?(v[a++]=17,v[a++]=s-3,g[17]++):(v[a++]=18,v[a++]=s-11,g[18]++),r-=s;else if(v[a++]=y[i],g[y[i]]++,r--,3>r)for(;0<r--;)v[a++]=y[i],g[y[i]]++;else for(;r>0;)s=6>r?r:6,s>r-3&&r>s&&(s=r-3),v[a++]=16,v[a++]=s-3,g[16]++,r-=s}for(wt=n?v.subarray(0,a):v.slice(0,a),gt=k(g,7),e=0;19>e;e++)ui[e]=gt[rr[e]];for(ht=19;ht>4&&0===ui[ht-1];ht--);for(yi=d(gt),h.b(ot-257,5,t),h.b(st-1,5,t),h.b(ht-4,4,t),e=0;ht>e;e++)h.b(ui[e],3,t);for(e=0,pi=wt.length;pi>e;e++)if(ct=wt[e],h.b(yi[ct],gt[ct],t),ct>=16){switch(e++,ct){case 16:ni=2;break;case 17:ni=3;break;case 18:ni=7;break;default:throw"invalid code: "+ct;}h.b(wt[e],ni,t)}for(ei=[ai,at],oi=[vi,vt],di=ei[0],gi=ei[1],nr=oi[0],tr=oi[1],nt=0,ki=ft.length;ki>nt;++nt)if(pt=ft[nt],h.b(di[pt],gi[pt],t),pt>256)h.b(ft[++nt],ft[++nt],t),fi=ft[++nt],h.b(nr[fi],tr[fi],t),h.b(ft[++nt],ft[++nt],t);else if(256===pt)break;this.a=h.finish();this.c=this.a.length;break;default:throw"invalid compression type";}return this.a};var ft=function(){function u(n){switch(t){case 3===n:return[257,n-3,0];case 4===n:return[258,n-4,0];case 5===n:return[259,n-5,0];case 6===n:return[260,n-6,0];case 7===n:return[261,n-7,0];case 8===n:return[262,n-8,0];case 9===n:return[263,n-9,0];case 10===n:return[264,n-10,0];case 12>=n:return[265,n-11,1];case 14>=n:return[266,n-13,1];case 16>=n:return[267,n-15,1];case 18>=n:return[268,n-17,1];case 22>=n:return[269,n-19,2];case 26>=n:return[270,n-23,2];case 30>=n:return[271,n-27,2];case 34>=n:return[272,n-31,2];case 42>=n:return[273,n-35,3];case 50>=n:return[274,n-43,3];case 58>=n:return[275,n-51,3];case 66>=n:return[276,n-59,3];case 82>=n:return[277,n-67,4];case 98>=n:return[278,n-83,4];case 114>=n:return[279,n-99,4];case 130>=n:return[280,n-115,4];case 162>=n:return[281,n-131,5];case 194>=n:return[282,n-163,5];case 226>=n:return[283,n-195,5];case 257>=n:return[284,n-227,5];case 258===n:return[285,n-258,0];default:throw"invalid length: "+n;}}for(var i,r=[],n=3;258>=n;n++)i=u(n),r[n]=i[2]<<24|i[1]<<16|i[0];return r}(),at=n?new Uint32Array(ft):ft,f=lt;if(p.prototype.f=function(){var p,l,a,s,u,t,i=0,r,e,w,o;switch(t=this.a,p=Math.LOG2E*Math.log(32768)-8,l=p<<4|8,t[i++]=l,this.d){case f.NONE:s=0;break;case f.h:s=1;break;case f.g:s=2;break;default:throw Error("unsupported compression type");}if(a=s<<6|0,t[i++]=a|31-(256*l+a)%31,r=this.input,"string"==typeof r){for(o=r.split(""),e=0,w=o.length;w>e;e++)o[e]=(255&o[e].charCodeAt(0))>>>0;r=o}for(var v,h=1,y=0,c=r.length,b=0;c>0;){v=c>1024?1024:c;c-=v;do h+=r[b++],y+=h;while(--v);h%=65521;y%=65521}return u=(y<<16|h)>>>0,this.j.c=i,t=this.j.f(),i=t.length,n&&(t=new Uint8Array(t.buffer),t.length<=i+4&&(this.a=new Uint8Array(t.length+4),this.a.set(t),t=this.a),t=t.subarray(0,i+4)),t[i++]=u>>24&255,t[i++]=u>>16&255,t[i++]=u>>8&255,t[i++]=255&u,t},v("Zlib.Deflate",p),v("Zlib.Deflate.compress",function(n,t){return new p(n,t).f()}),v("Zlib.Deflate.prototype.compress",p.prototype.f),b={NONE:f.NONE,FIXED:f.h,DYNAMIC:f.g},Object.keys)l=Object.keys(b);else for(a in l=[],e=0,b)l[e++]=a;for(e=0,et=l.length;et>e;++e)a=l[e],v("Zlib.Deflate.CompressionType."+a,b[a])}.call(n),function(){function t(n,t){var u=n.split("."),r=i,f;for((u[0]in r)||!r.execScript||r.execScript("var "+u[0]);u.length&&(f=u.shift());)u.length||void 0===t?r=r[f]?r[f]:r[f]={}:r[f]=t}var i=this,n={c:function(t,i,r){return n.update(t,0,i,r)},update:function(t,i,r,u){var f=n.a,e="number"==typeof r?r:r=0,o="number"==typeof u?u:t.length;for(i^=4294967295,e=7&o;e--;++r)i=i>>>8^f[255&(i^t[r])];for(e=o>>3;e--;r+=8)i=i>>>8^f[255&(i^t[r])],i=i>>>8^f[255&(i^t[r+1])],i=i>>>8^f[255&(i^t[r+2])],i=i>>>8^f[255&(i^t[r+3])],i=i>>>8^f[255&(i^t[r+4])],i=i>>>8^f[255&(i^t[r+5])],i=i>>>8^f[255&(i^t[r+6])],i=i>>>8^f[255&(i^t[r+7])];return(4294967295^i)>>>0},d:function(t,i){return(n.a[255&(t^i)]^t>>>8)>>>0},b:[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]};n.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(n.b):n.b;t("Zlib.CRC32",n);t("Zlib.CRC32.calc",n.c);t("Zlib.CRC32.update",n.update)}.call(n);h=t.JSON;h||(h={}),function(){function i(n){return 10>n?"0"+n:n}function e(n){return s.lastIndex=0,s.test(n)?'"'+n.replace(s,function(n){var t=c[n];return"string"==typeof t?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,r){var s,l,h,a,c,v=n,o=r[i];switch(o&&"object"==typeof o&&"function"==typeof o.toJSON&&(o=o.toJSON(i)),"function"==typeof t&&(o=t.call(r,i,o)),typeof o){case"string":return e(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=f,c=[],"[object Array]"===Object.prototype.toString.apply(o)){for(a=o.length,s=0;a>s;s+=1)c[s]=u(s,o)||"null";return h=0===c.length?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&"object"==typeof t)for(a=t.length,s=0;a>s;s+=1)"string"==typeof t[s]&&(l=t[s],h=u(l,o),h&&c.push(e(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=u(l,o),h&&c.push(e(l)+(n?": ":":")+h));return h=0===c.length?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var o=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,f,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;"function"!=typeof h.stringify&&(h.stringify=function(i,r,e){var o;if(n="",f="","number"==typeof e)for(o=0;e>o;o+=1)f+=" ";else"string"==typeof e&&(f=e);if(t=r,r&&"function"!=typeof r&&("object"!=typeof r||"number"!=typeof r.length))throw new Error("JSON.stringify");return u("",{"":i})});"function"!=typeof h.parse&&(h.parse=function(text,reviver){function walk(n,t){var u,f,i=n[t];if(i&&"object"==typeof i)for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&(f=walk(i,u),f!==r?i[u]=f:delete i[u]);return reviver.call(n,t,i)}var j;if(text=String(text),o.lastIndex=0,o.test(text)&&(text=text.replace(o,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}();"function"!=typeof h.decycle&&!function(){function n(n){var t="";switch(n.nodeType){case n.ELEMENT_NODE:t=n.nodeName.toLowerCase();n.id.length?t+="#"+n.id:(n.className.length&&(t+="."+n.className.replace(/ /,".")),"textContent"in n&&(t+="{textContent:"+(n.textContent.length<20?n.textContent:n.textContent.substr(0,20)+"...")+"}"));break;default:t=n.nodeName;null!==n.nodeValue&&(t+="{value:"+(n.nodeValue.length<20?n.nodeValue:n.nodeValue.substr(0,20)+"...")+"}")}return t}h.decycle=function(t,i){var r=[],i="undefined"==typeof i?!1:i,u=[];return function f(t,e){var o,s,c;if(i&&"object"==typeof t&&null!==t&&"nodeType"in t)return n(t);if(!("object"!=typeof t||null===t||t instanceof Boolean||t instanceof Date||t instanceof Number||t instanceof RegExp||t instanceof String)){for(o=0;o<r.length;o+=1)if(r[o]===t)return{$ref:u[o]};if(r.push(t),u.push(e),"[object Array]"===Object.prototype.toString.apply(t))for(c=[],o=0;o<t.length;o+=1)c[o]=f(t[o],e+"["+o+"]");else{c={};for(s in t)Object.prototype.hasOwnProperty.call(t,s)&&(c[s]=f(t[s],e+"["+h.stringify(s)+"]"))}return c}return t}(t,"$")}}();"function"!=typeof h.retrocycle&&(h.retrocycle=function(n){var t=/^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;return function i(value){var i,item,name,path;if(value&&"object"==typeof value)if("[object Array]"===Object.prototype.toString.apply(value))for(i=0;i<value.length;i+=1)item=value[i],item&&"object"==typeof item&&(path=item.$ref,"string"==typeof path&&t.test(path)?value[i]=eval(path):i(item));else for(name in value)"object"==typeof value[name]&&(item=value[name],item&&(path=item.$ref,"string"==typeof path&&t.test(path)?value[name]=eval(path):i(item)))}(n),n});sy=f.memoize(function(t,i){t=t||"Function";i=i?" and "+i:"";n.log(t+" deprecated"+i)});a=function(n,t,i){return function(){return sy(t,i),n.apply(null,arguments)}};n.SHADOW_STYLE="";f.extend(n,{_showElementGuide:a(vv,"_showElementGuide","is going away"),flushNow:a(pi,"pendo.flushNow","is going away"),flushEventCache:a(io,"pendo.flushEventCache","is going away"),HOST:lr,MAX_LENGTH:bc,MAX_NUM_EVENTS:wc,_createToolTip:a(av,"pendo._createToolTip","is going away"),_get_tooltip_dimensions:a(nr,"pendo._get_tooltip_dimensions","is going away"),_isOldIE:a(wr,"pendo._isOldIE","is going away"),_logMessage:a(b,"pendo._logMessage","is going away"),_sendEvent:a(dc,"pendo._sendEvent","is going away"),_sendGuideEvent:a(ac,"pendo._sendGuideEvent","is going away"),_stopEvents:tf,_storeInCache:a(to,"pendo._storeInCache","is going away"),_writeEventImgTag:a(lc,"pendo._writeEventImgTag","is going away"),_writeImgTag:a(vc,"pendo._writeImgTag","is going away"),attachEvent:a(l,"pendo.attachEvent","is going away"),detachEvent:a(g,"pendo.detachEvent","is going away"),getText:a(ee,"pendo.getText","is going away"),getUA:a(tc,"pendo.getUA","is going away"),ifDebugThen:a(f.indentity,"pendo.ifDebugThen","is gone"),send_event:a(ar,"pendo.send_event","has changed to pendo.cache.createEvent"),shouldSendEvents:a(rf,"pendo.shouldSendEvents","has changed to pendo.transmit.isSendingEvents"),stopSendingEvents:a(yc,"pendo.stopSendingEvents","has changed to pendo.transmit.stopSendEvents"),wire_page:a(rl,"pendo.wire_page","is going away"),findGuideBy:td,findGuideById:et,findStepInGuide:rd,_updateGuideStepStatus:si,_addCloseButton:ko,initialize:hl,getEventCache:pd,processEventCache:is,isGuideShown:oi,_getNextStepInMultistep:hd,badgeDiv:y,launcherToolTipDiv:rt,updateOptions:ta,createLauncher:vu,initLauncher:oy,_addGuideToLauncher:fy,isAnonymousVisitor:wu,DEFAULT_VISITOR_ID:hr,shouldIdentityChange:sc,read:gu,write:cr,_delete_cookie:lw,_set_cookie:we,_get_cookie:pe,get_cookie_key:du,ENV:nc,eventCache:yi,_getOpacityStyles:a(function(){},"pendo._getOpacityStyles","is going away"),setStyle:lt,_createGuideEvent:tu,seenGuide:ya,dismissedGuide:pa,advancedGuide:yf,seenTime:bo,placeBadge:os,isBadge:bf,showPreview:a(va,"pendo.showPreview","is going away"),removeAllBadges:ss,tellMaster:vo,DEFAULT_TIMER_LENGTH:uu,registerMessageHandler:ao,_get_offset:ot,_shouldAutoDisplayGuide:cd,removeBadge:hs,_showLightboxGuide:dv,_showGuide:di,getElementForGuideStep:vt,isElementVisible:yt,getTooltipDivId:ns,setupWatchOnTooltip:aa,detectMaster:kr,listenToMaster:oa,start:gs,SEND_INTERVAL:pc,stageGuideEvent:wf,startStagedTimer:ba,isURLValid:ge,getURL:no,_get_screen_dim:sr,_isInViewport:uc,_getCss3Prop:rc,waitThenStartGuides:nv});var ir=!1,ne={getEventCache:function(){return[].concat(yi)},getAllGuides:function(){return[].concat(v)},getAutoGuides:function(){return f.filter(v,ka)},getBadgeGuides:function(){return f.filter(v,bf)},getLauncherGuides:function(){return f.filter(v,hu)},getEventHistory:function(){return uf},getOriginalOptions:function(){return ui},getBody:e.getBody},ytt=function(n){return n=n||!1,n?ir:ir?"Yes":"No"},ptt=function(t){return ir?t?ne:"debugging already enabled":(ir=!0,n.debugging=ne,t?ne:"debugging enabled")},wtt=function(){return ir?(ir=!1,n.debugging=null,delete n.debugging,"debugging disabled"):"debugging already disabled"},k=function(n){o(n,"debug")};f.extend(k,ne);n.getVersion=uw;n.isReady=eo;n.pageLoad=pr;n.getVisitorId=n.get_visitor_id;n.getAccountId=n.get_account_id;n.flushNow=pi;n.initGuides=ga;n.loadGuides=yd;n.findGuideByName=id;n.hideGuides=go;n.onGuideDismissed=fd;n.onGuideAdvanced=gr;n.onGuidePrevious=od;n.startGuides=dd;n.stopGuides=tt;n.toggleLauncher=cu;n.showLauncher=ds;n.hideLauncher=ks;n.removeLauncher=su;n.defaultCssUrl=ah();n.areGuidesDisabled=kf;n.setGuidesDisabled=ru;n.dom=e;n.log=o;n.enableLogging=ul;n.disableLogging=fl;n.setActiveContexts=sl;n.showLogHistory=el;n.getLoggedContexts=ol;n.isDebuggingEnabled=ytt;n.enableDebugging=ptt;n.disableDebugging=wtt;var hy={dom:e,placeBadge:os,showPreview:va,stopGuides:tt,removeAllBadges:ss,_:f,sizzle:s,tellMaster:vo,tell:vo,log:o,attachEvent:l,createLauncher:vu,removeLauncher:su,addGuideToLauncher:fy,updateLauncherContent:ry,DEFAULT_TIMER_LENGTH:uu,getOffsetPosition:ot,getScreenDimensions:sr,registerMessageHandler:ao,whenLoadedCall:gs,loadResource:n.loadResource,loadGuideCss:ph,GuideFactory:ch,GuideStep:pt,extractElementTreeContext:tl},btt=function(){hy.areGuidesEnabled=!kf();n.designer||(n.designer=hy)},ktt=function(){n.designer&&(n.designer=null,delete n.designer)};"undefined"!=typeof Prototype&&parseFloat(Prototype.Version.substr(0,3))<1.7&&"undefined"!=typeof Array.prototype.toJSON&&(cy=h.stringify,h.stringify=function(n){var i=Array.prototype.toJSON,t;return delete Array.prototype.toJSON,t=cy(n),Array.prototype.toJSON=i,t});f.each(["identify","updateOptions","pageLoad"],function(t){var i=n[t];n[t]=function(){try{if(eo())i.apply(this,arguments);else{var r=n._q=n._q||[];r.push([t].concat(Array.prototype.slice.call(arguments,0)))}}catch(u){vi(u)}}});gs(rw)}}(),pendo.defaultLauncher('<div class="_pendo-launcher-content_" style="border-color:<%= data.color %>">\n    <div class="_pendo-launcher-header_">\n        <img src="<%= data.launcherBadgeUrl %>"/>\n        <div class="_pendo-launcher-title_"><%= data.title %><\/div>\n        <% if (data.enableSearch) { %>\n        <div class="_pendo-launcher-search-box_">\n        <input type="text" placeholder="Type here to start looking..." />\n        <\/div>\n        <% } %>\n    <\/div>\n    <div class="_pendo-launcher-guide-listing_">\n    <% pendo._.each(guides, function(guide) { %>\n        <div class="_pendo-launcher-item_" id="launcher-<%= guide.id %>">\n            <a href="javascript:void(0);"><%= guide.name %><\/a>\n        <\/div>\n    <% }) %>\n    <\/div>\n    <% if (hidePoweredBy) { %>\n    <div class="_pendo-launcher-footer_"><\/div>\n    <% } else { %>\n    <div class="_pendo-launcher-footer_ _pendo-launcher-footer-credits_">\n        <span>powered by pendo<\/span>\n    <\/div>\n    <% } %>\n<\/div>\n',function(n){n||(n={});var __t,__p="";Array.prototype.join;with(n)__p+='<div class="_pendo-launcher-content_" style="border-color:'+(null==(__t=data.color)?"":__t)+'">\n    <div class="_pendo-launcher-header_">\n        <img src="'+(null==(__t=data.launcherBadgeUrl)?"":__t)+'"/>\n        <div class="_pendo-launcher-title_">'+(null==(__t=data.title)?"":__t)+"<\/div>\n        ",data.enableSearch&&(__p+='\n        <div class="_pendo-launcher-search-box_">\n        <input type="text" placeholder="Type here to start looking..." />\n        <\/div>\n        '),__p+='\n    <\/div>\n    <div class="_pendo-launcher-guide-listing_">\n    ',pendo._.each(guides,function(n){__p+='\n        <div class="_pendo-launcher-item_" id="launcher-'+(null==(__t=n.id)?"":__t)+'">\n            <a href="javascript:void(0);">'+(null==(__t=n.name)?"":__t)+"<\/a>\n        <\/div>\n    "}),__p+="\n    <\/div>\n    ",__p+=hidePoweredBy?'\n    <div class="_pendo-launcher-footer_"><\/div>\n    ':'\n    <div class="_pendo-launcher-footer_ _pendo-launcher-footer-credits_">\n        <span>powered by pendo<\/span>\n    <\/div>\n    ',__p+="\n<\/div>\n";return __p}))}(window,document)};(function(){var y=this,at=y._,e={},r=Array.prototype,g=Object.prototype,vt=Function.prototype,nt=r.push,i=r.slice,o=r.concat,f=g.toString,yt=g.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,s=r.indexOf,st=r.lastIndexOf,pt=Array.isArray,ht=Object.keys,p=vt.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},t,w,b,h,c,k,l,a,u,ct,lt,v;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):y._=n;n.VERSION="1.6.0";t=n.each=n.forEach=function(t,i,r){var o,u,f;if(t==null)return t;if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;u<f;u++)if(i.call(r,t[u],u,t)===e)return}else for(o=n.keys(t),u=0,f=o.length;u<f;u++)if(i.call(r,t[o[u]],o[u],t)===e)return;return t};n.map=n.collect=function(n,i,r){var u=[];return n==null?u:it&&n.map===it?n.map(i,r):(t(n,function(n,t,f){u.push(i.call(r,n,t,f))}),u)};w="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(i,r,u,f){var e=arguments.length>2;if(i==null&&(i=[]),rt&&i.reduce===rt)return f&&(r=n.bind(r,f)),e?i.reduce(r,u):i.reduce(r);if(t(i,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(w);return u};n.reduceRight=n.foldr=function(i,r,u,f){var o=arguments.length>2,e,s;if(i==null&&(i=[]),ut&&i.reduceRight===ut)return f&&(r=n.bind(r,f)),o?i.reduceRight(r,u):i.reduceRight(r);if(e=i.length,e!==+e&&(s=n.keys(i),e=s.length),t(i,function(n,t,h){t=s?s[--e]:--e;o?u=r.call(f,u,i[t],t,h):(u=i[t],o=!0)}),!o)throw new TypeError(w);return u};n.find=n.detect=function(n,t,i){var r;return b(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r};n.filter=n.select=function(n,i,r){var u=[];return n==null?u:ft&&n.filter===ft?n.filter(i,r):(t(n,function(n,t,f){i.call(r,n,t,f)&&u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(i,r,u){r||(r=n.identity);var f=!0;return i==null?f:et&&i.every===et?i.every(r,u):(t(i,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return e}),!!f)};b=n.some=n.any=function(i,r,u){r||(r=n.identity);var f=!1;return i==null?f:ot&&i.some===ot?i.some(r,u):(t(i,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return e}),!!f)};n.contains=n.include=function(n,t){return n==null?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:b(n,function(n){return n===t})};n.invoke=function(t,r){var u=i.call(arguments,2),f=n.isFunction(r);return n.map(t,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.max.apply(Math,i);var f=-Infinity,e=-Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o>e&&(f=n,e=o)}),f};n.min=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.min.apply(Math,i);var f=Infinity,e=Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o<e&&(f=n,e=o)}),f};n.shuffle=function(i){var u,f=0,r=[];return t(i,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};h=function(t){return t==null?n.identity:n.isFunction(t)?t:n.property(t)};n.sortBy=function(t,i,r){return i=h(i),n.pluck(n.map(t,function(n,t,u){return{value:n,index:t,criteria:i.call(r,n,t,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};c=function(n){return function(i,r,u){var f={};return r=h(r),t(i,function(t,e){var o=r.call(u,t,e,i);n(f,o,t)}),f}};n.groupBy=c(function(t,i,r){n.has(t,i)?t[i].push(r):t[i]=[r]});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(n,t,i,r){var f;i=h(i);for(var o=i.call(r,t),u=0,e=n.length;u<e;)f=u+e>>>1,i.call(r,n[f])<o?u=f+1:e=f;return u};n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,t,r){if(n!=null)return t==null||r?n[0]:t<0?[]:i.call(n,0,t)};n.initial=function(n,t,r){return i.call(n,0,n.length-(t==null||r?1:t))};n.last=function(n,t,r){if(n!=null)return t==null||r?n[n.length-1]:i.call(n,Math.max(n.length-t,0))};n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,t==null||r?1:t)};n.compact=function(t){return n.filter(t,n.identity)};k=function(i,r,u){return r&&n.every(i,n.isArray)?o.apply(u,i):(t(i,function(t){n.isArray(t)||n.isArguments(t)?r?nt.apply(u,t):k(t,r,u):u.push(t)}),u)};n.flatten=function(n,t){return k(n,t,[])};n.without=function(t){return n.difference(t,i.call(arguments,1))};n.partition=function(n,i){var r=[],u=[];return t(n,function(n){(i(n)?r:u).push(n)}),[r,u]};n.uniq=n.unique=function(i,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(i,u,f):i,o=[],e=[];return t(s,function(t,u){(r?u&&e[e.length-1]===t:n.contains(e,t))||(e.push(t),o.push(i[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(t){var r=i.call(arguments,1);return n.filter(n.uniq(t),function(t){return n.every(r,function(i){return n.contains(i,t)})})};n.difference=function(t){var u=o.apply(r,i.call(arguments,1));return n.filter(t,function(t){return!n.contains(u,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;t<i;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(t==null)return-1;var u=0,f=t.length;if(r)if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else return u=n.sortedIndex(t,i),t[u]===i?u:-1;if(s&&t.indexOf===s)return t.indexOf(i,r);for(;u<f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(n==null)return-1;if(u=i!=null,st&&n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);u<r;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(t,r){var u,f;if(p&&t.bind===p)return p.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError;return u=i.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=t.prototype,e=new l,l.prototype=null,n=t.apply(e,u.concat(i.call(arguments))),Object(n)===n)?n:e:t.apply(r,u.concat(i.call(arguments)))}};n.partial=function(t){var r=i.call(arguments,1);return function(){for(var f=0,i=r.slice(),u=0,e=i.length;u<e;u++)i[u]===n&&(i[u]=arguments[f++]);while(f<arguments.length)i.push(arguments[f++]);return t.apply(this,i)}};n.bindAll=function(r){var u=i.call(arguments,1);if(u.length===0)throw new Error("bindAll must be passed function names");return t(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)};n.defer=function(t){return n.delay.apply(n,[t,1].concat(i.call(arguments,1)))};n.throttle=function(t,i,r){var u,f,s,e=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();e=null;s=t.apply(u,f);u=f=null},function(){var c=n.now(),l;return o||r.leading!==!1||(o=c),l=i-(c-o),u=this,f=arguments,l<=0?(clearTimeout(e),e=null,o=c,s=t.apply(u,f),u=f=null):e||r.trailing===!1||(e=setTimeout(h,l)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c<i?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),e=f=null))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(t,i){return n.partial(i,t)};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i>=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ht)return ht(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n};n.pick=function(n){var u={},f=o.apply(r,i.call(arguments,1));return t(f,function(t){t in n&&(u[t]=n[t])}),u};n.omit=function(t){var f={},e=o.apply(r,i.call(arguments,1));for(var u in t)n.contains(e,u)||(f[u]=t[u]);return f};n.defaults=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};a=function(t,i,r,u){var l,v,h,c,e,o,s;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!=f.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:t==0?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if(typeof t!="object"||typeof i!="object")return!1;for(v=r.length;v--;)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in i)return!1;if(r.push(t),u.push(i),e=0,o=!0,l=="[object Array]"){if(e=t.length,o=e==i.length,o)while(e--)if(!(o=a(t[e],i[e],r,u)))break}else{for(s in t)if(n.has(t,s)&&(e++,!(o=n.has(i,s)&&a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!e--)break;o=!e}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=pt||function(n){return f.call(n)=="[object Array]"};n.isObject=function(n){return n===Object(n)};t(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return f.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!!(t&&n.has(t,"callee"))});typeof/./!="function"&&(n.isFunction=function(n){return typeof n=="function"});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!=+t};n.isBoolean=function(n){return n===!0||n===!1||f.call(n)=="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return yt.call(n,t)};n.noConflict=function(){return y._=at,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.property=function(n){return function(t){return t[n]}};n.matches=function(n){return function(t){if(t===n)return!0;for(var i in n)if(n[i]!==t[i])return!1;return!0}};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;r<n;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};u.unescape=n.invert(u.escape);ct={escape:new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return n==null?"":(""+n).replace(ct[t],function(n){return u[t][n]})}});n.result=function(t,i){if(t==null)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(i){t(n.functions(i),function(t){var r=n[t]=i[t];n.prototype[t]=function(){var t=[this._wrapped];return nt.apply(t,arguments),v.call(this,r.apply(n,t))}})};lt=0;n.uniqueId=function(n){var t=++lt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var d=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||d).source,(r.interpolate||d).source,(r.evaluate||d).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};v=function(t){return this._chain?n(t).chain():t};n.mixin(n);t(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t=="shift"||t=="splice")&&n.length===0&&delete n[0],v.call(this,n)}});t(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this._wrapped,arguments))}});n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}});typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}).call(this),function(){(function(n){var r=this||eval("this"),t=r.document,f=r.navigator,i=r.jQuery,u=r.JSON;(function(n){"function"==typeof define&&define.amd?define(["exports","require"],n):"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):n(r.ko={})})(function(e,o){function b(n,t){return null===n||typeof n in nt?n===t:!1}function tt(t,i){var r;return function(){r||(r=s.a.setTimeout(function(){r=n;t()},i))}}function it(n,t){var i;return function(){clearTimeout(i);i=s.a.setTimeout(n,t)}}function rt(n,t){t&&t!==p?"beforeChange"===t?this.Kb(n):this.Ha(n,t):this.Lb(n)}function ut(n,t){null!==t&&t.k&&t.k()}function ft(n,t){var i=this.Hc,r=i[h];r.R||(this.lb&&this.Ma[t]?(i.Pb(t,n,this.Ma[t]),this.Ma[t]=null,--this.lb):r.r[t]||i.Pb(t,n,r.s?{ia:n}:i.uc(n)))}function k(n,t,i,r){s.d[n]={init:function(n,u,f,e,o){var c,h;return s.m(function(){var l=s.a.c(u()),f=!i!=!l,e=!h;(e||t||f!==c)&&(e&&s.va.Aa()&&(h=s.a.ua(s.f.childNodes(n),!0)),f?(e||s.f.da(n,s.a.ua(h)),s.eb(r?r(o,l):o,n)):s.f.xa(n),c=f)},null,{i:n}),{controlsDescendantBindings:!0}}};s.h.ta[n]=!1;s.f.Z[n]=!0}var s="undefined"!=typeof e?e:{},nt,p,l,v,a,y,h,d,g,w;s.b=function(n,t){for(var i=n.split("."),r=s,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};s.G=function(n,t,i){n[t]=i};s.version="3.4.0";s.b("version",s.version);s.options={deferUpdates:!1,useOnlyNativeEvents:!1};s.a=function(){function o(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])}function l(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function a(n,t){return n.__proto__=t,n}function v(n,t,i,r){var u=n[t].match(c)||[];s.a.q(i.match(c),function(n){s.a.pa(u,n,r)});n[t]=u.join(" ")}var y={__proto__:[]}instanceof Array,w="function"==typeof Symbol,h={},p={};h[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");o(h,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)p[t[i]]=n});var b={propertychange:!0},e=t&&function(){for(var i=3,r=t.createElement("div"),u=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++i+"]><i><\/i><![endif]-->",u[0];);return 4<i?i:n}(),c=/\S+/g;return{cc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],q:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i],i)},o:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},Sb:function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r))return n[r];return null},La:function(n,t){var i=s.a.o(n,t);0<i?n.splice(i,1):0===i&&n.shift()},Tb:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>s.a.o(i,n[t])&&i.push(n[t]);return i},fb:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i],i));return r},Ka:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i],i)&&r.push(n[i]);return r},ra:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},pa:function(n,t,i){var r=s.a.o(s.a.zb(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},ka:y,extend:l,Xa:a,Ya:y?a:l,D:o,Ca:function(n,t){if(!n)return n;var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i],i,n));return r},ob:function(n){for(;n.firstChild;)s.removeNode(n.firstChild)},jc:function(n){n=s.a.V(n);for(var r=(n[0]&&n[0].ownerDocument||t).createElement("div"),i=0,u=n.length;i<u;i++)r.appendChild(s.$(n[i]));return r},ua:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?s.$(r):r);return u},da:function(n,t){if(s.a.ob(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},qc:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)s.removeNode(r[i])}},za:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);for(;1<n.length&&n[n.length-1].parentNode!==t;)n.length--;if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)n.push(i),i=i.nextSibling;n.push(r)}}return n},sc:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},$a:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},nd:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},Mc:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(3===n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},nb:function(n){return s.a.Mc(n,n.ownerDocument.documentElement)},Qb:function(n){return!!s.a.Sb(n,s.a.nb)},A:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},Wb:function(n){return s.onError?function(){try{return n.apply(this,arguments)}catch(t){throw s.onError&&s.onError(t),t;}}:n},setTimeout:function(n,t){return setTimeout(s.a.Wb(n),t)},$b:function(n){setTimeout(function(){s.onError&&s.onError(n);throw n;},0)},p:function(n,t,r){var u=s.a.Wb(r),f,o;if(r=e&&b[t],s.options.useOnlyNativeEvents||r||!i)if(r||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)f=function(t){u.call(n,t)},o="on"+t,n.attachEvent(o,f),s.a.F.oa(n,function(){n.detachEvent(o,f)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(t,u,!1);else i(n).bind(t,u)},Da:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var f;if("input"===s.a.A(n)&&n.type&&"click"==u.toLowerCase()?(f=n.type,f="checkbox"==f||"radio"==f):f=!1,s.options.useOnlyNativeEvents||!i||f)if("function"==typeof t.createEvent)if("function"==typeof n.dispatchEvent)f=t.createEvent(p[u]||"HTMLEvents"),f.initEvent(u,!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if(f&&n.click)n.click();else if("undefined"!=typeof n.fireEvent)n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");else i(n).trigger(u)},c:function(n){return s.H(n)?n():n},zb:function(n){return s.H(n)?n.t():n},bb:function(n,t,i){var r;t&&("object"==typeof n.classList?(r=n.classList[i?"add":"remove"],s.a.q(t.match(c),function(t){r.call(n.classList,t)})):"string"==typeof n.className.baseVal?v(n.className,"baseVal",t,i):v(n,"className",t,i))},Za:function(t,i){var r=s.a.c(i),u;(null===r||r===n)&&(r="");u=s.f.firstChild(t);!u||3!=u.nodeType||s.f.nextSibling(u)?s.f.da(t,[t.ownerDocument.createTextNode(r)]):u.data=r;s.a.Rc(t)},rc:function(n,i){if(n.name=i,7>=e)try{n.mergeAttributes(t.createElement("<input name='"+n.name+"'/>"),!1)}catch(r){}},Rc:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},Nc:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},hd:function(n,t){n=s.a.c(n);t=s.a.c(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},V:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},Yb:function(n){return w?Symbol(n):n},rd:6===e,sd:7===e,C:e,ec:function(n,t){for(var r=s.a.V(n.getElementsByTagName("input")).concat(s.a.V(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},ed:function(n){return"string"==typeof n&&(n=s.a.$a(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},Eb:function(n,t,i){if(!u||!u.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return u.stringify(s.a.c(n),t,i)},fd:function(n,i,r){var v,e,h,f,u,c;r=r||{};var l=r.params||{},a=r.includeFields||this.cc,v=n;if("object"==typeof n&&"form"===s.a.A(n))for(v=n.action,e=a.length-1;0<=e;e--)for(h=s.a.ec(n,a[e]),f=h.length-1;0<=f;f--)l[h[f].name]=h[f].value;i=s.a.c(i);u=t.createElement("form");u.style.display="none";u.action=v;u.method="post";for(c in i)n=t.createElement("input"),n.type="hidden",n.name=c,n.value=s.a.Eb(s.a.c(i[c])),u.appendChild(n);o(l,function(n,i){var r=t.createElement("input");r.type="hidden";r.name=n;r.value=i;u.appendChild(r)});t.body.appendChild(u);r.submitter?r.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();s.b("utils",s.a);s.b("utils.arrayForEach",s.a.q);s.b("utils.arrayFirst",s.a.Sb);s.b("utils.arrayFilter",s.a.Ka);s.b("utils.arrayGetDistinctValues",s.a.Tb);s.b("utils.arrayIndexOf",s.a.o);s.b("utils.arrayMap",s.a.fb);s.b("utils.arrayPushAll",s.a.ra);s.b("utils.arrayRemoveItem",s.a.La);s.b("utils.extend",s.a.extend);s.b("utils.fieldsIncludedWithJsonPost",s.a.cc);s.b("utils.getFormFields",s.a.ec);s.b("utils.peekObservable",s.a.zb);s.b("utils.postJson",s.a.fd);s.b("utils.parseJson",s.a.ed);s.b("utils.registerEventHandler",s.a.p);s.b("utils.stringifyJson",s.a.Eb);s.b("utils.range",s.a.hd);s.b("utils.toggleDomNodeCssClass",s.a.bb);s.b("utils.triggerEvent",s.a.Da);s.b("utils.unwrapObservable",s.a.c);s.b("utils.objectForEach",s.a.D);s.b("utils.addOrRemoveItem",s.a.pa);s.b("utils.setTextContent",s.a.Za);s.b("unwrap",s.a.c);Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i;return 1===arguments.length?function(){return t.apply(n,arguments)}:(i=Array.prototype.slice.call(arguments,1),function(){var r=i.slice(0);return r.push.apply(r,arguments),t.apply(n,r)})});s.a.e=new function(){function r(r,f){var e=r[t];if(!e||"null"===e||!i[e]){if(!f)return n;e=r[t]="ko"+u++;i[e]={}}return i[e]}var u=0,t="__ko__"+(new Date).getTime(),i={};return{get:function(t,i){var u=r(t,!1);return u===n?n:u[i]},set:function(t,i,u){(u!==n||r(t,!1)!==n)&&(r(t,!0)[i]=u)},clear:function(n){var r=n[t];return r?(delete i[r],n[t]=null,!0):!1},I:function(){return u+++t}}};s.b("utils.domData",s.a.e);s.b("utils.domData.clear",s.a.e.clear);s.a.F=new function(){function t(t,i){var r=s.a.e.get(t,u);return r===n&&i&&(r=[],s.a.e.set(t,u,r)),r}function r(n){var i=t(n,!1),u;if(i)for(i=i.slice(0),u=0;u<i.length;u++)i[u](n);if(s.a.e.clear(n),s.a.F.cleanExternalData(n),f[n.nodeType])for(i=n.firstChild;n=i;)i=n.nextSibling,8===n.nodeType&&r(n)}var u=s.a.e.I(),e={1:!0,8:!0,9:!0},f={1:!0,9:!0};return{oa:function(n,i){if("function"!=typeof i)throw Error("Callback must be a function");t(n,!0).push(i)},pc:function(i,r){var f=t(i,!1);f&&(s.a.La(f,r),0==f.length&&s.a.e.set(i,u,n))},$:function(n){var t,i,u;if(e[n.nodeType]&&(r(n),f[n.nodeType]))for(t=[],s.a.ra(t,n.getElementsByTagName("*")),i=0,u=t.length;i<u;i++)r(t[i]);return n},removeNode:function(n){s.$(n);n.parentNode&&n.parentNode.removeChild(n)},cleanExternalData:function(n){i&&"function"==typeof i.cleanData&&i.cleanData([n])}}};s.$=s.a.F.$;s.removeNode=s.a.F.removeNode;s.b("cleanNode",s.$);s.b("removeNode",s.removeNode);s.b("utils.domNodeDisposal",s.a.F);s.b("utils.domNodeDisposal.addDisposeCallback",s.a.F.oa);s.b("utils.domNodeDisposal.removeDisposeCallback",s.a.F.pc),function(){var h=[0,"",""],u=[1,"<table>","<\/table>"],f=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],e=[1,"<select multiple='multiple'>","<\/select>"],c={thead:u,tbody:u,tfoot:u,tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:f,th:f,option:e,optgroup:e},o=8>=s.a.C;s.a.ma=function(n,u){var f,e;if(i){if(i.parseHTML)f=i.parseHTML(n,u)||[];else if((f=i.clean([n],u))&&f[0]){for(e=f[0];e.parentNode&&11!==e.parentNode.nodeType;)e=e.parentNode;e.parentNode&&e.parentNode.removeChild(e)}}else{(f=u)||(f=t);var e=f.parentWindow||f.defaultView||r,v=s.a.$a(n).toLowerCase(),l=f.createElement("div"),a;for(a=(v=v.match(/^<([a-z]+)[ >]/))&&c[v[1]]||h,v=a[0],a="ignored<div>"+a[1]+n+a[2]+"<\/div>","function"==typeof e.innerShiv?l.appendChild(e.innerShiv(a)):(o&&f.appendChild(l),l.innerHTML=a,o&&l.parentNode.removeChild(l));v--;)l=l.lastChild;f=s.a.V(l.lastChild.childNodes)}return f};s.a.Cb=function(t,r){if(s.a.ob(t),r=s.a.c(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),i)i(t).html(r);else for(var f=s.a.ma(r,t.ownerDocument),u=0;u<f.length;u++)t.appendChild(f[u])}}();s.b("utils.parseHtmlFragment",s.a.ma);s.b("utils.setHtml",s.a.Cb);s.M=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=s.M.lc(n.nodeValue),null!=r&&t.push({Lc:n,cd:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{wb:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},xc:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},yc:function(n,t){var f=[],u,o,r,e;for(i(n,f),u=0,o=f.length;u<o;u++)r=f[u].Lc,e=[r],t&&s.a.ra(e,t),s.M.xc(f[u].cd,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},lc:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();s.b("memoization",s.M);s.b("memoization.memoize",s.M.wb);s.b("memoization.unmemoize",s.M.xc);s.b("memoization.parseMemoText",s.M.lc);s.b("memoization.unmemoizeDomNodeAndDescendants",s.M.yc);s.Y=function(){function f(){if(n)for(var t=n,r=0,f;i<n;)if(f=u[i++]){if(i>t){if(5e3<=++r){i=n;s.a.$b(Error("'Too much recursion' after processing "+r+" task groups."));break}t=n}try{f()}catch(e){s.a.$b(e)}}}function e(){f();i=n=u.length=0}var u=[],n=0,o=1,i=0;return{scheduler:r.MutationObserver?function(n){var i=t.createElement("div");return new MutationObserver(n).observe(i,{attributes:!0}),function(){i.classList.toggle("foo")}}(e):t&&"onreadystatechange"in t.createElement("script")?function(n){var i=t.createElement("script");i.onreadystatechange=function(){i.onreadystatechange=null;t.documentElement.removeChild(i);i=null;n()};t.documentElement.appendChild(i)}:function(n){setTimeout(n,0)},Wa:function(t){return n||s.Y.scheduler(e),u[n++]=t,o++},cancel:function(t){t-=o-n;t>=i&&t<n&&(u[t]=null)},resetForTesting:function(){var t=n-i;return i=n=u.length=0,t},md:f}}();s.b("tasks",s.Y);s.b("tasks.schedule",s.Y.Wa);s.b("tasks.runEarly",s.Y.md);s.ya={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return s.B({read:n,write:function(r){clearTimeout(i);i=s.a.setTimeout(function(){n(r)},t)}})},rateLimit:function(n,t){var i,r,u;"number"==typeof t?i=t:(i=t.timeout,r=t.method);n.cb=!1;u="notifyWhenChangesStop"==r?it:tt;n.Ta(function(n){return u(n,i)})},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.cb||(t.cb=!0,t.Ta(function(i){var r;return function(){s.Y.cancel(r);r=s.Y.Wa(i);t.notifySubscribers(n,"dirty")}}))},notify:function(n,t){n.equalityComparer="always"==t?null:b}};nt={undefined:1,boolean:1,number:1,string:1};s.b("extenders",s.ya);s.vc=function(n,t,i){this.ia=n;this.gb=t;this.Kc=i;this.R=!1;s.G(this,"dispose",this.k)};s.vc.prototype.k=function(){this.R=!0;this.Kc()};s.J=function(){s.a.Ya(this,l);l.rb(this)};p="change";l={rb:function(n){n.K={};n.Nb=1},X:function(n,t,i){var r=this,u;return i=i||p,u=new s.vc(r,t?n.bind(t):n,function(){s.a.La(r.K[i],u);r.Ia&&r.Ia(i)}),r.sa&&r.sa(i),r.K[i]||(r.K[i]=[]),r.K[i].push(u),u},notifySubscribers:function(n,t){if(t=t||p,t===p&&this.zc(),this.Pa(t))try{s.l.Ub();for(var u=this.K[t].slice(0),r=0,i;i=u[r];++r)i.R||i.gb(n)}finally{s.l.end()}},Na:function(){return this.Nb},Uc:function(n){return this.Na()!==n},zc:function(){++this.Nb},Ta:function(n){var t=this,e=s.H(t),r,u,i,f;t.Ha||(t.Ha=t.notifySubscribers,t.notifySubscribers=rt);f=n(function(){t.Mb=!1;e&&i===t&&(i=t());r=!1;t.tb(u,i)&&t.Ha(u=i)});t.Lb=function(n){t.Mb=r=!0;i=n;f()};t.Kb=function(n){r||(u=n,t.Ha(n,"beforeChange"))}},Pa:function(n){return this.K[n]&&this.K[n].length},Sc:function(n){if(n)return this.K[n]&&this.K[n].length||0;var t=0;return s.a.D(this.K,function(n,i){"dirty"!==n&&(t+=i.length)}),t},tb:function(n,t){return!this.equalityComparer||!this.equalityComparer(n,t)},extend:function(n){var t=this;return n&&s.a.D(n,function(n,i){var r=s.ya[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};s.G(l,"subscribe",l.X);s.G(l,"extend",l.extend);s.G(l,"getSubscriptionsCount",l.Sc);s.a.ka&&s.a.Xa(l,Function.prototype);s.J.fn=l;s.hc=function(n){return null!=n&&"function"==typeof n.X&&"function"==typeof n.notifySubscribers};s.b("subscribable",s.J);s.b("isSubscribable",s.hc);s.va=s.l=function(){function t(t){r.push(n);n=t}function i(){n=r.pop()}var r=[],n,u=0;return{Ub:t,end:i,oc:function(t){if(n){if(!s.hc(t))throw Error("Only subscribable things can act as dependencies");n.gb.call(n.Gc,t,t.Cc||(t.Cc=++u))}},w:function(n,r,u){try{return t(),n.apply(r,u||[])}finally{i()}},Aa:function(){if(n)return n.m.Aa()},Sa:function(){if(n)return n.Sa}}}();s.b("computedContext",s.va);s.b("computedContext.getDependenciesCount",s.va.Aa);s.b("computedContext.isInitial",s.va.Sa);s.b("ignoreDependencies",s.qd=s.l.w);v=s.a.Yb("_latestValue");s.N=function(n){function t(){return 0<arguments.length?(t.tb(t[v],arguments[0])&&(t.ga(),t[v]=arguments[0],t.fa()),this):(s.l.oc(t),t[v])}return t[v]=n,s.a.ka||s.a.extend(t,s.J.fn),s.J.fn.rb(t),s.a.Ya(t,a),s.options.deferUpdates&&s.ya.deferred(t,!0),t};a={equalityComparer:b,t:function(){return this[v]},fa:function(){this.notifySubscribers(this[v])},ga:function(){this.notifySubscribers(this[v],"beforeChange")}};s.a.ka&&s.a.Xa(a,s.J.fn);y=s.N.gd="__ko_proto__";a[y]=s.N;s.Oa=function(t,i){return null===t||t===n||t[y]===n?!1:t[y]===i?!0:s.Oa(t[y],i)};s.H=function(n){return s.Oa(n,s.N)};s.Ba=function(n){return"function"==typeof n&&n[y]===s.N||"function"==typeof n&&n[y]===s.B&&n.Vc?!0:!1};s.b("observable",s.N);s.b("isObservable",s.H);s.b("isWriteableObservable",s.Ba);s.b("isWritableObservable",s.Ba);s.b("observable.fn",a);s.G(a,"peek",a.t);s.G(a,"valueHasMutated",a.fa);s.G(a,"valueWillMutate",a.ga);s.la=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=s.N(n),s.a.Ya(n,s.la.fn),n.extend({trackArrayChanges:!0})};s.la.fn={remove:function(n){for(var u,r=this.t(),i=[],f="function"!=typeof n||s.H(n)?function(t){return t===n}:n,t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.ga(),i.push(u),r.splice(t,1),t--);return i.length&&this.fa(),i},removeAll:function(t){if(t===n){var i=this.t(),r=i.slice(0);return this.ga(),i.splice(0,i.length),this.fa(),r}return t?this.remove(function(n){return 0<=s.a.o(t,n)}):[]},destroy:function(n){var i=this.t(),r="function"!=typeof n||s.H(n)?function(t){return t===n}:n,t;for(this.ga(),t=i.length-1;0<=t;t--)r(i[t])&&(i[t]._destroy=!0);this.fa()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=s.a.o(t,n)}):[]},indexOf:function(n){var t=this();return s.a.o(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.ga(),this.t()[i]=t,this.fa())}};s.a.ka&&s.a.Xa(s.la.fn,s.N.fn);s.a.q("pop push reverse shift sort splice unshift".split(" "),function(n){s.la.fn[n]=function(){var t=this.t(),i;return this.ga(),this.Vb(t,n,arguments),i=t[n].apply(t,arguments),this.fa(),i===t?this:i}});s.a.q(["slice"],function(n){s.la.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});s.b("observableArray",s.la);s.ya.trackArrayChanges=function(n,t){function h(){var e,t;r||(r=!0,e=n.notifySubscribers,n.notifySubscribers=function(n,t){return t&&t!==p||++u,e.apply(this,arguments)},t=[].concat(n.t()||[]),i=null,f=n.X(function(r){if(r=[].concat(r||[]),n.Pa("arrayChange")){var f;(!i||1<u)&&(i=s.a.ib(t,r,n.hb));f=i}t=r;i=null;u=0;f&&f.length&&n.notifySubscribers(f,"arrayChange")}))}if(n.hb={},t&&"object"==typeof t&&s.a.extend(n.hb,t),n.hb.sparse=!0,!n.Vb){var r=!1,i=null,f,u=0,e=n.sa,o=n.Ia;n.sa=function(t){e&&e.call(n,t);"arrayChange"===t&&h()};n.Ia=function(t){o&&o.call(n,t);"arrayChange"!==t||n.Pa("arrayChange")||(f.k(),r=!1)};n.Vb=function(n,t,f){function c(n,t,i){return l[l.length]={status:n,value:t,index:i}}if(r&&!u){var l=[],e=n.length,h=f.length,o=0;switch(t){case"push":o=e;case"unshift":for(t=0;t<h;t++)c("added",f[t],o+t);break;case"pop":o=e-1;case"shift":e&&c("deleted",n[o],o);break;case"splice":t=Math.min(Math.max(0,0>f[0]?e+f[0]:f[0]),e);for(var e=1===h?e:Math.min(t+(f[1]||0),e),h=t+h-2,o=Math.max(e,h),a=[],v=[],y=2;t<o;++t,++y)t<e&&v.push(c("deleted",n[t],t)),t<h&&a.push(c("added",f[y],t));s.a.dc(v,a);break;default:return}i=l}}}};h=s.a.Yb("_state");s.m=s.B=function(t,i,r){function u(){if(0<arguments.length){if("function"==typeof e)e.apply(f.pb,arguments);else throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return this}return s.l.oc(u),(f.S||f.s&&u.Qa())&&u.aa(),f.T}if("object"==typeof t?r=t:(r=r||{},t&&(r.read=t)),"function"!=typeof r.read)throw Error("Pass a function that returns the value of the ko.computed");var e=r.write,f={T:n,S:!0,Ra:!1,Fb:!1,R:!1,Va:!1,s:!1,jd:r.read,pb:i||r.owner,i:r.disposeWhenNodeIsRemoved||r.i||null,wa:r.disposeWhen||r.wa,mb:null,r:{},L:0,bc:null};return u[h]=f,u.Vc="function"==typeof e,s.a.ka||s.a.extend(u,s.J.fn),s.J.fn.rb(u),s.a.Ya(u,c),r.pure?(f.Va=!0,f.s=!0,s.a.extend(u,et)):r.deferEvaluation&&s.a.extend(u,ot),s.options.deferUpdates&&s.ya.deferred(u,!0),f.i&&(f.Fb=!0,f.i.nodeType||(f.i=null)),f.s||r.deferEvaluation||u.aa(),f.i&&u.ba()&&s.a.F.oa(f.i,f.mb=function(){u.k()}),u};var c={equalityComparer:b,Aa:function(){return this[h].L},Pb:function(n,t,i){if(this[h].Va&&t===this)throw Error("A 'pure' computed must not be called recursively");this[h].r[n]=i;i.Ga=this[h].L++;i.na=t.Na()},Qa:function(){var n,t,i=this[h].r;for(n in i)if(i.hasOwnProperty(n)&&(t=i[n],t.ia.Uc(t.na)))return!0},bd:function(){this.Fa&&!this[h].Ra&&this.Fa()},ba:function(){return this[h].S||0<this[h].L},ld:function(){this.Mb||this.ac()},uc:function(n){if(n.cb&&!this[h].i){var t=n.X(this.bd,this,"dirty"),i=n.X(this.ld,this);return{ia:n,k:function(){t.k();i.k()}}}return n.X(this.ac,this)},ac:function(){var n=this,t=n.throttleEvaluation;t&&0<=t?(clearTimeout(this[h].bc),this[h].bc=s.a.setTimeout(function(){n.aa(!0)},t)):n.Fa?n.Fa():n.aa(!0)},aa:function(n){var t=this[h],i=t.wa;if(!t.Ra&&!t.R){if(t.i&&!s.a.nb(t.i)||i&&i()){if(!t.Fb){this.k();return}}else t.Fb=!1;t.Ra=!0;try{this.Qc(n)}finally{t.Ra=!1}t.L||this.k()}},Qc:function(t){var i=this[h],u=i.Va?n:!i.L,r={Hc:this,Ma:i.r,lb:i.L};s.l.Ub({Gc:r,gb:ft,m:this,Sa:u});i.r={};i.L=0;r=this.Pc(i,r);this.tb(i.T,r)&&(i.s||this.notifySubscribers(i.T,"beforeChange"),i.T=r,i.s?this.zc():t&&this.notifySubscribers(i.T));u&&this.notifySubscribers(i.T,"awake")},Pc:function(n,t){try{var i=n.jd;return n.pb?i.call(n.pb):i()}finally{s.l.end();t.lb&&!n.s&&s.a.D(t.Ma,ut);n.S=!1}},t:function(){var n=this[h];return(n.S&&!n.L||n.s&&this.Qa())&&this.aa(),n.T},Ta:function(n){s.J.fn.Ta.call(this,n);this.Fa=function(){this.Kb(this[h].T);this[h].S=!0;this.Lb(this)}},k:function(){var n=this[h];!n.s&&n.r&&s.a.D(n.r,function(n,t){t.k&&t.k()});n.i&&n.mb&&s.a.F.pc(n.i,n.mb);n.r=null;n.L=0;n.R=!0;n.S=!1;n.s=!1;n.i=null}},et={sa:function(n){var i=this,t=i[h],r;!t.R&&t.s&&"change"==n&&(t.s=!1,t.S||i.Qa()?(t.r=null,t.L=0,t.S=!0,i.aa()):(r=[],s.a.D(t.r,function(n,t){r[t.Ga]=n}),s.a.q(r,function(n,r){var f=t.r[n],u=i.uc(f.ia);u.Ga=r;u.na=f.na;t.r[n]=u})),t.R||i.notifySubscribers(t.T,"awake"))},Ia:function(t){var i=this[h];i.R||"change"!=t||this.Pa("change")||(s.a.D(i.r,function(n,t){t.k&&(i.r[n]={ia:t.ia,Ga:t.Ga,na:t.na},t.k())}),i.s=!0,this.notifySubscribers(n,"asleep"))},Na:function(){var n=this[h];return n.s&&(n.S||this.Qa())&&this.aa(),s.J.fn.Na.call(this)}},ot={sa:function(n){"change"!=n&&"beforeChange"!=n||this.t()}};s.a.ka&&s.a.Xa(c,s.J.fn);d=s.N.gd;s.m[d]=s.N;c[d]=s.m;s.Xc=function(n){return s.Oa(n,s.m)};s.Yc=function(n){return s.Oa(n,s.m)&&n[h]&&n[h].Va};s.b("computed",s.m);s.b("dependentObservable",s.m);s.b("isComputed",s.Xc);s.b("isPureComputed",s.Yc);s.b("computed.fn",c);s.G(c,"peek",c.t);s.G(c,"dispose",c.k);s.G(c,"isActive",c.ba);s.G(c,"getDependenciesCount",c.Aa);s.nc=function(n,t){return"function"==typeof n?s.m(n,t,{pure:!0}):(n=s.a.extend({},n),n.pure=!0,s.m(n,t))};s.b("pureComputed",s.nc),function(){function t(u,f,e){if(e=e||new i,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof RegExp||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(i){var r=f(u[i]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[i]=r;break;case"object":case"undefined":s=e.get(r);o[i]=s!==n?s:t(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function i(){this.keys=[];this.Ib=[]}s.wc=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(n,function(n){for(var t=0;s.H(n)&&10>t;t++)n=n();return n})};s.toJSON=function(n,t,i){return n=s.wc(n),s.a.Eb(n,t,i)};i.prototype={save:function(n,t){var i=s.a.o(this.keys,n);0<=i?this.Ib[i]=t:(this.keys.push(n),this.Ib.push(t))},get:function(t){return t=s.a.o(this.keys,t),0<=t?this.Ib[t]:n}}}();s.b("toJS",s.wc);s.b("toJSON",s.toJSON),function(){s.j={u:function(t){switch(s.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?s.a.e.get(t,s.d.options.xb):7>=s.a.C?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex]):n;default:return t.value}},ha:function(t,i,r){switch(s.a.A(t)){case"option":switch(typeof i){case"string":s.a.e.set(t,s.d.options.xb,n);"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__;t.value=i;break;default:s.a.e.set(t,s.d.options.xb,i);t.__ko__hasDomDataOptionValue__=!0;t.value="number"==typeof i?i:""}break;case"select":(""===i||null===i)&&(i=n);for(var f=-1,u=0,o=t.options.length,e;u<o;++u)if(e=s.j.u(t.options[u]),e==i||""==e&&i===n){f=u;break}(r||0<=f||i===n&&1<t.size)&&(t.selectedIndex=f);break;default:(null===i||i===n)&&(i="");t.value=i}}}}();s.b("selectExtensions",s.j);s.b("selectExtensions.readValue",s.j.u);s.b("selectExtensions.writeValue",s.j.ha);s.h=function(){function n(n){var c,u,i;n=s.a.$a(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));var a=[],h=n.match(t),o,r=[],l=0;if(h)for(h.push(","),c=0;u=h[c];++c){if(i=u.charCodeAt(0),44===i){if(0>=l){a.push(o&&r.length?{key:o,value:r.join("")}:{unknown:o||r.join("")});o=l=0;r=[];continue}}else if(58===i){if(!l&&!o&&1===r.length){o=r.pop();continue}}else 47===i&&c&&1<u.length?(i=h[c-1].match(f))&&!e[i[0]]&&(n=n.substr(n.indexOf(u)+1),h=n.match(t),h.push(","),c=-1,u="/"):40===i||123===i||91===i?++l:41===i||125===i||93===i?--l:o||r.length||34!==i&&39!==i||(u=u.slice(1,-1));r.push(u)}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,t=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},i={};return{ta:[],ea:i,yb:n,Ua:function(t,f){function e(n,t){var a,f;if(!l){if(f=s.getBindingHandler(n),f&&f.preprocess&&!(t=f.preprocess(t,n,e)))return;(f=i[n])&&(a=t,0<=s.a.o(r,a)?a=!1:(f=a.match(u),a=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:a),f=a);f&&o.push("'"+n+"':function(_z){"+a+"=_z}")}c&&(t="function(){return "+t+" }");h.push("'"+n+"':"+t)}f=f||{};var h=[],o=[],c=f.valueAccessors,l=f.bindingParams,a="string"==typeof t?n(t):t;return s.a.q(a,function(n){e(n.key||n.unknown,n.value)}),o.length&&e("_ko_property_writers","{"+o.join(",")+" }"),h.join(",")},ad:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},Ea:function(n,t,i,r,u){n&&s.H(n)?!s.Ba(n)||u&&n.t()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();s.b("expressionRewriting",s.h);s.b("expressionRewriting.bindingRewriteValidators",s.h.ta);s.b("expressionRewriting.parseObjectLiteral",s.h.yb);s.b("expressionRewriting.preProcessBindings",s.h.Ua);s.b("expressionRewriting._twoWayBindings",s.h.ea);s.b("jsonExpressionRewriting",s.h);s.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",s.h.Ua),function(){function n(n){return 8==n.nodeType&&e.test(i?n.text:n.nodeValue)}function r(n){return 8==n.nodeType&&o.test(i?n.text:n.nodeValue)}function u(t,i){for(var u=t,f=1,e=[];u=u.nextSibling;){if(r(u)&&(f--,0===f))return e;e.push(u);n(u)&&f++}if(!i)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var i=t&&"<!--test-->"===t.createComment("test").text,e=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,h={ul:!0,ol:!0};s.f={Z:{},childNodes:function(t){return n(t)?u(t):t.childNodes},xa:function(t){if(n(t)){t=s.f.childNodes(t);for(var i=0,r=t.length;i<r;i++)s.removeNode(t[i])}else s.a.ob(t)},da:function(t,i){if(n(t)){s.f.xa(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else s.a.da(t,i)},mc:function(t,i){n(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},gc:function(t,i,r){r?n(t)?t.parentNode.insertBefore(i,r.nextSibling):r.nextSibling?t.insertBefore(i,r.nextSibling):t.appendChild(i):s.f.mc(t,i)},firstChild:function(t){return n(t)?!t.nextSibling||r(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return n(t)&&(t=f(t)),t.nextSibling&&r(t.nextSibling)?null:t.nextSibling},Tc:n,pd:function(n){return(n=(i?n.text:n.nodeValue).match(e))?n[1]:null},kc:function(t){var o,i,u,e;if(h[s.a.A(t)]&&(o=t.firstChild,o))do if(1===o.nodeType){if(i=o.firstChild,u=null,i)do u?u.push(i):n(i)?(e=f(i,!0),e?i=e:u=[i]):r(i)&&(u=[i]);while(i=i.nextSibling);if(i=u)for(u=o.nextSibling,e=0;e<i.length;e++)u?t.insertBefore(i[e],u):t.appendChild(i[e])}while(o=o.nextSibling)}}}();s.b("virtualElements",s.f);s.b("virtualElements.allowedBindings",s.f.Z);s.b("virtualElements.emptyNode",s.f.xa);s.b("virtualElements.insertAfter",s.f.gc);s.b("virtualElements.prepend",s.f.mc);s.b("virtualElements.setDomNodeChildren",s.f.da),function(){s.Q=function(){this.Fc={}};s.a.extend(s.Q.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind")||s.g.getComponentNameForNode(n);case 8:return s.f.Tc(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n):null;return s.g.Ob(i,n,t,!1)},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null;return s.g.Ob(i,n,t,!0)},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return s.f.pd(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.Fc,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+s.h.Ua(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(o){throw o.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+o.message,o;}}});s.Q.instance=new s.Q}();s.b("bindingProvider",s.Q),function(){function v(n){return function(){return n}}function u(n){return n()}function o(n){return s.a.Ca(s.l.w(n),function(t,i){return function(){return n()[i]}})}function y(n,t,i){return"function"==typeof n?o(n.bind(null,t,i)):s.a.Ca(n,v)}function p(n,t){return o(this.getBindings.bind(this,n,t))}function h(n,t,i){var r,u=s.f.firstChild(t),f=s.Q.instance,e=f.preprocessNode;if(e){for(;r=u;)u=s.f.nextSibling(r),e.call(f,r);u=s.f.firstChild(t)}for(;r=u;)u=s.f.nextSibling(r),c(n,r,i)}function c(n,t,i){var u=!0,r=1===t.nodeType;r&&s.f.kc(t);(r&&i||s.Q.instance.nodeHasBindings(t))&&(u=l(t,null,n,i).shouldBindDescendants);u&&!a[s.a.A(t)]&&h(n,t,!r)}function w(n){var i=[],r={},t=[];return s.a.D(n,function u(f){if(!r[f]){var e=s.getBindingHandler(f);e&&(e.after&&(t.push(f),s.a.q(e.after,function(i){if(n[i]){if(-1!==s.a.o(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.length--),i.push({key:f,fc:e}));r[f]=!0}}),i}function l(t,i,r,e){var v=s.a.e.get(t,f),o,l,a,c;if(!i){if(v)throw Error("You cannot apply bindings multiple times to the same element.");s.a.e.set(t,f,!0)}if(!v&&e&&s.tc(t,r),i&&"function"!=typeof i)o=i;else{var y=s.Q.instance,b=y.getBindingAccessors||p,h=s.B(function(){return(o=i?i(r,t):b.call(y,t,r))&&r.P&&r.P(),o},null,{i:t});o&&h.ba()||(h=null)}return o&&(a=h?function(n){return function(){return u(h()[n])}}:function(n){return o[n]},c=function(){return s.a.Ca(h?h():o,u)},c.get=function(n){return o[n]&&u(a(n))},c.has=function(n){return n in o},e=w(o),s.a.q(e,function(i){var e=i.fc.init,h=i.fc.update,u=i.key;if(8===t.nodeType&&!s.f.Z[u])throw Error("The binding '"+u+"' cannot be used with virtual elements");try{"function"==typeof e&&s.l.w(function(){var i=e(t,a(u),c,r.$data,r);if(i&&i.controlsDescendantBindings){if(l!==n)throw Error("Multiple bindings ("+l+" and "+u+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");l=u}});"function"==typeof h&&s.B(function(){h(t,a(u),c,r.$data,r)},null,{i:t})}catch(f){throw f.message='Unable to process binding "'+u+": "+o[u]+'"\nMessage: '+f.message,f;}})),{shouldBindDescendants:l===n}}function t(n){return n&&n instanceof s.U?n:new s.U(n)}var a,f,e;s.d={};a={script:!0,textarea:!0,template:!0};s.getBindingHandler=function(n){return s.d[n]};s.U=function(t,i,r,u){var f=this,h="function"==typeof t&&!s.H(t),o,e=s.B(function(){var o=h?t():t,n=s.a.c(o);return i?(i.P&&i.P(),s.a.extend(f,i),e&&(f.P=e)):(f.$parents=[],f.$root=n,f.ko=s),f.$rawData=o,f.$data=n,r&&(f[r]=n),u&&u(f,i,n),f.$data},null,{wa:function(){return o&&!s.a.Qb(o)},i:!0});e.ba()&&(f.P=e,e.equalityComparer=null,o=[],e.Ac=function(t){o.push(t);s.a.F.oa(t,function(t){s.a.La(o,t);o.length||(e.k(),f.P=e=n)})})};s.U.prototype.createChildContext=function(n,t,i){return new s.U(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)})};s.U.prototype.extend=function(n){return new s.U(this.P||this.$data,this,null,function(t,i){t.$rawData=i.$rawData;s.a.extend(t,"function"==typeof n?n():n)})};f=s.a.e.I();e=s.a.e.I();s.tc=function(n,t){if(2==arguments.length)s.a.e.set(n,e,t),t.P&&t.P.Ac(n);else return s.a.e.get(n,e)};s.Ja=function(n,i,r){return 1===n.nodeType&&s.f.kc(n),l(n,i,t(r),!0)};s.Dc=function(n,i,r){return r=t(r),s.Ja(n,y(i,r,n),r)};s.eb=function(n,i){1!==i.nodeType&&8!==i.nodeType||h(t(n),i,!0)};s.Rb=function(n,u){if(!i&&r.jQuery&&(i=r.jQuery),u&&1!==u.nodeType&&8!==u.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u=u||r.document.body;c(t(n),u,!0)};s.kb=function(t){switch(t.nodeType){case 1:case 8:var i=s.tc(t);if(i)return i;if(t.parentNode)return s.kb(t.parentNode)}return n};s.Jc=function(t){return(t=s.kb(t))?t.$data:n};s.b("bindingHandlers",s.d);s.b("applyBindings",s.Rb);s.b("applyBindingsToDescendants",s.eb);s.b("applyBindingAccessorsToNode",s.Ja);s.b("applyBindingsToNode",s.Dc);s.b("contextFor",s.kb);s.b("dataFor",s.Jc)}(),function(n){function u(t,u){var e=i.hasOwnProperty(t)?i[t]:n,o;e?e.X(u):(e=i[t]=new s.J,e.X(u),f(t,function(n,u){var f=!(!u||!u.synchronous);r[t]={definition:n,Zc:f};delete i[t];o||f?e.notifySubscribers(n):s.Y.Wa(function(){e.notifySubscribers(n)})}),o=!0)}function f(n,i){t("getConfig",[n],function(r){r?t("loadComponent",[n,r],function(n){i(n,r)}):i(null,null)})}function t(i,r,u,f){var e,o,h;if(f||(f=s.g.loaders.slice(0)),e=f.shift(),e)if(o=e[i],o){if(h=!1,o.apply(e,r.concat(function(n){h?u(null):null!==n?u(n):t(i,r,u,f)}))!==n&&(h=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else t(i,r,u,f);else u(null)}var i={},r={};s.g={get:function(t,i){var f=r.hasOwnProperty(t)?r[t]:n;f?f.Zc?s.l.w(function(){i(f.definition)}):s.Y.Wa(function(){i(f.definition)}):u(t,i)},Xb:function(n){delete r[n]},Jb:t};s.g.loaders=[];s.b("components",s.g);s.b("components.get",s.g.get);s.b("components.clearCachedDefinition",s.g.Xb)}(),function(){function l(n,t,r,f){function e(){0==--c&&f(o)}var o={},c=2,h=r.template;r=r.viewModel;h?u(t,h,function(t){s.g.Jb("loadTemplate",[n,t],function(n){o.template=n;e()})}):e();r?u(t,r,function(t){s.g.Jb("loadViewModel",[n,t],function(n){o[i]=n;e()})}):e()}function e(n,t,r){if("function"==typeof t)r(function(n){return new t(n)});else if("function"==typeof t[i])r(t[i]);else if("instance"in t){var u=t.instance;r(function(){return u})}else"viewModel"in t?e(n,t.viewModel,r):n("Unknown viewModel value: "+t)}function h(n){switch(s.a.A(n)){case"script":return s.a.ma(n.text);case"textarea":return s.a.ma(n.value);case"template":if(c(n.content))return s.a.ua(n.content.childNodes)}return s.a.ua(n.childNodes)}function c(n){return r.DocumentFragment?n instanceof DocumentFragment:n&&11===n.nodeType}function u(n,t,i){"string"==typeof t.require?o||r.require?(o||r.require)([t.require],i):n("Uses require, but no AMD loader is present"):i(t)}function f(n){return function(t){throw Error("Component '"+n+"': "+t);}}var n={},i;s.g.register=function(t,i){if(!i)throw Error("Invalid configuration for "+t);if(s.g.ub(t))throw Error("Component "+t+" is already registered");n[t]=i};s.g.ub=function(t){return n.hasOwnProperty(t)};s.g.od=function(t){delete n[t];s.g.Xb(t)};s.g.Zb={getConfig:function(t,i){i(n.hasOwnProperty(t)?n[t]:null)},loadComponent:function(n,t,i){var r=f(n);u(r,t,function(t){l(n,r,t,i)})},loadTemplate:function(n,i,u){if(n=f(n),"string"==typeof i)u(s.a.ma(i));else if(i instanceof Array)u(i);else if(c(i))u(s.a.V(i.childNodes));else if(i.element)if(i=i.element,r.HTMLElement?i instanceof HTMLElement:i&&i.tagName&&1===i.nodeType)u(h(i));else if("string"==typeof i){var e=t.getElementById(i);e?u(h(e)):n("Cannot find element with ID "+i)}else n("Unknown element type: "+i);else n("Unknown template value: "+i)},loadViewModel:function(n,t,i){e(f(n),t,i)}};i="createViewModel";s.b("components.register",s.g.register);s.b("components.isRegistered",s.g.ub);s.b("components.unregister",s.g.od);s.b("components.defaultLoader",s.g.Zb);s.g.loaders.push(s.g.Zb);s.g.Bc=n}(),function(){function n(n,t){var r=n.getAttribute("params");if(r){var r=i.parseBindingsString(r,t,n,{valueAccessors:!0,bindingParams:!0}),r=s.a.Ca(r,function(t){return s.m(t,null,{i:n})}),u=s.a.Ca(r,function(t){var i=t.t();return t.ba()?s.m({read:function(){return s.a.c(t())},write:s.Ba(i)&&function(n){t()(n)},i:n}):i});return u.hasOwnProperty("$raw")||(u.$raw=r),u}return{$raw:{}}}s.g.getComponentNameForNode=function(n){var t=s.a.A(n);if(s.g.ub(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+n||8>=s.a.C&&n.tagName===t))return t};s.g.Ob=function(t,i,r,u){var f,e;if(1===i.nodeType&&(f=s.g.getComponentNameForNode(i),f)){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');e={name:f,params:n(i,r)};t.component=u?function(){return e}:e}return t};var i=new s.Q;9>s.a.C&&(s.g.register=function(n){return function(i){return t.createElement(i),n.apply(this,arguments)}}(s.g.register),t.createDocumentFragment=function(n){return function(){var t=n(),i=s.g.Bc;for(var r in i)i.hasOwnProperty(r)&&t.createElement(r);return t}}(t.createDocumentFragment))}(),function(n){function t(n,t,i){if(t=t.template,!t)throw Error("Component '"+n+"' has no template");n=s.a.ua(t);s.f.da(i,n)}function i(n,t,i,r){var u=n.createViewModel;return u?u.call(n,r,{element:t,templateNodes:i}):r}var r=0;s.d.component={init:function(u,f,e,o,h){function a(){var n=c&&c.dispose;"function"==typeof n&&n.call(c);l=c=null}var c,l,v=s.a.V(s.f.childNodes(u));return s.a.F.oa(u,a),s.m(function(){var o=s.a.c(f()),e,y,p;if("string"==typeof o?e=o:(e=s.a.c(o.name),y=s.a.c(o.params)),!e)throw Error("No component name specified");p=l=++r;s.g.get(e,function(r){if(l===p){if(a(),!r)throw Error("Unknown component '"+e+"'");t(e,r,u);var f=i(r,u,v,y);r=h.createChildContext(f,n,function(n){n.$component=f;n.$componentTemplateNodes=v});c=f;s.eb(r,u)}})},null,{i:u}),{controlsDescendantBindings:!0}}};s.f.Z.component=!0}();g={"class":"className","for":"htmlFor"};s.d.attr={update:function(t,i){var r=s.a.c(i())||{};s.a.D(r,function(i,r){r=s.a.c(r);var u=!1===r||null===r||r===n;u&&t.removeAttribute(i);8>=s.a.C&&i in g?(i=g[i],u?t.removeAttribute(i):t[i]=r):u||t.setAttribute(i,r.toString());"name"===i&&s.a.rc(t,u?"":r.toString())})}},function(){s.d.checked={after:["value","attr"],init:function(t,i,r){function l(){var l=t.checked,o=y?f():l,n,h;s.va.Sa()||e&&!l||(n=s.l.w(i),u?(h=a?n.t():n,c!==o?(l&&(s.a.pa(h,o,!0),s.a.pa(h,c,!1)),c=o):s.a.pa(h,o,l),a&&s.Ba(n)&&n(h)):s.h.Ea(n,r,"checked",o,!0))}function v(){var n=s.a.c(i());t.checked=u?0<=s.a.o(n,f()):h?n:f()===n}var f=s.nc(function(){return r.has("checkedValue")?s.a.c(r.get("checkedValue")):r.has("value")?s.a.c(r.get("value")):t.value}),h="checkbox"==t.type,e="radio"==t.type;if(h||e){var o=i(),u=h&&s.a.c(o)instanceof Array,a=!(u&&o.push&&o.splice),c=u?f():n,y=e||u;e&&!t.name&&s.d.uniqueName.init(t,function(){return!0});s.m(l,null,{i:t});s.a.p(t,"click",l);s.m(v,null,{i:t});o=n}}};s.h.ea.checked=!0;s.d.checkedValue={update:function(n,t){n.value=s.a.c(t())}}}();s.d.css={update:function(n,t){var i=s.a.c(t());null!==i&&"object"==typeof i?s.a.D(i,function(t,i){i=s.a.c(i);s.a.bb(n,t,i)}):(i=s.a.$a(String(i||"")),s.a.bb(n,n.__ko__cssValue,!1),n.__ko__cssValue=i,s.a.bb(n,i,!0))}};s.d.enable={update:function(n,t){var i=s.a.c(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};s.d.disable={update:function(n,t){s.d.enable.update(n,function(){return!s.a.c(t())})}};s.d.event={init:function(n,t,i,r,u){var f=t()||{};s.a.D(f,function(f){"string"==typeof f&&s.a.p(n,f,function(n){var o,h=t()[f],e;if(h){try{e=s.a.V(arguments);r=u.$data;e.unshift(r);o=h.apply(r,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};s.d.foreach={ic:function(n){return function(){var i=n(),t=s.a.zb(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:s.W.sb}:(s.a.c(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:s.W.sb})}},init:function(n,t){return s.d.template.init(n,s.d.foreach.ic(t))},update:function(n,t,i,r,u){return s.d.template.update(n,s.d.foreach.ic(t),i,r,u)}};s.h.ta.foreach=!1;s.f.Z.foreach=!0;s.d.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();s.h.Ea(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);s.a.p(n,"focus",u);s.a.p(n,"focusin",u);s.a.p(n,"blur",f);s.a.p(n,"focusout",f)},update:function(n,t){var i=!!s.a.c(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),!i&&n.__ko_hasfocusLastValue&&n.ownerDocument.body.focus(),s.l.w(s.a.Da,null,[n,i?"focusin":"focusout"]))}};s.h.ea.hasfocus=!0;s.d.hasFocus=s.d.hasfocus;s.h.ea.hasFocus=!0;s.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Cb(n,t())}};k("if");k("ifnot",!1,!0);k("with",!0,!1,function(n,t){return n.createChildContext(t)});w={};s.d.options={init:function(n){if("select"!==s.a.A(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,r){function a(){return s.a.Ka(t.options,function(n){return n.selected})}function v(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function y(n,i){if(o&&e)s.j.ha(t,s.a.c(r.get("value")),!0);else if(f.length){var u=0<=s.a.o(f,s.j.u(i[0]));s.a.sc(i[0],u);o&&!u&&s.l.w(s.a.Da,null,[t,"change"])}}var h=t.multiple,c=0!=t.length&&h?t.scrollTop:null,u=s.a.c(i()),e=r.get("valueAllowUnset")&&r.has("value"),p=r.get("optionsIncludeDestroyed"),l,f,o;i={};f=[];e||(h?f=s.a.fb(a(),s.j.u):0<=t.selectedIndex&&f.push(s.j.u(t.options[t.selectedIndex])));u&&("undefined"==typeof u.length&&(u=[u]),l=s.a.Ka(u,function(t){return p||t===n||null===t||!s.a.c(t._destroy)}),r.has("optionsCaption")&&(u=s.a.c(r.get("optionsCaption")),null!==u&&u!==n&&l.unshift(w)));o=!1;i.beforeRemove=function(n){t.removeChild(n)};u=y;r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(u=function(t,i){y(0,i);s.l.w(r.get("optionsAfterRender"),null,[i[0],t!==w?t:n])});s.a.Bb(t,l,function(i,u,h){return h.length&&(f=!e&&h[0].selected?[s.j.u(h[0])]:[],o=!0),u=t.ownerDocument.createElement("option"),i===w?(s.a.Za(u,r.get("optionsCaption")),s.j.ha(u,n)):(h=v(i,r.get("optionsValue"),i),s.j.ha(u,s.a.c(h)),i=v(i,r.get("optionsText"),h),s.a.Za(u,i)),[u]},i,u);s.l.w(function(){e?s.j.ha(t,s.a.c(r.get("value")),!0):(h?f.length&&a().length<f.length:f.length&&0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&s.a.Da(t,"change")});s.a.Nc(t);c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}};s.d.options.xb=s.a.e.I();s.d.selectedOptions={after:["options","foreach"],init:function(n,t,i){s.a.p(n,"change",function(){var u=t(),r=[];s.a.q(n.getElementsByTagName("option"),function(n){n.selected&&r.push(s.j.u(n))});s.h.Ea(u,i,"selectedOptions",r)})},update:function(n,t){if("select"!=s.a.A(n))throw Error("values binding applies only to SELECT elements");var i=s.a.c(t()),r=n.scrollTop;i&&"number"==typeof i.length&&s.a.q(n.getElementsByTagName("option"),function(n){var t=0<=s.a.o(i,s.j.u(n));n.selected!=t&&s.a.sc(n,t)});n.scrollTop=r}};s.h.ea.selectedOptions=!0;s.d.style={update:function(t,i){var r=s.a.c(i()||{});s.a.D(r,function(i,r){r=s.a.c(r);(null===r||r===n||!1===r)&&(r="");t.style[i]=r})}};s.d.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");s.a.p(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};s.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Za(n,t())}};s.f.Z.text=!0,function(){if(r&&r.navigator)var t=function(n){if(n)return parseFloat(n[1])},e=r.opera&&r.opera.version&&parseInt(r.opera.version()),i=r.navigator.userAgent,o=t(i.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),h=t(i.match(/Firefox\/([^ ]*)/));if(10>s.a.C)var u=s.a.e.I(),f=s.a.e.I(),c=function(n){var t=this.activeElement;(t=t&&s.a.e.get(t,f))&&t(n)},l=function(n,t){var i=n.ownerDocument;s.a.e.get(i,u)||(s.a.e.set(i,u,!0),s.a.p(i,"selectionchange",c));s.a.e.set(n,f,t)};s.d.textInput={init:function(t,i,r){function u(n,i){s.a.p(t,n,i)}function p(){var r=s.a.c(i());(null===r||r===n)&&(r="");v!==n&&r===v?s.a.setTimeout(p,4):t.value!==r&&(y=r,t.value=r)}function c(){a||(v=t.value,a=s.a.setTimeout(f,4))}function f(){clearTimeout(a);v=a=n;var u=t.value;y!==u&&(y=u,s.h.Ea(i(),r,"textInput",u))}var y=t.value,a,v,w=9==s.a.C?c:f;10>s.a.C?(u("propertychange",function(n){"value"===n.propertyName&&w(n)}),8==s.a.C&&(u("keyup",f),u("keydown",f)),8<=s.a.C&&(l(t,w),u("dragend",c))):(u("input",f),5>o&&"textarea"===s.a.A(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>e?u("keydown",c):4>h&&(u("DOMAutoComplete",f),u("dragdrop",f),u("drop",f)));u("change",f);s.m(p,null,{i:t})}};s.h.ea.textInput=!0;s.d.textinput={preprocess:function(n,t,i){i("textInput",n)}}}();s.d.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++s.d.uniqueName.Ic;s.a.rc(n,i)}}};s.d.uniqueName.Ic=0;s.d.value={after:["options","foreach"],init:function(n,t,i){var o,h;if("input"!=n.tagName.toLowerCase()||"checkbox"!=n.type&&"radio"!=n.type){var r=["change"],u=i.get("valueUpdate"),f=!1,e=null;u&&("string"==typeof u&&(u=[u]),s.a.ra(r,u),r=s.a.Tb(r));o=function(){e=null;f=!1;var r=t(),u=s.j.u(n);s.h.Ea(r,i,"value",u)};!s.a.C||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=s.a.o(r,"propertychange")||(s.a.p(n,"propertychange",function(){f=!0}),s.a.p(n,"focus",function(){f=!1}),s.a.p(n,"blur",function(){f&&o()}));s.a.q(r,function(t){var i=o;s.a.nd(t,"after")&&(i=function(){e=s.j.u(n);s.a.setTimeout(o,0)},t=t.substring(5));s.a.p(n,t,i)});h=function(){var r=s.a.c(t()),u=s.j.u(n),f;null!==e&&r===e?s.a.setTimeout(h,0):r!==u&&("select"===s.a.A(n)?(f=i.get("valueAllowUnset"),u=function(){s.j.ha(n,r,f)},u(),f||r===s.j.u(n)?s.a.setTimeout(u,0):s.l.w(s.a.Da,null,[n,"change"])):s.j.ha(n,r))};s.m(h,null,{i:n})}else s.Ja(n,{checkedValue:t})},update:function(){}};s.h.ea.value=!0;s.d.visible={update:function(n,t){var i=s.a.c(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},function(n){s.d[n]={init:function(t,i,r,u,f){return s.d.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("click");s.O=function(){};s.O.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};s.O.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};s.O.prototype.makeTemplateSource=function(n,i){if("string"==typeof n){i=i||t;var r=i.getElementById(n);if(!r)throw Error("Cannot find template with ID "+n);return new s.v.n(r)}if(1==n.nodeType||8==n.nodeType)return new s.v.qa(n);throw Error("Unknown template type: "+n);};s.O.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i,r)};s.O.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};s.O.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};s.b("templateEngine",s.O);s.Gb=function(){function n(n,t,i,r){var o,f,u,e;for(n=s.h.yb(n),o=s.h.ta,f=0;f<n.length;f++)if(u=n[f].key,o.hasOwnProperty(u))if(e=o[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+s.h.Ua(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Oc:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return s.Gb.dd(n,t)},i)},dd:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},Ec:function(n,t){return s.M.wb(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&s.Ja(u,n,r)})}}}();s.b("__tr_ambtns",s.Gb.Ec),function(){var i,t;s.v={};s.v.n=function(n){if(this.n=n){var t=s.a.A(n);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&n.content&&11===n.content.nodeType?3:4}};s.v.n.prototype.text=function(){var n=1===this.ab?"text":2===this.ab?"value":"innerHTML",t;if(0==arguments.length)return this.n[n];t=arguments[0];"innerHTML"===n?s.a.Cb(this.n,t):this.n[n]=t};i=s.a.e.I()+"_";s.v.n.prototype.data=function(n){if(1===arguments.length)return s.a.e.get(this.n,i+n);s.a.e.set(this.n,i+n,arguments[1])};t=s.a.e.I();s.v.n.prototype.nodes=function(){var i=this.n;if(0==arguments.length)return(s.a.e.get(i,t)||{}).jb||(3===this.ab?i.content:4===this.ab?i:n);s.a.e.set(i,t,{jb:arguments[0]})};s.v.qa=function(n){this.n=n};s.v.qa.prototype=new s.v.n;s.v.qa.prototype.text=function(){if(0==arguments.length){var i=s.a.e.get(this.n,t)||{};return i.Hb===n&&i.jb&&(i.Hb=i.jb.innerHTML),i.Hb}s.a.e.set(this.n,t,{Hb:arguments[0]})};s.b("templateSources",s.v);s.b("templateSources.domElement",s.v.n);s.b("templateSources.anonymousTemplate",s.v.qa)}(),function(){function t(n,t,i){var r;for(t=s.f.nextSibling(t);n&&(r=n)!==t;)n=s.f.nextSibling(r),i(r,n)}function f(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=s.Q.instance,o=e.preprocessNode;if(o){if(t(r,u,function(n,t){var f=n.previousSibling,i=o.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),s.a.za(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.Rb(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.M.yc(n,[i])});s.a.za(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function e(n,t,u,e,o){o=o||{};var h=(n&&i(n)||u||{}).ownerDocument,c=o.templateEngine||r;if(s.Gb.Oc(u,c,h),u=c.renderTemplate(u,e,o,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":s.f.da(n,u);h=!0;break;case"replaceNode":s.a.qc(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(f(u,e),o.afterRender&&s.l.w(o.afterRender,null,[u,e.$data])),u}function o(n,t,i){return s.H(n)?n():"function"==typeof n?n(t,i):n}var r,u;s.Db=function(t){if(t!=n&&!(t instanceof s.O))throw Error("templateEngine must inherit from ko.templateEngine");r=t};s.Ab=function(t,u,f,h,c){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",h){var l=i(h);return s.B(function(){var n=u&&u instanceof s.U?u:new s.U(s.a.c(u)),r=o(t,n.$data,n),n=e(h,c,r,n,f);"replaceNode"==c&&(h=n,l=i(h))},null,{wa:function(){return!l||!s.a.nb(l)},i:l&&"replaceNode"==c?l.parentNode:l})}return s.M.wb(function(n){s.Ab(t,u,f,n,"replaceNode")})};s.kd=function(t,i,r,u,h){function l(n,t){f(t,c);r.afterRender&&r.afterRender(t,n);c=null}function a(n,i){c=h.createChildContext(n,r.as,function(n){n.$index=i});var u=o(t,n,c);return e(null,"ignoreTargetNode",u,c,r)}var c;return s.B(function(){var t=s.a.c(i)||[];"undefined"==typeof t.length&&(t=[t]);t=s.a.Ka(t,function(t){return r.includeDestroyed||t===n||null===t||!s.a.c(t._destroy)});s.l.w(s.a.Bb,null,[u,t,a,r,l])},null,{i:u})};u=s.a.e.I();s.d.template={init:function(n,t){var i=s.a.c(t());if("string"==typeof i||i.name)s.f.xa(n);else{if("nodes"in i){if(i=i.nodes||[],s.H(i))throw Error('The "nodes" option must be a plain, non-observable array.');}else i=s.f.childNodes(n);i=s.a.jc(i);new s.v.qa(n).nodes(i)}return{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){var h=i(),o;i=s.a.c(h);r=!0;f=null;"string"==typeof i?i={}:(h=i.name,"if"in i&&(r=s.a.c(i["if"])),r&&"ifnot"in i&&(r=!s.a.c(i.ifnot)),o=s.a.c(i.data));"foreach"in i?f=s.kd(h||t,r&&i.foreach||[],i,t,e):r?(e="data"in i?e.createChildContext(o,i.as):e,f=s.Ab(h||t,e,i,t)):s.f.xa(t);e=f;(o=s.a.e.get(t,u))&&"function"==typeof o.k&&o.k();s.a.e.set(t,u,e&&e.ba()?e:n)}};s.h.ta.template=function(n){return n=s.h.yb(n),1==n.length&&n[0].unknown||s.h.ad(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};s.f.Z.template=!0}();s.b("setTemplateEngine",s.Db);s.b("renderTemplate",s.Ab);s.a.dc=function(n,t,i){if(n.length&&t.length)for(var o,r,f,e,u=o=0;(!i||u<i)&&(f=n[o]);++o){for(r=0;e=t[r];++r)if(f.value===e.value){f.moved=e.index;e.moved=f.index;t.splice(r,1);u=r=0;break}u+=r}};s.a.ib=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,a=[],c=n.length,f,h=t.length,v=h-c||1,w=c+h+1,y,p,b,e=0;e<=c;e++)for(p=y,a.push(y=[]),b=o(h,e+v),f=l(0,e-1);f<=b;f++)y[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,y[f-1]||w)+1:f+1:e+1;for(o=[],l=[],v=[],e=c,f=h;e||f;)h=a[e][f]-1,f&&h===a[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===a[e-1][f]?v.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));return s.a.dc(v,l,!u.dontLimitMoves&&10*c),o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();s.b("utils.compareArrays",s.a.ib),function(){function r(t,i,r,u,f){var e=[],o=s.B(function(){var n=i(r,f,s.a.za(e,t))||[];0<e.length&&(s.a.qc(e,n),u&&s.l.w(u,null,[r,n,f]));e.length=0;s.a.ra(e,n)},null,{i:t,wa:function(){return!s.a.Qb(e)}});return{ca:e,B:o.ba()?o:n}}var t=s.a.e.I(),i=s.a.e.I();s.a.Bb=function(u,f,e,o,h){function ut(n,t){c=g[t];tt!==t&&(rt[n]=c);c.qb(tt++);s.a.za(c.ca,u);w.push(c);b.push(c)}function y(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&s.a.q(t[i].ca,function(r){n(r,i,t[i].ja)})}var l,p,ft;f=f||[];o=o||{};var p=s.a.e.get(u,t)===n,g=s.a.e.get(u,t)||[],nt=s.a.fb(g,function(n){return n.ja}),a=s.a.ib(nt,f,o.dontLimitMoves),w=[],v=0,tt=0,it=[],b=[];f=[];for(var rt=[],nt=[],c,l=0,k,d;k=a[l];l++)switch(d=k.moved,k.status){case"deleted":d===n&&(c=g[v],c.B&&(c.B.k(),c.B=n),s.a.za(c.ca,u).length&&(o.beforeRemove&&(w.push(c),b.push(c),c.ja===i?c=null:f[l]=c),c&&it.push.apply(it,c.ca)));v++;break;case"retained":ut(l,v++);break;case"added":d!==n?ut(l,d):(c={ja:k.value,qb:s.N(tt++)},w.push(c),b.push(c),p||(nt[l]=c))}for(s.a.e.set(u,t,w),y(o.beforeMove,rt),s.a.q(it,o.beforeRemove?s.$:s.removeNode),l=0,p=s.f.firstChild(u);c=b[l];l++){for(c.ca||s.a.extend(c,r(u,e,c.ja,h,c.qb)),v=0;a=c.ca[v];p=a.nextSibling,ft=a,v++)a!==p&&s.f.gc(u,a,ft);!c.Wc&&h&&(h(c.ja,c.ca,c.qb),c.Wc=!0)}for(y(o.beforeRemove,f),l=0;l<f.length;++l)f[l]&&(f[l].ja=i);y(o.afterMove,rt);y(o.afterAdd,nt)}}();s.b("utils.setDomNodeChildrenFromArrayMapping",s.a.Bb);s.W=function(){this.allowTemplateRewriting=!1};s.W.prototype=new s.O;s.W.prototype.renderTemplateSource=function(n,t,i,r){return(t=(9>s.a.C?0:n.nodes)?n.nodes():null)?s.a.V(t.cloneNode(!0).childNodes):(n=n.text(),s.a.ma(n,r))};s.W.sb=new s.W;s.Db(s.W.sb);s.b("nativeTemplateEngine",s.W),function(){s.vb=function(){var n=this.$c=function(){if(!i||!i.tmpl)return 0;try{if(0<=i.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(r,u,f,e){if(e=e||t,f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=r.data("precompiled");return o||(o=r.text()||"",o=i.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),r.data("precompiled",o)),r=[u.$data],u=i.extend({koBindingContext:u},f.templateOptions),u=i.tmpl(o,r,u),u.appendTo(e.createElement("div")),i.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,i){t.write("<script type='text/html' id='"+n+"'>"+i+"<\/script>")};0<n&&(i.tmpl.tag.ko_code={open:"__.push($1 || '');"},i.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};s.vb.prototype=new s.O;var n=new s.vb;0<n.$c&&s.Db(n);s.b("jqueryTmplTemplateEngine",s.vb)}()})})()}(),function(n){typeof require=="function"&&typeof exports=="object"&&typeof module=="object"?n(require("knockout"),exports):typeof define=="function"&&define.amd?define(["knockout","exports"],n):n(ko,ko.mapping={})}(function(n,t){function rt(n,t){for(var u,f,r={},i=n.length-1;i>=0;--i)r[n[i]]=n[i];for(i=t.length-1;i>=0;--i)r[t[i]]=t[i];u=[];for(f in r)u.push(r[f]);return u}function y(n,i){var u,r,f;for(r in i)i.hasOwnProperty(r)&&i[r]&&(u=t.getType(n[r]),r&&n[r]&&u!=="array"&&u!=="string"?y(n[r],i[r]):(f=t.getType(n[r])==="array"&&t.getType(i[r])==="array",n[r]=f?rt(n[r],i[r]):i[r]))}function c(n,t){var i={};return y(i,n),y(i,t),i}function p(n,t){for(var f,i=c({},n),e=w.length-1;e>=0;e--)(f=w[e],i[f])&&(i[""]instanceof Object||(i[""]={}),i[""][f]=i[f],delete i[f]);return t&&(i.ignore=u(t.ignore,i.ignore),i.include=u(t.include,i.include),i.copy=u(t.copy,i.copy),i.observe=u(t.observe,i.observe)),i.ignore=u(i.ignore,r.ignore),i.include=u(i.include,r.include),i.copy=u(i.copy,r.copy),i.observe=u(i.observe,r.observe),i.mappedProperties=i.mappedProperties||{},i.copiedProperties=i.copiedProperties||{},i}function u(i,r){return t.getType(i)!=="array"&&(i=t.getType(i)==="undefined"?[]:[i]),t.getType(r)!=="array"&&(r=t.getType(r)==="undefined"?[]:[r]),n.utils.arrayGetDistinctValues(i.concat(r))}function ut(t,i){var u=n.dependentObservable,r;return n.dependentObservable=function(i,r,u){var f;u=u||{};i&&typeof i=="object"&&(u=i);var s=u.deferEvaluation,o=!1,h=function(i){var f=n.dependentObservable,u,r;return n.dependentObservable=e,u=n.isWriteableObservable(i),n.dependentObservable=f,r=e({read:function(){return o||(n.utils.arrayRemoveItem(t,i),o=!0),i.apply(i,arguments)},write:u&&function(n){return i(n)},deferEvaluation:!0}),it&&(r._wrapper=!0),r};return u.deferEvaluation=!0,f=new e(i,r,u),s||(f=h(f),t.push(f)),f},n.dependentObservable.fn=e.fn,n.computed=n.dependentObservable,r=i(),n.dependentObservable=u,n.computed=n.dependentObservable,r}function l(r,u,e,h,v,y,p){var si=t.getType(n.utils.unwrapObservable(u))==="array",ti,ot,ri,lt,ei,wt,yt,gt,d,it,ni,st,ht;y=y||"";t.isMapped(r)&&(ti=n.utils.unwrapObservable(r)[i],e=c(ti,e));var et={data:u,parent:p||v},ct=function(){return e[h]&&e[h].create instanceof Function},pt=function(t){return ut(o,function(){return n.utils.unwrapObservable(v)instanceof Array?e[h].create({data:t||et.data,parent:et.parent,skip:b}):e[h].create({data:t||et.data,parent:et.parent})})},rt=function(){return e[h]&&e[h].update instanceof Function},ft=function(t,i){var r={data:i||et.data,parent:et.parent,target:n.utils.unwrapObservable(t)};return n.isWriteableObservable(t)&&(r.observable=t),e[h].update(r)},ii=s.get(u);if(ii)return ii;if(h=h||"",si){var ui=[],fi=!1,w=function(n){return n};e[h]&&e[h].key&&(w=e[h].key,fi=!0);n.isObservable(r)||(r=n.observableArray([]),r.mappedRemove=function(n){var t=typeof n=="function"?n:function(t){return t===w(n)};return r.remove(function(n){return t(w(n))})},r.mappedRemoveAll=function(t){var i=f(t,w);return r.remove(function(t){return n.utils.arrayIndexOf(i,w(t))!=-1})},r.mappedDestroy=function(n){var t=typeof n=="function"?n:function(t){return t===w(n)};return r.destroy(function(n){return t(w(n))})},r.mappedDestroyAll=function(t){var i=f(t,w);return r.destroy(function(t){return n.utils.arrayIndexOf(i,w(t))!=-1})},r.mappedIndexOf=function(t){var i=f(r(),w),u=w(t);return n.utils.arrayIndexOf(i,u)},r.mappedCreate=function(t){var i,u;if(r.mappedIndexOf(t)!==-1)throw new Error("There already is an object with the key that you specified.");return i=ct()?pt(t):t,rt()&&(u=ft(i,t),n.isWriteableObservable(i)?i(u):i=u),r.push(i),i});ei=f(n.utils.unwrapObservable(r),w).sort();wt=f(u,w);fi&&wt.sort();for(var oi=n.utils.compareArrays(ei,wt),at={},bt=n.utils.unwrapObservable(u),kt={},dt=!0,tt=0,vt=bt.length;tt<vt;tt++){if(d=w(bt[tt]),d===undefined||d instanceof Object){dt=!1;break}kt[d]=bt[tt]}for(yt=[],gt=0,tt=0,vt=oi.length;tt<vt;tt++){d=oi[tt];ni=y+"["+tt+"]";switch(d.status){case"added":st=dt?kt[d.value]:a(n.utils.unwrapObservable(u),d.value,w);it=l(undefined,st,e,h,r,ni,v);ct()||(it=n.utils.unwrapObservable(it));ht=k(n.utils.unwrapObservable(u),st,at);it===b?gt++:yt[ht-gt]=it;at[ht]=!0;break;case"retained":st=dt?kt[d.value]:a(n.utils.unwrapObservable(u),d.value,w);it=a(r,d.value,w);l(it,st,e,h,r,ni,v);ht=k(n.utils.unwrapObservable(u),st,at);yt[ht]=it;at[ht]=!0;break;case"deleted":it=a(r,d.value,w)}ui.push({event:d.status,item:it})}r(yt);e[h]&&e[h].arrayChanged&&n.utils.arrayForEach(ui,function(n){e[h].arrayChanged(n.event,n.item)})}else if(nt(u)){if(r=n.utils.unwrapObservable(r),!r){if(ct())return lt=pt(),rt()&&(lt=ft(lt)),lt;if(rt())return ft(lt);r={}}if(rt()&&(r=ft(r)),s.save(u,r),rt())return r;g(u,function(t){var i=y.length?y+"."+t:t;if(n.utils.arrayIndexOf(e.ignore,i)==-1){if(n.utils.arrayIndexOf(e.copy,i)!=-1){r[t]=u[t];return}if(typeof u[t]!="object"&&typeof u[t]!="array"&&e.observe.length>0&&n.utils.arrayIndexOf(e.observe,i)==-1){r[t]=u[t];e.copiedProperties[i]=!0;return}var o=s.get(u[t]),h=l(r[t],u[t],e,t,r,i,r),f=o||h;if(e.observe.length>0&&n.utils.arrayIndexOf(e.observe,i)==-1){r[t]=f();e.copiedProperties[i]=!0;return}n.isWriteableObservable(r[t])?r[t](n.utils.unwrapObservable(f)):(f=r[t]===undefined?f:n.utils.unwrapObservable(f),r[t]=f);e.mappedProperties[i]=!0}})}else switch(t.getType(u)){case"function":rt()?n.isWriteableObservable(u)?(u(ft(u)),r=u):r=ft(u):r=u;break;default:if(n.isWriteableObservable(r))return rt()?(ot=ft(r),r(ot),ot):(ot=n.utils.unwrapObservable(u),r(ot),ot);if(ri=ct()||rt(),r=ct()?pt():n.observable(n.utils.unwrapObservable(u)),rt()&&r(ft(r)),ri)return r}return r}function k(n,t,i){for(var r=0,u=n.length;r<u;r++)if(i[r]!==!0&&n[r]===t)return r;return null}function d(i,r){var u;return r&&(u=r(i)),t.getType(u)==="undefined"&&(u=i),n.utils.unwrapObservable(u)}function a(t,i,r){var u,e,f;for(t=n.utils.unwrapObservable(t),u=0,e=t.length;u<e;u++)if(f=t[u],d(f,r)===i)return f;throw new Error("When calling ko.update*, the key '"+i+"' was not found!");}function f(t,i){return n.utils.arrayMap(n.utils.unwrapObservable(t),function(n){return i?d(n,i):n})}function g(n,i){var r,u;if(t.getType(n)==="array")for(r=0;r<n.length;r++)i(r);else for(u in n)i(u)}function nt(n){var i=t.getType(n);return(i==="object"||i==="array")&&n!==null}function ft(n,i,r){var u=n||"";return t.getType(i)==="array"?n&&(u+="["+r+"]"):(n&&(u+="."),u+=r),u}function et(){var t=[],i=[];this.save=function(r,u){var f=n.utils.arrayIndexOf(t,r);f>=0?i[f]=u:(t.push(r),i.push(u))};this.get=function(r){var u=n.utils.arrayIndexOf(t,r);return u>=0?i[u]:undefined}}function tt(){var n={},t=function(t){var i,r;try{i=t}catch(u){i="$$$"}return r=n[i],n.hasOwnProperty(i)||(r=new et,n[i]=r),r};this.save=function(n,i){t(n).save(n,i)};this.get=function(n){return t(n).get(n)}}var it=!0,i="__ko_mapping__",e=n.dependentObservable,v=0,o,s,w=["create","update","key","arrayChanged"],b={},h={include:["_destroy"],ignore:[],copy:[],observe:[]},r=h;t.isMapped=function(t){var r=n.utils.unwrapObservable(t);return r&&r[i]};t.fromJS=function(n){var t,r,u,f;if(arguments.length==0)throw new Error("When calling ko.fromJS, pass the object you want to convert.");try{if(v++||(o=[],s=new tt),arguments.length==2&&(arguments[1][i]?r=arguments[1]:t=arguments[1]),arguments.length==3&&(t=arguments[1],r=arguments[2]),r&&(t=c(t,r[i])),t=p(t),u=l(r,n,t),r&&(u=r),!--v)while(o.length)f=o.pop(),f&&f();return u[i]=c(u[i],t),u}catch(e){v=0;throw e;}};t.fromJSON=function(i){var r=n.utils.parseJson(i);return arguments[0]=r,t.fromJS.apply(this,arguments)};t.updateFromJS=function(){throw new Error("ko.mapping.updateFromJS, use ko.mapping.fromJS instead. Please note that the order of parameters is different!");};t.updateFromJSON=function(){throw new Error("ko.mapping.updateFromJSON, use ko.mapping.fromJSON instead. Please note that the order of parameters is different!");};t.toJS=function(u,f){if(r||t.resetDefaultOptions(),arguments.length==0)throw new Error("When calling ko.mapping.toJS, pass the object you want to convert.");if(t.getType(r.ignore)!=="array")throw new Error("ko.mapping.defaultOptions().ignore should be an array.");if(t.getType(r.include)!=="array")throw new Error("ko.mapping.defaultOptions().include should be an array.");if(t.getType(r.copy)!=="array")throw new Error("ko.mapping.defaultOptions().copy should be an array.");return f=p(f,u[i]),t.visitModel(u,function(t){return n.utils.unwrapObservable(t)},f)};t.toJSON=function(i,r){var u=t.toJS(i,r);return n.utils.stringifyJson(u)};t.defaultOptions=function(){if(arguments.length>0)r=arguments[0];else return r};t.resetDefaultOptions=function(){r={include:h.include.slice(0),ignore:h.ignore.slice(0),copy:h.copy.slice(0)}};t.getType=function(n){if(n&&typeof n=="object"){if(n.constructor==(new Date).constructor)return"date";if(Object.prototype.toString.call(n)==="[object Array]")return"array"}return typeof n};t.visitModel=function(r,u,f){var o,e,s;if(f=f||{},f.visitedObjects=f.visitedObjects||new tt,e=n.utils.unwrapObservable(r),nt(e))f=p(f,e[i]),u(r,f.parentName),o=t.getType(e)==="array"?[]:{};else return u(r,f.parentName);return f.visitedObjects.save(r,o),s=f.parentName,g(e,function(r){var h,c;if((!f.ignore||n.utils.arrayIndexOf(f.ignore,r)==-1)&&(h=e[r],f.parentName=ft(s,e,r),n.utils.arrayIndexOf(f.copy,r)!==-1||n.utils.arrayIndexOf(f.include,r)!==-1||!e[i]||!e[i].mappedProperties||e[i].mappedProperties[r]||!e[i].copiedProperties||e[i].copiedProperties[r]||t.getType(e)==="array"))switch(t.getType(n.utils.unwrapObservable(h))){case"object":case"array":case"undefined":c=f.visitedObjects.get(h);o[r]=t.getType(c)!=="undefined"?c:t.visitModel(h,u,f);break;default:o[r]=u(h,f.parentName)}}),o}}),function(n,t){function e(){return"_scope"+ ++e.counter}function u(t,i,r,f){var s,e,o,h;f=f||[];for(s in t)if((e=t[s],n.isWriteableObservable(e)&&e.editable!==!1&&(e.extend({editable:{enable:!0,scope:i}}),r.push(e)),!(n.utils.arrayIndexOf(f,e)>-1))&&(f.push(e),o=n.utils.unwrapObservable(e),typeof o=="object")){if(h=n.isObservable(e),h){if(n.utils.arrayIndexOf(f,o)>-1)continue;f.push(o)}u(o,i,r,f)}}var f=function(t){return n.dependentObservable({read:t,deferEvaluation:!0})},r="",i={_observables:{},add:function(t,i){this._observables.hasOwnProperty(t)||(this._observables[t]=n.observableArray());this._observables[t].push(i)},get:function(i){if(i=i===t?r:i,!this._observables.hasOwnProperty(i))throw new Error("Unknown scope "+i);return n.utils.unwrapObservable(this._observables[i])}},o,s;i._observables[r]=n.observableArray();e.counter=0;o={scalar:function(n,t){return n==t},array:function(n,t){if(n=n||[],t=t||[],n.length!=t.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==t[i])return!1;return!0}};s={enable:!0,scope:r};n.extenders.editable=function(u,e){if(u.hasOwnProperty("editable")||(e=typeof e!="object"?{enable:e===t?!0:e,scope:r}:n.utils.extend(n.utils.extend({},s),e),u.editable=e.enable,!u.editable))return u;var c,l=o.scalar,h=u.inTransaction=n.observable(!1);return u.beginEdit=function(){if(!h()){var n=u();n instanceof Array&&(n=n.slice(),l=o.array);c=n;h(!0)}},u.commit=function(){h(!1)},u.rollback=function(){h()&&(u(c),h(!1))},u.oldValue=function(){return c},u.hasChanges=f(function(){return h()&&!l(u(),c)}),e.scope!==!1&&i.add(e.scope,u),u};n.editable=function(i,r){var o,s;typeof i.beginEdit!="function"&&(r=r===t?!0:r,o=n.observableArray(),i.beginEdit=function(){n.utils.arrayForEach(o(),function(n){n.beginEdit()})},i.commit=function(){n.utils.arrayForEach(o(),function(n){n.commit()})},i.rollback=function(){n.utils.arrayForEach(o(),function(n){n.rollback()})},i.hasChanges=f(function(){var t=n.utils.arrayFirst(o(),function(n){return n.hasChanges()});return t!=null}),s=e(),i.addEditable=function(n){u(n,s,o,[])},r&&u(i,s,o,[]))};n.editable.enable=function(n,i){i===t&&(i=r);u(n,i,[])};n.editable.beginEdit=function(t){n.utils.arrayForEach(i.get(t),function(n){n.beginEdit()})};n.editable.commit=function(t){n.utils.arrayForEach(i.get(t),function(n){n.commit()})};n.editable.rollback=function(t){n.utils.arrayForEach(i.get(t),function(n){n.rollback()})};n.editable.hasChanges=function(n){for(var r=i.get(n),t=0,u=r.length;t<u;t++)if(r[t].hasChanges())return!0;return!1};n.editable._editables=i;n.editable.getHasChangesFlag=function(t){return f(function(){return n.editable.hasChanges(t)}).extend({throttle:100})}}(ko);!function(n,t){typeof define=="function"?define(t):typeof module!="undefined"?module.exports=t():this[n]=t()}("klass",function(){function r(n){return h.call(t(n)?n:function(){},n,1)}function t(n){return typeof n===e}function s(t,i,r){return function(){var e=this.supr,f,u;this.supr=r[n][t];f={}.fabricatedUndefined;u=f;try{u=i.apply(this,arguments)}finally{this.supr=e}return u}}function u(i,r,u){for(var f in r)r.hasOwnProperty(f)&&(i[f]=t(r[f])&&t(u[n][f])&&o.test(r[f])?s(f,r[f],u):r[f])}function h(i,r){function s(){}function f(){this.initialize?this.initialize.apply(this,arguments):(r||o&&e.apply(this,arguments),c.apply(this,arguments))}s[n]=this[n];var e=this,h=new s,o=t(i),c=o?i:this,l=o?{}:i;return f.methods=function(t){return u(h,t,e),f[n]=h,this},f.methods.call(f,l).prototype.constructor=f,f.extend=arguments.callee,f[n].implement=f.statics=function(n,t){return n=typeof n=="string"?function(){var i={};return i[n]=t,i}():n,u(this,n,e),this},f}var i=this,f=i.klass,e="function",o=/xyz/.test(function(){xyz})?/\bsupr\b/:/.*/,n="prototype";return r.noConflict=function(){return i.klass=f,this},i.klass=r,r}),function(){"use strict";function n(){for(var i,u,o,f,r=[],e=0;e<arguments.length;e++)if(i=arguments[e],i)if(u=typeof i,u==="string"||u==="number")r.push(i);else if(Array.isArray(i)&&i.length)o=n.apply(null,i),o&&r.push(o);else if(u==="object")for(f in i)t.call(i,f)&&i[f]&&r.push(f);return r.join(" ")}var t={}.hasOwnProperty;typeof module!="undefined"&&module.exports?(n.default=n,module.exports=n):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}();!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function n(){return ls.apply(null,arguments)}function lt(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function ru(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function p(n){return void 0===n}function di(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function bu(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function vs(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function oi(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ni(n,t,i,r){return ic(n,t,i,r,!0).utc()}function u(n){return null==n._pf&&(n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),n._pf}function ce(n){if(null==n._isValid){var t=u(n),r=as.call(t.parsedDateParts,function(n){return null!=n}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function ku(n){var t=ni(NaN);return null!=n?oi(u(t),n):u(t).userInvalidated=!0,t}function le(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),du.length>0)for(i=0;i<du.length;i++)p(f=t[r=du[i]])||(n[r]=f);return n}function uu(t){le(this,t);this._d=new Date(null!=t._d?t._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===gu&&(gu=!0,n.updateOffset(this),gu=!1)}function si(n){return n instanceof uu||null!=n&&null!=n._isAMomentObject}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=d(t)),i}function ys(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ps(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function g(t,i){var r=!0;return oi(function(){var u,e,f,o;if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),r){for(e=[],f=0;f<arguments.length;f++){if(u="","object"==typeof arguments[f]){for(o in u+="\n["+f+"] ",arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}ps(t+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function bs(t,i){null!=n.deprecationHandler&&n.deprecationHandler(t,i);ae[t]||(ps(i),ae[t]=!0)}function at(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function ks(n,t){var i,r=oi({},n);for(i in t)l(t,i)&&(ru(n[i])&&ru(t[i])?(r[i]={},oi(r[i],n[i]),oi(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&ru(n[i])&&(r[i]=oi({},r[i]));return r}function ve(n){null!=n&&this.set(n)}function w(n,t){var i=n.toLowerCase();sr[i]=sr[i+"s"]=sr[t]=n}function nt(n){if("string"==typeof n)return sr[n]||sr[n.toLowerCase()]}function ye(n){var i,t,r={};for(t in n)l(n,t)&&(i=nt(t))&&(r[i]=n[t]);return r}function b(n,t){pe[n]=t}function ui(n,t,i){var r=""+Math.abs(n),u=t-r.length;return(n>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(hr[n]=u);t&&(hr[t[0]]=function(){return ui(u.apply(this,arguments),t[1],t[2])});i&&(hr[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function tf(n,t){return n.isValid()?(t=gs(t,n.localeData()),we[t]=we[t]||function(n){for(var u,t=n.match(ds),i=0,r=t.length;i<r;i++)t[i]=hr[t[i]]?hr[t[i]]:(u=t[i]).match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"");return function(i){for(var f="",u=0;u<r;u++)f+=at(t[u])?t[u].call(i,n):t[u];return f}}(t),we[t](n)):n.localeData().invalidDate()}function gs(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(nf.lastIndex=0;i>=0&&nf.test(n);)n=n.replace(nf,r),nf.lastIndex=0,i-=1;return n}function i(n,t,i){de[n]=at(t)?t:function(n){return n&&i?i:t}}function lv(n,t){return l(de,n)?de[n](t._strict,t._locale):new RegExp(gi(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})))}function gi(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),di(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)sf[n[i]]=r}function eu(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ou(n){return hf(n)?366:365}function hf(n){return n%4==0&&n%100!=0||n%400==0}function cr(t,i){return function(r){return null!=r?(uh(this,t,r),n.updateOffset(this,i),this):cf(this,t)}}function cf(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function uh(n,t,i){n.isValid()&&!isNaN(i)&&("FullYear"===t&&hf(n.year())&&1===n.month()&&29===n.date()?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),lf(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function lf(n,t){if(isNaN(n)||isNaN(t))return NaN;var i,r=(t%(i=12)+i)%i;return n+=(t-r)/12,1===r?hf(n)?29:28:31-r%7%2}function oh(n,t){var i;if(!n.isValid())return n;if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!di(t=n.localeData().monthsParse(t)))return n;return i=Math.min(n.date(),lf(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function sh(t){return null!=t?(oh(this,t),n.updateOffset(this,!0),this):cf(this,"Month")}function lh(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;n<12;n++)i=ni([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;n<12;n++)r[n]=gi(r[n]),u[n]=gi(u[n]);for(n=0;n<24;n++)t[n]=gi(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function su(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function af(n,t,i){var r=7+t-i;return-((7+su(n,0,r).getUTCDay()-t)%7)+r-1}function ah(n,t,i,r,u){var e,o,f=1+7*(t-1)+(7+i-r)%7+af(n,r,u);return f<=0?o=ou(e=n-1)+f:f>ou(n)?(e=n+1,o=f-ou(n)):(e=n,o=f),{year:e,dayOfYear:o}}function hu(n,t,i){var u,f,e=af(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1;return r<1?u=r+tr(f=n.year()-1,t,i):r>tr(n.year(),t,i)?(u=r-tr(n.year(),t,i),f=n.year()+1):(f=n.year(),u=r),{week:u,year:f}}function tr(n,t,i){var r=af(n,t,i),u=af(n+1,t,i);return(ou(n)-r+u)/7}function no(){function u(n,t){return t.length-n.length}for(var f,e,o,s,h=[],i=[],r=[],t=[],n=0;n<7;n++)f=ni([2e3,1]).day(n),e=this.weekdaysMin(f,""),o=this.weekdaysShort(f,""),s=this.weekdays(f,""),h.push(e),i.push(o),r.push(s),t.push(e),t.push(o),t.push(s);for(h.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gi(i[n]),r[n]=gi(r[n]),t[n]=gi(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function to(){return this.hours()%12||12}function yh(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ph(n,t){return t._meridiemParse}function bh(n){return n?n.toLowerCase().replace("_","-"):n}function vf(n){var t=null;if(!y[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=cu._abbr;require("./locale/"+n);lr(t)}catch(n){}return y[n]}function lr(n,t){var i;return n&&((i=p(t)?hi(n):io(n,t))?cu=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),cu._abbr}function io(n,t){if(null!==t){var r,i=wh;if(t.abbr=n,null!=y[n])bs("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."),i=y[n]._config;else if(null!=t.parentLocale)if(null!=y[t.parentLocale])i=y[t.parentLocale]._config;else{if(null==(r=vf(t.parentLocale)))return lu[t.parentLocale]||(lu[t.parentLocale]=[]),lu[t.parentLocale].push({name:n,config:t}),null;i=r._config}return y[n]=new ve(ks(i,t)),lu[n]&&lu[n].forEach(function(n){io(n.name,n.config)}),lr(n),y[n]}return delete y[n],null}function hi(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return cu;if(!lt(n)){if(t=vf(n))return t;n=[n]}return function(n){for(var t,i,f,u,r=0;r<n.length;){for(t=(u=bh(n[r]).split("-")).length,i=(i=bh(n[r+1]))?i.split("-"):null;t>0;){if(f=vf(u.slice(0,t).join("-")))return f;if(i&&i.length>=t&&ys(u,i,!0)>=t-1)break;t--}r++}return cu}(n)}function ro(n){var i,t=n._a;return t&&-2===u(n).overflow&&(i=t[fi]<0||t[fi]>11?fi:t[ti]<1||t[ti]>lf(t[vt],t[fi])?ti:t[v]<0||t[v]>24||24===t[v]&&(0!==t[yt]||0!==t[ei]||0!==t[nr])?v:t[yt]<0||t[yt]>59?yt:t[ei]<0||t[ei]>59?ei:t[nr]<0||t[nr]>999?nr:-1,u(n)._overflowDayOfYear&&(i<vt||i>ti)&&(i=ti),u(n)._overflowWeeks&&-1===i&&(i=av),u(n)._overflowWeekday&&-1===i&&(i=vv),u(n).overflow=i),n}function ar(n,t,i){return null!=n?n:null!=t?t:i}function uo(t){var i,f,e,h,o,s=[],l,r;if(!t._d){for(l=t,r=new Date(n.now()),e=l._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[ti]&&null==t._a[fi]&&function(n){var t,o,f,i,r,e,h,s,l;null!=(t=n._w).GG||null!=t.W||null!=t.E?(r=1,e=4,o=ar(t.GG,n._a[vt],hu(c(),1,4).year),f=ar(t.W,1),((i=ar(t.E,1))<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=hu(c(),r,e),o=ar(t.gg,n._a[vt],l.year),f=ar(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>tr(o,r,e)?u(n)._overflowWeeks=!0:null!=s?u(n)._overflowWeekday=!0:(h=ah(o,f,i,r,e),n._a[vt]=h.year,n._dayOfYear=h.dayOfYear)}(t),null!=t._dayOfYear&&(o=ar(t._a[vt],e[vt]),(t._dayOfYear>ou(o)||0===t._dayOfYear)&&(u(t)._overflowDayOfYear=!0),f=su(o,0,t._dayOfYear),t._a[fi]=f.getUTCMonth(),t._a[ti]=f.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=s[i]=e[i];for(;i<7;i++)t._a[i]=s[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[v]&&0===t._a[yt]&&0===t._a[ei]&&0===t._a[nr]&&(t._nextDay=!0,t._a[v]=0);t._d=(t._useUTC?su:function(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}).apply(null,s);h=t._useUTC?t._d.getUTCDay():t._d.getDay();null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm);t._nextDay&&(t._a[v]=24);t._w&&void 0!==t._w.d&&t._w.d!==h&&(u(t).weekdayMismatch=!0)}}function kh(n){var t,r,o,e,f,s,h=n._i,i=ny.exec(h)||ty.exec(h);if(i){for(u(n).iso=!0,t=0,r=yf.length;t<r;t++)if(yf[t][1].exec(i[1])){e=yf[t][0];o=!1!==yf[t][2];break}if(null==e)return void(n._isValid=!1);if(i[3]){for(t=0,r=fo.length;t<r;t++)if(fo[t][1].exec(i[3])){f=(i[2]||" ")+fo[t][0];break}if(null==f)return void(n._isValid=!1)}if(!o&&null!=f)return void(n._isValid=!1);if(i[4]){if(!iy.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=e+(f||"")+(s||"");eo(n)}else n._isValid=!1}function uy(n,t,i,r,u,f){var e=[function(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}(n),eh.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function nc(n){var r,i,f,t=dh.exec(n._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()),e;if(t){if(e=uy(t[4],t[3],t[2],t[5],t[6],t[7]),r=t[1],i=e,f=n,r&&vh.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()&&(u(f).weekdayMismatch=!0,f._isValid=!1,1))return;n._a=e;n._tzm=function(n,t,i){if(n)return gh[n];if(t)return 0;var r=parseInt(i,10),u=r%100;return(r-u)/100*60+u}(t[8],t[9],t[10]);n._d=su.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function eo(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[];u(t).empty=!0;for(var r,f,c,o,a,h,i=""+t._i,p=i.length,y=0,s=gs(t._f,t._locale).match(ds)||[],e=0;e<s.length;e++)f=s[e],(r=(i.match(lv(f,t))||[])[0])&&((c=i.substr(0,i.indexOf(r))).length>0&&u(t).unusedInput.push(c),i=i.slice(i.indexOf(r)+r.length),y+=r.length),hr[f]?(r?u(t).empty=!1:u(t).unusedTokens.push(f),o=f,h=t,null!=(a=r)&&l(sf,o)&&sf[o](a,h._a,h,o)):t._strict&&!r&&u(t).unusedTokens.push(f);u(t).charsLeftOver=p-y;i.length>0&&u(t).unusedInput.push(i);t._a[v]<=12&&!0===u(t).bigHour&&t._a[v]>0&&(u(t).bigHour=void 0);u(t).parsedDateParts=t._a.slice(0);u(t).meridiem=t._meridiem;t._a[v]=function(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?((r=n.isPM(i))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(t._locale,t._a[v],t._meridiem);uo(t);ro(t)}else nc(t);else kh(t)}function tc(t){var r,f,i,s,e=t._i,o=t._f;return t._locale=t._locale||hi(t._l),null===e||void 0===o&&""===e?ku({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),si(e)?new uu(ro(e)):(bu(e)?t._d=e:lt(o)?function(n){var t,e,f,r,i;if(0===n._f.length)return u(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=le({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],eo(t),ce(t)&&(i+=u(t).charsLeftOver,i+=10*u(t).unusedTokens.length,u(t).score=i,(null==f||i<f)&&(f=i,e=t));oi(n,e||t)}(t):o?eo(t):p(f=(r=t)._i)?r._d=new Date(n.now()):bu(f)?r._d=new Date(f.valueOf()):"string"==typeof f?(i=r,null===(s=ry.exec(i._i))?(kh(i),!1===i._isValid&&(delete i._isValid,nc(i),!1===i._isValid&&(delete i._isValid,n.createFromInputFallback(i)))):i._d=new Date(+s[1])):lt(f)?(r._a=vs(f.slice(0),function(n){return parseInt(n,10)}),uo(r)):ru(f)?function(n){if(!n._d){var t=ye(n._i);n._a=vs([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});uo(n)}}(r):di(f)?r._d=new Date(f):n.createFromInputFallback(r),ce(t)||(t._d=null),t))}function ic(n,t,i,r,u){var e,f={};return!0!==i&&!1!==i||(r=i,i=void 0),(ru(n)&&function(n){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(n).length;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}(n)||lt(n)&&0===n.length)&&(n=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,(e=new uu(ro(tc(f))))._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function c(n,t,i,r){return ic(n,t,i,r,!1)}function fc(n,t){var r,i;if(1===t.length&&lt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][n](r)||(r=t[i]);return r}function pf(n){var t=ye(n),i=t.year||0,r=t.quarter||0,u=t.month||0,e=t.week||0,o=t.day||0,s=t.hour||0,h=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=function(n){var i,r,t;for(i in n)if(-1===a.call(vr,i)||null!=n[i]&&isNaN(n[i]))return!1;for(r=!1,t=0;t<vr.length;++t)if(n[vr[t]]){if(r)return!1;parseFloat(n[vr[t]])!==f(n[vr[t]])&&(r=!0)}return!0}(t);this._milliseconds=+l+1e3*c+6e4*h+36e5*s;this._days=+o+7*e;this._months=+u+3*r+12*i;this._data={};this._locale=hi();this._bubble()}function oo(n){return n instanceof pf}function so(n){return n<0?-1*Math.round(-1*n):Math.round(n)}function ec(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ui(~~(n/60),2)+t+ui(~~n%60,2)})}function ho(n,t){var u=(t||"").match(n),i,r;return null===u?null:(i=((u[u.length-1]||[])+"").match(oc)||["-",0,0],r=60*i[1]+f(i[2]),0===r?0:"+"===i[0]?r:-r)}function co(t,i){var r,u;return i._isUTC?(r=i.clone(),u=(si(t)||bu(t)?t.valueOf():c(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),n.updateOffset(r,!1),r):c(t).local()}function lo(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function sc(){return!!this.isValid()&&this._isUTC&&0===this._offset}function pt(n,t){var u,e,o,r=n,i=null;return oo(n)?r={ms:n._milliseconds,d:n._days,M:n._months}:di(n)?(r={},t?r[t]=n:r.milliseconds=n):(i=hc.exec(n))?(u="-"===i[1]?-1:1,r={y:0,d:f(i[ti])*u,h:f(i[v])*u,m:f(i[yt])*u,s:f(i[ei])*u,ms:f(so(1e3*i[nr]))*u}):(i=cc.exec(n))?(u="-"===i[1]?-1:(i[1],1),r={y:ir(i[2],u),M:ir(i[3],u),w:ir(i[4],u),d:ir(i[5],u),h:ir(i[6],u),m:ir(i[7],u),s:ir(i[8],u)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=function(n,t){var i;return!n.isValid()||!t.isValid()?{milliseconds:0,months:0}:(t=co(t,n),n.isBefore(t)?i=lc(n,t):((i=lc(t,n)).milliseconds=-i.milliseconds,i.months=-i.months),i)}(c(r.from),c(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),e=new pf(r),oo(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ir(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function lc(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function ac(n,t){return function(i,r){var u;return null===r||isNaN(+r)||(bs(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=i,i=r,r=u),vc(this,pt(i="string"==typeof i?+i:i,r),n),this}}function vc(t,i,r,u){var o=i._milliseconds,f=so(i._days),e=so(i._months);t.isValid()&&(u=null==u||u,e&&oh(t,cf(t,"Month")+e*r),f&&uh(t,"Date",cf(t,"Date")+f*r),o&&t._d.setTime(t._d.valueOf()+o*r),u&&n.updateOffset(t,f||e))}function ao(n,t){var r=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(r,"months");return-(r+(t-i<0?(t-i)/(i-n.clone().add(r-1,"months")):(t-i)/(n.clone().add(r+1,"months")-i)))||0}function wc(n){var t;return void 0===n?this._locale._abbr:(null!=(t=hi(n))&&(this._locale=t),this)}function bc(){return this._locale}function wf(n,t){r(0,[n,n.length],0,t)}function kc(n,t,i,r,u){var f;return null==n?hu(this,r,u).year:(t>(f=tr(n,r,u))&&(t=f),function(n,t,i,r,u){var e=ah(n,t,i,r,u),f=su(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}.call(this,n,t,i,r,u))}function fy(n,t){t[nr]=f(1e3*("0."+n))}function tl(n){return n}function bf(n,t,i,r){var u=hi(),f=ni().set(r,t);return u[i](f,n)}function il(n,t,i){if(di(n)&&(t=n,n=void 0),n=n||"",null!=t)return bf(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=bf(n,r,i,"month");return u}function po(n,t,i,r){var u,o,f,e;if("boolean"==typeof n?(di(t)&&(i=t,t=void 0),t=t||""):(i=t=n,n=!1,di(t)&&(i=t,t=void 0),t=t||""),o=hi(),f=n?o._week.dow:0,null!=i)return bf(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=bf(t,(u+f)%7,r,"day");return e}function rl(n,t,i,r){var u=pt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ul(n){return n<0?Math.floor(n):Math.ceil(n)}function fl(n){return 4800*n/146097}function wo(n){return 146097*n/4800}function li(n){return function(){return this.as(n)}}function rr(n){return function(){return this.isValid()?this._data[n]:NaN}}function yr(n){return(n>0)-(n<0)||+n}function kf(){if(!this.isValid())return this.localeData().invalidDate();var i,o,t=bo(this._milliseconds)/1e3,v=bo(this._days),s=bo(this._months);o=d((i=d(t/60))/60);t%=60;i%=60;var h=d(s/12),c=s%=12,l=v,r=o,u=i,f=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var y=n<0?"-":"",a=yr(this._months)!==yr(n)?"-":"",p=yr(this._days)!==yr(n)?"-":"",e=yr(this._milliseconds)!==yr(n)?"-":"";return y+"P"+(h?a+h+"Y":"")+(c?a+c+"M":"")+(l?p+l+"D":"")+(r||u||f?"T":"")+(r?e+r+"H":"")+(u?e+u+"M":"")+(f?e+f+"S":"")}function ur(n,t,i){var r,u;return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":n+" "+(r=+n,u={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i].split("_"),r%10==1&&r%100!=11?u[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?u[1]:u[2])}function ko(n,t,i){return n+" "+function(n,t){return 2===t?function(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}(n):n}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function vi(n,t,i){var r=n+" ";switch(i){case"ss":return r+(1===n?"sekunda":2===n||3===n||4===n?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function pr(n){return n>1&&n<5&&1!=~~(n/10)}function rt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?u+(pr(n)?"sekundy":"sekund"):u+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?u+(pr(n)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(pr(n)?"hodiny":"hodin"):u+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?u+(pr(n)?"dny":"dní"):u+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?u+(pr(n)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?u+(pr(n)?"roky":"let"):u+"lety"}}function yi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function pi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function wi(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function wt(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[n+"sekundi",n+"sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}function ut(n,t,i,r){var f,e,u="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":return r?"sekunnin":"sekuntia";case"m":return r?"minuutin":"minuutti";case"mm":u=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":u=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":u=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":u=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":u=r?"vuoden":"vuotta"}return e=r,u=((f=n)<10?e?ia[f]:au[f]:f)+" "+u}function ft(n,t,i){var r={s:["thodde secondanim","thodde second"],ss:[n+" secondanim",n+" second"],m:["eka mintan","ek minute"],mm:[n+" mintanim",n+" mintam"],h:["eka horan","ek hor"],hh:[n+" horanim",n+" hor"],d:["eka disan","ek dis"],dd:[n+" disanim",n+" dis"],M:["eka mhoinean","ek mhoino"],MM:[n+" mhoineanim",n+" mhoine"],y:["eka vorsan","ek voros"],yy:[n+" vorsanim",n+" vorsam"]};return t?r[i][0]:r[i][1]}function bi(n,t,i){var r=n+" ";switch(i){case"ss":return r+(1===n?"sekunda":2===n||3===n||4===n?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function et(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return u+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function ha(n){return(n?"":"[múlt] ")+"["+sa[this.day()]+"] LT[-kor]"}function wr(n){return n%100==11||n%10!=1}function bt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return wr(n)?u+(t||r?"sekúndur":"sekúndum"):u+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return wr(n)?u+(t||r?"mínútur":"mínútum"):t?u+"mínúta":u+"mínútu";case"hh":return wr(n)?u+(t||r?"klukkustundir":"klukkustundum"):u+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return wr(n)?t?u+"dagar":u+(r?"daga":"dögum"):t?u+"dagur":u+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return wr(n)?t?u+"mánuðir":u+(r?"mánuði":"mánuðum"):t?u+"mánuður":u+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return wr(n)?u+(t||r?"ár":"árum"):u+(t||r?"ár":"ári")}}function vu(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function yu(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var t=n%10;return yu(0===t?n/10:t)}if(n<1e4){for(;n>=10;)n/=10;return yu(n)}return yu(n/=1e3)}function br(n,t,i,r){return t?ki(i)[0]:r?ki(i)[1]:ki(i)[2]}function va(n){return n%10==0||n>10&&n<20}function ki(n){return aa[n].split("_")}function kr(n,t,i,r){var u=n+" ";return 1===n?u+br(0,t,i[0],r):t?u+(va(n)?ki(i)[1]:ki(i)[0]):r?u+ki(i)[1]:u+(va(n)?ki(i)[1]:ki(i)[2])}function ya(n,t,i){return i?t%10==1&&t%100!=11?n[2]:n[3]:t%10==1&&t%100!=11?n[0]:n[1]}function dr(n,t,i){return n+" "+ya(fs[i],n,t)}function pu(n,t,i){return ya(fs[i],n,t)}function ot(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}function wu(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function fr(n,t,i){var r=n+" ";switch(i){case"ss":return r+(wu(n)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(wu(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(wu(n)?"godziny":"godzin");case"MM":return r+(wu(n)?"miesiące":"miesięcy");case"yy":return r+(wu(n)?"lata":"lat")}}function gr(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function er(n,t,i){var r,u;return"m"===i?t?"минута":"минуту":n+" "+(r=+n,u={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),r%10==1&&r%100!=11?u[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?u[1]:u[2])}function nu(n){return n>1&&n<5}function st(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?u+(nu(n)?"sekundy":"sekúnd"):u+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?u+(nu(n)?"minúty":"minút"):u+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(nu(n)?"hodiny":"hodín"):u+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?u+(nu(n)?"dni":"dní"):u+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?u+(nu(n)?"mesiace":"mesiacov"):u+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?u+(nu(n)?"roky":"rokov"):u+"rokmi"}}function ht(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return u+(1===n?t?"sekundo":"sekundi":2===n?t||r?"sekundi":"sekundah":n<5?t||r?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":n<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":n<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":n<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":n<5?t||r?"leta":"leti":t||r?"let":"leti")}}function tu(n,t,i){var r=function(n){var i=Math.floor(n%1e3/100),r=Math.floor(n%100/10),u=n%10,t="";return i>0&&(t+=oe[i]+"vatlh"),r>0&&(t+=(""!==t?" ":"")+oe[r]+"maH"),u>0&&(t+=(""!==t?" ":"")+oe[u]),""===t?"pagh":t}(n);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function ct(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],ss:[n+" secunds",n+" secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}function or(n,t,i){var r,u;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+(r=+n,u={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),r%10==1&&r%100!=11?u[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?u[1]:u[2])}function iu(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}var ls,as,du,gu,ws,ae,sr,pe,sf,a,ge,hh,ch,dh,gh,rc,uc,vr,oc,hc,cc,yc,pc,vo,yo,dc,ci,gc,nl,t,o,ii,e,sl,hl,df,al,vl,yl,pl,gf,ne,go,ns,is,kl,na,ta,au,ia,us,ra,ua,fa,ea,oa,sa,te,ca,la,ie,aa,fs,kt,pa,wa,ba,ka,da,ga,uv,fv,re,ss,ue,hs,fe,ev,ov,dt,gt,sv,hv,ee,oe,se,cs,he;as=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};du=n.momentProperties=[];gu=!1;ae={};n.suppressDeprecationWarnings=!1;n.deprecationHandler=null;ws=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i};sr={};pe={};var ds=/(\[[^\[]*\])|(\\)?([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,nf=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,we={},hr={};var nh=/\d/,k=/\d\d/,th=/\d{3}/,be=/\d{4}/,rf=/[+-]?\d{6}/,s=/\d\d?/,ih=/\d\d\d\d?/,rh=/\d\d\d\d\d\d?/,uf=/\d{1,3}/,ke=/\d{1,4}/,ff=/[+-]?\d{1,6}/,ef=/[+-]?\d+/,cv=/Z|[+-]\d\d:?\d\d/gi,of=/Z|[+-]\d\d(?::?\d\d)?/gi,fu=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,de={};sf={};var vt=0,fi=1,ti=2,v=3,yt=4,ei=5,nr=6,av=7,vv=8;r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");w("year","y");b("year",1);i("Y",ef);i("YY",s,k);i("YYYY",ke,be);i("YYYYY",ff,rf);i("YYYYYY",ff,rf);h(["YYYYY","YYYYYY"],vt);h("YYYY",function(t,i){i[vt]=2===t.length?n.parseTwoDigitYear(t):f(t)});h("YY",function(t,i){i[vt]=n.parseTwoDigitYear(t)});h("Y",function(n,t){t[vt]=parseInt(n,10)});n.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};ge=cr("FullYear",!0);a=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});w("month","M");b("month",8);i("M",s);i("MM",s,k);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[fi]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);null!=f?t[fi]=f:u(i).invalidMonth=n});var fh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yv="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),eh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");hh=fu;ch=fu;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");w("week","w");w("isoWeek","W");b("week",5);b("isoWeek",5);i("w",s);i("ww",s,k);i("W",s);i("WW",s,k);eu(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");w("day","d");w("weekday","e");w("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);i("d",s);i("e",s);i("E",s);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});eu(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);null!=f?t.d=f:u(i).invalidWeekday=n});eu(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var pv="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bv=fu,kv=fu,dv=fu;r("H",["HH",2],0,"hour");r("h",["hh",2],0,to);r("k",["kk",2],0,function(){return this.hours()||24});r("hmm",0,0,function(){return""+to.apply(this)+ui(this.minutes(),2)});r("hmmss",0,0,function(){return""+to.apply(this)+ui(this.minutes(),2)+ui(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ui(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ui(this.minutes(),2)+ui(this.seconds(),2)});yh("a",!0);yh("A",!1);w("hour","h");b("hour",13);i("a",ph);i("A",ph);i("H",s);i("h",s);i("k",s);i("HH",s,k);i("hh",s,k);i("kk",s,k);i("hmm",ih);i("hmmss",rh);i("Hmm",ih);i("Hmmss",rh);h(["H","HH"],v);h(["k","kk"],function(n,t){var i=f(n);t[v]=24===i?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[v]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r));t[yt]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r));t[yt]=f(n.substr(r,2));t[ei]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i));t[yt]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i));t[yt]=f(n.substr(i,2));t[ei]=f(n.substr(r))});var cu,gv=cr("Hours",!0),wh={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:yv,monthsShort:eh,week:{dow:0,doy:6},weekdays:pv,weekdaysMin:wv,weekdaysShort:vh,meridiemParse:/[ap]\.?m?\.?/i},y={},lu={};var ny=/^\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)?)?$/,ty=/^\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)?)?$/,iy=/Z|[+-]\d\d(?::?\d\d)?/,yf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],fo=[["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/]],ry=/^\/?Date\((\-?\d+)/i;for(dh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gh={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},n.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){},rc=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ku()}),uc=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ku()}),vr=["year","quarter","month","week","day","hour","minute","second","millisecond"],ec("Z",":"),ec("ZZ",""),i("Z",of),i("ZZ",of),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ho(of,n)}),oc=/([\+\-]|\d\d)/gi,n.updateOffset=function(){},hc=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,cc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,pt.fn=pf.prototype,pt.invalid=function(){return pt(NaN)},yc=ac(1,"add"),pc=ac(-1,"subtract"),n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",vo=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wf("gggg","weekYear"),wf("ggggg","weekYear"),wf("GGGG","isoWeekYear"),wf("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",ef),i("g",ef),i("GG",s,k),i("gg",s,k),i("GGGG",ke,be),i("gggg",ke,be),i("GGGGG",ff,rf),i("ggggg",ff,rf),eu(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),eu(["gg","GG"],function(t,i,r,u){i[u]=n.parseTwoDigitYear(t)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",nh),h("Q",function(n,t){t[fi]=3*(f(n)-1)}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ti),h("Do",function(n,t){t[ti]=f(n.match(s)[0])}),yo=cr("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",uf),i("DDDD",th),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],yt),dc=cr("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],ei),gc=cr("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),b("millisecond",16),i("S",uf,nh),i("SS",uf,k),i("SSS",uf,th),ci="SSSS";ci.length<=9;ci+="S")i(ci,/\d+/);for(ci="S";ci.length<=9;ci+="S")h(ci,fy);nl=cr("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");t=uu.prototype;t.add=yc;t.calendar=function(t,i){var u=t||c(),f=co(u,this).startOf("day"),r=n.calendarFormat(this,f)||"sameElse",e=i&&(at(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))};t.clone=function(){return new uu(this)};t.diff=function(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(!(r=co(n,this)).isValid())return NaN;switch(f=6e4*(r.utcOffset()-this.utcOffset()),t=nt(t)){case"year":u=ao(this,r)/12;break;case"month":u=ao(this,r);break;case"quarter":u=ao(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:d(u)};t.endOf=function(n){return void 0===(n=nt(n))||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))};t.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var i=tf(this,t);return this.localeData().postformat(i)};t.from=function(n,t){return this.isValid()&&(si(n)&&n.isValid()||c(n).isValid())?pt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};t.fromNow=function(n){return this.from(c(),n)};t.to=function(n,t){return this.isValid()&&(si(n)&&n.isValid()||c(n).isValid())?pt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()};t.toNow=function(n){return this.to(c(),n)};t.get=function(n){return at(this[n=nt(n)])?this[n]():this};t.invalidAt=function(){return u(this).overflow};t.isAfter=function(n,t){var i=si(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())};t.isBefore=function(n,t){var i=si(n)?n:c(n);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=nt(p(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())};t.isBetween=function(n,t,i,r){return("("===(r=r||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))};t.isSame=function(n,t){var i,r=si(n)?n:c(n);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=nt(t||"millisecond"))?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))};t.isSameOrAfter=function(n,t){return this.isSame(n,t)||this.isAfter(n,t)};t.isSameOrBefore=function(n,t){return this.isSame(n,t)||this.isBefore(n,t)};t.isValid=function(){return ce(this)};t.lang=vo;t.locale=wc;t.localeData=bc;t.max=uc;t.min=rc;t.parsingFlags=function(){return oi({},u(this))};t.set=function(n,t){if("object"==typeof n)for(var r=function(n){var t=[];for(var i in n)t.push({unit:i,priority:pe[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}(n=ye(n)),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(at(this[n=nt(n)]))return this[n](t);return this};t.startOf=function(n){switch(n=nt(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this};t.subtract=pc;t.toArray=function(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]};t.toObject=function(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}};t.toDate=function(){return new Date(this.valueOf())};t.toISOString=function(n){if(!this.isValid())return null;var i=!0!==n,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?tf(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):at(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",tf(t,"Z")):tf(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};t.inspect=function(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)};t.toJSON=function(){return this.isValid()?this.toISOString():null};t.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};t.unix=function(){return Math.floor(this.valueOf()/1e3)};t.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)};t.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};t.year=ge;t.isLeapYear=function(){return hf(this.year())};t.weekYear=function(n){return kc.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};t.isoWeekYear=function(n){return kc.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)};t.quarter=t.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)};t.month=sh;t.daysInMonth=function(){return lf(this.year(),this.month())};t.week=t.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")};t.isoWeek=t.isoWeeks=function(n){var t=hu(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")};t.weeksInYear=function(){var n=this.localeData()._week;return tr(this.year(),n.dow,n.doy)};t.isoWeeksInYear=function(){return tr(this.year(),1,4)};t.date=yo;t.day=t.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(t=n,i=this.localeData(),n="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(n-r,"d")):r};t.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")};t.isoWeekday=function(n){var i,t,r;return this.isValid()?null!=n?(i=(t=n,r=this.localeData(),"string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t),this.day(this.day()%7?i:i-7)):this.day()||7:null!=n?this:NaN};t.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")};t.hour=t.hours=gv;t.minute=t.minutes=dc;t.second=t.seconds=gc;t.millisecond=t.milliseconds=nl;t.utcOffset=function(t,i,r){var u,f=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ho(of,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&i&&(u=lo(this)),this._offset=t,this._isUTC=!0,null!=u&&this.add(u,"m"),f!==t&&(!i||this._changeInProgress?vc(this,pt(t-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?f:lo(this)};t.utc=function(n){return this.utcOffset(0,n)};t.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(lo(this),"m")),this};t.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=ho(cv,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this};t.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0)};t.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};t.isLocal=function(){return!!this.isValid()&&!this._isUTC};t.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};t.isUtc=sc;t.isUTC=sc;t.zoneAbbr=function(){return this._isUTC?"UTC":""};t.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};t.dates=g("dates accessor is deprecated. Use date instead.",yo);t.months=g("months accessor is deprecated. Use month instead",sh);t.years=g("years accessor is deprecated. Use year instead",ge);t.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()});t.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var n,t;return p(this._isDSTShifted)?(n={},(le(n,this),(n=tc(n))._a)?(t=n._isUTC?ni(n._a):c(n._a),this._isDSTShifted=this.isValid()&&ys(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted});o=ve.prototype;o.calendar=function(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return at(r)?r.call(t,i):r};o.longDateFormat=function(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])};o.invalidDate=function(){return this._invalidDate};o.ordinal=function(n){return this._ordinal.replace("%d",n)};o.preparse=tl;o.postformat=tl;o.relativeTime=function(n,t,i,r){var u=this._relativeTime[i];return at(u)?u(n,t,i,r):u.replace(/%d/i,n)};o.pastFuture=function(n,t){var i=this._relativeTime[n>0?"future":"past"];return at(i)?i(t):i.replace(/%s/i,t)};o.set=function(n){var t;for(var i in n)at(t=n[i])?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};o.months=function(n,t){return n?lt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||fh).test(t)?"format":"standalone"][n.month()]:lt(this._months)?this._months:this._months.standalone};o.monthsShort=function(n,t){return n?lt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[fh.test(t)?"format":"standalone"][n.month()]:lt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};o.monthsParse=function(n,t,i){var r,u,f;if(this._monthsParseExact)return function(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ni([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:null:"MMM"===t?-1!==(r=a.call(this._shortMonthsParse,f))?r:-1!==(r=a.call(this._longMonthsParse,f))?r:null:-1!==(r=a.call(this._longMonthsParse,f))?r:-1!==(r=a.call(this._shortMonthsParse,f))?r:null}.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ni([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r};o.monthsRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||lh.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ch),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)};o.monthsShortRegex=function(n){return this._monthsParseExact?(l(this,"_monthsRegex")||lh.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=hh),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)};o.week=function(n){return hu(n,this._week.dow,this._week.doy).week};o.firstDayOfYear=function(){return this._week.doy};o.firstDayOfWeek=function(){return this._week.dow};o.weekdays=function(n,t){return n?lt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:lt(this._weekdays)?this._weekdays:this._weekdays.standalone};o.weekdaysMin=function(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin};o.weekdaysShort=function(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort};o.weekdaysParse=function(n,t,i){var r,u,f;if(this._weekdaysParseExact)return function(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ni([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"dddd"===t?-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:"ddd"===t?-1!==(r=a.call(this._shortWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._minWeekdaysParse,u))?r:null:-1!==(r=a.call(this._minWeekdaysParse,u))?r:-1!==(r=a.call(this._weekdaysParse,u))?r:-1!==(r=a.call(this._shortWeekdaysParse,u))?r:null}.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ni([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r};o.weekdaysRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||no.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=bv),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)};o.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||no.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kv),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};o.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||no.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=dv),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};o.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)};o.meridiem=function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"};lr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===f(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.lang=g("moment.lang is deprecated. Use moment.locale instead.",lr);n.langData=g("moment.langData is deprecated. Use moment.localeData instead.",hi);ii=Math.abs;var ey=li("ms"),oy=li("s"),sy=li("m"),hy=li("h"),cy=li("d"),ly=li("w"),ay=li("M"),vy=li("y");var yy=rr("milliseconds"),py=rr("seconds"),wy=rr("minutes"),by=rr("hours"),ky=rr("days"),dy=rr("months"),gy=rr("years"),ai=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,M:11},bo=Math.abs;e=pf.prototype;e.isValid=function(){return this._isValid};e.abs=function(){var n=this._data;return this._milliseconds=ii(this._milliseconds),this._days=ii(this._days),this._months=ii(this._months),n.milliseconds=ii(n.milliseconds),n.seconds=ii(n.seconds),n.minutes=ii(n.minutes),n.hours=ii(n.hours),n.months=ii(n.months),n.years=ii(n.years),this};e.add=function(n,t){return rl(this,n,t,1)};e.subtract=function(n,t){return rl(this,n,t,-1)};e.as=function(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(n=nt(n))||"year"===n)return t=this._days+i/864e5,r=this._months+fl(t),"month"===n?r:r/12;switch(t=this._days+Math.round(wo(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}};e.asMilliseconds=ey;e.asSeconds=oy;e.asMinutes=sy;e.asHours=hy;e.asDays=cy;e.asWeeks=ly;e.asMonths=ay;e.asYears=vy;e.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN};e._bubble=function(){var u,f,e,o,s,r=this._milliseconds,t=this._days,n=this._months,i=this._data;return r>=0&&t>=0&&n>=0||r<=0&&t<=0&&n<=0||(r+=864e5*ul(wo(n)+t),t=0,n=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=s=d(fl(t+=d(e/24))),t-=ul(wo(s)),o=d(n/12),n%=12,i.days=t,i.months=n,i.years=o,this};e.clone=function(){return pt(this)};e.get=function(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN};e.milliseconds=yy;e.seconds=py;e.minutes=wy;e.hours=by;e.days=ky;e.weeks=function(){return d(this.days()/7)};e.months=dy;e.years=gy;e.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var l,a,v,t,i,r,u,f,e,s,o,h=this.localeData(),c=(a=!n,v=h,t=pt(l=this).abs(),i=ai(t.as("s")),r=ai(t.as("m")),u=ai(t.as("h")),f=ai(t.as("d")),e=ai(t.as("M")),s=ai(t.as("y")),(o=i<=ri.ss&&["s",i]||i<ri.s&&["ss",i]||r<=1&&["m"]||r<ri.m&&["mm",r]||u<=1&&["h"]||u<ri.h&&["hh",u]||f<=1&&["d"]||f<ri.d&&["dd",f]||e<=1&&["M"]||e<ri.M&&["MM",e]||s<=1&&["y"]||["yy",s])[2]=a,o[3]=+l>0,o[4]=v,function(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}.apply(null,o));return n&&(c=h.pastFuture(+this,c)),h.postformat(c)};e.toISOString=kf;e.toString=kf;e.toJSON=kf;e.locale=wc;e.localeData=bc;e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kf);e.lang=vo;r("X",0,0,"unix");r("x",0,0,"valueOf");i("x",ef);i("X",/[+-]?\d+(\.\d{1,3})?/);h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))});h("x",function(n,t,i){i._d=new Date(f(n))});n.version="2.21.0";ls=c;n.fn=t;n.min=function(){return fc("isBefore",[].slice.call(arguments,0))};n.max=function(){return fc("isAfter",[].slice.call(arguments,0))};n.now=function(){return Date.now?Date.now():+new Date};n.utc=ni;n.unix=function(n){return c(1e3*n)};n.months=function(n,t){return il(n,t,"months")};n.isDate=bu;n.locale=lr;n.invalid=ku;n.duration=pt;n.isMoment=si;n.weekdays=function(n,t,i){return po(n,t,i,"weekdays")};n.parseZone=function(){return c.apply(null,arguments).parseZone()};n.localeData=hi;n.isDuration=oo;n.monthsShort=function(n,t){return il(n,t,"monthsShort")};n.weekdaysMin=function(n,t,i){return po(n,t,i,"weekdaysMin")};n.defineLocale=io;n.updateLocale=function(n,t){if(null!=t){var i,r,u=wh;null!=(r=vf(n))&&(u=r._config);(i=new ve(t=ks(u,t))).parentLocale=y[n];y[n]=i;lr(n)}else null!=y[n]&&(null!=y[n].parentLocale?y[n]=y[n].parentLocale:null!=y[n]&&delete y[n]);return y[n]};n.locales=function(){return ws(y)};n.weekdaysShort=function(n,t,i){return po(n,t,i,"weekdaysShort")};n.normalizeUnits=nt;n.relativeTimeRounding=function(n){return void 0===n?ai:"function"==typeof n&&(ai=n,!0)};n.relativeTimeThreshold=function(n,t){return void 0!==ri[n]&&(void 0===t?ri[n]:(ri[n]=t,"s"===n&&(ri.ss=t-1),!0))};n.calendarFormat=function(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"};n.prototype=t;n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"};n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}});n.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}});n.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var np={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},el=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},tp={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},tt=function(n){return function(t,i){var u=el(t),r=tp[n][el(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},ol=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];n.defineLocale("ar-ly",{months:ol,monthsShort:ol,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:tt("s"),ss:tt("s"),m:tt("m"),mm:tt("m"),h:tt("h"),hh:tt("h"),d:tt("d"),dd:tt("d"),M:tt("M"),MM:tt("M"),y:tt("y"),yy:tt("y")},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return np[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}});n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});sl={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"};hl={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return hl[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return sl[n]}).replace(/,/g,"،")},week:{dow:0,doy:6}});n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var ip={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},rp={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},cl=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},up={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},it=function(n){return function(t,i){var u=cl(t),r=up[n][cl(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},ll=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];n.defineLocale("ar",{months:ll,monthsShort:ll,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:it("s"),ss:it("s"),m:it("m"),mm:it("m"),h:it("h"),hh:it("h"),d:it("d"),dd:it("d"),M:it("M"),MM:it("M"),y:it("y"),yy:it("y")},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return rp[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return ip[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}});df={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(n){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(n)},meridiem:function(n){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var t=n%10;return n+(df[t]||df[n%100-t]||df[n>=100?100:null])},week:{dow:1,doy:7}});n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:ur,mm:ur,h:ur,hh:ur,d:"дзень",dd:ur,M:"месяц",MM:ur,y:"год",yy:ur},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночы":n<12?"раніцы":n<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}});n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}});n.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});al={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"};vl={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};n.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(n){return vl[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return al[n]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(n,t){return 12===n&&(n=0),"রাত"===t&&n>=4||"দুপুর"===t&&n<5||"বিকাল"===t?n+12:n},meridiem:function(n){return n<4?"রাত":n<10?"সকাল":n<17?"দুপুর":n<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});yl={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"};pl={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(n){return pl[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return yl[n]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(n,t){return 12===n&&(n=0),"མཚན་མོ"===t&&n>=4||"ཉིན་གུང"===t&&n<5||"དགོང་དག"===t?n+12:n},meridiem:function(n){return n<4?"མཚན་མོ":n<10?"ཞོགས་ཀས":n<17?"ཉིན་གུང":n<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:ko,h:"un eur",hh:"%d eur",d:"un devezh",dd:ko,M:"ur miz",MM:ko,y:"ur bloaz",yy:function(n){switch(function n(t){return t>9?n(t%10):t}(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(n){return n+(1===n?"añ":"vet")},week:{dow:1,doy:4}});n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:vi,m:vi,mm:vi,h:vi,hh:vi,d:"dan",dd:vi,M:"mjesec",MM:vi,y:"godinu",yy:vi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});n.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return"w"!==t&&"W"!==t||(i="a"),n+i},week:{dow:1,doy:4}});gf="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_");ne="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");n.defineLocale("cs",{months:gf,monthsShort:ne,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(gf,ne),shortMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(ne),longMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(gf),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:rt,ss:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){return n+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(n)?"рен":/\u04ab\u0443\u043b$/i.exec(n)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t="";return n>20?t=40===n||50===n||60===n||80===n||100===n?"fed":"ain":n>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][n]),n+t},week:{dow:1,doy:4}});n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:yi,mm:"%d Minuten",h:yi,hh:"%d Stunden",d:yi,dd:yi,M:yi,MM:yi,y:yi,yy:yi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:pi,mm:"%d Minuten",h:pi,hh:"%d Stunden",d:pi,dd:pi,M:pi,MM:pi,y:pi,yy:pi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:wi,mm:"%d Minuten",h:wi,hh:"%d Stunden",d:wi,dd:wi,M:wi,MM:wi,y:wi,yy:wi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});go=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"];ns=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];n.defineLocale("dv",{months:go,monthsShort:go,weekdays:ns,weekdaysShort:ns,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(n){return"މފ"===n},meridiem:function(n){return n<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}});n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return n?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,t){var i=this._calendarEl[n],r=t&&t.hours();return at(i)&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}});n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}});n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}});n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var wl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),fp="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ts=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],bl=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?fp[n.month()]:wl[n.month()]:wl},monthsRegex:bl,monthsShortRegex:bl,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ts,longMonthsParse:ts,shortMonthsParse:ts,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});is="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_");kl="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");n.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?kl[n.month()]:is[n.month()]:is},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var dl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ep="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),rs=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],gl=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?ep[n.month()]:dl[n.month()]:dl},monthsRegex:gl,monthsShortRegex:gl,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:rs,longMonthsParse:rs,shortMonthsParse:rs,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:wt,ss:wt,m:wt,mm:wt,h:wt,hh:wt,d:wt,dd:"%d päeva",M:wt,MM:wt,y:wt,yy:wt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});na={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"};ta={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(n){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(n)},meridiem:function(n){return n<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[\u06f0-\u06f9]/g,function(n){return ta[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return na[n]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});au="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ");ia=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",au[7],au[8],au[9]];n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:ut,ss:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}}});n.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(n,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}});n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,t){switch(t){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}});us="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_");ra="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?ra[n.month()]:us[n.month()]:us},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}});n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){return n+(1===n?"d":n%10==2?"na":"mh")},week:{dow:1,doy:4}});n.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return 0===n.indexOf("un")?"n"+n:"en "+n},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:ft,ss:ft,m:ft,mm:ft,h:ft,hh:ft,d:ft,dd:ft,M:ft,MM:ft,y:ft,yy:ft},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(n,t){switch(t){case"D":return n+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return n}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(n,t){return 12===n&&(n=0),"rati"===t?n<4?n:n+12:"sokalli"===t?n:"donparam"===t?n>12?n:n+12:"sanje"===t?n+12:void 0},meridiem:function(n){return n<4?"rati":n<12?"sokalli":n<16?"donparam":n<20?"sanje":"rati"}});ua={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"};fa={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};n.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(n){return n.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(n){return fa[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ua[n]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(n,t){return 12===n&&(n=0),"રાત"===t?n<4?n:n+12:"સવાર"===t?n:"બપોર"===t?n>=10?n:n+12:"સાંજ"===t?n+12:void 0},meridiem:function(n){return n<4?"રાત":n<10?"સવાર":n<17?"બપોર":n<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(n){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(n)},meridiem:function(n,t,i){return n<5?"לפנות בוקר":n<10?"בבוקר":n<12?i?'לפנה"צ':"לפני הצהריים":n<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});ea={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};oa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return oa[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ea[n]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?n<4?n:n+12:"सुबह"===t?n:"दोपहर"===t?n>=10?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return n<4?"रात":n<10?"सुबह":n<17?"दोपहर":n<20?"शाम":"रात"},week:{dow:0,doy:6}});n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:bi,m:bi,mm:bi,h:bi,hh:bi,d:"dan",dd:bi,M:"mjesec",MM:bi,y:"godinu",yy:bi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});sa="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return n<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ha.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ha.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:et,ss:et,m:et,mm:et,h:et,hh:et,d:et,dd:et,M:et,MM:et,y:et,yy:et},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(n){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(n)},meridiem:function(n){return n<4?"գիշերվա":n<12?"առավոտվա":n<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}});n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?n>=11?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:bt,ss:bt,m:bt,mm:bt,h:"klukkustund",hh:bt,d:bt,dd:bt,M:bt,MM:bt,y:bt,yy:bt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(n){return"午後"===n},meridiem:function(n){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?n>=11?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(n)?n.replace(/\u10d8$/,"ში"):n+"ში"},past:function(n){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(n)?n.replace(/(\u10d8|\u10d4)$/,"ის უკან"):/\u10ec\u10d4\u10da\u10d8/.test(n)?n.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":n<20||n<=100&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}});te={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};n.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(n){return n+(te[n]||te[n%10]||te[n>=100?100:null])},week:{dow:1,doy:7}});n.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});ca={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"};la={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};n.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(n){return n.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(n){return la[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ca[n]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(n,t){return 12===n&&(n=0),"ರಾತ್ರಿ"===t?n<4?n:n+12:"ಬೆಳಿಗ್ಗೆ"===t?n:"ಮಧ್ಯಾಹ್ನ"===t?n>=10?n:n+12:"ಸಂಜೆ"===t?n+12:void 0},meridiem:function(n){return n<4?"ರಾತ್ರಿ":n<10?"ಬೆಳಿಗ್ಗೆ":n<17?"ಮಧ್ಯಾಹ್ನ":n<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(n){return n+"ನೇ"},week:{dow:0,doy:6}});n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"일";case"M":return n+"월";case"w":case"W":return n+"주";default:return n}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(n){return"오후"===n},meridiem:function(n){return n<12?"오전":"오후"}});ie={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};n.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(n){return n+(ie[n]||ie[n%10]||ie[n>=100?100:null])},week:{dow:1,doy:7}});n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(n){return yu(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function(n){return yu(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:vu,mm:"%d Minutten",h:vu,hh:"%d Stonnen",d:vu,dd:"%d Deeg",M:vu,MM:"%d Méint",y:vu,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(n){return"ຕອນແລງ"===n},meridiem:function(n){return n<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}});aa={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:kr,m:br,mm:kr,h:br,hh:kr,d:br,dd:kr,M:br,MM:kr,y:br,yy:kr},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}});fs={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(n,t){return t?"dažas sekundes":"dažām sekundēm"},ss:dr,m:pu,mm:dr,h:pu,hh:dr,d:pu,dd:dr,M:pu,MM:dr,y:pu,yy:dr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});kt={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=kt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+kt.correctGrammaticalCase(n,r)}};n.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:kt.translate,m:kt.translate,mm:kt.translate,h:kt.translate,hh:kt.translate,d:"dan",dd:kt.translate,M:"mjesec",MM:kt.translate,y:"godinu",yy:kt.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});n.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&i<20?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}});n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(n,t){return 12===n&&(n=0),"രാത്രി"===t&&n>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?n+12:n},meridiem:function(n){return n<4?"രാത്രി":n<12?"രാവിലെ":n<17?"ഉച്ച കഴിഞ്ഞ്":n<20?"വൈകുന്നേരം":"രാത്രി"}});pa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};wa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:ot,ss:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return wa[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return pa[n]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात्री"===t?n<4?n:n+12:"सकाळी"===t?n:"दुपारी"===t?n>=10?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return n<4?"रात्री":n<10?"सकाळी":n<17?"दुपारी":n<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});n.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});ba={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"};ka={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(n){return ka[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ba[n]})},week:{dow:1,doy:4}});n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});da={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"};ga={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return ga[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return da[n]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(n,t){return 12===n&&(n=0),"राति"===t?n<4?n:n+12:"बिहान"===t?n:"दिउँसो"===t?n>=10?n:n+12:"साँझ"===t?n+12:void 0},meridiem:function(n){return n<3?"राति":n<12?"बिहान":n<16?"दिउँसो":n<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var nv="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),op="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),es=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],tv=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?op[n.month()]:nv[n.month()]:nv},monthsRegex:tv,monthsShortRegex:tv,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:es,longMonthsParse:es,shortMonthsParse:es,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}});var iv="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),sp="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),os=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],rv=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return n?/-MMM-/.test(t)?sp[n.month()]:iv[n.month()]:iv},monthsRegex:rv,monthsShortRegex:rv,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:os,longMonthsParse:os,shortMonthsParse:os,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),uv={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},fv={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},n.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(n){return n.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(n){return fv[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return uv[n]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(n,t){return 12===n&&(n=0),"ਰਾਤ"===t?n<4?n:n+12:"ਸਵੇਰ"===t?n:"ਦੁਪਹਿਰ"===t?n>=10?n:n+12:"ਸ਼ਾਮ"===t?n+12:void 0},meridiem:function(n){return n<4?"ਰਾਤ":n<10?"ਸਵੇਰ":n<17?"ਦੁਪਹਿਰ":n<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}}),re="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),ss="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n.defineLocale("pl",{months:function(n,t){return n?""===t?"("+ss[n.month()]+"|"+re[n.month()]+")":/D MMMM/.test(t)?ss[n.month()]:re[n.month()]:re},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:fr,m:fr,mm:fr,h:fr,hh:fr,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:fr,y:"rok",yy:fr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº"}),n.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:gr,m:"un minut",mm:gr,h:"o oră",hh:gr,d:"o zi",dd:gr,M:"o lună",MM:gr,y:"un an",yy:gr},week:{dow:1,doy:7}}),ue=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i],n.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:ue,longMonthsParse:ue,shortMonthsParse:ue,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:er,m:er,mm:er,h:"час",hh:er,d:"день",dd:er,M:"месяц",MM:er,y:"год",yy:er},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночи":n<12?"утра":n<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:4}}),hs=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],fe=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],n.defineLocale("sd",{months:hs,monthsShort:hs,weekdays:fe,weekdaysShort:fe,weekdaysMin:fe,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(n){return"شام"===n},meridiem:function(n){return n<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:4}}),n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(n){return n+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(n){return"ප.ව."===n||"පස් වරු"===n},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}}),ev="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),ov="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),n.defineLocale("sk",{months:ev,monthsShort:ov,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:st,ss:st,m:st,mm:st,h:st,hh:st,d:st,dd:st,M:st,MM:st,y:st,yy:st},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:ht,ss:ht,m:ht,mm:ht,h:ht,hh:ht,d:ht,dd:ht,M:ht,MM:ht,y:ht,yy:ht},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),dt={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=dt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+dt.correctGrammaticalCase(n,r)}},n.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:dt.translate,m:dt.translate,mm:dt.translate,h:dt.translate,hh:dt.translate,d:"дан",dd:dt.translate,M:"месец",MM:dt.translate,y:"годину",yy:dt.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),gt={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,t,i){var r=gt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+gt.correctGrammaticalCase(n,r)}},n.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:gt.translate,m:gt.translate,mm:gt.translate,h:gt.translate,hh:gt.translate,d:"dan",dd:gt.translate,M:"mesec",MM:gt.translate,y:"godinu",yy:gt.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,t){return 12===n&&(n=0),"ekuseni"===t?n:"emini"===t?n>=11?n:n+12:"entsambama"===t||"ebusuku"===t?0===n?0:n+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),sv={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},hv={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(n){return hv[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return sv[n]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(n){return n<2?" யாமம்":n<6?" வைகறை":n<10?" காலை":n<14?" நண்பகல்":n<18?" எற்பாடு":n<22?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?n<2?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&n>=10?n:n+12},week:{dow:0,doy:6}}),n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(n,t){return 12===n&&(n=0),"రాత్రి"===t?n<4?n:n+12:"ఉదయం"===t?n:"మధ్యాహ్నం"===t?n>=10?n:n+12:"సాయంత్రం"===t?n+12:void 0},meridiem:function(n){return n<4?"రాత్రి":n<10?"ఉదయం":n<17?"మధ్యాహ్నం":n<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),n.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),ee={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(n,t){return 12===n&&(n=0),"шаб"===t?n<4?n:n+12:"субҳ"===t?n:"рӯз"===t?n>=11?n:n+12:"бегоҳ"===t?n+12:void 0},meridiem:function(n){return n<4?"шаб":n<11?"субҳ":n<16?"рӯз":n<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(n){return n+(ee[n]||ee[n%10]||ee[n>=100?100:null])},week:{dow:1,doy:7}}),n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return n<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),oe="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==n.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==n.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==n.indexOf("jar")?t.slice(0,-3)+"wen":-1!==n.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:tu,m:"wa’ tup",mm:tu,h:"wa’ rep",hh:tu,d:"wa’ jaj",dd:tu,M:"wa’ jar",MM:tu,y:"wa’ DIS",yy:tu},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),se={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(n,t){switch(t){case"d":case"D":case"Do":case"DD":return n;default:if(0===n)return n+"'ıncı";var i=n%10;return n+(se[i]||se[n%100-i]||se[n>=100?100:null])}},week:{dow:1,doy:7}}),n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(n){return"d'o"===n.toLowerCase()},meridiem:function(n,t,i){return n>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:ct,ss:ct,m:ct,mm:ct,h:ct,hh:ct,d:ct,dd:ct,M:ct,MM:ct,y:ct,yy:ct},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),n.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(n,t){return 12===n&&(n=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?n:"چۈشتىن كېيىن"===t||"كەچ"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"-كۈنى";case"w":case"W":return n+"-ھەپتە";default:return n}},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:7}}),n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return n?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][n.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:iu("[Сьогодні "),nextDay:iu("[Завтра "),lastDay:iu("[Вчора "),nextWeek:iu("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return iu("[Минулої] dddd [").call(this);case 1:case 2:case 4:return iu("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:or,m:or,mm:or,h:"годину",hh:or,d:"день",dd:or,M:"місяць",MM:or,y:"рік",yy:or},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n){return n<4?"ночі":n<12?"ранку":n<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}}),cs=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],he=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],n.defineLocale("ur",{months:cs,monthsShort:cs,weekdays:he,weekdaysShort:he,weekdaysMin:he,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(n){return"شام"===n},meridiem:function(n){return n<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(n){return n.replace(/\u060c/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:1,doy:4}}),n.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),n.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),n.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),n.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),n.locale("en"),n});!function(){function wi(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function to(n){return null!=n&&!isNaN(n)}function el(n){return{left:function(t,i,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var f=r+u>>>1;n(t[f],i)<0?r=f+1:u=f}return r},right:function(t,i,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var f=r+u>>>1;n(t[f],i)>0?u=f:r=f+1}return r}}}function ik(n){return n.length}function rk(n){for(var t=1;n*t%1;)t*=10;return t}function ol(n,t){try{for(var i in t)Object.defineProperty(n.prototype,i,{value:t[i],enumerable:!1})}catch(r){n.prototype=t}}function rt(){}function sl(n){return dt+n in this}function uk(n){return n=dt+n,n in this&&delete this[n]}function hl(){var n=[];return this.forEach(function(t){n.push(t)}),n}function cl(){var n=0;for(var t in this)t.charCodeAt(0)===ru&&++n;return n}function ll(){for(var n in this)if(n.charCodeAt(0)===ru)return!1;return!0}function io(){}function fk(n,t,i){return function(){var r=i.apply(t,arguments);return r===t?n:r}}function ro(n,t){var i,u,r;if(t in n)return t;for(t=t.charAt(0).toUpperCase()+t.substring(1),i=0,u=bh.length;u>i;++i)if(r=bh[i]+t,r in n)return r}function c(){}function uo(){}function al(n){function r(){for(var i,r=t,u=-1,f=r.length;++u<f;)(i=r[u].on)&&i.apply(this,arguments);return n}var t=[],i=new rt;return r.on=function(r,u){var e,f=i.get(r);return arguments.length<2?f&&f.on:(f&&(f.on=null,t=t.slice(0,e=t.indexOf(f)).concat(t.slice(e+1)),i.remove(r)),u&&t.push(i.set(r,{on:u})),n)},r}function vt(){n.event.preventDefault()}function fo(){for(var i,t=n.event;i=t.sourceEvent;)t=i;return t}function eo(t){for(var i=new uo,r=0,u=arguments.length;++r<u;)i[arguments[r]]=al(i);return i.of=function(r,u){return function(f){try{var e=f.sourceEvent=n.event;f.target=t;n.event=f;i[f.type].apply(r,u)}finally{n.event=e}}},i}function yt(n){return gf(n,e),n}function oo(n){return"function"==typeof n?n:function(){return kh(n,this)}}function vl(n){return"function"==typeof n?n:function(){return dh(n,this)}}function yl(t,i){function r(){this.removeAttribute(t)}function u(){this.removeAttributeNS(t.space,t.local)}function f(){this.setAttribute(t,i)}function e(){this.setAttributeNS(t.space,t.local,i)}function o(){var n=i.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function s(){var n=i.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=n.ns.qualify(t),null==i?t.local?u:r:"function"==typeof i?t.local?s:o:t.local?e:f}function pl(n){return n.trim().replace(/\s+/g," ")}function wl(t){return new RegExp("(?:^|\\s+)"+n.requote(t)+"(?:\\s+|$)","g")}function bl(n){return n.trim().split(/^|\s+/)}function kl(n,t){function r(){for(var r=-1;++r<i;)n[r](this,t)}function u(){for(var r=-1,u=t.apply(this,arguments);++r<i;)n[r](this,u)}n=bl(n).map(ek);var i=n.length;return"function"==typeof t?u:r}function ek(n){var t=wl(n);return function(i,r){if(u=i.classList)return r?u.add(n):u.remove(n);var u=i.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||i.setAttribute("class",pl(u+" "+n))):i.setAttribute("class",pl(u.replace(t," ")))}}function dl(n,t,i){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,i)}function f(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,i)}return null==t?r:"function"==typeof t?f:u}function gl(n,t){function i(){delete this[n]}function r(){this[n]=t}function u(){var i=t.apply(this,arguments);null==i?delete this[n]:this[n]=i}return null==t?i:"function"==typeof t?u:r}function na(t){return"function"==typeof t?t:(t=n.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function so(n){return{__data__:n}}function ta(n){return function(){return ww(this,n)}}function ok(n){return arguments.length||(n=wi),function(t,i){return t&&i?n(t.__data__,i.__data__):!t-!i}}function pt(n,t){for(var i=0,u=n.length;u>i;i++)for(var f,e=n[i],r=0,o=e.length;o>r;r++)(f=e[r])&&t(f,r,i);return n}function ia(n){return gf(n,ut),n}function sk(n){var t,i;return function(r,u,f){var e,o=n[f].update,s=o.length;for(f!=i&&(i=f,t=0),u>=t&&(t=u+1);!(e=o[t])&&++t<s;);return e}}function au(){var n=this.__transition__;n&&++n.active}function ra(t,i,r){function o(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function h(){var n=s(i,bt(arguments));o.call(this);this.addEventListener(t,this[u]=n,n.$=r);n._=i}function l(){var u,f=new RegExp("^__on([^.]+)"+n.requote(t)+"$"),i,r;for(i in this)(u=i.match(f))&&(r=this[i],this.removeEventListener(u[1],r,r.$),delete this[i])}var u="__on"+t,f=t.indexOf("."),s=ua,e;return f>0&&(t=t.substring(0,f)),e=te.get(t),e&&(t=e,s=hk),f?i?h:o:i?c:l}function ua(t,i){return function(r){var u=n.event;n.event=r;i[0]=this.__data__;try{t.apply(this,i)}finally{n.event=u}}}function hk(n,t){var i=ua(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||i.call(t,n)}}function vu(){var t=".dragsuppress-"+ ++bw,u="click"+t,r=n.select(k).on("touchmove"+t,vt).on("dragstart"+t,vt).on("selectstart"+t,vt),i,f;return sr&&(i=kt.style,f=i[sr],i[sr]="none"),function(n){function e(){r.on(u,null)}r.on(t,null);sr&&(i[sr]=f);n&&(r.on(u,function(){vt();e()},!0),setTimeout(e,0))}}function ho(n,t){var r,i,u;return(t.changedTouches&&(t=t.changedTouches[0]),r=n.ownerSVGElement||n,r.createSVGPoint)?(i=r.createSVGPoint(),i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]):(u=n.getBoundingClientRect(),[t.clientX-u.left-n.clientLeft,t.clientY-u.top-n.clientTop])}function ck(){return n.event.changedTouches[0].identifier}function lk(){return n.event.target}function ak(){return k}function fa(n){return n>0?1:0>n?-1:0}function co(n,t,i){return(t[0]-n[0])*(i[1]-n[1])-(t[1]-n[1])*(i[0]-n[0])}function ea(n){return n>1?0:-1>n?f:Math.acos(n)}function bi(n){return n>1?v:-1>n?-v:Math.asin(n)}function vk(n){return((n=Math.exp(n))-1/n)/2}function oa(n){return((n=Math.exp(n))+1/n)/2}function yk(n){return((n=Math.exp(2*n))-1)/(n+1)}function sa(n){return(n=Math.sin(n/2))*n}function ki(){}function di(n,t,i){return new lo(n,t,i)}function lo(n,t,i){this.h=n;this.s=t;this.l=i}function ao(n,t,i){function e(n){return n>360?n-=360:0>n&&(n+=360),60>n?r+(u-r)*n/60:180>n?u:240>n?r+(u-r)*(240-n)/60:r}function f(n){return Math.round(255*e(n))}var r,u;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,i=0>i?0:i>1?1:i,u=.5>=i?i*(1+t):i+t-i*t,r=2*i-u,ot(f(n+120),f(n),f(n-120))}function gi(n,t,i){return new yu(n,t,i)}function yu(n,t,i){this.h=n;this.c=t;this.l=i}function vo(n,t,i){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),nr(i,Math.cos(n*=u)*t,Math.sin(n)*t)}function nr(n,t,i){return new pu(n,t,i)}function pu(n,t,i){this.l=n;this.a=t;this.b=i}function ha(n,t,i){var r=(n+16)/116,u=r+t/500,f=r-i/200;return u=yo(u)*gw,r=yo(r)*nb,f=yo(f)*tb,ot(wo(3.2404542*u-1.5371385*r-.4985314*f),wo(-.969266*u+1.8760108*r+.041556*f),wo(.0556434*u-.2040259*r+1.0572252*f))}function ca(n,t,i){return n>0?gi(Math.atan2(i,t)*s,Math.sqrt(t*t+i*i),n):gi(NaN,NaN,n)}function yo(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function po(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function wo(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function la(n){return ot(n>>16,255&n>>8,255&n)}function wu(n){return la(n)+""}function ot(n,t,i){return new bo(n,t,i)}function bo(n,t,i){this.r=n;this.g=t;this.b=i}function tr(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function aa(n,t,i){var s,u,r,f=0,e=0,o=0;if(s=/([a-z]+)\((.*)\)/i.exec(n))switch(u=s[2].split(","),s[1]){case"hsl":return i(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(go(u[0]),go(u[1]),go(u[2]))}return(r=fu.get(n))?t(r.r,r.g,r.b):(null==n||"#"!==n.charAt(0)||isNaN(r=parseInt(n.substring(1),16))||(4===n.length?(f=(3840&r)>>4,f=f>>4|f,e=240&r,e=e>>4|e,o=15&r,o=o<<4|o):7===n.length&&(f=(16711680&r)>>16,e=(65280&r)>>8,o=255&r)),t(f,e,o))}function va(n,t,i){var f,s,e=Math.min(n/=255,t/=255,i/=255),r=Math.max(n,t,i),u=r-e,o=(r+e)/2;return u?(s=.5>o?u/(r+e):u/(2-r-e),f=n==r?(t-i)/u+(i>t?6:0):t==r?(i-n)/u+2:(n-t)/u+4,f*=60):(f=NaN,s=o>0&&1>o?0:f),di(f,s,o)}function ya(n,t,i){n=ko(n);t=ko(t);i=ko(i);var u=po((.4124564*n+.3575761*t+.1804375*i)/gw),r=po((.2126729*n+.7151522*t+.072175*i)/nb),f=po((.0193339*n+.119192*t+.9503041*i)/tb);return nr(116*r-16,500*(u-r),200*(r-f))}function ko(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function go(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function o(n){return"function"==typeof n?n:function(){return n}}function a(n){return n}function ns(n){return function(t,i,r){return 2===arguments.length&&"function"==typeof i&&(r=i,i=null),bu(t,i,n,r)}}function bu(t,i,r,u){function c(){var t,n=e.status;if(!n&&e.responseText||n>=200&&300>n||304===n){try{t=r.call(f,e)}catch(i){return s.error.call(f,i),void 0}s.load.call(f,t)}else s.error.call(f,e)}var f={},s=n.dispatch("beforesend","progress","load","error"),o={},e=new XMLHttpRequest,h=null;return!k.XDomainRequest||"withCredentials"in e||!/^(http(s)?:)?\/\//.test(t)||(e=new XDomainRequest),"onload"in e?e.onload=e.onerror=c:e.onreadystatechange=function(){e.readyState>3&&c()},e.onprogress=function(t){var i=n.event;n.event=t;try{s.progress.call(f,e)}finally{n.event=i}},f.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?o[n]:(null==t?delete o[n]:o[n]=t+"",f)},f.mimeType=function(n){return arguments.length?(i=null==n?null:n+"",f):i},f.responseType=function(n){return arguments.length?(h=n,f):h},f.response=function(n){return r=n,f},["get","post"].forEach(function(n){f[n]=function(){return f.send.apply(f,[n].concat(bt(arguments)))}}),f.send=function(n,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),e.open(n,t,!0),null==i||"accept"in o||(o.accept=i+",*/*"),e.setRequestHeader)for(var c in o)e.setRequestHeader(c,o[c]);return null!=i&&e.overrideMimeType&&e.overrideMimeType(i),null!=h&&(e.responseType=h),null!=u&&f.on("error",u).on("load",function(n){u(null,n)}),s.beforesend.call(f,e),e.send(null==r?null:r),f},f.abort=function(){return e.abort(),f},n.rebind(f,s,"on"),null==u?f:f.get(pk(u))}function pk(n){return 1===n.length?function(t,i){n(null==t?i:null)}:n}function ts(){var t=pa(),n=wa()-t;n>24?(isFinite(n)&&(clearTimeout(ce),ce=setTimeout(ts,n)),he=0):(he=1,uc(ts))}function pa(){var n=Date.now();for(lt=oe;lt;)n>=lt.t&&(lt.f=lt.c(n-lt.t)),lt=lt.n;return n}function wa(){for(var t,n=oe,i=1/0;n;)n.f?n=t?t.n=n.n:oe=n.n:(n.t<i&&(i=n.t),n=(t=n).n);return se=t,i}function is(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function wk(n,t){var i=Math.pow(10,3*r(8-t));return{scale:t>8?function(n){return n/i}:function(n){return n*i},symbol:n}}function bk(t){var f=t.decimal,e=t.thousands,i=t.grouping,r=t.currency,u=i?function(n){for(var r=n.length,u=[],f=0,t=i[0];r>0&&t>0;)u.push(n.substring(r-=t,r+t)),t=i[f=(f+1)%i.length];return u.reverse().join(e)}:a;return function(t){var o=rb.exec(t),w=o[1]||" ",s=o[2]||">",d=o[3]||"",b=o[4]||"",l=o[5],a=+o[6],v=o[7],e=o[8],i=o[9],h=1,y="",c="",k=!1,p;switch(e&&(e=+e.substring(1)),(l||"0"===w&&"="===s)&&(l=w="0",s="=",v&&(a-=Math.floor((a-1)/4))),i){case"n":v=!0;i="g";break;case"%":h=100;c="%";i="f";break;case"p":h=100;c="%";i="r";break;case"b":case"o":case"x":case"X":"#"===b&&(y="0"+i.toLowerCase());case"c":case"d":k=!0;e=0;break;case"s":h=-1;i="r"}return"$"===b&&(y=r[0],c=r[1]),"r"!=i||e||(i="g"),null!=e&&("g"==i?e=Math.max(1,Math.min(21,e)):("e"==i||"f"==i)&&(e=Math.max(0,Math.min(20,e)))),i=wrt.get(i)||kk,p=l&&v,function(t){var it=c,r,tt,g,o;if(k&&t%1)return"";r=0>t||0===t&&0>1/t?(t=-t,"-"):d;0>h?(tt=n.formatPrefix(t,e),t=tt.scale(t),it=tt.symbol+c):t*=h;t=i(t,e);var nt=t.lastIndexOf("."),b=0>nt?t:t.substring(0,nt),rt=0>nt?"":f+t.substring(nt+1);return!l&&v&&(b=u(b)),g=y.length+b.length+rt.length+(p?0:r.length),o=a>g?new Array(g=a-g+1).join(w):"",p&&(b=u(o+b)),r+=y,t=b+rt,("<"===s?r+t+o:">"===s?o+r+t:"^"===s?o.substring(0,g>>=1)+r+t+o.substring(g):r+(p?t:o+t))+it}}}function kk(n){return n+""}function st(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function ei(n,t,i){function e(t){var i=n(t),r=f(i,1);return r-t>t-i?i:r}function u(i){return t(i=n(new y(i-1)),1),i}function f(n,i){return t(n=new y(+n),i),n}function o(n,r,f){var e=u(n),o=[];if(f>1)for(;r>e;)i(e)%f||o.push(new Date(+e)),t(e,1);else for(;r>e;)o.push(new Date(+e)),t(e,1);return o}function s(n,t,i){try{y=st;var r=new st;return r._=n,o(r,t,i)}finally{y=Date}}n.floor=n;n.round=e;n.ceil=u;n.offset=f;n.range=o;var r=n.utc=ku(n);return r.floor=r,r.round=ku(e),r.ceil=ku(u),r.offset=ku(f),r.range=s,n}function ku(n){return function(t,i){try{y=st;var r=new st;return r._=t,n(r,i)._}finally{y=Date}}}function dk(t){function r(n){function t(t){for(var f,o,h,e=[],r=-1,s=0;++r<i;)37===n.charCodeAt(r)&&(e.push(n.substring(s,r)),null!=(o=ub[f=n.charAt(++r)])&&(f=n.charAt(++r)),(h=u[f])&&(f=h(t,null==o?"e"===f?" ":"0":o)),e.push(f),s=r+1);return e.push(n.substring(s,r)),e.join("")}var i=n.length;return t.parse=function(t){var i={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},e=f(i,n,t,0),u,r;return e!=t.length?null:("p"in i&&(i.H=i.H%12+12*i.p),u=null!=i.Z&&y!==st,r=new(u?st:y),"j"in i?r.setFullYear(i.y,0,i.j):"w"in i&&("W"in i||"U"in i)?(r.setFullYear(i.y,0,1),r.setFullYear(i.y,0,"W"in i?(i.w+6)%7+7*i.W-(r.getDay()+5)%7:i.w+7*i.U-(r.getDay()+6)%7)):r.setFullYear(i.y,i.m,i.d),r.setHours(i.H+Math.floor(i.Z/100),i.M+i.Z%100,i.S,i.L),u?r._:r)},t.toString=function(){return n},t}function f(n,t,i,r){for(var f,e,o,u=0,s=t.length,h=i.length;s>u;){if(r>=h)return-1;if(f=t.charCodeAt(u++),37===f){if(o=t.charAt(u++),e=k[o in ub?t.charAt(u++):o],!e||(r=e(n,i,r))<0)return-1}else if(f!=i.charCodeAt(r++))return-1}return r}function d(n,t,i){v.lastIndex=0;var r=v.exec(t.substring(i));return r?(n.w=lt.get(r[0].toLowerCase()),i+r[0].length):-1}function g(n,t,i){a.lastIndex=0;var r=a.exec(t.substring(i));return r?(n.w=ct.get(r[0].toLowerCase()),i+r[0].length):-1}function nt(n,t,i){b.lastIndex=0;var r=b.exec(t.substring(i));return r?(n.m=vt.get(r[0].toLowerCase()),i+r[0].length):-1}function tt(n,t,i){w.lastIndex=0;var r=w.exec(t.substring(i));return r?(n.m=at.get(r[0].toLowerCase()),i+r[0].length):-1}function it(n,t,i){return f(n,u.c.toString(),t,i)}function rt(n,t,i){return f(n,u.x.toString(),t,i)}function ut(n,t,i){return f(n,u.X.toString(),t,i)}function ft(n,t,i){var r=l.get(t.substring(i,i+=2).toLowerCase());return null==r?-1:(n.p=r,i)}var et=t.dateTime,ot=t.date,ht=t.time,c=t.periods,e=t.days,o=t.shortDays,s=t.months,h=t.shortMonths,u,k;r.utc=function(n){function t(n){try{y=st;var t=new y;return t._=n,i(t)}finally{y=Date}}var i=r(n);return t.parse=function(n){try{y=st;var t=i.parse(n);return t&&t._}finally{y=Date}},t.toString=i.toString,t};r.multi=r.utc.multi=vd;var l=n.map(),a=du(e),ct=gu(e),v=du(o),lt=gu(o),w=du(s),at=gu(s),b=du(h),vt=gu(h);return c.forEach(function(n,t){l.set(n.toLowerCase(),t)}),u={a:function(n){return o[n.getDay()]},A:function(n){return e[n.getDay()]},b:function(n){return h[n.getMonth()]},B:function(n){return s[n.getMonth()]},c:r(et),d:function(n,t){return p(n.getDate(),t,2)},e:function(n,t){return p(n.getDate(),t,2)},H:function(n,t){return p(n.getHours(),t,2)},I:function(n,t){return p(n.getHours()%12||12,t,2)},j:function(n,t){return p(1+i.dayOfYear(n),t,3)},L:function(n,t){return p(n.getMilliseconds(),t,3)},m:function(n,t){return p(n.getMonth()+1,t,2)},M:function(n,t){return p(n.getMinutes(),t,2)},p:function(n){return c[+(n.getHours()>=12)]},S:function(n,t){return p(n.getSeconds(),t,2)},U:function(n,t){return p(i.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return p(i.mondayOfYear(n),t,2)},x:r(ot),X:r(ht),y:function(n,t){return p(n.getFullYear()%100,t,2)},Y:function(n,t){return p(n.getFullYear()%1e4,t,4)},Z:ld,"%":function(){return"%"}},k={a:d,A:g,b:nt,B:tt,c:it,d:ba,e:ba,H:ka,I:ka,j:od,L:cd,m:ed,M:sd,p:ft,S:hd,U:nd,w:gk,W:td,x:rt,X:ut,y:rd,Y:id,Z:ud,"%":ad},r}function p(n,t,i){var u=0>n?"-":"",r=(u?-n:n)+"",f=r.length;return u+(i>f?new Array(i-f+1).join(t)+r:r)}function du(t){return new RegExp("^(?:"+t.map(n.requote).join("|")+")","i")}function gu(n){for(var i=new rt,t=-1,r=n.length;++t<r;)i.set(n[t].toLowerCase(),t);return i}function gk(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+1));return r?(n.w=+r[0],i+r[0].length):-1}function nd(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i));return r?(n.U=+r[0],i+r[0].length):-1}function td(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i));return r?(n.W=+r[0],i+r[0].length):-1}function id(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+4));return r?(n.y=+r[0],i+r[0].length):-1}function rd(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.y=fd(+r[0]),i+r[0].length):-1}function ud(n,t,i){return/^[+-]\d{4}$/.test(t=t.substring(i,i+5))?(n.Z=+t,i+5):-1}function fd(n){return n+(n>68?1900:2e3)}function ed(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.m=r[0]-1,i+r[0].length):-1}function ba(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.d=+r[0],i+r[0].length):-1}function od(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+3));return r?(n.j=+r[0],i+r[0].length):-1}function ka(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.H=+r[0],i+r[0].length):-1}function sd(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.M=+r[0],i+r[0].length):-1}function hd(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+2));return r?(n.S=+r[0],i+r[0].length):-1}function cd(n,t,i){h.lastIndex=0;var r=h.exec(t.substring(i,i+3));return r?(n.L=+r[0],i+r[0].length):-1}function ld(n){var t=n.getTimezoneOffset(),i=t>0?"-":"+",u=~~(r(t)/60),f=r(t)%60;return i+p(u,"0",2)+p(f,"0",2)}function ad(n,t,i){fb.lastIndex=0;var r=fb.exec(t.substring(i,i+1));return r?i+r[0].length:-1}function vd(n){for(var i=n.length,t=-1;++t<i;)n[t][0]=this(n[t][0]);return function(t){for(var r=0,i=n[r];!i[1](t);)i=n[++r];return i[0](t)}}function rs(){}function da(n,t,i){var r=i.s=n+t,u=r-n,f=r-u;i.t=n-f+(t-u)}function nf(n,t){n&&oc.hasOwnProperty(n.type)&&oc[n.type](n,t)}function us(n,t,i){var r,u=-1,f=n.length-i;for(t.lineStart();++u<f;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function ga(n,t){var i=-1,r=n.length;for(t.polygonStart();++i<r;)us(n[i],t,1);t.polygonEnd()}function yd(){function r(r,e){r*=u;e=e*u/2+f/4;var o=r-n,s=o>=0?1:-1,h=s*o,c=Math.cos(e),l=Math.sin(e),a=i*l,v=t*c+a*Math.cos(h),y=a*s*Math.sin(h);gt.add(Math.atan2(y,v));n=r;t=c;i=l}var e,o,n,t,i;w.point=function(s,h){w.point=r;n=(e=s)*u;t=Math.cos(h=(o=h)*u/2+f/4);i=Math.sin(h)};w.lineEnd=function(){r(e,o)}}function oi(n){var t=n[0],i=n[1],r=Math.cos(i);return[r*Math.cos(t),r*Math.sin(t),Math.sin(i)]}function tf(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function ir(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 fs(n,t){n[0]+=t[0];n[1]+=t[1];n[2]+=t[2]}function rf(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function uf(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 ff(n){return[Math.atan2(n[1],n[0]),bi(n[2])]}function ef(n,i){return r(n[0]-i[0])<t&&r(n[1]-i[1])<t}function es(n,t){n*=u;var i=Math.cos(t*=u);vr(i*Math.cos(n),i*Math.sin(n),Math.sin(t))}function vr(n,t,i){++ou;li+=(n-li)/ou;ai+=(t-ai)/ou;at+=(i-at)/ou}function nv(){function r(r,f){r*=u;var c=Math.cos(f*=u),o=c*Math.cos(r),s=c*Math.sin(r),h=Math.sin(f),e=Math.atan2(Math.sqrt((e=t*h-i*s)*e+(e=i*o-n*h)*e+(e=n*s-t*o)*e),n*o+t*s+i*h);ae+=e;ni+=e*(n+(n=o));ti+=e*(t+(t=s));et+=e*(i+(i=h));vr(n,t,i)}var n,t,i;tt.point=function(f,e){f*=u;var o=Math.cos(e*=u);n=o*Math.cos(f);t=o*Math.sin(f);i=Math.sin(e);tt.point=r;vr(n,t,i)}}function tv(){tt.point=es}function pd(){function r(r,f){r*=u;var p=Math.cos(f*=u),e=p*Math.cos(r),o=p*Math.sin(r),s=Math.sin(f),c=t*s-i*o,l=i*e-n*s,a=n*o-t*e,v=Math.sqrt(c*c+l*l+a*a),w=n*e+t*o+i*s,y=v&&-ea(w)/v,h=Math.atan2(v,w);hr+=y*c;cr+=y*l;ii+=y*a;ae+=h;ni+=h*(n+(n=e));ti+=h*(t+(t=o));et+=h*(i+(i=s));vr(n,t,i)}var f,e,n,t,i;tt.point=function(o,s){f=o;e=s;tt.point=r;o*=u;var h=Math.cos(s*=u);n=h*Math.cos(o);t=h*Math.sin(o);i=Math.sin(s);vr(n,t,i)};tt.lineEnd=function(){r(f,e);tt.lineEnd=tv;tt.point=es}}function rr(){return!0}function iv(n,t,i,r,u){var h=[],s=[],o,l,v,f,c,a,e;if(n.forEach(function(n){var o,i,f,e,t,r;if(!((o=n.length-1)<=0)){if(i=n[0],f=n[o],ef(i,f)){for(u.lineStart(),e=0;o>e;++e)u.point((i=n[e])[0],i[1]);return u.lineEnd(),void 0}t=new of(i,n,null,!0);r=new of(i,null,t,!1);t.o=r;h.push(t);s.push(r);t=new of(f,n,null,!1);r=new of(f,null,t,!0);t.o=r;h.push(t);s.push(r)}}),s.sort(t),rv(h),rv(s),h.length){for(var e=0,y=i,a=s.length;a>e;++e)s[e].e=y=!y;for(v=h[0];;){for(f=v,c=!0;f.v;)if((f=f.n)===v)return;o=f.z;u.lineStart();do{if(f.v=f.o.v=!0,f.e){if(c)for(e=0,a=o.length;a>e;++e)u.point((l=o[e])[0],l[1]);else r(f.x,f.n.x,1,u);f=f.n}else{if(c)for(o=f.p.z,e=o.length-1;e>=0;--e)u.point((l=o[e])[0],l[1]);else r(f.x,f.p.x,-1,u);f=f.p}f=f.o;o=f.z;c=!c}while(!f.v);u.lineEnd()}}}function rv(n){if(r=n.length){for(var r,t,u=0,i=n[0];++u<r;)i.n=t=n[u],t.p=i,i=t;i.n=t=n[0];t.p=i}}function of(n,t,i,r){this.x=n;this.z=t;this.o=i;this.e=r;this.v=!1;this.n=this.p=null}function uv(t,i,r,u){return function(f,e){function a(n,i){var r=f(n,i);t(n=r[0],i=r[1])&&e.point(n,i)}function k(n,t){var i=f(n,t);v.point(i[0],i[1])}function y(){o.point=k;v.lineStart()}function p(){o.point=a;v.lineEnd()}function w(n,t){h.push([n,t]);var i=f(n,t);l.point(i[0],i[1])}function d(){l.lineStart();h=[]}function g(){var f,t,r;w(h[0][0],h[0][1]);l.lineEnd();var i,u=l.clean(),n=b.buffer(),t=n.length;if(h.pop(),c.push(h),h=null,t){if(1&u){for(i=n[0],t=i.length-1,r=-1,e.lineStart();++r<t;)e.point((f=i[r])[0],f[1]);return e.lineEnd(),void 0}t>1&&2&u&&n.push(n.pop().concat(n.shift()));s.push(n.filter(wd))}}var s,c,h,v=i(e),nt=f.invert(u[0],u[1]),o={point:a,lineStart:y,lineEnd:p,polygonStart:function(){o.point=w;o.lineStart=d;o.lineEnd=g;s=[];c=[];e.polygonStart()},polygonEnd:function(){o.point=a;o.lineStart=y;o.lineEnd=p;s=n.merge(s);var t=kd(nt,c);s.length?iv(s,bd,t,r,e):t&&(e.lineStart(),r(null,null,1,e),e.lineEnd());e.polygonEnd();s=c=null},sphere:function(){e.polygonStart();e.lineStart();r(null,null,1,e);e.lineEnd();e.polygonEnd()}},b=fv(),l=i(b);return o}}function wd(n){return n.length>1}function fv(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,i){t.push([n,i])},lineEnd:c,buffer:function(){var i=n;return n=[],t=null,i},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function bd(n,i){return((n=n.x)[0]<0?n[1]-v-t:v-n[1])-((i=i.x)[0]<0?i[1]-v-t:v-i[1])}function kd(n,i){var e=n[0],nt=n[1],ct=[Math.sin(e),-Math.cos(e),0],a=0,tt=0,o,it,s,v,u,k,g;for(gt.reset(),o=0,it=i.length;it>o;++o)if(s=i[o],v=s.length,v)for(var h=s[0],y=h[0],rt=h[1]/2+f/4,ut=Math.sin(rt),ft=Math.cos(rt),c=1;;){c===v&&(c=0);n=s[c];var p=n[0],et=n[1]/2+f/4,ot=Math.sin(et),st=Math.cos(et),r=p-y,w=r>=0?1:-1,b=w*r,l=b>f,ht=ut*ot;if((gt.add(Math.atan2(ht*w*Math.sin(b),ft*st+ht*Math.cos(b))),a+=l?r+w*d:r,l^y>=e^p>=e)&&(u=ir(oi(h),oi(n)),uf(u),k=ir(ct,u),uf(k),g=(l^r>=0?-1:1)*bi(k[2]),(nt>g||nt===g&&(u[0]||u[1]))&&(tt+=l^r>=0?1:-1)),!c++)break;y=p;ut=ot;ft=st;h=n}return(-t>a||t>a&&0>gt)^1&tt}function dd(n){var o,u=NaN,i=NaN,e=NaN;return{lineStart:function(){n.lineStart();o=1},point:function(s,h){var c=s>0?f:-f,l=r(s-u);r(l-f)<t?(n.point(u,i=(i+h)/2>0?v:-v),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(c,i),n.point(s,i),o=0):e!==c&&l>=f&&(r(u-e)<t&&(u-=e*t),r(s-c)<t&&(s-=c*t),i=gd(u,i,s,h),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(c,i),o=0);n.point(u=s,i=h);e=c},lineEnd:function(){n.lineEnd();u=i=NaN},clean:function(){return 2-o}}}function gd(n,i,u,f){var e,o,s=Math.sin(n-u);return r(s)>t?Math.atan((Math.sin(i)*(o=Math.cos(f))*Math.sin(u)-Math.sin(f)*(e=Math.cos(i))*Math.sin(n))/(e*o*s)):(i+f)/2}function ng(n,i,u,e){var o,s;null==n?(o=u*v,e.point(-f,o),e.point(0,o),e.point(f,o),e.point(f,0),e.point(f,-o),e.point(0,-o),e.point(-f,-o),e.point(-f,0),e.point(-f,o)):r(n[0]-i[0])>t?(s=n[0]<i[0]?f:-f,o=u*s/2,e.point(-s,o),e.point(0,o),e.point(s,o)):e.point(i[0],i[1])}function tg(n){function s(n,t){return Math.cos(n)*Math.cos(t)>i}function c(n){var i,a,r,c,u;return{lineStart:function(){c=r=!1;u=1},point:function(v,y){var w,p=[v,y],b=s(v,y),d=e?b?0:h(v,y):b?h(v+(0>v?f:-f),y):0,k;(!i&&(c=r=b)&&n.lineStart(),b!==r&&(w=o(i,p),(ef(i,w)||ef(p,w))&&(p[0]+=t,p[1]+=t,b=s(p[0],p[1]))),b!==r)?(u=0,b?(n.lineStart(),w=o(p,i),n.point(w[0],w[1])):(w=o(i,p),n.point(w[0],w[1]),n.lineEnd()),i=w):l&&i&&e^b&&(d&a||!(k=o(p,i,!0))||(u=0,e?(n.lineStart(),n.point(k[0][0],k[0][1]),n.point(k[1][0],k[1][1]),n.lineEnd()):(n.point(k[1][0],k[1][1]),n.lineEnd(),n.lineStart(),n.point(k[0][0],k[0][1]))));!b||i&&ef(i,p)||n.point(p[0],p[1]);i=p;r=b;a=d},lineEnd:function(){r&&n.lineEnd();i=null},clean:function(){return u|(c&&r)<<1}}}function o(n,u,e){var et=oi(n),ot=oi(u),rt=[1,0,0],a=ir(et,ot),ut=tf(a,a),b=a[0],k=ut-b*b,g,o,it;if(!k)return!e&&n;var st=i*ut/k,ht=-i*b/k,ct=ir(rt,a),s=rf(rt,st),lt=rf(a,ht);fs(s,lt);var v=ct,p=tf(s,v),d=tf(v,v),ft=p*p-d*(tf(s,s)-1);if(!(0>ft)){if(g=Math.sqrt(ft),o=rf(v,(-p-g)/d),fs(o,s),o=ff(o),!e)return o;var w,h=n[0],y=u[0],c=n[1],l=u[1];h>y&&(w=h,h=y,y=w);var nt=y-h,tt=r(nt-f)<t,at=tt||t>nt;if(!tt&&c>l&&(w=c,c=l,l=w),at?tt?c+l>0^o[1]<(r(o[0]-h)<t?c:l):c<=o[1]&&o[1]<=l:nt>f^(h<=o[0]&&o[0]<=y))return it=rf(v,(-p+g)/d),fs(it,s),[o,ff(it)]}}function h(t,i){var u=e?n:f-n,r=0;return-u>t?r|=1:t>u&&(r|=2),-u>i?r|=4:i>u&&(r|=8),r}var i=Math.cos(n),e=i>0,l=r(i)>t,a=cs(n,6*u);return uv(s,c,a,e?[0,-n]:[-f,n-f])}function ev(n,t,i,r){return function(u){var f,a=u.a,v=u.b,c=a.x,l=a.y,y=v.x,p=v.y,e=0,o=1,s=y-c,h=p-l;if(f=n-c,s||!(f>0)){if(f/=s,0>s){if(e>f)return;o>f&&(o=f)}else if(s>0){if(f>o)return;f>e&&(e=f)}if(f=i-c,s||!(0>f)){if(f/=s,0>s){if(f>o)return;f>e&&(e=f)}else if(s>0){if(e>f)return;o>f&&(o=f)}if(f=t-l,h||!(f>0)){if(f/=h,0>h){if(e>f)return;o>f&&(o=f)}else if(h>0){if(f>o)return;f>e&&(e=f)}if(f=r-l,h||!(0>f)){if(f/=h,0>h){if(f>o)return;f>e&&(e=f)}else if(h>0){if(e>f)return;o>f&&(o=f)}return e>0&&(u.a={x:c+e*s,y:l+e*h}),1>o&&(u.b={x:c+o*s,y:l+o*h}),u}}}}}}function ov(i,u,f,e){function o(n,e){return r(n[0]-i)<t?e>0?0:3:r(n[0]-f)<t?e>0?2:1:r(n[1]-u)<t?e>0?1:0:e>0?3:2}function h(n,t){return s(n.x,t.x)}function s(n,t){var i=o(n,1),r=o(t,1);return i!==r?i-r:0===i?t[1]-n[1]:1===i?n[0]-t[0]:2===i?n[1]-t[1]:t[0]-n[0]}return function(t){function ft(n){for(var r=0,s=c.length,u=n[1],f=0;s>f;++f)for(var t,e=1,o=c[f],h=o.length,i=o[0];h>e;++e)t=o[e],i[1]<=u?t[1]>u&&co(i,t,n)>0&&++r:t[1]<=u&&co(i,t,n)<0&&--r,i=t;return 0!==r}function d(n,t,r,h){var c=0,l=0;if(null==n||(c=o(n,r))!==(l=o(t,r))||s(n,t)<0^r>0){do h.point(0===c||3===c?i:f,c>1?e:u);while((c=(c+r+4)%4)!==l)}else h.point(t[0],t[1])}function g(n,t){return n>=i&&f>=n&&t>=u&&e>=t}function nt(n,i){g(n,i)&&t.point(n,i)}function et(){k.point=tt;c&&c.push(v=[]);w=!0;l=!1;y=p=NaN}function ot(){r&&(tt(it,rt),ut&&l&&b.rejoin(),r.push(b.buffer()));k.point=nt;l&&t.lineEnd()}function tt(n,i){var r,u;n=Math.max(-ve,Math.min(ve,n));i=Math.max(-ve,Math.min(ve,i));r=g(n,i);(c&&v.push([n,i]),w)?(it=n,rt=i,ut=r,w=!1,r&&(t.lineStart(),t.point(n,i))):r&&l?t.point(n,i):(u={a:{x:y,y:p},b:{x:n,y:i}},ht(u)?(l||(t.lineStart(),t.point(u.a.x,u.a.y)),t.point(u.b.x,u.b.y),r||t.lineEnd(),a=!1):r&&(t.lineStart(),t.point(n,i),a=!1));y=n;p=i;l=r}var r,c,v,it,rt,ut,y,p,l,w,a,st=t,b=fv(),ht=ev(i,u,f,e),k={point:nt,lineStart:et,lineEnd:ot,polygonStart:function(){t=b;r=[];c=[];a=!0},polygonEnd:function(){t=st;r=n.merge(r);var u=ft([i,e]),f=a&&u,o=r.length;(f||o)&&(t.polygonStart(),f&&(t.lineStart(),d(null,null,1,t),t.lineEnd()),o&&iv(r,h,u,d,t),t.polygonEnd());r=c=v=null}};return k}}function sv(n,t){function i(i,r){return i=n(i,r),t(i[0],i[1])}return n.invert&&t.invert&&(i.invert=function(i,r){return i=t.invert(i,r),i&&n.invert(i[0],i[1])}),i}function os(n){var t=0,i=f/3,r=ss(n),u=r(t,i);return u.parallels=function(n){return arguments.length?r(t=n[0]*f/180,i=n[1]*f/180):[180*(t/f),180*(i/f)]},u}function hv(n,t){function f(n,t){var r=Math.sqrt(u-2*i*Math.sin(t))/i;return[r*Math.sin(n*=i),e-r*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),e=Math.sqrt(u)/i;return f.invert=function(n,t){var r=e-t;return[Math.atan2(n,r)/i,bi((u-(n*n+r*r)*i*i)/(2*i))]},f}function ig(){function i(i,r){hc+=t*i-n*r;n=i;t=r}var r,u,n,t;ri.point=function(f,e){ri.point=i;r=n=f;u=t=e};ri.lineEnd=function(){i(r,u)}}function rg(n,t){ye>n&&(ye=n);n>we&&(we=n);pe>t&&(pe=t);t>be&&(be=t)}function ug(){function i(n,i){t.push("M",n,",",i,u)}function f(i,r){t.push("M",i,",",r);n.point=e}function e(n,i){t.push("L",n,",",i)}function r(){n.point=i}function o(){t.push("Z")}var u=cv(4.5),t=[],n={point:i,lineStart:function(){n.point=f},lineEnd:r,polygonStart:function(){n.lineEnd=o},polygonEnd:function(){n.lineEnd=r;n.point=i},pointRadius:function(t){return u=cv(t),n},result:function(){if(t.length){var n=t.join("");return t=[],n}}};return n}function cv(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function si(n,t){li+=n;ai+=t;++at}function lv(){function i(i,r){var f=i-n,e=r-t,u=Math.sqrt(f*f+e*e);ni+=u*(n+i)/2;ti+=u*(t+r)/2;et+=u;si(n=i,t=r)}var n,t;it.point=function(r,u){it.point=i;si(n=r,t=u)}}function av(){it.point=si}function fg(){function i(i,r){var f=i-n,e=r-t,u=Math.sqrt(f*f+e*e);ni+=u*(n+i)/2;ti+=u*(t+r)/2;et+=u;u=t*i-n*r;hr+=u*(n+i);cr+=u*(t+r);ii+=3*u;si(n=i,t=r)}var r,u,n,t;it.point=function(f,e){it.point=i;si(r=n=f,u=t=e)};it.lineEnd=function(){i(r,u)}}function eg(n){function i(t,i){n.moveTo(t,i);n.arc(t,i,u,0,d)}function f(i,r){n.moveTo(i,r);t.point=e}function e(t,i){n.lineTo(t,i)}function r(){t.point=i}function o(){n.closePath()}var u=4.5,t={point:i,lineStart:function(){t.point=f},lineEnd:r,polygonStart:function(){t.lineEnd=o},polygonEnd:function(){t.lineEnd=r;t.point=i},pointRadius:function(n){return u=n,t},result:c};return t}function vv(n){function o(n){return(e?h:s)(n)}function s(t){return pv(t,function(i,r){i=n(i,r);t.point(i[0],i[1])})}function h(t){function y(i,r){i=n(i,r);t.point(i[0],i[1])}function c(){u=NaN;r.point=l;t.lineStart()}function l(r,c){var l=oi([r,c]),a=n(r,c);i(u,f,v,o,s,h,u=a[0],f=a[1],v=r,o=l[0],s=l[1],h=l[2],e,t);t.point(u,f)}function a(){r.point=y;t.lineEnd()}function nt(){c();r.point=tt;r.lineEnd=it}function tt(n,t){l(p=n,rt=t);w=u;b=f;k=o;d=s;g=h;r.point=l}function it(){i(u,f,v,o,s,h,w,b,p,k,d,g,e,t);r.lineEnd=a;a()}var p,rt,w,b,k,d,g,v,u,f,o,s,h,r={point:y,lineStart:c,lineEnd:a,polygonStart:function(){t.polygonStart();r.lineStart=nt},polygonEnd:function(){t.polygonEnd();r.lineStart=c}};return r}function i(u,e,o,s,h,l,a,v,y,p,w,b,k,d){var it=a-u,rt=v-e,et=it*it+rt*rt;if(et>4*f&&k--){var nt=s+p,tt=h+w,g=l+b,ot=Math.sqrt(nt*nt+tt*tt+g*g),vt=Math.asin(g/=ot),st=r(r(g)-1)<t||r(o-y)<t?(o+y)/2:Math.atan2(tt,nt),ht=n(st,vt),ut=ht[0],ft=ht[1],ct=ut-u,lt=ft-e,at=rt*ct-it*lt;(at*at/et>f||r((it*ct+rt*lt)/et-.5)>.3||c>s*p+h*w+l*b)&&(i(u,e,o,s,h,l,ut,ft,st,nt/=ot,tt/=ot,g,k,d),d.point(ut,ft),i(ut,ft,st,nt,tt,g,a,v,y,p,w,b,k,d))}}var f=.5,c=Math.cos(30*u),e=16;return o.precision=function(n){return arguments.length?(e=(f=n*n)>0&&16,o):Math.sqrt(f)},o}function og(n){var t=vv(function(t,i){return n([t*s,i*s])});return function(n){return wv(t(n))}}function yv(n){this.stream=n}function pv(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 wt(n){return ss(function(){return n})()}function ss(t){function i(n){return n=v(n[0]*u,n[1]*u),[n[0]*r+h,c-n[1]*r]}function et(n){return n=v.invert((n[0]-h)/r,(c-n[1])/r),n&&[n[0]*s,n[1]*s]}function e(){v=sv(tt=hs(k,d,g),o);var n=o(w,b);return h=y-n[0]*r,c=p+n[1]*r,l()}function l(){return f&&(f.valid=!1,f=null),i}var o,tt,v,h,c,f,it=vv(function(n,t){return n=o(n,t),[n[0]*r+h,c-n[1]*r]}),r=150,y=480,p=250,w=0,b=0,k=0,d=0,g=0,rt=eb,ut=a,nt=null,ft=null;return i.stream=function(n){return f&&(f.valid=!1),f=wv(rt(tt,it(ut(n)))),f.valid=!0,f},i.clipAngle=function(n){return arguments.length?(rt=null==n?(nt=n,eb):tg((nt=+n)*u),l()):nt},i.clipExtent=function(n){return arguments.length?(ft=n,ut=n?ov(n[0][0],n[0][1],n[1][0],n[1][1]):a,l()):ft},i.scale=function(n){return arguments.length?(r=+n,e()):r},i.translate=function(n){return arguments.length?(y=+n[0],p=+n[1],e()):[y,p]},i.center=function(n){return arguments.length?(w=n[0]%360*u,b=n[1]%360*u,e()):[w*s,b*s]},i.rotate=function(n){return arguments.length?(k=n[0]%360*u,d=n[1]%360*u,g=n.length>2?n[2]%360*u:0,e()):[k*s,d*s,g*s]},n.rebind(i,it,"precision"),function(){return o=t.apply(this,arguments),i.invert=o.invert&&et,e()}}function wv(n){return pv(n,function(t,i){n.point(t*u,i*u)})}function yr(n,t){return[n,t]}function bv(n,t){return[n>f?n-d:-f>n?n+d:n,t]}function hs(n,t,i){return n?t||i?sv(dv(n),gv(t,i)):dv(n):t||i?gv(t,i):bv}function kv(n){return function(t,i){return t+=n,[t>f?t-d:-f>t?t+d:t,i]}}function dv(n){var t=kv(n);return t.invert=kv(-n),t}function gv(n,t){function e(n,t){var e=Math.cos(t),o=Math.cos(n)*e,s=Math.sin(n)*e,h=Math.sin(t),c=h*i+o*r;return[Math.atan2(s*u-c*f,o*i-h*r),bi(c*u+s*f)]}var i=Math.cos(n),r=Math.sin(n),u=Math.cos(t),f=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),o=Math.cos(n)*e,s=Math.sin(n)*e,h=Math.sin(t),c=h*u-s*f;return[Math.atan2(s*u+h*f,o*i+c*r),bi(c*i-o*r)]},e}function cs(n,t){var i=Math.cos(n),r=Math.sin(n);return function(u,f,e,o){var h=e*t,c,s;for(null!=u?(u=ny(i,u),f=ny(i,f),(e>0?f>u:u>f)&&(u+=e*d)):(u=n+e*d,f=n-.5*h),s=u;e>0?s>f:f>s;s-=h)o.point((c=ff([i,-r*Math.cos(s),-r*Math.sin(s)]))[0],c[1])}}function ny(n,i){var r=oi(i),u;return r[0]-=n,uf(r),u=ea(-r[1]),((-r[2]<0?-u:u)+2*Math.PI-t)%(2*Math.PI)}function ty(i,r,u){var f=n.range(i,r-t,u).concat(r);return function(n){return f.map(function(t){return[n,t]})}}function iy(i,r,u){var f=n.range(i,r-t,u).concat(r);return function(n){return f.map(function(t){return[t,n]})}}function ls(n){return n.source}function as(n){return n.target}function sg(n,t,i,r){var f=Math.cos(t),c=Math.sin(t),e=Math.cos(r),l=Math.sin(r),a=f*Math.cos(n),v=f*Math.sin(n),y=e*Math.cos(i),p=e*Math.sin(i),u=2*Math.asin(Math.sqrt(sa(r-t)+f*e*sa(i-n))),o=1/Math.sin(u),h=u?function(n){var t=Math.sin(n*=u)*o,i=Math.sin(u-n)*o,r=i*a+t*y,f=i*v+t*p,e=i*c+t*l;return[Math.atan2(f,r)*s,Math.atan2(e,Math.sqrt(r*r+f*f))*s]}:function(){return[n*s,t*s]};return h.distance=u,h}function hg(){function f(f,e){var h=Math.sin(e*=u),s=Math.cos(e),o=r((f*=u)-i),c=Math.cos(o);cc+=Math.atan2(Math.sqrt((o=s*Math.sin(o))*o+(o=t*h-n*s*c)*o),n*h+t*s*c);i=f;n=h;t=s}var i,n,t;vi.point=function(r,e){i=r*u;n=Math.sin(e*=u);t=Math.cos(e);vi.point=f};vi.lineEnd=function(){vi.point=vi.lineEnd=c}}function pr(n,t){function i(t,i){var f=Math.cos(t),r=Math.cos(i),u=n(f*r);return[u*r*Math.sin(t),u*Math.sin(i)]}return i.invert=function(n,i){var r=Math.sqrt(n*n+i*i),u=t(r),f=Math.sin(u),e=Math.cos(u);return[Math.atan2(n*f,r*e),Math.asin(r&&i*f/r)]},i}function ry(n,i){function o(n,i){u>0?-v+t>i&&(i=-v+t):i>v-t&&(i=v-t);var f=u/Math.pow(e(i),r);return[f*Math.sin(r*n),u-f*Math.cos(r*n)]}var s=Math.cos(n),e=function(n){return Math.tan(f/4+n/2)},r=n===i?Math.sin(n):Math.log(s/Math.cos(i))/Math.log(e(i)/e(n)),u=s*Math.pow(e(n),r)/r;return r?(o.invert=function(n,t){var i=u-t,f=fa(r)*Math.sqrt(n*n+i*i);return[Math.atan2(n,i)/r,2*Math.atan(Math.pow(u/f,1/r))-v]},o):sf}function uy(n,i){function e(n,t){var i=f-t;return[i*Math.sin(u*n),f-i*Math.cos(u*n)]}var o=Math.cos(n),u=n===i?Math.sin(n):(o-Math.cos(i))/(i-n),f=o/u+n;return r(u)<t?yr:(e.invert=function(n,t){var i=f-t;return[Math.atan2(n,i)/u,f-fa(u)*Math.sqrt(n*n+i*i)]},e)}function sf(n,t){return[n,Math.log(Math.tan(f/4+t/2))]}function fy(n){var i,t=wt(n),r=t.scale,u=t.translate,e=t.clipExtent;return t.scale=function(){var n=r.apply(t,arguments);return n===t?i?t.clipExtent(null):t:n},t.translate=function(){var n=u.apply(t,arguments);return n===t?i?t.clipExtent(null):t:n},t.clipExtent=function(n){var h=e.apply(t,arguments),o,s;return h===t?(i=null==n)&&(o=f*r(),s=u(),e([[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]])):i&&(h=null),h},t.clipExtent(null)}function vs(n,t){return[Math.log(Math.tan(f/4+t/2)),-n]}function ur(n){return n[0]}function wr(n){return n[1]}function ey(n){for(var u=n.length,i=[0,1],t=2,r=2;u>r;r++){for(;t>1&&co(n[i[t-2]],n[i[t-1]],n[r])<=0;)--t;i[t++]=r}return i.slice(0,t)}function cg(n,t){return n[0]-t[0]||n[1]-t[1]}function ys(n,t,i){return(i[0]-t[0])*(n[1]-t[1])<(i[1]-t[1])*(n[0]-t[0])}function oy(n,t,i,r){var u=n[0],e=i[0],o=t[0]-u,s=r[0]-e,f=n[1],h=i[1],c=t[1]-f,l=r[1]-h,a=(s*(f-h)-l*(u-e))/(l*o-s*c);return[u+a*o,f+a*c]}function sy(n){var t=n[0],i=n[n.length-1];return!(t[0]-i[0]||t[1]-i[1])}function lg(){lf(this);this.edge=this.site=this.circle=null}function hy(n){var t=bc.pop()||new lg;return t.site=n,t}function ps(n){er(n);ar.remove(n);bc.push(n);lf(n)}function ag(n){var a=n.circle,o=a.x,s=a.cy,v={x:o,y:s},h=n.P,c=n.N,f=[n],u,i,e,l;for(ps(n),u=h;u.circle&&r(o-u.circle.x)<t&&r(s-u.circle.cy)<t;)h=u.P,f.unshift(u),ps(u),u=h;for(f.unshift(u),er(u),i=c;i.circle&&r(o-i.circle.x)<t&&r(s-i.circle.cy)<t;)c=i.N,f.push(i),ps(i),i=c;for(f.push(i),er(i),l=f.length,e=1;l>e;++e)i=f[e],u=f[e-1],hf(i.edge,u.site,i.site,v);u=f[0];i=f[l-1];i.edge=br(u.site,i.site,null,v);fr(u);fr(i)}function vg(n){for(var f,i,r,a,v,b=n.x,k=n.y,u=ar._;u;)if(a=cy(u,k)-b,a>t)u=u.L;else{if(v=b-yg(u,k),!(v>t)){a>-t?(i=u.P,r=u):v>-t?(i=u,r=u.N):i=r=u;break}if(!u.R){i=u;break}u=u.R}if(f=hy(n),ar.insert(i,f),i||r){if(i===r)return er(i),r=hy(i.site),ar.insert(f,r),f.edge=r.edge=br(i.site,f.site),fr(i),fr(r),void 0;if(!r)return f.edge=br(i.site,f.site),void 0;er(i);er(r);var e=i.site,y=e.x,p=e.y,o=n.x-y,s=n.y-p,h=r.site,c=h.x-y,l=h.y-p,d=2*(o*l-s*c),g=o*o+s*s,nt=c*c+l*l,w={x:(l*g-s*nt)/d+y,y:(o*nt-c*g)/d+p};hf(r.edge,e,h,w);f.edge=br(e,n,null,w);r.edge=br(n,h,null,w);fr(i);fr(r)}}function cy(n,t){var i=n.site,u=i.x,l=i.y,f=l-t,e;if(!f)return u;if(e=n.P,!e)return-1/0;i=e.site;var o=i.x,a=i.y,r=a-t;if(!r)return o;var s=o-u,h=1/f-1/r,c=s/r;return h?(-c+Math.sqrt(c*c-2*h*(s*s/(-2*r)-a+r/2+l-f/2)))/h+u:(u+o)/2}function yg(n,t){var r=n.N,i;return r?cy(r,t):(i=n.site,i.y===t?i.x:1/0)}function ly(n){this.site=n;this.edges=[]}function pg(n){for(var i,u,f,e,o,s,h,y,w,p,c=n[0][0],l=n[1][0],a=n[0][1],v=n[1][1],b=yi,k=b.length;k--;)if(o=b[k],o&&o.prepare())for(h=o.edges,y=h.length,s=0;y>s;)p=h[s].end(),f=p.x,e=p.y,w=h[++s%y].start(),i=w.x,u=w.y,(r(f-i)>t||r(e-u)>t)&&(h.splice(s,0,new cf(dg(o.site,p,r(f-c)<t&&v-e>t?{x:c,y:r(i-c)<t?u:v}:r(e-v)<t&&l-f>t?{x:r(u-v)<t?i:l,y:v}:r(f-l)<t&&e-a>t?{x:l,y:r(i-l)<t?u:a}:r(e-a)<t&&f-c>t?{x:r(u-a)<t?i:c,y:a}:null),o.site,null)),++y)}function ay(n,t){return t.angle-n.angle}function wg(){lf(this);this.x=this.y=this.arc=this.site=this.cy=null}function fr(n){var w=n.P,b=n.N,u,t;if(w&&b){var s=w.site,h=n.site,c=b.site;if(s!==c){var l=h.x,a=h.y,f=s.x-l,e=s.y-a,o=c.x-l,r=c.y-a,v=2*(f*r-e*o);if(!(v>=-nc)){var k=f*f+e*e,d=o*o+r*r,y=(r*k-e*d)/v,p=(f*d-o*k)/v,r=p+a,i=kc.pop()||new wg;for(i.arc=n,i.site=h,i.x=y+l,i.y=r+Math.sqrt(y*y+p*p),i.cy=r,n.circle=i,u=null,t=hu._;t;)if(i.y<t.y||i.y===t.y&&i.x<=t.x){if(!t.L){u=t.P;break}t=t.L}else{if(!t.R){u=t;break}t=t.R}hu.insert(u,i);u||(wc=i)}}}}function er(n){var t=n.circle;t&&(t.P||(wc=t.N),hu.remove(t),kc.push(t),lf(t),n.circle=null)}function bg(n){for(var i,u=lr,e=ev(n[0][0],n[0][1],n[1][0],n[1][1]),f=u.length;f--;)i=u[f],(!kg(i,n)||!e(i)||r(i.a.x-i.b.x)<t&&r(i.a.y-i.b.y)<t)&&(i.a=i.b=null,u.splice(f,1))}function kg(n,t){var f=n.b;if(f)return!0;var r,u,i=n.a,h=t[0][0],c=t[1][0],e=t[0][1],o=t[1][1],p=n.l,w=n.r,l=p.x,a=p.y,v=w.x,y=w.y,s=(l+v)/2,b=(a+y)/2;if(y===a){if(h>s||s>=c)return;if(l>v){if(i){if(i.y>=o)return}else i={x:s,y:e};f={x:s,y:o}}else{if(i){if(i.y<e)return}else i={x:s,y:o};f={x:s,y:e}}}else if(r=(l-v)/(y-a),u=b-r*s,-1>r||r>1)if(l>v){if(i){if(i.y>=o)return}else i={x:(e-u)/r,y:e};f={x:(o-u)/r,y:o}}else{if(i){if(i.y<e)return}else i={x:(o-u)/r,y:o};f={x:(e-u)/r,y:e}}else if(y>a){if(i){if(i.x>=c)return}else i={x:h,y:r*h+u};f={x:c,y:r*c+u}}else{if(i){if(i.x<h)return}else i={x:c,y:r*c+u};f={x:h,y:r*h+u}}return n.a=i,n.b=f,!0}function vy(n,t){this.l=n;this.r=t;this.a=this.b=null}function br(n,t,i,r){var u=new vy(n,t);return lr.push(u),i&&hf(u,n,t,i),r&&hf(u,t,n,r),yi[n.i].edges.push(new cf(u,n,t)),yi[t.i].edges.push(new cf(u,t,n)),u}function dg(n,t,i){var r=new vy(n,null);return r.a=t,r.b=i,lr.push(r),r}function hf(n,t,i,r){n.a||n.b?n.l===i?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=i)}function cf(n,t,i){var r=n.a,u=n.b;this.edge=n;this.site=t;this.angle=i?Math.atan2(i.y-t.y,i.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 ws(){this._=null}function lf(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function kr(n,t){var i=t,r=t.R,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.R=r.L;i.R&&(i.R.U=i);r.L=i}function dr(n,t){var i=t,r=t.L,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.L=r.R;i.L&&(i.L.U=i);r.R=i}function yy(n){for(;n.L;)n=n.L;return n}function bs(n,t){var u,f,r,i=n.sort(gg).pop(),e;for(lr=[],yi=new Array(n.length),ar=new ws,hu=new ws;;)if(r=wc,i&&(!r||i.y<r.y||i.y===r.y&&i.x<r.x))(i.x!==u||i.y!==f)&&(yi[i.i]=new ly(i),vg(i),u=i.x,f=i.y),i=n.pop();else{if(!r)break;ag(r.arc)}return t&&(bg(t),pg(t)),e={cells:yi,edges:lr},ar=hu=lr=yi=null,e}function gg(n,t){return t.y-n.y||t.x-n.x}function nn(n,t,i){return(n.x-i.x)*(t.y-n.y)-(n.x-t.x)*(i.y-n.y)}function tn(n){return n.x}function rn(n){return n.y}function py(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(n,t,i,r,u,f){if(!n(t,i,r,u,f)){var o=.5*(i+u),s=.5*(r+f),e=t.nodes;e[0]&&gr(n,e[0],i,r,o,s);e[1]&&gr(n,e[1],o,r,u,s);e[2]&&gr(n,e[2],i,s,o,f);e[3]&&gr(n,e[3],o,s,u,f)}}function ks(t,i){t=n.rgb(t);i=n.rgb(i);var r=t.r,u=t.g,f=t.b,e=i.r-r,o=i.g-u,s=i.b-f;return function(n){return"#"+tr(Math.round(r+e*n))+tr(Math.round(u+o*n))+tr(Math.round(f+s*n))}}function wy(n,t){var i,u={},r={};for(i in n)i in t?u[i]=hi(n[i],t[i]):r[i]=n[i];for(i in t)i in n||(r[i]=t[i]);return function(n){for(i in u)r[i]=u[i](n);return r}}function ht(n,t){return t-=n=+n,function(i){return n+t*i}}function by(n,t){var s,u,f,o,i,h=0,c=0,r=[],e=[];for(n+="",t+="",lu.lastIndex=0,u=0;s=lu.exec(t);++u)s.index&&r.push(t.substring(h,c=s.index)),e.push({i:r.length,x:s[0]}),r.push(null),h=lu.lastIndex;for(h<t.length&&r.push(t.substring(h)),u=0,o=e.length;(s=lu.exec(n))&&o>u;++u)if(i=e[u],i.x==s[0]){if(i.i)if(null==r[i.i+1])for(r[i.i-1]+=i.x,r.splice(i.i,1),f=u+1;o>f;++f)e[f].i--;else for(r[i.i-1]+=i.x+r[i.i+1],r.splice(i.i,2),f=u+1;o>f;++f)e[f].i-=2;else if(null==r[i.i+1])r[i.i]=i.x;else for(r[i.i]=i.x+r[i.i+1],r.splice(i.i+1,1),f=u+1;o>f;++f)e[f].i--;e.splice(u,1);o--;u--}else i.x=ht(parseFloat(s[0]),parseFloat(i.x));for(;o>u;)i=e.pop(),null==r[i.i+1]?r[i.i]=i.x:(r[i.i]=i.x+r[i.i+1],r.splice(i.i+1,1)),o--;return 1===r.length?null==r[0]?(i=e[0].x,function(n){return i(n)+""}):function(){return t}:function(n){for(u=0;o>u;++u)r[(i=e[u]).i]=i.x(n);return r.join("")}}function hi(t,i){for(var r,u=n.interpolators.length;--u>=0&&!(r=n.interpolators[u](t,i)););return r}function af(n,t){for(var u=[],r=[],e=n.length,o=t.length,f=Math.min(n.length,t.length),i=0;f>i;++i)u.push(hi(n[i],t[i]));for(;e>i;++i)r[i]=n[i];for(;o>i;++i)r[i]=t[i];return function(n){for(i=0;f>i;++i)r[i]=u[i](n);return r}}function un(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function ky(n){return function(t){return 1-n(1-t)}}function dy(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function fn(n){return n*n}function en(n){return n*n*n}function on(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,i=t*n;return 4*(.5>n?i:3*(n-t)+i-.75)}function sn(n){return function(t){return Math.pow(t,n)}}function hn(n){return 1-Math.cos(n*v)}function cn(n){return Math.pow(2,10*(n-1))}function ln(n){return 1-Math.sqrt(1-n*n)}function an(n,t){var i;return arguments.length<2&&(t=.45),arguments.length?i=t/d*Math.asin(1/n):(n=1,i=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-i)*d/t)}}function vn(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function yn(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 pn(t,i){t=n.hcl(t);i=n.hcl(i);var u=t.h,f=t.c,o=t.l,r=i.h-u,e=i.c-f,s=i.l-o;return isNaN(e)&&(e=0,f=isNaN(f)?i.c:f),isNaN(r)?(r=0,u=isNaN(u)?i.h:u):r>180?r-=360:-180>r&&(r+=360),function(n){return vo(u+r*n,f+e*n,o+s*n)+""}}function wn(t,i){t=n.hsl(t);i=n.hsl(i);var u=t.h,f=t.s,o=t.l,r=i.h-u,e=i.s-f,s=i.l-o;return isNaN(e)&&(e=0,f=isNaN(f)?i.s:f),isNaN(r)?(r=0,u=isNaN(u)?i.h:u):r>180?r-=360:-180>r&&(r+=360),function(n){return ao(u+r*n,f+e*n,o+s*n)+""}}function bn(t,i){t=n.lab(t);i=n.lab(i);var r=t.l,u=t.a,f=t.b,e=i.l-r,o=i.a-u,s=i.b-f;return function(n){return ha(r+e*n,u+o*n,f+s*n)+""}}function gy(n,t){return t-=n,function(i){return Math.round(n+t*i)}}function np(n){var t=[n.a,n.b],i=[n.c,n.d],r=ip(t),u=tp(t,i),f=ip(kn(i,t,-u))||0;t[0]*i[1]<i[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1);this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-i[0],i[1]))*s;this.translate=[n.e,n.f];this.scale=[r,f];this.skew=f?Math.atan2(u,f)*s:0}function tp(n,t){return n[0]*t[0]+n[1]*t[1]}function ip(n){var t=Math.sqrt(tp(n,n));return t&&(n[0]/=t,n[1]/=t),t}function kn(n,t,i){return n[0]+=i*t[0],n[1]+=i*t[1],n}function rp(t,i){var s,r=[],o=[],c=n.transform(t),l=n.transform(i),a=c.translate,u=l.translate,h=c.rotate,f=l.rotate,p=c.skew,v=l.skew,y=c.scale,e=l.scale;return a[0]!=u[0]||a[1]!=u[1]?(r.push("translate(",null,",",null,")"),o.push({i:1,x:ht(a[0],u[0])},{i:3,x:ht(a[1],u[1])})):u[0]||u[1]?r.push("translate("+u+")"):r.push(""),h!=f?(h-f>180?f+=360:f-h>180&&(h+=360),o.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:ht(h,f)})):f&&r.push(r.pop()+"rotate("+f+")"),p!=v?o.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:ht(p,v)}):v&&r.push(r.pop()+"skewX("+v+")"),y[0]!=e[0]||y[1]!=e[1]?(s=r.push(r.pop()+"scale(",null,",",null,")"),o.push({i:s-4,x:ht(y[0],e[0])},{i:s-2,x:ht(y[1],e[1])})):(1!=e[0]||1!=e[1])&&r.push(r.pop()+"scale("+e+")"),s=o.length,function(n){for(var t,i=-1;++i<s;)r[(t=o[i]).i]=t.x(n);return r.join("")}}function dn(n,t){return t=t-(n=+n)?1/(t-n):0,function(i){return(i-n)*t}}function gn(n,t){return t=t-(n=+n)?1/(t-n):0,function(i){return Math.max(0,Math.min(1,(i-n)*t))}}function ntt(n){for(var f,t=n.source,i=n.target,u=ttt(t,i),r=[t];t!==u;)t=t.parent,r.push(t);for(f=r.length;i!==u;)r.splice(f,0,i),i=i.parent;return r}function up(n){for(var i=[],t=n.parent;null!=t;)i.push(n),n=t,t=t.parent;return i.push(n),i}function ttt(n,t){if(n===t)return n;for(var r=up(n),u=up(t),i=r.pop(),f=u.pop(),e=null;i===f;)e=i,i=r.pop(),f=u.pop();return e}function itt(n){n.fixed|=2}function rtt(n){n.fixed&=-7}function utt(n){n.fixed|=4;n.px=n.x;n.py=n.y}function ftt(n){n.fixed&=-5}function fp(n,t,i){var f=0,e=0,u;if(n.charge=0,!n.leaf)for(var r,o=n.nodes,h=o.length,s=-1;++s<h;)r=o[s],null!=r&&(fp(r,t,i),n.charge+=r.charge,f+=r.charge*r.cx,e+=r.charge*r.cy);n.point&&(n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5),u=t*i[n.point.index],n.charge+=n.pointCharge=u,f+=u*n.point.x,e+=u*n.point.y);n.cx=f/n.charge;n.cy=e/n.charge}function nu(t,i){return n.rebind(t,i,"sort","children","value"),t.nodes=t,t.links=htt,t}function ett(n){return n.children}function ott(n){return n.value}function stt(n,t){return t.value-n.value}function htt(t){return n.merge(t.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function ctt(n){return n.x}function ltt(n){return n.y}function att(n,t,i){n.y0=t;n.y=i}function ds(t){return n.range(t.length)}function gs(n){for(var t=-1,r=n[0].length,i=[];++t<r;)i[t]=0;return i}function vtt(n){for(var i,t=1,r=0,u=n[0][1],f=n.length;f>t;++t)(i=n[t][1])>u&&(r=t,u=i);return r}function ytt(n){return n.reduce(ptt,0)}function ptt(n,t){return n+t[1]}function wtt(n,t){return ep(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ep(n,t){for(var i=-1,r=+n[0],f=(n[1]-r)/t,u=[];++i<=t;)u[i]=f*i+r;return u}function btt(t){return[n.min(t),n.max(t)]}function op(n,t){return n.parent==t.parent?1:2}function nh(n){var t=n.children;return t&&t.length?t[0]:n._tree.thread}function th(n){var i,t=n.children;return t&&(i=t.length)?t[i-1]:n._tree.thread}function vf(n,t){var i=n.children,u,f,r;if(i&&(f=i.length))for(r=-1;++r<f;)t(u=vf(i[r],t),n)>0&&(n=u);return n}function ktt(n,t){return n.x-t.x}function dtt(n,t){return t.x-n.x}function gtt(n,t){return n.depth-t.depth}function ct(n,t){function i(n,r){var u=n.children,f,s,e,o;if(u&&(s=u.length))for(e=null,o=-1;++o<s;)f=u[o],i(f,e),e=f;t(n,r)}i(n,null)}function nit(n){for(var t,i=0,f=0,r=n.children,u=r.length;--u>=0;)t=r[u]._tree,t.prelim+=i,t.mod+=i,i+=t.shift+(f+=t.change)}function tit(n,t,i){n=n._tree;t=t._tree;var r=i/(t.number-n.number);n.change+=r;t.change-=r;t.shift+=i;t.prelim+=i;t.mod+=i}function iit(n,t,i){return n._tree.ancestor.parent==t.parent?n._tree.ancestor:i}function rit(n,t){return n.value-t.value}function ih(n,t){var i=n._pack_next;n._pack_next=t;t._pack_prev=n;t._pack_next=i;i._pack_prev=t}function sp(n,t){n._pack_next=t;t._pack_prev=n}function hp(n,t){var i=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>i*i+r*r}function cp(n){function h(n){c=Math.min(n.x-n.r,c);l=Math.max(n.x+n.r,l);a=Math.min(n.y-n.r,a);v=Math.max(n.y+n.r,v)}if((u=n.children)&&(s=u.length)){var u,i,r,t,f,e,o,s,c=1/0,l=-1/0,a=1/0,v=-1/0;if(u.forEach(uit),i=u[0],i.x=-i.r,i.y=0,h(i),s>1&&(r=u[1],r.x=r.r,r.y=0,h(r),s>2))for(t=u[2],ap(i,r,t),h(t),ih(i,t),i._pack_prev=t,ih(t,r),r=i._pack_next,f=3;s>f;f++){ap(i,r,t=u[f]);var y=0,p=1,w=1;for(e=r._pack_next;e!==r;e=e._pack_next,p++)if(hp(e,t)){y=1;break}if(1==y)for(o=i._pack_prev;o!==e._pack_prev&&!hp(o,t);o=o._pack_prev,w++);y?(w>p||p==w&&r.r<i.r?sp(i,r=e):sp(i=o,r),f--):(ih(i,t),r=t,h(t))}var k=(c+l)/2,d=(a+v)/2,b=0;for(f=0;s>f;f++)t=u[f],t.x-=k,t.y-=d,b=Math.max(b,t.r+Math.sqrt(t.x*t.x+t.y*t.y));n.r=b;u.forEach(fit)}}function uit(n){n._pack_next=n._pack_prev=n}function fit(n){delete n._pack_next;delete n._pack_prev}function lp(n,t,i,r){var u=n.children,f,e;if(n.x=t+=r*n.x,n.y=i+=r*n.y,n.r*=r,u)for(f=-1,e=u.length;++f<e;)lp(u[f],t,i,r)}function ap(n,t,i){var r=n.r+i.r,f=t.x-n.x,e=t.y-n.y,u,o,s,h;r&&(f||e)?(u=t.r+i.r,o=f*f+e*e,u*=u,r*=r,s=.5+(r-u)/(2*o),h=Math.sqrt(Math.max(0,2*u*(r+o)-(r-=o)*r-u*u))/(2*o),i.x=n.x+s*f+h*e,i.y=n.y+s*e-h*f):(i.x=n.x+r,i.y=n.y)}function eit(t){return 1+n.max(t,function(n){return n.y})}function oit(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function vp(n){var t=n.children;return t&&t.length?vp(t[0]):n}function yp(n){var i,t=n.children;return t&&(i=t.length)?yp(t[i-1]):n}function rh(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function pp(n,t){var u=n.x+t[3],f=n.y+t[0],i=n.dx-t[1]-t[3],r=n.dy-t[0]-t[2];return 0>i&&(u+=i/2,i=0),0>r&&(f+=r/2,r=0),{x:u,y:f,dx:i,dy:r}}function or(n){var t=n[0],i=n[n.length-1];return i>t?[t,i]:[i,t]}function yf(n){return n.rangeExtent?n.rangeExtent():or(n.range())}function sit(n,t,i,r){var u=i(n[0],n[1]),f=r(t[0],t[1]);return function(n){return f(u(n))}}function uh(n,t){var i,r=0,u=n.length-1,f=n[r],e=n[u];return f>e&&(i=r,r=u,u=i,i=f,f=e,e=i),n[r]=t.floor(f),n[u]=t.ceil(e),n}function hit(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:lb}function cit(t,i,r,u){var o=[],s=[],f=0,e=Math.min(t.length,i.length)-1;for(t[e]<t[0]&&(t=t.slice().reverse(),i=i.slice().reverse());++f<=e;)o.push(r(t[f-1],t[f])),s.push(u(i[f-1],i[f]));return function(i){var r=n.bisect(t,i,1,e)-1;return s[r](o[r](i))}}function wp(n,t,i,r){function f(){var f=Math.min(n.length,t.length)>2?cit:sit,s=r?gn:dn;return e=f(n,t,s,i),o=f(t,n,s,hi),u}function u(n){return e(n)}var e,o;return u.invert=function(n){return o(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),f()):n},u.range=function(n){return arguments.length?(t=n,f()):t},u.rangeRound=function(n){return u.range(n).interpolate(gy)},u.clamp=function(n){return arguments.length?(r=n,f()):r},u.interpolate=function(n){return arguments.length?(i=n,f()):i},u.ticks=function(t){return eh(n,t)},u.tickFormat=function(t,i){return oh(n,t,i)},u.nice=function(t){return bp(n,t),f()},u.copy=function(){return wp(n,t,i,r)},f()}function fh(t,i){return n.rebind(t,i,"range","rangeRound","interpolate","clamp")}function bp(n,t){return uh(n,hit(tu(n,t)[2]))}function tu(n,t){null==t&&(t=10);var r=or(n),f=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(f/t)/Math.LN10)),u=t/f*i;return.15>=u?i*=10:.35>=u?i*=5:.75>=u&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function eh(t,i){return n.range.apply(n,tu(t,i))}function oh(t,i,u){var e=tu(t,i),f,o;if(u){if(f=rb.exec(u),f.shift(),"s"===f[8])return o=n.formatPrefix(Math.max(r(e[0]),r(e[1]))),f[7]||(f[7]="."+pf(o.scale(e[2]))),f[8]="f",u=n.format(f.join("")),function(n){return u(o.scale(n))+o.symbol};f[7]||(f[7]="."+lit(f[8],e));u=f.join("")}else u=",."+pf(e[2])+"f";return n.format(u)}function pf(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function lit(n,t){var i=pf(t[2]);return n in ab?Math.abs(i-pf(Math.max(r(t[0]),r(t[1]))))+ +("e"!==n):i-2*("%"===n)}function kp(t,i,r,u){function e(n){return(r?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(i)}function o(n){return r?Math.pow(i,n):-Math.pow(i,-n)}function f(n){return t(e(n))}return f.invert=function(n){return o(t.invert(n))},f.domain=function(n){return arguments.length?(r=n[0]>=0,t.domain((u=n.map(Number)).map(e)),f):u},f.base=function(n){return arguments.length?(i=+n,t.domain(u.map(e)),f):i},f.nice=function(){var n=uh(u.map(e),r?Math:vb);return t.domain(n),u=n.map(o),f},f.ticks=function(){var h=or(u),t=[],c=h[0],l=h[1],n=Math.floor(e(c)),s=Math.ceil(e(l)),a=i%1?2:i,f;if(isFinite(s-n)){if(r){for(;s>n;n++)for(f=1;a>f;f++)t.push(o(n)*f);t.push(o(n))}else for(t.push(o(n));n++<s;)for(f=a-1;f>0;f--)t.push(o(n)*f);for(n=0;t[n]<c;n++);for(s=t.length;t[s-1]>l;s--);t=t.slice(n,s)}return t},f.tickFormat=function(t,i){if(!arguments.length)return gc;arguments.length<2?i=gc:"function"!=typeof i&&(i=n.format(i));var u,s=Math.max(.1,t/f.ticks().length),h=r?(u=1e-12,Math.ceil):(u=-1e-12,Math.floor);return function(n){return n/o(h(e(n)+u))<=s?i(n):""}},f.copy=function(){return kp(t.copy(),i,r,u)},fh(f,t)}function dp(n,t,i){function r(t){return n(u(t))}var u=wf(t),f=wf(1/t);return r.invert=function(t){return f(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((i=t.map(Number)).map(u)),r):i},r.ticks=function(n){return eh(i,n)},r.tickFormat=function(n,t){return oh(i,n,t)},r.nice=function(n){return r.domain(bp(i,n))},r.exponent=function(e){return arguments.length?(u=wf(t=e),f=wf(1/t),n.domain(i.map(u)),r):t},r.copy=function(){return dp(n.copy(),t,i)},fh(r,n)}function wf(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function gp(t,i){function r(n){return u[((f.get(n)||("range"===i.t?f.set(n,t.push(n)):NaN))-1)%u.length]}function o(i,r){return n.range(t.length).map(function(n){return i+r*n})}var f,u,e;return r.domain=function(n){if(!arguments.length)return t;t=[];f=new rt;for(var u,e=-1,o=n.length;++e<o;)f.has(u=n[e])||f.set(u,t.push(u));return r[i.t].apply(r,i.a)},r.range=function(n){return arguments.length?(u=n,e=0,i={t:"range",a:arguments},r):u},r.rangePoints=function(n,f){arguments.length<2&&(f=0);var s=n[0],h=n[1],c=(h-s)/(Math.max(1,t.length-1)+f);return u=o(t.length<2?(s+h)/2:s+c*f/2,c),e=0,i={t:"rangePoints",a:arguments},r},r.rangeBands=function(n,f,s){arguments.length<2&&(f=0);arguments.length<3&&(s=f);var h=n[1]<n[0],l=n[+h],a=n[1-h],c=(a-l)/(t.length-f+2*s);return u=o(l+c*s,c),h&&u.reverse(),e=c*(1-f),i={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(n,f,s){arguments.length<2&&(f=0);arguments.length<3&&(s=f);var h=n[1]<n[0],c=n[+h],a=n[1-h],l=Math.floor((a-c)/(t.length-f+2*s)),v=a-c-(t.length-f)*l;return u=o(c+Math.round(v/2),l),h&&u.reverse(),e=Math.round(l*(1-f)),i={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return e},r.rangeExtent=function(){return or(i.a[0])},r.copy=function(){return gp(t,i)},r.domain(t)}function nw(t,i){function f(){var f=0,e=i.length;for(r=[];++f<e;)r[f-1]=n.quantile(t,f/e);return u}function u(t){if(!isNaN(t=+t))return i[n.bisect(r,t)]}var r;return u.domain=function(n){return arguments.length?(t=n.filter(function(n){return!isNaN(n)}).sort(wi),f()):t},u.range=function(n){return arguments.length?(i=n,f()):i},u.quantiles=function(){return r},u.invertExtent=function(n){return n=i.indexOf(n),0>n?[NaN,NaN]:[n>0?r[n-1]:t[0],n<r.length?r[n]:t[t.length-1]]},u.copy=function(){return nw(t,i)},f()}function tw(n,t,i){function r(t){return i[Math.max(0,Math.min(e,Math.floor(u*(t-n))))]}function f(){return u=i.length/(t-n),e=i.length-1,r}var u,e;return r.domain=function(i){return arguments.length?(n=+i[0],t=+i[i.length-1],f()):[n,t]},r.range=function(n){return arguments.length?(i=n,f()):i},r.invertExtent=function(t){return t=i.indexOf(t),t=0>t?NaN:t/u+n,[t,t+1/u]},r.copy=function(){return tw(n,t,i)},f()}function iw(t,i){function r(r){if(r>=r)return i[n.bisect(t,r)]}return r.domain=function(n){return arguments.length?(t=n,r):t},r.range=function(n){return arguments.length?(i=n,r):i},r.invertExtent=function(n){return n=i.indexOf(n),[t[n-1],t[n]]},r.copy=function(){return iw(t,i)},r}function rw(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(n=i.map(t),t):n},t.ticks=function(t){return eh(n,t)},t.tickFormat=function(t,i){return oh(n,t,i)},t.copy=function(){return rw(n)},t}function ait(n){return n.innerRadius}function vit(n){return n.outerRadius}function uw(n){return n.startAngle}function fw(n){return n.endAngle}function ew(n){function t(t){function a(){l.push("M",i(n(s),e))}for(var c,l=[],s=[],h=-1,v=t.length,y=o(r),p=o(u);++h<v;)f.call(this,c=t[h],h)?s.push([+y.call(this,c,h),+p.call(this,c,h)]):s.length&&(a(),s=[]);return s.length&&a(),l.length?l.join(""):null}var r=ur,u=wr,f=rr,i=b,s=i.key,e=.7;return t.x=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=n,t):u},t.defined=function(n){return arguments.length?(f=n,t):f},t.interpolate=function(n){return arguments.length?(s="function"==typeof n?i=n:(i=ke.get(n)||b).key,t):s},t.tension=function(n){return arguments.length?(e=n,t):e},t}function b(n){return n.join("L")}function yit(n){return b(n)+"Z"}function pit(n){for(var r=0,u=n.length,t=n[0],i=[t[0],",",t[1]];++r<u;)i.push("H",(t[0]+(t=n[r])[0])/2,"V",t[1]);return u>1&&i.push("H",t[0]),i.join("")}function sh(n){for(var i=0,u=n.length,t=n[0],r=[t[0],",",t[1]];++i<u;)r.push("V",(t=n[i])[1],"H",t[0]);return r.join("")}function hh(n){for(var i=0,u=n.length,t=n[0],r=[t[0],",",t[1]];++i<u;)r.push("H",(t=n[i])[0],"V",t[1]);return r.join("")}function wit(n,t){return n.length<4?b(n):n[1]+bf(n.slice(1,n.length-1),ch(n,t))}function bit(n,t){return n.length<3?b(n):n[0]+bf((n.push(n[0]),n),ch([n[n.length-2]].concat(n,[n[1]]),t))}function kit(n,t){return n.length<3?b(n):n[0]+bf(n,ch(n,t))}function bf(n,t){var o,h;if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return b(n);var c=n.length!=t.length,f="",s=n[0],i=n[1],e=t[0],r=e,u=1;if(c&&(f+="Q"+(i[0]-2*e[0]/3)+","+(i[1]-2*e[1]/3)+","+i[0]+","+i[1],s=n[1],u=2),t.length>1)for(r=t[1],i=n[u],u++,f+="C"+(s[0]+e[0])+","+(s[1]+e[1])+","+(i[0]-r[0])+","+(i[1]-r[1])+","+i[0]+","+i[1],o=2;o<t.length;o++,u++)i=n[u],r=t[o],f+="S"+(i[0]-r[0])+","+(i[1]-r[1])+","+i[0]+","+i[1];return c&&(h=n[u],f+="Q"+(i[0]+2*r[0]/3)+","+(i[1]+2*r[1]/3)+","+h[0]+","+h[1]),f}function ch(n,t){for(var r,u=[],f=(1-t)/2,e=n[0],i=n[1],o=1,s=n.length;++o<s;)r=e,e=i,i=n[o],u.push([f*(i[0]-r[0]),f*(i[1]-r[1])]);return u}function ow(n){if(n.length<3)return b(n);var o=1,s=n.length,t=n[0],i=t[0],r=t[1],u=[i,i,i,(t=n[1])[0]],f=[r,r,r,t[1]],e=[i,",",r,"L",g(fi,u),",",g(fi,f)];for(n.push(n[s-1]);++o<=s;)t=n[o],u.shift(),u.push(t[0]),f.shift(),f.push(t[1]),lh(e,u,f);return n.pop(),e.push("L",t),e.join("")}function dit(n){if(n.length<4)return b(n);for(var t,f=[],i=-1,e=n.length,r=[0],u=[0];++i<3;)t=n[i],r.push(t[0]),u.push(t[1]);for(f.push(g(fi,r)+","+g(fi,u)),--i;++i<e;)t=n[i],r.shift(),r.push(t[0]),u.shift(),u.push(t[1]),lh(f,r,u);return f.join("")}function git(n){for(var f,t,i=-1,e=n.length,o=e+4,r=[],u=[];++i<4;)t=n[i%e],r.push(t[0]),u.push(t[1]);for(f=[g(fi,r),",",g(fi,u)],--i;++i<o;)t=n[i%e],r.shift(),r.push(t[0]),u.shift(),u.push(t[1]),lh(f,r,u);return f.join("")}function nrt(n,t){var i=n.length-1;if(i)for(var r,u,e=n[0][0],o=n[0][1],s=n[i][0]-e,h=n[i][1]-o,f=-1;++f<=i;)r=n[f],u=f/i,r[0]=t*r[0]+(1-t)*(e+u*s),r[1]=t*r[1]+(1-t)*(o+u*h);return ow(n)}function g(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function lh(n,t,i){n.push("C",g(pb,t),",",g(pb,i),",",g(wb,t),",",g(wb,i),",",g(fi,t),",",g(fi,i))}function ah(n,t){return(t[1]-n[1])/(t[0]-n[0])}function trt(n){for(var t=0,e=n.length-1,i=[],f=n[0],r=n[1],u=i[0]=ah(f,r);++t<e;)i[t]=(u+(u=ah(f=r,r=n[t+1])))/2;return i[t]=u,i}function irt(n){for(var e,o,s,u,c=[],f=trt(n),i=-1,h=n.length-1;++i<h;)e=ah(n[i],n[i+1]),r(e)<t?f[i]=f[i+1]=0:(o=f[i]/e,s=f[i+1]/e,u=o*o+s*s,u>9&&(u=3*e/Math.sqrt(u),f[i]=u*o,f[i+1]=u*s));for(i=-1;++i<=h;)u=(n[Math.min(h,i+1)][0]-n[Math.max(0,i-1)][0])/(6*(1+f[i]*f[i])),c.push([u||0,f[i]*u||0]);return c}function rrt(n){return n.length<3?b(n):n[0]+bf(n,irt(n))}function sw(n){for(var t,i,r,u=-1,f=n.length;++u<f;)t=n[u],i=t[0],r=t[1]+ui,t[0]=i*Math.cos(r),t[1]=i*Math.sin(r);return n}function hw(n){function t(t){function b(){p.push("M",i(n(w),s),a,l(n(y.reverse()),s),"Z")}for(var v,k,d,p=[],y=[],w=[],c=-1,g=t.length,nt=o(f),tt=o(e),it=f===r?function(){return k}:o(r),rt=e===u?function(){return d}:o(u);++c<g;)h.call(this,v=t[c],c)?(y.push([k=+nt.call(this,v,c),d=+tt.call(this,v,c)]),w.push([+it.call(this,v,c),+rt.call(this,v,c)])):y.length&&(b(),y=[],w=[]);return y.length&&b(),p.length?p.join(""):null}var f=ur,r=ur,e=0,u=wr,h=rr,i=b,c=i.key,l=i,a="L",s=.7;return t.x=function(n){return arguments.length?(f=r=n,t):r},t.x0=function(n){return arguments.length?(f=n,t):f},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(e=u=n,t):u},t.y0=function(n){return arguments.length?(e=n,t):e},t.y1=function(n){return arguments.length?(u=n,t):u},t.defined=function(n){return arguments.length?(h=n,t):h},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?i=n:(i=ke.get(n)||b).key,l=i.reverse||i,a=i.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(s=n,t):s},t}function urt(n){return n.radius}function cw(n){return[n.x,n.y]}function frt(n){return function(){var t=n.apply(this,arguments),i=t[0],r=t[1]+ui;return[i*Math.cos(r),i*Math.sin(r)]}}function ert(){return 64}function ort(){return"circle"}function lw(n){var t=Math.sqrt(n/f);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function iu(n,t){return gf(n,l),n.id=t,n}function vh(n,t,i,r){var u=n.id;return pt(n,"function"==typeof i?function(n,f,e){n.__transition__[u].tween.set(t,r(i.call(n,n.__data__,f,e)))}:(i=r(i),function(n){n.__transition__[u].tween.set(t,i)}))}function srt(n){return null==n&&(n=""),function(){this.textContent=n}}function kf(t,i,r,u){var e=t.__transition__||(t.__transition__={active:0,count:0}),f=e[r],o;f||(o=u.time,f=e[r]={tween:new rt,time:o,ease:u.ease,delay:u.delay,duration:u.duration},++e.count,n.timer(function(u){function v(u){return e.active>r?s():(e.active=r,f.event&&f.event.start.call(t,h,i),f.tween.forEach(function(n,r){(r=r.call(t,h,i))&&a.push(r)}),n.timer(function(){return l.c=y(u||1)?rr:y,1},0,o),void 0)}function y(n){if(e.active!==r)return s();for(var u=n/w,c=p(u),o=a.length;o>0;)a[--o].call(t,c);if(u>=1)return(f.event&&f.event.end.call(t,h,i),s())}function s(){return--e.count?delete e[r]:delete t.__transition__,1}var h=t.__data__,p=f.ease,c=f.delay,w=f.duration,l=lt,a=[];return l.t=c+o,u>=c?v(u-c):(l.c=v,void 0)},0,o))}function aw(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function vw(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function yh(n){return n.toISOString()}function ph(t,i,r){function u(n){return t(n)}function f(t,r){var e=t[1]-t[0],f=e/r,u=n.bisect(no,f);return u==no.length?[i.year,tu(t.map(function(n){return n/31536e6}),r)[2]]:u?i[f/no[u-1]<no[u]/f?u-1:u]:[sut,tu(t,r)[2]]}return u.invert=function(n){return ci(t.invert(n))},u.domain=function(n){return arguments.length?(t.domain(n),u):t.domain().map(ci)},u.nice=function(n,t){function r(i){return!isNaN(i)&&!n.range(i,ci(+i+1),t).length}var e=u.domain(),o=or(e),i=null==n?f(o,10):"number"==typeof n&&f(o,n);return i&&(n=i[0],t=i[1]),u.domain(uh(e,t>1?{floor:function(t){for(;r(t=n.floor(t));)t=ci(t-1);return t},ceil:function(t){for(;r(t=n.ceil(t));)t=ci(+t+1);return t}}:n))},u.ticks=function(n,t){var i=or(u.domain()),r=null==n?f(i,10):"number"==typeof n?f(i,n):!n.range&&[{range:n},t];return r&&(n=r[0],t=r[1]),n.range(i[0],ci(+i[1]+1),1>t?1:t)},u.tickFormat=function(){return r},u.copy=function(){return ph(t.copy(),i,r)},fh(u,t)}function ci(n){return new Date(n)}function hrt(n){return JSON.parse(n.responseText)}function crt(n){var t=nt.createRange();return t.selectNode(nt.body),t.createContextualFragment(n.responseText)}var n={version:"3.4.4"},wh,r,dt,ru,bh,e,ne,ut,gh,te,sr,bw,re,ic,dw,ue,fe,uu,fu,oe,se,he,ce,lt,uc,ib,ft,fc,eu,ec,oc,le,gt,w,cc,vi,lc,ac,vc,yc,pc,su,lr,yi,ar,wc,hu,bc,kc,cu,lu,sb,dc,hb,cb,lb,ab,gc,vb,ui,yb,ke,nl,tl,db,fl,tk;Date.now||(Date.now=function(){return+new Date});var yw=[].slice,bt=function(n){return yw.call(n)},nt=document,kt=nt.documentElement,k=window;try{bt(kt.childNodes)[0].nodeType}catch(hut){bt=function(n){for(var t=n.length,i=new Array(t);t--;)i[t]=n[t];return i}}try{nt.createElement("div").style.setProperty("opacity",0,"")}catch(cut){var df=k.Element.prototype,lrt=df.setAttribute,art=df.setAttributeNS,pw=k.CSSStyleDeclaration.prototype,vrt=pw.setProperty;df.setAttribute=function(n,t){lrt.call(this,n,t+"")};df.setAttributeNS=function(n,t,i){art.call(this,n,t,i+"")};pw.setProperty=function(n,t,i){vrt.call(this,n,t+"",i)}}n.ascending=wi;n.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN};n.min=function(n,t){var i,u,r=-1,f=n.length;if(1===arguments.length){for(;++r<f&&!(null!=(i=n[r])&&i>=i);)i=void 0;for(;++r<f;)null!=(u=n[r])&&i>u&&(i=u)}else{for(;++r<f&&!(null!=(i=t.call(n,n[r],r))&&i>=i);)i=void 0;for(;++r<f;)null!=(u=t.call(n,n[r],r))&&i>u&&(i=u)}return i};n.max=function(n,t){var i,u,r=-1,f=n.length;if(1===arguments.length){for(;++r<f&&!(null!=(i=n[r])&&i>=i);)i=void 0;for(;++r<f;)null!=(u=n[r])&&u>i&&(i=u)}else{for(;++r<f&&!(null!=(i=t.call(n,n[r],r))&&i>=i);)i=void 0;for(;++r<f;)null!=(u=t.call(n,n[r],r))&&u>i&&(i=u)}return i};n.extent=function(n,t){var i,r,f,u=-1,e=n.length;if(1===arguments.length){for(;++u<e&&!(null!=(i=f=n[u])&&i>=i);)i=f=void 0;for(;++u<e;)null!=(r=n[u])&&(i>r&&(i=r),r>f&&(f=r))}else{for(;++u<e&&!(null!=(i=f=t.call(n,n[u],u))&&i>=i);)i=void 0;for(;++u<e;)null!=(r=t.call(n,n[u],u))&&(i>r&&(i=r),r>f&&(f=r))}return[i,f]};n.sum=function(n,t){var r,u=0,f=n.length,i=-1;if(1===arguments.length)for(;++i<f;)isNaN(r=+n[i])||(u+=r);else for(;++i<f;)isNaN(r=+t.call(n,n[i],i))||(u+=r);return u};n.mean=function(n,t){var u,e=n.length,i=0,r=-1,f=0;if(1===arguments.length)for(;++r<e;)to(u=n[r])&&(i+=(u-i)/++f);else for(;++r<e;)to(u=t.call(n,n[r],r))&&(i+=(u-i)/++f);if(f)return i};n.quantile=function(n,t){var u=(n.length-1)*t+1,i=Math.floor(u),r=+n[i-1],f=u-i;return f?r+f*(n[i]-r):r};n.median=function(t,i){return arguments.length>1&&(t=t.map(i)),t=t.filter(to),t.length?n.quantile(t.sort(wi),.5):void 0};wh=el(wi);n.bisectLeft=wh.left;n.bisect=n.bisectRight=wh.right;n.bisector=function(n){return el(1===n.length?function(t,i){return wi(n(t),i)}:n)};n.shuffle=function(n){for(var r,i,t=n.length;t;)i=0|Math.random()*t--,r=n[t],n[t]=n[i],n[i]=r;return n};n.permute=function(n,t){for(var i=t.length,r=new Array(i);i--;)r[i]=n[t[i]];return r};n.pairs=function(n){for(var f,t=0,i=n.length-1,r=n[0],u=new Array(0>i?0:i);i>t;)u[t]=[f=r,r=n[++t]];return u};n.zip=function(){var r,t,e;if(!(r=arguments.length))return[];for(var i=-1,u=n.min(arguments,ik),f=new Array(u);++i<u;)for(t=-1,e=f[i]=new Array(r);++t<r;)e[t]=arguments[t][i];return f};n.transpose=function(t){return n.zip.apply(n,t)};n.keys=function(n){var t=[];for(var i in n)t.push(i);return t};n.values=function(n){var t=[];for(var i in n)t.push(n[i]);return t};n.entries=function(n){var t=[];for(var i in n)t.push({key:i,value:n[i]});return t};n.merge=function(n){for(var t,i,r,u=n.length,e=-1,f=0;++e<u;)f+=n[e].length;for(i=new Array(f);--u>=0;)for(r=n[u],t=r.length;--t>=0;)i[--f]=r[t];return i};r=Math.abs;n.range=function(n,t,i){if(arguments.length<3&&(i=1,arguments.length<2&&(t=n,n=0)),1/0==(t-n)/i)throw new Error("infinite range");var f,e=[],u=rk(r(i)),o=-1;if(n*=u,t*=u,i*=u,0>i)for(;(f=n+i*++o)>t;)e.push(f/u);else for(;(f=n+i*++o)<t;)e.push(f/u);return e};n.map=function(n){var t=new rt,i;if(n instanceof rt)n.forEach(function(n,i){t.set(n,i)});else for(i in n)t.set(i,n[i]);return t};ol(rt,{has:sl,get:function(n){return this[dt+n]},set:function(n,t){return this[dt+n]=t},remove:uk,keys:hl,values:function(){var n=[];return this.forEach(function(t,i){n.push(i)}),n},entries:function(){var n=[];return this.forEach(function(t,i){n.push({key:t,value:i})}),n},size:cl,empty:ll,forEach:function(n){for(var t in this)t.charCodeAt(0)===ru&&n.call(this,t.substring(1),this[t])}});dt="\x00";ru=dt.charCodeAt(0);n.nest=function(){function r(n,e,o){if(o>=i.length)return f?f.call(t,e):u?e.sort(u):e;for(var l,s,h,a,v=-1,y=e.length,p=i[o++],c=new rt;++v<y;)(a=c.get(l=p(s=e[v])))?a.push(s):c.set(l,[s]);return n?(s=n(),h=function(t,i){s.set(t,r(n,i,o))}):(s={},h=function(t,i){s[t]=r(n,i,o)}),c.forEach(h),s}function e(n,t){if(t>=i.length)return n;var r=[],u=o[t++];return n.forEach(function(n,i){r.push({key:n,values:e(i,t)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var u,f,t={},i=[],o=[];return t.map=function(n,t){return r(t,n,0)},t.entries=function(t){return e(r(n.map,t,0),0)},t.key=function(n){return i.push(n),t},t.sortKeys=function(n){return o[i.length-1]=n,t},t.sortValues=function(n){return u=n,t},t.rollup=function(n){return f=n,t},t};n.set=function(n){var i=new io,t,r;if(n)for(t=0,r=n.length;r>t;++t)i.add(n[t]);return i};ol(io,{has:sl,add:function(n){return this[dt+n]=!0,n},remove:function(n){return n=dt+n,n in this&&delete this[n]},values:hl,size:cl,empty:ll,forEach:function(n){for(var t in this)t.charCodeAt(0)===ru&&n.call(this,t.substring(1))}});n.behavior={};n.rebind=function(n,t){for(var i,r=1,u=arguments.length;++r<u;)n[i=arguments[r]]=fk(n,t,t[i]);return n};bh=["webkit","ms","moz","Moz","o","O"];n.dispatch=function(){for(var n=new uo,t=-1,i=arguments.length;++t<i;)n[arguments[t]]=al(n);return n};uo.prototype.on=function(n,t){var r=n.indexOf("."),i="";if(r>=0&&(i=n.substring(r+1),n=n.substring(0,r)),n)return arguments.length<2?this[n].on(i):this[n].on(i,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(i,null);return this}};n.event=null;n.requote=function(n){return n.replace(yrt,"\\$&")};var yrt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,gf={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var i in t)n[i]=t[i]},kh=function(n,t){return t.querySelector(n)},dh=function(n,t){return t.querySelectorAll(n)},prt=kt[ro(kt,"matchesSelector")],ww=function(n,t){return prt.call(n,t)};"function"==typeof Sizzle&&(kh=function(n,t){return Sizzle(n,t)[0]||null},dh=Sizzle,ww=Sizzle.matchesSelector);n.selection=function(){return gh};e=n.selection.prototype=[];e.select=function(n){var i,f,e,t,o=[],r,s,u,h;for(n=oo(n),r=-1,s=this.length;++r<s;)for(o.push(i=[]),i.parentNode=(e=this[r]).parentNode,u=-1,h=e.length;++u<h;)(t=e[u])?(i.push(f=n.call(t,t.__data__,u,r)),f&&"__data__"in t&&(f.__data__=t.__data__)):i.push(null);return yt(o)};e.selectAll=function(n){var u,t,f=[],i,e;for(n=vl(n),i=-1,e=this.length;++i<e;)for(var o=this[i],r=-1,s=o.length;++r<s;)(t=o[r])&&(f.push(u=bt(n.call(t,t.__data__,r,i))),u.parentNode=t);return yt(f)};ne={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/"};n.ns={prefix:ne,qualify:function(n){var t=n.indexOf(":"),i=n;return t>=0&&(i=n.substring(0,t),n=n.substring(t+1)),ne.hasOwnProperty(i)?{space:ne[i],local:n}:n}};e.attr=function(t,i){if(arguments.length<2){if("string"==typeof t){var r=this.node();return t=n.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(i in t)this.each(yl(i,t[i]));return this}return this.each(yl(t,i))};e.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var r=this.node(),u=(n=bl(n)).length,i=-1;if(t=r.classList){for(;++i<u;)if(!t.contains(n[i]))return!1}else for(t=r.getAttribute("class");++i<u;)if(!wl(n[i]).test(t))return!1;return!0}for(t in n)this.each(kl(t,n[t]));return this}return this.each(kl(n,t))};e.style=function(n,t,i){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t="");for(i in n)this.each(dl(i,n[i],t));return this}if(2>r)return k.getComputedStyle(this.node(),null).getPropertyValue(n);i=""}return this.each(dl(n,t,i))};e.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(gl(t,n[t]));return this}return this.each(gl(n,t))};e.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};e.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};e.append=function(n){return n=na(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})};e.insert=function(n,t){return n=na(n),t=oo(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})};e.remove=function(){return this.each(function(){var n=this.parentNode;n&&n.removeChild(this)})};e.data=function(n,t){function e(n,i){var r,u,o,l=n.length,a=i.length,k=Math.min(l,a),v=new Array(a),c=new Array(a),y=new Array(l);if(t){var e,p=new rt,w=new rt,b=[];for(r=-1;++r<l;)e=t.call(u=n[r],u.__data__,r),p.has(e)?y[r]=u:p.set(e,u),b.push(e);for(r=-1;++r<a;)e=t.call(i,o=i[r],r),(u=p.get(e))?(v[r]=u,u.__data__=o):w.has(e)||(c[r]=so(o)),w.set(e,o),p.remove(e);for(r=-1;++r<l;)p.has(b[r])&&(y[r]=n[r])}else{for(r=-1;++r<k;)u=n[r],o=i[r],u?(u.__data__=o,v[r]=u):c[r]=so(o);for(;a>r;++r)c[r]=so(i[r]);for(;l>r;++r)y[r]=n[r]}c.update=v;c.parentNode=v.parentNode=y.parentNode=n.parentNode;s.push(c);f.push(v);h.push(y)}var r,o,i=-1,u=this.length;if(!arguments.length){for(n=new Array(u=(r=this[0]).length);++i<u;)(o=r[i])&&(n[i]=o.__data__);return n}var s=ia([]),f=yt([]),h=yt([]);if("function"==typeof n)for(;++i<u;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<u;)e(r=this[i],n);return f.enter=function(){return s},f.exit=function(){return h},f};e.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")};e.filter=function(n){var u,f,r,e=[],t,o,i,s;for("function"!=typeof n&&(n=ta(n)),t=0,o=this.length;o>t;t++)for(e.push(u=[]),u.parentNode=(f=this[t]).parentNode,i=0,s=f.length;s>i;i++)(r=f[i])&&n.call(r,r.__data__,i,t)&&u.push(r);return yt(e)};e.order=function(){for(var i=-1,f=this.length;++i<f;)for(var t,r=this[i],u=r.length-1,n=r[u];--u>=0;)(t=r[u])&&(n&&n!==t.nextSibling&&n.parentNode.insertBefore(t,n),n=t);return this};e.sort=function(n){n=ok.apply(this,arguments);for(var t=-1,i=this.length;++t<i;)this[t].sort(n);return this.order()};e.each=function(n){return pt(this,function(t,i,r){n.call(t,t.__data__,i,r)})};e.call=function(n){var t=bt(arguments);return n.apply(t[0]=this,t),this};e.empty=function(){return!this.node()};e.node=function(){for(var i,n=0,r=this.length;r>n;n++)for(var u=this[n],t=0,f=u.length;f>t;t++)if(i=u[t],i)return i;return null};e.size=function(){var n=0;return this.each(function(){++n}),n};ut=[];n.selection.enter=ia;n.selection.enter.prototype=ut;ut.append=e.append;ut.empty=e.empty;ut.node=e.node;ut.call=e.call;ut.size=e.size;ut.select=function(n){for(var i,h,r,e,o,t,u,s=[],f=-1,c=this.length;++f<c;)for(o=(t=this[f]).update,s.push(r=[]),r.parentNode=t.parentNode,i=-1,h=t.length;++i<h;)(u=t[i])?(r.push(o[i]=e=n.call(t.parentNode,u.__data__,i,f)),e.__data__=u.__data__):r.push(null);return yt(s)};ut.insert=function(n,t){return arguments.length<2&&(t=sk(this)),e.insert.call(this,n,t)};e.transition=function(){for(var i,n,r=pi||++kb,u=[],o=de||{time:Date.now(),ease:on,delay:0,duration:250},f=-1,s=this.length;++f<s;){u.push(i=[]);for(var e=this[f],t=-1,h=e.length;++t<h;)(n=e[t])&&kf(n,t,r,o),i.push(n)}return iu(u,r)};e.interrupt=function(){return this.each(au)};n.select=function(n){var t=["string"==typeof n?kh(n,nt):n];return t.parentNode=kt,yt([t])};n.selectAll=function(n){var t=bt("string"==typeof n?dh(n,nt):n);return t.parentNode=kt,yt([t])};gh=n.select(kt);e.on=function(n,t,i){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(i in n)this.each(ra(i,n[i],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;i=!1}return this.each(ra(n,t,i))};te=n.map({mouseenter:"mouseover",mouseleave:"mouseout"});te.forEach(function(n){"on"+n in nt&&te.remove(n)});sr="onselectstart"in nt?null:ro(kt.style,"userSelect");bw=0;n.mouse=function(n){return ho(n,fo())};n.touches=function(n,t){return arguments.length<2&&(t=fo().touches),t?bt(t).map(function(t){var i=ho(n,t);return i.identifier=t.identifier,i}):[]};n.behavior.drag=function(){function t(){this.on("mousedown.drag",f).on("touchstart.drag",e)}function r(t,r,f,e,o){return function(){function w(){var t,i,n=r(v,h);n&&(t=n[0]-c[0],i=n[1]-c[1],p|=t|i,c=n,y({type:"drag",x:n[0]+s[0],y:n[1]+s[1],dx:t,dy:i}))}function b(){r(v,h)&&(d.on(e+l,null).on(o+l,null),g(p&&n.event.target===k),y({type:"dragend"}))}var s,a=this,k=n.event.target,v=a.parentNode,y=u.of(a,arguments),p=0,h=t(),l=".drag"+(null==h?"":"-"+h),d=n.select(f()).on(e+l,w).on(o+l,b),g=vu(),c=r(v,h);i?(s=i.apply(a,arguments),s=[s.x-c[0],s.y-c[1]]):s=[0,0];y({type:"dragstart"})}}var u=eo(t,"drag","dragstart","dragend"),i=null,f=r(c,n.mouse,ak,"mousemove","mouseup"),e=r(ck,n.touch,lk,"touchmove","touchend");return t.origin=function(n){return arguments.length?(i=n,t):i},n.rebind(t,u,"on")};var f=Math.PI,d=2*f,v=f/2,t=1e-6,nc=t*t,u=f/180,s=180/f,ie=Math.SQRT2,tc=2,kw=4;n.interpolateZoom=function(n,t){function v(n){var t=n*p,r,h;return y?(r=oa(u),h=i/(tc*c)*(r*yk(ie*t+u)-vk(u)),[o+h*f,s+h*e,i*r/oa(ie*t+u)]):[o+n*f,s+n*e,i*Math.exp(ie*t)]}var o=n[0],s=n[1],i=n[2],w=t[0],b=t[1],r=t[2],f=w-o,e=b-s,h=f*f+e*e,c=Math.sqrt(h),l=(r*r-i*i+kw*h)/(2*i*tc*c),a=(r*r-i*i-kw*h)/(2*r*tc*c),u=Math.log(Math.sqrt(l*l+1)-l),k=Math.log(Math.sqrt(a*a+1)-a),y=k-u,p=(y||Math.log(r/i))/ie;return v.duration=1e3*p,v};n.behavior.zoom=function(){function i(n){n.on(tt,ut).on(dw+".zoom",ht).on(it,et).on("dblclick.zoom",ct).on(rt,ft)}function s(n){return[(n[0]-t.x)/t.k,(n[1]-t.y)/t.k]}function st(n){return[n[0]*t.k+t.x,n[1]*t.k+t.y]}function h(n){t.k=Math.max(p[0],Math.min(p[1],n))}function o(n,i){i=st(i);t.x+=n[0]-i[0];t.y+=n[1]-i[1]}function w(){a&&a.domain(g.range().map(function(n){return(n-t.x)/t.k}).map(g.invert));v&&v.domain(nt.range().map(function(n){return(n-t.y)/t.k}).map(nt.invert))}function u(n){n({type:"zoomstart"})}function r(n){w();n({type:"zoom",scale:t.k,translate:[t.x,t.y]})}function f(n){n({type:"zoomend"})}function ut(){function c(){h=1;o(n.mouse(t),y);r(i)}function l(){v.on(it,k===t?et:null).on(ot,null);p(h&&n.event.target===a);f(i)}var t=this,a=n.event.target,i=e.of(t,arguments),h=0,v=n.select(k).on(it,c).on(ot,l),y=s(n.mouse(t)),p=vu();au.call(t);u(i)}function ft(){function y(){var r=n.touches(c);return w=t.k,r.forEach(function(n){n.identifier in i&&(i[n.identifier]=s(n))}),r}function p(){for(var u,s,f,v,c=n.event.changedTouches,e=0,k=c.length;k>e;++e)i[c[e].identifier]=null;if(u=y(),s=Date.now(),1===u.length)500>s-d&&(f=u[0],v=i[f.identifier],h(2*t.k),o(f,v),vt(),r(l)),d=s;else if(u.length>1){var f=u[0],p=u[1],w=f[0]-p[0],b=f[1]-p[1];a=w*w+b*b}}function b(){for(var s,p,t,f,u,e,y=n.touches(c),v=0,b=y.length;b>v;++v,e=null)if(u=y[v],e=i[u.identifier]){if(f)break;t=u;f=e}e&&(s=(s=u[0]-t[0])*s+(s=u[1]-t[1])*s,p=a&&Math.sqrt(s/a),t=[(t[0]+u[0])/2,(t[1]+u[1])/2],f=[(f[0]+e[0])/2,(f[1]+e[1])/2],h(p*w));d=null;o(t,f);r(l)}function k(){var e;if(n.event.touches.length){for(var r=n.event.changedTouches,t=0,u=r.length;u>t;++t)delete i[r[t].identifier];for(e in i)return void y()}it.on(v,null);et.on(tt,ut).on(rt,ft);ot();f(l)}var w,c=this,l=e.of(c,arguments),i={},a=0,v=".zoom-"+n.event.changedTouches[0].identifier,g="touchmove"+v,nt="touchend"+v,it=n.select(n.event.target).on(g,b).on(nt,k),et=n.select(c).on(tt,null).on(rt,p),ot=vu();au.call(c);p();u(l)}function ht(){var i=e.of(this,arguments),a;l?clearTimeout(l):(au.call(this),u(i));l=setTimeout(function(){l=null;f(i)},50);vt();a=b||n.mouse(this);c||(c=s(a));h(Math.pow(2,.002*re())*t.k);o(a,c);r(i)}function et(){c=null}function ct(){var i=e.of(this,arguments),c=n.mouse(this),a=s(c),l=Math.log(t.k)/Math.LN2;u(i);h(Math.pow(2,n.event.shiftKey?Math.ceil(l)-1:Math.floor(l)+1));o(c,a);r(i);f(i)}var c,b,l,d,g,a,nt,v,t={x:0,y:0,k:1},y=[960,500],p=ic,tt="mousedown.zoom",it="mousemove.zoom",ot="mouseup.zoom",rt="touchstart.zoom",e=eo(i,"zoomstart","zoom","zoomend");return i.event=function(i){i.each(function(){var i=e.of(this,arguments),o=t;pi?n.select(this).transition().each("start.zoom",function(){t=this.__chart__||{x:0,y:0,k:1};u(i)}).tween("zoom:zoom",function(){var u=y[0],s=y[1],f=u/2,e=s/2,h=n.interpolateZoom([(f-t.x)/t.k,(e-t.y)/t.k,u/t.k],[(f-o.x)/o.k,(e-o.y)/o.k,u/o.k]);return function(n){var o=h(n),s=u/o[2];this.__chart__=t={x:f-o[0]*s,y:e-o[1]*s,k:s};r(i)}}).each("end.zoom",function(){f(i)}):(this.__chart__=t,u(i),r(i),f(i))})},i.translate=function(n){return arguments.length?(t={x:+n[0],y:+n[1],k:t.k},w(),i):[t.x,t.y]},i.scale=function(n){return arguments.length?(t={x:t.x,y:t.y,k:+n},w(),i):t.k},i.scaleExtent=function(n){return arguments.length?(p=null==n?ic:[+n[0],+n[1]],i):p},i.center=function(n){return arguments.length?(b=n&&[+n[0],+n[1]],i):b},i.size=function(n){return arguments.length?(y=n&&[+n[0],+n[1]],i):y},i.x=function(n){return arguments.length?(a=n,g=n.copy(),t={x:0,y:0,k:1},i):a},i.y=function(n){return arguments.length?(v=n,nt=n.copy(),t={x:0,y:0,k:1},i):v},n.rebind(i,e,"on")};ic=[0,1/0];dw="onwheel"in nt?(re=function(){return-n.event.deltaY*(n.event.deltaMode?120:1)},"wheel"):"onmousewheel"in nt?(re=function(){return n.event.wheelDelta},"mousewheel"):(re=function(){return-n.event.detail},"MozMousePixelScroll");ki.prototype.toString=function(){return this.rgb()+""};n.hsl=function(n,t,i){return 1===arguments.length?n instanceof lo?di(n.h,n.s,n.l):aa(""+n,va,di):di(+n,+t,+i)};ue=lo.prototype=new ki;ue.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),di(this.h,this.s,this.l/n)};ue.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),di(this.h,this.s,n*this.l)};ue.rgb=function(){return ao(this.h,this.s,this.l)};n.hcl=function(t,i,r){return 1===arguments.length?t instanceof yu?gi(t.h,t.c,t.l):t instanceof pu?ca(t.l,t.a,t.b):ca((t=ya((t=n.rgb(t)).r,t.g,t.b)).l,t.a,t.b):gi(+t,+i,+r)};fe=yu.prototype=new ki;fe.brighter=function(n){return gi(this.h,this.c,Math.min(100,this.l+ee*(arguments.length?n:1)))};fe.darker=function(n){return gi(this.h,this.c,Math.max(0,this.l-ee*(arguments.length?n:1)))};fe.rgb=function(){return vo(this.h,this.c,this.l).rgb()};n.lab=function(t,i,r){return 1===arguments.length?t instanceof pu?nr(t.l,t.a,t.b):t instanceof yu?vo(t.l,t.c,t.h):ya((t=n.rgb(t)).r,t.g,t.b):nr(+t,+i,+r)};var ee=18,gw=.95047,nb=1,tb=1.08883,rc=pu.prototype=new ki;rc.brighter=function(n){return nr(Math.min(100,this.l+ee*(arguments.length?n:1)),this.a,this.b)};rc.darker=function(n){return nr(Math.max(0,this.l-ee*(arguments.length?n:1)),this.a,this.b)};rc.rgb=function(){return ha(this.l,this.a,this.b)};n.rgb=function(n,t,i){return 1===arguments.length?n instanceof bo?ot(n.r,n.g,n.b):aa(""+n,ot,ao):ot(~~n,~~t,~~i)};uu=bo.prototype=new ki;uu.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var i=this.r,r=this.g,u=this.b,t=30;return i||r||u?(i&&t>i&&(i=t),r&&t>r&&(r=t),u&&t>u&&(u=t),ot(Math.min(255,~~(i/n)),Math.min(255,~~(r/n)),Math.min(255,~~(u/n)))):ot(t,t,t)};uu.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),ot(~~(n*this.r),~~(n*this.g),~~(n*this.b))};uu.hsl=function(){return va(this.r,this.g,this.b)};uu.toString=function(){return"#"+tr(this.r)+tr(this.g)+tr(this.b)};fu=n.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});fu.forEach(function(n,t){fu.set(n,la(t))});n.functor=o;n.xhr=ns(a);n.dsv=function(n,t){function i(n,i,r){arguments.length<3&&(r=i,i=null);var e=bu(n,t,null==i?u:f(i),r);return e.row=function(n){return arguments.length?e.response(null==(i=n)?u:f(n)):i},e}function u(n){return i.parse(n.responseText)}function f(n){return function(t){return i.parse(t.responseText,n)}}function e(t){return t.map(r).join(n)}function r(n){return o.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var o=new RegExp('["'+n+"\n]"),s=n.charCodeAt(0);return i.parse=function(n,t){var r;return i.parseRows(n,function(n,i){if(r)return r(n,i-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,i){return t(u(n),i)}:u})},i.parseRows=function(n,t){function h(){var f,t,u,h;if(i>=o)return e;if(r)return r=!1,c;if(f=i,34===n.charCodeAt(f)){for(t=f;t++<o;)if(34===n.charCodeAt(t)){if(34!==n.charCodeAt(t+1))break;++t}return i=t+2,u=n.charCodeAt(t+1),13===u?(r=!0,10===n.charCodeAt(t+2)&&++i):10===u&&(r=!0),n.substring(f+1,t).replace(/""/g,'"')}for(;o>i;){if(u=n.charCodeAt(i++),h=1,10===u)r=!0;else if(13===u)r=!0,10===n.charCodeAt(i)&&(++i,++h);else if(u!==s)continue;return n.substring(f,i-h)}return n.substring(f)}for(var f,u,r,c={},e={},l=[],o=n.length,i=0,a=0;(u=h())!==e;){for(f=[];u!==c&&u!==e;)f.push(u),u=h();(!t||(f=t(f,a++)))&&l.push(f)}return l},i.format=function(t){if(Array.isArray(t[0]))return i.formatRows(t);var f=new io,u=[];return t.forEach(function(n){for(var t in n)f.has(t)||u.push(f.add(t))}),[u.map(r).join(n)].concat(t.map(function(t){return u.map(function(n){return r(t[n])}).join(n)})).join("\n")},i.formatRows=function(n){return n.map(e).join("\n")},i};n.csv=n.dsv(",","text/csv");n.tsv=n.dsv("\t","text/tab-separated-values");n.touch=function(n,t,i){if(arguments.length<3&&(i=t,t=fo().changedTouches),t)for(var u,r=0,f=t.length;f>r;++r)if((u=t[r]).identifier===i)return ho(n,u)};uc=k[ro(k,"requestAnimationFrame")]||function(n){setTimeout(n,17)};n.timer=function(n,t,i){var u=arguments.length,f,r;2>u&&(t=0);3>u&&(i=Date.now());f=i+t;r={c:n,t:f,f:!1,n:null};se?se.n=r:oe=r;se=r;he||(ce=clearTimeout(ce),he=1,uc(ts))};n.timer.flush=function(){pa();wa()};n.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};ib=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(wk);n.formatPrefix=function(t,i){var r=0;return t&&(0>t&&(t*=-1),i&&(t=n.round(t,is(t,i))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),ib[8+r/3]};var rb=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,wrt=n.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(t,i){return(t=n.round(t,is(t,i))).toFixed(Math.max(0,Math.min(20,is(t*(1+1e-15),i))))}}),i=n.time={},y=Date;st.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(){ft.setUTCDate.apply(this._,arguments)},setDay:function(){ft.setUTCDay.apply(this._,arguments)},setFullYear:function(){ft.setUTCFullYear.apply(this._,arguments)},setHours:function(){ft.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ft.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ft.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ft.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ft.setUTCSeconds.apply(this._,arguments)},setTime:function(){ft.setTime.apply(this._,arguments)}};ft=Date.prototype;i.year=ei(function(n){return n=i.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()});i.years=i.year.range;i.years.utc=i.year.utc.range;i.day=ei(function(n){var t=new y(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});i.days=i.day.range;i.days.utc=i.day.utc.range;i.dayOfYear=function(n){var t=i.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 r=i[n]=ei(function(n){return(n=i.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var r=i.year(n).getDay();return Math.floor((i.dayOfYear(n)+(r+t)%7)/7)-(r!==t)});i[n+"s"]=r.range;i[n+"s"].utc=r.utc.range;i[n+"OfYear"]=function(n){var r=i.year(n).getDay();return Math.floor((i.dayOfYear(n)+(r+t)%7)/7)}});i.week=i.sunday;i.weeks=i.sunday.range;i.weeks.utc=i.sunday.utc.range;i.weekOfYear=i.sundayOfYear;var ub={"-":"",_:" ",0:"0"},h=/^\s*\d+/,fb=/^%/;n.locale=function(n){return{numberFormat:bk(n),timeFormat:dk(n)}};fc=n.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"]});n.format=fc.numberFormat;n.geo={};rs.prototype={s:0,t:0,add:function(n){da(n,this.t,eu);da(eu.s,this.s,this);this.s?this.t+=eu.t:this.s=eu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};eu=new rs;n.geo.stream=function(n,t){n&&ec.hasOwnProperty(n.type)?ec[n.type](n,t):nf(n,t)};ec={Feature:function(n,t){nf(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)nf(i[r].geometry,t)}};oc={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 i=n.coordinates,r=-1,u=i.length;++r<u;)n=i[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){us(n.coordinates,t,0)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)us(i[r],t,0)},Polygon:function(n,t){ga(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)ga(i[r],t)},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)nf(i[r],t)}};n.geo.area=function(t){return le=0,n.geo.stream(t,w),le};gt=new rs;w={sphere:function(){le+=4*f},point:c,lineStart:c,lineEnd:c,polygonStart:function(){gt.reset();w.lineStart=yd},polygonEnd:function(){var n=2*gt;le+=0>n?4*f+n:n;w.lineStart=w.lineEnd=w.point=c}};n.geo.bounds=function(){function b(n,t){v.push(l=[i=n,f=n]);o>t&&(o=t);t>h&&(h=t)}function k(n,t){var d=oi([n*u,t*u]),v;if(y){var w=ir(y,d),nt=[w[1],-w[0],0],c=ir(nt,w);uf(c);c=ff(c);var g=n-a,p=g>0?1:-1,l=c[0]*s*p,k=r(g)>180;k^(l>p*a&&p*n>l)?(v=c[1]*s,v>h&&(h=v)):(l=(l+360)%360-180,k^(l>p*a&&p*n>l))?(v=-c[1]*s,o>v&&(o=v)):(o>t&&(o=t),t>h&&(h=t));k?a>n?e(i,n)>e(i,f)&&(f=n):e(n,f)>e(i,f)&&(i=n):f>=i?(i>n&&(i=n),n>f&&(f=n)):n>a?e(i,n)>e(i,f)&&(f=n):e(n,f)>e(i,f)&&(i=n)}else b(n,t);y=d;a=n}function d(){c.point=k}function g(){l[0]=i;l[1]=f;c.point=b;y=null}function nt(n,t){if(y){var i=n-a;p+=r(i)>180?i+(i>0?360:-360):i}else it=n,rt=t;w.point(n,t);k(n,t)}function ut(){w.lineStart()}function ft(){nt(it,rt);w.lineEnd();r(p)>t&&(i=-(f=180));l[0]=i;l[1]=f;y=null}function e(n,t){return(t-=n)<0?t+360:t}function et(n,t){return n[0]-t[0]}function tt(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var i,o,f,h,a,it,rt,y,p,v,l,c={point:b,lineStart:d,lineEnd:g,polygonStart:function(){c.point=nt;c.lineStart=ut;c.lineEnd=ft;p=0;w.polygonStart()},polygonEnd:function(){w.polygonEnd();c.point=b;c.lineStart=d;c.lineEnd=g;0>gt?(i=-(f=180),o=-(h=90)):p>t?h=90:-t>p&&(o=-90);l[0]=i;l[1]=f}};return function(t){var a;if(h=f=-(i=o=1/0),v=[],n.geo.stream(t,c),a=v.length,a){v.sort(et);for(var u,s=1,r=v[0],y=[r];a>s;++s)u=v[s],tt(u[0],r)||tt(u[1],r)?(e(r[0],u[1])>e(r[0],r[1])&&(r[1]=u[1]),e(u[0],r[1])>e(r[0],r[1])&&(r[0]=u[0])):y.push(r=u);for(var p,u,w=-1/0,a=y.length-1,s=0,r=y[a];a>=s;r=u,++s)u=y[s],(p=e(r[1],u[0]))>w&&(w=p,i=u[0],f=r[1])}return v=l=null,1/0===i||1/0===o?[[NaN,NaN],[NaN,NaN]]:[[i,o],[f,h]]}}();n.geo.centroid=function(i){ou=ae=li=ai=at=ni=ti=et=hr=cr=ii=0;n.geo.stream(i,tt);var r=hr,u=cr,f=ii,e=r*r+u*u+f*f;return nc>e&&(r=ni,u=ti,f=et,t>ae&&(r=li,u=ai,f=at),e=r*r+u*u+f*f,nc>e)?[NaN,NaN]:[Math.atan2(u,r)*s,bi(f/Math.sqrt(e))*s]};var ou,ae,li,ai,at,ni,ti,et,hr,cr,ii,tt={sphere:c,point:es,lineStart:nv,lineEnd:tv,polygonStart:function(){tt.lineStart=pd},polygonEnd:function(){tt.lineStart=nv}},eb=uv(rr,dd,ng,[-f,-f/2]),ve=1e9;n.geo.clipExtent=function(){var t,i,r,u,n,f,e={stream:function(t){return n&&(n.valid=!1),n=f(t),n.valid=!0,n},extent:function(o){return arguments.length?(f=ov(t=+o[0][0],i=+o[0][1],r=+o[1][0],u=+o[1][1]),n&&(n.valid=!1,n=null),e):[[t,i],[r,u]]}};return e.extent([[0,0],[960,500]])};(n.geo.conicEqualArea=function(){return os(hv)}).raw=hv;n.geo.albers=function(){return n.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)};n.geo.albersUsa=function(){function r(n){var t=n[0],i=n[1];return u=null,s(t,i),u||(h(t,i),u)||c(t,i),u}var u,s,h,c,i=n.geo.albers(),f=n.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),e=n.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),o={point:function(n,t){u=[n,t]}};return r.invert=function(n){var u=i.scale(),o=i.translate(),t=(n[0]-o[0])/u,r=(n[1]-o[1])/u;return(r>=.12&&.234>r&&t>=-.425&&-.214>t?f:r>=.166&&.234>r&&t>=-.214&&-.115>t?e:i).invert(n)},r.stream=function(n){var t=i.stream(n),r=f.stream(n),u=e.stream(n);return{point:function(n,i){t.point(n,i);r.point(n,i);u.point(n,i)},sphere:function(){t.sphere();r.sphere();u.sphere()},lineStart:function(){t.lineStart();r.lineStart();u.lineStart()},lineEnd:function(){t.lineEnd();r.lineEnd();u.lineEnd()},polygonStart:function(){t.polygonStart();r.polygonStart();u.polygonStart()},polygonEnd:function(){t.polygonEnd();r.polygonEnd();u.polygonEnd()}}},r.precision=function(n){return arguments.length?(i.precision(n),f.precision(n),e.precision(n),r):i.precision()},r.scale=function(n){return arguments.length?(i.scale(n),f.scale(.35*n),e.scale(n),r.translate(i.translate())):i.scale()},r.translate=function(n){if(!arguments.length)return i.translate();var u=i.scale(),l=+n[0],a=+n[1];return s=i.translate(n).clipExtent([[l-.455*u,a-.238*u],[l+.455*u,a+.238*u]]).stream(o).point,h=f.translate([l-.307*u,a+.201*u]).clipExtent([[l-.425*u+t,a+.12*u+t],[l-.214*u-t,a+.234*u-t]]).stream(o).point,c=e.translate([l-.205*u,a+.212*u]).clipExtent([[l-.214*u+t,a+.166*u+t],[l-.115*u-t,a+.234*u-t]]).stream(o).point,r},r.scale(1070)};var sc,hc,ye,pe,we,be,ri={point:c,lineStart:c,lineEnd:c,polygonStart:function(){hc=0;ri.lineStart=ig},polygonEnd:function(){ri.lineStart=ri.lineEnd=ri.point=c;sc+=r(hc/2)}},brt={point:rg,lineStart:c,lineEnd:c,polygonStart:c,polygonEnd:c},it={point:si,lineStart:lv,lineEnd:av,polygonStart:function(){it.lineStart=fg},polygonEnd:function(){it.point=si;it.lineStart=lv;it.lineEnd=av}};n.geo.path=function(){function t(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),f&&f.valid||(f=u(i)),n.geo.stream(t,f)),i.result()}function e(){return f=null,t}var o,s,u,i,f,r=4.5;return t.area=function(t){return sc=0,n.geo.stream(t,u(ri)),sc},t.centroid=function(t){return li=ai=at=ni=ti=et=hr=cr=ii=0,n.geo.stream(t,u(it)),ii?[hr/ii,cr/ii]:et?[ni/et,ti/et]:at?[li/at,ai/at]:[NaN,NaN]},t.bounds=function(t){return we=be=-(ye=pe=1/0),n.geo.stream(t,u(brt)),[[ye,pe],[we,be]]},t.projection=function(n){return arguments.length?(u=(o=n)?n.stream||og(n):a,e()):o},t.context=function(n){return arguments.length?(i=null==(s=n)?new ug:new eg(n),"function"!=typeof r&&i.pointRadius(r),e()):s},t.pointRadius=function(n){return arguments.length?(r="function"==typeof n?n:(i.pointRadius(+n),+n),t):r},t.projection(n.geo.albersUsa()).context(null)};n.geo.transform=function(n){return{stream:function(t){var i=new yv(t);for(var r in n)i[r]=n[r];return i}}};yv.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()}};n.geo.projection=wt;n.geo.projectionMutator=ss;(n.geo.equirectangular=function(){return wt(yr)}).raw=yr.invert=yr;n.geo.rotation=function(n){function t(t){return t=n(t[0]*u,t[1]*u),t[0]*=s,t[1]*=s,t}return n=hs(n[0]%360*u,n[1]*u,n.length>2?n[2]*u:0),t.invert=function(t){return t=n.invert(t[0]*u,t[1]*u),t[0]*=s,t[1]*=s,t},t};bv.invert=yr;n.geo.circle=function(){function n(){var n="function"==typeof t?t.apply(this,arguments):t,f=hs(-n[0]*u,-n[1]*u,0).invert,i=[];return r(null,null,1,{point:function(n,t){i.push(n=f(n,t));n[0]*=s;n[1]*=s}}),{type:"Polygon",coordinates:[i]}}var i,r,t=[0,0],f=6;return n.origin=function(i){return arguments.length?(t=i,n):t},n.angle=function(t){return arguments.length?(r=cs((i=+t)*u,f*u),n):i},n.precision=function(t){return arguments.length?(r=cs(i*u,(f=+t)*u),n):f},n.angle(90)};n.geo.distance=function(n,t){var i,f=(t[0]-n[0])*u,e=n[1]*u,o=t[1]*u,a=Math.sin(f),s=Math.cos(f),h=Math.sin(e),c=Math.cos(e),l=Math.sin(o),r=Math.cos(o);return Math.atan2(Math.sqrt((i=r*a)*i+(i=c*l-h*r*s)*i),h*l+c*r*s)};n.geo.graticule=function(){function i(){return{type:"MultiLineString",coordinates:d()}}function d(){return n.range(Math.ceil(f/v)*v,u,v).map(b).concat(n.range(Math.ceil(o/y)*y,e,y).map(k)).concat(n.range(Math.ceil(h/a)*a,s,a).filter(function(n){return r(n%v)>t}).map(g)).concat(n.range(Math.ceil(l/w)*w,c,w).filter(function(n){return r(n%y)>t}).map(nt))}var s,h,u,f,c,l,e,o,g,nt,b,k,a=10,w=a,v=90,y=360,p=2.5;return i.lines=function(){return d().map(function(n){return{type:"LineString",coordinates:n}})},i.outline=function(){return{type:"Polygon",coordinates:[b(f).concat(k(e).slice(1),b(u).reverse().slice(1),k(o).reverse().slice(1))]}},i.extent=function(n){return arguments.length?i.majorExtent(n).minorExtent(n):i.minorExtent()},i.majorExtent=function(n){return arguments.length?(f=+n[0][0],u=+n[1][0],o=+n[0][1],e=+n[1][1],f>u&&(n=f,f=u,u=n),o>e&&(n=o,o=e,e=n),i.precision(p)):[[f,o],[u,e]]},i.minorExtent=function(n){return arguments.length?(h=+n[0][0],s=+n[1][0],l=+n[0][1],c=+n[1][1],h>s&&(n=h,h=s,s=n),l>c&&(n=l,l=c,c=n),i.precision(p)):[[h,l],[s,c]]},i.step=function(n){return arguments.length?i.majorStep(n).minorStep(n):i.minorStep()},i.majorStep=function(n){return arguments.length?(v=+n[0],y=+n[1],i):[v,y]},i.minorStep=function(n){return arguments.length?(a=+n[0],w=+n[1],i):[a,w]},i.precision=function(n){return arguments.length?(p=+n,g=ty(l,c,90),nt=iy(h,s,p),b=ty(o,e,90),k=iy(f,u,p),i):p},i.majorExtent([[-180,-90+t],[180,90-t]]).minorExtent([[-180,-80-t],[180,80+t]])};n.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[u||i.apply(this,arguments),f||r.apply(this,arguments)]}}var u,f,i=ls,r=as;return t.distance=function(){return n.geo.distance(u||i.apply(this,arguments),f||r.apply(this,arguments))},t.source=function(n){return arguments.length?(i=n,u="function"==typeof n?null:n,t):i},t.target=function(n){return arguments.length?(r=n,f="function"==typeof n?null:n,t):r},t.precision=function(){return arguments.length?t:0},t};n.geo.interpolate=function(n,t){return sg(n[0]*u,n[1]*u,t[0]*u,t[1]*u)};n.geo.length=function(t){return cc=0,n.geo.stream(t,vi),cc};vi={sphere:c,point:c,lineStart:hg,lineEnd:c,polygonStart:c,polygonEnd:c};lc=pr(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(n.geo.azimuthalEqualArea=function(){return wt(lc)}).raw=lc;ac=pr(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},a);(n.geo.azimuthalEquidistant=function(){return wt(ac)}).raw=ac;(n.geo.conicConformal=function(){return os(ry)}).raw=ry;(n.geo.conicEquidistant=function(){return os(uy)}).raw=uy;vc=pr(function(n){return 1/n},Math.atan);(n.geo.gnomonic=function(){return wt(vc)}).raw=vc;sf.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-v]};(n.geo.mercator=function(){return fy(sf)}).raw=sf;yc=pr(function(){return 1},Math.asin);(n.geo.orthographic=function(){return wt(yc)}).raw=yc;pc=pr(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(n.geo.stereographic=function(){return wt(pc)}).raw=pc;vs.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-v]};(n.geo.transverseMercator=function(){var n=fy(vs),t=n.center,i=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?i([n[0],n[1],n.length>2?n[2]+90:90]):(n=i(),[n[0],n[1],n[2]-90])},n.rotate([0,0])}).raw=vs;n.geom={};n.geom.hull=function(n){function t(n){if(n.length<3)return[];for(var l=o(i),a=o(r),h=n.length,u=[],c=[],t=0;h>t;t++)u.push([+l.call(this,n[t],t),+a.call(this,n[t],t),t]);for(u.sort(cg),t=0;h>t;t++)c.push([u[t][0],-u[t][1]]);var f=ey(u),e=ey(c),v=e[0]===f[0],y=e[e.length-1]===f[f.length-1],s=[];for(t=f.length-1;t>=0;--t)s.push(n[u[f[t]][2]]);for(t=+v;t<e.length-y;++t)s.push(n[u[e[t]][2]]);return s}var i=ur,r=wr;return arguments.length?t(n):(t.x=function(n){return arguments.length?(i=n,t):i},t.y=function(n){return arguments.length?(r=n,t):r},t)};n.geom.polygon=function(n){return gf(n,su),n};su=n.geom.polygon.prototype=[];su.area=function(){for(var t,i=-1,r=this.length,n=this[r-1],u=0;++i<r;)t=n,n=this[i],u+=t[1]*n[0]-t[0]*n[1];return.5*u};su.centroid=function(n){var i,r,u=-1,f=this.length,e=0,o=0,t=this[f-1];for(arguments.length||(n=-1/(6*this.area()));++u<f;)i=t,t=this[u],r=i[0]*t[1]-t[0]*i[1],e+=(i[0]+t[0])*r,o+=(i[1]+t[1])*r;return[e*n,o*n]};su.clip=function(n){for(var f,e,o,t,i,r,s=sy(n),h=-1,c=this.length-sy(this),u=this[c-1];++h<c;){for(f=n.slice(),n.length=0,t=this[h],i=f[(o=f.length-s)-1],e=-1;++e<o;)r=f[e],ys(r,u,t)?(ys(i,u,t)||n.push(oy(i,r,u,t)),n.push(r)):ys(i,u,t)&&n.push(oy(i,r,u,t)),i=r;s&&n.push(n[0]);u=t}return n};bc=[];kc=[];ly.prototype.prepare=function(){for(var t,n=this.edges,i=n.length;i--;)t=n[i].edge,t.b&&t.a||n.splice(i,1);return n.sort(ay),n.length};cf.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}};ws.prototype={insert:function(n,t){var i,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;i=n}else this._?(n=yy(this._),t.P=null,t.N=n,n.P=n.L=t,i=n):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,n=t;i&&i.C;)r=i.U,i===r.L?(u=r.R,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.R&&(kr(this,i),n=i,i=n.U),i.C=!1,r.C=!0,dr(this,r))):(u=r.L,u&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.L&&(dr(this,i),n=i,i=n.U),i.C=!1,r.C=!0,kr(this,r))),i=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,r,e,i=n.U,f=n.L,u=n.R;if(r=f?u?yy(u):f:u,i?i.L===n?i.L=r:i.R=r:this._=r,f&&u?(e=r.C,r.C=n.C,r.L=f,f.U=r,r!==u?(i=r.U,r.U=n.U,n=r.R,i.L=n,r.R=u,u.U=r):(r.U=i,i=r,n=r.R)):(e=n.C,n=r),n&&(n.U=i),!e){if(n&&n.C)return n.C=!1,void 0;do{if(n===this._)break;if(n===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,kr(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,dr(this,t),t=i.R);t.C=i.C;i.C=t.R.C=!1;kr(this,i);n=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,dr(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,kr(this,t),t=i.L);t.C=i.C;i.C=t.L.C=!1;dr(this,i);n=this._;break}t.C=!0;n=i;i=i.U}while(!n.C);n&&(n.C=!1)}}};n.geom.voronoi=function(n){function i(n){var o=new Array(n.length),t=r[0][0],i=r[0][1],f=r[1][0],e=r[1][1];return bs(u(n),r).cells.forEach(function(r,u){var h=r.edges,s=r.site,c=o[u]=h.length?h.map(function(n){var t=n.start();return[t.x,t.y]}):s.x>=t&&s.x<=f&&s.y>=i&&s.y<=e?[[t,e],[f,e],[f,i],[t,i]]:[];c.point=n[u]}),o}function u(n){return n.map(function(n,i){return{x:Math.round(s(n,i)/t)*t,y:Math.round(h(n,i)/t)*t,i:i}})}var f=ur,e=wr,s=f,h=e,r=cu;return n?i(n):(i.links=function(n){return bs(u(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},i.triangles=function(n){var t=[];return bs(u(n)).cells.forEach(function(i,r){for(var l,e,o=i.site,s=i.edges.sort(ay),h=-1,c=s.length,u=s[c-1].edge,f=u.l===o?u.r:u.l;++h<c;)l=u,e=f,u=s[h].edge,f=u.l===o?u.r:u.l,r<e.i&&r<f.i&&nn(o,e,f)<0&&t.push([n[r],n[e.i],n[f.i]])}),t},i.x=function(n){return arguments.length?(s=o(f=n),i):f},i.y=function(n){return arguments.length?(h=o(e=n),i):e},i.clipExtent=function(n){return arguments.length?(r=null==n?cu:n,i):r===cu?null:r},i.size=function(n){return arguments.length?i.clipExtent(n&&[[0,0],n]):r===cu?null:r&&r[1]},i)};cu=[[-1e6,-1e6],[1e6,1e6]];n.geom.delaunay=function(t){return n.geom.voronoi().triangles(t)};n.geom.quadtree=function(n,t,i,u,f){function e(n){function it(n,t,i,u,f,e,o,s){var h,c,l;isNaN(i)||isNaN(u)||(n.leaf?(h=n.x,c=n.y,null!=h?r(h-i)+r(c-u)<.01?nt(n,t,i,u,f,e,o,s):(l=n.point,n.x=n.y=n.point=null,nt(n,l,h,c,f,e,o,s),nt(n,t,i,u,f,e,o,s)):(n.x=i,n.y=u,n.point=t)):nt(n,t,i,u,f,e,o,s))}function nt(n,t,i,r,u,f,e,o){var s=.5*(u+e),h=.5*(f+o),c=i>=s,l=r>=h,a=(l<<1)+c;n.leaf=!1;n=n.nodes[a]||(n.nodes[a]=py());c?u=s:e=s;l?f=h:o=h;it(n,t,i,r,u,f,e,o)}var l,d,g,e,tt,a,v,y,p,ft=o(s),et=o(h),b,k,rt,ut,w;if(null!=t)a=t,v=i,y=u,p=f;else if(y=p=-(a=v=1/0),d=[],g=[],tt=n.length,c)for(e=0;tt>e;++e)l=n[e],l.x<a&&(a=l.x),l.y<v&&(v=l.y),l.x>y&&(y=l.x),l.y>p&&(p=l.y),d.push(l.x),g.push(l.y);else for(e=0;tt>e;++e)b=+ft(l=n[e],e),k=+et(l,e),a>b&&(a=b),v>k&&(v=k),b>y&&(y=b),k>p&&(p=k),d.push(b),g.push(k);if(rt=y-a,ut=p-v,rt>ut?p=v+rt:y=a+ut,w=py(),w.add=function(n){it(w,n,+ft(n,++e),+et(n,e),a,v,y,p)},w.visit=function(n){gr(n,w,a,v,y,p)},e=-1,null==t){for(;++e<tt;)it(w,n[e],d[e],g[e],a,v,y,p);--e}else n.forEach(w.add);return d=g=n=l=null,w}var c,s=ur,h=wr;return(c=arguments.length)?(s=tn,h=rn,3===c&&(f=i,u=t,i=t=0),e(n)):(e.x=function(n){return arguments.length?(s=n,e):s},e.y=function(n){return arguments.length?(h=n,e):h},e.extent=function(n){return arguments.length?(null==n?t=i=u=f=null:(t=+n[0][0],i=+n[0][1],u=+n[1][0],f=+n[1][1]),e):null==t?null:[[t,i],[u,f]]},e.size=function(n){return arguments.length?(null==n?t=i=u=f=null:(t=i=0,u=+n[0],f=+n[1]),e):null==t?null:[u-t,f-i]},e)};n.interpolateRgb=ks;n.interpolateObject=wy;n.interpolateNumber=ht;n.interpolateString=by;lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;n.interpolate=hi;n.interpolators=[function(n,t){var i=typeof t;return("string"===i?fu.has(t)||/^(#|rgb\(|hsl\()/.test(t)?ks:by:t instanceof ki?ks:Array.isArray(t)?af:"object"===i&&isNaN(t)?wy:ht)(n,t)}];n.interpolateArray=af;var ob=function(){return a},krt=n.map({linear:ob,poly:sn,quad:function(){return fn},cubic:function(){return en},sin:function(){return hn},exp:function(){return cn},circle:function(){return ln},elastic:an,back:vn,bounce:function(){return yn}}),drt=n.map({"in":a,out:ky,"in-out":dy,"out-in":function(n){return dy(ky(n))}});n.ease=function(n){var t=n.indexOf("-"),i=t>=0?n.substring(0,t):n,r=t>=0?n.substring(t+1):"in";return i=krt.get(i)||ob,r=drt.get(r)||a,un(r(i.apply(null,yw.call(arguments,1))))};n.interpolateHcl=pn;n.interpolateHsl=wn;n.interpolateLab=bn;n.interpolateRound=gy;n.transform=function(t){var i=nt.createElementNS(n.ns.prefix.svg,"g");return(n.transform=function(n){if(null!=n){i.setAttribute("transform",n);var t=i.transform.baseVal.consolidate()}return new np(t?t.matrix:sb)})(t)};np.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};sb={a:1,b:0,c:0,d:1,e:0,f:0};n.interpolateTransform=rp;n.layout={};n.layout.bundle=function(){return function(n){for(var t=[],i=-1,r=n.length;++i<r;)t.push(ntt(n[i]));return t}};n.layout.chord=function(){function c(){var v,t,b,c,a,k={},g=[],it=n.range(r),nt=[],p,w;for(i=[],u=[],v=0,c=-1;++c<r;){for(t=0,a=-1;++a<r;)t+=f[c][a];g.push(t);nt.push(n.range(r));v+=t}for(e&&it.sort(function(n,t){return e(g[n],g[t])}),o&&nt.forEach(function(n,t){n.sort(function(n,i){return o(f[t][n],f[t][i])})}),v=(d-h*r)/v,t=0,c=-1;++c<r;){for(b=t,a=-1;++a<r;){var y=it[c],tt=nt[y][a],rt=f[y][tt],ut=t,ft=t+=rt*v;k[y+"-"+tt]={index:y,subindex:tt,startAngle:ut,endAngle:ft,value:rt}}u[y]={index:y,startAngle:b,endAngle:t,value:(t-b)/v};t+=h}for(c=-1;++c<r;)for(a=c-1;++a<r;)p=k[c+"-"+a],w=k[a+"-"+c],(p.value||w.value)&&i.push(p.value<w.value?{source:w,target:p}:{source:p,target:w});s&&l()}function l(){i.sort(function(n,t){return s((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var i,u,f,r,e,o,s,t={},h=0;return t.matrix=function(n){return arguments.length?(r=(f=n)&&f.length,i=u=null,t):f},t.padding=function(n){return arguments.length?(h=n,i=u=null,t):h},t.sortGroups=function(n){return arguments.length?(e=n,i=u=null,t):e},t.sortSubgroups=function(n){return arguments.length?(o=n,i=null,t):o},t.sortChords=function(n){return arguments.length?(s=n,i&&l(),t):s},t.chords=function(){return i||c(),i},t.groups=function(){return u||c(),u},t};n.layout.force=function(){function d(n){return function(t,i,r,u){var e;if(t.point!==n){var o=t.cx-n.x,s=t.cy-n.y,h=u-i,f=o*o+s*s;if(f>h*h/k)return w>f&&(e=t.charge/f,n.px-=o*e,n.py-=s*e),!0;t.point&&f&&w>f&&(e=t.pointCharge/f,n.px-=o*e,n.py-=s*e)}return!t.charge}}function g(i){i.px=n.event.x;i.py=n.event.y;t.resume()}var h,r,c,l,v,t={},y=n.dispatch("start","tick","end"),f=[1,1],p=.9,o=grt,s=nut,e=-30,w=tut,b=.1,k=.64,i=[],u=[];return t.tick=function(){if((r*=.99)<.005)return y.end({type:"end",alpha:r=0}),!0;for(var tt,t,w,g,k,s,h,a,nt=i.length,it=u.length,o=0;it>o;++o)t=u[o],w=t.source,g=t.target,h=g.x-w.x,a=g.y-w.y,(k=h*h+a*a)&&(k=r*l[o]*((k=Math.sqrt(k))-c[o])/k,h*=k,a*=k,g.x-=h*(s=w.weight/(g.weight+w.weight)),g.y-=a*s,w.x+=h*(s=1-s),w.y+=a*s);if((s=r*b)&&(h=f[0]/2,a=f[1]/2,o=-1,s))for(;++o<nt;)t=i[o],t.x+=(h-t.x)*s,t.y+=(a-t.y)*s;if(e)for(fp(tt=n.geom.quadtree(i),r,v),o=-1;++o<nt;)(t=i[o]).fixed||tt.visit(d(t));for(o=-1;++o<nt;)t=i[o],t.fixed?(t.x=t.px,t.y=t.py):(t.x-=(t.px-(t.px=t.x))*p,t.y-=(t.py-(t.py=t.y))*p);y.tick({type:"tick",alpha:r})},t.nodes=function(n){return arguments.length?(i=n,t):i},t.links=function(n){return arguments.length?(u=n,t):u},t.size=function(n){return arguments.length?(f=n,t):f},t.linkDistance=function(n){return arguments.length?(o="function"==typeof n?n:+n,t):o},t.distance=t.linkDistance,t.linkStrength=function(n){return arguments.length?(s="function"==typeof n?n:+n,t):s},t.friction=function(n){return arguments.length?(p=+n,t):p},t.charge=function(n){return arguments.length?(e="function"==typeof n?n:+n,t):e},t.chargeDistance=function(n){return arguments.length?(w=n*n,t):Math.sqrt(w)},t.gravity=function(n){return arguments.length?(b=+n,t):b},t.theta=function(n){return arguments.length?(k=n*n,t):Math.sqrt(k)},t.alpha=function(i){return arguments.length?(i=+i,r?r=i>0?i:0:i>0&&(y.start({type:"start",alpha:r=i}),n.timer(t.tick)),t):r},t.start=function(){function p(t,i){var f;if(!h){for(h=new Array(a),r=0;a>r;++r)h[r]=[];for(r=0;s>r;++r)f=u[r],h[f.source.index].push(f.target),h[f.target.index].push(f.source)}for(var e,o=h[n],r=-1,s=o.length;++r<s;)if(!isNaN(e=o[r][t]))return e;return Math.random()*i}for(var h,r,a=i.length,y=u.length,w=f[0],b=f[1],n=0;a>n;++n)(r=i[n]).index=n,r.weight=0;for(n=0;y>n;++n)r=u[n],"number"==typeof r.source&&(r.source=i[r.source]),"number"==typeof r.target&&(r.target=i[r.target]),++r.source.weight,++r.target.weight;for(n=0;a>n;++n)r=i[n],isNaN(r.x)&&(r.x=p("x",w)),isNaN(r.y)&&(r.y=p("y",b)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(c=[],"function"==typeof o)for(n=0;y>n;++n)c[n]=+o.call(this,u[n],n);else for(n=0;y>n;++n)c[n]=o;if(l=[],"function"==typeof s)for(n=0;y>n;++n)l[n]=+s.call(this,u[n],n);else for(n=0;y>n;++n)l[n]=s;if(v=[],"function"==typeof e)for(n=0;a>n;++n)v[n]=+e.call(this,i[n],n);else for(n=0;a>n;++n)v[n]=e;return t.resume()},t.resume=function(){return t.alpha(.1)},t.stop=function(){return t.alpha(0)},t.drag=function(){return h||(h=n.behavior.drag().origin(a).on("dragstart.force",itt).on("drag.force",g).on("dragend.force",rtt)),arguments.length?(this.on("mouseover.force",utt).on("mouseout.force",ftt).call(h),void 0):h},n.rebind(t,y,"on")};var grt=20,nut=1,tut=1/0;n.layout.hierarchy=function(){function u(f,e,o){var s=r.call(n,f,e);if(f.depth=e,o.push(f),s&&(h=s.length)){for(var h,c,l=-1,a=f.children=new Array(h),v=0,y=e+1;++l<h;)c=a[l]=u(s[l],y,o),c.parent=f,v+=c.value;i&&a.sort(i);t&&(f.value=v)}else delete f.children,t&&(f.value=+t.call(n,f,e)||0);return f}function f(i,r){var e=i.children,u=0,s,o,h;if(e&&(s=e.length))for(o=-1,h=r+1;++o<s;)u+=f(e[o],h);else t&&(u=+t.call(n,i,r)||0);return t&&(i.value=u),u}function n(n){var t=[];return u(n,0,t),t}var i=stt,r=ett,t=ott;return n.sort=function(t){return arguments.length?(i=t,n):i},n.children=function(t){return arguments.length?(r=t,n):r},n.value=function(i){return arguments.length?(t=i,n):t},n.revalue=function(n){return f(n,0),n},n};n.layout.partition=function(){function r(n,t,i,u){var f=n.children,o,s,h,e;if(n.x=t,n.y=n.depth*u,n.dx=i,n.dy=u,f&&(o=f.length))for(e=-1,i=n.value?i/n.value:0;++e<o;)r(s=f[e],t,h=s.value*i,u),t+=h}function u(n){var t=n.children,i=0,f,r;if(t&&(f=t.length))for(r=-1;++r<f;)i=Math.max(i,u(t[r]));return 1+i}function i(n,i){var e=f.call(this,n,i);return r(e[0],0,t[0],t[1]/u(e[0])),e}var f=n.layout.hierarchy(),t=[1,1];return i.size=function(n){return arguments.length?(t=n,i):t},nu(i,f)};n.layout.pie=function(){function t(e){var o=e.map(function(n,i){return+f.call(t,n,i)}),s=+("function"==typeof r?r.apply(this,arguments):r),l=(("function"==typeof u?u.apply(this,arguments):u)-s)/n.sum(o),c=n.range(e.length),h;return null!=i&&c.sort(i===dc?function(n,t){return o[t]-o[n]}:function(n,t){return i(e[n],e[t])}),h=[],c.forEach(function(n){var t;h[n]={data:e[n],value:t=o[n],startAngle:s,endAngle:s+=t*l}}),h}var f=Number,i=dc,r=0,u=d;return t.value=function(n){return arguments.length?(f=n,t):f},t.sort=function(n){return arguments.length?(i=n,t):i},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(u=n,t):u},t};dc={};n.layout.stack=function(){function t(s,h){var l=s.map(function(n,i){return r.call(t,n,i)}),a=l.map(function(n){return n.map(function(n,i){return[e.call(t,n,i),o.call(t,n,i)]})}),y=u.call(t,a,h);l=n.permute(l,y);a=n.permute(a,y);for(var v,p,w=f.call(t,a,h),b=l.length,k=l[0].length,c=0;k>c;++c)for(i.call(t,l[0][c],p=w[c],a[0][c][1]),v=1;b>v;++v)i.call(t,l[v][c],p+=a[v-1][c][1],a[v][c][1]);return s}var r=a,u=ds,f=gs,i=att,e=ctt,o=ltt;return t.values=function(n){return arguments.length?(r=n,t):r},t.order=function(n){return arguments.length?(u="function"==typeof n?n:hb.get(n)||ds,t):u},t.offset=function(n){return arguments.length?(f="function"==typeof n?n:cb.get(n)||gs,t):f},t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(o=n,t):o},t.out=function(n){return arguments.length?(i=n,t):i},t};hb=n.map({"inside-out":function(t){for(var i,u=t.length,f=t.map(vtt),e=t.map(ytt),l=n.range(u).sort(function(n,t){return f[n]-f[t]}),o=0,s=0,h=[],c=[],r=0;u>r;++r)i=l[r],s>o?(o+=e[i],h.push(i)):(s+=e[i],c.push(i));return c.reverse().concat(h)},reverse:function(t){return n.range(t.length).reverse()},"default":ds});cb=n.map({silhouette:function(n){for(var r,i,s=n.length,f=n[0].length,e=[],u=0,o=[],t=0;f>t;++t){for(r=0,i=0;s>r;r++)i+=n[r][t][1];i>u&&(u=i);e.push(i)}for(t=0;f>t;++t)o[t]=(u-e[t])/2;return o},wiggle:function(n){var i,t,r,u,h,c,f,e,o,a=n.length,l=n[0],v=l.length,s=[];for(s[0]=e=o=0,t=1;v>t;++t){for(i=0,u=0;a>i;++i)u+=n[i][t][1];for(i=0,h=0,f=l[t][0]-l[t-1][0];a>i;++i){for(r=0,c=(n[i][t][1]-n[i][t-1][1])/(2*f);i>r;++r)c+=(n[r][t][1]-n[r][t-1][1])/f;h+=c*n[i][t][1]}s[t]=e-=u?h/u*f:0;o>e&&(o=e)}for(t=0;v>t;++t)s[t]-=o;return s},expand:function(n){for(var t,r,u=n.length,f=n[0].length,o=1/u,e=[],i=0;f>i;++i){for(t=0,r=0;u>t;t++)r+=n[t][i][1];if(r)for(t=0;u>t;t++)n[t][i][1]/=r;else for(t=0;u>t;t++)n[t][i][1]=o}for(i=0;f>i;++i)e[i]=0;return e},zero:gs});n.layout.histogram=function(){function t(t,e){for(var o,s,l=[],h=t.map(r,this),a=u.call(this,h,e),c=f.call(this,a,h,e),e=-1,y=h.length,v=c.length-1,p=i?1:1/y;++e<v;)o=l[e]=[],o.dx=c[e+1]-(o.x=c[e]),o.y=0;if(v>0)for(e=-1;++e<y;)s=h[e],s>=a[0]&&s<=a[1]&&(o=l[n.bisect(c,s,1,v)-1],o.y+=p,o.push(t[e]));return l}var i=!0,r=Number,u=btt,f=wtt;return t.value=function(n){return arguments.length?(r=n,t):r},t.range=function(n){return arguments.length?(u=o(n),t):u},t.bins=function(n){return arguments.length?(f="number"==typeof n?function(t){return ep(t,n)}:o(n),t):f},t.frequency=function(n){return arguments.length?(i=!!n,t):i},t};n.layout.tree=function(){function i(n,i){function h(n,t){var f=n.children,i=n._tree,o;if(f&&(s=f.length)){for(var s,e,u,c=f[0],l=c,a=-1;++a<s;)u=f[a],h(u,e),l=v(u,e,l),e=u;nit(n);o=.5*(c._tree.prelim+u._tree.prelim);t?(i.prelim=t._tree.prelim+r(n,t),i.mod=i.prelim-o):i.prelim=o}else t&&(i.prelim=t._tree.prelim+r(n,t))}function c(n,t){var i,u,r;if(n.x=n._tree.prelim+t,i=n.children,i&&(u=i.length))for(r=-1,t+=n._tree.mod;++r<u;)c(i[r],t)}function v(n,t,i){if(t){for(var s,f=n,e=n,u=t,o=n.parent.children[0],h=f._tree.mod,c=e._tree.mod,l=u._tree.mod,a=o._tree.mod;u=th(u),f=nh(f),u&&f;)o=nh(o),e=th(e),e._tree.ancestor=n,s=u._tree.prelim+l-f._tree.prelim-h+r(u,f),s>0&&(tit(iit(u,n,i),n,s),h+=s,c+=s),l+=u._tree.mod,h+=f._tree.mod,a+=o._tree.mod,c+=e._tree.mod;u&&!th(e)&&(e._tree.thread=u,e._tree.mod+=l-c);f&&!nh(o)&&(o._tree.thread=f,o._tree.mod+=h-a,i=n)}return i}var l=f.call(this,n,i),e=l[0];ct(e,function(n,t){n._tree={ancestor:n,prelim:0,mod:0,change:0,shift:0,number:t?t._tree.number+1:0}});h(e);c(e,-e._tree.prelim);var o=vf(e,dtt),s=vf(e,ktt),y=vf(e,gtt),a=o.x-r(o,s)/2,p=s.x+r(s,o)/2,w=y.depth||1;return ct(e,u?function(n){n.x*=t[0];n.y=n.depth*t[1];delete n._tree}:function(n){n.x=(n.x-a)/(p-a)*t[0];n.y=n.depth/w*t[1];delete n._tree}),l}var f=n.layout.hierarchy().sort(null).value(null),r=op,t=[1,1],u=!1;return i.separation=function(n){return arguments.length?(r=n,i):r},i.size=function(n){return arguments.length?(u=null==(t=n),i):u?null:t},i.nodeSize=function(n){return arguments.length?(u=null!=(t=n),i):u?t:null},nu(i,f)};n.layout.pack=function(){function i(n,i){var c=f.call(this,n,i),e=c[0],o=u[0],s=u[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t},h;return(e.x=e.y=0,ct(e,function(n){n.r=+l(n.value)}),ct(e,cp),r)&&(h=r*(t?1:Math.max(2*e.r/o,2*e.r/s))/2,ct(e,function(n){n.r+=h}),ct(e,cp),ct(e,function(n){n.r-=h})),lp(e,o/2,s/2,t?1:1/Math.max(2*e.r/o,2*e.r/s)),c}var t,f=n.layout.hierarchy().sort(rit),r=0,u=[1,1];return i.size=function(n){return arguments.length?(u=n,i):u},i.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,i):t},i.padding=function(n){return arguments.length?(r=+n,i):r},nu(i,f)};n.layout.cluster=function(){function i(n,i){var o,c=f.call(this,n,i),e=c[0],a=0;ct(e,function(n){var t=n.children;t&&t.length?(n.x=oit(t),n.y=eit(t)):(n.x=o?a+=r(n,o):0,n.y=0,o=n)});var s=vp(e),h=yp(e),l=s.x-r(s,h)/2,v=h.x+r(h,s)/2;return ct(e,u?function(n){n.x=(n.x-e.x)*t[0];n.y=(e.y-n.y)*t[1]}:function(n){n.x=(n.x-l)/(v-l)*t[0];n.y=(1-(e.y?n.y/e.y:1))*t[1]}),c}var f=n.layout.hierarchy().sort(null).value(null),r=op,t=[1,1],u=!1;return i.separation=function(n){return arguments.length?(r=n,i):r},i.size=function(n){return arguments.length?(u=null==(t=n),i):u?null:t},i.nodeSize=function(n){return arguments.length?(u=null!=(t=n),i):u?t:null},nu(i,f)};n.layout.treemap=function(){function o(n,t){for(var r,i,u=-1,f=n.length;++u<f;)i=(r=n[u]).value*(0>t?0:t),r.area=isNaN(i)||0>=i?0:i}function a(n){var u=n.children;if(u&&u.length){var l,v,y,r=c(n),t=[],f=u.slice(),h=1/0,e="slice"===i?r.dx:"dice"===i?r.dy:"slice-dice"===i?1&n.depth?r.dy:r.dx:Math.min(r.dx,r.dy);for(o(f,r.dx*r.dy/n.value),t.area=0;(y=f.length)>0;)t.push(l=f[y-1]),t.area+=l.area,"squarify"!==i||(v=p(t,e))<=h?(f.pop(),h=v):(t.area-=t.pop().area,s(t,e,r,!1),e=Math.min(r.dx,r.dy),t.length=t.area=0,h=1/0);t.length&&(s(t,e,r,!0),t.length=t.area=0);u.forEach(a)}}function v(n){var u=n.children;if(u&&u.length){var i,r=c(n),f=u.slice(),t=[];for(o(f,r.dx*r.dy/n.value),t.area=0;i=f.pop();)t.push(i),t.area+=i.area,null!=i.z&&(s(t,i.z?r.dx:r.dy,r,!f.length),t.length=t.area=0);u.forEach(v)}}function p(n,t){for(var i,r=n.area,u=0,f=1/0,o=-1,s=n.length;++o<s;)(i=n[o].area)&&(f>i&&(f=i),i>u&&(u=i));return r*=r,t*=t,r?Math.max(t*u*e/r,r/(t*f*e)):1/0}function s(n,t,i,r){var f,h=-1,c=n.length,o=i.x,s=i.y,e=t?u(n.area/t):0;if(t==i.dx){for((r||e>i.dy)&&(e=i.dy);++h<c;)f=n[h],f.x=o,f.y=s,f.dy=e,o+=f.dx=Math.min(i.x+i.dx-o,e?u(f.area/e):0);f.z=!0;f.dx+=i.x+i.dx-o;i.y+=e;i.dy-=e}else{for((r||e>i.dx)&&(e=i.dx);++h<c;)f=n[h],f.x=o,f.y=s,f.dx=e,s+=f.dy=Math.min(i.y+i.dy-s,e?u(f.area/e):0);f.z=!1;f.dy+=i.y+i.dy-s;i.x+=e;i.dx-=e}}function t(n){var i=r||h(n),t=i[0];return t.x=0,t.y=0,t.dx=f[0],t.dy=f[1],r&&h.revalue(t),o([t],t.dx*t.dy/t.value),(r?v:a)(t),l&&(r=i),i}var r,h=n.layout.hierarchy(),u=Math.round,f=[1,1],y=null,c=rh,l=!1,i="squarify",e=.5*(1+Math.sqrt(5));return t.size=function(n){return arguments.length?(f=n,t):f},t.padding=function(n){function u(i){var r=n.call(t,i,i.depth);return null==r?rh(i):pp(i,"number"==typeof r?[r,r,r,r]:r)}function i(t){return pp(t,n)}if(!arguments.length)return y;var r;return c=null==(y=n)?rh:"function"==(r=typeof n)?u:"number"===r?(n=[n,n,n,n],i):i,t},t.round=function(n){return arguments.length?(u=n?Math.round:Number,t):u!=Number},t.sticky=function(n){return arguments.length?(l=n,r=null,t):l},t.ratio=function(n){return arguments.length?(e=n,t):e},t.mode=function(n){return arguments.length?(i=n+"",t):i},nu(t,h)};n.random={normal:function(n,t){var i=arguments.length;return 2>i&&(t=1),1>i&&(n=0),function(){var r,u,i;do r=2*Math.random()-1,u=2*Math.random()-1,i=r*r+u*u;while(!i||i>1);return n+t*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=n.random.normal.apply(n,arguments);return function(){return Math.exp(t())}},bates:function(t){var i=n.random.irwinHall(t);return function(){return i()/t}},irwinHall:function(n){return function(){for(var t=0,i=0;n>i;i++)t+=Math.random();return t}}};n.scale={};lb={floor:a,ceil:a};n.scale.linear=function(){return wp([0,1],[0,1],hi,!1)};ab={s:1,g:1,p:1,r:1,e:1};n.scale.log=function(){return kp(n.scale.linear().domain([0,1]),10,!0,[1,10])};gc=n.format(".0e");vb={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};n.scale.pow=function(){return dp(n.scale.linear(),1,[0,1])};n.scale.sqrt=function(){return n.scale.pow().exponent(.5)};n.scale.ordinal=function(){return gp([],{t:"range",a:[[]]})};n.scale.category10=function(){return n.scale.ordinal().range(iut)};n.scale.category20=function(){return n.scale.ordinal().range(rut)};n.scale.category20b=function(){return n.scale.ordinal().range(uut)};n.scale.category20c=function(){return n.scale.ordinal().range(fut)};var iut=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(wu),rut=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(wu),uut=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(wu),fut=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(wu);n.scale.quantile=function(){return nw([],[])};n.scale.quantize=function(){return tw(0,1,[0,1])};n.scale.threshold=function(){return iw([.5],[0,1])};n.scale.identity=function(){return rw([0,1])};n.svg={};n.svg.arc=function(){function n(){var e=t.apply(this,arguments),n=i.apply(this,arguments),o=r.apply(this,arguments)+ui,s=u.apply(this,arguments)+ui,h=(o>s&&(h=o,o=s,s=h),s-o),c=f>h?"0":"1",l=Math.cos(o),a=Math.sin(o),v=Math.cos(s),y=Math.sin(s);return h>=yb?e?"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"M0,"+e+"A"+e+","+e+" 0 1,0 0,"+-e+"A"+e+","+e+" 0 1,0 0,"+e+"Z":"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z":e?"M"+n*l+","+n*a+"A"+n+","+n+" 0 "+c+",1 "+n*v+","+n*y+"L"+e*v+","+e*y+"A"+e+","+e+" 0 "+c+",0 "+e*l+","+e*a+"Z":"M"+n*l+","+n*a+"A"+n+","+n+" 0 "+c+",1 "+n*v+","+n*y+"L0,0Z"}var t=ait,i=vit,r=uw,u=fw;return n.innerRadius=function(i){return arguments.length?(t=o(i),n):t},n.outerRadius=function(t){return arguments.length?(i=o(t),n):i},n.startAngle=function(t){return arguments.length?(r=o(t),n):r},n.endAngle=function(t){return arguments.length?(u=o(t),n):u},n.centroid=function(){var n=(t.apply(this,arguments)+i.apply(this,arguments))/2,f=(r.apply(this,arguments)+u.apply(this,arguments))/2+ui;return[Math.cos(f)*n,Math.sin(f)*n]},n};ui=-v;yb=d-t;n.svg.line=function(){return ew(a)};ke=n.map({linear:b,"linear-closed":yit,step:pit,"step-before":sh,"step-after":hh,basis:ow,"basis-open":dit,"basis-closed":git,bundle:nrt,cardinal:kit,"cardinal-open":wit,"cardinal-closed":bit,monotone:rrt});ke.forEach(function(n,t){t.key=n;t.closed=/-closed$/.test(n)});var pb=[0,2/3,1/3,0],wb=[0,1/3,2/3,0],fi=[0,1/6,2/3,1/6];n.svg.line.radial=function(){var n=ew(sw);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n};sh.reverse=hh;hh.reverse=sh;n.svg.area=function(){return hw(a)};n.svg.area.radial=function(){var n=hw(sw);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};n.svg.chord=function(){function n(n,u){var f=h(this,i,n,u),e=h(this,r,n,u);return"M"+f.p0+c(f.r,f.p1,f.a1-f.a0)+(l(f,e)?t(f.r,f.p1,f.r,f.p0):t(f.r,f.p1,e.r,e.p0)+c(e.r,e.p1,e.a1-e.a0)+t(e.r,e.p1,f.r,f.p0))+"Z"}function h(n,t,i,r){var o=t.call(n,i,r),f=u.call(n,o,r),h=e.call(n,o,r)+ui,c=s.call(n,o,r)+ui;return{r:f,a0:h,a1:c,p0:[f*Math.cos(h),f*Math.sin(h)],p1:[f*Math.cos(c),f*Math.sin(c)]}}function l(n,t){return n.a0==t.a0&&n.a1==t.a1}function c(n,t,i){return"A"+n+","+n+" 0 "+ +(i>f)+",1 "+t}function t(n,t,i,r){return"Q 0,0 "+r}var i=ls,r=as,u=urt,e=uw,s=fw;return n.radius=function(t){return arguments.length?(u=o(t),n):u},n.source=function(t){return arguments.length?(i=o(t),n):i},n.target=function(t){return arguments.length?(r=o(t),n):r},n.startAngle=function(t){return arguments.length?(e=o(t),n):e},n.endAngle=function(t){return arguments.length?(s=o(t),n):s},n};n.svg.diagonal=function(){function n(n,u){var e=t.call(this,n,u),o=i.call(this,n,u),s=(e.y+o.y)/2,f=[e,{x:e.x,y:s},{x:o.x,y:s},o];return f=f.map(r),"M"+f[0]+"C"+f[1]+" "+f[2]+" "+f[3]}var t=ls,i=as,r=cw;return n.source=function(i){return arguments.length?(t=o(i),n):t},n.target=function(t){return arguments.length?(i=o(t),n):i},n.projection=function(t){return arguments.length?(r=t,n):r},n};n.svg.diagonal.radial=function(){var t=n.svg.diagonal(),i=cw,r=t.projection;return t.projection=function(n){return arguments.length?r(frt(i=n)):i},t};n.svg.symbol=function(){function n(n,r){return(nl.get(t.call(this,n,r))||lw)(i.call(this,n,r))}var t=ort,i=ert;return n.type=function(i){return arguments.length?(t=o(i),n):t},n.size=function(t){return arguments.length?(i=o(t),n):i},n};nl=n.map({circle:lw,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*bb)),i=t*bb;return"M0,"+-t+"L"+i+",0 0,"+t+" "+-i+",0Z"},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/ge),i=t*ge/2;return"M0,"+i+"L"+t+","+-i+" "+-t+","+-i+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/ge),i=t*ge/2;return"M0,"+-i+"L"+t+","+i+" "+-t+","+i+"Z"}});n.svg.symbolTypes=nl.keys();var pi,de,ge=Math.sqrt(3),bb=Math.tan(30*u),l=[],kb=0;l.call=e.call;l.empty=e.empty;l.node=e.node;l.size=e.size;n.transition=function(n){return arguments.length?pi?n.transition():n:gh.transition()};n.transition.prototype=l;l.select=function(n){var f,i,t,e=this.id,o=[],r,s;for(n=oo(n),r=-1,s=this.length;++r<s;){o.push(f=[]);for(var h=this[r],u=-1,c=h.length;++u<c;)(t=h[u])&&(i=n.call(t,t.__data__,u,r))?("__data__"in t&&(i.__data__=t.__data__),kf(i,u,e,t.__transition__[e]),f.push(i)):f.push(null)}return iu(o,e)};l.selectAll=function(n){var s,u,t,f,h,e=this.id,c=[],i,l,r,v;for(n=vl(n),i=-1,l=this.length;++i<l;)for(var a=this[i],o=-1,y=a.length;++o<y;)if(t=a[o])for(h=t.__transition__[e],u=n.call(t,t.__data__,o,i),c.push(s=[]),r=-1,v=u.length;++r<v;)(f=u[r])&&kf(f,r,e,h),s.push(f);return iu(c,e)};l.filter=function(n){var u,f,i,e=[],t,o;for("function"!=typeof n&&(n=ta(n)),t=0,o=this.length;o>t;t++){e.push(u=[]);for(var f=this[t],r=0,s=f.length;s>r;r++)(i=f[r])&&n.call(i,i.__data__,r,t)&&u.push(i)}return iu(e,this.id)};l.tween=function(n,t){var i=this.id;return arguments.length<2?this.node().__transition__[i].tween.get(n):pt(this,null==t?function(t){t.__transition__[i].tween.remove(n)}:function(r){r.__transition__[i].tween.set(n,t)})};l.attr=function(t,i){function f(){this.removeAttribute(r)}function e(){this.removeAttributeNS(r.space,r.local)}function o(n){return null==n?f:(n+="",function(){var t,i=this.getAttribute(r);return i!==n&&(t=u(i,n),function(n){this.setAttribute(r,t(n))})})}function s(n){return null==n?e:(n+="",function(){var t,i=this.getAttributeNS(r.space,r.local);return i!==n&&(t=u(i,n),function(n){this.setAttributeNS(r.space,r.local,t(n))})})}if(arguments.length<2){for(i in t)this.attr(i,t[i]);return this}var u="transform"==t?rp:hi,r=n.ns.qualify(t);return vh(this,"attr."+t,i,r.local?s:o)};l.attrTween=function(t,i){function u(n,t){var u=i.call(this,n,t,this.getAttribute(r));return u&&function(n){this.setAttribute(r,u(n))}}function f(n,t){var u=i.call(this,n,t,this.getAttributeNS(r.space,r.local));return u&&function(n){this.setAttributeNS(r.space,r.local,u(n))}}var r=n.ns.qualify(t);return this.tween("attr."+t,r.local?f:u)};l.style=function(n,t,i){function u(){this.style.removeProperty(n)}function f(t){return null==t?u:(t+="",function(){var r,u=k.getComputedStyle(this,null).getPropertyValue(n);return u!==t&&(r=hi(u,t),function(t){this.style.setProperty(n,r(t),i)})})}var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t="");for(i in n)this.style(i,n[i],t);return this}i=""}return vh(this,"style."+n,t,f)};l.styleTween=function(n,t,i){function r(r,u){var f=t.call(this,r,u,k.getComputedStyle(this,null).getPropertyValue(n));return f&&function(t){this.style.setProperty(n,f(t),i)}}return arguments.length<3&&(i=""),this.tween("style."+n,r)};l.text=function(n){return vh(this,"text",n,srt)};l.remove=function(){return this.each("end.transition",function(){var n;this.__transition__.count<2&&(n=this.parentNode)&&n.removeChild(this)})};l.ease=function(t){var i=this.id;return arguments.length<1?this.node().__transition__[i].ease:("function"!=typeof t&&(t=n.ease.apply(n,arguments)),pt(this,function(n){n.__transition__[i].ease=t}))};l.delay=function(n){var t=this.id;return arguments.length<1?this.node().__transition__[t].delay:pt(this,"function"==typeof n?function(i,r,u){i.__transition__[t].delay=+n.call(i,i.__data__,r,u)}:(n=+n,function(i){i.__transition__[t].delay=n}))};l.duration=function(n){var t=this.id;return arguments.length<1?this.node().__transition__[t].duration:pt(this,"function"==typeof n?function(i,r,u){i.__transition__[t].duration=Math.max(1,n.call(i,i.__data__,r,u))}:(n=Math.max(1,n),function(i){i.__transition__[t].duration=n}))};l.each=function(t,i){var r=this.id,u,f;return arguments.length<2?(u=de,f=pi,pi=r,pt(this,function(n,i,u){de=n.__transition__[r];t.call(n,n.__data__,i,u)}),de=u,pi=f):pt(this,function(u){var f=u.__transition__[r];(f.event||(f.event=n.dispatch("start","end"))).on(t,i)}),this};l.transition=function(){for(var u,f,n,t,s=this.id,e=++kb,o=[],r=0,h=this.length;h>r;r++){o.push(u=[]);for(var f=this[r],i=0,c=f.length;c>i;i++)(n=f[i])&&(t=Object.create(n.__transition__[s]),t.delay+=t.duration,kf(n,i,e,t)),u.push(n)}return iu(o,e)};n.svg.axis=function(){function i(i){i.each(function(){var v,ut=n.select(this),p=this.__chart__||o,i=this.__chart__=o.copy(),ot=null==h?i.ticks?i.ticks.apply(i,s):i.domain():h,st=null==e?i.tickFormat?i.tickFormat.apply(i,s):a:e,w=ut.selectAll(".tick").data(ot,i),y=w.enter().insert("g",".domain").attr("class","tick").style("opacity",t),ht=n.transition(w.exit()).style("opacity",t).remove(),it=n.transition(w.order()).style("opacity",1),l=yf(i),ft=ut.selectAll(".domain").data([0]),b=(ft.enter().append("path").attr("class","domain"),n.transition(ft)),rt,et;y.append("line");y.append("text");var k=y.select("line"),d=it.select("line"),g=w.select("text").text(st),nt=y.select("text"),tt=it.select("text");switch(c){case"bottom":v=aw;k.attr("y2",r);nt.attr("y",Math.max(r,0)+f);d.attr("x2",0).attr("y2",r);tt.attr("x",0).attr("y",Math.max(r,0)+f);g.attr("dy",".71em").style("text-anchor","middle");b.attr("d","M"+l[0]+","+u+"V0H"+l[1]+"V"+u);break;case"top":v=aw;k.attr("y2",-r);nt.attr("y",-(Math.max(r,0)+f));d.attr("x2",0).attr("y2",-r);tt.attr("x",0).attr("y",-(Math.max(r,0)+f));g.attr("dy","0em").style("text-anchor","middle");b.attr("d","M"+l[0]+","+-u+"V0H"+l[1]+"V"+-u);break;case"left":v=vw;k.attr("x2",-r);nt.attr("x",-(Math.max(r,0)+f));d.attr("x2",-r).attr("y2",0);tt.attr("x",-(Math.max(r,0)+f)).attr("y",0);g.attr("dy",".32em").style("text-anchor","end");b.attr("d","M"+-u+","+l[0]+"H0V"+l[1]+"H"+-u);break;case"right":v=vw;k.attr("x2",r);nt.attr("x",Math.max(r,0)+f);d.attr("x2",r).attr("y2",0);tt.attr("x",Math.max(r,0)+f).attr("y",0);g.attr("dy",".32em").style("text-anchor","start");b.attr("d","M"+u+","+l[0]+"H0V"+l[1]+"H"+u)}i.rangeBand?(rt=i,et=rt.rangeBand()/2,p=i=function(n){return rt(n)+et}):p.rangeBand?p=i:ht.call(v,i);y.call(v,p);it.call(v,i)})}var e,o=n.scale.linear(),c=tl,r=6,u=6,f=3,s=[10],h=null;return i.scale=function(n){return arguments.length?(o=n,i):o},i.orient=function(n){return arguments.length?(c=n in db?n+"":tl,i):c},i.ticks=function(){return arguments.length?(s=arguments,i):s},i.tickValues=function(n){return arguments.length?(h=n,i):h},i.tickFormat=function(n){return arguments.length?(e=n,i):e},i.tickSize=function(n){var t=arguments.length;return t?(r=+n,u=+arguments[t-1],i):r},i.innerTickSize=function(n){return arguments.length?(r=+n,i):r},i.outerTickSize=function(n){return arguments.length?(u=+n,i):u},i.tickPadding=function(n){return arguments.length?(f=+n,i):f},i.tickSubdivide=function(){return arguments.length&&i},i};tl="bottom";db={top:1,right:1,bottom:1,left:1};n.svg.brush=function(){function f(t){t.each(function(){var i=n.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",w).on("touchstart.brush",w),h=i.selectAll(".background").data([0]),e,t,o,s;h.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");e=i.selectAll(".resize").data(l,a);e.exit().remove();e.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return eut[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");e.style("display",f.empty()?"none":null);o=n.transition(i);s=n.transition(h);r&&(t=yf(r),s.attr("x",t[0]).attr("width",t[1]-t[0]),y(o));u&&(t=yf(u),s.attr("y",t[0]).attr("height",t[1]-t[0]),p(o));v(o)})}function v(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+t[+/e$/.test(n)]+","+i[+/^s/.test(n)]+")"})}function y(n){n.select(".extent").attr("x",t[0]);n.selectAll(".extent,.n>rect,.s>rect").attr("width",t[1]-t[0])}function p(n){n.select(".extent").attr("y",i[0]);n.selectAll(".extent,.e>rect,.w>rect").attr("height",i[1]-i[0])}function w(){function ht(){32==n.event.keyCode&&(w||(a=null,l[0]-=t[1],l[1]-=i[1],w=2),vt())}function ct(){32==n.event.keyCode&&2==w&&(l[0]+=t[1],l[1]+=i[1],w=0,vt())}function g(){var f=n.mouse(tt),e=!1;nt&&(f[0]+=nt[0],f[1]+=nt[1]);w||(n.event.altKey?(a||(a=[(t[0]+t[1])/2,(i[0]+i[1])/2]),l[0]=t[+(f[0]<a[0])],l[1]=i[+(f[1]<a[1])]):a=null);lt&&ot(f,r,0)&&(y(b),e=!0);at&&ot(f,u,1)&&(p(b),e=!0);e&&(v(b),rt({type:"brush",mode:w?"move":"resize"}))}function ot(n,r,u){var f,y,k=yf(r),p=k[0],b=k[1],c=l[u],v=u?i:t,d=v[1]-v[0];return w&&(p-=c,b-=d+c),f=(u?h:s)?Math.max(p,Math.min(b,n[u])):n[u],w?y=(f+=c)+d:(a&&(c=Math.max(p,Math.min(b,2*a[u]-f))),f>c?(y=f,f=c):y=c),v[0]!=f||v[1]!=y?(u?o=null:e=null,v[0]=f,v[1]=y,!0):void 0}function st(){g();b.style("pointer-events","all").selectAll(".resize").style("display",f.empty()?"none":null);n.select("body").style("cursor",null);ut.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null);yt();rt({type:"brushend"})}var a,nt,tt=this,it=n.select(n.event.target),rt=c.of(tt,arguments),b=n.select(tt),d=it.datum(),lt=!/^(n|s)$/.test(d)&&r,at=!/^(e|w)$/.test(d)&&u,w=it.classed("extent"),yt=vu(),l=n.mouse(tt),ut=n.select(k).on("keydown.brush",ht).on("keyup.brush",ct),ft,et;(n.event.changedTouches?ut.on("touchmove.brush",g).on("touchend.brush",st):ut.on("mousemove.brush",g).on("mouseup.brush",st),b.interrupt().selectAll("*").interrupt(),w)?(l[0]=t[0]-l[0],l[1]=i[0]-l[1]):d?(ft=+/w$/.test(d),et=+/^n/.test(d),nt=[t[1-ft]-l[0],i[1-et]-l[1]],l[0]=t[ft],l[1]=i[et]):n.event.altKey&&(a=l.slice());b.style("pointer-events","none").selectAll(".resize").style("display",null);n.select("body").style("cursor",it.style("cursor"));rt({type:"brushstart"});g()}var e,o,c=eo(f,"brushstart","brush","brushend"),r=null,u=null,t=[0,0],i=[0,0],s=!0,h=!0,l=il[0];return f.event=function(r){r.each(function(){var u=c.of(this,arguments),r={x:t,y:i,i:e,j:o},f=this.__chart__||r;this.__chart__=r;pi?n.select(this).transition().each("start.brush",function(){e=f.i;o=f.j;t=f.x;i=f.y;u({type:"brushstart"})}).tween("brush:brush",function(){var n=af(t,r.x),f=af(i,r.y);return e=o=null,function(e){t=r.x=n(e);i=r.y=f(e);u({type:"brush",mode:"resize"})}}).each("end.brush",function(){e=r.i;o=r.j;u({type:"brush",mode:"resize"});u({type:"brushend"})}):(u({type:"brushstart"}),u({type:"brush",mode:"resize"}),u({type:"brushend"}))})},f.x=function(n){return arguments.length?(r=n,l=il[!r<<1|!u],f):r},f.y=function(n){return arguments.length?(u=n,l=il[!r<<1|!u],f):u},f.clamp=function(n){return arguments.length?(r&&u?(s=!!n[0],h=!!n[1]):r?s=!!n:u&&(h=!!n),f):r&&u?[s,h]:r?s:u?h:null},f.extent=function(n){var s,h,c,l,a;return arguments.length?(r&&(s=n[0],h=n[1],u&&(s=s[0],h=h[0]),e=[s,h],r.invert&&(s=r(s),h=r(h)),s>h&&(a=s,s=h,h=a),(s!=t[0]||h!=t[1])&&(t=[s,h])),u&&(c=n[0],l=n[1],r&&(c=c[1],l=l[1]),o=[c,l],u.invert&&(c=u(c),l=u(l)),c>l&&(a=c,c=l,l=a),(c!=i[0]||l!=i[1])&&(i=[c,l])),f):(r&&(e?(s=e[0],h=e[1]):(s=t[0],h=t[1],r.invert&&(s=r.invert(s),h=r.invert(h)),s>h&&(a=s,s=h,h=a))),u&&(o?(c=o[0],l=o[1]):(c=i[0],l=i[1],u.invert&&(c=u.invert(c),l=u.invert(l)),c>l&&(a=c,c=l,l=a))),r&&u?[[s,c],[h,l]]:r?[s,h]:u&&[c,l])},f.clear=function(){return f.empty()||(t=[0,0],i=[0,0],e=o=null),f},f.empty=function(){return!!r&&t[0]==t[1]||!!u&&i[0]==i[1]},n.rebind(f,c,"on")};var eut={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},il=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],rl=i.format=fc.timeFormat,gb=rl.utc,nk=gb("%Y-%m-%dT%H:%M:%S.%LZ");rl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?yh:nk;yh.parse=function(n){var t=new Date(n);return isNaN(t)?null:t};yh.toString=nk.toString;i.second=ei(function(n){return new y(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()});i.seconds=i.second.range;i.seconds.utc=i.second.utc.range;i.minute=ei(function(n){return new y(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()});i.minutes=i.minute.range;i.minutes.utc=i.minute.utc.range;i.hour=ei(function(n){var t=n.getTimezoneOffset()/60;return new y(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()});i.hours=i.hour.range;i.hours.utc=i.hour.utc.range;i.month=ei(function(n){return n=i.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()});i.months=i.month.range;i.months.utc=i.month.utc.range;var no=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ul=[[i.second,1],[i.second,5],[i.second,15],[i.second,30],[i.minute,1],[i.minute,5],[i.minute,15],[i.minute,30],[i.hour,1],[i.hour,3],[i.hour,6],[i.hour,12],[i.day,1],[i.day,2],[i.week,1],[i.month,1],[i.month,3],[i.year,1]],out=rl.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",rr]]),sut={range:function(t,i,r){return n.range(Math.ceil(t/r)*r,+i,r).map(ci)},floor:a,ceil:a};ul.year=i.year;i.scale=function(){return ph(n.scale.linear(),ul,out)};fl=ul.map(function(n){return[n[0].utc,n[1]]});tk=gb.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",rr]]);fl.year=i.year.utc;i.scale.utc=function(){return ph(n.scale.linear(),fl,tk)};n.text=ns(function(n){return n.responseText});n.json=function(n,t){return bu(n,"application/json",hrt,t)};n.html=function(n,t){return bu(n,"text/html",crt,t)};n.xml=ns(function(n){return n.responseXML});"function"==typeof define&&define.amd?define(n):"object"==typeof module&&module.exports?module.exports=n:this.d3=n}(),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){"use strict";function k(n){var t={},i;return n.selectionStart===undefined?(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 o(n,t,i){if(n.selectionStart===undefined){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){typeof r=="function"?i[n]=r(t,i,n):typeof t.autoNumeric[r]=="function"&&(i[n]=t.autoNumeric[r](t,i,n))})}function u(n,t){typeof n[t]=="string"&&(n[t]*=1)}function v(n,t){var i,r,e,o,f,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&&t.vMin!==0?[]:t.vMin.toString().split("."),u(t,"vMax"),u(t,"vMin"),u(t,"mDec"),t.mDec=t.mRound==="CHF"?"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),t.mDec===null&&(e=0,o=0,i[1]&&(e=i[1].length),r[1]&&(o=r[1].length),t.mDec=Math.max(e,o)),t.altDec===null&&t.mDec>0&&(t.aDec==="."&&t.aSep!==","?t.altDec=",":t.aDec===","&&t.aSep!=="."&&(t.altDec=".")),f=t.aNeg?"([-\\"+t.aNeg+"]?)":"(-?)",t.aNegRegAutoStrip=f,t.skipFirstAutoStrip=new RegExp(f+"[^-"+(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(f+"(?:\\"+t.aDec+"?(\\d+\\"+t.aDec+"\\d+)|(\\d*(?:\\"+t.aDec+"\\d*)?))"),t}function t(n,t,i){var u,r,e,f;if(t.aSign)while(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(""):"",(t.lZero==="allow"||t.lZero==="keep")&&i!=="strip"&&(r=[],e="",r=n.split(t.aDec),r[0].indexOf("-")!==-1&&(e="-",r[0]=r[0].replace("-","")),r[0].length>t.mInt&&r[0].charAt(0)==="0"&&(r[0]=r[0].slice(1)),n=e+r.join(t.aDec)),(i&&t.lZero==="deny"||i&&t.lZero==="allow"&&t.allowLeading===!1)&&(f="^"+t.aNegRegAutoStrip+"0*(\\d"+(i==="leading"?")":"|$)"),f=new RegExp(f),n=n.replace(f,"$1$2")),n}function s(n,t){if(t.pSign==="p"){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("."),i[1]!==undefined&&(+i[1]==0?n=i[0]:(i[1]=i[1].replace(/0*$/,""),n=i.join("."))))),t.lZero==="keep"?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 f(n,t,i){return n===""||n===t.aNeg?t.wEmpty==="zero"?n+"0":t.wEmpty==="sign"||i?n+t.aSign:n:null}function c(n,i){var h,o,e,r,u,c;if(n=t(n,i),h=n.replace(",","."),o=f(n,i,!0),o!==null)return o;if(e="",e=i.dGroup===2?/(\d)((\d)(\d{2}?)+)$/:i.dGroup===4?/(\d)((\d{4}?)+)$/:/(\d)((\d{3}?)+)$/,r=n.split(i.aDec),i.altDec&&r.length===1&&(r=n.split(i.altDec)),u=r[0],i.aSep)while(e.test(u))u=u.replace(e,"$1"+i.aSep+"$2");return i.mDec!==0&&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=i.pSign==="p"?i.aSign+n:n+i.aSign,c&&(n=i.aNeg+n)),h<0&&i.nBracket!==null&&(n=s(n,i)),n}function e(n,t){var v;n=n===""?"0":n.toString();u(t,"mDec");t.mRound==="CHF"&&(n=(Math.round(n*20)/20).toString());var i="",r=0,e="",s=typeof t.aPad=="boolean"||t.aPad===null?t.aPad?t.mDec:0:+t.aPad,p=function(n){var t=s===0?/(\.(?:\d*[1-9])?)0*$/:s===1?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+s+"}(?:\\d*[1-9])?)0*$");return n=n.replace(t,"$1"),s===0&&(n=n.replace(/\.$/,"")),n};n.charAt(0)==="-"&&(e="-",n=n.replace("-",""));n.match(/^\d/)||(n="0"+n);e==="-"&&+n==0&&(e="");(+n>0&&t.lZero!=="keep"||n.length>0&&t.lZero==="allow")&&(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):h===0&&s===0&&(i=i.replace(/\.$/,""));if(t.mRound!=="CHF")return+i==0?i:e+i;t.mRound==="CHF"&&(a=i.lastIndexOf("."),n=i)}var c=a+t.mDec,o=+n.charAt(c+1),f=n.substring(0,c+1).split(""),y=n.charAt(c)==="."?n.charAt(c-1)%2:n.charAt(c)%2,l=!0;if(y!==1&&(y=y===0&&n.substring(c+2,n.length)>0?1:0),o>4&&t.mRound==="S"||o>4&&t.mRound==="A"&&e===""||o>5&&t.mRound==="A"&&e==="-"||o>5&&t.mRound==="s"||o>5&&t.mRound==="a"&&e===""||o>4&&t.mRound==="a"&&e==="-"||o>5&&t.mRound==="B"||o===5&&t.mRound==="B"&&y===1||o>0&&t.mRound==="C"&&e===""||o>0&&t.mRound==="F"&&e==="-"||o>0&&t.mRound==="U"||t.mRound==="CHF")for(r=f.length-1;r>=0;r-=1)if(f[r]!=="."){if(t.mRound==="CHF"&&f[r]<=2&&l){f[r]=0;l=!1;break}if(t.mRound==="CHF"&&f[r]<=7&&l){f[r]=5;l=!1;break}if(t.mRound==="CHF"&&l?(f[r]=10,l=!1):f[r]=+f[r]+1,f[r]<10)break;r>0&&(f[r]="0")}return f=f.slice(0,c+1),i=p(f.join("")),+i==0?i:e+i}function w(n,t,i){var f=t.aDec,u=t.mDec,r;return n=i==="paste"?e(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 typeof t=="string"&&(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,(u===undefined&&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);(n.type==="keydown"||n.type==="keyup")&&(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};(i===undefined||i)&&o(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/)?!0:"leading",n=t(n,r,e),(n===""||n===r.aNeg)&&r.lZero==="deny"&&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)),r.wEmpty==="zero"&&(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):!1},signPosition:function(){var n=this.settingsClone,u=n.aSign,i=this.that,t,f,r;return u?(t=u.length,n.pSign==="p")?(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(this.valuePartsBeforePaste!==undefined){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)&&n.type==="keyup"&&this.valuePartsBeforePaste!==undefined||s&&t===45)return this.checkPaste(),!1;if(t>=112&&t<=123||t>=91&&t<=93||t>=9&&t<=31||t<8&&(e===0||e===t)||t===144||t===145||t===45||t===224||(i||r)&&t===65)return!0;if((i||r)&&(t===67||t===86||t===88))return n.type==="keydown"&&this.expandSelectionOnSign(),(t===86||t===45)&&(n.type==="keydown"||n.type==="keypress"?this.valuePartsBeforePaste===undefined&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),n.type==="keydown"||n.type==="keypress"||t===67;if(i||r)return!0;if(t===37||t===39){var f=this.settingsClone.aSep,u=this.selection.start,o=this.that.value;return n.type==="keydown"&&f&&!this.shiftKey&&(t===37&&o.charAt(u-2)===f?this.setPosition(u-1):t===39&&o.charAt(u+1)===f&&this.setPosition(u+1)),!0}return t>=34&&t<=40?!0:!1},processAllways:function(){var n;return this.kdCode===8||this.kdCode===46?(this.selection.length?(this.expandSelectionOnSign(!1),n=this.getBeforeAfterStriped(),this.setValueParts(n[0],n[1])):(n=this.getBeforeAfterStriped(),this.kdCode===8?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):!1},processKeypress:function(){var n=this.settingsClone,r=String.fromCharCode(this.which),u=this.getBeforeAfterStriped(),t=u[0],i=u[1];return r===n.aDec||n.altDec&&r===n.altDec||(r==="."||r===",")&&this.kdCode===110?!n.mDec||!n.aDec?!0:n.aNeg&&i.indexOf(n.aNeg)>-1?!0:t.indexOf(n.aDec)>-1?!0:i.indexOf(n.aDec)>0?!0:(i.indexOf(n.aDec)===0&&(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):!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&&r!=="0"&&(t=n.aNeg+t),this.setValueParts(t+r,i),!0):!0},formatQuick:function(){var n=this.settingsClone,t=this.getBeforeAfterStriped(),o=this.value,f,s,i,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("-",""),t[0]=t[0].replace("-","")),f[0].length>n.mInt&&t[0].charAt(0)==="0"&&(t[0]=t[0].slice(1)),t[0]=s+t[0]),i=c(this.value,this.settingsClone),r=i.length,i){for(e=t[0].split(""),u=0,u;u<e.length;u+=1)e[u].match("\\d")||(e[u]="\\"+e[u]);l=new RegExp("^.*?"+e.join(".*?"));h=i.match(l);h?(r=h[0].length,(r===0&&i.charAt(0)!==n.aNeg||r===1&&i.charAt(0)===n.aNeg)&&n.aSign&&n.pSign==="p"&&(r=this.settingsClone.aSign.length+(i.charAt(0)==="-"?1:0))):n.aSign&&n.pSign==="s"&&(r-=n.aSign.length)}this.that.value=i;this.setPosition(r);this.formatted=!0}};var a={init:function(r){return this.each(function(){var u=n(this),v=u.data("autoNumeric"),b=u.data(),w=u.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"),a,y;if(typeof v!="object")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"),u.data("autoNumeric",v);else return this;if(a=i(u,v),w||u.prop("tagName").toLowerCase()!=="input"||n.error('The input type "'+u.prop("type")+'" is not supported by autoNumeric()'),n.inArray(u.prop("tagName").toLowerCase(),v.tagList)===-1&&u.prop("tagName").toLowerCase()!=="input"&&n.error("The <"+u.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),v.runOnce===!1&&v.aForm&&(w&&(y=!0,u[0].value===""&&v.wEmpty==="empty"&&(u[0].value="",y=!1),u[0].value===""&&v.wEmpty==="sign"&&(u[0].value=v.aSign,y=!1),y&&u.val()!==""&&(v.anDefault===null&&u[0].value===u.prop("defaultValue")||v.anDefault!==null&&v.anDefault.toString()===u.val())&&u.autoNumeric("set",u.val())),n.inArray(u.prop("tagName").toLowerCase(),v.tagList)!==-1&&u.text()!==""&&u.autoNumeric("set",u.text())),v.runOnce=!0,u.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")){u.on("keydown.autoNumeric",function(t){return(a=i(u),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)});u.on("keypress.autoNumeric",function(n){a=i(u);var t=a.processed;if(a.init(n),a.skipAllways(n))return!0;if(t)return n.preventDefault(),!1;if(a.processAllways()||a.processKeypress())return a.formatQuick(),n.preventDefault(),!1;a.formatted=!1});u.on("keyup.autoNumeric",function(n){a=i(u);a.init(n);var t=a.skipAllways(n);if((a.kdCode=0,delete a.valuePartsBeforePaste,u[0].value===a.settings.aSign&&(a.settings.pSign==="s"?o(this,0,0):o(this,a.settings.aSign.length,a.settings.aSign.length)),t)||this.value==="")return!0;a.formatted||a.formatQuick()});u.on("focusin.autoNumeric",function(){var n,r,t;a=i(u);n=a.settingsClone;n.hasFocus=!0;n.nBracket!==null&&(r=u.val(),u.val(s(r,n)));a.inVal=u.val();t=f(a.inVal,n,!0);t!==null&&t!==""&&u.val(t)});u.on("focusout.autoNumeric",function(){var s,o;a=i(u);var r=a.settingsClone,n=u.val(),v=n;r.hasFocus=!1;s="";r.lZero==="allow"&&(r.allowLeading=!1,s="leading");n!==""&&(n=t(n,r,s),f(n,r)===null&&l(n,r,u[0])?(n=h(n,r.aDec,r.aNeg),n=e(n,r),n=p(n,r.aDec,r.aNeg)):n="");o=f(n,r,!1);o===null&&(o=c(n,r));(o!==a.inVal||o!==v)&&(u.val(o),u.change(),delete a.inVal)})}})},destroy:function(){return n(this).each(function(){var t=n(this);t.off(".autoNumeric");t.removeData("autoNumeric")})},update:function(t){return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),e;if(typeof u!="object"&&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()!=="")return f.autoNumeric("set",e)})},set:function(t){if(t!==null)return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),i=t.toString(),o=t.toString(),s=f.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");return(typeof u!="object"&&n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),(o===f.attr("value")||o===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=e(i,u)),i=p(i,u.aDec,u.aNeg),l(i,u)||(i=e("",u)),i=c(i,u),s)?f.val(i):n.inArray(f.prop("tagName").toLowerCase(),u.tagList)!==-1?f.text(i):!1})},get:function(){var f=r(n(this)),i=f.data("autoNumeric"),u;return(typeof i!="object"&&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===""&&i.wEmpty==="empty"||u===i.aSign&&(i.wEmpty==="sign"||i.wEmpty==="empty"))?"":(u!==""&&i.nBracket!==null&&(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),+u==0&&i.lZero!=="keep"&&(u="0"),i.lZero==="keep")?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=t+1)}),t=0,n.each(h[0],function(n,r){r.localName==="input"&&(r.type===""||r.type==="text"||r.type==="hidden"||r.type==="tel")?(i.push(t),t=t+1):(i.push(-1),r.localName==="input"&&y.test(r.type)&&(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"),typeof c=="object"&&r[1]!==null&&(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=t+1)}),t=0,n.each(h[0],function(n,r){r.localName==="input"&&(r.type===""||r.type==="text"||r.type==="hidden"||r.type==="tel")?(i.push(t),t=t+1):(i.push(-1),r.localName==="input"&&v.test(r.type)&&(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"),typeof h=="object"&&(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){if(a[t])return a[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return a.init.apply(this,arguments);n.error('Method "'+t+'" is not supported by autoNumeric()')};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,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18next",t):n.i18next=t()}(this,function(){"use strict";function h(n){return null==n?"":""+n}function p(n,t,i){n.forEach(function(n){t[n]&&(i[n]=t[n])})}function e(n,t,i){function f(n){return n&&n.indexOf("###")>-1?n.replace(/###/g,"."):n}for(var u,r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(!n)return{};u=f(r.shift());!n[u]&&i&&(n[u]=new i);n=n[u]}return n?{obj:n,k:f(r.shift())}:{}}function c(n,t,i){var r=e(n,t,Object),u=r.obj,f=r.k;u[f]=i}function w(n,t,i,r){var o=e(n,t,Object),u=o.obj,f=o.k;u[f]=u[f]||[];r&&(u[f]=u[f].concat(i));r||u[f].push(i)}function r(n,t){var i=e(n,t),r=i.obj,u=i.k;if(r)return r[u]}function l(n,t,i){for(var r in t)r in n?"string"==typeof n[r]||n[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?i&&(n[r]=t[r]):l(n[r],t[r],i):n[r]=t[r];return n}function i(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function a(n){return"string"==typeof n?n.replace(/[&<>"'\/]/g,function(n){return rt[n]}):n}function o(n){return n.interpolation={unescapeSuffix:"HTML"},n.interpolation.prefix=n.interpolationPrefix||"__",n.interpolation.suffix=n.interpolationSuffix||"__",n.interpolation.escapeValue=n.escapeInterpolation||!1,n.interpolation.nestingPrefix=n.reusePrefix||"$t(",n.interpolation.nestingSuffix=n.reuseSuffix||")",n}function b(n){return n.resStore&&(n.resources=n.resStore),n.ns&&n.ns.defaultNs?(n.defaultNS=n.ns.defaultNs,n.ns=n.ns.namespaces):n.defaultNS=n.ns||"translation",n.fallbackToDefaultNS&&n.defaultNS&&(n.fallbackNS=n.defaultNS),n.saveMissing=n.sendMissing,n.saveMissingTo=n.sendMissingTo||"current",n.returnNull=!n.fallbackOnNull,n.returnEmptyString=!n.fallbackOnEmpty,n.returnObjects=n.returnObjectTrees,n.joinArrays="\n",n.returnedObjectHandler=n.objectTreeKeyHandler,n.parseMissingKeyHandler=n.parseMissingKey,n.appendNamespaceToMissingKey=!0,n.nsSeparator=n.nsseparator,n.keySeparator=n.keyseparator,"sprintf"===n.shortcutFunction&&(n.overloadTranslationOptionHandler=function(n){for(var i=[],t=1;t<n.length;t++)i.push(n[t]);return{postProcess:"sprintf",sprintf:i}}),n.whitelist=n.lngWhitelist,n.preload=n.preload,"current"===n.load&&(n.load="currentOnly"),"unspecific"===n.load&&(n.load="languageOnly"),n.backend=n.backend||{},n.backend.loadPath=n.resGetPath||"locales/__lng__/__ns__.json",n.backend.addPath=n.resPostPath||"locales/add/__lng__/__ns__",n.backend.allowMultiLoading=n.dynamicLoad,n.cache=n.cache||{},n.cache.prefix="res_",n.cache.expirationTime=6048e5,n.cache.enabled=!!n.useLocalStorage,n=o(n),n.defaultVariables&&(n.interpolation.defaultVariables=n.defaultVariables),n}function k(n){return n=o(n),n.joinArrays="\n",n}function v(n){return(n.interpolationPrefix||n.interpolationSuffix||n.escapeInterpolation)&&(n=o(n)),n.nsSeparator=n.nsseparator,n.keySeparator=n.keyseparator,n.returnObjects=n.returnObjectTrees,n}function d(n){n.lng=function(){return t.deprecate("i18next.lng() can be replaced by i18next.language for detected language or i18next.languages for languages ordered by translation lookup."),n.services.languageUtils.toResolveHierarchy(n.language)[0]};n.preload=function(i,r){t.deprecate("i18next.preload() can be replaced with i18next.loadLanguages()");n.loadLanguages(i,r)};n.setLng=function(i,r,u){return t.deprecate("i18next.setLng() can be replaced with i18next.changeLanguage() or i18next.getFixedT() to get a translation function with fixed language or namespace."),"function"==typeof r&&(u=r,r={}),r||(r={}),r.fixLng===!0&&u?u(null,n.getFixedT(i)):void n.changeLanguage(i,u)};n.addPostProcessor=function(i,r){t.deprecate("i18next.addPostProcessor() can be replaced by i18next.use({ type: 'postProcessor', name: 'name', process: fc })");n.use({type:"postProcessor",name:i,process:r})}}function g(){var n={};return ot.forEach(function(t){t.lngs.forEach(function(i){return n[i]={numbers:t.nr,plurals:st[t.fc]}})}),n}function nt(n,t){for(var i=n.indexOf(t);-1!==i;)n.splice(i,1),i=n.indexOf(t)}function s(){return{debug:!1,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,saveMissingTo:"fallback",missingKeyHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,overloadTranslationOptionHandler:function(n){return{defaultValue:n[1]}},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",defaultVariables:void 0}}}function f(n){return"string"==typeof n.ns&&(n.ns=[n.ns]),"string"==typeof n.fallbackLng&&(n.fallbackLng=[n.fallbackLng]),"string"==typeof n.fallbackNS&&(n.fallbackNS=[n.fallbackNS]),n.whitelist&&n.whitelist.indexOf("cimode")<0&&n.whitelist.push("cimode"),n}var n={};n["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};n.classCallCheck=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");};n["extends"]=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};n.inherits=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)};n.possibleConstructorReturn=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t};n.slicedToArray=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();var tt={type:"logger",log:function(n){this._output("log",n)},warn:function(n){this._output("warn",n)},error:function(n){this._output("error",n)},_output:function(n,t){console&&console[n]&&console[n].apply(console,Array.prototype.slice.call(t))}},it=function(){function t(i){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n.classCallCheck(this,t);this.subs=[];this.init(i,r)}return t.prototype.init=function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.prefix=t.prefix||"i18next:";this.logger=n||tt;this.options=t;this.debug=t.debug!==!1},t.prototype.setDebug=function(n){this.debug=n;this.subs.forEach(function(t){t.setDebug(n)})},t.prototype.log=function(){this.forward(arguments,"log","",!0)},t.prototype.warn=function(){this.forward(arguments,"warn","",!0)},t.prototype.error=function(){this.forward(arguments,"error","")},t.prototype.deprecate=function(){this.forward(arguments,"warn","WARNING DEPRECATED: ",!0)},t.prototype.forward=function(n,t,i,r){r&&!this.debug||("string"==typeof n[0]&&(n[0]=i+this.prefix+" "+n[0]),this.logger[t](n))},t.prototype.create=function(i){var r=new t(this.logger,n["extends"]({prefix:this.prefix+":"+i+":"},this.options));return this.subs.push(r),r},t}(),t=new it,u=function(){function t(){n.classCallCheck(this,t);this.observers={}}return t.prototype.on=function(n,t){var i=this;n.split(" ").forEach(function(n){i.observers[n]=i.observers[n]||[];i.observers[n].push(t)})},t.prototype.off=function(n,t){var i=this;this.observers[n]&&this.observers[n].forEach(function(){if(t){var r=i.observers[n].indexOf(t);r>-1&&i.observers[n].splice(r,1)}else delete i.observers[n]})},t.prototype.emit=function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];this.observers[n]&&this.observers[n].forEach(function(n){n.apply(void 0,r)});this.observers["*"]&&this.observers["*"].forEach(function(t){var i;t.apply(t,(i=[n]).concat.apply(i,r))})},t}(),rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ut=function(t){function i(){var u=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],f=arguments.length<=1||void 0===arguments[1]?{ns:["translation"],defaultNS:"translation"}:arguments[1],r;return n.classCallCheck(this,i),r=n.possibleConstructorReturn(this,t.call(this)),r.data=u,r.options=f,r}return n.inherits(i,t),i.prototype.addNamespaces=function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)},i.prototype.removeNamespaces=function(n){var t=this.options.ns.indexOf(n);t>-1&&this.options.ns.splice(t,1)},i.prototype.getResource=function(n,t,i){var e=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],f=e.keySeparator||this.options.keySeparator,u;return void 0===f&&(f="."),u=[n,t],i&&"string"!=typeof i&&(u=u.concat(i)),i&&"string"==typeof i&&(u=u.concat(f?i.split(f):i)),n.indexOf(".")>-1&&(u=n.split(".")),r(this.data,u)},i.prototype.addResource=function(n,t,i,r){var e=arguments.length<=4||void 0===arguments[4]?{silent:!1}:arguments[4],f=this.options.keySeparator,u;void 0===f&&(f=".");u=[n,t];i&&(u=u.concat(f?i.split(f):i));n.indexOf(".")>-1&&(u=n.split("."),r=t,t=u[1]);this.addNamespaces(t);c(this.data,u,r);e.silent||this.emit("added",n,t,i,r)},i.prototype.addResources=function(n,t,i){for(var r in i)"string"==typeof i[r]&&this.addResource(n,t,r,i[r],{silent:!0});this.emit("added",n,t,i)},i.prototype.addResourceBundle=function(t,i,u,f,e){var s=[t,i],o;t.indexOf(".")>-1&&(s=t.split("."),f=u,u=i,i=s[1]);this.addNamespaces(i);o=r(this.data,s)||{};f?l(o,u,e):o=n["extends"]({},o,u);c(this.data,s,o);this.emit("added",t,i,u)},i.prototype.removeResourceBundle=function(n,t){this.hasResourceBundle(n,t)&&delete this.data[n][t];this.removeNamespaces(t);this.emit("removed",n,t)},i.prototype.hasResourceBundle=function(n,t){return void 0!==this.getResource(n,t)},i.prototype.getResourceBundle=function(t,i){return i||(i=this.options.defaultNS),"v1"===this.options.compatibilityAPI?n["extends"]({},this.getResource(t,i)):this.getResource(t,i)},i.prototype.toJSON=function(){return this.data},i}(u),y={processors:{},addPostProcessor:function(n){this.processors[n.name]=n},handle:function(n,t,i,r,u){var f=this;return n.forEach(function(n){f.processors[n]&&(t=f.processors[n].process(t,i,r,u))}),t}},ft=function(i){function r(u){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],f;return n.classCallCheck(this,r),f=n.possibleConstructorReturn(this,i.call(this)),p(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],u,f),f.options=e,f.logger=t.create("translator"),f}return n.inherits(r,i),r.prototype.changeLanguage=function(n){n&&(this.language=n)},r.prototype.exists=function(n){var t=arguments.length<=1||void 0===arguments[1]?{interpolation:{}}:arguments[1];return"v1"===this.options.compatibilityAPI&&(t=v(t)),void 0!==this.resolve(n,t)},r.prototype.extractFromKey=function(n,t){var r=t.nsSeparator||this.options.nsSeparator,i,u;return void 0===r&&(r=":"),i=t.ns||this.options.defaultNS,r&&n.indexOf(r)>-1&&(u=n.split(r),i=u[0],n=u[1]),"string"==typeof i&&(i=[i]),{key:n,namespaces:i}},r.prototype.translate=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s,y,p,w,o,f,c;if("object"!==("undefined"==typeof r?"undefined":n["typeof"](r))?r=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(r=v(r)),void 0===t||null===t||""===t)return"";if("number"==typeof t&&(t=String(t)),"string"==typeof t&&(t=[t]),s=r.lng||this.language,s&&"cimode"===s.toLowerCase())return t[t.length-1];var k=r.keySeparator||this.options.keySeparator||".",b=this.extractFromKey(t[t.length-1],r),u=b.key,l=b.namespaces,e=l[l.length-1],i=this.resolve(t,r),h=Object.prototype.toString.apply(i),a=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays;if(i&&"string"!=typeof i&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&(!a||"[object Array]"!==h)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(u,i,r):"key '"+u+" ("+this.language+")' returned an object instead of string.";y="[object Array]"===h?[]:{};for(p in i)y[p]=this.translate(""+u+k+p,n["extends"]({joinArrays:!1,ns:l},r));i=y}else if(a&&"[object Array]"===h)i=i.join(a),i&&(i=this.extendTranslation(i,u,r));else{if(w=!1,o=!1,!this.isValidLookup(i)&&r.defaultValue&&(w=!0,i=r.defaultValue),this.isValidLookup(i)||(o=!0,i=u),(o||w)&&(this.logger.log("missingKey",s,e,u,i),this.options.saveMissing)){if(f=[],"fallback"===this.options.saveMissingTo&&this.options.fallbackLng&&this.options.fallbackLng[0])for(c=0;c<this.options.fallbackLng.length;c++)f.push(this.options.fallbackLng[c]);else"all"===this.options.saveMissingTo?f=this.languageUtils.toResolveHierarchy(r.lng||this.language):f.push(r.lng||this.language);this.options.missingKeyHandler?this.options.missingKeyHandler(f,e,u,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(f,e,u,i);this.emit("missingKey",f,e,u,i)}i=this.extendTranslation(i,u,r);o&&i===u&&this.options.appendNamespaceToMissingKey&&(i=e+":"+u);o&&this.options.parseMissingKeyHandler&&(i=this.options.parseMissingKeyHandler(i))}return i},r.prototype.extendTranslation=function(t,i,r){var o=this,u,f,e;return r.interpolation&&this.interpolator.init(r),u=r.replace&&"string"!=typeof r.replace?r.replace:r,this.options.interpolation.defaultVariables&&(u=n["extends"]({},this.options.interpolation.defaultVariables,u)),t=this.interpolator.interpolate(t,u),t=this.interpolator.nest(t,function(){for(var t=arguments.length,i=Array(t),n=0;t>n;n++)i[n]=arguments[n];return o.translate.apply(o,i)},r),r.interpolation&&this.interpolator.reset(),f=r.postProcess||this.options.postProcess,e="string"==typeof f?[f]:f,void 0!==t&&e&&e.length&&r.applyPostProcessor!==!1&&(t=y.handle(e,t,i,r,this)),t},r.prototype.resolve=function(n){var t=this,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=void 0;return"string"==typeof n&&(n=[n]),n.forEach(function(n){if(!t.isValidLookup(r)){var e=t.extractFromKey(n,i),s=e.key,u=e.namespaces;t.options.fallbackNS&&(u=u.concat(t.options.fallbackNS));var f=void 0!==i.count&&"string"!=typeof i.count,o=void 0!==i.context&&"string"==typeof i.context&&""!==i.context,h=i.lngs?i.lngs:t.languageUtils.toResolveHierarchy(i.lng||t.language);u.forEach(function(n){t.isValidLookup(r)||h.forEach(function(u){var l;if(!t.isValidLookup(r)){var e=s,h=[e],c=void 0;for(f&&(c=t.pluralResolver.getSuffix(u,i.count)),f&&o&&h.push(e+c),o&&h.push(e+=""+t.options.contextSeparator+i.context),f&&h.push(e+=c),l=void 0;l=h.pop();)t.isValidLookup(r)||(r=t.getResource(u,n,l,i))}})})}}),r},r.prototype.isValidLookup=function(n){return!(void 0===n||!this.options.returnNull&&null===n||!this.options.returnEmptyString&&""===n)},r.prototype.getResource=function(n,t,i){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];return this.resourceStore.getResource(n,t,i,r)},r}(u),et=function(){function i(r){n.classCallCheck(this,i);this.options=r;this.whitelist=this.options.whitelist||!1;this.logger=t.create("languageUtils")}return i.prototype.getLanguagePartFromCode=function(n){if(n.indexOf("-")<0)return n;var t=n.split("-");return this.formatLanguageCode(["nb-NO","nn-NO","nb-no","nn-no"].indexOf(n)>-1?t[1].toLowerCase():t[0])},i.prototype.formatLanguageCode=function(t){if("string"==typeof t&&t.indexOf("-")>-1){var f=t.split("-"),i=n.slicedToArray(f,2),r=i[0],u=i[1];return this.options.lowerCaseLng?r.toLowerCase()+"-"+u.toLowerCase():r.toLowerCase()+"-"+u.toUpperCase()}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t},i.prototype.isWhitelisted=function(n){return"languageOnly"===this.options.load&&(n=this.getLanguagePartFromCode(n)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(n)>-1},i.prototype.toResolveHierarchy=function(n,t){var u=this,r,i;return t=t||this.options.fallbackLng||[],"string"==typeof t&&(t=[t]),r=[],i=function(n){u.isWhitelisted(n)?r.push(n):u.logger.warn("rejecting non-whitelisted language code: "+n)},"string"==typeof n&&n.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(n)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(n))):"string"==typeof n&&i(this.formatLanguageCode(n)),t.forEach(function(n){r.indexOf(n)<0&&i(u.formatLanguageCode(n))}),r},i}(),ot=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],st={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&4>=n%10&&(10>n%100||n%100>=20)?1:2)},5:function(n){return Number(0===n?0:1==n?1:2==n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&4>=n?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&4>=n%10&&(10>n%100||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:7>n?2:11>n?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&20>n?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(10>n%100||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0===n||n%100>1&&11>n%100?1:n%100>10&&20>n%100?2:3)},20:function(n){return Number(1==n?0:0===n||n%100>0&&20>n%100?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)}},ht=function(){function i(r){var u=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n.classCallCheck(this,i);this.languageUtils=r;this.options=u;this.logger=t.create("pluralResolver");this.rules=g()}return i.prototype.addRule=function(n,t){this.rules[n]=t},i.prototype.getRule=function(n){return this.rules[this.languageUtils.getLanguagePartFromCode(n)]},i.prototype.needsPlural=function(n){var t=this.getRule(n);return!(t&&t.numbers.length<=1)},i.prototype.getSuffix=function(n,t){var r=this.getRule(n),u,i;if(r){if(1===r.numbers.length)return"";if(u=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[u],2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i="")),"v1"===this.options.compatibilityJSON){if(1===i)return"";if("number"==typeof i)return"_plural_"+i.toString()}return this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: "+n),""},i}(),ct=function(){function u(){var i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];n.classCallCheck(this,u);this.logger=t.create("interpolator");this.init(i,!0)}return u.prototype.init=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=arguments[1],n,r,u,f;e&&(this.options=t);t.interpolation||(t.interpolation={escapeValue:!0});n=t.interpolation;this.escapeValue=n.escapeValue;this.prefix=n.prefix?i(n.prefix):n.prefixEscaped||"{{";this.suffix=n.suffix?i(n.suffix):n.suffixEscaped||"}}";this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"";this.nestingPrefix=n.nestingPrefix?i(n.nestingPrefix):n.nestingPrefixEscaped||i("$t(");this.nestingSuffix=n.nestingSuffix?i(n.nestingSuffix):n.nestingSuffixEscaped||i(")");r=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(r,"g");u=this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(u,"g");f=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(f,"g")},u.prototype.reset=function(){this.options&&this.init(this.options)},u.prototype.interpolate=function(n,t){function e(n){return n.replace(/\$/g,"$$$$")}for(var f,u=void 0,i=void 0;u=this.regexpUnescape.exec(n);)f=r(t,u[1].trim()),n=n.replace(u[0],f);for(;u=this.regexp.exec(n);)i=r(t,u[1].trim()),"string"!=typeof i&&(i=h(i)),i||(this.logger.warn("missed to pass in variable "+u[1]+" for interpolating "+n),i=""),i=e(this.escapeValue?a(i):i),n=n.replace(u[0],i),this.regexp.lastIndex=0;return n},u.prototype.nest=function(n,t){function f(n){return n.replace(/\$/g,"$$$$")}function e(n){var i,t;if(n.indexOf(",")<0)return n;i=n.split(",");n=i.shift();t=i.join(",");t=this.interpolate(t,u);try{u=JSON.parse(t)}catch(r){this.logger.error("failed parsing options string in nesting for key "+n,r)}return n}var o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=void 0,i=void 0,u=JSON.parse(JSON.stringify(o));for(u.applyPostProcessor=!1;r=this.nestingRegexp.exec(n);)i=t(e.call(this,r[1].trim()),u),"string"!=typeof i&&(i=h(i)),i||(this.logger.warn("missed to pass in variable "+r[1]+" for interpolating "+n),i=""),i=f(this.escapeValue?a(i):i),n=n.replace(r[0],i),this.regexp.lastIndex=0;return n},u}(),lt=function(i){function u(r,f,e){var s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o;return n.classCallCheck(this,u),o=n.possibleConstructorReturn(this,i.call(this)),o.backend=r,o.store=f,o.services=e,o.options=s,o.logger=t.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(e,s.backend,s),o}return n.inherits(u,i),u.prototype.queueLoad=function(n,t,i){var u=this,f=[],r=[],o=[],e=[];return n.forEach(function(n){var i=!0;t.forEach(function(t){var o=n+"|"+t;u.store.hasResourceBundle(n,t)?u.state[o]=2:u.state[o]<0||(1===u.state[o]?r.indexOf(o)<0&&r.push(o):(u.state[o]=1,i=!1,r.indexOf(o)<0&&r.push(o),f.indexOf(o)<0&&f.push(o),e.indexOf(t)<0&&e.push(t)))});i||o.push(n)}),(f.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:i}),{toLoad:f,pending:r,toLoadLanguages:o,toLoadNamespaces:e}},u.prototype.loaded=function(t,i,r){var o=this,s=t.split("|"),e=n.slicedToArray(s,2),u=e[0],f=e[1];i&&this.emit("failedLoading",u,f,i);r&&this.store.addResourceBundle(u,f,r);this.state[t]=i?-1:2;this.queue.forEach(function(n){w(n.loaded,[u],f);nt(n.pending,t);i&&n.errors.push(i);0!==n.pending.length||n.done||(n.errors.length?n.callback(n.errors):n.callback(),o.emit("loaded",n.loaded),n.done=!0)});this.queue=this.queue.filter(function(n){return!n.done})},u.prototype.read=function(n,t,i,r,u,f){var e=this;return r||(r=0),u||(u=250),n.length?void this.backend[i](n,t,function(o,s){return o&&s&&5>r?void setTimeout(function(){e.read.call(e,n,t,i,++r,2*u,f)},u):void f(o,s)}):f(null,{})},u.prototype.load=function(t,i,u){var e=this,o,f;return this.backend?(o=n["extends"]({},this.backend.options,this.options.backend),"string"==typeof t&&(t=this.services.languageUtils.toResolveHierarchy(t)),"string"==typeof i&&(i=[i]),f=this.queueLoad(t,i,u),f.toLoad.length?void(o.allowMultiLoading&&this.backend.readMulti?this.read(f.toLoadLanguages,f.toLoadNamespaces,"readMulti",null,null,function(t,i){t&&e.logger.warn("loading namespaces "+f.toLoadNamespaces.join(", ")+" for languages "+f.toLoadLanguages.join(", ")+" via multiloading failed",t);!t&&i&&e.logger.log("loaded namespaces "+f.toLoadNamespaces.join(", ")+" for languages "+f.toLoadLanguages.join(", ")+" via multiloading",i);f.toLoad.forEach(function(u){var l=u.split("|"),o=n.slicedToArray(l,2),s=o[0],h=o[1],c=r(i,[s,h]),f;c?e.loaded(u,t,c):(f="loading namespace "+h+" for language "+s+" via multiloading failed",e.loaded(u,f),e.logger.error(f))})}):!function(){var t=function(t){var i=this,e=t.split("|"),f=n.slicedToArray(e,2),r=f[0],u=f[1];this.read(r,u,"read",null,null,function(n,f){n&&i.logger.warn("loading namespace "+u+" for language "+r+" failed",n);!n&&f&&i.logger.log("loaded namespace "+u+" for language "+r,f);i.loaded(t,n,f)})};f.toLoad.forEach(function(n){t.call(e,n)})}()):void(f.pending.length||u())):(this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u())},u.prototype.saveMissing=function(n,t,i,r){this.backend&&this.backend.create&&this.backend.create(n,t,i,r);this.store.addResource(n[0],t,i,r)},u}(u),at=function(i){function r(u,f,e){var s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o;return n.classCallCheck(this,r),o=n.possibleConstructorReturn(this,i.call(this)),o.cache=u,o.store=f,o.services=e,o.options=s,o.logger=t.create("cacheConnector"),o.cache&&o.cache.init&&o.cache.init(e,s.cache,s),o}return n.inherits(r,i),r.prototype.load=function(t,i,r){var u=this,f;if(!this.cache)return r&&r();f=n["extends"]({},this.cache.options,this.options.cache);"string"==typeof t&&(t=this.services.languageUtils.toResolveHierarchy(t));"string"==typeof i&&(i=[i]);f.enabled?this.cache.load(t,function(n,i){var f,e,o;if(n&&u.logger.error("loading languages "+t.join(", ")+" from cache failed",n),i)for(f in i)for(e in i[f])"i18nStamp"!==e&&(o=i[f][e],o&&u.store.addResourceBundle(f,e,o));r&&r()}):r&&r()},r.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},r}(u),vt=function(i){function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments[1],u;return n.classCallCheck(this,r),u=n.possibleConstructorReturn(this,i.call(this)),u.options=f(e),u.services={},u.logger=t,u.modules={},o&&!u.isInitialized&&u.init(e,o),u}return n.inherits(r,i),r.prototype.init=function(i,r){function o(n){if(n)return"function"==typeof n?new n:n}var e=this,h,u,c;return("function"==typeof i&&(r=i,i={}),i||(i={}),this.options="v1"===i.compatibilityAPI?n["extends"]({},s(),f(b(i)),{}):"v1"===i.compatibilityJSON?n["extends"]({},s(),f(k(i)),{}):n["extends"]({},s(),this.options,f(i)),r||(r=function(){}),this.options.isClone)||(this.modules.logger?t.init(o(this.modules.logger),this.options):t.init(null,this.options),h=new et(this.options),this.store=new ut(this.options.resources,this.options),u=this.services,u.logger=t,u.resourceStore=this.store,u.resourceStore.on("added removed",function(){u.cacheConnector.save()}),u.languageUtils=h,u.pluralResolver=new ht(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON}),u.interpolator=new ct(this.options),u.backendConnector=new lt(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];e.emit.apply(e,[n].concat(r))}),u.backendConnector.on("loaded",function(){u.cacheConnector.save()}),u.cacheConnector=new at(o(this.modules.cache),u.resourceStore,u,this.options),u.cacheConnector.on("*",function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];e.emit.apply(e,[n].concat(r))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.translator=new ft(this.services,this.options),this.translator.on("*",function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];e.emit.apply(e,[n].concat(r))})),c=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"],c.forEach(function(n){e[n]=function(){return this.store[n].apply(this.store,arguments)}}),"v1"===this.options.compatibilityAPI&&d(this),this.changeLanguage(this.options.lng,function(n,t){e.emit("initialized",e.options);e.logger.log("initialized",e.options);r(n,t)}),this},r.prototype.loadResources=function(t){var i=this,r;if(t||(t=function(){}),this.options.resources)t(null);else if(r=function(){if(i.language&&"cimode"===i.language.toLowerCase())return{v:t()};var n=[],r=function(t){var r=i.services.languageUtils.toResolveHierarchy(t);r.forEach(function(t){n.indexOf(t)<0&&n.push(t)})};r(i.language);i.options.preload&&i.options.preload.forEach(function(n){r(n)});i.services.cacheConnector.load(n,i.options.ns,function(){i.services.backendConnector.load(n,i.options.ns,t)})}(),"object"===("undefined"==typeof r?"undefined":n["typeof"](r)))return r.v},r.prototype.use=function(n){return"backend"===n.type&&(this.modules.backend=n),"cache"===n.type&&(this.modules.cache=n),("logger"===n.type||n.log&&n.warn&&n.warn)&&(this.modules.logger=n),"languageDetector"===n.type&&(this.modules.languageDetector=n),"postProcessor"===n.type&&y.addPostProcessor(n),this},r.prototype.changeLanguage=function(n,t){var i=this,r=function(r){n&&(i.emit("languageChanged",n),i.logger.log("languageChanged",n));t&&t(r,function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return i.t.apply(i,r)})};!n&&this.services.languageDetector&&(n=this.services.languageDetector.detect());n&&(this.language=n,this.languages=this.services.languageUtils.toResolveHierarchy(n),this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage(n));this.loadResources(function(n){r(n)})},r.prototype.getFixedT=function(n,t){var u=this,i=function r(n,t){return t=t||{},t.lng=t.lng||r.lng,t.ns=t.ns||r.ns,u.t(n,t)};return i.lng=n,i.ns=t,i},r.prototype.t=function(){return this.translator&&this.translator.translate.apply(this.translator,arguments)},r.prototype.exists=function(){return this.translator&&this.translator.exists.apply(this.translator,arguments)},r.prototype.setDefaultNamespace=function(n){this.options.defaultNS=n},r.prototype.loadNamespaces=function(n,t){var i=this;return this.options.ns?("string"==typeof n&&(n=[n]),n.forEach(function(n){i.options.ns.indexOf(n)<0&&i.options.ns.push(n)}),void this.loadResources(t)):t&&t()},r.prototype.loadLanguages=function(n,t){"string"==typeof n&&(n=[n]);this.options.preload=this.options.preload?this.options.preload.concat(n):n;this.loadResources(t)},r.prototype.dir=function(n){n||(n=this.language);return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))?"ltr":"rtl"},r.prototype.createInstance=function(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];return new r(n,t)},r.prototype.cloneInstance=function(){var i=this,u=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],f=arguments[1],t=new r(n["extends"]({},u,this.options,{isClone:!0}),f);return["store","translator","services","language"].forEach(function(n){t[n]=i[n]}),t},r}(u);return new vt});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18nextJquery",t):n.i18nextJquery=t()}(this,function(){"use strict";function r(i,r){function f(t,r,f){function o(t,i){return u.parseDefaultValueFromContent?n["extends"]({},t,{defaultValue:i}):t}var e,s,h,c;0!==r.length&&(e="text",0===r.indexOf("[")&&(s=r.split("]"),r=s[1],e=s[0].substr(1,s[0].length-1)),(r.indexOf(";")===r.length-1&&(r=r.substr(0,r.length-2)),"html"===e)?t.html(i.t(r,o(f,t.html()))):"text"===e?t.text(i.t(r,o(f,t.text()))):"prepend"===e?t.prepend(i.t(r,o(f,t.html()))):"append"===e?t.append(i.t(r,o(f,t.html()))):0===e.indexOf("data-")?(h=e.substr(5),c=i.t(r,o(f,t.data(h))),t.data(h,c),t.attr(e,c)):t.attr(e,i.t(r,o(f,t.attr(e)))))}function e(t,i){var e=t.attr(u.selectorAttr),s,h,c,o;(e||"undefined"==typeof e||e===!1||(e=t.text()||t.val()),e)&&(s=t,h=t.data(u.targetAttr),(h&&(s=t.find(h)||t),i||u.useOptionsAttr!==!0||(i=t.data(u.optionsAttr)),i=i||{},e.indexOf(";")>=0)?(c=e.split(";"),r.each(c,function(n,t){""!==t&&f(s,t,i)})):f(s,e,i),u.useOptionsAttr===!0&&(o={},o=n["extends"]({clone:o},i),delete o.lng,t.data(u.optionsAttr,o)))}function o(n){return this.each(function(){e(r(this),n);var t=r(this).find("["+u.selectorAttr+"]");t.each(function(){e(r(this),n)})})}var u=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];u=n["extends"]({},t,u);r[u.tName]=i.t.bind(i);r[u.i18nName]=i;r.fn[u.handleName]=o}var n={},t,i;return n["extends"]=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},t={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0},i={init:r},i});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18nextXHRBackend",t):n.i18nextXHRBackend=t()}(this,function(){"use strict";function r(n){return e.call(o.call(arguments,1),function(t){if(t)for(var i in t)void 0===n[i]&&(n[i]=t[i])}),n}function u(t,i,r,u,f){var s,o,h,e;if(u&&"object"===("undefined"==typeof u?"undefined":n["typeof"](u))){s="";o=encodeURIComponent;for(h in u)s+="&"+o(h)+"="+o(u[h]);u=s.slice(1)+(f?"":"&_t="+new Date)}try{e=new(XMLHttpRequest||ActiveXObject)("MSXML2.XMLHTTP.3.0");e.open(u?"POST":"GET",t,1);i.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest");e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.onreadystatechange=function(){e.readyState>3&&r&&r(e.responseText,e)};e.send(u)}catch(o){window.console&&console.log(o)}}function f(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:u}}var n={};n["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};n.classCallCheck=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");};n.createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var t=[],e=t.forEach,o=t.slice,i=function(){function t(i){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n.classCallCheck(this,t);this.init(i,r);this.type="backend"}return n.createClass(t,[{key:"init",value:function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.services=n;this.options=r(t,this.options||{},f())}},{key:"readMulti",value:function(n,t,i){var r=this.services.interpolator.interpolate(this.options.loadPath,{lng:n.join("+"),ns:t.join("+")});this.loadUrl(r,i)}},{key:"read",value:function(n,t,i){var r=this.services.interpolator.interpolate(this.options.loadPath,{lng:n,ns:t});this.loadUrl(r,i)}},{key:"loadUrl",value:function(n,t){var i=this;this.options.ajax(n,this.options,function(r,u){var o=u.status.toString(),e,f;if(0===o.indexOf("5"))return t("failed loading "+n,!0);if(0===o.indexOf("4"))return t("failed loading "+n,!1);e=void 0;f=void 0;try{e=i.options.parse(r)}catch(s){f="failed parsing "+n+" to json"}return f?t(f,!1):void t(null,e)})}},{key:"create",value:function(n,t,i,r){var u=this,f;"string"==typeof n&&(n=[n]);f={};f[i]=r||"";n.forEach(function(n){var i=u.services.interpolator.interpolate(u.options.addPath,{lng:n,ns:t});u.options.ajax(i,u.options,function(){},f)})}}]),t}();return i.type="backend",i});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18nextLocalStorageCache",t):n.i18nextLocalStorageCache=t()}(this,function(){"use strict";function u(n){return e.call(o.call(arguments,1),function(t){if(t)for(var i in t)void 0===n[i]&&(n[i]=t[i])}),n}function f(){return{enabled:!1,prefix:"i18next_res_",expirationTime:6048e5}}var n={};n.classCallCheck=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");};n.createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var t=[],e=t.forEach,o=t.slice,i={setItem:function(n,t){if(window.localStorage)try{window.localStorage.setItem(n,t)}catch(i){}},getItem:function(n,t){if(window.localStorage)try{return window.localStorage.getItem(n,t)}catch(i){return}}},r=function(){function t(i){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n.classCallCheck(this,t);this.init(i,r);this.type="cache"}return n.createClass(t,[{key:"init",value:function(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.services=n;this.options=u(t,this.options||{},f())}},{key:"load",value:function(n,t){var r=this,u={},f=(new Date).getTime();window.localStorage&&!function(){var e=n.length;n.forEach(function(n){var o=i.getItem(r.options.prefix+n);o&&(o=JSON.parse(o),o.i18nStamp&&o.i18nStamp+r.options.expirationTime>f&&(u[n]=o));e--;0===e&&t(null,u)})}()}},{key:"save",value:function(n){if(window.localStorage)for(var t in n)n[t].i18nStamp=(new Date).getTime(),i.setItem(this.options.prefix+t,JSON.stringify(n[t]))}}]),t}();return r.type="cache",r}),function(n){var t={isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,getUniqueId:function(){var n=0;return function(){return n++}}(),templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},noop:function(){}},l="0.10.2",a=function(){function n(n){return n.split(/\s+/)}function t(n){return n.split(/\W+/)}function i(n){return function(t){return function(i){return n(i[t])}}}return{nonword:t,whitespace:n,obj:{nonword:i(t),whitespace:i(n)}}}(),o=function(){function n(n){this.maxSize=n||100;this.size=0;this.hash={};this.list=new i}function i(){this.head=this.tail=null}function r(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(n.prototype,{set:function(n,t){var u=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(u),delete this.hash[u.key]);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new r(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val}}),t.mixin(i.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),n}(),v=function(){function r(n){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+this.prefix)}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(n){return JSON.parse(n)}var n,i;try{n=window.localStorage;n.setItem("~~~","!");n.removeItem("~~~")}catch(o){n=null}return i=n&&window.JSON?{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),e(n.getItem(this._prefix(t)))},set:function(i,r,e){return t.isNumber(e)?n.setItem(this._ttlKey(i),f(u()+e)):n.removeItem(this._ttlKey(i)),n.setItem(this._prefix(i),f(r))},remove:function(t){return n.removeItem(this._ttlKey(t)),n.removeItem(this._prefix(t)),this},clear:function(){for(var r,i=[],u=n.length,t=0;t<u;t++)(r=n.key(t)).match(this.keyMatcher)&&i.push(r.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(i){var r=e(n.getItem(this._ttlKey(i)));return t.isNumber(r)&&u()>r?!0:!1}}:{get:t.noop,set:t.noop,remove:t.noop,clear:t.noop,isExpired:t.noop},t.mixin(r.prototype,i),r}(),s=function(){function i(t){t=t||{};this._send=t.transport?s(t.transport):n.ajax;this._get=t.rateLimiter?t.rateLimiter(this._get):this._get}function s(i){return function(r,u){function e(n){t.defer(function(){f.resolve(n)})}function o(n){t.defer(function(){f.reject(n)})}var f=n.Deferred();return i(r,u,e,o),f}}var r=0,u={},e=6,f=new o(10);return i.setMaxPendingRequests=function(n){e=n},i.resetCache=function(){f=new o(10)},t.mixin(i.prototype,{_get:function(n,t,i){function h(t){i&&i(null,t);f.set(n,t)}function c(){i&&i(!0)}function l(){r--;delete u[n];o.onDeckRequestArgs&&(o._get.apply(o,o.onDeckRequestArgs),o.onDeckRequestArgs=null)}var o=this,s;(s=u[n])?s.done(h).fail(c):r<e?(r++,u[n]=this._send(n,t).done(h).fail(c).always(l)):this.onDeckRequestArgs=[].slice.call(arguments,0)},get:function(n,i,r){var u;return t.isFunction(i)&&(r=i,i={}),(u=f.get(n))?t.defer(function(){r&&r(null,u)}):this._get(n,i,r),!!u}}),i}(),y=function(){function i(t){t=t||{};t.datumTokenizer&&t.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.datumTokenizer=t.datumTokenizer;this.queryTokenizer=t.queryTokenizer;this.reset()}function r(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function u(){return{ids:[],children:{}}}function f(n){for(var i={},r=[],t=0;t<n.length;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function e(n,t){function f(n,t){return n-t}var i=0,r=0,u=[];for(n=n.sort(f),t=t.sort(f);i<n.length&&r<t.length;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}return t.mixin(i.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var i=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var f,e;f=i.datums.push(n)-1;e=r(i.datumTokenizer(n));t.each(e,function(n){for(var r,t=i.trie,e=n.split("");r=e.shift();)t=t.children[r]||(t.children[r]=u()),t.ids.push(f)})})},get:function(n){var u=this,o,i;return o=r(this.queryTokenizer(n)),t.each(o,function(n){var t,r,o,f;if(i&&i.length===0)return!1;for(t=u.trie,r=n.split("");t&&(o=r.shift());)t=t.children[o];if(t&&r.length===0)f=t.ids.slice(0),i=i?e(i,f):f;else return i=[],!1}),i?t.map(f(i),function(n){return u.datums[n]}):[]},reset:function(){this.datums=[];this.trie=u()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),f=function(){function i(n){return n.local||null}function r(i){var r,u;return u={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(r=i.prefetch||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.thumbprint=l+r.thumbprint,r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",r.url||n.error("prefetch requires url to be set")),r}function u(i){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var r,u;return u={url:null,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(r=i.remote||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.rateLimiter=/^throttle$/i.test(r.rateLimitBy)?e(r.rateLimitWait):f(r.rateLimitWait),r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",delete r.rateLimitBy,delete r.rateLimitWait,r.url||n.error("remote requires url to be set")),r}return{local:i,prefetch:r,remote:u}}(),r,i;(function(i){function u(t){t&&(t.local||t.prefetch||t.remote)||n.error("one of local, prefetch, or remote is required");this.limit=t.limit||5;this.sorter=o(t.sorter);this.dupDetector=t.dupDetector||h;this.local=f.local(t);this.prefetch=f.prefetch(t);this.remote=f.remote(t);this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null;this.index=new y({datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer});this.storage=this.cacheKey?new v(this.cacheKey):null}function o(n){function i(t){return t.sort(n)}function r(n){return n}return t.isFunction(n)?i:r}function h(){return!1}var e,r;return e=i.Bloodhound,r={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=u,u.noConflict=function(){return i.Bloodhound=e,u},u.tokenizers=a,t.mixin(u.prototype,{_loadPrefetch:function(t){function f(n){i.clear();i.add(t.filter?t.filter(n):n);i._saveToStorage(i.index.serialize(),t.thumbprint,t.ttl)}var i=this,u,r;return(u=this._readFromStorage(t.thumbprint))?(this.index.bootstrap(u),r=n.Deferred().resolve()):r=n.ajax(t.url,t.ajax).done(f),r},_getFromRemote:function(n,t){function f(n,r){n?t([]):t(i.remote.filter?i.remote.filter(r):r)}var i=this,r,u;return n=n||"",u=encodeURIComponent(n),r=this.remote.replace?this.remote.replace(this.remote.url,n):this.remote.url.replace(this.remote.wildcard,u),this.transport.get(r,this.remote.ajax,f)},_saveToStorage:function(n,t,i){this.storage&&(this.storage.set(r.data,n,i),this.storage.set(r.protocol,location.protocol,i),this.storage.set(r.thumbprint,t,i))},_readFromStorage:function(n){var t={},i;return this.storage&&(t.data=this.storage.get(r.data),t.protocol=this.storage.get(r.protocol),t.thumbprint=this.storage.get(r.thumbprint)),i=t.thumbprint!==n||t.protocol!==location.protocol,t.data&&!i?t.data:null},_initialize:function(){function f(){u.add(t.isFunction(i)?i():i)}var u=this,i=this.local,r;return r=this.prefetch?this._loadPrefetch(this.prefetch):n.Deferred().resolve(),i&&r.done(f),this.transport=this.remote?new s(this.remote):null,this.initPromise=r.promise()},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){this.index.add(n)},get:function(n,i){function e(n){var f=r.slice(0);t.each(n,function(n){var i;return i=t.some(f,function(t){return u.dupDetector(n,t)}),i||f.push(n),f.length<u.limit});i&&i(u.sorter(f))}var u=this,r=[],f=!1;r=this.index.get(n);r=this.sorter(r).slice(0,this.limit);r.length<this.limit&&this.transport&&(f=this._getFromRemote(n,e));f||(r.length>0||!this.transport)&&i&&i(r)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&s.resetCache()},ttAdapter:function(){return t.bind(this.get,this)}}),u})(this);r={wrapper:'<span class="twitter-typeahead"><\/span>',dropdown:'<span class="tt-dropdown-menu"><\/span>',dataset:'<div class="tt-dataset-%CLASS%"><\/div>',suggestions:'<span class="tt-suggestions"><\/span>',suggestion:'<div class="tt-suggestion"><\/div>'};i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};t.isMsie()&&t.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"});t.isMsie()&&t.isMsie()<=7&&t.mixin(i.input,{marginTop:"-1px"});var h=function(){function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r="typeahead:";return t.mixin(i.prototype,{trigger:function(n){var t=[].slice.call(arguments,1);this.$el.trigger(r+n,t)}}),i}(),e=function(){function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0;!r&&u<n.length;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),p=function(n){function r(n,i,r){for(var u=[],f,e=0;e<n.length;e++)u.push(t.escapeRegExChars(n[e]));return f=r?"\\b("+u.join("|")+")\\b":"("+u.join("|")+")",i?new RegExp(f):new RegExp(f,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r;return(i=f.exec(t.data))&&(wrapperNode=n.createElement(u.tagName),u.className&&(wrapperNode.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),wrapperNode.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(wrapperNode,r)),!!i}function e(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),c=function(){function i(i){var u=this,e,o,s,h;if(i=i||{},i.input||n.error("input is missing"),e=t.bind(this._onBlur,this),o=t.bind(this._onFocus,this),s=t.bind(this._onKeydown,this),h=t.bind(this._onInput,this),this.$hint=n(i.hint),this.$input=n(i.input).on("blur.tt",e).on("focus.tt",o).on("keydown.tt",s),this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop),t.isMsie())this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){r[n.which||n.keyCode]||t.defer(t.bind(u._onInput,u,n))});else this.$input.on("input.tt",h);this.query=this.$input.val();this.$overflowHelper=f(this.$input)}function f(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function u(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var r;return r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return(n||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,e,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(n){var t=r[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(n,t){var i,r,f;switch(n){case"tab":r=this.getHint();f=this.getInputValue();i=r&&r!==f&&!u(t);break;case"up":case"down":i=!u(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!u(t);break;default:i=!0}return i},_checkInputValue:function(){var n,t,i;n=this.getInputValue();t=o(n,this.query);i=t?this.query.length!==n.length:!1;t?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query=n)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(n){this.query=n},getInputValue:function(){return this.$input.val()},setInputValue:function(n,t){this.$input.val(n);t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null}}),i}(),u=function(){function u(i){i=i||{};i.templates=i.templates||{};i.source||n.error("missing source");i.name&&!l(i.name)&&n.error("invalid dataset name: "+i.name);this.query=null;this.highlight=!!i.highlight;this.name=i.name||t.getUniqueId();this.source=i.source;this.displayFn=h(i.display||i.displayKey);this.templates=c(i.templates,this.displayFn);this.$el=n(r.dataset.replace("%CLASS%",this.name))}function h(n){function i(t){return t[n]}return n=n||"value",t.isFunction(n)?n:i}function c(n,i){function r(n){return"<p>"+i(n)+"<\/p>"}return{empty:n.empty&&t.templatify(n.empty),header:n.header&&t.templatify(n.header),footer:n.footer&&t.templatify(n.footer),suggestion:n.suggestion||r}}function l(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var f="ttDataset",o="ttValue",s="ttDatum";return u.extractDatasetName=function(t){return n(t).data(f)},u.extractValue=function(t){return n(t).data(o)},u.extractDatum=function(t){return n(t).data(s)},t.mixin(u.prototype,e,{_render:function(u,e){function v(){return h.templates.empty({query:u,isEmpty:!0})}function y(){function a(t){var u;return u=n(r.suggestion).append(h.templates.suggestion(t)).data(f,h.name).data(o,h.displayFn(t)).data(s,t),u.children().each(function(){n(this).css(i.suggestionChild)}),u}var c,l;return c=n(r.suggestions).css(i.suggestions),l=t.map(e,a),c.append.apply(c,l),h.highlight&&p({node:c[0],pattern:u}),c}function l(){return h.templates.header({query:u,isEmpty:!c})}function a(){return h.templates.footer({query:u,isEmpty:!c})}if(this.$el){var h=this,c;this.$el.empty();c=e&&e.length;!c&&this.templates.empty?this.$el.html(v()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null):c&&this.$el.html(y()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null);this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(n){function i(i){t.canceled||n!==t.query||t._render(n,i)}var t=this;this.query=n;this.canceled=!1;this.source(n,i)},cancel:function(){this.canceled=!0},clear:function(){this.cancel();this.$el.empty();this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),u}(),w=function(){function r(i){var r=this,u,e,o;i=i||{};i.menu||n.error("menu is required");this.isOpen=!1;this.isEmpty=!0;this.datasets=t.map(i.datasets,f);u=t.bind(this._onSuggestionClick,this);e=t.bind(this._onSuggestionMouseEnter,this);o=t.bind(this._onSuggestionMouseLeave,this);this.$menu=n(i.menu).on("click.tt",".tt-suggestion",u).on("mouseenter.tt",".tt-suggestion",e).on("mouseleave.tt",".tt-suggestion",o);t.each(this.datasets,function(n){r.$menu.append(n.getRoot());n.onSync("rendered",r._onRendered,r)})}function f(n){return new u(n)}return t.mixin(r.prototype,e,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",n(t.currentTarget))},_onSuggestionMouseEnter:function(t){this._removeCursor();this._setCursor(n(t.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function n(n){return n.isEmpty()}this.isEmpty=t.every(this.datasets,n);this.isEmpty?this._hide():this.isOpen&&this._show();this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(n,t){n.first().addClass("tt-cursor");t||this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(n){var i,r,t,u;if(this.isOpen){if(r=this._getCursor(),i=this._getSuggestions(),this._removeCursor(),t=i.index(r)+n,t=(t+1)%(i.length+1)-1,t===-1){this.trigger("cursorRemoved");return}t<-1&&(t=i.length-1);this._setCursor(u=i.eq(t));this._ensureVisible(u)}},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$menu.scrollTop();u=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10);t<0?this.$menu.scrollTop(r+t):u<i&&this.$menu.scrollTop(r+(i-u))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(n){this.$menu.css(n==="ltr"?i.ltr:i.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(n){var t=null;return n.length&&(t={raw:u.extractDatum(n),value:u.extractValue(n),datasetName:u.extractDatasetName(n)}),t},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(n){function i(t){t.update(n)}t.each(this.datasets,i)},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function n(n){n.destroy()}this.$menu.off(".tt");this.$menu=null;t.each(this.datasets,n)}}),r}(),b=function(){function f(i){var r,u,f;i=i||{};i.input||n.error("missing input");this.isActivated=!1;this.autoselect=!!i.autoselect;this.minLength=t.isNumber(i.minLength)?i.minLength:1;this.$node=e(i.input,i.withHint);r=this.$node.find(".tt-dropdown-menu");u=this.$node.find(".tt-input");f=this.$node.find(".tt-hint");u.on("blur.tt",function(n){var i,f,e;i=document.activeElement;f=r.is(i);e=r.has(i).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){u.focus()}))});r.on("mousedown.tt",function(n){n.preventDefault()});this.eventBus=i.eventBus||new h({el:u});this.dropdown=new w({menu:r,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this);this.input=new c({input:u,hint:f}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this);this._setLanguageDirection()}function e(t,f){var e,h,c,s;e=n(t);h=n(r.wrapper).css(i.wrapper);c=n(r.dropdown).css(i.dropdown);s=e.clone().css(i.hint).css(o(e));s.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder").prop("disabled",!0).attr({autocomplete:"off",spellcheck:"false"});e.data(u,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")});e.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(f?i.input:i.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return e.wrap(h).parent().prepend(f?s:null).append(c)}function o(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function s(n){var i=n.find(".tt-input");t.each(i.data(u),function(n,r){t.isUndefined(n)?i.removeAttr(r):i.attr(r,n)});i.detach().removeData(u).removeClass("tt-input").insertAfter(n);n.remove()}var u="ttAttrs";return t.mixin(f.prototype,{_onSuggestionClicked:function(n,t){var i;(i=this.dropdown.getDatumForSuggestion(t))&&this._select(i)},_onCursorMoved:function(){var n=this.dropdown.getDatumForCursor();this.input.setInputValue(n.value,!0);this.eventBus.trigger("cursorchanged",n.raw,n.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue();this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint();this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint();this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0;this.dropdown.open()},_onBlurred:function(){this.isActivated=!1;this.dropdown.empty();this.dropdown.close()},_onEnterKeyed:function(n,t){var i,r;i=this.dropdown.getDatumForCursor();r=this.dropdown.getDatumForTopSuggestion();i?(this._select(i),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(n,t){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close();this.input.resetInputValue()},_onUpKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorUp();this.dropdown.open()},_onDownKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorDown();this.dropdown.open()},_onLeftKeyed:function(){this.dir==="rtl"&&this._autocomplete()},_onRightKeyed:function(){this.dir==="ltr"&&this._autocomplete()},_onQueryChanged:function(n,t){this.input.clearHintIfInvalid();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty();this.dropdown.open();this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint();this.dropdown.open()},_setLanguageDirection:function(){var n;this.dir!==(n=this.input.getLanguageDirection())&&(this.dir=n,this.$node.css("direction",n),this.dropdown.setLanguageDirection(n))},_updateHint:function(){var n,i,u,f,e,r;n=this.dropdown.getDatumForTopSuggestion();n&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),u=c.normalizeQuery(i),f=t.escapeRegExChars(u),e=new RegExp("^(?:"+f+")(.+$)","i"),r=e.exec(n.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(n){var i,r,u,t;i=this.input.getHint();r=this.input.getQuery();u=n||this.input.isCursorAtEnd();i&&r!==i&&u&&(t=this.dropdown.getDatumForTopSuggestion(),t&&this.input.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.raw,t.datasetName))},_select:function(n){this.input.setQuery(n.value);this.input.setInputValue(n.value,!0);this._setLanguageDirection();this.eventBus.trigger("selected",n.raw,n.datasetName);this.dropdown.close();t.defer(t.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(n){this.isActivated?this.input.setInputValue(n):(this.input.setQuery(n),this.input.setInputValue(n,!0));this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy();this.dropdown.destroy();s(this.$node);this.$node=null}}),f}();(function(){var u,i,r;u=n.fn.typeahead;i="ttTypeahead";r={initialize:function(r,u){function f(){var f=n(this),o,e;t.each(u,function(n){n.highlight=!!r.highlight});e=new b({input:f,eventBus:o=new h({el:f}),withHint:t.isUndefined(r.hint)?!0:!!r.hint,minLength:r.minLength,autoselect:r.autoselect,datasets:u});f.data(i,e)}return u=t.isArray(u)?u:[].slice.call(arguments,1),r=r||{},this.each(f)},open:function(){function t(){var r=n(this),t;(t=r.data(i))&&t.open()}return this.each(t)},close:function(){function t(){var r=n(this),t;(t=r.data(i))&&t.close()}return this.each(t)},val:function(t){function r(){var u=n(this),r;(r=u.data(i))&&r.setVal(t)}function u(n){var t,r;return(t=n.data(i))&&(r=t.getVal()),r}return arguments.length?this.each(r):u(this.first())},destroy:function(){function t(){var t=n(this),r;(r=t.data(i))&&(r.destroy(),t.removeData(i))}return this.each(t)}};n.fn.typeahead=function(n){return r[n]?r[n].apply(this,[].slice.call(arguments,1)):r.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=u,this}})()}(window.jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.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}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.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(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){u.hoverState!="in"&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.6";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.6";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.6";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.6";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.6";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);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,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.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"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(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"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.6";t.DEFAULTS=n.extend({},n.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>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.6";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);!function(n){function r(){return new Date(Date.UTC.apply(Date,arguments))}var u=function(r,u){var f=this;this.element=n(r);this.language=u.language||this.element.data("date-language")||"en";this.language=this.language in i?this.language:this.language.split("-")[0];this.language=this.language in i?this.language:"en";this.isRTL=i[this.language].rtl||!1;this.format=t.parseFormat(u.format||this.element.data("date-format")||i[this.language].format||"mm/dd/yyyy");this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&this.component.length===0&&(this.component=!1);this._attachEvents();this.forceParse=!0;"forceParse"in u?this.forceParse=u.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse"));this.picker=n(t.template).appendTo(this.isInline?this.element:"body").on({click:n.proxy(this.click,this),mousedown:n.proxy(this.mousedown,this)});this.isInline?this.picker.addClass("datepicker-inline"):this.picker.addClass("datepicker-dropdown dropdown-menu");this.isRTL&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right"));n(document).on("mousedown",function(t){n(t.target).closest(".datepicker.datepicker-inline, .datepicker.datepicker-dropdown").length===0&&f.hide()});this.autoclose=!1;"autoclose"in u?this.autoclose=u.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose"));this.keyboardNavigation=!0;"keyboardNavigation"in u?this.keyboardNavigation=u.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation"));this.viewMode=this.startViewMode=0;switch(u.startView||this.element.data("date-start-view")){case 2:case"decade":this.viewMode=this.startViewMode=2;break;case 1:case"year":this.viewMode=this.startViewMode=1}if(this.minViewMode=u.minViewMode||this.element.data("date-min-view-mode")||0,typeof this.minViewMode=="string")switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}this.viewMode=this.startViewMode=Math.max(this.startViewMode,this.minViewMode);this.todayBtn=u.todayBtn||this.element.data("date-today-btn")||!1;this.todayHighlight=u.todayHighlight||this.element.data("date-today-highlight")||!1;this.calendarWeeks=!1;"calendarWeeks"in u?this.calendarWeeks=u.calendarWeeks:"dateCalendarWeeks"in this.element.data()&&(this.calendarWeeks=this.element.data("date-calendar-weeks"));this.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(n,t){return parseInt(t)+1});this.weekStart=(u.weekStart||this.element.data("date-weekstart")||i[this.language].weekStart||0)%7;this.weekEnd=(this.weekStart+6)%7;this.startDate=-Infinity;this.endDate=Infinity;this.daysOfWeekDisabled=[];this.setStartDate(u.startDate||this.element.data("date-startdate"));this.setEndDate(u.endDate||this.element.data("date-enddate"));this.setDaysOfWeekDisabled(u.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();this.isInline&&this.show()},i,t;u.prototype={constructor:u,_events:[],_attachEvents:function(){this._detachEvents();this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];for(var t=0,i,r;t<this._events.length;t++){i=this._events[t][0];r=this._events[t][1];i.on(r)}},_detachEvents:function(){for(var n=0,t,i;n<this._events.length;n++)t=this._events[n][0],i=this._events[n][1],t.off(i);this._events=[]},show:function(t){this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.update();this.place();n(window).on("resize",n.proxy(this.place,this));t&&t.preventDefault();this.element.trigger({type:"show",date:this.date})},hide:function(){this.isInline||this.picker.is(":visible")&&(this.picker.hide(),n(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||n(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.element.trigger({type:"hide",date:this.date}))},remove:function(){this._detachEvents();this.picker.remove();delete this.element.data().datepicker;this.isInput||delete this.element.data().date},getDate:function(){var n=this.getUTCDate();return new Date(n.getTime()+n.getTimezoneOffset()*6e4)},getUTCDate:function(){return this.date},setDate:function(n){this.setUTCDate(new Date(n.getTime()-n.getTimezoneOffset()*6e4))},setUTCDate:function(n){this.date=n;this.setValue()},setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n):(this.component&&this.element.find("input").val(n),this.element.data("date",n))},getFormattedDate:function(n){return n===undefined&&(n=this.format),t.formatDate(this.date,n,this.language)},setStartDate:function(n){this.startDate=n||-Infinity;this.startDate!==-Infinity&&(this.startDate=t.parseDate(this.startDate,this.format,this.language));this.update();this.updateNavArrows()},setEndDate:function(n){this.endDate=n||Infinity;this.endDate!==Infinity&&(this.endDate=t.parseDate(this.endDate,this.format,this.language));this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this.daysOfWeekDisabled=t||[];n.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/));this.daysOfWeekDisabled=n.map(this.daysOfWeekDisabled,function(n){return parseInt(n,10)});this.update();this.updateNavArrows()},place:function(){if(!this.isInline){var i=parseInt(this.element.parents().filter(function(){return n(this).css("z-index")!="auto"}).first().css("z-index"))+10,t=this.component?this.component.parent().offset():this.element.offset(),r=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:t.top+r,left:t.left,zIndex:i})}},update:function(){var n,i=!1;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(n=arguments[0],i=!0):n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val();this.date=t.parseDate(n,this.format,this.language);i&&this.setValue();this.viewDate=this.date<this.startDate?new Date(this.startDate):this.date>this.endDate?new Date(this.endDate):new Date(this.date);this.fill()},fillDow:function(){var r=this.weekStart,n="<tr>",t;for(this.calendarWeeks&&(t='<th class="cw">&nbsp;<\/th>',n+=t,this.picker.find(".datepicker-days thead tr:first-child").prepend(t));r<this.weekStart+7;)n+='<th class="dow">'+i[this.language].daysMin[r++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+i[this.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},fill:function(){var k=new Date(this.viewDate),f=k.getUTCFullYear(),l=k.getUTCMonth(),v=this.startDate!==-Infinity?this.startDate.getUTCFullYear():-Infinity,it=this.startDate!==-Infinity?this.startDate.getUTCMonth():-Infinity,y=this.endDate!==Infinity?this.endDate.getUTCFullYear():Infinity,rt=this.endDate!==Infinity?this.endDate.getUTCMonth():Infinity,d=this.date&&this.date.valueOf(),p=new Date,u,w,s,e,o,a,h,tt,c;for(this.picker.find(".datepicker-days thead th.switch").text(i[this.language].months[l]+" "+f),this.picker.find("tfoot th.today").text(i[this.language].today).toggle(this.todayBtn!==!1),this.updateNavArrows(),this.fillMonths(),u=r(f,l-1,28,0,0,0,0),w=t.getDaysInMonth(u.getUTCFullYear(),u.getUTCMonth()),u.setUTCDate(w),u.setUTCDate(w-(u.getUTCDay()-this.weekStart+7)%7),s=new Date(u),s.setUTCDate(s.getUTCDate()+42),s=s.valueOf(),e=[];u.valueOf()<s;){if(u.getUTCDay()==this.weekStart&&(e.push("<tr>"),this.calendarWeeks)){var g=new Date(+u+(this.weekStart-u.getUTCDay()-7)%7*864e5),nt=new Date(+g+(11-g.getUTCDay())%7*864e5),b=new Date(+(b=r(nt.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ut=(nt-b)/6048e5+1;e.push('<td class="cw">'+ut+"<\/td>")}o="";u.getUTCFullYear()<f||u.getUTCFullYear()==f&&u.getUTCMonth()<l?o+=" old":(u.getUTCFullYear()>f||u.getUTCFullYear()==f&&u.getUTCMonth()>l)&&(o+=" new");this.todayHighlight&&u.getUTCFullYear()==p.getFullYear()&&u.getUTCMonth()==p.getMonth()&&u.getUTCDate()==p.getDate()&&(o+=" today");d&&u.valueOf()==d&&(o+=" active");(u.valueOf()<this.startDate||u.valueOf()>this.endDate||n.inArray(u.getUTCDay(),this.daysOfWeekDisabled)!==-1)&&(o+=" disabled");e.push('<td class="day'+o+'">'+u.getUTCDate()+"<\/td>");u.getUTCDay()==this.weekEnd&&e.push("<\/tr>");u.setUTCDate(u.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(e.join("")),a=this.date&&this.date.getUTCFullYear(),h=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),a&&a==f&&h.eq(this.date.getUTCMonth()).addClass("active"),(f<v||f>y)&&h.addClass("disabled"),f==v&&h.slice(0,it).addClass("disabled"),f==y&&h.slice(rt+1).addClass("disabled"),e="",f=parseInt(f/10,10)*10,tt=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,c=-1;c<11;c++)e+='<span class="year'+(c==-1||c==10?" old":"")+(a==f?" active":"")+(f<v||f>y?" disabled":"")+'">'+f+"<\/span>",f+=1;tt.html(e)},updateNavArrows:function(){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.startDate!==-Infinity&&n<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.endDate!==Infinity&&n>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},click:function(i){var u,s,e,c;if(i.preventDefault(),u=n(i.target).closest("span, td, th"),u.length==1)switch(u[0].nodeName.toLowerCase()){case"th":switch(u[0].className){case"switch":this.showMode(1);break;case"prev":case"next":s=t.modes[this.viewMode].navStep*(u[0].className=="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,s);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,s)}this.fill();break;case"today":e=new Date;e=r(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0);this.showMode(-2);c=this.todayBtn=="linked"?null:"view";this._setDate(e,c)}break;case"span":if(!u.is(".disabled")){if(this.viewDate.setUTCDate(1),u.is(".month")){var h=1,f=u.parent().find("span").index(u),o=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(f);this.element.trigger({type:"changeMonth",date:this.viewDate});this.minViewMode==1&&this._setDate(r(o,f,h,0,0,0,0))}else{var o=parseInt(u.text(),10)||0,h=1,f=0;this.viewDate.setUTCFullYear(o);this.element.trigger({type:"changeYear",date:this.viewDate});this.minViewMode==2&&this._setDate(r(o,f,h,0,0,0,0))}this.showMode(-1);this.fill()}break;case"td":if(u.is(".day")&&!u.is(".disabled")){var h=parseInt(u.text(),10)||1,o=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth();u.is(".old")?f===0?(f=11,o-=1):f-=1:u.is(".new")&&(f==11?(f=0,o+=1):f+=1);this._setDate(r(o,f,h,0,0,0,0))}}},_setDate:function(n,t){t&&t!="date"||(this.date=n);t&&t!="view"||(this.viewDate=n);this.fill();this.setValue();this.element.trigger({type:"changeDate",date:this.date});var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();this.autoclose&&(!t||t=="date")&&this.hide()},moveMonth:function(n,t){var f;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s==1)u=t==-1?function(){return i.getUTCMonth()==o}:function(){return i.getUTCMonth()!=r},r=o+t,i.setUTCMonth(r),(r<0||r>11)&&(r=(r+12)%12);else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!=i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.startDate&&n<=this.endDate},keydown:function(n){var u,t,i,r,f;if(this.picker.is(":not(:visible)")){n.keyCode==27&&this.show();return}u=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;t=n.keyCode==37?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;t=n.keyCode==38?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t*7),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t*7));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 13:this.hide();n.preventDefault();break;case 9:this.hide()}u&&(this.element.trigger({type:"changeDate",date:this.date}),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+t.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};n.fn.datepicker=function(t){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var f=n(this),r=f.data("datepicker"),e=typeof t=="object"&&t;r||f.data("datepicker",r=new u(this,n.extend({},n.fn.datepicker.defaults,e)));typeof t=="string"&&typeof r[t]=="function"&&r[t].apply(r,i)})};n.fn.datepicker.defaults={};n.fn.datepicker.Constructor=u;i=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today"}};t={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(t,f,e){var k,s,l,a,c,d,o,y;if(t instanceof Date)return t;if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(k=/([\-+]\d+)([dmwy])/,s=t.match(/([\-+]\d+)([dmwy])/g),t=new Date,o=0;o<s.length;o++){l=k.exec(s[o]);a=parseInt(l[1]);switch(l[2]){case"d":t.setUTCDate(t.getUTCDate()+a);break;case"m":t=u.prototype.moveMonth.call(u.prototype,t,a);break;case"w":t.setUTCDate(t.getUTCDate()+a*7);break;case"y":t=u.prototype.moveYear.call(u.prototype,t,a)}}return r(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}var s=t&&t.match(this.nonpunctuation)||[],t=new Date,p={},b=["yyyy","yy","M","MM","m","mm","d","dd"],h={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!=t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},v,w,l;if(h.M=h.MM=h.mm=h.m,h.dd=h.d,t=r(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),c=f.parts.slice(),s.length!=c.length&&(c=n(c).filter(function(t,i){return n.inArray(i,b)!==-1}).toArray()),s.length==c.length){for(o=0,d=c.length;o<d;o++){if(v=parseInt(s[o],10),l=c[o],isNaN(v))switch(l){case"MM":w=n(i[e].months).filter(function(){var n=this.slice(0,s[o].length),t=s[o].slice(0,n.length);return n==t});v=n.inArray(w[0],i[e].months)+1;break;case"M":w=n(i[e].monthsShort).filter(function(){var n=this.slice(0,s[o].length),t=s[o].slice(0,n.length);return n==t});v=n.inArray(w[0],i[e].monthsShort)+1}p[l]=v}for(o=0;o<b.length;o++)y=b[o],y in p&&!isNaN(p[y])&&h[y](t,p[y])}return t},formatDate:function(t,r,u){var f={d:t.getUTCDate(),D:i[u].daysShort[t.getUTCDay()],DD:i[u].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:i[u].monthsShort[t.getUTCMonth()],MM:i[u].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},t,o,e,s;for(f.dd=(f.d<10?"0":"")+f.d,f.mm=(f.m<10?"0":"")+f.m,t=[],o=n.extend([],r.separators),e=0,s=r.parts.length;e<s;e++)o.length&&t.push(o.shift()),t.push(f[r.parts[e]]);return t.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/><\/th><th colspan="5" class="switch"><\/th><th class="next"><i class="icon-arrow-right"/><\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><\/tfoot>'};t.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+t.headTemplate+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=t}(window.jQuery),function(n){n.fn.datepicker.dates.bg={days:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота","Неделя"],daysShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб","Нед"],daysMin:["Н","П","В","С","Ч","П","С","Н"],months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthsShort:["Ян","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],today:"днес"}}(jQuery),function(n){n.fn.datepicker.dates.ca={days:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte","Diumenge"],daysShort:["Diu","Dil","Dmt","Dmc","Dij","Div","Dis","Diu"],daysMin:["dg","dl","dt","dc","dj","dv","ds","dg"],months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthsShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],today:"Avui"}}(jQuery),function(n){n.fn.datepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota","Neděle"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob","Ned"],daysMin:["Ne","Po","Út","St","Čt","Pá","So","Ne"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes"}}(jQuery),function(n){n.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag"}}(jQuery),function(n){n.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),function(n){n.fn.datepicker.dates.el={days:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο","Κυριακή"],daysShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ","Κυρ"],daysMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα","Κυ"],months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthsShort:["Ιαν","Φεβ","Μαρ","Απρ","Μάι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],today:"Σήμερα"}}(jQuery),function(n){n.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy"}}(jQuery),function(n){n.fn.datepicker.dates.fi={days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai","sunnuntai"],daysShort:["sun","maa","tii","kes","tor","per","lau","sun"],daysMin:["su","ma","ti","ke","to","pe","la","su"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],monthsShort:["tam","hel","maa","huh","tou","kes","hei","elo","syy","lok","mar","jou"],today:"tänään"}}(jQuery),function(n){n.fn.datepicker.dates.fr={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["D","L","Ma","Me","J","V","S","D"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fev","Mar","Avr","Mai","Jui","Jul","Aou","Sep","Oct","Nov","Dec"],today:"Aujourd'hui",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(n){n.fn.datepicker.dates.he={days:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"],daysShort:["א","ב","ג","ד","ה","ו","ש","א"],daysMin:["א","ב","ג","ד","ה","ו","ש","א"],months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthsShort:["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ"],today:"היום",rtl:!0}}(jQuery),function(n){n.fn.datepicker.dates.hr={days:["Nedjelja","Ponedjelja","Utorak","Srijeda","Četrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Srr","Čet","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr","Če","Pe","Su","Ne"],months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sije","Velj","Ožu","Tra","Svi","Lip","Jul","Kol","Ruj","Lis","Stu","Pro"],today:"Danas"}}(jQuery),function(n){n.fn.datepicker.dates.hu={days:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo","Vas"],daysMin:["Va","Hé","Ke","Sz","Cs","Pé","Sz","Va"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Sze","Okt","Nov","Dec"],today:"Ma",weekStart:1,format:"yyyy.mm.dd"}}(jQuery),function(n){n.fn.datepicker.dates.id={days:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],daysShort:["Mgu","Sen","Sel","Rab","Kam","Jum","Sab","Mgu"],daysMin:["Mg","Sn","Sl","Ra","Ka","Ju","Sa","Mg"],months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"]}}(jQuery),function(n){n.fn.datepicker.dates.is={days:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur","Sunnudagur"],daysShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau","Sun"],daysMin:["Su","Má","Þr","Mi","Fi","Fö","La","Su"],months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],today:"Í Dag"}}(jQuery),function(n){n.fn.datepicker.dates.it={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(n){n.fn.datepicker.dates.ja={days:["日曜","月曜","火曜","水曜","木曜","金曜","土曜","日曜"],daysShort:["日","月","火","水","木","金","土","日"],daysMin:["日","月","火","水","木","金","土","日"],months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],today:"今日",format:"yyyy/mm/dd"}}(jQuery),function(n){n.fn.datepicker.dates.kr={days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일","일요일"],daysShort:["일","월","화","수","목","금","토","일"],daysMin:["일","월","화","수","목","금","토","일"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthsShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]}}(jQuery),function(n){n.fn.datepicker.dates.lt={days:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis","Sekmadienis"],daysShort:["S","Pr","A","T","K","Pn","Š","S"],daysMin:["Sk","Pr","An","Tr","Ke","Pn","Št","Sk"],months:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthsShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],today:"Šiandien",weekStart:1}}(jQuery),function(n){n.fn.datepicker.dates.lv={days:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena","Svētdiena"],daysShort:["Sv","P","O","T","C","Pk","S","Sv"],daysMin:["Sv","Pr","Ot","Tr","Ce","Pk","St","Sv"],months:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec."],today:"Šodien",weekStart:1}}(jQuery),function(n){n.fn.datepicker.dates.ms={days:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu","Ahad"],daysShort:["Aha","Isn","Sel","Rab","Kha","Jum","Sab","Aha"],daysMin:["Ah","Is","Se","Ra","Kh","Ju","Sa","Ah"],months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],today:"Hari Ini"}}(jQuery),function(n){n.fn.datepicker.dates.nb={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I Dag"}}(jQuery),function(n){n.fn.datepicker.dates.nl={days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Vandaag"}}(jQuery),function(n){n.fn.datepicker.dates.pl={days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","Śr","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","Śr","Cz","Pt","So","N"],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],today:"Dzisiaj",weekStart:1}}(jQuery),function(n){n.fn.datepicker.dates["pt-BR"]={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje"}}(jQuery),function(n){n.fn.datepicker.dates.pt={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}}(jQuery),function(n){n.fn.datepicker.dates.ro={days:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],today:"Astăzi",weekStart:1}}(jQuery),function(n){n.fn.datepicker.dates.rs={days:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota","Nedelja"],daysShort:["Ned","Pon","Uto","Sre","Čet","Pet","Sub","Ned"],daysMin:["N","Po","U","Sr","Č","Pe","Su","N"],months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],today:"Danas"}}(jQuery),function(n){n.fn.datepicker.dates.rs={days:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота","Недеља"],daysShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб","Нед"],daysMin:["Н","По","У","Ср","Ч","Пе","Су","Н"],months:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthsShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],today:"Данас"}}(jQuery),function(n){n.fn.datepicker.dates.ru={days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"],daysShort:["Вск","Пнд","Втр","Срд","Чтв","Птн","Суб","Вск"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб","Вс"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня"}}(jQuery),function(n){n.fn.datepicker.dates.sk={days:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota","Nedeľa"],daysShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob","Ned"],daysMin:["Ne","Po","Ut","St","Št","Pia","So","Ne"],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],today:"Dnes"}}(jQuery),function(n){n.fn.datepicker.dates.sl={days:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota","Nedelja"],daysShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob","Ned"],daysMin:["Ne","Po","To","Sr","Če","Pe","So","Ne"],months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],today:"Danes"}}(jQuery),function(n){n.fn.datepicker.dates.sv={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag"}}(jQuery),function(n){n.fn.datepicker.dates.sw={days:["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi","Jumapili"],daysShort:["J2","J3","J4","J5","Alh","Ij","J1","J2"],daysMin:["2","3","4","5","A","I","1","2"],months:["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"],monthsShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Des"],today:"Leo"}}(jQuery),function(n){n.fn.datepicker.dates.th={days:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"],daysShort:["อา","จ","อ","พ","พฤ","ศ","ส","อา"],daysMin:["อา","จ","อ","พ","พฤ","ศ","ส","อา"],months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthsShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],today:"วันนี้"}}(jQuery),function(n){n.fn.datepicker.dates.tr={days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"],daysShort:["Pz","Pzt","Sal","Çrş","Prş","Cu","Cts","Pz"],daysMin:["Pz","Pzt","Sa","Çr","Pr","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],today:"Bugün"}}(jQuery),function(n){n.fn.datepicker.dates.uk={days:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота","Неділя"],daysShort:["Нед","Пнд","Втр","Срд","Чтв","Птн","Суб","Нед"],daysMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб","Нд"],months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthsShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],today:"Сьогодні"}}(jQuery),function(n){n.fn.datepicker.dates["zh-CN"]={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["日","一","二","三","四","五","六","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],today:"今日"}}(jQuery),function(n){n.fn.datepicker.dates["zh-TW"]={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["日","一","二","三","四","五","六","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}}(jQuery)